From 8a1b967477c15a57b25b1b833223a5c78f415883 Mon Sep 17 00:00:00 2001 From: sbailey <1661003+spbsoluble@users.noreply.github.com> Date: Thu, 22 Feb 2024 13:51:01 -0800 Subject: [PATCH] adding v1 --- go.mod | 8 - go.sum | 11 - v1/LICENSE | 201 ++ v1/Makefile | 47 + v1/README.md | 793 +++++++ .../command => v1/api/keyfactor}/api_agent.go | 330 ++- .../api/keyfactor}/api_agent_blueprint.go | 124 +- .../api/keyfactor}/api_agent_pool.go | 116 +- .../api/keyfactor}/api_audit_log.go | 92 +- .../api/keyfactor}/api_certificate.go | 366 ++-- .../keyfactor}/api_certificate_authority.go | 124 +- .../keyfactor}/api_certificate_collection.go | 136 +- .../api/keyfactor}/api_certificate_store.go | 778 +------ .../api_certificate_store_container.go | 44 +- .../keyfactor}/api_certificate_store_type.go | 124 +- .../api/keyfactor}/api_csr_generation.go | 92 +- .../api/keyfactor}/api_custom_job_type.go | 92 +- .../api/keyfactor}/api_denied_alert.go | 92 +- .../api/keyfactor}/api_enrollment.go | 206 +- .../api/keyfactor}/api_expiration_alert.go | 156 +- .../api/keyfactor}/api_issued_alert.go | 124 +- .../command => v1/api/keyfactor}/api_key.go | 128 +- .../api/keyfactor}/api_key_rotation_alert.go | 156 +- .../api/keyfactor}/api_license.go | 28 +- .../command => v1/api/keyfactor}/api_logon.go | 92 +- .../api/keyfactor}/api_mac_enrollment.go | 44 +- .../api/keyfactor}/api_metadata_field.go | 140 +- .../api/keyfactor}/api_monitoring.go | 140 +- .../api/keyfactor}/api_orchestrator_job.go | 140 +- .../api/keyfactor}/api_pam_provider.go | 150 +- .../api/keyfactor}/api_pending_alert.go | 156 +- .../api/keyfactor}/api_reports.go | 252 +-- .../api/keyfactor}/api_security.go | 60 +- .../api_security_role_permissions.go | 208 +- .../api/keyfactor}/api_security_roles.go | 60 +- .../api/keyfactor}/api_server.go | 140 +- .../api/keyfactor}/api_server_group.go | 156 +- .../api/keyfactor}/api_service_account.go | 140 +- .../command => v1/api/keyfactor}/api_smtp.go | 60 +- .../command => v1/api/keyfactor}/api_ssl.go | 332 ++- .../api/keyfactor}/api_status.go | 28 +- .../api/keyfactor}/api_template.go | 124 +- .../command => v1/api/keyfactor}/api_user.go | 108 +- .../api/keyfactor}/api_workflow.go | 92 +- .../api/keyfactor}/api_workflow_definition.go | 172 +- .../api/keyfactor}/api_workflow_instance.go | 140 +- .../command => v1/api/keyfactor}/client.go | 48 +- .../api/keyfactor}/configuration.go | 130 +- ...el_core_models_enrollment_enrollment_ca.go | 232 ++ ...e_models_enrollment_enrollment_template.go | 650 ++++++ ...ollment_enrollment_template_ca_response.go | 195 ++ ...el_models_pam_provider_type_param_value.go | 12 +- ...odel_css_cms_data_model_models_provider.go | 12 +- ...css_cms_data_model_models_provider_type.go | 12 +- ...s_data_model_models_provider_type_param.go | 12 +- ..._query_alert_certificate_query_response.go | 195 ++ ...s_alert_schedule_alert_schedule_request.go | 158 ++ ..._alert_schedule_alert_schedule_response.go | 158 ++ ..._alert_template_alert_template_response.go | 269 +++ ...ts_denied_denied_alert_creation_request.go | 353 +++ ...denied_denied_alert_definition_response.go | 417 ++++ ...erts_denied_denied_alert_update_request.go | 390 ++++ ...ation_expiration_alert_creation_request.go | 381 ++++ ...on_expiration_alert_definition_response.go | 454 ++++ ...ts_expiration_expiration_alert_response.go | 428 ++++ ...ation_expiration_alert_test_all_request.go | 233 ++ ...xpiration_expiration_alert_test_request.go | 270 +++ ...piration_expiration_alert_test_response.go | 195 ++ ...iration_expiration_alert_update_request.go | 418 ++++ ...ts_issued_issued_alert_creation_request.go | 353 +++ ...issued_issued_alert_definition_response.go | 417 ++++ ...erts_issued_issued_alert_update_request.go | 390 ++++ ...ion_key_rotation_alert_creation_request.go | 307 +++ ..._key_rotation_alert_definition_response.go | 417 ++++ ...ey_rotation_key_rotation_alert_response.go | 232 ++ ...ion_key_rotation_alert_test_all_request.go | 233 ++ ...otation_key_rotation_alert_test_request.go | 270 +++ ...tation_key_rotation_alert_test_response.go | 195 ++ ...ation_key_rotation_alert_update_request.go | 344 +++ ..._pending_pending_alert_creation_request.go | 353 +++ ...nding_pending_alert_definition_response.go | 417 ++++ ...s_alerts_pending_pending_alert_response.go | 343 +++ ..._pending_pending_alert_test_all_request.go | 158 ++ ...erts_pending_pending_alert_test_request.go | 195 ++ ...rts_pending_pending_alert_test_response.go | 195 ++ ...ts_pending_pending_alert_update_request.go | 390 ++++ ...ies_certificate_authority_test_response.go | 197 ++ ...ons_certificate_collection_copy_request.go | 362 +++ ...s_certificate_collection_create_request.go | 408 ++++ ...ections_certificate_collection_response.go | 415 ++++ ...s_certificate_collection_update_request.go | 362 +++ ...tificate_stores_add_certificate_request.go | 242 ++ ...tores_certificate_store_approve_request.go | 306 +++ ...certificate_stores_job_history_response.go | 566 +++++ ...certificate_stores_reenrollment_request.go | 380 ++++ ...icate_stores_remove_certificate_request.go | 214 ++ ...certificate_store_type_creation_request.go | 880 ++++++++ ...s_types_certificate_store_type_response.go | 1007 +++++++++ ...s_certificate_store_type_update_request.go | 686 ++++++ ...ertificates_analyze_certificate_request.go | 195 ++ ...tes_certificate_identity_audit_response.go | 309 +++ ...y_audit_response_certificate_permission.go | 197 ++ ...ificates_certificate_locations_response.go | 158 ++ ..._certificates_certificate_query_request.go | 387 ++++ ...ion_tenant_configuration_tenant_request.go | 158 ++ ...nrollment_enrollment_management_request.go | 373 ++++ ...rollment_enrollment_management_response.go | 195 ++ ...els_enrollment_management_store_request.go | 269 +++ ...nrollment_management_store_type_request.go | 269 +++ ...handler_event_handler_parameter_request.go | 205 ++ ...andler_event_handler_parameter_response.go | 269 +++ ...andler_registered_event_handler_request.go | 177 ++ ...ndler_registered_event_handler_response.go | 232 ++ ...tor_api_models_license_license_response.go | 193 ++ ...models_license_license_response_license.go | 307 +++ ...ense_license_response_licensed_customer.go | 195 ++ ...cense_license_response_licensed_feature.go | 307 +++ ...cense_license_response_licensed_product.go | 306 +++ ...mac_enrollment_mac_enrollment_api_model.go | 343 +++ ...ata_field_metadata_field_create_request.go | 464 ++++ ..._metadata_field_metadata_field_response.go | 528 +++++ ...ata_field_metadata_field_update_request.go | 492 +++++ ...api_models_monitoring_dashboard_request.go | 186 ++ ...pi_models_monitoring_dashboard_response.go | 195 ++ ...tor_api_models_monitoring_email_request.go | 232 ++ ...or_api_models_monitoring_email_response.go | 232 ++ ...dels_monitoring_ocsp_parameters_request.go | 343 +++ ...els_monitoring_ocsp_parameters_response.go | 306 +++ ...ation_monitoring_alert_test_all_request.go | 196 ++ ...evocation_monitoring_alert_test_request.go | 233 ++ ...vocation_monitoring_alert_test_response.go | 195 ++ ..._revocation_monitoring_creation_request.go | 344 +++ ...vocation_monitoring_definition_response.go | 417 ++++ ...ng_revocation_monitoring_update_request.go | 381 ++++ ...chestrator_jobs_acknowledge_job_request.go | 197 ++ ...els_orchestrator_jobs_bulk_job_response.go | 344 +++ ...or_jobs_custom_job_result_data_response.go | 195 ++ ...ls_orchestrator_jobs_job_field_response.go | 195 ++ ...i_models_orchestrator_jobs_job_response.go | 344 +++ ...chestrator_jobs_job_type_field_response.go | 269 +++ ...els_orchestrator_jobs_job_type_response.go | 269 +++ ...rchestrator_jobs_reschedule_job_request.go | 197 ++ ...rchestrator_jobs_unschedule_job_request.go | 197 ++ ...estrators_agent_blueprint_jobs_response.go | 973 +++++++++ ..._orchestrators_agent_blueprint_response.go | 270 +++ ...trators_agent_blueprint_stores_response.go | 454 ++++ ...api_models_orchestrators_agent_response.go | 677 ++++++ ...r_auth_certificate_reenrollment_request.go | 186 ++ ..._auth_certificate_reenrollment_response.go | 195 ++ ...security_roles_area_permission_response.go | 232 ++ ...rity_roles_container_permission_request.go | 195 ++ ...ity_roles_container_permission_response.go | 232 ++ ...ity_roles_collection_permission_request.go | 195 ++ ...ty_roles_collection_permission_response.go | 232 ++ ...ecurity_roles_global_permission_request.go | 195 ++ ...curity_roles_global_permission_response.go | 195 ++ ..._security_roles_role_identities_request.go | 158 ++ ...security_roles_role_identities_response.go | 195 ++ ...curity_roles_security_role_copy_request.go | 195 ++ ..._keyfactor_api_models_smtp_smtp_request.go | 454 ++++ ...keyfactor_api_models_smtp_smtp_response.go | 417 ++++ ...actor_api_models_smtp_smtp_test_request.go | 491 +++++ ...ctor_api_models_smtp_smtp_test_response.go | 454 ++++ ...r_api_models_ssl_create_network_request.go | 575 +++++ ...r_api_models_ssl_network_query_response.go | 973 +++++++++ ...yfactor_api_models_ssl_network_response.go | 973 +++++++++ ...actor_api_models_ssl_quiet_hour_request.go | 270 +++ ...ctor_api_models_ssl_quiet_hour_response.go | 270 +++ ...r_api_models_ssl_update_network_request.go | 603 +++++ ...mplates_global_template_default_request.go | 188 ++ ...plates_global_template_default_response.go | 197 ++ ...emplates_global_template_policy_request.go | 266 +++ ...mplates_global_template_policy_response.go | 311 +++ ...templates_global_template_regex_request.go | 226 ++ ...emplates_global_template_regex_response.go | 235 ++ ...plates_global_template_settings_request.go | 207 ++ ...lates_global_template_settings_response.go | 234 ++ ...es_template_enrollment_default_response.go | 197 ++ ...tes_template_enrollment_policy_response.go | 311 +++ ...ates_template_enrollment_regex_response.go | 235 ++ ...s_template_enrollment_settings_response.go | 234 ++ ...s_templates_valid_subject_part_response.go | 195 ++ ...els_workflows_available_signal_response.go | 235 ++ ...workflows_available_step_query_response.go | 309 +++ ...odels_workflows_available_step_response.go | 309 +++ ...rkflows_condition_configuration_request.go | 159 ++ ...kflows_condition_configuration_response.go | 197 ++ ...els_workflows_definition_create_request.go | 273 +++ ...els_workflows_definition_query_response.go | 380 ++++ ...pi_models_workflows_definition_response.go | 491 +++++ ...odels_workflows_definition_step_request.go | 417 ++++ ...dels_workflows_definition_step_response.go | 454 ++++ ...rkflows_definition_step_signal_response.go | 196 ++ ...els_workflows_definition_update_request.go | 195 ++ ..._workflows_instance_definition_response.go | 269 +++ ...odels_workflows_instance_query_response.go | 529 +++++ ..._api_models_workflows_instance_response.go | 640 ++++++ ...workflows_parameter_definition_response.go | 417 ++++ ..._workflows_signal_configuration_request.go | 197 ++ ...ls_workflows_signal_definition_response.go | 158 ++ ...tor_api_models_workflows_signal_request.go | 197 ++ ..._workflows_workflow_type_query_response.go | 269 +++ ...or_api_pam_provider_type_create_request.go | 186 ++ ..._provider_type_parameter_create_request.go | 260 +++ ...pi_pam_provider_type_parameter_response.go | 306 +++ ...eyfactor_api_pam_provider_type_response.go | 232 ++ ...actor_auditing_querying_audit_log_entry.go | 12 +- ...or_common_scheduling_keyfactor_schedule.go | 12 +- ...common_scheduling_models_interval_model.go | 12 +- ..._common_scheduling_models_monthly_model.go | 12 +- ...tor_common_scheduling_models_time_model.go | 12 +- ...r_common_scheduling_models_weekly_model.go | 12 +- .../model_models_agents_agent_pool.go | 302 +++ .../model_models_agents_agent_pool_agent.go | 380 ++++ ...e_locations_certificate_locations_group.go | 263 +++ ...ions_certificate_store_locations_detail.go | 454 ++++ ..._models_cert_store_new_password_request.go | 177 ++ ...models_cert_store_type_password_options.go | 232 ++ ...ls_cert_store_type_supported_operations.go | 306 +++ .../model_models_cert_stores_schedule.go | 186 ++ ..._certificate_authority_auth_certificate.go | 292 +++ ...thorities_certificate_authority_request.go | 1305 +++++++++++ ...horities_certificate_authority_response.go | 1338 ++++++++++++ .../model_models_certificate_details.go | 403 ++++ ...del_models_certificate_download_request.go | 317 +++ ...el_models_certificate_download_response.go | 158 ++ ...models_certificate_import_request_model.go | 379 ++++ ...odels_certificate_import_response_model.go | 269 +++ ...l_models_certificate_location_specifier.go | 232 ++ .../model_models_certificate_query.go | 417 ++++ ...del_models_certificate_recovery_request.go | 345 +++ ...l_models_certificate_retrieval_response.go | 1944 +++++++++++++++++ ..._certificate_store_inventory_item_model.go | 343 +++ ...certificate_store_location_detail_model.go | 306 +++ ...l_response_crl_distribution_point_model.go | 232 ++ ...ieval_response_detailed_key_usage_model.go | 491 +++++ ...ieval_response_extended_key_usage_model.go | 232 ++ ...retrieval_response_location_count_model.go | 195 ++ ...response_subject_alternative_name_model.go | 269 +++ .../model_models_certificate_store.go | 748 +++++++ ...rtificate_store_container_list_response.go | 343 +++ ...certificate_store_create_server_request.go | 298 +++ .../model_models_certificate_store_entry.go | 372 ++++ ...odel_models_certificate_store_inventory.go | 232 ++ ...ertificate_store_inventory_certificates.go | 514 +++++ ...odels_certificate_store_server_response.go | 269 +++ ..._models_certificate_store_type_property.go | 380 ++++ ..._certificate_store_type_entry_parameter.go | 417 ++++ ...certificate_store_update_server_request.go | 298 +++ ...stores_certificate_store_create_request.go | 491 +++++ ...stores_certificate_store_update_request.go | 380 ++++ ..._models_certificate_validation_response.go | 197 ++ ...odel_models_collection_role_permissions.go | 195 ++ .../model_models_container_assignment.go | 260 +++ .../model_models_crl_request_model.go | 186 ++ v1/api/keyfactor/model_models_csr_contents.go | 149 ++ ...el_models_csr_generation_response_model.go | 195 ++ .../keyfactor/model_models_custom_report.go | 343 +++ ...l_models_custom_report_creation_request.go | 279 +++ ...del_models_custom_report_update_request.go | 334 +++ .../model_models_discovery_job_request.go | 594 +++++ ...del_models_enrollment_available_renewal.go | 195 ++ ...odels_enrollment_csr_enrollment_request.go | 409 ++++ ...dels_enrollment_csr_enrollment_response.go | 195 ++ ...odels_enrollment_csr_generation_request.go | 282 +++ ..._existing_enrollment_management_request.go | 307 +++ ...models_enrollment_management_store_type.go | 269 +++ ...odels_enrollment_pfx_enrollment_request.go | 566 +++++ ...dels_enrollment_pfx_enrollment_response.go | 195 ++ ...model_models_enrollment_renewal_request.go | 307 +++ ...odel_models_enrollment_renewal_response.go | 428 ++++ .../model_models_extended_key_usage.go | 232 ++ .../model_models_invalid_keystore.go | 343 +++ .../model_models_keyfactor_api_secret.go | 232 ++ ...odel_models_metadata_all_update_request.go | 223 ++ .../model_models_metadata_field_type_model.go | 528 +++++ ...l_models_metadata_single_update_request.go | 232 ++ .../model_models_metadata_update_request.go | 186 ++ ...ng_revocation_monitoring_alert_response.go | 232 ++ ...strator_jobs_bulk_orchestrator_job_pair.go | 195 ++ .../model_models_orchestrator_jobs_job.go | 343 +++ ...chestrator_jobs_job_type_create_request.go | 223 ++ ...rchestrator_jobs_job_type_field_request.go | 251 +++ ...chestrator_jobs_job_type_update_request.go | 251 +++ ...estrator_jobs_schedule_bulk_job_request.go | 251 +++ ..._orchestrator_jobs_schedule_job_request.go | 251 +++ v1/api/keyfactor/model_models_paged_query.go | 311 +++ .../model_models_pending_csr_response.go | 270 +++ ...odel_models_pkcs10_certificate_response.go | 468 ++++ ...odel_models_pkcs12_certificate_response.go | 504 +++++ .../model_models_pki_certificate_operation.go | 344 +++ ...models_paged_agent_blueprint_jobs_query.go | 309 +++ ...uery_models_paged_agent_blueprint_query.go | 309 +++ ...dels_paged_agent_blueprint_stores_query.go | 309 +++ ...ry_models_paged_agent_job_history_query.go | 311 +++ ...dels_query_models_paged_agent_job_query.go | 311 +++ ...ry_models_paged_agent_pool_agents_query.go | 311 +++ ...els_query_models_paged_agent_pool_query.go | 311 +++ ...l_models_query_models_paged_agent_query.go | 311 +++ ...dels_query_models_paged_audit_log_query.go | 311 +++ ...odels_paged_certificate_authority_query.go | 311 +++ ..._models_paged_certificate_history_query.go | 273 +++ ..._models_paged_certificate_request_query.go | 311 +++ ...paged_certificate_store_container_query.go | 311 +++ ...paged_certificate_store_inventory_query.go | 273 +++ ...ry_models_paged_certificate_store_query.go | 311 +++ ...ls_paged_certificate_store_server_query.go | 311 +++ ..._query_models_paged_custom_report_query.go | 346 +++ ...s_query_models_paged_denied_alert_query.go | 311 +++ ...ery_models_paged_expiration_alert_query.go | 311 +++ ...s_query_models_paged_issued_alert_query.go | 311 +++ ...y_models_paged_key_rotation_alert_query.go | 311 +++ ...odels_paged_legacy_denied_request_query.go | 311 +++ ...query_models_paged_metadata_field_query.go | 311 +++ ..._query_models_paged_pending_alert_query.go | 311 +++ ...ls_query_models_paged_pending_csr_query.go | 311 +++ ..._models_query_models_paged_report_query.go | 346 +++ ...uery_models_paged_report_schedule_query.go | 311 +++ ...odels_paged_revocation_monitoring_query.go | 311 +++ ...query_models_paged_scan_job_parts_query.go | 348 +++ ...ry_models_paged_security_identity_query.go | 349 +++ ..._query_models_paged_security_role_query.go | 349 +++ ...dels_query_models_paged_ssh_logon_query.go | 311 +++ ...ery_models_paged_ssh_server_group_query.go | 311 +++ ...els_query_models_paged_ssh_server_query.go | 311 +++ ..._models_paged_ssh_service_account_query.go | 311 +++ ...ry_models_paged_ssh_unmanaged_key_query.go | 311 +++ ...odels_query_models_paged_ssh_user_query.go | 311 +++ ...els_query_models_paged_ssl_result_query.go | 311 +++ ...odels_query_models_paged_template_query.go | 311 +++ ...dels_workflow_workflow_definition_query.go | 311 +++ ...models_workflow_workflow_instance_query.go | 311 +++ ...els_workflow_workflow_step_schema_query.go | 311 +++ ...ery_models_workflow_workflow_type_query.go | 311 +++ .../model_models_recovery_response.go | 195 ++ .../model_models_reenrollment_status.go | 343 +++ v1/api/keyfactor/model_models_report.go | 676 ++++++ .../model_models_report_parameters.go | 417 ++++ .../model_models_report_parameters_request.go | 269 +++ .../model_models_report_request_model.go | 269 +++ .../keyfactor/model_models_report_schedule.go | 454 ++++ ...l_models_revocation_revocation_response.go | 195 ++ ...evocation_suspended_revocation_response.go | 232 ++ ..._models_revoke_all_certificates_request.go | 332 +++ ...model_models_revoke_certificate_request.go | 307 +++ ...models_security_certificate_permissions.go | 158 ++ ...entities_permission_roles_pair_response.go | 195 ++ ...identities_security_identity_identifier.go | 197 ++ ...ities_security_identity_lookup_response.go | 159 ++ ..._security_identity_permissions_response.go | 269 +++ ...ty_identities_security_identity_request.go | 150 ++ ...ty_roles_security_role_creation_request.go | 331 +++ ...urity_roles_security_role_response_base.go | 197 ++ ...rity_roles_security_role_update_request.go | 360 +++ ...ls_ssh_access_logon_user_access_request.go | 195 ++ ...s_ssh_access_logon_user_access_response.go | 232 ++ ...models_ssh_access_server_access_request.go | 177 ++ ...odels_ssh_access_server_access_response.go | 195 ++ ..._ssh_access_server_group_access_request.go | 177 ++ ...ssh_access_server_group_access_response.go | 195 ++ ..._models_ssh_keys_key_generation_request.go | 298 +++ .../model_models_ssh_keys_key_response.go | 529 +++++ ...odel_models_ssh_keys_key_update_request.go | 214 ++ ..._models_ssh_keys_unmanaged_key_response.go | 529 +++++ ..._models_ssh_logons_logon_access_request.go | 186 ++ ...odels_ssh_logons_logon_creation_request.go | 214 ++ ..._models_ssh_logons_logon_query_response.go | 418 ++++ .../model_models_ssh_logons_logon_response.go | 344 +++ ...er_groups_server_group_creation_request.go | 251 +++ ...ssh_server_groups_server_group_response.go | 343 +++ ...rver_groups_server_group_update_request.go | 270 +++ ...els_ssh_servers_server_creation_request.go | 279 +++ ...odel_models_ssh_servers_server_response.go | 491 +++++ ...odels_ssh_servers_server_update_request.go | 223 ++ ...counts_service_account_creation_request.go | 233 ++ ...rvice_accounts_service_account_response.go | 269 +++ ...accounts_service_account_update_request.go | 177 ++ ...s_service_account_user_creation_request.go | 186 ++ ...dels_ssh_users_ssh_user_access_response.go | 306 +++ ...els_ssh_users_ssh_user_creation_request.go | 186 ++ ...odel_models_ssh_users_ssh_user_response.go | 269 +++ ...odels_ssh_users_ssh_user_update_request.go | 186 ++ .../model_models_ssl_display_scan_job_part.go | 344 +++ v1/api/keyfactor/model_models_ssl_endpoint.go | 417 ++++ ...el_models_ssl_endpoint_history_response.go | 455 ++++ ...oint_history_response_certificate_model.go | 525 +++++ ...odel_models_ssl_endpoint_status_request.go | 177 ++ ...l_models_ssl_immediate_ssl_scan_request.go | 177 ++ .../model_models_ssl_network_definition.go | 195 ++ ...model_models_ssl_network_ranges_request.go | 177 ++ .../model_models_ssl_scan_job_part.go | 751 +++++++ ...del_models_ssl_scan_job_part_definition.go | 195 ++ .../model_models_ssl_ssl_scan_result.go | 528 +++++ .../model_models_subject_alternative_name.go | 269 +++ ..._template_collection_retrieval_response.go | 896 ++++++++ ...ieval_response_extended_key_usage_model.go | 232 ++ ...esponse_template_enrollment_field_model.go | 269 +++ ...retrieval_response_template_regex_model.go | 269 +++ .../model_models_template_enrollment_field.go | 269 +++ .../model_models_template_metadata_field.go | 343 +++ .../keyfactor/model_models_template_regex.go | 269 +++ ...odel_models_template_retrieval_response.go | 1092 +++++++++ ...ieval_response_extended_key_usage_model.go | 232 ++ ...trieval_response_template_default_model.go | 195 ++ ...esponse_template_enrollment_field_model.go | 269 +++ ..._response_template_metadata_field_model.go | 343 +++ ...etrieval_response_template_policy_model.go | 343 +++ ...retrieval_response_template_regex_model.go | 269 +++ .../model_models_template_update_request.go | 750 +++++++ ...e_update_request_template_default_model.go | 195 ++ ...request_template_enrollment_field_model.go | 269 +++ ...e_request_template_metadata_field_model.go | 343 +++ ...te_update_request_template_policy_model.go | 343 +++ ...ate_update_request_template_regex_model.go | 269 +++ ...del_models_workflow_approve_deny_result.go | 232 ++ ...ow_certificate_request_cert_store_model.go | 232 ++ ...kflow_certificate_request_details_model.go | 723 ++++++ ...dels_workflow_certificate_request_model.go | 527 +++++ .../model_models_workflow_denial_request.go | 195 ++ ..._workflow_processed_certificate_request.go | 341 +++ .../command => v1/api/keyfactor}/response.go | 12 +- {v2/api/command => v1/api/keyfactor}/utils.go | 12 +- v1/docs/AgentApi.md | 570 +++++ v1/docs/AgentBlueprintApi.md | 529 +++++ v1/docs/AgentPoolApi.md | 448 ++++ v1/docs/AuditLogApi.md | 387 ++++ v1/docs/CSRGenerationApi.md | 365 ++++ ...ataModelModelsPamProviderTypeParamValue.md | 186 ++ v1/docs/CSSCMSDataModelModelsProvider.md | 176 ++ v1/docs/CSSCMSDataModelModelsProviderType.md | 108 + .../CSSCMSDataModelModelsProviderTypeParam.md | 186 ++ v1/docs/CertificateApi.md | 1563 +++++++++++++ v1/docs/CertificateAuthorityApi.md | 503 +++++ v1/docs/CertificateCollectionApi.md | 519 +++++ v1/docs/CertificateStoreApi.md | 840 +++++++ v1/docs/CertificateStoreContainerApi.md | 156 ++ v1/docs/CertificateStoreTypeApi.md | 511 +++++ v1/docs/CoreModelsEnrollmentEnrollmentCA.md | 108 + .../CoreModelsEnrollmentEnrollmentTemplate.md | 404 ++++ ...sEnrollmentEnrollmentTemplateCAResponse.md | 82 + v1/docs/CustomJobTypeApi.md | 367 ++++ v1/docs/DeniedAlertApi.md | 367 ++++ v1/docs/EnrollmentApi.md | 793 +++++++ v1/docs/ExpirationAlertApi.md | 641 ++++++ v1/docs/IssuedAlertApi.md | 503 +++++ v1/docs/KeyApi.md | 507 +++++ v1/docs/KeyRotationAlertApi.md | 641 ++++++ ...sEnrollmentEnrollmentManagementResponse.md | 82 + v1/docs/KeyfactorAPIModelsSMTPSMTPRequest.md | 264 +++ v1/docs/KeyfactorAPIModelsSMTPSMTPResponse.md | 238 ++ .../KeyfactorAPIModelsSMTPSMTPTestRequest.md | 290 +++ .../KeyfactorAPIModelsSMTPSMTPTestResponse.md | 264 +++ ...icateQueryAlertCertificateQueryResponse.md | 82 + ...AlertsAlertScheduleAlertScheduleRequest.md | 56 + ...lertsAlertScheduleAlertScheduleResponse.md | 56 + ...lertsAlertTemplateAlertTemplateResponse.md | 134 ++ ...sAlertsDeniedDeniedAlertCreationRequest.md | 197 ++ ...ertsDeniedDeniedAlertDefinitionResponse.md | 238 ++ ...elsAlertsDeniedDeniedAlertUpdateRequest.md | 223 ++ ...xpirationExpirationAlertCreationRequest.md | 218 ++ ...rationExpirationAlertDefinitionResponse.md | 264 +++ ...AlertsExpirationExpirationAlertResponse.md | 248 +++ ...ExpirationExpirationAlertTestAllRequest.md | 108 + ...rtsExpirationExpirationAlertTestRequest.md | 134 ++ ...tsExpirationExpirationAlertTestResponse.md | 82 + ...sExpirationExpirationAlertUpdateRequest.md | 244 +++ ...sAlertsIssuedIssuedAlertCreationRequest.md | 197 ++ ...ertsIssuedIssuedAlertDefinitionResponse.md | 238 ++ ...elsAlertsIssuedIssuedAlertUpdateRequest.md | 223 ++ ...RotationKeyRotationAlertCreationRequest.md | 166 ++ ...ationKeyRotationAlertDefinitionResponse.md | 238 ++ ...ertsKeyRotationKeyRotationAlertResponse.md | 108 + ...yRotationKeyRotationAlertTestAllRequest.md | 108 + ...sKeyRotationKeyRotationAlertTestRequest.md | 134 ++ ...KeyRotationKeyRotationAlertTestResponse.md | 82 + ...eyRotationKeyRotationAlertUpdateRequest.md | 192 ++ ...lertsPendingPendingAlertCreationRequest.md | 197 ++ ...tsPendingPendingAlertDefinitionResponse.md | 238 ++ ...ModelsAlertsPendingPendingAlertResponse.md | 186 ++ ...AlertsPendingPendingAlertTestAllRequest.md | 56 + ...elsAlertsPendingPendingAlertTestRequest.md | 82 + ...lsAlertsPendingPendingAlertTestResponse.md | 82 + ...sAlertsPendingPendingAlertUpdateRequest.md | 223 ++ ...oritiesCertificateAuthorityTestResponse.md | 82 + ...ectionsCertificateCollectionCopyRequest.md | 202 ++ ...tionsCertificateCollectionCreateRequest.md | 233 ++ ...ollectionsCertificateCollectionResponse.md | 238 ++ ...tionsCertificateCollectionUpdateRequest.md | 202 ++ ...sCertificateStoresAddCertificateRequest.md | 119 + ...ateStoresCertificateStoreApproveRequest.md | 160 ++ ...delsCertificateStoresJobHistoryResponse.md | 342 +++ ...elsCertificateStoresReenrollmentRequest.md | 212 ++ ...rtificateStoresRemoveCertificateRequest.md | 98 + ...ypesCertificateStoreTypeCreationRequest.md | 566 +++++ ...StoresTypesCertificateStoreTypeResponse.md | 654 ++++++ ...sTypesCertificateStoreTypeUpdateRequest.md | 431 ++++ ...lsCertificatesAnalyzeCertificateRequest.md | 82 + ...ficatesCertificateIdentityAuditResponse.md | 160 ++ ...ntityAuditResponseCertificatePermission.md | 82 + ...ertificatesCertificateLocationsResponse.md | 56 + ...delsCertificatesCertificateQueryRequest.md | 212 ++ ...urationTenantConfigurationTenantRequest.md | 56 + ...lsEnrollmentEnrollmentManagementRequest.md | 207 ++ ...iModelsEnrollmentManagementStoreRequest.md | 134 ++ ...elsEnrollmentManagementStoreTypeRequest.md | 134 ++ ...ventHandlerEventHandlerParameterRequest.md | 93 + ...entHandlerEventHandlerParameterResponse.md | 134 ++ ...entHandlerRegisteredEventHandlerRequest.md | 72 + ...ntHandlerRegisteredEventHandlerResponse.md | 108 + ...eyfactorApiModelsLicenseLicenseResponse.md | 82 + ...rApiModelsLicenseLicenseResponseLicense.md | 160 ++ ...sLicenseLicenseResponseLicensedCustomer.md | 82 + ...lsLicenseLicenseResponseLicensedFeature.md | 160 ++ ...lsLicenseLicenseResponseLicensedProduct.md | 160 ++ ...odelsMacEnrollmentMacEnrollmentAPIModel.md | 186 ++ ...MetadataFieldMetadataFieldCreateRequest.md | 275 +++ ...odelsMetadataFieldMetadataFieldResponse.md | 316 +++ ...MetadataFieldMetadataFieldUpdateRequest.md | 296 +++ ...ctorApiModelsMonitoringDashboardRequest.md | 77 + ...torApiModelsMonitoringDashboardResponse.md | 82 + ...eyfactorApiModelsMonitoringEmailRequest.md | 108 + ...yfactorApiModelsMonitoringEmailResponse.md | 108 + ...piModelsMonitoringOCSPParametersRequest.md | 186 ++ ...iModelsMonitoringOCSPParametersResponse.md | 160 ++ ...RevocationMonitoringAlertTestAllRequest.md | 82 + ...ingRevocationMonitoringAlertTestRequest.md | 108 + ...ngRevocationMonitoringAlertTestResponse.md | 82 + ...ringRevocationMonitoringCreationRequest.md | 192 ++ ...gRevocationMonitoringDefinitionResponse.md | 238 ++ ...toringRevocationMonitoringUpdateRequest.md | 218 ++ ...lsOrchestratorJobsAcknowledgeJobRequest.md | 82 + ...piModelsOrchestratorJobsBulkJobResponse.md | 186 ++ ...estratorJobsCustomJobResultDataResponse.md | 82 + ...iModelsOrchestratorJobsJobFieldResponse.md | 82 + ...torApiModelsOrchestratorJobsJobResponse.md | 186 ++ ...elsOrchestratorJobsJobTypeFieldResponse.md | 134 ++ ...piModelsOrchestratorJobsJobTypeResponse.md | 134 ++ ...elsOrchestratorJobsRescheduleJobRequest.md | 82 + ...elsOrchestratorJobsUnscheduleJobRequest.md | 82 + ...OrchestratorsAgentBlueprintJobsResponse.md | 628 ++++++ ...delsOrchestratorsAgentBlueprintResponse.md | 134 ++ ...chestratorsAgentBlueprintStoresResponse.md | 264 +++ ...ctorApiModelsOrchestratorsAgentResponse.md | 420 ++++ ...ratorAuthCertificateReenrollmentRequest.md | 77 + ...atorAuthCertificateReenrollmentResponse.md | 82 + ...delsSecurityRolesAreaPermissionResponse.md | 108 + ...SecurityRolesContainerPermissionRequest.md | 82 + ...ecurityRolesContainerPermissionResponse.md | 108 + ...ecurityRolesCollectionPermissionRequest.md | 82 + ...curityRolesCollectionPermissionResponse.md | 108 + ...iesSecurityRolesGlobalPermissionRequest.md | 82 + ...esSecurityRolesGlobalPermissionResponse.md | 82 + ...odelsSecurityRolesRoleIdentitiesRequest.md | 56 + ...delsSecurityRolesRoleIdentitiesResponse.md | 82 + ...elsSecurityRolesSecurityRoleCopyRequest.md | 82 + ...yfactorApiModelsSslCreateNetworkRequest.md | 353 +++ ...yfactorApiModelsSslNetworkQueryResponse.md | 628 ++++++ .../KeyfactorApiModelsSslNetworkResponse.md | 628 ++++++ .../KeyfactorApiModelsSslQuietHourRequest.md | 134 ++ .../KeyfactorApiModelsSslQuietHourResponse.md | 134 ++ ...yfactorApiModelsSslUpdateNetworkRequest.md | 374 ++++ ...lsTemplatesGlobalTemplateDefaultRequest.md | 77 + ...sTemplatesGlobalTemplateDefaultResponse.md | 82 + ...elsTemplatesGlobalTemplatePolicyRequest.md | 135 ++ ...lsTemplatesGlobalTemplatePolicyResponse.md | 160 ++ ...delsTemplatesGlobalTemplateRegexRequest.md | 103 + ...elsTemplatesGlobalTemplateRegexResponse.md | 108 + ...sTemplatesGlobalTemplateSettingsRequest.md | 93 + ...TemplatesGlobalTemplateSettingsResponse.md | 108 + ...platesTemplateEnrollmentDefaultResponse.md | 82 + ...mplatesTemplateEnrollmentPolicyResponse.md | 160 ++ ...emplatesTemplateEnrollmentRegexResponse.md | 108 + ...latesTemplateEnrollmentSettingsResponse.md | 108 + ...ModelsTemplatesValidSubjectPartResponse.md | 82 + ...iModelsWorkflowsAvailableSignalResponse.md | 108 + ...delsWorkflowsAvailableStepQueryResponse.md | 160 ++ ...ApiModelsWorkflowsAvailableStepResponse.md | 160 ++ ...sWorkflowsConditionConfigurationRequest.md | 56 + ...WorkflowsConditionConfigurationResponse.md | 82 + ...iModelsWorkflowsDefinitionCreateRequest.md | 134 ++ ...iModelsWorkflowsDefinitionQueryResponse.md | 212 ++ ...torApiModelsWorkflowsDefinitionResponse.md | 290 +++ ...ApiModelsWorkflowsDefinitionStepRequest.md | 238 ++ ...piModelsWorkflowsDefinitionStepResponse.md | 264 +++ ...lsWorkflowsDefinitionStepSignalResponse.md | 82 + ...iModelsWorkflowsDefinitionUpdateRequest.md | 82 + ...delsWorkflowsInstanceDefinitionResponse.md | 134 ++ ...ApiModelsWorkflowsInstanceQueryResponse.md | 316 +++ ...actorApiModelsWorkflowsInstanceResponse.md | 394 ++++ ...elsWorkflowsParameterDefinitionResponse.md | 238 ++ ...delsWorkflowsSignalConfigurationRequest.md | 82 + ...ModelsWorkflowsSignalDefinitionResponse.md | 56 + ...eyfactorApiModelsWorkflowsSignalRequest.md | 82 + ...odelsWorkflowsWorkflowTypeQueryResponse.md | 134 ++ ...eyfactorApiPAMProviderTypeCreateRequest.md | 77 + ...piPAMProviderTypeParameterCreateRequest.md | 129 ++ ...ctorApiPAMProviderTypeParameterResponse.md | 160 ++ .../KeyfactorApiPAMProviderTypeResponse.md | 108 + .../KeyfactorAuditingQueryingAuditLogEntry.md | 316 +++ ...factorCommonSchedulingKeyfactorSchedule.md | 186 ++ ...ctorCommonSchedulingModelsIntervalModel.md | 56 + ...actorCommonSchedulingModelsMonthlyModel.md | 82 + ...eyfactorCommonSchedulingModelsTimeModel.md | 56 + ...factorCommonSchedulingModelsWeeklyModel.md | 82 + v1/docs/LicenseApi.md | 75 + v1/docs/LogonApi.md | 367 ++++ v1/docs/MacEnrollmentApi.md | 144 ++ v1/docs/MetadataFieldApi.md | 590 +++++ v1/docs/ModelsAgentsAgentPool.md | 155 ++ v1/docs/ModelsAgentsAgentPoolAgent.md | 212 ++ v1/docs/ModelsCRLRequestModel.md | 77 + v1/docs/ModelsCSRContents.md | 51 + v1/docs/ModelsCSRGenerationResponseModel.md | 82 + ...StoreLocationsCertificateLocationsGroup.md | 134 ++ ...ocationsCertificateStoreLocationsDetail.md | 264 +++ v1/docs/ModelsCertStoreNewPasswordRequest.md | 72 + v1/docs/ModelsCertStoreTypePasswordOptions.md | 108 + .../ModelsCertStoreTypeSupportedOperations.md | 160 ++ v1/docs/ModelsCertStoresSchedule.md | 77 + ...tiesCertificateAuthorityAuthCertificate.md | 154 ++ ...eAuthoritiesCertificateAuthorityRequest.md | 862 ++++++++ ...AuthoritiesCertificateAuthorityResponse.md | 888 ++++++++ v1/docs/ModelsCertificateDetails.md | 232 ++ v1/docs/ModelsCertificateDownloadRequest.md | 170 ++ v1/docs/ModelsCertificateDownloadResponse.md | 56 + .../ModelsCertificateImportRequestModel.md | 207 ++ .../ModelsCertificateImportResponseModel.md | 134 ++ v1/docs/ModelsCertificateLocationSpecifier.md | 108 + v1/docs/ModelsCertificateQuery.md | 238 ++ v1/docs/ModelsCertificateRecoveryRequest.md | 191 ++ v1/docs/ModelsCertificateRetrievalResponse.md | 1336 +++++++++++ ...rievalResponseCRLDistributionPointModel.md | 108 + ...ponseCertificateStoreInventoryItemModel.md | 186 ++ ...onseCertificateStoreLocationDetailModel.md | 160 ++ ...eRetrievalResponseDetailedKeyUsageModel.md | 290 +++ ...eRetrievalResponseExtendedKeyUsageModel.md | 108 + ...cateRetrievalResponseLocationCountModel.md | 82 + ...evalResponseSubjectAlternativeNameModel.md | 134 ++ v1/docs/ModelsCertificateStore.md | 472 ++++ ...lsCertificateStoreContainerListResponse.md | 186 ++ ...delsCertificateStoreCreateServerRequest.md | 161 ++ v1/docs/ModelsCertificateStoreEntry.md | 207 ++ v1/docs/ModelsCertificateStoreInventory.md | 108 + ...lsCertificateStoreInventoryCertificates.md | 310 +++ .../ModelsCertificateStoreServerResponse.md | 134 ++ v1/docs/ModelsCertificateStoreTypeProperty.md | 212 ++ ...TypesCertificateStoreTypeEntryParameter.md | 238 ++ ...delsCertificateStoreUpdateServerRequest.md | 161 ++ ...cateStoresCertificateStoreCreateRequest.md | 290 +++ ...cateStoresCertificateStoreUpdateRequest.md | 212 ++ .../ModelsCertificateValidationResponse.md | 82 + v1/docs/ModelsCollectionRolePermissions.md | 82 + v1/docs/ModelsContainerAssignment.md | 129 ++ v1/docs/ModelsCustomReport.md | 186 ++ v1/docs/ModelsCustomReportCreationRequest.md | 145 ++ v1/docs/ModelsCustomReportUpdateRequest.md | 181 ++ v1/docs/ModelsDiscoveryJobRequest.md | 363 +++ v1/docs/ModelsEnrollmentAvailableRenewal.md | 82 + .../ModelsEnrollmentCSREnrollmentRequest.md | 233 ++ .../ModelsEnrollmentCSREnrollmentResponse.md | 82 + .../ModelsEnrollmentCSRGenerationRequest.md | 145 ++ ...mentExistingEnrollmentManagementRequest.md | 160 ++ .../ModelsEnrollmentManagementStoreType.md | 134 ++ .../ModelsEnrollmentPFXEnrollmentRequest.md | 342 +++ .../ModelsEnrollmentPFXEnrollmentResponse.md | 82 + v1/docs/ModelsEnrollmentRenewalRequest.md | 160 ++ v1/docs/ModelsEnrollmentRenewalResponse.md | 248 +++ v1/docs/ModelsExtendedKeyUsage.md | 108 + v1/docs/ModelsInvalidKeystore.md | 186 ++ v1/docs/ModelsKeyfactorAPISecret.md | 108 + v1/docs/ModelsMetadataAllUpdateRequest.md | 103 + v1/docs/ModelsMetadataFieldTypeModel.md | 316 +++ v1/docs/ModelsMetadataSingleUpdateRequest.md | 108 + v1/docs/ModelsMetadataUpdateRequest.md | 77 + ...toringRevocationMonitoringAlertResponse.md | 108 + ...OrchestratorJobsBulkOrchestratorJobPair.md | 82 + v1/docs/ModelsOrchestratorJobsJob.md | 186 ++ ...elsOrchestratorJobsJobTypeCreateRequest.md | 103 + ...delsOrchestratorJobsJobTypeFieldRequest.md | 124 ++ ...elsOrchestratorJobsJobTypeUpdateRequest.md | 124 ++ ...sOrchestratorJobsScheduleBulkJobRequest.md | 124 ++ ...odelsOrchestratorJobsScheduleJobRequest.md | 124 ++ v1/docs/ModelsPKICertificateOperation.md | 186 ++ v1/docs/ModelsPagedQuery.md | 160 ++ v1/docs/ModelsPendingCSRResponse.md | 134 ++ v1/docs/ModelsPkcs10CertificateResponse.md | 284 +++ v1/docs/ModelsPkcs12CertificateResponse.md | 310 +++ ...QueryModelsPagedAgentBlueprintJobsQuery.md | 160 ++ ...delsQueryModelsPagedAgentBlueprintQuery.md | 160 ++ ...eryModelsPagedAgentBlueprintStoresQuery.md | 160 ++ ...elsQueryModelsPagedAgentJobHistoryQuery.md | 160 ++ .../ModelsQueryModelsPagedAgentJobQuery.md | 160 ++ ...elsQueryModelsPagedAgentPoolAgentsQuery.md | 160 ++ .../ModelsQueryModelsPagedAgentPoolQuery.md | 160 ++ v1/docs/ModelsQueryModelsPagedAgentQuery.md | 160 ++ .../ModelsQueryModelsPagedAuditLogQuery.md | 160 ++ ...eryModelsPagedCertificateAuthorityQuery.md | 160 ++ ...QueryModelsPagedCertificateHistoryQuery.md | 134 ++ ...QueryModelsPagedCertificateRequestQuery.md | 160 ++ ...delsPagedCertificateStoreContainerQuery.md | 160 ++ ...delsPagedCertificateStoreInventoryQuery.md | 134 ++ ...lsQueryModelsPagedCertificateStoreQuery.md | 160 ++ ...yModelsPagedCertificateStoreServerQuery.md | 160 ++ ...ModelsQueryModelsPagedCustomReportQuery.md | 186 ++ .../ModelsQueryModelsPagedDeniedAlertQuery.md | 160 ++ ...elsQueryModelsPagedExpirationAlertQuery.md | 160 ++ .../ModelsQueryModelsPagedIssuedAlertQuery.md | 160 ++ ...lsQueryModelsPagedKeyRotationAlertQuery.md | 160 ++ ...ueryModelsPagedLegacyDeniedRequestQuery.md | 160 ++ ...odelsQueryModelsPagedMetadataFieldQuery.md | 160 ++ ...ModelsQueryModelsPagedPendingAlertQuery.md | 160 ++ .../ModelsQueryModelsPagedPendingCSRQuery.md | 160 ++ v1/docs/ModelsQueryModelsPagedReportQuery.md | 186 ++ ...delsQueryModelsPagedReportScheduleQuery.md | 160 ++ ...eryModelsPagedRevocationMonitoringQuery.md | 160 ++ .../ModelsQueryModelsPagedSSHLogonQuery.md | 160 ++ ...delsQueryModelsPagedSSHServerGroupQuery.md | 160 ++ .../ModelsQueryModelsPagedSSHServerQuery.md | 160 ++ ...sQueryModelsPagedSSHServiceAccountQuery.md | 160 ++ ...elsQueryModelsPagedSSHUnmanagedKeyQuery.md | 160 ++ v1/docs/ModelsQueryModelsPagedSSHUserQuery.md | 160 ++ ...ModelsQueryModelsPagedScanJobPartsQuery.md | 186 ++ ...lsQueryModelsPagedSecurityIdentityQuery.md | 186 ++ ...ModelsQueryModelsPagedSecurityRoleQuery.md | 186 ++ .../ModelsQueryModelsPagedSslResultQuery.md | 160 ++ .../ModelsQueryModelsPagedTemplateQuery.md | 160 ++ ...ryModelsWorkflowWorkflowDefinitionQuery.md | 160 ++ ...ueryModelsWorkflowWorkflowInstanceQuery.md | 160 ++ ...ryModelsWorkflowWorkflowStepSchemaQuery.md | 160 ++ ...elsQueryModelsWorkflowWorkflowTypeQuery.md | 160 ++ v1/docs/ModelsRecoveryResponse.md | 82 + v1/docs/ModelsReenrollmentStatus.md | 186 ++ v1/docs/ModelsReport.md | 420 ++++ v1/docs/ModelsReportParameters.md | 238 ++ v1/docs/ModelsReportParametersRequest.md | 134 ++ v1/docs/ModelsReportRequestModel.md | 134 ++ v1/docs/ModelsReportSchedule.md | 264 +++ v1/docs/ModelsRevocationRevocationResponse.md | 82 + ...lsRevocationSuspendedRevocationResponse.md | 108 + v1/docs/ModelsRevokeAllCertificatesRequest.md | 176 ++ v1/docs/ModelsRevokeCertificateRequest.md | 160 ++ .../ModelsSSHAccessLogonUserAccessRequest.md | 82 + .../ModelsSSHAccessLogonUserAccessResponse.md | 108 + v1/docs/ModelsSSHAccessServerAccessRequest.md | 72 + .../ModelsSSHAccessServerAccessResponse.md | 82 + ...ModelsSSHAccessServerGroupAccessRequest.md | 72 + ...odelsSSHAccessServerGroupAccessResponse.md | 82 + v1/docs/ModelsSSHKeysKeyGenerationRequest.md | 161 ++ v1/docs/ModelsSSHKeysKeyResponse.md | 316 +++ v1/docs/ModelsSSHKeysKeyUpdateRequest.md | 98 + v1/docs/ModelsSSHKeysUnmanagedKeyResponse.md | 316 +++ v1/docs/ModelsSSHLogonsLogonAccessRequest.md | 77 + .../ModelsSSHLogonsLogonCreationRequest.md | 98 + v1/docs/ModelsSSHLogonsLogonQueryResponse.md | 238 ++ v1/docs/ModelsSSHLogonsLogonResponse.md | 186 ++ ...HServerGroupsServerGroupCreationRequest.md | 124 ++ ...odelsSSHServerGroupsServerGroupResponse.md | 186 ++ ...SSHServerGroupsServerGroupUpdateRequest.md | 140 ++ .../ModelsSSHServersServerCreationRequest.md | 145 ++ v1/docs/ModelsSSHServersServerResponse.md | 290 +++ .../ModelsSSHServersServerUpdateRequest.md | 103 + ...ceAccountsServiceAccountCreationRequest.md | 114 + ...SHServiceAccountsServiceAccountResponse.md | 134 ++ ...viceAccountsServiceAccountUpdateRequest.md | 72 + ...countsServiceAccountUserCreationRequest.md | 77 + .../ModelsSSHUsersSshUserAccessResponse.md | 160 ++ .../ModelsSSHUsersSshUserCreationRequest.md | 77 + v1/docs/ModelsSSHUsersSshUserResponse.md | 134 ++ v1/docs/ModelsSSHUsersSshUserUpdateRequest.md | 77 + v1/docs/ModelsSSLDisplayScanJobPart.md | 186 ++ v1/docs/ModelsSSLEndpoint.md | 238 ++ v1/docs/ModelsSSLEndpointHistoryResponse.md | 264 +++ ...EndpointHistoryResponseCertificateModel.md | 320 +++ v1/docs/ModelsSSLEndpointStatusRequest.md | 72 + v1/docs/ModelsSSLImmediateSslScanRequest.md | 72 + v1/docs/ModelsSSLNetworkDefinition.md | 82 + v1/docs/ModelsSSLNetworkRangesRequest.md | 72 + v1/docs/ModelsSSLScanJobPart.md | 472 ++++ v1/docs/ModelsSSLScanJobPartDefinition.md | 82 + v1/docs/ModelsSSLSslScanResult.md | 316 +++ .../ModelsSecurityCertificatePermissions.md | 56 + ...tyIdentitiesPermissionRolesPairResponse.md | 82 + ...ityIdentitiesSecurityIdentityIdentifier.md | 82 + ...dentitiesSecurityIdentityLookupResponse.md | 56 + ...tiesSecurityIdentityPermissionsResponse.md | 134 ++ ...curityIdentitiesSecurityIdentityRequest.md | 51 + ...ecurityRolesSecurityRoleCreationRequest.md | 176 ++ ...tySecurityRolesSecurityRoleResponseBase.md | 82 + ...ySecurityRolesSecurityRoleUpdateRequest.md | 197 ++ v1/docs/ModelsSubjectAlternativeName.md | 134 ++ ...delsTemplateCollectionRetrievalResponse.md | 576 +++++ ...nRetrievalResponseExtendedKeyUsageModel.md | 108 + ...valResponseTemplateEnrollmentFieldModel.md | 134 ++ ...tionRetrievalResponseTemplateRegexModel.md | 134 ++ v1/docs/ModelsTemplateEnrollmentField.md | 134 ++ v1/docs/ModelsTemplateMetadataField.md | 186 ++ v1/docs/ModelsTemplateRegex.md | 134 ++ v1/docs/ModelsTemplateRetrievalResponse.md | 716 ++++++ ...eRetrievalResponseExtendedKeyUsageModel.md | 108 + ...teRetrievalResponseTemplateDefaultModel.md | 82 + ...valResponseTemplateEnrollmentFieldModel.md | 134 ++ ...ievalResponseTemplateMetadataFieldModel.md | 186 ++ ...ateRetrievalResponseTemplatePolicyModel.md | 186 ++ ...lateRetrievalResponseTemplateRegexModel.md | 134 ++ v1/docs/ModelsTemplateUpdateRequest.md | 472 ++++ ...mplateUpdateRequestTemplateDefaultModel.md | 82 + ...dateRequestTemplateEnrollmentFieldModel.md | 134 ++ ...UpdateRequestTemplateMetadataFieldModel.md | 186 ++ ...emplateUpdateRequestTemplatePolicyModel.md | 186 ++ ...TemplateUpdateRequestTemplateRegexModel.md | 134 ++ v1/docs/ModelsWorkflowApproveDenyResult.md | 108 + ...orkflowCertificateRequestCertStoreModel.md | 108 + ...sWorkflowCertificateRequestDetailsModel.md | 456 ++++ .../ModelsWorkflowCertificateRequestModel.md | 316 +++ v1/docs/ModelsWorkflowDenialRequest.md | 82 + ...delsWorkflowProcessedCertificateRequest.md | 186 ++ v1/docs/MonitoringApi.md | 574 +++++ v1/docs/OrchestratorJobApi.md | 570 +++++ v1/docs/PAMProviderApi.md | 515 +++++ v1/docs/PendingAlertApi.md | 641 ++++++ v1/docs/ReportsApi.md | 1111 ++++++++++ v1/docs/SMTPApi.md | 213 ++ v1/docs/SecurityApi.md | 221 ++ v1/docs/SecurityRolePermissionsApi.md | 762 +++++++ v1/docs/SecurityRolesApi.md | 227 ++ v1/docs/ServerApi.md | 578 +++++ v1/docs/ServerGroupApi.md | 651 ++++++ v1/docs/ServiceAccountApi.md | 584 +++++ v1/docs/SslApi.md | 1444 ++++++++++++ v1/docs/StatusApi.md | 75 + v1/docs/TemplateApi.md | 497 +++++ v1/docs/UserApi.md | 438 ++++ v1/docs/WorkflowApi.md | 373 ++++ v1/docs/WorkflowDefinitionApi.md | 754 +++++++ v1/docs/WorkflowInstanceApi.md | 600 +++++ {v2 => v1}/go.mod | 4 +- {v2 => v1}/go.sum | 1 - v1/integration-manifest.json | 8 + v1/test/api_agent_blueprint_test.go | 115 + .../test}/api_agent_pool_test.go | 71 +- v1/test/api_agent_test.go | 122 ++ v1/test/api_audit_log_test.go | 89 + .../test}/api_certificate_authority_test.go | 76 +- v1/test/api_certificate_collection_test.go | 114 + .../api_certificate_store_container_test.go | 50 + v1/test/api_certificate_store_test.go | 166 ++ v1/test/api_certificate_store_type_test.go | 113 + .../test}/api_certificate_test.go | 182 +- v1/test/api_csr_generation_test.go | 87 + v1/test/api_custom_job_type_test.go | 88 + v1/test/api_denied_alert_test.go | 88 + v1/test/api_enrollment_test.go | 163 ++ .../test}/api_expiration_alert_test.go | 86 +- .../test}/api_issued_alert_test.go | 76 +- .../test}/api_key_rotation_alert_test.go | 86 +- {v2/api/command => v1/test}/api_key_test.go | 76 +- v1/test/api_license_test.go | 37 + v1/test/api_logon_test.go | 88 + v1/test/api_mac_enrollment_test.go | 49 + v1/test/api_metadata_field_test.go | 127 ++ .../test}/api_monitoring_test.go | 81 +- .../test}/api_orchestrator_job_test.go | 69 +- .../test}/api_pam_provider_test.go | 76 +- .../test}/api_pending_alert_test.go | 86 +- v1/test/api_reports_test.go | 223 ++ v1/test/api_security_role_permissions_test.go | 165 ++ v1/test/api_security_roles_test.go | 66 + v1/test/api_security_test.go | 64 + .../test}/api_server_group_test.go | 98 +- .../command => v1/test}/api_server_test.go | 87 +- v1/test/api_service_account_test.go | 127 ++ {v2/api/command => v1/test}/api_smtp_test.go | 44 +- {v2/api/command => v1/test}/api_ssl_test.go | 183 +- v1/test/api_status_test.go | 37 + .../command => v1/test}/api_template_test.go | 70 +- {v2/api/command => v1/test}/api_user_test.go | 71 +- v1/test/api_workflow_definition_test.go | 156 ++ v1/test/api_workflow_instance_test.go | 127 ++ .../command => v1/test}/api_workflow_test.go | 60 +- v10/go.mod | 2 +- v2/api/command/api_agent_blueprint_test.go | 127 -- v2/api/command/api_agent_test.go | 127 -- v2/api/command/api_audit_log_test.go | 99 - .../api_certificate_collection_test.go | 122 -- .../api_certificate_store_container_test.go | 65 - v2/api/command/api_certificate_store_test.go | 197 -- .../api_certificate_store_type_test.go | 121 - v2/api/command/api_csr_generation_test.go | 97 - v2/api/command/api_custom_job_type_test.go | 98 - v2/api/command/api_denied_alert_test.go | 98 - v2/api/command/api_enrollment_test.go | 245 --- v2/api/command/api_license_test.go | 51 - v2/api/command/api_logon_test.go | 98 - v2/api/command/api_mac_enrollment_test.go | 60 - v2/api/command/api_metadata_field_test.go | 136 -- v2/api/command/api_reports_test.go | 235 -- .../api_security_role_permissions_test.go | 192 -- v2/api/command/api_security_roles_test.go | 86 - v2/api/command/api_security_test.go | 80 - v2/api/command/api_service_account_test.go | 136 -- v2/api/command/api_status_test.go | 51 - .../command/api_workflow_definition_test.go | 167 -- v2/api/command/api_workflow_instance_test.go | 140 -- 903 files changed, 211501 insertions(+), 7946 deletions(-) create mode 100644 v1/LICENSE create mode 100644 v1/Makefile create mode 100644 v1/README.md rename {v2/api/command => v1/api/keyfactor}/api_agent.go (88%) rename {v2/api/command => v1/api/keyfactor}/api_agent_blueprint.go (93%) rename {v2/api/command => v1/api/keyfactor}/api_agent_pool.go (92%) rename {v2/api/command => v1/api/keyfactor}/api_audit_log.go (93%) rename {v2/api/command => v1/api/keyfactor}/api_certificate.go (93%) rename {v2/api/command => v1/api/keyfactor}/api_certificate_authority.go (93%) rename {v2/api/command => v1/api/keyfactor}/api_certificate_collection.go (92%) rename {v2/api/command => v1/api/keyfactor}/api_certificate_store.go (67%) rename {v2/api/command => v1/api/keyfactor}/api_certificate_store_container.go (92%) rename {v2/api/command => v1/api/keyfactor}/api_certificate_store_type.go (93%) rename {v2/api/command => v1/api/keyfactor}/api_csr_generation.go (92%) rename {v2/api/command => v1/api/keyfactor}/api_custom_job_type.go (93%) rename {v2/api/command => v1/api/keyfactor}/api_denied_alert.go (93%) rename {v2/api/command => v1/api/keyfactor}/api_enrollment.go (92%) rename {v2/api/command => v1/api/keyfactor}/api_expiration_alert.go (93%) rename {v2/api/command => v1/api/keyfactor}/api_issued_alert.go (93%) rename {v2/api/command => v1/api/keyfactor}/api_key.go (92%) rename {v2/api/command => v1/api/keyfactor}/api_key_rotation_alert.go (93%) rename {v2/api/command => v1/api/keyfactor}/api_license.go (89%) rename {v2/api/command => v1/api/keyfactor}/api_logon.go (92%) rename {v2/api/command => v1/api/keyfactor}/api_mac_enrollment.go (91%) rename {v2/api/command => v1/api/keyfactor}/api_metadata_field.go (93%) rename {v2/api/command => v1/api/keyfactor}/api_monitoring.go (93%) rename {v2/api/command => v1/api/keyfactor}/api_orchestrator_job.go (93%) rename {v2/api/command => v1/api/keyfactor}/api_pam_provider.go (91%) rename {v2/api/command => v1/api/keyfactor}/api_pending_alert.go (93%) rename {v2/api/command => v1/api/keyfactor}/api_reports.go (93%) rename {v2/api/command => v1/api/keyfactor}/api_security.go (91%) rename {v2/api/command => v1/api/keyfactor}/api_security_role_permissions.go (92%) rename {v2/api/command => v1/api/keyfactor}/api_security_roles.go (92%) rename {v2/api/command => v1/api/keyfactor}/api_server.go (92%) rename {v2/api/command => v1/api/keyfactor}/api_server_group.go (93%) rename {v2/api/command => v1/api/keyfactor}/api_service_account.go (93%) rename {v2/api/command => v1/api/keyfactor}/api_smtp.go (91%) rename {v2/api/command => v1/api/keyfactor}/api_ssl.go (93%) rename {v2/api/command => v1/api/keyfactor}/api_status.go (89%) rename {v2/api/command => v1/api/keyfactor}/api_template.go (93%) rename {v2/api/command => v1/api/keyfactor}/api_user.go (92%) rename {v2/api/command => v1/api/keyfactor}/api_workflow.go (93%) rename {v2/api/command => v1/api/keyfactor}/api_workflow_definition.go (93%) rename {v2/api/command => v1/api/keyfactor}/api_workflow_instance.go (93%) rename {v2/api/command => v1/api/keyfactor}/client.go (95%) rename {v2/api/command => v1/api/keyfactor}/configuration.go (51%) create mode 100644 v1/api/keyfactor/model_core_models_enrollment_enrollment_ca.go create mode 100644 v1/api/keyfactor/model_core_models_enrollment_enrollment_template.go create mode 100644 v1/api/keyfactor/model_core_models_enrollment_enrollment_template_ca_response.go rename {v2/api/command => v1/api/keyfactor}/model_css_cms_data_model_models_pam_provider_type_param_value.go (97%) rename {v2/api/command => v1/api/keyfactor}/model_css_cms_data_model_models_provider.go (97%) rename {v2/api/command => v1/api/keyfactor}/model_css_cms_data_model_models_provider_type.go (96%) rename {v2/api/command => v1/api/keyfactor}/model_css_cms_data_model_models_provider_type_param.go (97%) create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_alerts_alert_certificate_query_alert_certificate_query_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_alerts_alert_schedule_alert_schedule_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_alerts_alert_schedule_alert_schedule_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_alerts_alert_template_alert_template_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_alerts_denied_denied_alert_creation_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_alerts_denied_denied_alert_definition_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_alerts_denied_denied_alert_update_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_alerts_expiration_expiration_alert_creation_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_alerts_expiration_expiration_alert_definition_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_alerts_expiration_expiration_alert_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_alerts_expiration_expiration_alert_test_all_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_alerts_expiration_expiration_alert_test_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_alerts_expiration_expiration_alert_test_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_alerts_expiration_expiration_alert_update_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_alerts_issued_issued_alert_creation_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_alerts_issued_issued_alert_definition_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_alerts_issued_issued_alert_update_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_alerts_key_rotation_key_rotation_alert_creation_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_alerts_key_rotation_key_rotation_alert_definition_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_alerts_key_rotation_key_rotation_alert_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_alerts_key_rotation_key_rotation_alert_test_all_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_alerts_key_rotation_key_rotation_alert_test_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_alerts_key_rotation_key_rotation_alert_test_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_alerts_key_rotation_key_rotation_alert_update_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_alerts_pending_pending_alert_creation_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_alerts_pending_pending_alert_definition_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_alerts_pending_pending_alert_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_alerts_pending_pending_alert_test_all_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_alerts_pending_pending_alert_test_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_alerts_pending_pending_alert_test_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_alerts_pending_pending_alert_update_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_certificate_authorities_certificate_authority_test_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_certificate_collections_certificate_collection_copy_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_certificate_collections_certificate_collection_create_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_certificate_collections_certificate_collection_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_certificate_collections_certificate_collection_update_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_certificate_stores_add_certificate_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_certificate_stores_certificate_store_approve_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_certificate_stores_job_history_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_certificate_stores_reenrollment_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_certificate_stores_remove_certificate_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_certificate_stores_types_certificate_store_type_creation_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_certificate_stores_types_certificate_store_type_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_certificate_stores_types_certificate_store_type_update_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_certificates_analyze_certificate_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_certificates_certificate_identity_audit_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_certificates_certificate_identity_audit_response_certificate_permission.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_certificates_certificate_locations_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_certificates_certificate_query_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_configuration_tenant_configuration_tenant_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_enrollment_enrollment_management_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_enrollment_enrollment_management_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_enrollment_management_store_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_enrollment_management_store_type_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_event_handler_event_handler_parameter_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_event_handler_event_handler_parameter_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_event_handler_registered_event_handler_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_event_handler_registered_event_handler_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_license_license_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_license_license_response_license.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_license_license_response_licensed_customer.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_license_license_response_licensed_feature.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_license_license_response_licensed_product.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_mac_enrollment_mac_enrollment_api_model.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_metadata_field_metadata_field_create_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_metadata_field_metadata_field_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_metadata_field_metadata_field_update_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_monitoring_dashboard_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_monitoring_dashboard_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_monitoring_email_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_monitoring_email_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_monitoring_ocsp_parameters_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_monitoring_ocsp_parameters_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_monitoring_revocation_monitoring_alert_test_all_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_monitoring_revocation_monitoring_alert_test_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_monitoring_revocation_monitoring_alert_test_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_monitoring_revocation_monitoring_creation_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_monitoring_revocation_monitoring_definition_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_monitoring_revocation_monitoring_update_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_orchestrator_jobs_acknowledge_job_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_orchestrator_jobs_bulk_job_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_orchestrator_jobs_custom_job_result_data_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_orchestrator_jobs_job_field_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_orchestrator_jobs_job_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_orchestrator_jobs_job_type_field_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_orchestrator_jobs_job_type_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_orchestrator_jobs_reschedule_job_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_orchestrator_jobs_unschedule_job_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_orchestrators_agent_blueprint_jobs_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_orchestrators_agent_blueprint_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_orchestrators_agent_blueprint_stores_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_orchestrators_agent_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_orchestrators_update_orchestrator_auth_certificate_reenrollment_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_orchestrators_update_orchestrator_auth_certificate_reenrollment_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_security_roles_area_permission_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_security_roles_container_permission_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_security_roles_container_permission_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_security_roles_identities_security_roles_collection_permission_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_security_roles_identities_security_roles_collection_permission_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_security_roles_identities_security_roles_global_permission_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_security_roles_identities_security_roles_global_permission_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_security_roles_role_identities_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_security_roles_role_identities_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_security_roles_security_role_copy_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_smtp_smtp_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_smtp_smtp_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_smtp_smtp_test_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_smtp_smtp_test_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_ssl_create_network_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_ssl_network_query_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_ssl_network_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_ssl_quiet_hour_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_ssl_quiet_hour_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_ssl_update_network_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_templates_global_template_default_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_templates_global_template_default_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_templates_global_template_policy_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_templates_global_template_policy_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_templates_global_template_regex_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_templates_global_template_regex_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_templates_global_template_settings_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_templates_global_template_settings_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_templates_template_enrollment_default_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_templates_template_enrollment_policy_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_templates_template_enrollment_regex_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_templates_template_enrollment_settings_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_templates_valid_subject_part_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_workflows_available_signal_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_workflows_available_step_query_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_workflows_available_step_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_workflows_condition_configuration_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_workflows_condition_configuration_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_workflows_definition_create_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_workflows_definition_query_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_workflows_definition_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_workflows_definition_step_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_workflows_definition_step_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_workflows_definition_step_signal_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_workflows_definition_update_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_workflows_instance_definition_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_workflows_instance_query_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_workflows_instance_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_workflows_parameter_definition_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_workflows_signal_configuration_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_workflows_signal_definition_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_workflows_signal_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_models_workflows_workflow_type_query_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_pam_provider_type_create_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_pam_provider_type_parameter_create_request.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_pam_provider_type_parameter_response.go create mode 100644 v1/api/keyfactor/model_keyfactor_api_pam_provider_type_response.go rename {v2/api/command => v1/api/keyfactor}/model_keyfactor_auditing_querying_audit_log_entry.go (98%) rename {v2/api/command => v1/api/keyfactor}/model_keyfactor_common_scheduling_keyfactor_schedule.go (97%) rename {v2/api/command => v1/api/keyfactor}/model_keyfactor_common_scheduling_models_interval_model.go (95%) rename {v2/api/command => v1/api/keyfactor}/model_keyfactor_common_scheduling_models_monthly_model.go (96%) rename {v2/api/command => v1/api/keyfactor}/model_keyfactor_common_scheduling_models_time_model.go (95%) rename {v2/api/command => v1/api/keyfactor}/model_keyfactor_common_scheduling_models_weekly_model.go (96%) create mode 100644 v1/api/keyfactor/model_models_agents_agent_pool.go create mode 100644 v1/api/keyfactor/model_models_agents_agent_pool_agent.go create mode 100644 v1/api/keyfactor/model_models_cert_store_locations_certificate_locations_group.go create mode 100644 v1/api/keyfactor/model_models_cert_store_locations_certificate_store_locations_detail.go create mode 100644 v1/api/keyfactor/model_models_cert_store_new_password_request.go create mode 100644 v1/api/keyfactor/model_models_cert_store_type_password_options.go create mode 100644 v1/api/keyfactor/model_models_cert_store_type_supported_operations.go create mode 100644 v1/api/keyfactor/model_models_cert_stores_schedule.go create mode 100644 v1/api/keyfactor/model_models_certificate_authorities_certificate_authority_auth_certificate.go create mode 100644 v1/api/keyfactor/model_models_certificate_authorities_certificate_authority_request.go create mode 100644 v1/api/keyfactor/model_models_certificate_authorities_certificate_authority_response.go create mode 100644 v1/api/keyfactor/model_models_certificate_details.go create mode 100644 v1/api/keyfactor/model_models_certificate_download_request.go create mode 100644 v1/api/keyfactor/model_models_certificate_download_response.go create mode 100644 v1/api/keyfactor/model_models_certificate_import_request_model.go create mode 100644 v1/api/keyfactor/model_models_certificate_import_response_model.go create mode 100644 v1/api/keyfactor/model_models_certificate_location_specifier.go create mode 100644 v1/api/keyfactor/model_models_certificate_query.go create mode 100644 v1/api/keyfactor/model_models_certificate_recovery_request.go create mode 100644 v1/api/keyfactor/model_models_certificate_retrieval_response.go create mode 100644 v1/api/keyfactor/model_models_certificate_retrieval_response_certificate_store_inventory_item_model.go create mode 100644 v1/api/keyfactor/model_models_certificate_retrieval_response_certificate_store_location_detail_model.go create mode 100644 v1/api/keyfactor/model_models_certificate_retrieval_response_crl_distribution_point_model.go create mode 100644 v1/api/keyfactor/model_models_certificate_retrieval_response_detailed_key_usage_model.go create mode 100644 v1/api/keyfactor/model_models_certificate_retrieval_response_extended_key_usage_model.go create mode 100644 v1/api/keyfactor/model_models_certificate_retrieval_response_location_count_model.go create mode 100644 v1/api/keyfactor/model_models_certificate_retrieval_response_subject_alternative_name_model.go create mode 100644 v1/api/keyfactor/model_models_certificate_store.go create mode 100644 v1/api/keyfactor/model_models_certificate_store_container_list_response.go create mode 100644 v1/api/keyfactor/model_models_certificate_store_create_server_request.go create mode 100644 v1/api/keyfactor/model_models_certificate_store_entry.go create mode 100644 v1/api/keyfactor/model_models_certificate_store_inventory.go create mode 100644 v1/api/keyfactor/model_models_certificate_store_inventory_certificates.go create mode 100644 v1/api/keyfactor/model_models_certificate_store_server_response.go create mode 100644 v1/api/keyfactor/model_models_certificate_store_type_property.go create mode 100644 v1/api/keyfactor/model_models_certificate_store_types_certificate_store_type_entry_parameter.go create mode 100644 v1/api/keyfactor/model_models_certificate_store_update_server_request.go create mode 100644 v1/api/keyfactor/model_models_certificate_stores_certificate_store_create_request.go create mode 100644 v1/api/keyfactor/model_models_certificate_stores_certificate_store_update_request.go create mode 100644 v1/api/keyfactor/model_models_certificate_validation_response.go create mode 100644 v1/api/keyfactor/model_models_collection_role_permissions.go create mode 100644 v1/api/keyfactor/model_models_container_assignment.go create mode 100644 v1/api/keyfactor/model_models_crl_request_model.go create mode 100644 v1/api/keyfactor/model_models_csr_contents.go create mode 100644 v1/api/keyfactor/model_models_csr_generation_response_model.go create mode 100644 v1/api/keyfactor/model_models_custom_report.go create mode 100644 v1/api/keyfactor/model_models_custom_report_creation_request.go create mode 100644 v1/api/keyfactor/model_models_custom_report_update_request.go create mode 100644 v1/api/keyfactor/model_models_discovery_job_request.go create mode 100644 v1/api/keyfactor/model_models_enrollment_available_renewal.go create mode 100644 v1/api/keyfactor/model_models_enrollment_csr_enrollment_request.go create mode 100644 v1/api/keyfactor/model_models_enrollment_csr_enrollment_response.go create mode 100644 v1/api/keyfactor/model_models_enrollment_csr_generation_request.go create mode 100644 v1/api/keyfactor/model_models_enrollment_existing_enrollment_management_request.go create mode 100644 v1/api/keyfactor/model_models_enrollment_management_store_type.go create mode 100644 v1/api/keyfactor/model_models_enrollment_pfx_enrollment_request.go create mode 100644 v1/api/keyfactor/model_models_enrollment_pfx_enrollment_response.go create mode 100644 v1/api/keyfactor/model_models_enrollment_renewal_request.go create mode 100644 v1/api/keyfactor/model_models_enrollment_renewal_response.go create mode 100644 v1/api/keyfactor/model_models_extended_key_usage.go create mode 100644 v1/api/keyfactor/model_models_invalid_keystore.go create mode 100644 v1/api/keyfactor/model_models_keyfactor_api_secret.go create mode 100644 v1/api/keyfactor/model_models_metadata_all_update_request.go create mode 100644 v1/api/keyfactor/model_models_metadata_field_type_model.go create mode 100644 v1/api/keyfactor/model_models_metadata_single_update_request.go create mode 100644 v1/api/keyfactor/model_models_metadata_update_request.go create mode 100644 v1/api/keyfactor/model_models_monitoring_revocation_monitoring_alert_response.go create mode 100644 v1/api/keyfactor/model_models_orchestrator_jobs_bulk_orchestrator_job_pair.go create mode 100644 v1/api/keyfactor/model_models_orchestrator_jobs_job.go create mode 100644 v1/api/keyfactor/model_models_orchestrator_jobs_job_type_create_request.go create mode 100644 v1/api/keyfactor/model_models_orchestrator_jobs_job_type_field_request.go create mode 100644 v1/api/keyfactor/model_models_orchestrator_jobs_job_type_update_request.go create mode 100644 v1/api/keyfactor/model_models_orchestrator_jobs_schedule_bulk_job_request.go create mode 100644 v1/api/keyfactor/model_models_orchestrator_jobs_schedule_job_request.go create mode 100644 v1/api/keyfactor/model_models_paged_query.go create mode 100644 v1/api/keyfactor/model_models_pending_csr_response.go create mode 100644 v1/api/keyfactor/model_models_pkcs10_certificate_response.go create mode 100644 v1/api/keyfactor/model_models_pkcs12_certificate_response.go create mode 100644 v1/api/keyfactor/model_models_pki_certificate_operation.go create mode 100644 v1/api/keyfactor/model_models_query_models_paged_agent_blueprint_jobs_query.go create mode 100644 v1/api/keyfactor/model_models_query_models_paged_agent_blueprint_query.go create mode 100644 v1/api/keyfactor/model_models_query_models_paged_agent_blueprint_stores_query.go create mode 100644 v1/api/keyfactor/model_models_query_models_paged_agent_job_history_query.go create mode 100644 v1/api/keyfactor/model_models_query_models_paged_agent_job_query.go create mode 100644 v1/api/keyfactor/model_models_query_models_paged_agent_pool_agents_query.go create mode 100644 v1/api/keyfactor/model_models_query_models_paged_agent_pool_query.go create mode 100644 v1/api/keyfactor/model_models_query_models_paged_agent_query.go create mode 100644 v1/api/keyfactor/model_models_query_models_paged_audit_log_query.go create mode 100644 v1/api/keyfactor/model_models_query_models_paged_certificate_authority_query.go create mode 100644 v1/api/keyfactor/model_models_query_models_paged_certificate_history_query.go create mode 100644 v1/api/keyfactor/model_models_query_models_paged_certificate_request_query.go create mode 100644 v1/api/keyfactor/model_models_query_models_paged_certificate_store_container_query.go create mode 100644 v1/api/keyfactor/model_models_query_models_paged_certificate_store_inventory_query.go create mode 100644 v1/api/keyfactor/model_models_query_models_paged_certificate_store_query.go create mode 100644 v1/api/keyfactor/model_models_query_models_paged_certificate_store_server_query.go create mode 100644 v1/api/keyfactor/model_models_query_models_paged_custom_report_query.go create mode 100644 v1/api/keyfactor/model_models_query_models_paged_denied_alert_query.go create mode 100644 v1/api/keyfactor/model_models_query_models_paged_expiration_alert_query.go create mode 100644 v1/api/keyfactor/model_models_query_models_paged_issued_alert_query.go create mode 100644 v1/api/keyfactor/model_models_query_models_paged_key_rotation_alert_query.go create mode 100644 v1/api/keyfactor/model_models_query_models_paged_legacy_denied_request_query.go create mode 100644 v1/api/keyfactor/model_models_query_models_paged_metadata_field_query.go create mode 100644 v1/api/keyfactor/model_models_query_models_paged_pending_alert_query.go create mode 100644 v1/api/keyfactor/model_models_query_models_paged_pending_csr_query.go create mode 100644 v1/api/keyfactor/model_models_query_models_paged_report_query.go create mode 100644 v1/api/keyfactor/model_models_query_models_paged_report_schedule_query.go create mode 100644 v1/api/keyfactor/model_models_query_models_paged_revocation_monitoring_query.go create mode 100644 v1/api/keyfactor/model_models_query_models_paged_scan_job_parts_query.go create mode 100644 v1/api/keyfactor/model_models_query_models_paged_security_identity_query.go create mode 100644 v1/api/keyfactor/model_models_query_models_paged_security_role_query.go create mode 100644 v1/api/keyfactor/model_models_query_models_paged_ssh_logon_query.go create mode 100644 v1/api/keyfactor/model_models_query_models_paged_ssh_server_group_query.go create mode 100644 v1/api/keyfactor/model_models_query_models_paged_ssh_server_query.go create mode 100644 v1/api/keyfactor/model_models_query_models_paged_ssh_service_account_query.go create mode 100644 v1/api/keyfactor/model_models_query_models_paged_ssh_unmanaged_key_query.go create mode 100644 v1/api/keyfactor/model_models_query_models_paged_ssh_user_query.go create mode 100644 v1/api/keyfactor/model_models_query_models_paged_ssl_result_query.go create mode 100644 v1/api/keyfactor/model_models_query_models_paged_template_query.go create mode 100644 v1/api/keyfactor/model_models_query_models_workflow_workflow_definition_query.go create mode 100644 v1/api/keyfactor/model_models_query_models_workflow_workflow_instance_query.go create mode 100644 v1/api/keyfactor/model_models_query_models_workflow_workflow_step_schema_query.go create mode 100644 v1/api/keyfactor/model_models_query_models_workflow_workflow_type_query.go create mode 100644 v1/api/keyfactor/model_models_recovery_response.go create mode 100644 v1/api/keyfactor/model_models_reenrollment_status.go create mode 100644 v1/api/keyfactor/model_models_report.go create mode 100644 v1/api/keyfactor/model_models_report_parameters.go create mode 100644 v1/api/keyfactor/model_models_report_parameters_request.go create mode 100644 v1/api/keyfactor/model_models_report_request_model.go create mode 100644 v1/api/keyfactor/model_models_report_schedule.go create mode 100644 v1/api/keyfactor/model_models_revocation_revocation_response.go create mode 100644 v1/api/keyfactor/model_models_revocation_suspended_revocation_response.go create mode 100644 v1/api/keyfactor/model_models_revoke_all_certificates_request.go create mode 100644 v1/api/keyfactor/model_models_revoke_certificate_request.go create mode 100644 v1/api/keyfactor/model_models_security_certificate_permissions.go create mode 100644 v1/api/keyfactor/model_models_security_identities_permission_roles_pair_response.go create mode 100644 v1/api/keyfactor/model_models_security_identities_security_identity_identifier.go create mode 100644 v1/api/keyfactor/model_models_security_identities_security_identity_lookup_response.go create mode 100644 v1/api/keyfactor/model_models_security_identities_security_identity_permissions_response.go create mode 100644 v1/api/keyfactor/model_models_security_identities_security_identity_request.go create mode 100644 v1/api/keyfactor/model_models_security_security_roles_security_role_creation_request.go create mode 100644 v1/api/keyfactor/model_models_security_security_roles_security_role_response_base.go create mode 100644 v1/api/keyfactor/model_models_security_security_roles_security_role_update_request.go create mode 100644 v1/api/keyfactor/model_models_ssh_access_logon_user_access_request.go create mode 100644 v1/api/keyfactor/model_models_ssh_access_logon_user_access_response.go create mode 100644 v1/api/keyfactor/model_models_ssh_access_server_access_request.go create mode 100644 v1/api/keyfactor/model_models_ssh_access_server_access_response.go create mode 100644 v1/api/keyfactor/model_models_ssh_access_server_group_access_request.go create mode 100644 v1/api/keyfactor/model_models_ssh_access_server_group_access_response.go create mode 100644 v1/api/keyfactor/model_models_ssh_keys_key_generation_request.go create mode 100644 v1/api/keyfactor/model_models_ssh_keys_key_response.go create mode 100644 v1/api/keyfactor/model_models_ssh_keys_key_update_request.go create mode 100644 v1/api/keyfactor/model_models_ssh_keys_unmanaged_key_response.go create mode 100644 v1/api/keyfactor/model_models_ssh_logons_logon_access_request.go create mode 100644 v1/api/keyfactor/model_models_ssh_logons_logon_creation_request.go create mode 100644 v1/api/keyfactor/model_models_ssh_logons_logon_query_response.go create mode 100644 v1/api/keyfactor/model_models_ssh_logons_logon_response.go create mode 100644 v1/api/keyfactor/model_models_ssh_server_groups_server_group_creation_request.go create mode 100644 v1/api/keyfactor/model_models_ssh_server_groups_server_group_response.go create mode 100644 v1/api/keyfactor/model_models_ssh_server_groups_server_group_update_request.go create mode 100644 v1/api/keyfactor/model_models_ssh_servers_server_creation_request.go create mode 100644 v1/api/keyfactor/model_models_ssh_servers_server_response.go create mode 100644 v1/api/keyfactor/model_models_ssh_servers_server_update_request.go create mode 100644 v1/api/keyfactor/model_models_ssh_service_accounts_service_account_creation_request.go create mode 100644 v1/api/keyfactor/model_models_ssh_service_accounts_service_account_response.go create mode 100644 v1/api/keyfactor/model_models_ssh_service_accounts_service_account_update_request.go create mode 100644 v1/api/keyfactor/model_models_ssh_service_accounts_service_account_user_creation_request.go create mode 100644 v1/api/keyfactor/model_models_ssh_users_ssh_user_access_response.go create mode 100644 v1/api/keyfactor/model_models_ssh_users_ssh_user_creation_request.go create mode 100644 v1/api/keyfactor/model_models_ssh_users_ssh_user_response.go create mode 100644 v1/api/keyfactor/model_models_ssh_users_ssh_user_update_request.go create mode 100644 v1/api/keyfactor/model_models_ssl_display_scan_job_part.go create mode 100644 v1/api/keyfactor/model_models_ssl_endpoint.go create mode 100644 v1/api/keyfactor/model_models_ssl_endpoint_history_response.go create mode 100644 v1/api/keyfactor/model_models_ssl_endpoint_history_response_certificate_model.go create mode 100644 v1/api/keyfactor/model_models_ssl_endpoint_status_request.go create mode 100644 v1/api/keyfactor/model_models_ssl_immediate_ssl_scan_request.go create mode 100644 v1/api/keyfactor/model_models_ssl_network_definition.go create mode 100644 v1/api/keyfactor/model_models_ssl_network_ranges_request.go create mode 100644 v1/api/keyfactor/model_models_ssl_scan_job_part.go create mode 100644 v1/api/keyfactor/model_models_ssl_scan_job_part_definition.go create mode 100644 v1/api/keyfactor/model_models_ssl_ssl_scan_result.go create mode 100644 v1/api/keyfactor/model_models_subject_alternative_name.go create mode 100644 v1/api/keyfactor/model_models_template_collection_retrieval_response.go create mode 100644 v1/api/keyfactor/model_models_template_collection_retrieval_response_extended_key_usage_model.go create mode 100644 v1/api/keyfactor/model_models_template_collection_retrieval_response_template_enrollment_field_model.go create mode 100644 v1/api/keyfactor/model_models_template_collection_retrieval_response_template_regex_model.go create mode 100644 v1/api/keyfactor/model_models_template_enrollment_field.go create mode 100644 v1/api/keyfactor/model_models_template_metadata_field.go create mode 100644 v1/api/keyfactor/model_models_template_regex.go create mode 100644 v1/api/keyfactor/model_models_template_retrieval_response.go create mode 100644 v1/api/keyfactor/model_models_template_retrieval_response_extended_key_usage_model.go create mode 100644 v1/api/keyfactor/model_models_template_retrieval_response_template_default_model.go create mode 100644 v1/api/keyfactor/model_models_template_retrieval_response_template_enrollment_field_model.go create mode 100644 v1/api/keyfactor/model_models_template_retrieval_response_template_metadata_field_model.go create mode 100644 v1/api/keyfactor/model_models_template_retrieval_response_template_policy_model.go create mode 100644 v1/api/keyfactor/model_models_template_retrieval_response_template_regex_model.go create mode 100644 v1/api/keyfactor/model_models_template_update_request.go create mode 100644 v1/api/keyfactor/model_models_template_update_request_template_default_model.go create mode 100644 v1/api/keyfactor/model_models_template_update_request_template_enrollment_field_model.go create mode 100644 v1/api/keyfactor/model_models_template_update_request_template_metadata_field_model.go create mode 100644 v1/api/keyfactor/model_models_template_update_request_template_policy_model.go create mode 100644 v1/api/keyfactor/model_models_template_update_request_template_regex_model.go create mode 100644 v1/api/keyfactor/model_models_workflow_approve_deny_result.go create mode 100644 v1/api/keyfactor/model_models_workflow_certificate_request_cert_store_model.go create mode 100644 v1/api/keyfactor/model_models_workflow_certificate_request_details_model.go create mode 100644 v1/api/keyfactor/model_models_workflow_certificate_request_model.go create mode 100644 v1/api/keyfactor/model_models_workflow_denial_request.go create mode 100644 v1/api/keyfactor/model_models_workflow_processed_certificate_request.go rename {v2/api/command => v1/api/keyfactor}/response.go (87%) rename {v2/api/command => v1/api/keyfactor}/utils.go (96%) create mode 100644 v1/docs/AgentApi.md create mode 100644 v1/docs/AgentBlueprintApi.md create mode 100644 v1/docs/AgentPoolApi.md create mode 100644 v1/docs/AuditLogApi.md create mode 100644 v1/docs/CSRGenerationApi.md create mode 100644 v1/docs/CSSCMSDataModelModelsPamProviderTypeParamValue.md create mode 100644 v1/docs/CSSCMSDataModelModelsProvider.md create mode 100644 v1/docs/CSSCMSDataModelModelsProviderType.md create mode 100644 v1/docs/CSSCMSDataModelModelsProviderTypeParam.md create mode 100644 v1/docs/CertificateApi.md create mode 100644 v1/docs/CertificateAuthorityApi.md create mode 100644 v1/docs/CertificateCollectionApi.md create mode 100644 v1/docs/CertificateStoreApi.md create mode 100644 v1/docs/CertificateStoreContainerApi.md create mode 100644 v1/docs/CertificateStoreTypeApi.md create mode 100644 v1/docs/CoreModelsEnrollmentEnrollmentCA.md create mode 100644 v1/docs/CoreModelsEnrollmentEnrollmentTemplate.md create mode 100644 v1/docs/CoreModelsEnrollmentEnrollmentTemplateCAResponse.md create mode 100644 v1/docs/CustomJobTypeApi.md create mode 100644 v1/docs/DeniedAlertApi.md create mode 100644 v1/docs/EnrollmentApi.md create mode 100644 v1/docs/ExpirationAlertApi.md create mode 100644 v1/docs/IssuedAlertApi.md create mode 100644 v1/docs/KeyApi.md create mode 100644 v1/docs/KeyRotationAlertApi.md create mode 100644 v1/docs/KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse.md create mode 100644 v1/docs/KeyfactorAPIModelsSMTPSMTPRequest.md create mode 100644 v1/docs/KeyfactorAPIModelsSMTPSMTPResponse.md create mode 100644 v1/docs/KeyfactorAPIModelsSMTPSMTPTestRequest.md create mode 100644 v1/docs/KeyfactorAPIModelsSMTPSMTPTestResponse.md create mode 100644 v1/docs/KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse.md create mode 100644 v1/docs/KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest.md create mode 100644 v1/docs/KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse.md create mode 100644 v1/docs/KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse.md create mode 100644 v1/docs/KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest.md create mode 100644 v1/docs/KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse.md create mode 100644 v1/docs/KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest.md create mode 100644 v1/docs/KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest.md create mode 100644 v1/docs/KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse.md create mode 100644 v1/docs/KeyfactorApiModelsAlertsExpirationExpirationAlertResponse.md create mode 100644 v1/docs/KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest.md create mode 100644 v1/docs/KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest.md create mode 100644 v1/docs/KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse.md create mode 100644 v1/docs/KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest.md create mode 100644 v1/docs/KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest.md create mode 100644 v1/docs/KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse.md create mode 100644 v1/docs/KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest.md create mode 100644 v1/docs/KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest.md create mode 100644 v1/docs/KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse.md create mode 100644 v1/docs/KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse.md create mode 100644 v1/docs/KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest.md create mode 100644 v1/docs/KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest.md create mode 100644 v1/docs/KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse.md create mode 100644 v1/docs/KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest.md create mode 100644 v1/docs/KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest.md create mode 100644 v1/docs/KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse.md create mode 100644 v1/docs/KeyfactorApiModelsAlertsPendingPendingAlertResponse.md create mode 100644 v1/docs/KeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest.md create mode 100644 v1/docs/KeyfactorApiModelsAlertsPendingPendingAlertTestRequest.md create mode 100644 v1/docs/KeyfactorApiModelsAlertsPendingPendingAlertTestResponse.md create mode 100644 v1/docs/KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest.md create mode 100644 v1/docs/KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse.md create mode 100644 v1/docs/KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest.md create mode 100644 v1/docs/KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest.md create mode 100644 v1/docs/KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse.md create mode 100644 v1/docs/KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest.md create mode 100644 v1/docs/KeyfactorApiModelsCertificateStoresAddCertificateRequest.md create mode 100644 v1/docs/KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest.md create mode 100644 v1/docs/KeyfactorApiModelsCertificateStoresJobHistoryResponse.md create mode 100644 v1/docs/KeyfactorApiModelsCertificateStoresReenrollmentRequest.md create mode 100644 v1/docs/KeyfactorApiModelsCertificateStoresRemoveCertificateRequest.md create mode 100644 v1/docs/KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest.md create mode 100644 v1/docs/KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse.md create mode 100644 v1/docs/KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest.md create mode 100644 v1/docs/KeyfactorApiModelsCertificatesAnalyzeCertificateRequest.md create mode 100644 v1/docs/KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse.md create mode 100644 v1/docs/KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission.md create mode 100644 v1/docs/KeyfactorApiModelsCertificatesCertificateLocationsResponse.md create mode 100644 v1/docs/KeyfactorApiModelsCertificatesCertificateQueryRequest.md create mode 100644 v1/docs/KeyfactorApiModelsConfigurationTenantConfigurationTenantRequest.md create mode 100644 v1/docs/KeyfactorApiModelsEnrollmentEnrollmentManagementRequest.md create mode 100644 v1/docs/KeyfactorApiModelsEnrollmentManagementStoreRequest.md create mode 100644 v1/docs/KeyfactorApiModelsEnrollmentManagementStoreTypeRequest.md create mode 100644 v1/docs/KeyfactorApiModelsEventHandlerEventHandlerParameterRequest.md create mode 100644 v1/docs/KeyfactorApiModelsEventHandlerEventHandlerParameterResponse.md create mode 100644 v1/docs/KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest.md create mode 100644 v1/docs/KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse.md create mode 100644 v1/docs/KeyfactorApiModelsLicenseLicenseResponse.md create mode 100644 v1/docs/KeyfactorApiModelsLicenseLicenseResponseLicense.md create mode 100644 v1/docs/KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer.md create mode 100644 v1/docs/KeyfactorApiModelsLicenseLicenseResponseLicensedFeature.md create mode 100644 v1/docs/KeyfactorApiModelsLicenseLicenseResponseLicensedProduct.md create mode 100644 v1/docs/KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel.md create mode 100644 v1/docs/KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest.md create mode 100644 v1/docs/KeyfactorApiModelsMetadataFieldMetadataFieldResponse.md create mode 100644 v1/docs/KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest.md create mode 100644 v1/docs/KeyfactorApiModelsMonitoringDashboardRequest.md create mode 100644 v1/docs/KeyfactorApiModelsMonitoringDashboardResponse.md create mode 100644 v1/docs/KeyfactorApiModelsMonitoringEmailRequest.md create mode 100644 v1/docs/KeyfactorApiModelsMonitoringEmailResponse.md create mode 100644 v1/docs/KeyfactorApiModelsMonitoringOCSPParametersRequest.md create mode 100644 v1/docs/KeyfactorApiModelsMonitoringOCSPParametersResponse.md create mode 100644 v1/docs/KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest.md create mode 100644 v1/docs/KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest.md create mode 100644 v1/docs/KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse.md create mode 100644 v1/docs/KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest.md create mode 100644 v1/docs/KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse.md create mode 100644 v1/docs/KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest.md create mode 100644 v1/docs/KeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest.md create mode 100644 v1/docs/KeyfactorApiModelsOrchestratorJobsBulkJobResponse.md create mode 100644 v1/docs/KeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse.md create mode 100644 v1/docs/KeyfactorApiModelsOrchestratorJobsJobFieldResponse.md create mode 100644 v1/docs/KeyfactorApiModelsOrchestratorJobsJobResponse.md create mode 100644 v1/docs/KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse.md create mode 100644 v1/docs/KeyfactorApiModelsOrchestratorJobsJobTypeResponse.md create mode 100644 v1/docs/KeyfactorApiModelsOrchestratorJobsRescheduleJobRequest.md create mode 100644 v1/docs/KeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest.md create mode 100644 v1/docs/KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse.md create mode 100644 v1/docs/KeyfactorApiModelsOrchestratorsAgentBlueprintResponse.md create mode 100644 v1/docs/KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse.md create mode 100644 v1/docs/KeyfactorApiModelsOrchestratorsAgentResponse.md create mode 100644 v1/docs/KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest.md create mode 100644 v1/docs/KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse.md create mode 100644 v1/docs/KeyfactorApiModelsSecurityRolesAreaPermissionResponse.md create mode 100644 v1/docs/KeyfactorApiModelsSecurityRolesContainerPermissionRequest.md create mode 100644 v1/docs/KeyfactorApiModelsSecurityRolesContainerPermissionResponse.md create mode 100644 v1/docs/KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest.md create mode 100644 v1/docs/KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse.md create mode 100644 v1/docs/KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest.md create mode 100644 v1/docs/KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse.md create mode 100644 v1/docs/KeyfactorApiModelsSecurityRolesRoleIdentitiesRequest.md create mode 100644 v1/docs/KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse.md create mode 100644 v1/docs/KeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest.md create mode 100644 v1/docs/KeyfactorApiModelsSslCreateNetworkRequest.md create mode 100644 v1/docs/KeyfactorApiModelsSslNetworkQueryResponse.md create mode 100644 v1/docs/KeyfactorApiModelsSslNetworkResponse.md create mode 100644 v1/docs/KeyfactorApiModelsSslQuietHourRequest.md create mode 100644 v1/docs/KeyfactorApiModelsSslQuietHourResponse.md create mode 100644 v1/docs/KeyfactorApiModelsSslUpdateNetworkRequest.md create mode 100644 v1/docs/KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest.md create mode 100644 v1/docs/KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse.md create mode 100644 v1/docs/KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest.md create mode 100644 v1/docs/KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse.md create mode 100644 v1/docs/KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest.md create mode 100644 v1/docs/KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse.md create mode 100644 v1/docs/KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest.md create mode 100644 v1/docs/KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse.md create mode 100644 v1/docs/KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse.md create mode 100644 v1/docs/KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse.md create mode 100644 v1/docs/KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse.md create mode 100644 v1/docs/KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse.md create mode 100644 v1/docs/KeyfactorApiModelsTemplatesValidSubjectPartResponse.md create mode 100644 v1/docs/KeyfactorApiModelsWorkflowsAvailableSignalResponse.md create mode 100644 v1/docs/KeyfactorApiModelsWorkflowsAvailableStepQueryResponse.md create mode 100644 v1/docs/KeyfactorApiModelsWorkflowsAvailableStepResponse.md create mode 100644 v1/docs/KeyfactorApiModelsWorkflowsConditionConfigurationRequest.md create mode 100644 v1/docs/KeyfactorApiModelsWorkflowsConditionConfigurationResponse.md create mode 100644 v1/docs/KeyfactorApiModelsWorkflowsDefinitionCreateRequest.md create mode 100644 v1/docs/KeyfactorApiModelsWorkflowsDefinitionQueryResponse.md create mode 100644 v1/docs/KeyfactorApiModelsWorkflowsDefinitionResponse.md create mode 100644 v1/docs/KeyfactorApiModelsWorkflowsDefinitionStepRequest.md create mode 100644 v1/docs/KeyfactorApiModelsWorkflowsDefinitionStepResponse.md create mode 100644 v1/docs/KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse.md create mode 100644 v1/docs/KeyfactorApiModelsWorkflowsDefinitionUpdateRequest.md create mode 100644 v1/docs/KeyfactorApiModelsWorkflowsInstanceDefinitionResponse.md create mode 100644 v1/docs/KeyfactorApiModelsWorkflowsInstanceQueryResponse.md create mode 100644 v1/docs/KeyfactorApiModelsWorkflowsInstanceResponse.md create mode 100644 v1/docs/KeyfactorApiModelsWorkflowsParameterDefinitionResponse.md create mode 100644 v1/docs/KeyfactorApiModelsWorkflowsSignalConfigurationRequest.md create mode 100644 v1/docs/KeyfactorApiModelsWorkflowsSignalDefinitionResponse.md create mode 100644 v1/docs/KeyfactorApiModelsWorkflowsSignalRequest.md create mode 100644 v1/docs/KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse.md create mode 100644 v1/docs/KeyfactorApiPAMProviderTypeCreateRequest.md create mode 100644 v1/docs/KeyfactorApiPAMProviderTypeParameterCreateRequest.md create mode 100644 v1/docs/KeyfactorApiPAMProviderTypeParameterResponse.md create mode 100644 v1/docs/KeyfactorApiPAMProviderTypeResponse.md create mode 100644 v1/docs/KeyfactorAuditingQueryingAuditLogEntry.md create mode 100644 v1/docs/KeyfactorCommonSchedulingKeyfactorSchedule.md create mode 100644 v1/docs/KeyfactorCommonSchedulingModelsIntervalModel.md create mode 100644 v1/docs/KeyfactorCommonSchedulingModelsMonthlyModel.md create mode 100644 v1/docs/KeyfactorCommonSchedulingModelsTimeModel.md create mode 100644 v1/docs/KeyfactorCommonSchedulingModelsWeeklyModel.md create mode 100644 v1/docs/LicenseApi.md create mode 100644 v1/docs/LogonApi.md create mode 100644 v1/docs/MacEnrollmentApi.md create mode 100644 v1/docs/MetadataFieldApi.md create mode 100644 v1/docs/ModelsAgentsAgentPool.md create mode 100644 v1/docs/ModelsAgentsAgentPoolAgent.md create mode 100644 v1/docs/ModelsCRLRequestModel.md create mode 100644 v1/docs/ModelsCSRContents.md create mode 100644 v1/docs/ModelsCSRGenerationResponseModel.md create mode 100644 v1/docs/ModelsCertStoreLocationsCertificateLocationsGroup.md create mode 100644 v1/docs/ModelsCertStoreLocationsCertificateStoreLocationsDetail.md create mode 100644 v1/docs/ModelsCertStoreNewPasswordRequest.md create mode 100644 v1/docs/ModelsCertStoreTypePasswordOptions.md create mode 100644 v1/docs/ModelsCertStoreTypeSupportedOperations.md create mode 100644 v1/docs/ModelsCertStoresSchedule.md create mode 100644 v1/docs/ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate.md create mode 100644 v1/docs/ModelsCertificateAuthoritiesCertificateAuthorityRequest.md create mode 100644 v1/docs/ModelsCertificateAuthoritiesCertificateAuthorityResponse.md create mode 100644 v1/docs/ModelsCertificateDetails.md create mode 100644 v1/docs/ModelsCertificateDownloadRequest.md create mode 100644 v1/docs/ModelsCertificateDownloadResponse.md create mode 100644 v1/docs/ModelsCertificateImportRequestModel.md create mode 100644 v1/docs/ModelsCertificateImportResponseModel.md create mode 100644 v1/docs/ModelsCertificateLocationSpecifier.md create mode 100644 v1/docs/ModelsCertificateQuery.md create mode 100644 v1/docs/ModelsCertificateRecoveryRequest.md create mode 100644 v1/docs/ModelsCertificateRetrievalResponse.md create mode 100644 v1/docs/ModelsCertificateRetrievalResponseCRLDistributionPointModel.md create mode 100644 v1/docs/ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel.md create mode 100644 v1/docs/ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel.md create mode 100644 v1/docs/ModelsCertificateRetrievalResponseDetailedKeyUsageModel.md create mode 100644 v1/docs/ModelsCertificateRetrievalResponseExtendedKeyUsageModel.md create mode 100644 v1/docs/ModelsCertificateRetrievalResponseLocationCountModel.md create mode 100644 v1/docs/ModelsCertificateRetrievalResponseSubjectAlternativeNameModel.md create mode 100644 v1/docs/ModelsCertificateStore.md create mode 100644 v1/docs/ModelsCertificateStoreContainerListResponse.md create mode 100644 v1/docs/ModelsCertificateStoreCreateServerRequest.md create mode 100644 v1/docs/ModelsCertificateStoreEntry.md create mode 100644 v1/docs/ModelsCertificateStoreInventory.md create mode 100644 v1/docs/ModelsCertificateStoreInventoryCertificates.md create mode 100644 v1/docs/ModelsCertificateStoreServerResponse.md create mode 100644 v1/docs/ModelsCertificateStoreTypeProperty.md create mode 100644 v1/docs/ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter.md create mode 100644 v1/docs/ModelsCertificateStoreUpdateServerRequest.md create mode 100644 v1/docs/ModelsCertificateStoresCertificateStoreCreateRequest.md create mode 100644 v1/docs/ModelsCertificateStoresCertificateStoreUpdateRequest.md create mode 100644 v1/docs/ModelsCertificateValidationResponse.md create mode 100644 v1/docs/ModelsCollectionRolePermissions.md create mode 100644 v1/docs/ModelsContainerAssignment.md create mode 100644 v1/docs/ModelsCustomReport.md create mode 100644 v1/docs/ModelsCustomReportCreationRequest.md create mode 100644 v1/docs/ModelsCustomReportUpdateRequest.md create mode 100644 v1/docs/ModelsDiscoveryJobRequest.md create mode 100644 v1/docs/ModelsEnrollmentAvailableRenewal.md create mode 100644 v1/docs/ModelsEnrollmentCSREnrollmentRequest.md create mode 100644 v1/docs/ModelsEnrollmentCSREnrollmentResponse.md create mode 100644 v1/docs/ModelsEnrollmentCSRGenerationRequest.md create mode 100644 v1/docs/ModelsEnrollmentExistingEnrollmentManagementRequest.md create mode 100644 v1/docs/ModelsEnrollmentManagementStoreType.md create mode 100644 v1/docs/ModelsEnrollmentPFXEnrollmentRequest.md create mode 100644 v1/docs/ModelsEnrollmentPFXEnrollmentResponse.md create mode 100644 v1/docs/ModelsEnrollmentRenewalRequest.md create mode 100644 v1/docs/ModelsEnrollmentRenewalResponse.md create mode 100644 v1/docs/ModelsExtendedKeyUsage.md create mode 100644 v1/docs/ModelsInvalidKeystore.md create mode 100644 v1/docs/ModelsKeyfactorAPISecret.md create mode 100644 v1/docs/ModelsMetadataAllUpdateRequest.md create mode 100644 v1/docs/ModelsMetadataFieldTypeModel.md create mode 100644 v1/docs/ModelsMetadataSingleUpdateRequest.md create mode 100644 v1/docs/ModelsMetadataUpdateRequest.md create mode 100644 v1/docs/ModelsMonitoringRevocationMonitoringAlertResponse.md create mode 100644 v1/docs/ModelsOrchestratorJobsBulkOrchestratorJobPair.md create mode 100644 v1/docs/ModelsOrchestratorJobsJob.md create mode 100644 v1/docs/ModelsOrchestratorJobsJobTypeCreateRequest.md create mode 100644 v1/docs/ModelsOrchestratorJobsJobTypeFieldRequest.md create mode 100644 v1/docs/ModelsOrchestratorJobsJobTypeUpdateRequest.md create mode 100644 v1/docs/ModelsOrchestratorJobsScheduleBulkJobRequest.md create mode 100644 v1/docs/ModelsOrchestratorJobsScheduleJobRequest.md create mode 100644 v1/docs/ModelsPKICertificateOperation.md create mode 100644 v1/docs/ModelsPagedQuery.md create mode 100644 v1/docs/ModelsPendingCSRResponse.md create mode 100644 v1/docs/ModelsPkcs10CertificateResponse.md create mode 100644 v1/docs/ModelsPkcs12CertificateResponse.md create mode 100644 v1/docs/ModelsQueryModelsPagedAgentBlueprintJobsQuery.md create mode 100644 v1/docs/ModelsQueryModelsPagedAgentBlueprintQuery.md create mode 100644 v1/docs/ModelsQueryModelsPagedAgentBlueprintStoresQuery.md create mode 100644 v1/docs/ModelsQueryModelsPagedAgentJobHistoryQuery.md create mode 100644 v1/docs/ModelsQueryModelsPagedAgentJobQuery.md create mode 100644 v1/docs/ModelsQueryModelsPagedAgentPoolAgentsQuery.md create mode 100644 v1/docs/ModelsQueryModelsPagedAgentPoolQuery.md create mode 100644 v1/docs/ModelsQueryModelsPagedAgentQuery.md create mode 100644 v1/docs/ModelsQueryModelsPagedAuditLogQuery.md create mode 100644 v1/docs/ModelsQueryModelsPagedCertificateAuthorityQuery.md create mode 100644 v1/docs/ModelsQueryModelsPagedCertificateHistoryQuery.md create mode 100644 v1/docs/ModelsQueryModelsPagedCertificateRequestQuery.md create mode 100644 v1/docs/ModelsQueryModelsPagedCertificateStoreContainerQuery.md create mode 100644 v1/docs/ModelsQueryModelsPagedCertificateStoreInventoryQuery.md create mode 100644 v1/docs/ModelsQueryModelsPagedCertificateStoreQuery.md create mode 100644 v1/docs/ModelsQueryModelsPagedCertificateStoreServerQuery.md create mode 100644 v1/docs/ModelsQueryModelsPagedCustomReportQuery.md create mode 100644 v1/docs/ModelsQueryModelsPagedDeniedAlertQuery.md create mode 100644 v1/docs/ModelsQueryModelsPagedExpirationAlertQuery.md create mode 100644 v1/docs/ModelsQueryModelsPagedIssuedAlertQuery.md create mode 100644 v1/docs/ModelsQueryModelsPagedKeyRotationAlertQuery.md create mode 100644 v1/docs/ModelsQueryModelsPagedLegacyDeniedRequestQuery.md create mode 100644 v1/docs/ModelsQueryModelsPagedMetadataFieldQuery.md create mode 100644 v1/docs/ModelsQueryModelsPagedPendingAlertQuery.md create mode 100644 v1/docs/ModelsQueryModelsPagedPendingCSRQuery.md create mode 100644 v1/docs/ModelsQueryModelsPagedReportQuery.md create mode 100644 v1/docs/ModelsQueryModelsPagedReportScheduleQuery.md create mode 100644 v1/docs/ModelsQueryModelsPagedRevocationMonitoringQuery.md create mode 100644 v1/docs/ModelsQueryModelsPagedSSHLogonQuery.md create mode 100644 v1/docs/ModelsQueryModelsPagedSSHServerGroupQuery.md create mode 100644 v1/docs/ModelsQueryModelsPagedSSHServerQuery.md create mode 100644 v1/docs/ModelsQueryModelsPagedSSHServiceAccountQuery.md create mode 100644 v1/docs/ModelsQueryModelsPagedSSHUnmanagedKeyQuery.md create mode 100644 v1/docs/ModelsQueryModelsPagedSSHUserQuery.md create mode 100644 v1/docs/ModelsQueryModelsPagedScanJobPartsQuery.md create mode 100644 v1/docs/ModelsQueryModelsPagedSecurityIdentityQuery.md create mode 100644 v1/docs/ModelsQueryModelsPagedSecurityRoleQuery.md create mode 100644 v1/docs/ModelsQueryModelsPagedSslResultQuery.md create mode 100644 v1/docs/ModelsQueryModelsPagedTemplateQuery.md create mode 100644 v1/docs/ModelsQueryModelsWorkflowWorkflowDefinitionQuery.md create mode 100644 v1/docs/ModelsQueryModelsWorkflowWorkflowInstanceQuery.md create mode 100644 v1/docs/ModelsQueryModelsWorkflowWorkflowStepSchemaQuery.md create mode 100644 v1/docs/ModelsQueryModelsWorkflowWorkflowTypeQuery.md create mode 100644 v1/docs/ModelsRecoveryResponse.md create mode 100644 v1/docs/ModelsReenrollmentStatus.md create mode 100644 v1/docs/ModelsReport.md create mode 100644 v1/docs/ModelsReportParameters.md create mode 100644 v1/docs/ModelsReportParametersRequest.md create mode 100644 v1/docs/ModelsReportRequestModel.md create mode 100644 v1/docs/ModelsReportSchedule.md create mode 100644 v1/docs/ModelsRevocationRevocationResponse.md create mode 100644 v1/docs/ModelsRevocationSuspendedRevocationResponse.md create mode 100644 v1/docs/ModelsRevokeAllCertificatesRequest.md create mode 100644 v1/docs/ModelsRevokeCertificateRequest.md create mode 100644 v1/docs/ModelsSSHAccessLogonUserAccessRequest.md create mode 100644 v1/docs/ModelsSSHAccessLogonUserAccessResponse.md create mode 100644 v1/docs/ModelsSSHAccessServerAccessRequest.md create mode 100644 v1/docs/ModelsSSHAccessServerAccessResponse.md create mode 100644 v1/docs/ModelsSSHAccessServerGroupAccessRequest.md create mode 100644 v1/docs/ModelsSSHAccessServerGroupAccessResponse.md create mode 100644 v1/docs/ModelsSSHKeysKeyGenerationRequest.md create mode 100644 v1/docs/ModelsSSHKeysKeyResponse.md create mode 100644 v1/docs/ModelsSSHKeysKeyUpdateRequest.md create mode 100644 v1/docs/ModelsSSHKeysUnmanagedKeyResponse.md create mode 100644 v1/docs/ModelsSSHLogonsLogonAccessRequest.md create mode 100644 v1/docs/ModelsSSHLogonsLogonCreationRequest.md create mode 100644 v1/docs/ModelsSSHLogonsLogonQueryResponse.md create mode 100644 v1/docs/ModelsSSHLogonsLogonResponse.md create mode 100644 v1/docs/ModelsSSHServerGroupsServerGroupCreationRequest.md create mode 100644 v1/docs/ModelsSSHServerGroupsServerGroupResponse.md create mode 100644 v1/docs/ModelsSSHServerGroupsServerGroupUpdateRequest.md create mode 100644 v1/docs/ModelsSSHServersServerCreationRequest.md create mode 100644 v1/docs/ModelsSSHServersServerResponse.md create mode 100644 v1/docs/ModelsSSHServersServerUpdateRequest.md create mode 100644 v1/docs/ModelsSSHServiceAccountsServiceAccountCreationRequest.md create mode 100644 v1/docs/ModelsSSHServiceAccountsServiceAccountResponse.md create mode 100644 v1/docs/ModelsSSHServiceAccountsServiceAccountUpdateRequest.md create mode 100644 v1/docs/ModelsSSHServiceAccountsServiceAccountUserCreationRequest.md create mode 100644 v1/docs/ModelsSSHUsersSshUserAccessResponse.md create mode 100644 v1/docs/ModelsSSHUsersSshUserCreationRequest.md create mode 100644 v1/docs/ModelsSSHUsersSshUserResponse.md create mode 100644 v1/docs/ModelsSSHUsersSshUserUpdateRequest.md create mode 100644 v1/docs/ModelsSSLDisplayScanJobPart.md create mode 100644 v1/docs/ModelsSSLEndpoint.md create mode 100644 v1/docs/ModelsSSLEndpointHistoryResponse.md create mode 100644 v1/docs/ModelsSSLEndpointHistoryResponseCertificateModel.md create mode 100644 v1/docs/ModelsSSLEndpointStatusRequest.md create mode 100644 v1/docs/ModelsSSLImmediateSslScanRequest.md create mode 100644 v1/docs/ModelsSSLNetworkDefinition.md create mode 100644 v1/docs/ModelsSSLNetworkRangesRequest.md create mode 100644 v1/docs/ModelsSSLScanJobPart.md create mode 100644 v1/docs/ModelsSSLScanJobPartDefinition.md create mode 100644 v1/docs/ModelsSSLSslScanResult.md create mode 100644 v1/docs/ModelsSecurityCertificatePermissions.md create mode 100644 v1/docs/ModelsSecurityIdentitiesPermissionRolesPairResponse.md create mode 100644 v1/docs/ModelsSecurityIdentitiesSecurityIdentityIdentifier.md create mode 100644 v1/docs/ModelsSecurityIdentitiesSecurityIdentityLookupResponse.md create mode 100644 v1/docs/ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse.md create mode 100644 v1/docs/ModelsSecurityIdentitiesSecurityIdentityRequest.md create mode 100644 v1/docs/ModelsSecuritySecurityRolesSecurityRoleCreationRequest.md create mode 100644 v1/docs/ModelsSecuritySecurityRolesSecurityRoleResponseBase.md create mode 100644 v1/docs/ModelsSecuritySecurityRolesSecurityRoleUpdateRequest.md create mode 100644 v1/docs/ModelsSubjectAlternativeName.md create mode 100644 v1/docs/ModelsTemplateCollectionRetrievalResponse.md create mode 100644 v1/docs/ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel.md create mode 100644 v1/docs/ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel.md create mode 100644 v1/docs/ModelsTemplateCollectionRetrievalResponseTemplateRegexModel.md create mode 100644 v1/docs/ModelsTemplateEnrollmentField.md create mode 100644 v1/docs/ModelsTemplateMetadataField.md create mode 100644 v1/docs/ModelsTemplateRegex.md create mode 100644 v1/docs/ModelsTemplateRetrievalResponse.md create mode 100644 v1/docs/ModelsTemplateRetrievalResponseExtendedKeyUsageModel.md create mode 100644 v1/docs/ModelsTemplateRetrievalResponseTemplateDefaultModel.md create mode 100644 v1/docs/ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel.md create mode 100644 v1/docs/ModelsTemplateRetrievalResponseTemplateMetadataFieldModel.md create mode 100644 v1/docs/ModelsTemplateRetrievalResponseTemplatePolicyModel.md create mode 100644 v1/docs/ModelsTemplateRetrievalResponseTemplateRegexModel.md create mode 100644 v1/docs/ModelsTemplateUpdateRequest.md create mode 100644 v1/docs/ModelsTemplateUpdateRequestTemplateDefaultModel.md create mode 100644 v1/docs/ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel.md create mode 100644 v1/docs/ModelsTemplateUpdateRequestTemplateMetadataFieldModel.md create mode 100644 v1/docs/ModelsTemplateUpdateRequestTemplatePolicyModel.md create mode 100644 v1/docs/ModelsTemplateUpdateRequestTemplateRegexModel.md create mode 100644 v1/docs/ModelsWorkflowApproveDenyResult.md create mode 100644 v1/docs/ModelsWorkflowCertificateRequestCertStoreModel.md create mode 100644 v1/docs/ModelsWorkflowCertificateRequestDetailsModel.md create mode 100644 v1/docs/ModelsWorkflowCertificateRequestModel.md create mode 100644 v1/docs/ModelsWorkflowDenialRequest.md create mode 100644 v1/docs/ModelsWorkflowProcessedCertificateRequest.md create mode 100644 v1/docs/MonitoringApi.md create mode 100644 v1/docs/OrchestratorJobApi.md create mode 100644 v1/docs/PAMProviderApi.md create mode 100644 v1/docs/PendingAlertApi.md create mode 100644 v1/docs/ReportsApi.md create mode 100644 v1/docs/SMTPApi.md create mode 100644 v1/docs/SecurityApi.md create mode 100644 v1/docs/SecurityRolePermissionsApi.md create mode 100644 v1/docs/SecurityRolesApi.md create mode 100644 v1/docs/ServerApi.md create mode 100644 v1/docs/ServerGroupApi.md create mode 100644 v1/docs/ServiceAccountApi.md create mode 100644 v1/docs/SslApi.md create mode 100644 v1/docs/StatusApi.md create mode 100644 v1/docs/TemplateApi.md create mode 100644 v1/docs/UserApi.md create mode 100644 v1/docs/WorkflowApi.md create mode 100644 v1/docs/WorkflowDefinitionApi.md create mode 100644 v1/docs/WorkflowInstanceApi.md rename {v2 => v1}/go.mod (75%) rename {v2 => v1}/go.sum (99%) create mode 100644 v1/integration-manifest.json create mode 100644 v1/test/api_agent_blueprint_test.go rename {v2/api/command => v1/test}/api_agent_pool_test.go (52%) create mode 100644 v1/test/api_agent_test.go create mode 100644 v1/test/api_audit_log_test.go rename {v2/api/command => v1/test}/api_certificate_authority_test.go (53%) create mode 100644 v1/test/api_certificate_collection_test.go create mode 100644 v1/test/api_certificate_store_container_test.go create mode 100644 v1/test/api_certificate_store_test.go create mode 100644 v1/test/api_certificate_store_type_test.go rename {v2/api/command => v1/test}/api_certificate_test.go (57%) create mode 100644 v1/test/api_csr_generation_test.go create mode 100644 v1/test/api_custom_job_type_test.go create mode 100644 v1/test/api_denied_alert_test.go create mode 100644 v1/test/api_enrollment_test.go rename {v2/api/command => v1/test}/api_expiration_alert_test.go (57%) rename {v2/api/command => v1/test}/api_issued_alert_test.go (54%) rename {v2/api/command => v1/test}/api_key_rotation_alert_test.go (57%) rename {v2/api/command => v1/test}/api_key_test.go (54%) create mode 100644 v1/test/api_license_test.go create mode 100644 v1/test/api_logon_test.go create mode 100644 v1/test/api_mac_enrollment_test.go create mode 100644 v1/test/api_metadata_field_test.go rename {v2/api/command => v1/test}/api_monitoring_test.go (56%) rename {v2/api/command => v1/test}/api_orchestrator_job_test.go (64%) rename {v2/api/command => v1/test}/api_pam_provider_test.go (54%) rename {v2/api/command => v1/test}/api_pending_alert_test.go (58%) create mode 100644 v1/test/api_reports_test.go create mode 100644 v1/test/api_security_role_permissions_test.go create mode 100644 v1/test/api_security_roles_test.go create mode 100644 v1/test/api_security_test.go rename {v2/api/command => v1/test}/api_server_group_test.go (52%) rename {v2/api/command => v1/test}/api_server_test.go (54%) create mode 100644 v1/test/api_service_account_test.go rename {v2/api/command => v1/test}/api_smtp_test.go (50%) rename {v2/api/command => v1/test}/api_ssl_test.go (56%) create mode 100644 v1/test/api_status_test.go rename {v2/api/command => v1/test}/api_template_test.go (58%) rename {v2/api/command => v1/test}/api_user_test.go (52%) create mode 100644 v1/test/api_workflow_definition_test.go create mode 100644 v1/test/api_workflow_instance_test.go rename {v2/api/command => v1/test}/api_workflow_test.go (52%) delete mode 100644 v2/api/command/api_agent_blueprint_test.go delete mode 100644 v2/api/command/api_agent_test.go delete mode 100644 v2/api/command/api_audit_log_test.go delete mode 100644 v2/api/command/api_certificate_collection_test.go delete mode 100644 v2/api/command/api_certificate_store_container_test.go delete mode 100644 v2/api/command/api_certificate_store_test.go delete mode 100644 v2/api/command/api_certificate_store_type_test.go delete mode 100644 v2/api/command/api_csr_generation_test.go delete mode 100644 v2/api/command/api_custom_job_type_test.go delete mode 100644 v2/api/command/api_denied_alert_test.go delete mode 100644 v2/api/command/api_enrollment_test.go delete mode 100644 v2/api/command/api_license_test.go delete mode 100644 v2/api/command/api_logon_test.go delete mode 100644 v2/api/command/api_mac_enrollment_test.go delete mode 100644 v2/api/command/api_metadata_field_test.go delete mode 100644 v2/api/command/api_reports_test.go delete mode 100644 v2/api/command/api_security_role_permissions_test.go delete mode 100644 v2/api/command/api_security_roles_test.go delete mode 100644 v2/api/command/api_security_test.go delete mode 100644 v2/api/command/api_service_account_test.go delete mode 100644 v2/api/command/api_status_test.go delete mode 100644 v2/api/command/api_workflow_definition_test.go delete mode 100644 v2/api/command/api_workflow_instance_test.go diff --git a/go.mod b/go.mod index 832820c..d1fe9ca 100644 --- a/go.mod +++ b/go.mod @@ -1,11 +1,3 @@ module github.com/Keyfactor/keyfactor-go-client-sdk go 1.20 - -require github.com/stretchr/testify v1.8.4 - -require ( - github.com/davecgh/go-spew v1.1.1 // indirect - github.com/pmezard/go-difflib v1.0.0 // indirect - gopkg.in/yaml.v3 v3.0.1 // indirect -) diff --git a/go.sum b/go.sum index e227d9e..e69de29 100644 --- a/go.sum +++ b/go.sum @@ -1,11 +0,0 @@ -github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= -github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= -github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= -github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= -gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= - diff --git a/v1/LICENSE b/v1/LICENSE new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/v1/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/v1/Makefile b/v1/Makefile new file mode 100644 index 0000000..432ea4d --- /dev/null +++ b/v1/Makefile @@ -0,0 +1,47 @@ +GO_PACKAGE_NAME = keyfactor +GIT_USER_ID = Keyfactor +GIT_REPO_NAME = keyfactor-go-client-sdk +OPENAPI_YAML = Keyfactor-v10-patched.swagger.yaml +OPENAPI_GENERATOR_VERSION = 6.3.0 +OPENAPI_TEMPLATE_DIR = .openapi-generator/templates/go + +init: + @echo "Initializing..." + @wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/$(OPENAPI_GENERATOR_VERSION)/openapi-generator-cli-$(OPENAPI_GENERATOR_VERSION).jar -O openapi-generator-cli.jar + +deinit: + @echo "Cleaning up..." + @rm openapi-generator-cli.jar + @rm api/openapi.yaml + +generate: clean init + @echo "Generating..." + @if [ -d $(OPENAPI_TEMPLATE_DIR) ]; \ + then \ + java -jar openapi-generator-cli.jar generate -i $(OPENAPI_YAML) -p packageName=$(GO_PACKAGE_NAME) $(OPENAPI_ARGS) -g go -p isGoSubmodule=false -p disallowAdditionalPropertiesIfNotPresent=false --git-user-id $(GIT_USER_ID) --git-repo-id $(GIT_REPO_NAME) -t $(OPENAPI_TEMPLATE_DIR); \ + else \ + java -jar openapi-generator-cli.jar generate -i $(OPENAPI_YAML) -p packageName=$(GO_PACKAGE_NAME) $(OPENAPI_ARGS) -g go -p isGoSubmodule=false -p disallowAdditionalPropertiesIfNotPresent=false --git-user-id $(GIT_USER_ID) --git-repo-id $(GIT_REPO_NAME); \ + fi + @mkdir ./api/$(GO_PACKAGE_NAME) || (echo /api/$(GO_PACKAGE_NAME) exists) + @mv -f ./*.go ./api/$(GO_PACKAGE_NAME) || (echo no files to move) + @rm .travis.yml || (echo no .travis.yml to remove) + @rm .openapi-generator-ignore || (echo no .openapi-generator-ignore to remove) + @rm git_push.sh || (echo no git_push.sh to remove) + @make deinit + @echo "Done." + +clean: + @echo "Cleaning..." + @rm -rf ./api/$(GO_PACKAGE_NAME) || (echo no ./api/$(GO_PACKAGE_NAME) to remove) + @rm -rf ./go.mod || (echo no ./go.mod to remove) + @rm -rf ./go.sum || (echo no ./go.sum to remove) + @rm -rf ./docs || (echo no ./docs to remove) + @rm -rf ./test || (echo no ./test to remove) + +template: init + @mkdir -p $(OPENAPI_TEMPLATE_DIR) + @echo "Generating Templates..." + @java -jar openapi-generator-cli.jar author template -g go -o $(OPENAPI_TEMPLATE_DIR) + @echo "Cleaning up..." + @rm openapi-generator-cli.jar + @echo "Done." \ No newline at end of file diff --git a/v1/README.md b/v1/README.md new file mode 100644 index 0000000..7fc129f --- /dev/null +++ b/v1/README.md @@ -0,0 +1,793 @@ +# Go API client for keyfactor + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: v1 +- Package version: 1.0.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen + +## Installation + +Install the following dependencies: + +```shell +go get "github.com/Keyfactor/keyfactor-go-client-sdk" +``` + +Put the package under your project folder and add the following in import: + +```golang +import "github.com/Keyfactor/keyfactor-go-client-sdk/api/keyfactor" +``` + +## Configuration + +The `keyfactor.NewConfiguration()` method is used to configure the Keyfactor Go Client SDK. The client can be configured +by passing a map of configuration options to the `NewConfiguration()` method, or by passing a blank map and setting +the configuration options individually on the returned `Configuration` object. + +The following configuration options are available: +```go +// Create a configuration map +config := make(map[string]string) +config["host"] = "keyfactor.example.com" +config["username"] = "admin" +config["password"] = "password" +config["domain"] = "example.com" // optional +config["caCertificatePath"] = "/path/to/local/certificate" // optional + +// Create a configuration object +ejbcaConfiguration := keyfactor.NewConfiguration(config) +if ejbcaConfiguration == nil { + // handle error +} + +// Create a client +client := keyfactor.NewAPIClient(config) +if client == nil { + // handle error +} +``` + +or + +```go +// Create a configuration object +ejbcaConfiguration := keyfactor.NewConfiguration(make(map[string]string)) + +// Set configuration options individually +ejbcaConfiguration.Host = "keyfactor.example.com" +ejbcaConfiguration.BasicAuth.UserName = "admin" +ejbcaConfiguration.BasicAuth.Password = "password" +ejbcaConfiguration.CaCertificatePath = "/path/to/local/certificate" // optional + +// Create a client +client := keyfactor.NewAPIClient(ejbcaConfiguration) +if client == nil { + // handle error +} +``` + +The root CA certificate can also be configured by passing a slice of `*x509.Certificate` objects to the `ejbca.Configuration.SetCaCertificates()` method. +```go +// Create a configuration object +ejbcaConfiguration := keyfactor.NewConfiguration(make(map[string]string)) + +// Set the root CA certificate +ejbcaConfiguration.SetCaCertificates([]*x509.Certificate{caCertificate}) + +// Create a client +client := keyfactor.NewAPIClient(ejbcaConfiguration) +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://keyfactor.example.com* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*AgentApi* | [**AgentApprove**](docs/AgentApi.md#agentapprove) | **Post** /Agents/Approve | Approve a list of agents +*AgentApi* | [**AgentDisapprove**](docs/AgentApi.md#agentdisapprove) | **Post** /Agents/Disapprove | Disapprove a list of agents +*AgentApi* | [**AgentFetchLogs**](docs/AgentApi.md#agentfetchlogs) | **Post** /Agents/{id}/FetchLogs | Schedules a job on the agent to retrieve log files +*AgentApi* | [**AgentGetAgentDetail**](docs/AgentApi.md#agentgetagentdetail) | **Get** /Agents/{id} | Returns details for a single agent, specified by ID +*AgentApi* | [**AgentGetAgents**](docs/AgentApi.md#agentgetagents) | **Get** /Agents | Returns all agents according to the provided filter and output parameters +*AgentApi* | [**AgentReset0**](docs/AgentApi.md#agentreset0) | **Post** /Agents/Reset | Reset a list of agents +*AgentApi* | [**AgentReset1**](docs/AgentApi.md#agentreset1) | **Post** /Agents/{id}/Reset | Reset an agent to a new state +*AgentApi* | [**AgentSetAuthCertificateReenrollment**](docs/AgentApi.md#agentsetauthcertificatereenrollment) | **Post** /Agents/SetAuthCertificateReenrollment | Update the AuthCertificateReenrollment value for an agent to request or require (or unset the request) the agent to enroll for a new client authentication certificate on its next registration. +*AgentBlueprintApi* | [**AgentBlueprintApplyBlueprint**](docs/AgentBlueprintApi.md#agentblueprintapplyblueprint) | **Post** /AgentBluePrint/ApplyBlueprint | Applies the selected agent blueprint to the provided agents +*AgentBlueprintApi* | [**AgentBlueprintDeleteBlueprint**](docs/AgentBlueprintApi.md#agentblueprintdeleteblueprint) | **Delete** /AgentBluePrint/{id} | Deletes an agent blueprint by its Keyfactor identifier +*AgentBlueprintApi* | [**AgentBlueprintGenerateBlueprint**](docs/AgentBlueprintApi.md#agentblueprintgenerateblueprint) | **Post** /AgentBluePrint/GenerateBluePrint | Generates an agent blueprint from the provided agents +*AgentBlueprintApi* | [**AgentBlueprintGetAgentBlueprint**](docs/AgentBlueprintApi.md#agentblueprintgetagentblueprint) | **Get** /AgentBluePrint/{id} | Returns an agent blueprint according to the provided filter and output parameters +*AgentBlueprintApi* | [**AgentBlueprintGetAgentBlueprints**](docs/AgentBlueprintApi.md#agentblueprintgetagentblueprints) | **Get** /AgentBluePrint | Returns all agent blueprints according to the provided filter and output parameters +*AgentBlueprintApi* | [**AgentBlueprintGetBlueprintJobs**](docs/AgentBlueprintApi.md#agentblueprintgetblueprintjobs) | **Get** /AgentBluePrint/{id}/Jobs | Gets the agent blueprint scheduled jobs +*AgentBlueprintApi* | [**AgentBlueprintGetBlueprintStores**](docs/AgentBlueprintApi.md#agentblueprintgetblueprintstores) | **Get** /AgentBluePrint/{id}/Stores | Gets the agent blueprint certificate stores +*AgentPoolApi* | [**AgentPoolCreateAgentPool**](docs/AgentPoolApi.md#agentpoolcreateagentpool) | **Post** /AgentPools | Creates an agent pool with the provided properties +*AgentPoolApi* | [**AgentPoolDeleteAgentPool**](docs/AgentPoolApi.md#agentpooldeleteagentpool) | **Delete** /AgentPools/{id} | Deletes the agent pool associated with the provided id +*AgentPoolApi* | [**AgentPoolGetAgentPoolById**](docs/AgentPoolApi.md#agentpoolgetagentpoolbyid) | **Get** /AgentPools/{id} | Returns a single agent pool associated with the provided id +*AgentPoolApi* | [**AgentPoolGetAgentPools**](docs/AgentPoolApi.md#agentpoolgetagentpools) | **Get** /AgentPools | Returns all agent pools according to the provided filter and output parameters +*AgentPoolApi* | [**AgentPoolGetDefaultAgentPoolAgents**](docs/AgentPoolApi.md#agentpoolgetdefaultagentpoolagents) | **Get** /AgentPools/Agents | Returns all agents for the default agent pool +*AgentPoolApi* | [**AgentPoolUpdateAgentPool**](docs/AgentPoolApi.md#agentpoolupdateagentpool) | **Put** /AgentPools | Updates an existing agent pool with the provided properties +*AuditLogApi* | [**AuditLogDownloadCSV**](docs/AuditLogApi.md#auditlogdownloadcsv) | **Get** /Audit/Download | Returns a Comma Separated file containing the audit log entries according to the provided filter +*AuditLogApi* | [**AuditLogGetAuditLog**](docs/AuditLogApi.md#auditloggetauditlog) | **Get** /Audit/{id} | Returns the audit log entry associated with the provided identifier +*AuditLogApi* | [**AuditLogGetAuditLogs**](docs/AuditLogApi.md#auditloggetauditlogs) | **Get** /Audit | Returns all audit log entries according to the provided filter and output parameters +*AuditLogApi* | [**AuditLogGetRelatedEntities**](docs/AuditLogApi.md#auditloggetrelatedentities) | **Get** /Audit/RelatedEntities | Returns the audit log entry associated with the provided keyfactor id +*AuditLogApi* | [**AuditLogValidateAuditLog**](docs/AuditLogApi.md#auditlogvalidateauditlog) | **Get** /Audit/{id}/Validate | Validates the audit log entry associated with the provided keyfactor id +*CSRGenerationApi* | [**CSRGenerationDeleteCSR**](docs/CSRGenerationApi.md#csrgenerationdeletecsr) | **Delete** /CSRGeneration/Pending/{id} | Deletes a CSR associated with the provided identifier +*CSRGenerationApi* | [**CSRGenerationDeleteCSRs**](docs/CSRGenerationApi.md#csrgenerationdeletecsrs) | **Delete** /CSRGeneration/Pending | Deletes the CSRs associated with the provided identifiers +*CSRGenerationApi* | [**CSRGenerationDownload**](docs/CSRGenerationApi.md#csrgenerationdownload) | **Get** /CSRGeneration/Pending/{id} | Returns a previously generated CSR associated with the provided identifier +*CSRGenerationApi* | [**CSRGenerationGetPendingCSRs**](docs/CSRGenerationApi.md#csrgenerationgetpendingcsrs) | **Get** /CSRGeneration/Pending | Returns a list of the currently pending CSRs according to the provided query +*CSRGenerationApi* | [**CSRGenerationPostGenerate**](docs/CSRGenerationApi.md#csrgenerationpostgenerate) | **Post** /CSRGeneration/Generate | Generates a CSR according the properties provided +*CertificateApi* | [**CertificateAnalyzeCert**](docs/CertificateApi.md#certificateanalyzecert) | **Post** /Certificates/Analyze | Returns the public information of the certificate +*CertificateApi* | [**CertificateCertificateHistory**](docs/CertificateApi.md#certificatecertificatehistory) | **Get** /Certificates/{id}/History | Gets the history of operations on a certificate +*CertificateApi* | [**CertificateCompareMetadata**](docs/CertificateApi.md#certificatecomparemetadata) | **Get** /Certificates/Metadata/Compare | Compares the metadata value provided with the metadata value associated with the specified certificate +*CertificateApi* | [**CertificateDeleteByQuery**](docs/CertificateApi.md#certificatedeletebyquery) | **Delete** /Certificates/Query | Deletes multiple persisted certificate entities selected by a given query +*CertificateApi* | [**CertificateDeleteCertificate**](docs/CertificateApi.md#certificatedeletecertificate) | **Delete** /Certificates/{id} | Deletes a persisted certificate by its unique id as well as the stored private key (if present) associated with it +*CertificateApi* | [**CertificateDeleteCertificates**](docs/CertificateApi.md#certificatedeletecertificates) | **Delete** /Certificates | Deletes multiple persisted certificates by their unique ids +*CertificateApi* | [**CertificateDeletePrivateKeys0**](docs/CertificateApi.md#certificatedeleteprivatekeys0) | **Delete** /Certificates/PrivateKey | Deletes the persisted private keys of multiple certificates by the unique ids of the Certificates +*CertificateApi* | [**CertificateDeletePrivateKeys1**](docs/CertificateApi.md#certificatedeleteprivatekeys1) | **Delete** /Certificates/PrivateKey/{id} | Deletes the persisted private key of the certificate associated with the provided identifier +*CertificateApi* | [**CertificateDownloadCertificateAsync**](docs/CertificateApi.md#certificatedownloadcertificateasync) | **Post** /Certificates/Download | Downloads the persisted certificate associated with the provided query +*CertificateApi* | [**CertificateGetCertificate**](docs/CertificateApi.md#certificategetcertificate) | **Get** /Certificates/{id} | Returns a single certificate that matches the id +*CertificateApi* | [**CertificateGetCertificateLocations**](docs/CertificateApi.md#certificategetcertificatelocations) | **Get** /Certificates/Locations/{id} | Returns a list of locations the certificate is in +*CertificateApi* | [**CertificateGetCertificateSecurity**](docs/CertificateApi.md#certificategetcertificatesecurity) | **Get** /Certificates/{id}/Security | Gets the list of Security Identities and which permissions they have on the given certificate. +*CertificateApi* | [**CertificateIdentityAudit**](docs/CertificateApi.md#certificateidentityaudit) | **Get** /Certificates/IdentityAudit/{id} | Audit identity permissions for certificate +*CertificateApi* | [**CertificatePostImportCertificate**](docs/CertificateApi.md#certificatepostimportcertificate) | **Post** /Certificates/Import | Imports the provided certificate into the Keyfactor instance, including any provided associated data +*CertificateApi* | [**CertificateQueryCertificates**](docs/CertificateApi.md#certificatequerycertificates) | **Get** /Certificates | Returns all certificates according to the provided filter and output parameters +*CertificateApi* | [**CertificateRecoverCertificateAsync**](docs/CertificateApi.md#certificaterecovercertificateasync) | **Post** /Certificates/Recover | Recovers the persisted certificate associated with the provided query +*CertificateApi* | [**CertificateRevoke**](docs/CertificateApi.md#certificaterevoke) | **Post** /Certificates/Revoke | Revokes the certificates associated with the provided identifiers and associates the provided data with the revocation +*CertificateApi* | [**CertificateRevokeAll**](docs/CertificateApi.md#certificaterevokeall) | **Post** /Certificates/RevokeAll | Revokes the certificates associated with the provided query and Collection Id and associates the provided data with the revocation +*CertificateApi* | [**CertificateUpdateAllMetadata**](docs/CertificateApi.md#certificateupdateallmetadata) | **Put** /Certificates/Metadata/All | Updates the metadata for certificates associated with the certificate identifiers or query provided +*CertificateApi* | [**CertificateUpdateMetadata**](docs/CertificateApi.md#certificateupdatemetadata) | **Put** /Certificates/Metadata | Updates the metadata for the certificate associated with the identifier provided +*CertificateApi* | [**CertificateValidateCertificate**](docs/CertificateApi.md#certificatevalidatecertificate) | **Get** /Certificates/{id}/Validate | Validates the certificate chain can be built. +*CertificateAuthorityApi* | [**CertificateAuthorityCreateCA**](docs/CertificateAuthorityApi.md#certificateauthoritycreateca) | **Post** /CertificateAuthority | Creates a new CertificateAuthority object +*CertificateAuthorityApi* | [**CertificateAuthorityDeleteCA**](docs/CertificateAuthorityApi.md#certificateauthoritydeleteca) | **Delete** /CertificateAuthority/{id} | Deletes a CertificateAuthority from the system, specified by ID +*CertificateAuthorityApi* | [**CertificateAuthorityGetCa**](docs/CertificateAuthorityApi.md#certificateauthoritygetca) | **Get** /CertificateAuthority/{id} | Returns details for a single CA, specified by ID +*CertificateAuthorityApi* | [**CertificateAuthorityGetCas**](docs/CertificateAuthorityApi.md#certificateauthoritygetcas) | **Get** /CertificateAuthority | Returns all certificate authorities +*CertificateAuthorityApi* | [**CertificateAuthorityPublishCRL**](docs/CertificateAuthorityApi.md#certificateauthoritypublishcrl) | **Post** /CertificateAuthority/PublishCRL | Publishes a CRL according to the provided request +*CertificateAuthorityApi* | [**CertificateAuthorityTestCertificateAuthority**](docs/CertificateAuthorityApi.md#certificateauthoritytestcertificateauthority) | **Post** /CertificateAuthority/Test | Validates the connection info for the CA provided by the model. +*CertificateAuthorityApi* | [**CertificateAuthorityUpdateCA**](docs/CertificateAuthorityApi.md#certificateauthorityupdateca) | **Put** /CertificateAuthority | Updates a CertificateAuthority object +*CertificateCollectionApi* | [**CertificateCollectionCopyFromExistingCollection**](docs/CertificateCollectionApi.md#certificatecollectioncopyfromexistingcollection) | **Post** /CertificateCollections/Copy | Creates a new certificate collection from an existing collection. The permissions, query and description of the existing collection are copied when creating the new record, with the option to overwrite the query or description. +*CertificateCollectionApi* | [**CertificateCollectionCreateCollection**](docs/CertificateCollectionApi.md#certificatecollectioncreatecollection) | **Post** /CertificateCollections | Creates a new certificate collection with the provided properties +*CertificateCollectionApi* | [**CertificateCollectionGetCollection0**](docs/CertificateCollectionApi.md#certificatecollectiongetcollection0) | **Get** /CertificateCollections/{id} | Returns the certificate collection definition associated with the provided Keyfactor identifier +*CertificateCollectionApi* | [**CertificateCollectionGetCollection1**](docs/CertificateCollectionApi.md#certificatecollectiongetcollection1) | **Get** /CertificateCollections/{name} | Returns the certificate collection associated with the provided collection name +*CertificateCollectionApi* | [**CertificateCollectionGetCollections**](docs/CertificateCollectionApi.md#certificatecollectiongetcollections) | **Get** /CertificateCollections | Returns all certificate collections +*CertificateCollectionApi* | [**CertificateCollectionSetCollectionPermissions**](docs/CertificateCollectionApi.md#certificatecollectionsetcollectionpermissions) | **Post** /CertificateCollections/{id}/Permissions | Set the permissions for a collection +*CertificateCollectionApi* | [**CertificateCollectionUpdateCollection**](docs/CertificateCollectionApi.md#certificatecollectionupdatecollection) | **Put** /CertificateCollections | Updates an existing certificate collection with the provided properties +*CertificateStoreApi* | [**CertificateStoreAddCertificate**](docs/CertificateStoreApi.md#certificatestoreaddcertificate) | **Post** /CertificateStores/Certificates/Add | Configures a management job to add a certificate to one or more stores with the provided schedule +*CertificateStoreApi* | [**CertificateStoreApprovePending**](docs/CertificateStoreApi.md#certificatestoreapprovepending) | **Post** /CertificateStores/Approve | Approves the provided certificate stores to make them available for management +*CertificateStoreApi* | [**CertificateStoreConfigureDiscoveryJob**](docs/CertificateStoreApi.md#certificatestoreconfigurediscoveryjob) | **Put** /CertificateStores/DiscoveryJob | Configures a discovery job to locate currently unmanaged certificate stores +*CertificateStoreApi* | [**CertificateStoreCreateCertificateStoreServer**](docs/CertificateStoreApi.md#certificatestorecreatecertificatestoreserver) | **Post** /CertificateStores/Server | Creates a new certificate store server with the provided properties +*CertificateStoreApi* | [**CertificateStoreDeleteCertificateStore**](docs/CertificateStoreApi.md#certificatestoredeletecertificatestore) | **Delete** /CertificateStores/{id} | Deletes a persisted certificate store by its Keyfactor identifier +*CertificateStoreApi* | [**CertificateStoreDeleteCertificateStores**](docs/CertificateStoreApi.md#certificatestoredeletecertificatestores) | **Delete** /CertificateStores | Deletes multiple persisted certificate store entities by their identifiers +*CertificateStoreApi* | [**CertificateStoreGetCertificateStoreInventory**](docs/CertificateStoreApi.md#certificatestoregetcertificatestoreinventory) | **Get** /CertificateStores/{id}/Inventory | Returns a single certificate store's inventory associated with the provided id +*CertificateStoreApi* | [**CertificateStoreRemoveCertificate**](docs/CertificateStoreApi.md#certificatestoreremovecertificate) | **Post** /CertificateStores/Certificates/Remove | Configures a management job to remove a certificate from one or more stores with the provided schedule +*CertificateStoreApi* | [**CertificateStoreSchedule**](docs/CertificateStoreApi.md#certificatestoreschedule) | **Post** /CertificateStores/Schedule | Creates an inventory schedule for the provided certificate stores +*CertificateStoreApi* | [**CertificateStoreScheduleForReenrollment**](docs/CertificateStoreApi.md#certificatestorescheduleforreenrollment) | **Post** /CertificateStores/Reenrollment | Schedules a certificate store for reenrollment +*CertificateStoreApi* | [**CertificateStoreSetPassword**](docs/CertificateStoreApi.md#certificatestoresetpassword) | **Put** /CertificateStores/Password | Sets a password for the requested certificate store +*CertificateStoreApi* | [**CertificateStoreUpdateCertificateStoreServer**](docs/CertificateStoreApi.md#certificatestoreupdatecertificatestoreserver) | **Put** /CertificateStores/Server | Updates a given certificate store server with the properties of the provided instance +*CertificateStoreContainerApi* | [**CertificateStoreContainerDeleteCertificateStoreContainers**](docs/CertificateStoreContainerApi.md#certificatestorecontainerdeletecertificatestorecontainers) | **Delete** /CertificateStoreContainers/{id} | Delete a certificate store container +*CertificateStoreContainerApi* | [**CertificateStoreContainerGetAllCertificateStoreContainers**](docs/CertificateStoreContainerApi.md#certificatestorecontainergetallcertificatestorecontainers) | **Get** /CertificateStoreContainers | Returns all certificate store container according to the provided filter and output parameters +*CertificateStoreTypeApi* | [**CertificateStoreTypeCreateCertificateStoreType**](docs/CertificateStoreTypeApi.md#certificatestoretypecreatecertificatestoretype) | **Post** /CertificateStoreTypes | Creates a new certificate store type with the provided properties +*CertificateStoreTypeApi* | [**CertificateStoreTypeDeleteCertificateStoreType**](docs/CertificateStoreTypeApi.md#certificatestoretypedeletecertificatestoretype) | **Delete** /CertificateStoreTypes/{id} | Deletes a certificate store type according to the provided identifier +*CertificateStoreTypeApi* | [**CertificateStoreTypeDeleteCertificateStoreTypes**](docs/CertificateStoreTypeApi.md#certificatestoretypedeletecertificatestoretypes) | **Delete** /CertificateStoreTypes | Deletes certificate store types according to the provided identifiers +*CertificateStoreTypeApi* | [**CertificateStoreTypeGetCertificateStoreType0**](docs/CertificateStoreTypeApi.md#certificatestoretypegetcertificatestoretype0) | **Get** /CertificateStoreTypes/{id} | Returns a single certificate store type that matches id +*CertificateStoreTypeApi* | [**CertificateStoreTypeGetCertificateStoreType1**](docs/CertificateStoreTypeApi.md#certificatestoretypegetcertificatestoretype1) | **Get** /CertificateStoreTypes/Name/{name} | Returns a single certificate store type that matches the provided short name +*CertificateStoreTypeApi* | [**CertificateStoreTypeGetTypes**](docs/CertificateStoreTypeApi.md#certificatestoretypegettypes) | **Get** /CertificateStoreTypes | Returns all certificate store types according to the provided filter and output parameters +*CertificateStoreTypeApi* | [**CertificateStoreTypeUpdateCertificateStoreType**](docs/CertificateStoreTypeApi.md#certificatestoretypeupdatecertificatestoretype) | **Put** /CertificateStoreTypes | Updates an existing certificate store type with the provided properties +*CustomJobTypeApi* | [**CustomJobTypeCreateJobType**](docs/CustomJobTypeApi.md#customjobtypecreatejobtype) | **Post** /JobTypes/Custom | Creates a custom job type with the provided properties +*CustomJobTypeApi* | [**CustomJobTypeDeleteJobType**](docs/CustomJobTypeApi.md#customjobtypedeletejobtype) | **Delete** /JobTypes/Custom/{id} | Deletes the custom job type associated with the provided id +*CustomJobTypeApi* | [**CustomJobTypeGetJobTypeById**](docs/CustomJobTypeApi.md#customjobtypegetjobtypebyid) | **Get** /JobTypes/Custom/{id} | Returns a single custom job type associated with the provided id +*CustomJobTypeApi* | [**CustomJobTypeGetJobTypes**](docs/CustomJobTypeApi.md#customjobtypegetjobtypes) | **Get** /JobTypes/Custom | Returns all custom job types according to the provided filter and output parameters +*CustomJobTypeApi* | [**CustomJobTypeUpdateJobType**](docs/CustomJobTypeApi.md#customjobtypeupdatejobtype) | **Put** /JobTypes/Custom | Updates an existing custom job type with the provided properties +*DeniedAlertApi* | [**DeniedAlertAddDeniedAlert**](docs/DeniedAlertApi.md#deniedalertadddeniedalert) | **Post** /Alerts/Denied | Add a denied alert +*DeniedAlertApi* | [**DeniedAlertDeleteDeniedAlert**](docs/DeniedAlertApi.md#deniedalertdeletedeniedalert) | **Delete** /Alerts/Denied/{id} | Delete a denied alert +*DeniedAlertApi* | [**DeniedAlertEditDeniedAlert**](docs/DeniedAlertApi.md#deniedalerteditdeniedalert) | **Put** /Alerts/Denied | Edit a denied alert +*DeniedAlertApi* | [**DeniedAlertGetDeniedAlert**](docs/DeniedAlertApi.md#deniedalertgetdeniedalert) | **Get** /Alerts/Denied/{id} | Get a denied alert +*DeniedAlertApi* | [**DeniedAlertGetDeniedAlerts**](docs/DeniedAlertApi.md#deniedalertgetdeniedalerts) | **Get** /Alerts/Denied | Gets all denied alerts according to the provided filter and output parameters +*EnrollmentApi* | [**EnrollmentAddToExistingCertStores**](docs/EnrollmentApi.md#enrollmentaddtoexistingcertstores) | **Post** /Enrollment/PFX/Replace | Creates management jobs to install a newly enrolled pfx into the same certificate stores as the previous certificate +*EnrollmentApi* | [**EnrollmentAvailableRenewalId**](docs/EnrollmentApi.md#enrollmentavailablerenewalid) | **Get** /Enrollment/AvailableRenewal/Id/{id} | Returns the type of renewal available for a given certificate. +*EnrollmentApi* | [**EnrollmentAvailableRenewalThumbprint**](docs/EnrollmentApi.md#enrollmentavailablerenewalthumbprint) | **Get** /Enrollment/AvailableRenewal/Thumbprint/{thumbprint} | Returns the type of renewal available for a given certificate. +*EnrollmentApi* | [**EnrollmentGetMyCSRContext**](docs/EnrollmentApi.md#enrollmentgetmycsrcontext) | **Get** /Enrollment/CSR/Context/My | Returns the list of available CSR enrollment templates and their associated CA mappings that the calling user has permissions on +*EnrollmentApi* | [**EnrollmentGetMyPFXContext**](docs/EnrollmentApi.md#enrollmentgetmypfxcontext) | **Get** /Enrollment/PFX/Context/My | Returns the list of available PFX enrollment templates and their associated CA mappings that the calling user has permissions on +*EnrollmentApi* | [**EnrollmentGetTemplateEnrollmentSettings**](docs/EnrollmentApi.md#enrollmentgettemplateenrollmentsettings) | **Get** /Enrollment/Settings/{id} | Gets the template settings to use during enrollment. The response will be the resolved values for the settings. If there is a template specific setting, the template specific setting will be used in the response. If there is not a template specific setting, the global setting will be used in the response. +*EnrollmentApi* | [**EnrollmentInstallPFXToCertStore**](docs/EnrollmentApi.md#enrollmentinstallpfxtocertstore) | **Post** /Enrollment/PFX/Deploy | Creates management jobs to install a newly enrolled pfx in to one or more certificate stores +*EnrollmentApi* | [**EnrollmentPostCSREnroll**](docs/EnrollmentApi.md#enrollmentpostcsrenroll) | **Post** /Enrollment/CSR | Performs a CSR Enrollment based upon the provided request +*EnrollmentApi* | [**EnrollmentPostPFXEnroll**](docs/EnrollmentApi.md#enrollmentpostpfxenroll) | **Post** /Enrollment/PFX | Performs a PFX Enrollment based upon the provided request +*EnrollmentApi* | [**EnrollmentPostParsedCSR**](docs/EnrollmentApi.md#enrollmentpostparsedcsr) | **Post** /Enrollment/CSR/Parse | Parses the provided CSR and returns the properties +*EnrollmentApi* | [**EnrollmentRenew**](docs/EnrollmentApi.md#enrollmentrenew) | **Post** /Enrollment/Renew | Performs a renewal based upon the passed in request +*ExpirationAlertApi* | [**ExpirationAlertAddExpirationAlert**](docs/ExpirationAlertApi.md#expirationalertaddexpirationalert) | **Post** /Alerts/Expiration | Add an expiration alert +*ExpirationAlertApi* | [**ExpirationAlertDeleteExpirationAlert**](docs/ExpirationAlertApi.md#expirationalertdeleteexpirationalert) | **Delete** /Alerts/Expiration/{id} | Delete an expiration alert +*ExpirationAlertApi* | [**ExpirationAlertEditExpirationAlert**](docs/ExpirationAlertApi.md#expirationalerteditexpirationalert) | **Put** /Alerts/Expiration | Edit an expiration alert +*ExpirationAlertApi* | [**ExpirationAlertEditSchedule**](docs/ExpirationAlertApi.md#expirationalerteditschedule) | **Put** /Alerts/Expiration/Schedule | Edit schedule +*ExpirationAlertApi* | [**ExpirationAlertGetExpirationAlert**](docs/ExpirationAlertApi.md#expirationalertgetexpirationalert) | **Get** /Alerts/Expiration/{id} | Get an expiration alert +*ExpirationAlertApi* | [**ExpirationAlertGetExpirationAlerts**](docs/ExpirationAlertApi.md#expirationalertgetexpirationalerts) | **Get** /Alerts/Expiration | Gets all expiration alerts according to the provided filter and output parameters +*ExpirationAlertApi* | [**ExpirationAlertGetSchedule**](docs/ExpirationAlertApi.md#expirationalertgetschedule) | **Get** /Alerts/Expiration/Schedule | Get the schedule for expiration alerts +*ExpirationAlertApi* | [**ExpirationAlertTestAllExpirationAlert**](docs/ExpirationAlertApi.md#expirationalerttestallexpirationalert) | **Post** /Alerts/Expiration/TestAll | Test All Expiration Alerts +*ExpirationAlertApi* | [**ExpirationAlertTestExpirationAlert**](docs/ExpirationAlertApi.md#expirationalerttestexpirationalert) | **Post** /Alerts/Expiration/Test | Test an Expiration Alert +*IssuedAlertApi* | [**IssuedAlertAddIssuedAlert**](docs/IssuedAlertApi.md#issuedalertaddissuedalert) | **Post** /Alerts/Issued | Add a issued alert +*IssuedAlertApi* | [**IssuedAlertDeleteIssuedAlert**](docs/IssuedAlertApi.md#issuedalertdeleteissuedalert) | **Delete** /Alerts/Issued/{id} | Delete a issued alert +*IssuedAlertApi* | [**IssuedAlertEditIssuedAlert**](docs/IssuedAlertApi.md#issuedalerteditissuedalert) | **Put** /Alerts/Issued | Edit a issued alert +*IssuedAlertApi* | [**IssuedAlertEditSchedule**](docs/IssuedAlertApi.md#issuedalerteditschedule) | **Put** /Alerts/Issued/Schedule | Edit schedule +*IssuedAlertApi* | [**IssuedAlertGetIssuedAlert**](docs/IssuedAlertApi.md#issuedalertgetissuedalert) | **Get** /Alerts/Issued/{id} | Get a issued alert +*IssuedAlertApi* | [**IssuedAlertGetIssuedAlerts**](docs/IssuedAlertApi.md#issuedalertgetissuedalerts) | **Get** /Alerts/Issued | Gets all issued alerts according to the provided filter and output parameters +*IssuedAlertApi* | [**IssuedAlertGetSchedule**](docs/IssuedAlertApi.md#issuedalertgetschedule) | **Get** /Alerts/Issued/Schedule | Get the schedule for issued alerts +*KeyApi* | [**KeyDeleteUnmanagedKey**](docs/KeyApi.md#keydeleteunmanagedkey) | **Delete** /SSH/Keys/Unmanaged/{id} | Deletes Unmanaged Key associated with the provided identifier +*KeyApi* | [**KeyDeleteUnmanagedKeys**](docs/KeyApi.md#keydeleteunmanagedkeys) | **Delete** /SSH/Keys/Unmanaged | Deletes Unmanaged Keys associated with the provided identifiers +*KeyApi* | [**KeyGenerateKey**](docs/KeyApi.md#keygeneratekey) | **Post** /SSH/Keys/MyKey | Generates an SSH Key Pair for the requesting user. +*KeyApi* | [**KeyGetMyKey**](docs/KeyApi.md#keygetmykey) | **Get** /SSH/Keys/MyKey | Returns the current key of the requesting user +*KeyApi* | [**KeyGetUnmanagedKey**](docs/KeyApi.md#keygetunmanagedkey) | **Get** /SSH/Keys/Unmanaged/{id} | Returns an unmanaged SSH key with provided id. +*KeyApi* | [**KeyGetUnmanagedKeys**](docs/KeyApi.md#keygetunmanagedkeys) | **Get** /SSH/Keys/Unmanaged | Returns Unmanaged SSH keys +*KeyApi* | [**KeyUpdate**](docs/KeyApi.md#keyupdate) | **Put** /SSH/Keys/MyKey | Updates the requesting user's SSH key +*KeyRotationAlertApi* | [**KeyRotationAlertAddKeyRotationAlert**](docs/KeyRotationAlertApi.md#keyrotationalertaddkeyrotationalert) | **Post** /Alerts/KeyRotation | Add a key rotation alert +*KeyRotationAlertApi* | [**KeyRotationAlertDeleteKeyRotationAlert**](docs/KeyRotationAlertApi.md#keyrotationalertdeletekeyrotationalert) | **Delete** /Alerts/KeyRotation/{id} | Delete a key rotation alert +*KeyRotationAlertApi* | [**KeyRotationAlertEditKeyRotationAlert**](docs/KeyRotationAlertApi.md#keyrotationalerteditkeyrotationalert) | **Put** /Alerts/KeyRotation | Edit a key rotation alert +*KeyRotationAlertApi* | [**KeyRotationAlertEditSchedule**](docs/KeyRotationAlertApi.md#keyrotationalerteditschedule) | **Put** /Alerts/KeyRotation/Schedule | Edit schedule +*KeyRotationAlertApi* | [**KeyRotationAlertGetKeyRotationAlert**](docs/KeyRotationAlertApi.md#keyrotationalertgetkeyrotationalert) | **Get** /Alerts/KeyRotation/{id} | Get a key rotation alert +*KeyRotationAlertApi* | [**KeyRotationAlertGetKeyRotationAlerts**](docs/KeyRotationAlertApi.md#keyrotationalertgetkeyrotationalerts) | **Get** /Alerts/KeyRotation | Gets all key rotation alerts according to the provided filter and output parameters +*KeyRotationAlertApi* | [**KeyRotationAlertGetSchedule**](docs/KeyRotationAlertApi.md#keyrotationalertgetschedule) | **Get** /Alerts/KeyRotation/Schedule | Get the schedule for key rotation alerts +*KeyRotationAlertApi* | [**KeyRotationAlertTestAllKeyRotationAlert**](docs/KeyRotationAlertApi.md#keyrotationalerttestallkeyrotationalert) | **Post** /Alerts/KeyRotation/TestAll | Test All Alerts +*KeyRotationAlertApi* | [**KeyRotationAlertTestKeyRotationAlert**](docs/KeyRotationAlertApi.md#keyrotationalerttestkeyrotationalert) | **Post** /Alerts/KeyRotation/Test | Test An Alert +*LicenseApi* | [**LicenseGetCurrentLicense**](docs/LicenseApi.md#licensegetcurrentlicense) | **Get** /License | Gets the current license +*LogonApi* | [**LogonCreateLogon**](docs/LogonApi.md#logoncreatelogon) | **Post** /SSH/Logons | Creates a logon with the provided properties +*LogonApi* | [**LogonDelete**](docs/LogonApi.md#logondelete) | **Delete** /SSH/Logons/{id} | Deletes a Logon associated with the provided identifier +*LogonApi* | [**LogonGetLogon**](docs/LogonApi.md#logongetlogon) | **Get** /SSH/Logons/{id} | Fetches a Logon associated with the provided identifier +*LogonApi* | [**LogonLogonAccess**](docs/LogonApi.md#logonlogonaccess) | **Post** /SSH/Logons/Access | Updates the users with access to an existing logon +*LogonApi* | [**LogonQueryLogons**](docs/LogonApi.md#logonquerylogons) | **Get** /SSH/Logons | Returns all Logons according to the provided filter parameters +*MacEnrollmentApi* | [**MacEnrollmentEditMacEnrollment**](docs/MacEnrollmentApi.md#macenrollmenteditmacenrollment) | **Put** /MacEnrollment | Updates mac enrollment settings data +*MacEnrollmentApi* | [**MacEnrollmentMacEnrollment**](docs/MacEnrollmentApi.md#macenrollmentmacenrollment) | **Get** /MacEnrollment | Gets mac enrollment settings data +*MetadataFieldApi* | [**MetadataFieldCreateMetadataField**](docs/MetadataFieldApi.md#metadatafieldcreatemetadatafield) | **Post** /MetadataFields | Creates a new metadata field type with the given metadata field type properties +*MetadataFieldApi* | [**MetadataFieldDeleteMetadataField**](docs/MetadataFieldApi.md#metadatafielddeletemetadatafield) | **Delete** /MetadataFields/{id} | Deletes a persisted metadata field type by its unique id +*MetadataFieldApi* | [**MetadataFieldDeleteMetadataFields**](docs/MetadataFieldApi.md#metadatafielddeletemetadatafields) | **Delete** /MetadataFields | Deletes multiple persisted metadata field types by their unique ids +*MetadataFieldApi* | [**MetadataFieldGetAllMetadataFields**](docs/MetadataFieldApi.md#metadatafieldgetallmetadatafields) | **Get** /MetadataFields | Returns all metadata field types according to the provided filter and output parameters +*MetadataFieldApi* | [**MetadataFieldGetMetadataField0**](docs/MetadataFieldApi.md#metadatafieldgetmetadatafield0) | **Get** /MetadataFields/{id} | Gets a persisted metadata field type by its unique id +*MetadataFieldApi* | [**MetadataFieldGetMetadataField1**](docs/MetadataFieldApi.md#metadatafieldgetmetadatafield1) | **Get** /MetadataFields/{name} | Gets a persisted metadata field type by its unique name +*MetadataFieldApi* | [**MetadataFieldGetMetadataFieldInUse**](docs/MetadataFieldApi.md#metadatafieldgetmetadatafieldinuse) | **Get** /MetadataFields/{id}/InUse | Determines if a metadata field type associated with the provided identifier is currently in use +*MetadataFieldApi* | [**MetadataFieldUpdateMetadataField**](docs/MetadataFieldApi.md#metadatafieldupdatemetadatafield) | **Put** /MetadataFields | Updates a persisted metadata field with the given metadata field type +*MonitoringApi* | [**MonitoringAddRevocationMonitoring**](docs/MonitoringApi.md#monitoringaddrevocationmonitoring) | **Post** /Monitoring/Revocation | Add a revocation monitoring endpoint +*MonitoringApi* | [**MonitoringDeleteRevocationMonitoring**](docs/MonitoringApi.md#monitoringdeleterevocationmonitoring) | **Delete** /Monitoring/Revocation/{id} | Delete a revocation monitoring endpoint +*MonitoringApi* | [**MonitoringEditRevocationMonitoring**](docs/MonitoringApi.md#monitoringeditrevocationmonitoring) | **Put** /Monitoring/Revocation | Edit a revocation monitoring endpoint +*MonitoringApi* | [**MonitoringGetRevocationMonitoring**](docs/MonitoringApi.md#monitoringgetrevocationmonitoring) | **Get** /Monitoring/Revocation/{id} | Get a revocation monitoring endpoint +*MonitoringApi* | [**MonitoringGetRevocationMonitoringEndpoints**](docs/MonitoringApi.md#monitoringgetrevocationmonitoringendpoints) | **Get** /Monitoring/Revocation | Gets all revocation monitoring endpoints according to the provided filter and output parameters +*MonitoringApi* | [**MonitoringResolveOCSP**](docs/MonitoringApi.md#monitoringresolveocsp) | **Post** /Monitoring/ResolveOCSP | Resolve the Certificate authority given +*MonitoringApi* | [**MonitoringTestAllRevocationMonitoringAlert**](docs/MonitoringApi.md#monitoringtestallrevocationmonitoringalert) | **Post** /Monitoring/Revocation/TestAll | Test All Alerts +*MonitoringApi* | [**MonitoringTestRevocationMonitoringAlert**](docs/MonitoringApi.md#monitoringtestrevocationmonitoringalert) | **Post** /Monitoring/Revocation/Test | Test Alert +*OrchestratorJobApi* | [**OrchestratorJobAcknowledgeJobs**](docs/OrchestratorJobApi.md#orchestratorjobacknowledgejobs) | **Post** /OrchestratorJobs/Acknowledge | Acknowledges orchestrator jobs based on the provided information +*OrchestratorJobApi* | [**OrchestratorJobGetCustomJobResultData**](docs/OrchestratorJobApi.md#orchestratorjobgetcustomjobresultdata) | **Get** /OrchestratorJobs/JobStatus/Data | Retrieves the results of a custom job using the provided information +*OrchestratorJobApi* | [**OrchestratorJobGetJobHistory**](docs/OrchestratorJobApi.md#orchestratorjobgetjobhistory) | **Get** /OrchestratorJobs/JobHistory | Returns all histories of an orchestrator job according to the provided filter and output parameters +*OrchestratorJobApi* | [**OrchestratorJobGetScheduledJobs**](docs/OrchestratorJobApi.md#orchestratorjobgetscheduledjobs) | **Get** /OrchestratorJobs/ScheduledJobs | Returns all scheduled orchestrator jobs according to the provided filter and output parameters +*OrchestratorJobApi* | [**OrchestratorJobRescheduleJobs**](docs/OrchestratorJobApi.md#orchestratorjobreschedulejobs) | **Post** /OrchestratorJobs/Reschedule | Reschedules orchestrator jobs based on the provided information +*OrchestratorJobApi* | [**OrchestratorJobScheduleBulkJob**](docs/OrchestratorJobApi.md#orchestratorjobschedulebulkjob) | **Post** /OrchestratorJobs/Custom/Bulk | Schedules the same job for a custom JobType on the specified agents using the provided information +*OrchestratorJobApi* | [**OrchestratorJobScheduleJob**](docs/OrchestratorJobApi.md#orchestratorjobschedulejob) | **Post** /OrchestratorJobs/Custom | Schedules a job for a custom JobType on the agent using the provided information +*OrchestratorJobApi* | [**OrchestratorJobUnscheduleJobs**](docs/OrchestratorJobApi.md#orchestratorjobunschedulejobs) | **Post** /OrchestratorJobs/Unschedule | Unschedules orchestrator jobs based on the provided information +*PAMProviderApi* | [**PAMProviderCreatePamProvider**](docs/PAMProviderApi.md#pamprovidercreatepamprovider) | **Post** /PamProviders | Creates a new PAM provider with the associated properties +*PAMProviderApi* | [**PAMProviderCreatePamProviderType**](docs/PAMProviderApi.md#pamprovidercreatepamprovidertype) | **Post** /PamProviders/Types | Creates a new PAM provider type with the associated properties +*PAMProviderApi* | [**PAMProviderDeletePamProvider**](docs/PAMProviderApi.md#pamproviderdeletepamprovider) | **Delete** /PamProviders/{id} | Deletes a PAM Provider +*PAMProviderApi* | [**PAMProviderGetPamProvider**](docs/PAMProviderApi.md#pamprovidergetpamprovider) | **Get** /PamProviders/{id} | Returns a single PAM Provider that matches the associated id +*PAMProviderApi* | [**PAMProviderGetPamProviderTypes**](docs/PAMProviderApi.md#pamprovidergetpamprovidertypes) | **Get** /PamProviders/Types | Returns all PAM providers in the Keyfactor instance +*PAMProviderApi* | [**PAMProviderGetPamProviders**](docs/PAMProviderApi.md#pamprovidergetpamproviders) | **Get** /PamProviders | Returns all PAM providers according to the provided filter and output parameters +*PAMProviderApi* | [**PAMProviderUpdatePamProvider**](docs/PAMProviderApi.md#pamproviderupdatepamprovider) | **Put** /PamProviders | Updates an existing PAM provider according to the provided properties +*PendingAlertApi* | [**PendingAlertAddPendingAlert**](docs/PendingAlertApi.md#pendingalertaddpendingalert) | **Post** /Alerts/Pending | Add a pending alert +*PendingAlertApi* | [**PendingAlertDeletePendingAlert**](docs/PendingAlertApi.md#pendingalertdeletependingalert) | **Delete** /Alerts/Pending/{id} | Delete a pending alert +*PendingAlertApi* | [**PendingAlertEditPendingAlert**](docs/PendingAlertApi.md#pendingalerteditpendingalert) | **Put** /Alerts/Pending | Edit a pending alert +*PendingAlertApi* | [**PendingAlertEditSchedule**](docs/PendingAlertApi.md#pendingalerteditschedule) | **Put** /Alerts/Pending/Schedule | Edit schedule +*PendingAlertApi* | [**PendingAlertGetPendingAlert**](docs/PendingAlertApi.md#pendingalertgetpendingalert) | **Get** /Alerts/Pending/{id} | Get a pending alert +*PendingAlertApi* | [**PendingAlertGetPendingAlerts**](docs/PendingAlertApi.md#pendingalertgetpendingalerts) | **Get** /Alerts/Pending | Gets all pending alerts according to the provided filter and output parameters +*PendingAlertApi* | [**PendingAlertGetSchedule**](docs/PendingAlertApi.md#pendingalertgetschedule) | **Get** /Alerts/Pending/Schedule | Get the schedule for pending alerts +*PendingAlertApi* | [**PendingAlertTestAllPendingAlert**](docs/PendingAlertApi.md#pendingalerttestallpendingalert) | **Post** /Alerts/Pending/TestAll | Test all pending alerts. Will send alert emails if SendAlerts is true +*PendingAlertApi* | [**PendingAlertTestPendingAlert**](docs/PendingAlertApi.md#pendingalerttestpendingalert) | **Post** /Alerts/Pending/Test | Test pending alert. Will send alert emails if SendAlerts is true +*ReportsApi* | [**ReportsCreateCustomReport**](docs/ReportsApi.md#reportscreatecustomreport) | **Post** /Reports/Custom | Creates a custom report +*ReportsApi* | [**ReportsCreateReportSchedule**](docs/ReportsApi.md#reportscreatereportschedule) | **Post** /Reports/{id}/Schedules | Create a built-in report's schedule that matches the id of the report. +*ReportsApi* | [**ReportsDeleteReport**](docs/ReportsApi.md#reportsdeletereport) | **Delete** /Reports/Custom/{id} | Delete custom report that matches the id +*ReportsApi* | [**ReportsDeleteReportSchedule**](docs/ReportsApi.md#reportsdeletereportschedule) | **Delete** /Reports/Schedules/{id} | Delete a built-in report's schedule that matches the id of the schedule. +*ReportsApi* | [**ReportsGetCustomReport**](docs/ReportsApi.md#reportsgetcustomreport) | **Get** /Reports/Custom/{id} | Returns a single custom report that matches the id +*ReportsApi* | [**ReportsGetReport**](docs/ReportsApi.md#reportsgetreport) | **Get** /Reports/{id} | Returns a single built-in report that matches the id +*ReportsApi* | [**ReportsGetReportParameters**](docs/ReportsApi.md#reportsgetreportparameters) | **Get** /Reports/{id}/Parameters | Get a built-in report's parameters that matches the id of the report. +*ReportsApi* | [**ReportsGetReportSchedule**](docs/ReportsApi.md#reportsgetreportschedule) | **Get** /Reports/Schedules/{id} | Get a built-in report's schedule that matches the id of the schedule. +*ReportsApi* | [**ReportsGetReportSchedules**](docs/ReportsApi.md#reportsgetreportschedules) | **Get** /Reports/{id}/Schedules | Get a built-in report's schedules that matches the id of the report. +*ReportsApi* | [**ReportsQueryCustomReports**](docs/ReportsApi.md#reportsquerycustomreports) | **Get** /Reports/Custom | Returns all custom reports according to the provided filter and output parameters +*ReportsApi* | [**ReportsQueryReports**](docs/ReportsApi.md#reportsqueryreports) | **Get** /Reports | Returns all built-in reports according to the provided filter and output parameters +*ReportsApi* | [**ReportsUpdateCustomReport**](docs/ReportsApi.md#reportsupdatecustomreport) | **Put** /Reports/Custom | Updates a custom report that matches the id +*ReportsApi* | [**ReportsUpdateReport**](docs/ReportsApi.md#reportsupdatereport) | **Put** /Reports | Updates a single built-in report that matches the id. Only some fields can be updated. +*ReportsApi* | [**ReportsUpdateReportParameters**](docs/ReportsApi.md#reportsupdatereportparameters) | **Put** /Reports/{id}/Parameters | Update a built-in report's parameters that matches the id of the report. +*ReportsApi* | [**ReportsUpdateReportSchedule**](docs/ReportsApi.md#reportsupdatereportschedule) | **Put** /Reports/{id}/Schedules | Update a built-in report's schedule that matches the id of the report. +*SMTPApi* | [**SMTPSMTP**](docs/SMTPApi.md#smtpsmtp) | **Get** /SMTP | Gets SMTP profile data +*SMTPApi* | [**SMTPTestSMTP**](docs/SMTPApi.md#smtptestsmtp) | **Post** /SMTP/Test | Tests SMTP profile data +*SMTPApi* | [**SMTPUpdateSMTP**](docs/SMTPApi.md#smtpupdatesmtp) | **Put** /SMTP | Updates SMTP profile data +*SecurityApi* | [**SecurityDeleteSecurityIdentity**](docs/SecurityApi.md#securitydeletesecurityidentity) | **Delete** /Security/Identities/{id} | Deletes the security identity whose ID is provided. +*SecurityApi* | [**SecurityIdentityPermissions**](docs/SecurityApi.md#securityidentitypermissions) | **Get** /Security/Identities/{id} | Gets an object representing the permissions of the identity associated with the provided identifier. +*SecurityApi* | [**SecurityLookupIdentity**](docs/SecurityApi.md#securitylookupidentity) | **Get** /Security/Identities/Lookup | Validates that the identity with the name given exists. +*SecurityRolePermissionsApi* | [**SecurityRolePermissionsAddCollectionPermissions**](docs/SecurityRolePermissionsApi.md#securityrolepermissionsaddcollectionpermissions) | **Post** /Security/Roles/{id}/Permissions/Collections | Adds collection permissions to the security role that matches the id. +*SecurityRolePermissionsApi* | [**SecurityRolePermissionsAddContainerPermissions**](docs/SecurityRolePermissionsApi.md#securityrolepermissionsaddcontainerpermissions) | **Post** /Security/Roles/{id}/Permissions/Containers | Adds container permissions to the security role that matches the id. +*SecurityRolePermissionsApi* | [**SecurityRolePermissionsAddGlobalPermissions**](docs/SecurityRolePermissionsApi.md#securityrolepermissionsaddglobalpermissions) | **Post** /Security/Roles/{id}/Permissions/Global | Adds global permissions to the security role that matches the id. +*SecurityRolePermissionsApi* | [**SecurityRolePermissionsGetCollectionPermissionsForRole**](docs/SecurityRolePermissionsApi.md#securityrolepermissionsgetcollectionpermissionsforrole) | **Get** /Security/Roles/{id}/Permissions/Collections | Returns all collection permissions associated with the security role that matches the id. +*SecurityRolePermissionsApi* | [**SecurityRolePermissionsGetContainerPermissionsForRole**](docs/SecurityRolePermissionsApi.md#securityrolepermissionsgetcontainerpermissionsforrole) | **Get** /Security/Roles/{id}/Permissions/Containers | Returns all container permissions associated with the security role that matches the id. +*SecurityRolePermissionsApi* | [**SecurityRolePermissionsGetGlobalPermissionsForRole**](docs/SecurityRolePermissionsApi.md#securityrolepermissionsgetglobalpermissionsforrole) | **Get** /Security/Roles/{id}/Permissions/Global | Returns all global permissions associated with the security role that matches the id. +*SecurityRolePermissionsApi* | [**SecurityRolePermissionsGetPermissionsForRole**](docs/SecurityRolePermissionsApi.md#securityrolepermissionsgetpermissionsforrole) | **Get** /Security/Roles/{id}/Permissions | Returns all permissions associated with the security role that matches the id. +*SecurityRolePermissionsApi* | [**SecurityRolePermissionsSetCollectionPermissions**](docs/SecurityRolePermissionsApi.md#securityrolepermissionssetcollectionpermissions) | **Put** /Security/Roles/{id}/Permissions/Collections | Sets collection permissions to the security role that matches the id. +*SecurityRolePermissionsApi* | [**SecurityRolePermissionsSetContainerPermissions**](docs/SecurityRolePermissionsApi.md#securityrolepermissionssetcontainerpermissions) | **Put** /Security/Roles/{id}/Permissions/Containers | Sets container permissions to the security role that matches the id. +*SecurityRolePermissionsApi* | [**SecurityRolePermissionsSetGlobalPermissions**](docs/SecurityRolePermissionsApi.md#securityrolepermissionssetglobalpermissions) | **Put** /Security/Roles/{id}/Permissions/Global | Adds global permissions to the security role that matches the id. +*SecurityRolesApi* | [**SecurityRolesDeleteSecurityRole**](docs/SecurityRolesApi.md#securityrolesdeletesecurityrole) | **Delete** /Security/Roles/{id} | Deletes the security role whose ID is provided. +*SecurityRolesApi* | [**SecurityRolesGetIdentitiesWithRole**](docs/SecurityRolesApi.md#securityrolesgetidentitieswithrole) | **Get** /Security/Roles/{id}/Identities | Returns all identities which have the security role that matches the id. +*SecurityRolesApi* | [**SecurityRolesUpdateIdentitiesWithRole**](docs/SecurityRolesApi.md#securityrolesupdateidentitieswithrole) | **Put** /Security/Roles/{id}/Identities | Updates the identities which have the security role that matches the id. +*ServerApi* | [**ServerAddAccess**](docs/ServerApi.md#serveraddaccess) | **Post** /SSH/Servers/Access | Updates logons and users with access to those logons for an existing server +*ServerApi* | [**ServerCreateServer**](docs/ServerApi.md#servercreateserver) | **Post** /SSH/Servers | Creates a server with the provided properties +*ServerApi* | [**ServerDelete**](docs/ServerApi.md#serverdelete) | **Delete** /SSH/Servers/{id} | Deletes a Server associated with the provided identifier +*ServerApi* | [**ServerGet**](docs/ServerApi.md#serverget) | **Get** /SSH/Servers/{id} | Returns a Server associated with the provided identifier +*ServerApi* | [**ServerGetAccess**](docs/ServerApi.md#servergetaccess) | **Get** /SSH/Servers/Access/{id} | Retrieves logons and users with access to those logons for an existing server +*ServerApi* | [**ServerQueryServers**](docs/ServerApi.md#serverqueryservers) | **Get** /SSH/Servers | Returns all servers according to the provided filter parameters +*ServerApi* | [**ServerRemoveAccess**](docs/ServerApi.md#serverremoveaccess) | **Delete** /SSH/Servers/Access | Updates logons and users with access to those logons for an existing server +*ServerApi* | [**ServerUpdateServer**](docs/ServerApi.md#serverupdateserver) | **Put** /SSH/Servers | Updates an existing server with the provided properties +*ServerGroupApi* | [**ServerGroupAddAccess**](docs/ServerGroupApi.md#servergroupaddaccess) | **Post** /SSH/ServerGroups/Access | Add access rules to the server group +*ServerGroupApi* | [**ServerGroupCreateServerGroup**](docs/ServerGroupApi.md#servergroupcreateservergroup) | **Post** /SSH/ServerGroups | Creates a server group with the provided properties +*ServerGroupApi* | [**ServerGroupDelete**](docs/ServerGroupApi.md#servergroupdelete) | **Delete** /SSH/ServerGroups/{id} | Deletes a ServerGroup associated with the provided identifier +*ServerGroupApi* | [**ServerGroupGetAccess**](docs/ServerGroupApi.md#servergroupgetaccess) | **Get** /SSH/ServerGroups/Access/{id} | Retrieves logons and users with access to those logons for an existing server group +*ServerGroupApi* | [**ServerGroupGetGroup**](docs/ServerGroupApi.md#servergroupgetgroup) | **Get** /SSH/ServerGroups/{id} | Returns a ServerGroup associated with the provided identifier +*ServerGroupApi* | [**ServerGroupGetGroupByName**](docs/ServerGroupApi.md#servergroupgetgroupbyname) | **Get** /SSH/ServerGroups/{name} | Returns a ServerGroup associated with the provided identifier +*ServerGroupApi* | [**ServerGroupQueryServerGroups**](docs/ServerGroupApi.md#servergroupqueryservergroups) | **Get** /SSH/ServerGroups | Returns all server groups according to the provided filter parameters +*ServerGroupApi* | [**ServerGroupRemoveAccess**](docs/ServerGroupApi.md#servergroupremoveaccess) | **Delete** /SSH/ServerGroups/Access | Removes access mappings for the specified server group +*ServerGroupApi* | [**ServerGroupUpdateServerGroup**](docs/ServerGroupApi.md#servergroupupdateservergroup) | **Put** /SSH/ServerGroups | Updates an existing server group with the provided properties +*ServiceAccountApi* | [**ServiceAccountCreateServiceAccount**](docs/ServiceAccountApi.md#serviceaccountcreateserviceaccount) | **Post** /SSH/ServiceAccounts | Creates a ServiceAccount with the provided properties +*ServiceAccountApi* | [**ServiceAccountDeleteServiceAccount**](docs/ServiceAccountApi.md#serviceaccountdeleteserviceaccount) | **Delete** /SSH/ServiceAccounts/{id} | Deletes a ServiceAccount associated with the provided identifier +*ServiceAccountApi* | [**ServiceAccountDeleteServiceAccounts**](docs/ServiceAccountApi.md#serviceaccountdeleteserviceaccounts) | **Delete** /SSH/ServiceAccounts | Deletes Service Accounts associated with the provided identifiers +*ServiceAccountApi* | [**ServiceAccountGet**](docs/ServiceAccountApi.md#serviceaccountget) | **Get** /SSH/ServiceAccounts/{id} | Returns a ServiceAccount associated with the provided identifier +*ServiceAccountApi* | [**ServiceAccountGetServiceAccountKey**](docs/ServiceAccountApi.md#serviceaccountgetserviceaccountkey) | **Get** /SSH/ServiceAccounts/Key/{id} | Returns an SSH key with or without private key based on the provided parameters. +*ServiceAccountApi* | [**ServiceAccountQueryServiceAccounts**](docs/ServiceAccountApi.md#serviceaccountqueryserviceaccounts) | **Get** /SSH/ServiceAccounts | Returns all ServiceAccounts according to the provided filter parameters +*ServiceAccountApi* | [**ServiceAccountRotateServiceAccountKey**](docs/ServiceAccountApi.md#serviceaccountrotateserviceaccountkey) | **Post** /SSH/ServiceAccounts/Rotate/{id} | Rotate an SSH key for a specified service account. +*ServiceAccountApi* | [**ServiceAccountUpdateServiceAccount**](docs/ServiceAccountApi.md#serviceaccountupdateserviceaccount) | **Put** /SSH/ServiceAccounts | Updates an SSH key for a specified service account. +*SslApi* | [**SslAddNetworkRanges**](docs/SslApi.md#ssladdnetworkranges) | **Post** /SSL/NetworkRanges | Adds the provided network range definitions to the associated network definition +*SslApi* | [**SslCreateNetwork**](docs/SslApi.md#sslcreatenetwork) | **Post** /SSL/Networks | Creates a network definition according to the provided properties +*SslApi* | [**SslEndpoint**](docs/SslApi.md#sslendpoint) | **Get** /SSL/Endpoints/{id} | Returns the details of the associated scanning endpoint +*SslApi* | [**SslEndpointHistory**](docs/SslApi.md#sslendpointhistory) | **Get** /SSL/Endpoints/{id}/History | Returns a list of the scan results for the provided endpoint according to the provided filter and output parameters +*SslApi* | [**SslGetNetwork**](docs/SslApi.md#sslgetnetwork) | **Get** /SSL/Networks/{identifier} | Returns a defined SSL network according to the provided name +*SslApi* | [**SslGetNetworkRangesForNetwork**](docs/SslApi.md#sslgetnetworkrangesfornetwork) | **Get** /SSL/NetworkRanges/{id} | Returns the network range definitions for the provided network definition +*SslApi* | [**SslGetNetworks**](docs/SslApi.md#sslgetnetworks) | **Get** /SSL/Networks | Returns all defined SSL networks according to the provided filter and output parameters +*SslApi* | [**SslImmediateSslScan**](docs/SslApi.md#sslimmediatesslscan) | **Post** /SSL/Networks/{id}/Scan | Starts an SSL Scan for the network according to the associated network definition +*SslApi* | [**SslMonitorAll**](docs/SslApi.md#sslmonitorall) | **Put** /SSL/Endpoints/MonitorAll | Sets all endpoints matching the provided query as 'monitored' +*SslApi* | [**SslMonitoringStatus**](docs/SslApi.md#sslmonitoringstatus) | **Put** /SSL/Endpoints/MonitorStatus | Sets the monitored status according to the provided endpoint and boolean status +*SslApi* | [**SslNetworkScanParts**](docs/SslApi.md#sslnetworkscanparts) | **Get** /SSL/Networks/{id}/Parts | Returns the scan job components comprising the entire scan job to be executed +*SslApi* | [**SslRemoveAllNetworkRanges**](docs/SslApi.md#sslremoveallnetworkranges) | **Delete** /SSL/NetworkRanges/{id} | Removes all network range definitions from the associated network definition +*SslApi* | [**SslRemoveNetwork**](docs/SslApi.md#sslremovenetwork) | **Delete** /SSL/Networks/{id} | Removes a network definition according to the provided identifier +*SslApi* | [**SslResults**](docs/SslApi.md#sslresults) | **Get** /SSL | Returns a list of the endpoint scan results according to the provided filter and output parameters +*SslApi* | [**SslReviewAll**](docs/SslApi.md#sslreviewall) | **Put** /SSL/Endpoints/ReviewAll | Sets all endpoints matching the provided query as 'reviewed' +*SslApi* | [**SslReviewedStatus**](docs/SslApi.md#sslreviewedstatus) | **Put** /SSL/Endpoints/ReviewStatus | Sets the reviewed status according to the provided endpoint and boolean status +*SslApi* | [**SslScanPart**](docs/SslApi.md#sslscanpart) | **Get** /SSL/Parts/{id} | Returns the execution details of the associated network scan job part +*SslApi* | [**SslSetNetworkRanges**](docs/SslApi.md#sslsetnetworkranges) | **Put** /SSL/NetworkRanges | Configures network range definitions for the provided network +*SslApi* | [**SslUpdateNetwork**](docs/SslApi.md#sslupdatenetwork) | **Put** /SSL/Networks | Updates an existing network definition according to the provided properties +*SslApi* | [**SslValidateNetworkRanges**](docs/SslApi.md#sslvalidatenetworkranges) | **Post** /SSL/NetworkRanges/Validate | Validates the format (using regular expressions) of the provided network range definitions +*StatusApi* | [**StatusGetEndpoints**](docs/StatusApi.md#statusgetendpoints) | **Get** /Status/Endpoints | Returns all endpoints to which the requesting identity has access +*TemplateApi* | [**TemplateGetGlobalSettings**](docs/TemplateApi.md#templategetglobalsettings) | **Get** /Templates/Settings | Gets the global template settings. +*TemplateApi* | [**TemplateGetTemplate**](docs/TemplateApi.md#templategettemplate) | **Get** /Templates/{id} | Returns the certificate template associated with the provided id +*TemplateApi* | [**TemplateGetTemplates**](docs/TemplateApi.md#templategettemplates) | **Get** /Templates | Returns all certificate templates according to the provided filter and output parameters +*TemplateApi* | [**TemplateGetValidSubjectParts**](docs/TemplateApi.md#templategetvalidsubjectparts) | **Get** /Templates/SubjectParts | +*TemplateApi* | [**TemplateImport**](docs/TemplateApi.md#templateimport) | **Post** /Templates/Import | Imports templates from the provided configuration tenant +*TemplateApi* | [**TemplateUpdateGlobalSettings**](docs/TemplateApi.md#templateupdateglobalsettings) | **Put** /Templates/Settings | Replaces the existing global template settings. +*TemplateApi* | [**TemplateUpdateTemplate**](docs/TemplateApi.md#templateupdatetemplate) | **Put** /Templates | Updates a certificate template according to the provided properties +*UserApi* | [**UserCreateUser**](docs/UserApi.md#usercreateuser) | **Post** /SSH/Users | Creates a new SSH User. +*UserApi* | [**UserDeleteUser**](docs/UserApi.md#userdeleteuser) | **Delete** /SSH/Users/{id} | Deletes an SSH user. +*UserApi* | [**UserGetUser**](docs/UserApi.md#usergetuser) | **Get** /SSH/Users/{id} | Looks up information about an existing SSH user. +*UserApi* | [**UserQueryUsers**](docs/UserApi.md#userqueryusers) | **Get** /SSH/Users | Returns users matching the criteria from the provided query parameters +*UserApi* | [**UserUpdateUser**](docs/UserApi.md#userupdateuser) | **Put** /SSH/Users | Updates information about a given user. +*UserApi* | [**UserUserAccess**](docs/UserApi.md#useruseraccess) | **Post** /SSH/Users/Access | Updates logon access for a user +*WorkflowApi* | [**WorkflowApprovePendingRequests**](docs/WorkflowApi.md#workflowapprovependingrequests) | **Post** /Workflow/Certificates/Approve | Approves pending certificate requests associated with the provided ids +*WorkflowApi* | [**WorkflowDenyPendingRequests**](docs/WorkflowApi.md#workflowdenypendingrequests) | **Post** /Workflow/Certificates/Deny | Denies pending certificate requests associated with the provided ids +*WorkflowApi* | [**WorkflowGet**](docs/WorkflowApi.md#workflowget) | **Get** /Workflow/Certificates/Pending | Gets a collection of certificate requests based on the provided query. +*WorkflowApi* | [**WorkflowGetCertificateRequestDetails**](docs/WorkflowApi.md#workflowgetcertificaterequestdetails) | **Get** /Workflow/Certificates/{id} | Returns certificate request details based on the provided ID. +*WorkflowApi* | [**WorkflowGetDenied**](docs/WorkflowApi.md#workflowgetdenied) | **Get** /Workflow/Certificates/Denied | Gets a collection of denied certificate requests based on the provided query. +*WorkflowDefinitionApi* | [**WorkflowDefinitionConfigureDefinitionSteps**](docs/WorkflowDefinitionApi.md#workflowdefinitionconfiguredefinitionsteps) | **Put** /Workflow/Definitions/{definitionId}/Steps | Sets the provided steps on the latest version of the definition. +*WorkflowDefinitionApi* | [**WorkflowDefinitionCreateNewDefinition**](docs/WorkflowDefinitionApi.md#workflowdefinitioncreatenewdefinition) | **Post** /Workflow/Definitions | Creates a new base definition without any steps. +*WorkflowDefinitionApi* | [**WorkflowDefinitionDelete**](docs/WorkflowDefinitionApi.md#workflowdefinitiondelete) | **Delete** /Workflow/Definitions/{definitionId} | Deletes the definition matching the given Id. +*WorkflowDefinitionApi* | [**WorkflowDefinitionGet**](docs/WorkflowDefinitionApi.md#workflowdefinitionget) | **Get** /Workflow/Definitions/{definitionId} | Gets a workflow definition. +*WorkflowDefinitionApi* | [**WorkflowDefinitionGetStepSchema**](docs/WorkflowDefinitionApi.md#workflowdefinitiongetstepschema) | **Get** /Workflow/Definitions/Steps/{extensionName} | Gets the schema of a given step with the specified extension name. +*WorkflowDefinitionApi* | [**WorkflowDefinitionPublishDefinition**](docs/WorkflowDefinitionApi.md#workflowdefinitionpublishdefinition) | **Post** /Workflow/Definitions/{definitionId}/Publish | Makes the most recent version of a Workflow Definition the published version. +*WorkflowDefinitionApi* | [**WorkflowDefinitionQuery**](docs/WorkflowDefinitionApi.md#workflowdefinitionquery) | **Get** /Workflow/Definitions | Gets the Definitions matching the query specifications. +*WorkflowDefinitionApi* | [**WorkflowDefinitionQueryAvailableSteps**](docs/WorkflowDefinitionApi.md#workflowdefinitionqueryavailablesteps) | **Get** /Workflow/Definitions/Steps | Gets the result set of available steps for a given query. +*WorkflowDefinitionApi* | [**WorkflowDefinitionQueryWorkflowTypes**](docs/WorkflowDefinitionApi.md#workflowdefinitionqueryworkflowtypes) | **Get** /Workflow/Definitions/Types | Performs a query against the workflow types in the system. +*WorkflowDefinitionApi* | [**WorkflowDefinitionUpdateExistingDefinition**](docs/WorkflowDefinitionApi.md#workflowdefinitionupdateexistingdefinition) | **Put** /Workflow/Definitions/{definitionId} | Updates the existing definition's DisplayName and Description. +*WorkflowInstanceApi* | [**WorkflowInstanceDeleteInstance**](docs/WorkflowInstanceApi.md#workflowinstancedeleteinstance) | **Delete** /Workflow/Instances/{instanceId} | Deletes the specified instance. +*WorkflowInstanceApi* | [**WorkflowInstanceGet**](docs/WorkflowInstanceApi.md#workflowinstanceget) | **Get** /Workflow/Instances/{instanceId} | Get information relevant for knowing where an instance is in its workflow. +*WorkflowInstanceApi* | [**WorkflowInstanceQuery**](docs/WorkflowInstanceApi.md#workflowinstancequery) | **Get** /Workflow/Instances | Gets the workflow instances matching the query specifications. +*WorkflowInstanceApi* | [**WorkflowInstanceQueryInstancesAssignedToMe**](docs/WorkflowInstanceApi.md#workflowinstancequeryinstancesassignedtome) | **Get** /Workflow/Instances/AssignedToMe | Gets the workflow instances waiting on the user. +*WorkflowInstanceApi* | [**WorkflowInstanceQueryInstancesStartedByMe**](docs/WorkflowInstanceApi.md#workflowinstancequeryinstancesstartedbyme) | **Get** /Workflow/Instances/My | Gets the workflow instances started by the user. +*WorkflowInstanceApi* | [**WorkflowInstanceRestart**](docs/WorkflowInstanceApi.md#workflowinstancerestart) | **Post** /Workflow/Instances/{instanceId}/Restart | Restarts a failed instance against the specified definition version or the published version if no version is specified. +*WorkflowInstanceApi* | [**WorkflowInstanceSignal**](docs/WorkflowInstanceApi.md#workflowinstancesignal) | **Post** /Workflow/Instances/{instanceId}/Signals | Receives the given signal for the given instance. +*WorkflowInstanceApi* | [**WorkflowInstanceStop**](docs/WorkflowInstanceApi.md#workflowinstancestop) | **Post** /Workflow/Instances/{instanceId}/Stop | Rejects an instance, preventing it from continuing. + + +## Documentation For Models + + - [CSSCMSDataModelModelsPamProviderTypeParamValue](docs/CSSCMSDataModelModelsPamProviderTypeParamValue.md) + - [CSSCMSDataModelModelsProvider](docs/CSSCMSDataModelModelsProvider.md) + - [CSSCMSDataModelModelsProviderType](docs/CSSCMSDataModelModelsProviderType.md) + - [CSSCMSDataModelModelsProviderTypeParam](docs/CSSCMSDataModelModelsProviderTypeParam.md) + - [CoreModelsEnrollmentEnrollmentCA](docs/CoreModelsEnrollmentEnrollmentCA.md) + - [CoreModelsEnrollmentEnrollmentTemplate](docs/CoreModelsEnrollmentEnrollmentTemplate.md) + - [CoreModelsEnrollmentEnrollmentTemplateCAResponse](docs/CoreModelsEnrollmentEnrollmentTemplateCAResponse.md) + - [KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse](docs/KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse.md) + - [KeyfactorAPIModelsSMTPSMTPRequest](docs/KeyfactorAPIModelsSMTPSMTPRequest.md) + - [KeyfactorAPIModelsSMTPSMTPResponse](docs/KeyfactorAPIModelsSMTPSMTPResponse.md) + - [KeyfactorAPIModelsSMTPSMTPTestRequest](docs/KeyfactorAPIModelsSMTPSMTPTestRequest.md) + - [KeyfactorAPIModelsSMTPSMTPTestResponse](docs/KeyfactorAPIModelsSMTPSMTPTestResponse.md) + - [KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse](docs/KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse.md) + - [KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest](docs/KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest.md) + - [KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse](docs/KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse.md) + - [KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse](docs/KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse.md) + - [KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest](docs/KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest.md) + - [KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse](docs/KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse.md) + - [KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest](docs/KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest.md) + - [KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest](docs/KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest.md) + - [KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse](docs/KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse.md) + - [KeyfactorApiModelsAlertsExpirationExpirationAlertResponse](docs/KeyfactorApiModelsAlertsExpirationExpirationAlertResponse.md) + - [KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest](docs/KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest.md) + - [KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest](docs/KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest.md) + - [KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse](docs/KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse.md) + - [KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest](docs/KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest.md) + - [KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest](docs/KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest.md) + - [KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse](docs/KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse.md) + - [KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest](docs/KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest.md) + - [KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest](docs/KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest.md) + - [KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse](docs/KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse.md) + - [KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse](docs/KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse.md) + - [KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest](docs/KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest.md) + - [KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest](docs/KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest.md) + - [KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse](docs/KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse.md) + - [KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest](docs/KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest.md) + - [KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest](docs/KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest.md) + - [KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse](docs/KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse.md) + - [KeyfactorApiModelsAlertsPendingPendingAlertResponse](docs/KeyfactorApiModelsAlertsPendingPendingAlertResponse.md) + - [KeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest](docs/KeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest.md) + - [KeyfactorApiModelsAlertsPendingPendingAlertTestRequest](docs/KeyfactorApiModelsAlertsPendingPendingAlertTestRequest.md) + - [KeyfactorApiModelsAlertsPendingPendingAlertTestResponse](docs/KeyfactorApiModelsAlertsPendingPendingAlertTestResponse.md) + - [KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest](docs/KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest.md) + - [KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse](docs/KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse.md) + - [KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest](docs/KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest.md) + - [KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest](docs/KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest.md) + - [KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse](docs/KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse.md) + - [KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest](docs/KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest.md) + - [KeyfactorApiModelsCertificateStoresAddCertificateRequest](docs/KeyfactorApiModelsCertificateStoresAddCertificateRequest.md) + - [KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest](docs/KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest.md) + - [KeyfactorApiModelsCertificateStoresJobHistoryResponse](docs/KeyfactorApiModelsCertificateStoresJobHistoryResponse.md) + - [KeyfactorApiModelsCertificateStoresReenrollmentRequest](docs/KeyfactorApiModelsCertificateStoresReenrollmentRequest.md) + - [KeyfactorApiModelsCertificateStoresRemoveCertificateRequest](docs/KeyfactorApiModelsCertificateStoresRemoveCertificateRequest.md) + - [KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest](docs/KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest.md) + - [KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse](docs/KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse.md) + - [KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest](docs/KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest.md) + - [KeyfactorApiModelsCertificatesAnalyzeCertificateRequest](docs/KeyfactorApiModelsCertificatesAnalyzeCertificateRequest.md) + - [KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse](docs/KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse.md) + - [KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission](docs/KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission.md) + - [KeyfactorApiModelsCertificatesCertificateLocationsResponse](docs/KeyfactorApiModelsCertificatesCertificateLocationsResponse.md) + - [KeyfactorApiModelsCertificatesCertificateQueryRequest](docs/KeyfactorApiModelsCertificatesCertificateQueryRequest.md) + - [KeyfactorApiModelsConfigurationTenantConfigurationTenantRequest](docs/KeyfactorApiModelsConfigurationTenantConfigurationTenantRequest.md) + - [KeyfactorApiModelsEnrollmentEnrollmentManagementRequest](docs/KeyfactorApiModelsEnrollmentEnrollmentManagementRequest.md) + - [KeyfactorApiModelsEnrollmentManagementStoreRequest](docs/KeyfactorApiModelsEnrollmentManagementStoreRequest.md) + - [KeyfactorApiModelsEnrollmentManagementStoreTypeRequest](docs/KeyfactorApiModelsEnrollmentManagementStoreTypeRequest.md) + - [KeyfactorApiModelsEventHandlerEventHandlerParameterRequest](docs/KeyfactorApiModelsEventHandlerEventHandlerParameterRequest.md) + - [KeyfactorApiModelsEventHandlerEventHandlerParameterResponse](docs/KeyfactorApiModelsEventHandlerEventHandlerParameterResponse.md) + - [KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest](docs/KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest.md) + - [KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse](docs/KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse.md) + - [KeyfactorApiModelsLicenseLicenseResponse](docs/KeyfactorApiModelsLicenseLicenseResponse.md) + - [KeyfactorApiModelsLicenseLicenseResponseLicense](docs/KeyfactorApiModelsLicenseLicenseResponseLicense.md) + - [KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer](docs/KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer.md) + - [KeyfactorApiModelsLicenseLicenseResponseLicensedFeature](docs/KeyfactorApiModelsLicenseLicenseResponseLicensedFeature.md) + - [KeyfactorApiModelsLicenseLicenseResponseLicensedProduct](docs/KeyfactorApiModelsLicenseLicenseResponseLicensedProduct.md) + - [KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel](docs/KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel.md) + - [KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest](docs/KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest.md) + - [KeyfactorApiModelsMetadataFieldMetadataFieldResponse](docs/KeyfactorApiModelsMetadataFieldMetadataFieldResponse.md) + - [KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest](docs/KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest.md) + - [KeyfactorApiModelsMonitoringDashboardRequest](docs/KeyfactorApiModelsMonitoringDashboardRequest.md) + - [KeyfactorApiModelsMonitoringDashboardResponse](docs/KeyfactorApiModelsMonitoringDashboardResponse.md) + - [KeyfactorApiModelsMonitoringEmailRequest](docs/KeyfactorApiModelsMonitoringEmailRequest.md) + - [KeyfactorApiModelsMonitoringEmailResponse](docs/KeyfactorApiModelsMonitoringEmailResponse.md) + - [KeyfactorApiModelsMonitoringOCSPParametersRequest](docs/KeyfactorApiModelsMonitoringOCSPParametersRequest.md) + - [KeyfactorApiModelsMonitoringOCSPParametersResponse](docs/KeyfactorApiModelsMonitoringOCSPParametersResponse.md) + - [KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest](docs/KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest.md) + - [KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest](docs/KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest.md) + - [KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse](docs/KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse.md) + - [KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest](docs/KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest.md) + - [KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse](docs/KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse.md) + - [KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest](docs/KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest.md) + - [KeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest](docs/KeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest.md) + - [KeyfactorApiModelsOrchestratorJobsBulkJobResponse](docs/KeyfactorApiModelsOrchestratorJobsBulkJobResponse.md) + - [KeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse](docs/KeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse.md) + - [KeyfactorApiModelsOrchestratorJobsJobFieldResponse](docs/KeyfactorApiModelsOrchestratorJobsJobFieldResponse.md) + - [KeyfactorApiModelsOrchestratorJobsJobResponse](docs/KeyfactorApiModelsOrchestratorJobsJobResponse.md) + - [KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse](docs/KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse.md) + - [KeyfactorApiModelsOrchestratorJobsJobTypeResponse](docs/KeyfactorApiModelsOrchestratorJobsJobTypeResponse.md) + - [KeyfactorApiModelsOrchestratorJobsRescheduleJobRequest](docs/KeyfactorApiModelsOrchestratorJobsRescheduleJobRequest.md) + - [KeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest](docs/KeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest.md) + - [KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse](docs/KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse.md) + - [KeyfactorApiModelsOrchestratorsAgentBlueprintResponse](docs/KeyfactorApiModelsOrchestratorsAgentBlueprintResponse.md) + - [KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse](docs/KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse.md) + - [KeyfactorApiModelsOrchestratorsAgentResponse](docs/KeyfactorApiModelsOrchestratorsAgentResponse.md) + - [KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest](docs/KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest.md) + - [KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse](docs/KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse.md) + - [KeyfactorApiModelsSecurityRolesAreaPermissionResponse](docs/KeyfactorApiModelsSecurityRolesAreaPermissionResponse.md) + - [KeyfactorApiModelsSecurityRolesContainerPermissionRequest](docs/KeyfactorApiModelsSecurityRolesContainerPermissionRequest.md) + - [KeyfactorApiModelsSecurityRolesContainerPermissionResponse](docs/KeyfactorApiModelsSecurityRolesContainerPermissionResponse.md) + - [KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest](docs/KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest.md) + - [KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse](docs/KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse.md) + - [KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest](docs/KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest.md) + - [KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse](docs/KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse.md) + - [KeyfactorApiModelsSecurityRolesRoleIdentitiesRequest](docs/KeyfactorApiModelsSecurityRolesRoleIdentitiesRequest.md) + - [KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse](docs/KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse.md) + - [KeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest](docs/KeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest.md) + - [KeyfactorApiModelsSslCreateNetworkRequest](docs/KeyfactorApiModelsSslCreateNetworkRequest.md) + - [KeyfactorApiModelsSslNetworkQueryResponse](docs/KeyfactorApiModelsSslNetworkQueryResponse.md) + - [KeyfactorApiModelsSslNetworkResponse](docs/KeyfactorApiModelsSslNetworkResponse.md) + - [KeyfactorApiModelsSslQuietHourRequest](docs/KeyfactorApiModelsSslQuietHourRequest.md) + - [KeyfactorApiModelsSslQuietHourResponse](docs/KeyfactorApiModelsSslQuietHourResponse.md) + - [KeyfactorApiModelsSslUpdateNetworkRequest](docs/KeyfactorApiModelsSslUpdateNetworkRequest.md) + - [KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest](docs/KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest.md) + - [KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse](docs/KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse.md) + - [KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest](docs/KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest.md) + - [KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse](docs/KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse.md) + - [KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest](docs/KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest.md) + - [KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse](docs/KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse.md) + - [KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest](docs/KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest.md) + - [KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse](docs/KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse.md) + - [KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse](docs/KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse.md) + - [KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse](docs/KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse.md) + - [KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse](docs/KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse.md) + - [KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse](docs/KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse.md) + - [KeyfactorApiModelsTemplatesValidSubjectPartResponse](docs/KeyfactorApiModelsTemplatesValidSubjectPartResponse.md) + - [KeyfactorApiModelsWorkflowsAvailableSignalResponse](docs/KeyfactorApiModelsWorkflowsAvailableSignalResponse.md) + - [KeyfactorApiModelsWorkflowsAvailableStepQueryResponse](docs/KeyfactorApiModelsWorkflowsAvailableStepQueryResponse.md) + - [KeyfactorApiModelsWorkflowsAvailableStepResponse](docs/KeyfactorApiModelsWorkflowsAvailableStepResponse.md) + - [KeyfactorApiModelsWorkflowsConditionConfigurationRequest](docs/KeyfactorApiModelsWorkflowsConditionConfigurationRequest.md) + - [KeyfactorApiModelsWorkflowsConditionConfigurationResponse](docs/KeyfactorApiModelsWorkflowsConditionConfigurationResponse.md) + - [KeyfactorApiModelsWorkflowsDefinitionCreateRequest](docs/KeyfactorApiModelsWorkflowsDefinitionCreateRequest.md) + - [KeyfactorApiModelsWorkflowsDefinitionQueryResponse](docs/KeyfactorApiModelsWorkflowsDefinitionQueryResponse.md) + - [KeyfactorApiModelsWorkflowsDefinitionResponse](docs/KeyfactorApiModelsWorkflowsDefinitionResponse.md) + - [KeyfactorApiModelsWorkflowsDefinitionStepRequest](docs/KeyfactorApiModelsWorkflowsDefinitionStepRequest.md) + - [KeyfactorApiModelsWorkflowsDefinitionStepResponse](docs/KeyfactorApiModelsWorkflowsDefinitionStepResponse.md) + - [KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse](docs/KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse.md) + - [KeyfactorApiModelsWorkflowsDefinitionUpdateRequest](docs/KeyfactorApiModelsWorkflowsDefinitionUpdateRequest.md) + - [KeyfactorApiModelsWorkflowsInstanceDefinitionResponse](docs/KeyfactorApiModelsWorkflowsInstanceDefinitionResponse.md) + - [KeyfactorApiModelsWorkflowsInstanceQueryResponse](docs/KeyfactorApiModelsWorkflowsInstanceQueryResponse.md) + - [KeyfactorApiModelsWorkflowsInstanceResponse](docs/KeyfactorApiModelsWorkflowsInstanceResponse.md) + - [KeyfactorApiModelsWorkflowsParameterDefinitionResponse](docs/KeyfactorApiModelsWorkflowsParameterDefinitionResponse.md) + - [KeyfactorApiModelsWorkflowsSignalConfigurationRequest](docs/KeyfactorApiModelsWorkflowsSignalConfigurationRequest.md) + - [KeyfactorApiModelsWorkflowsSignalDefinitionResponse](docs/KeyfactorApiModelsWorkflowsSignalDefinitionResponse.md) + - [KeyfactorApiModelsWorkflowsSignalRequest](docs/KeyfactorApiModelsWorkflowsSignalRequest.md) + - [KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse](docs/KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse.md) + - [KeyfactorApiPAMProviderTypeCreateRequest](docs/KeyfactorApiPAMProviderTypeCreateRequest.md) + - [KeyfactorApiPAMProviderTypeParameterCreateRequest](docs/KeyfactorApiPAMProviderTypeParameterCreateRequest.md) + - [KeyfactorApiPAMProviderTypeParameterResponse](docs/KeyfactorApiPAMProviderTypeParameterResponse.md) + - [KeyfactorApiPAMProviderTypeResponse](docs/KeyfactorApiPAMProviderTypeResponse.md) + - [KeyfactorAuditingQueryingAuditLogEntry](docs/KeyfactorAuditingQueryingAuditLogEntry.md) + - [KeyfactorCommonSchedulingKeyfactorSchedule](docs/KeyfactorCommonSchedulingKeyfactorSchedule.md) + - [KeyfactorCommonSchedulingModelsIntervalModel](docs/KeyfactorCommonSchedulingModelsIntervalModel.md) + - [KeyfactorCommonSchedulingModelsMonthlyModel](docs/KeyfactorCommonSchedulingModelsMonthlyModel.md) + - [KeyfactorCommonSchedulingModelsTimeModel](docs/KeyfactorCommonSchedulingModelsTimeModel.md) + - [KeyfactorCommonSchedulingModelsWeeklyModel](docs/KeyfactorCommonSchedulingModelsWeeklyModel.md) + - [ModelsAgentsAgentPool](docs/ModelsAgentsAgentPool.md) + - [ModelsAgentsAgentPoolAgent](docs/ModelsAgentsAgentPoolAgent.md) + - [ModelsCRLRequestModel](docs/ModelsCRLRequestModel.md) + - [ModelsCSRContents](docs/ModelsCSRContents.md) + - [ModelsCSRGenerationResponseModel](docs/ModelsCSRGenerationResponseModel.md) + - [ModelsCertStoreLocationsCertificateLocationsGroup](docs/ModelsCertStoreLocationsCertificateLocationsGroup.md) + - [ModelsCertStoreLocationsCertificateStoreLocationsDetail](docs/ModelsCertStoreLocationsCertificateStoreLocationsDetail.md) + - [ModelsCertStoreNewPasswordRequest](docs/ModelsCertStoreNewPasswordRequest.md) + - [ModelsCertStoreTypePasswordOptions](docs/ModelsCertStoreTypePasswordOptions.md) + - [ModelsCertStoreTypeSupportedOperations](docs/ModelsCertStoreTypeSupportedOperations.md) + - [ModelsCertStoresSchedule](docs/ModelsCertStoresSchedule.md) + - [ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate](docs/ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate.md) + - [ModelsCertificateAuthoritiesCertificateAuthorityRequest](docs/ModelsCertificateAuthoritiesCertificateAuthorityRequest.md) + - [ModelsCertificateAuthoritiesCertificateAuthorityResponse](docs/ModelsCertificateAuthoritiesCertificateAuthorityResponse.md) + - [ModelsCertificateDetails](docs/ModelsCertificateDetails.md) + - [ModelsCertificateDownloadRequest](docs/ModelsCertificateDownloadRequest.md) + - [ModelsCertificateDownloadResponse](docs/ModelsCertificateDownloadResponse.md) + - [ModelsCertificateImportRequestModel](docs/ModelsCertificateImportRequestModel.md) + - [ModelsCertificateImportResponseModel](docs/ModelsCertificateImportResponseModel.md) + - [ModelsCertificateLocationSpecifier](docs/ModelsCertificateLocationSpecifier.md) + - [ModelsCertificateQuery](docs/ModelsCertificateQuery.md) + - [ModelsCertificateRecoveryRequest](docs/ModelsCertificateRecoveryRequest.md) + - [ModelsCertificateRetrievalResponse](docs/ModelsCertificateRetrievalResponse.md) + - [ModelsCertificateRetrievalResponseCRLDistributionPointModel](docs/ModelsCertificateRetrievalResponseCRLDistributionPointModel.md) + - [ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel](docs/ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel.md) + - [ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel](docs/ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel.md) + - [ModelsCertificateRetrievalResponseDetailedKeyUsageModel](docs/ModelsCertificateRetrievalResponseDetailedKeyUsageModel.md) + - [ModelsCertificateRetrievalResponseExtendedKeyUsageModel](docs/ModelsCertificateRetrievalResponseExtendedKeyUsageModel.md) + - [ModelsCertificateRetrievalResponseLocationCountModel](docs/ModelsCertificateRetrievalResponseLocationCountModel.md) + - [ModelsCertificateRetrievalResponseSubjectAlternativeNameModel](docs/ModelsCertificateRetrievalResponseSubjectAlternativeNameModel.md) + - [ModelsCertificateStore](docs/ModelsCertificateStore.md) + - [ModelsCertificateStoreContainerListResponse](docs/ModelsCertificateStoreContainerListResponse.md) + - [ModelsCertificateStoreCreateServerRequest](docs/ModelsCertificateStoreCreateServerRequest.md) + - [ModelsCertificateStoreEntry](docs/ModelsCertificateStoreEntry.md) + - [ModelsCertificateStoreInventory](docs/ModelsCertificateStoreInventory.md) + - [ModelsCertificateStoreInventoryCertificates](docs/ModelsCertificateStoreInventoryCertificates.md) + - [ModelsCertificateStoreServerResponse](docs/ModelsCertificateStoreServerResponse.md) + - [ModelsCertificateStoreTypeProperty](docs/ModelsCertificateStoreTypeProperty.md) + - [ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter](docs/ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter.md) + - [ModelsCertificateStoreUpdateServerRequest](docs/ModelsCertificateStoreUpdateServerRequest.md) + - [ModelsCertificateStoresCertificateStoreCreateRequest](docs/ModelsCertificateStoresCertificateStoreCreateRequest.md) + - [ModelsCertificateStoresCertificateStoreUpdateRequest](docs/ModelsCertificateStoresCertificateStoreUpdateRequest.md) + - [ModelsCertificateValidationResponse](docs/ModelsCertificateValidationResponse.md) + - [ModelsCollectionRolePermissions](docs/ModelsCollectionRolePermissions.md) + - [ModelsContainerAssignment](docs/ModelsContainerAssignment.md) + - [ModelsCustomReport](docs/ModelsCustomReport.md) + - [ModelsCustomReportCreationRequest](docs/ModelsCustomReportCreationRequest.md) + - [ModelsCustomReportUpdateRequest](docs/ModelsCustomReportUpdateRequest.md) + - [ModelsDiscoveryJobRequest](docs/ModelsDiscoveryJobRequest.md) + - [ModelsEnrollmentAvailableRenewal](docs/ModelsEnrollmentAvailableRenewal.md) + - [ModelsEnrollmentCSREnrollmentRequest](docs/ModelsEnrollmentCSREnrollmentRequest.md) + - [ModelsEnrollmentCSREnrollmentResponse](docs/ModelsEnrollmentCSREnrollmentResponse.md) + - [ModelsEnrollmentCSRGenerationRequest](docs/ModelsEnrollmentCSRGenerationRequest.md) + - [ModelsEnrollmentExistingEnrollmentManagementRequest](docs/ModelsEnrollmentExistingEnrollmentManagementRequest.md) + - [ModelsEnrollmentManagementStoreType](docs/ModelsEnrollmentManagementStoreType.md) + - [ModelsEnrollmentPFXEnrollmentRequest](docs/ModelsEnrollmentPFXEnrollmentRequest.md) + - [ModelsEnrollmentPFXEnrollmentResponse](docs/ModelsEnrollmentPFXEnrollmentResponse.md) + - [ModelsEnrollmentRenewalRequest](docs/ModelsEnrollmentRenewalRequest.md) + - [ModelsEnrollmentRenewalResponse](docs/ModelsEnrollmentRenewalResponse.md) + - [ModelsExtendedKeyUsage](docs/ModelsExtendedKeyUsage.md) + - [ModelsInvalidKeystore](docs/ModelsInvalidKeystore.md) + - [ModelsKeyfactorAPISecret](docs/ModelsKeyfactorAPISecret.md) + - [ModelsMetadataAllUpdateRequest](docs/ModelsMetadataAllUpdateRequest.md) + - [ModelsMetadataFieldTypeModel](docs/ModelsMetadataFieldTypeModel.md) + - [ModelsMetadataSingleUpdateRequest](docs/ModelsMetadataSingleUpdateRequest.md) + - [ModelsMetadataUpdateRequest](docs/ModelsMetadataUpdateRequest.md) + - [ModelsMonitoringRevocationMonitoringAlertResponse](docs/ModelsMonitoringRevocationMonitoringAlertResponse.md) + - [ModelsOrchestratorJobsBulkOrchestratorJobPair](docs/ModelsOrchestratorJobsBulkOrchestratorJobPair.md) + - [ModelsOrchestratorJobsJob](docs/ModelsOrchestratorJobsJob.md) + - [ModelsOrchestratorJobsJobTypeCreateRequest](docs/ModelsOrchestratorJobsJobTypeCreateRequest.md) + - [ModelsOrchestratorJobsJobTypeFieldRequest](docs/ModelsOrchestratorJobsJobTypeFieldRequest.md) + - [ModelsOrchestratorJobsJobTypeUpdateRequest](docs/ModelsOrchestratorJobsJobTypeUpdateRequest.md) + - [ModelsOrchestratorJobsScheduleBulkJobRequest](docs/ModelsOrchestratorJobsScheduleBulkJobRequest.md) + - [ModelsOrchestratorJobsScheduleJobRequest](docs/ModelsOrchestratorJobsScheduleJobRequest.md) + - [ModelsPKICertificateOperation](docs/ModelsPKICertificateOperation.md) + - [ModelsPagedQuery](docs/ModelsPagedQuery.md) + - [ModelsPendingCSRResponse](docs/ModelsPendingCSRResponse.md) + - [ModelsPkcs10CertificateResponse](docs/ModelsPkcs10CertificateResponse.md) + - [ModelsPkcs12CertificateResponse](docs/ModelsPkcs12CertificateResponse.md) + - [ModelsQueryModelsPagedAgentBlueprintJobsQuery](docs/ModelsQueryModelsPagedAgentBlueprintJobsQuery.md) + - [ModelsQueryModelsPagedAgentBlueprintQuery](docs/ModelsQueryModelsPagedAgentBlueprintQuery.md) + - [ModelsQueryModelsPagedAgentBlueprintStoresQuery](docs/ModelsQueryModelsPagedAgentBlueprintStoresQuery.md) + - [ModelsQueryModelsPagedAgentJobHistoryQuery](docs/ModelsQueryModelsPagedAgentJobHistoryQuery.md) + - [ModelsQueryModelsPagedAgentJobQuery](docs/ModelsQueryModelsPagedAgentJobQuery.md) + - [ModelsQueryModelsPagedAgentPoolAgentsQuery](docs/ModelsQueryModelsPagedAgentPoolAgentsQuery.md) + - [ModelsQueryModelsPagedAgentPoolQuery](docs/ModelsQueryModelsPagedAgentPoolQuery.md) + - [ModelsQueryModelsPagedAgentQuery](docs/ModelsQueryModelsPagedAgentQuery.md) + - [ModelsQueryModelsPagedAuditLogQuery](docs/ModelsQueryModelsPagedAuditLogQuery.md) + - [ModelsQueryModelsPagedCertificateAuthorityQuery](docs/ModelsQueryModelsPagedCertificateAuthorityQuery.md) + - [ModelsQueryModelsPagedCertificateHistoryQuery](docs/ModelsQueryModelsPagedCertificateHistoryQuery.md) + - [ModelsQueryModelsPagedCertificateRequestQuery](docs/ModelsQueryModelsPagedCertificateRequestQuery.md) + - [ModelsQueryModelsPagedCertificateStoreContainerQuery](docs/ModelsQueryModelsPagedCertificateStoreContainerQuery.md) + - [ModelsQueryModelsPagedCertificateStoreInventoryQuery](docs/ModelsQueryModelsPagedCertificateStoreInventoryQuery.md) + - [ModelsQueryModelsPagedCertificateStoreQuery](docs/ModelsQueryModelsPagedCertificateStoreQuery.md) + - [ModelsQueryModelsPagedCertificateStoreServerQuery](docs/ModelsQueryModelsPagedCertificateStoreServerQuery.md) + - [ModelsQueryModelsPagedCustomReportQuery](docs/ModelsQueryModelsPagedCustomReportQuery.md) + - [ModelsQueryModelsPagedDeniedAlertQuery](docs/ModelsQueryModelsPagedDeniedAlertQuery.md) + - [ModelsQueryModelsPagedExpirationAlertQuery](docs/ModelsQueryModelsPagedExpirationAlertQuery.md) + - [ModelsQueryModelsPagedIssuedAlertQuery](docs/ModelsQueryModelsPagedIssuedAlertQuery.md) + - [ModelsQueryModelsPagedKeyRotationAlertQuery](docs/ModelsQueryModelsPagedKeyRotationAlertQuery.md) + - [ModelsQueryModelsPagedLegacyDeniedRequestQuery](docs/ModelsQueryModelsPagedLegacyDeniedRequestQuery.md) + - [ModelsQueryModelsPagedMetadataFieldQuery](docs/ModelsQueryModelsPagedMetadataFieldQuery.md) + - [ModelsQueryModelsPagedPendingAlertQuery](docs/ModelsQueryModelsPagedPendingAlertQuery.md) + - [ModelsQueryModelsPagedPendingCSRQuery](docs/ModelsQueryModelsPagedPendingCSRQuery.md) + - [ModelsQueryModelsPagedReportQuery](docs/ModelsQueryModelsPagedReportQuery.md) + - [ModelsQueryModelsPagedReportScheduleQuery](docs/ModelsQueryModelsPagedReportScheduleQuery.md) + - [ModelsQueryModelsPagedRevocationMonitoringQuery](docs/ModelsQueryModelsPagedRevocationMonitoringQuery.md) + - [ModelsQueryModelsPagedSSHLogonQuery](docs/ModelsQueryModelsPagedSSHLogonQuery.md) + - [ModelsQueryModelsPagedSSHServerGroupQuery](docs/ModelsQueryModelsPagedSSHServerGroupQuery.md) + - [ModelsQueryModelsPagedSSHServerQuery](docs/ModelsQueryModelsPagedSSHServerQuery.md) + - [ModelsQueryModelsPagedSSHServiceAccountQuery](docs/ModelsQueryModelsPagedSSHServiceAccountQuery.md) + - [ModelsQueryModelsPagedSSHUnmanagedKeyQuery](docs/ModelsQueryModelsPagedSSHUnmanagedKeyQuery.md) + - [ModelsQueryModelsPagedSSHUserQuery](docs/ModelsQueryModelsPagedSSHUserQuery.md) + - [ModelsQueryModelsPagedScanJobPartsQuery](docs/ModelsQueryModelsPagedScanJobPartsQuery.md) + - [ModelsQueryModelsPagedSecurityIdentityQuery](docs/ModelsQueryModelsPagedSecurityIdentityQuery.md) + - [ModelsQueryModelsPagedSecurityRoleQuery](docs/ModelsQueryModelsPagedSecurityRoleQuery.md) + - [ModelsQueryModelsPagedSslResultQuery](docs/ModelsQueryModelsPagedSslResultQuery.md) + - [ModelsQueryModelsPagedTemplateQuery](docs/ModelsQueryModelsPagedTemplateQuery.md) + - [ModelsQueryModelsWorkflowWorkflowDefinitionQuery](docs/ModelsQueryModelsWorkflowWorkflowDefinitionQuery.md) + - [ModelsQueryModelsWorkflowWorkflowInstanceQuery](docs/ModelsQueryModelsWorkflowWorkflowInstanceQuery.md) + - [ModelsQueryModelsWorkflowWorkflowStepSchemaQuery](docs/ModelsQueryModelsWorkflowWorkflowStepSchemaQuery.md) + - [ModelsQueryModelsWorkflowWorkflowTypeQuery](docs/ModelsQueryModelsWorkflowWorkflowTypeQuery.md) + - [ModelsRecoveryResponse](docs/ModelsRecoveryResponse.md) + - [ModelsReenrollmentStatus](docs/ModelsReenrollmentStatus.md) + - [ModelsReport](docs/ModelsReport.md) + - [ModelsReportParameters](docs/ModelsReportParameters.md) + - [ModelsReportParametersRequest](docs/ModelsReportParametersRequest.md) + - [ModelsReportRequestModel](docs/ModelsReportRequestModel.md) + - [ModelsReportSchedule](docs/ModelsReportSchedule.md) + - [ModelsRevocationRevocationResponse](docs/ModelsRevocationRevocationResponse.md) + - [ModelsRevocationSuspendedRevocationResponse](docs/ModelsRevocationSuspendedRevocationResponse.md) + - [ModelsRevokeAllCertificatesRequest](docs/ModelsRevokeAllCertificatesRequest.md) + - [ModelsRevokeCertificateRequest](docs/ModelsRevokeCertificateRequest.md) + - [ModelsSSHAccessLogonUserAccessRequest](docs/ModelsSSHAccessLogonUserAccessRequest.md) + - [ModelsSSHAccessLogonUserAccessResponse](docs/ModelsSSHAccessLogonUserAccessResponse.md) + - [ModelsSSHAccessServerAccessRequest](docs/ModelsSSHAccessServerAccessRequest.md) + - [ModelsSSHAccessServerAccessResponse](docs/ModelsSSHAccessServerAccessResponse.md) + - [ModelsSSHAccessServerGroupAccessRequest](docs/ModelsSSHAccessServerGroupAccessRequest.md) + - [ModelsSSHAccessServerGroupAccessResponse](docs/ModelsSSHAccessServerGroupAccessResponse.md) + - [ModelsSSHKeysKeyGenerationRequest](docs/ModelsSSHKeysKeyGenerationRequest.md) + - [ModelsSSHKeysKeyResponse](docs/ModelsSSHKeysKeyResponse.md) + - [ModelsSSHKeysKeyUpdateRequest](docs/ModelsSSHKeysKeyUpdateRequest.md) + - [ModelsSSHKeysUnmanagedKeyResponse](docs/ModelsSSHKeysUnmanagedKeyResponse.md) + - [ModelsSSHLogonsLogonAccessRequest](docs/ModelsSSHLogonsLogonAccessRequest.md) + - [ModelsSSHLogonsLogonCreationRequest](docs/ModelsSSHLogonsLogonCreationRequest.md) + - [ModelsSSHLogonsLogonQueryResponse](docs/ModelsSSHLogonsLogonQueryResponse.md) + - [ModelsSSHLogonsLogonResponse](docs/ModelsSSHLogonsLogonResponse.md) + - [ModelsSSHServerGroupsServerGroupCreationRequest](docs/ModelsSSHServerGroupsServerGroupCreationRequest.md) + - [ModelsSSHServerGroupsServerGroupResponse](docs/ModelsSSHServerGroupsServerGroupResponse.md) + - [ModelsSSHServerGroupsServerGroupUpdateRequest](docs/ModelsSSHServerGroupsServerGroupUpdateRequest.md) + - [ModelsSSHServersServerCreationRequest](docs/ModelsSSHServersServerCreationRequest.md) + - [ModelsSSHServersServerResponse](docs/ModelsSSHServersServerResponse.md) + - [ModelsSSHServersServerUpdateRequest](docs/ModelsSSHServersServerUpdateRequest.md) + - [ModelsSSHServiceAccountsServiceAccountCreationRequest](docs/ModelsSSHServiceAccountsServiceAccountCreationRequest.md) + - [ModelsSSHServiceAccountsServiceAccountResponse](docs/ModelsSSHServiceAccountsServiceAccountResponse.md) + - [ModelsSSHServiceAccountsServiceAccountUpdateRequest](docs/ModelsSSHServiceAccountsServiceAccountUpdateRequest.md) + - [ModelsSSHServiceAccountsServiceAccountUserCreationRequest](docs/ModelsSSHServiceAccountsServiceAccountUserCreationRequest.md) + - [ModelsSSHUsersSshUserAccessResponse](docs/ModelsSSHUsersSshUserAccessResponse.md) + - [ModelsSSHUsersSshUserCreationRequest](docs/ModelsSSHUsersSshUserCreationRequest.md) + - [ModelsSSHUsersSshUserResponse](docs/ModelsSSHUsersSshUserResponse.md) + - [ModelsSSHUsersSshUserUpdateRequest](docs/ModelsSSHUsersSshUserUpdateRequest.md) + - [ModelsSSLDisplayScanJobPart](docs/ModelsSSLDisplayScanJobPart.md) + - [ModelsSSLEndpoint](docs/ModelsSSLEndpoint.md) + - [ModelsSSLEndpointHistoryResponse](docs/ModelsSSLEndpointHistoryResponse.md) + - [ModelsSSLEndpointHistoryResponseCertificateModel](docs/ModelsSSLEndpointHistoryResponseCertificateModel.md) + - [ModelsSSLEndpointStatusRequest](docs/ModelsSSLEndpointStatusRequest.md) + - [ModelsSSLImmediateSslScanRequest](docs/ModelsSSLImmediateSslScanRequest.md) + - [ModelsSSLNetworkDefinition](docs/ModelsSSLNetworkDefinition.md) + - [ModelsSSLNetworkRangesRequest](docs/ModelsSSLNetworkRangesRequest.md) + - [ModelsSSLScanJobPart](docs/ModelsSSLScanJobPart.md) + - [ModelsSSLScanJobPartDefinition](docs/ModelsSSLScanJobPartDefinition.md) + - [ModelsSSLSslScanResult](docs/ModelsSSLSslScanResult.md) + - [ModelsSecurityCertificatePermissions](docs/ModelsSecurityCertificatePermissions.md) + - [ModelsSecurityIdentitiesPermissionRolesPairResponse](docs/ModelsSecurityIdentitiesPermissionRolesPairResponse.md) + - [ModelsSecurityIdentitiesSecurityIdentityIdentifier](docs/ModelsSecurityIdentitiesSecurityIdentityIdentifier.md) + - [ModelsSecurityIdentitiesSecurityIdentityLookupResponse](docs/ModelsSecurityIdentitiesSecurityIdentityLookupResponse.md) + - [ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse](docs/ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse.md) + - [ModelsSecurityIdentitiesSecurityIdentityRequest](docs/ModelsSecurityIdentitiesSecurityIdentityRequest.md) + - [ModelsSecuritySecurityRolesSecurityRoleCreationRequest](docs/ModelsSecuritySecurityRolesSecurityRoleCreationRequest.md) + - [ModelsSecuritySecurityRolesSecurityRoleResponseBase](docs/ModelsSecuritySecurityRolesSecurityRoleResponseBase.md) + - [ModelsSecuritySecurityRolesSecurityRoleUpdateRequest](docs/ModelsSecuritySecurityRolesSecurityRoleUpdateRequest.md) + - [ModelsSubjectAlternativeName](docs/ModelsSubjectAlternativeName.md) + - [ModelsTemplateCollectionRetrievalResponse](docs/ModelsTemplateCollectionRetrievalResponse.md) + - [ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel](docs/ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel.md) + - [ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel](docs/ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel.md) + - [ModelsTemplateCollectionRetrievalResponseTemplateRegexModel](docs/ModelsTemplateCollectionRetrievalResponseTemplateRegexModel.md) + - [ModelsTemplateEnrollmentField](docs/ModelsTemplateEnrollmentField.md) + - [ModelsTemplateMetadataField](docs/ModelsTemplateMetadataField.md) + - [ModelsTemplateRegex](docs/ModelsTemplateRegex.md) + - [ModelsTemplateRetrievalResponse](docs/ModelsTemplateRetrievalResponse.md) + - [ModelsTemplateRetrievalResponseExtendedKeyUsageModel](docs/ModelsTemplateRetrievalResponseExtendedKeyUsageModel.md) + - [ModelsTemplateRetrievalResponseTemplateDefaultModel](docs/ModelsTemplateRetrievalResponseTemplateDefaultModel.md) + - [ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel](docs/ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel.md) + - [ModelsTemplateRetrievalResponseTemplateMetadataFieldModel](docs/ModelsTemplateRetrievalResponseTemplateMetadataFieldModel.md) + - [ModelsTemplateRetrievalResponseTemplatePolicyModel](docs/ModelsTemplateRetrievalResponseTemplatePolicyModel.md) + - [ModelsTemplateRetrievalResponseTemplateRegexModel](docs/ModelsTemplateRetrievalResponseTemplateRegexModel.md) + - [ModelsTemplateUpdateRequest](docs/ModelsTemplateUpdateRequest.md) + - [ModelsTemplateUpdateRequestTemplateDefaultModel](docs/ModelsTemplateUpdateRequestTemplateDefaultModel.md) + - [ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel](docs/ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel.md) + - [ModelsTemplateUpdateRequestTemplateMetadataFieldModel](docs/ModelsTemplateUpdateRequestTemplateMetadataFieldModel.md) + - [ModelsTemplateUpdateRequestTemplatePolicyModel](docs/ModelsTemplateUpdateRequestTemplatePolicyModel.md) + - [ModelsTemplateUpdateRequestTemplateRegexModel](docs/ModelsTemplateUpdateRequestTemplateRegexModel.md) + - [ModelsWorkflowApproveDenyResult](docs/ModelsWorkflowApproveDenyResult.md) + - [ModelsWorkflowCertificateRequestCertStoreModel](docs/ModelsWorkflowCertificateRequestCertStoreModel.md) + - [ModelsWorkflowCertificateRequestDetailsModel](docs/ModelsWorkflowCertificateRequestDetailsModel.md) + - [ModelsWorkflowCertificateRequestModel](docs/ModelsWorkflowCertificateRequestModel.md) + - [ModelsWorkflowDenialRequest](docs/ModelsWorkflowDenialRequest.md) + - [ModelsWorkflowProcessedCertificateRequest](docs/ModelsWorkflowProcessedCertificateRequest.md) + + +## Documentation for Utility Methods + +Due to the fact that model structure members are all pointers, this package contains +a number of utility functions to easily obtain pointers to values of basic types. +Each of these functions takes a value of the given basic type and returns a pointer to it: + +* `PtrBool` +* `PtrInt` +* `PtrInt32` +* `PtrInt64` +* `PtrFloat` +* `PtrFloat32` +* `PtrFloat64` +* `PtrString` +* `PtrTime` + +## Author + + + diff --git a/v2/api/command/api_agent.go b/v1/api/keyfactor/api_agent.go similarity index 88% rename from v2/api/command/api_agent.go rename to v1/api/keyfactor/api_agent.go index 72b7768..bc81b69 100644 --- a/v2/api/command/api_agent.go +++ b/v1/api/keyfactor/api_agent.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "bytes" @@ -70,14 +68,13 @@ AgentApprove Approve a list of agents @return ApiAgentApproveRequest */ func (a *AgentApiService) AgentApprove(ctx context.Context) ApiAgentApproveRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiAgentApproveRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -89,12 +86,9 @@ func (a *AgentApiService) AgentApproveExecute(r ApiAgentApproveRequest) (*http.R formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Agents/Approve" + localVarPath := localBasePath + "/Agents/Approve" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -194,14 +188,13 @@ AgentDisapprove Disapprove a list of agents @return ApiAgentDisapproveRequest */ func (a *AgentApiService) AgentDisapprove(ctx context.Context) ApiAgentDisapproveRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiAgentDisapproveRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -213,12 +206,9 @@ func (a *AgentApiService) AgentDisapproveExecute(r ApiAgentDisapproveRequest) (* formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Agents/Disapprove" + localVarPath := localBasePath + "/Agents/Disapprove" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -313,14 +303,13 @@ AgentFetchLogs Schedules a job on the agent to retrieve log files @return ApiAgentFetchLogsRequest */ func (a *AgentApiService) AgentFetchLogs(ctx context.Context, id string) ApiAgentFetchLogsRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiAgentFetchLogsRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -333,12 +322,9 @@ func (a *AgentApiService) AgentFetchLogsExecute(r ApiAgentFetchLogsRequest) (*ht formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Agents/{id}/FetchLogs" + localVarPath := localBasePath + "/Agents/{id}/FetchLogs" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -429,14 +415,13 @@ AgentGetAgentDetail Returns details for a single agent, specified by ID @return ApiAgentGetAgentDetailRequest */ func (a *AgentApiService) AgentGetAgentDetail(ctx context.Context, id string) ApiAgentGetAgentDetailRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiAgentGetAgentDetailRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -452,12 +437,9 @@ func (a *AgentApiService) AgentGetAgentDetailExecute(r ApiAgentGetAgentDetailReq localVarReturnValue *KeyfactorApiModelsOrchestratorsAgentResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Agents/{id}" + localVarPath := localBasePath + "/Agents/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -590,14 +572,13 @@ AgentGetAgents Returns all agents according to the provided filter and output pa @return ApiAgentGetAgentsRequest */ func (a *AgentApiService) AgentGetAgents(ctx context.Context) ApiAgentGetAgentsRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiAgentGetAgentsRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -612,12 +593,9 @@ func (a *AgentApiService) AgentGetAgentsExecute(r ApiAgentGetAgentsRequest) ([]K localVarReturnValue []KeyfactorApiModelsOrchestratorsAgentResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Agents" + localVarPath := localBasePath + "/Agents" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -699,65 +677,64 @@ func (a *AgentApiService) AgentGetAgentsExecute(r ApiAgentGetAgentsRequest) ([]K return localVarReturnValue, localVarHTTPResponse, nil } -type ApiAgentResetRequest struct { +type ApiAgentReset0Request struct { ctx context.Context ApiService *AgentApiService - id string xKeyfactorRequestedWith *string + agentIds *[]string xKeyfactorApiVersion *string } // Type of the request [XMLHttpRequest, APIClient] -func (r ApiAgentResetRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiAgentResetRequest { +func (r ApiAgentReset0Request) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiAgentReset0Request { r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith return r } +// List of Agent Ids to Reset +func (r ApiAgentReset0Request) AgentIds(agentIds []string) ApiAgentReset0Request { + r.agentIds = &agentIds + return r +} + // Desired version of the api, if not provided defaults to v1 -func (r ApiAgentResetRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiAgentResetRequest { +func (r ApiAgentReset0Request) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiAgentReset0Request { r.xKeyfactorApiVersion = &xKeyfactorApiVersion return r } -func (r ApiAgentResetRequest) Execute() (*http.Response, error) { - return r.ApiService.AgentResetExecute(r) +func (r ApiAgentReset0Request) Execute() (*http.Response, error) { + return r.ApiService.AgentReset0Execute(r) } /* -AgentReset Reset an agent to a new state +AgentReset0 Reset a list of agents @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id Guid Id of Agent to reset - @return ApiAgentResetRequest + @return ApiAgentReset0Request */ -func (a *AgentApiService) AgentReset(ctx context.Context, id string) ApiAgentResetRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - - return ApiAgentResetRequest{ +func (a *AgentApiService) AgentReset0(ctx context.Context) ApiAgentReset0Request { + requestedWith := "APIClient" + version := "1" + return ApiAgentReset0Request{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, - id: id, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } // Execute executes the request -func (a *AgentApiService) AgentResetExecute(r ApiAgentResetRequest) (*http.Response, error) { +func (a *AgentApiService) AgentReset0Execute(r ApiAgentReset0Request) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Agents/{id}/Reset" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + localVarPath := localBasePath + "/Agents/Reset" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -765,9 +742,12 @@ func (a *AgentApiService) AgentResetExecute(r ApiAgentResetRequest) (*http.Respo if r.xKeyfactorRequestedWith == nil { return nil, reportError("xKeyfactorRequestedWith is required and must be specified") } + if r.agentIds == nil { + return nil, reportError("agentIds is required and must be specified") + } // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{"application/json"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -787,6 +767,8 @@ func (a *AgentApiService) AgentResetExecute(r ApiAgentResetRequest) (*http.Respo parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") } parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") + // body params + localVarPostBody = r.agentIds req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return nil, err @@ -815,84 +797,71 @@ func (a *AgentApiService) AgentResetExecute(r ApiAgentResetRequest) (*http.Respo return localVarHTTPResponse, nil } -type ApiAgentSetAuthCertificateReenrollmentRequest struct { - ctx context.Context - ApiService *AgentApiService - xKeyfactorRequestedWith *string - authCertReenrollmentRequest *KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest - xKeyfactorApiVersion *string +type ApiAgentReset1Request struct { + ctx context.Context + ApiService *AgentApiService + id string + xKeyfactorRequestedWith *string + xKeyfactorApiVersion *string } // Type of the request [XMLHttpRequest, APIClient] -func (r ApiAgentSetAuthCertificateReenrollmentRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiAgentSetAuthCertificateReenrollmentRequest { +func (r ApiAgentReset1Request) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiAgentReset1Request { r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith return r } -// Object containing orchestrator ids and the new status those orchestrators should have -func (r ApiAgentSetAuthCertificateReenrollmentRequest) AuthCertReenrollmentRequest(authCertReenrollmentRequest KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) ApiAgentSetAuthCertificateReenrollmentRequest { - r.authCertReenrollmentRequest = &authCertReenrollmentRequest - return r -} - // Desired version of the api, if not provided defaults to v1 -func (r ApiAgentSetAuthCertificateReenrollmentRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiAgentSetAuthCertificateReenrollmentRequest { +func (r ApiAgentReset1Request) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiAgentReset1Request { r.xKeyfactorApiVersion = &xKeyfactorApiVersion return r } -func (r ApiAgentSetAuthCertificateReenrollmentRequest) Execute() (*KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse, *http.Response, error) { - return r.ApiService.AgentSetAuthCertificateReenrollmentExecute(r) +func (r ApiAgentReset1Request) Execute() (*http.Response, error) { + return r.ApiService.AgentReset1Execute(r) } /* -AgentSetAuthCertificateReenrollment Update the AuthCertificateReenrollment value for an agent to request or require (or unset the request) the agent to enroll for a new client authentication certificate on its next registration. +AgentReset1 Reset an agent to a new state @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAgentSetAuthCertificateReenrollmentRequest + @param id Guid Id of Agent to reset + @return ApiAgentReset1Request */ -func (a *AgentApiService) AgentSetAuthCertificateReenrollment(ctx context.Context) ApiAgentSetAuthCertificateReenrollmentRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - - return ApiAgentSetAuthCertificateReenrollmentRequest{ +func (a *AgentApiService) AgentReset1(ctx context.Context, id string) ApiAgentReset1Request { + requestedWith := "APIClient" + version := "1" + return ApiAgentReset1Request{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, + id: id, } } // Execute executes the request -// -// @return KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse -func (a *AgentApiService) AgentSetAuthCertificateReenrollmentExecute(r ApiAgentSetAuthCertificateReenrollmentRequest) (*KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse, *http.Response, error) { +func (a *AgentApiService) AgentReset1Execute(r ApiAgentReset1Request) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Agents/SetAuthCertificateReenrollment" + localVarPath := localBasePath + "/Agents/{id}/Reset" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} if r.xKeyfactorRequestedWith == nil { - return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") - } - if r.authCertReenrollmentRequest == nil { - return localVarReturnValue, nil, reportError("authCertReenrollmentRequest is required and must be specified") + return nil, reportError("xKeyfactorRequestedWith is required and must be specified") } // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} + localVarHTTPContentTypes := []string{} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -901,7 +870,7 @@ func (a *AgentApiService) AgentSetAuthCertificateReenrollmentExecute(r ApiAgentS } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + localVarHTTPHeaderAccepts := []string{} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) @@ -912,23 +881,21 @@ func (a *AgentApiService) AgentSetAuthCertificateReenrollmentExecute(r ApiAgentS parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") } parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") - // body params - localVarPostBody = r.authCertReenrollmentRequest req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { - return localVarReturnValue, nil, err + return nil, err } localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err + return localVarHTTPResponse, err } localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { - return localVarReturnValue, localVarHTTPResponse, err + return localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { @@ -936,92 +903,82 @@ func (a *AgentApiService) AgentSetAuthCertificateReenrollmentExecute(r ApiAgentS body: localVarBody, error: localVarHTTPResponse.Status, } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr + return localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil + return localVarHTTPResponse, nil } -type ApiAgentsResetRequest struct { - ctx context.Context - ApiService *AgentApiService - xKeyfactorRequestedWith *string - agentIds *[]string - xKeyfactorApiVersion *string +type ApiAgentSetAuthCertificateReenrollmentRequest struct { + ctx context.Context + ApiService *AgentApiService + xKeyfactorRequestedWith *string + authCertReenrollmentRequest *KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest + xKeyfactorApiVersion *string } // Type of the request [XMLHttpRequest, APIClient] -func (r ApiAgentsResetRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiAgentsResetRequest { +func (r ApiAgentSetAuthCertificateReenrollmentRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiAgentSetAuthCertificateReenrollmentRequest { r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith return r } -// List of Agent Ids to Reset -func (r ApiAgentsResetRequest) AgentIds(agentIds []string) ApiAgentsResetRequest { - r.agentIds = &agentIds +// Object containing orchestrator ids and the new status those orchestrators should have +func (r ApiAgentSetAuthCertificateReenrollmentRequest) AuthCertReenrollmentRequest(authCertReenrollmentRequest KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) ApiAgentSetAuthCertificateReenrollmentRequest { + r.authCertReenrollmentRequest = &authCertReenrollmentRequest return r } // Desired version of the api, if not provided defaults to v1 -func (r ApiAgentsResetRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiAgentsResetRequest { +func (r ApiAgentSetAuthCertificateReenrollmentRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiAgentSetAuthCertificateReenrollmentRequest { r.xKeyfactorApiVersion = &xKeyfactorApiVersion return r } -func (r ApiAgentsResetRequest) Execute() (*http.Response, error) { - return r.ApiService.AgentsResetExecute(r) +func (r ApiAgentSetAuthCertificateReenrollmentRequest) Execute() (*KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse, *http.Response, error) { + return r.ApiService.AgentSetAuthCertificateReenrollmentExecute(r) } /* -AgentsReset Reset a list of agents +AgentSetAuthCertificateReenrollment Update the AuthCertificateReenrollment value for an agent to request or require (or unset the request) the agent to enroll for a new client authentication certificate on its next registration. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAgentsResetRequest + @return ApiAgentSetAuthCertificateReenrollmentRequest */ -func (a *AgentApiService) AgentsReset(ctx context.Context) ApiAgentsResetRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - - return ApiAgentsResetRequest{ +func (a *AgentApiService) AgentSetAuthCertificateReenrollment(ctx context.Context) ApiAgentSetAuthCertificateReenrollmentRequest { + requestedWith := "APIClient" + version := "1" + return ApiAgentSetAuthCertificateReenrollmentRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } // Execute executes the request -func (a *AgentApiService) AgentsResetExecute(r ApiAgentsResetRequest) (*http.Response, error) { +// +// @return KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse +func (a *AgentApiService) AgentSetAuthCertificateReenrollmentExecute(r ApiAgentSetAuthCertificateReenrollmentRequest) (*KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Agents/Reset" + localVarPath := localBasePath + "/Agents/SetAuthCertificateReenrollment" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} if r.xKeyfactorRequestedWith == nil { - return nil, reportError("xKeyfactorRequestedWith is required and must be specified") + return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") } - if r.agentIds == nil { - return nil, reportError("agentIds is required and must be specified") + if r.authCertReenrollmentRequest == nil { + return localVarReturnValue, nil, reportError("authCertReenrollmentRequest is required and must be specified") } // to determine the Content-Type header @@ -1034,7 +991,7 @@ func (a *AgentApiService) AgentsResetExecute(r ApiAgentsResetRequest) (*http.Res } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} + localVarHTTPHeaderAccepts := []string{"application/json"} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) @@ -1046,22 +1003,22 @@ func (a *AgentApiService) AgentsResetExecute(r ApiAgentsResetRequest) (*http.Res } parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") // body params - localVarPostBody = r.agentIds + localVarPostBody = r.authCertReenrollmentRequest req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { - return nil, err + return localVarReturnValue, nil, err } localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err + return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { - return localVarHTTPResponse, err + return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { @@ -1069,8 +1026,17 @@ func (a *AgentApiService) AgentsResetExecute(r ApiAgentsResetRequest) (*http.Res body: localVarBody, error: localVarHTTPResponse.Status, } - return localVarHTTPResponse, newErr + return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarHTTPResponse, nil + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil } diff --git a/v2/api/command/api_agent_blueprint.go b/v1/api/keyfactor/api_agent_blueprint.go similarity index 93% rename from v2/api/command/api_agent_blueprint.go rename to v1/api/keyfactor/api_agent_blueprint.go index 7b46d71..9e7e83b 100644 --- a/v2/api/command/api_agent_blueprint.go +++ b/v1/api/keyfactor/api_agent_blueprint.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "bytes" @@ -77,14 +75,13 @@ AgentBlueprintApplyBlueprint Applies the selected agent blueprint to the provide @return ApiAgentBlueprintApplyBlueprintRequest */ func (a *AgentBlueprintApiService) AgentBlueprintApplyBlueprint(ctx context.Context) ApiAgentBlueprintApplyBlueprintRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiAgentBlueprintApplyBlueprintRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -96,12 +93,9 @@ func (a *AgentBlueprintApiService) AgentBlueprintApplyBlueprintExecute(r ApiAgen formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/AgentBluePrint/ApplyBlueprint" + localVarPath := localBasePath + "/AgentBluePrint/ApplyBlueprint" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -200,14 +194,13 @@ AgentBlueprintDeleteBlueprint Deletes an agent blueprint by its Keyfactor identi @return ApiAgentBlueprintDeleteBlueprintRequest */ func (a *AgentBlueprintApiService) AgentBlueprintDeleteBlueprint(ctx context.Context, id string) ApiAgentBlueprintDeleteBlueprintRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiAgentBlueprintDeleteBlueprintRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -220,12 +213,9 @@ func (a *AgentBlueprintApiService) AgentBlueprintDeleteBlueprintExecute(r ApiAge formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/AgentBluePrint/{id}" + localVarPath := localBasePath + "/AgentBluePrint/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -328,14 +318,13 @@ AgentBlueprintGenerateBlueprint Generates an agent blueprint from the provided a @return ApiAgentBlueprintGenerateBlueprintRequest */ func (a *AgentBlueprintApiService) AgentBlueprintGenerateBlueprint(ctx context.Context) ApiAgentBlueprintGenerateBlueprintRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiAgentBlueprintGenerateBlueprintRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -350,12 +339,9 @@ func (a *AgentBlueprintApiService) AgentBlueprintGenerateBlueprintExecute(r ApiA localVarReturnValue *KeyfactorApiModelsOrchestratorsAgentBlueprintResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/AgentBluePrint/GenerateBluePrint" + localVarPath := localBasePath + "/AgentBluePrint/GenerateBluePrint" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -462,14 +448,13 @@ AgentBlueprintGetAgentBlueprint Returns an agent blueprint according to the prov @return ApiAgentBlueprintGetAgentBlueprintRequest */ func (a *AgentBlueprintApiService) AgentBlueprintGetAgentBlueprint(ctx context.Context, id string) ApiAgentBlueprintGetAgentBlueprintRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiAgentBlueprintGetAgentBlueprintRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -485,12 +470,9 @@ func (a *AgentBlueprintApiService) AgentBlueprintGetAgentBlueprintExecute(r ApiA localVarReturnValue *KeyfactorApiModelsOrchestratorsAgentBlueprintResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/AgentBluePrint/{id}" + localVarPath := localBasePath + "/AgentBluePrint/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -616,14 +598,13 @@ AgentBlueprintGetAgentBlueprints Returns all agent blueprints according to the p @return ApiAgentBlueprintGetAgentBlueprintsRequest */ func (a *AgentBlueprintApiService) AgentBlueprintGetAgentBlueprints(ctx context.Context) ApiAgentBlueprintGetAgentBlueprintsRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiAgentBlueprintGetAgentBlueprintsRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -638,12 +619,9 @@ func (a *AgentBlueprintApiService) AgentBlueprintGetAgentBlueprintsExecute(r Api localVarReturnValue []KeyfactorApiModelsOrchestratorsAgentBlueprintResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/AgentBluePrint" + localVarPath := localBasePath + "/AgentBluePrint" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -782,14 +760,13 @@ AgentBlueprintGetBlueprintJobs Gets the agent blueprint scheduled jobs @return ApiAgentBlueprintGetBlueprintJobsRequest */ func (a *AgentBlueprintApiService) AgentBlueprintGetBlueprintJobs(ctx context.Context, id string) ApiAgentBlueprintGetBlueprintJobsRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiAgentBlueprintGetBlueprintJobsRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -805,12 +782,9 @@ func (a *AgentBlueprintApiService) AgentBlueprintGetBlueprintJobsExecute(r ApiAg localVarReturnValue []KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/AgentBluePrint/{id}/Jobs" + localVarPath := localBasePath + "/AgentBluePrint/{id}/Jobs" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -950,14 +924,13 @@ AgentBlueprintGetBlueprintStores Gets the agent blueprint certificate stores @return ApiAgentBlueprintGetBlueprintStoresRequest */ func (a *AgentBlueprintApiService) AgentBlueprintGetBlueprintStores(ctx context.Context, id string) ApiAgentBlueprintGetBlueprintStoresRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiAgentBlueprintGetBlueprintStoresRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -973,12 +946,9 @@ func (a *AgentBlueprintApiService) AgentBlueprintGetBlueprintStoresExecute(r Api localVarReturnValue []KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/AgentBluePrint/{id}/Stores" + localVarPath := localBasePath + "/AgentBluePrint/{id}/Stores" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) diff --git a/v2/api/command/api_agent_pool.go b/v1/api/keyfactor/api_agent_pool.go similarity index 92% rename from v2/api/command/api_agent_pool.go rename to v1/api/keyfactor/api_agent_pool.go index 22826b4..6e2ea78 100644 --- a/v2/api/command/api_agent_pool.go +++ b/v1/api/keyfactor/api_agent_pool.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "bytes" @@ -69,18 +67,17 @@ AgentPoolCreateAgentPool Creates an agent pool with the provided properties - DiscoverAgentsCount = An integer specifying the number of agents that can perform discovery jobs - MonitorAgentsCount = An integer specifying the number of agents that can perform monitoring jobs - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAgentPoolCreateAgentPoolRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAgentPoolCreateAgentPoolRequest */ func (a *AgentPoolApiService) AgentPoolCreateAgentPool(ctx context.Context) ApiAgentPoolCreateAgentPoolRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiAgentPoolCreateAgentPoolRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -95,12 +92,9 @@ func (a *AgentPoolApiService) AgentPoolCreateAgentPoolExecute(r ApiAgentPoolCrea localVarReturnValue *ModelsAgentsAgentPool ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/AgentPools" + localVarPath := localBasePath + "/AgentPools" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -204,14 +198,13 @@ AgentPoolDeleteAgentPool Deletes the agent pool associated with the provided id @return ApiAgentPoolDeleteAgentPoolRequest */ func (a *AgentPoolApiService) AgentPoolDeleteAgentPool(ctx context.Context, id string) ApiAgentPoolDeleteAgentPoolRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiAgentPoolDeleteAgentPoolRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -224,12 +217,9 @@ func (a *AgentPoolApiService) AgentPoolDeleteAgentPoolExecute(r ApiAgentPoolDele formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/AgentPools/{id}" + localVarPath := localBasePath + "/AgentPools/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -320,14 +310,13 @@ AgentPoolGetAgentPoolById Returns a single agent pool associated with the provid @return ApiAgentPoolGetAgentPoolByIdRequest */ func (a *AgentPoolApiService) AgentPoolGetAgentPoolById(ctx context.Context, id string) ApiAgentPoolGetAgentPoolByIdRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiAgentPoolGetAgentPoolByIdRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -343,12 +332,9 @@ func (a *AgentPoolApiService) AgentPoolGetAgentPoolByIdExecute(r ApiAgentPoolGet localVarReturnValue *ModelsAgentsAgentPool ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/AgentPools/{id}" + localVarPath := localBasePath + "/AgentPools/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -481,14 +467,13 @@ AgentPoolGetAgentPools Returns all agent pools according to the provided filter @return ApiAgentPoolGetAgentPoolsRequest */ func (a *AgentPoolApiService) AgentPoolGetAgentPools(ctx context.Context) ApiAgentPoolGetAgentPoolsRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiAgentPoolGetAgentPoolsRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -503,12 +488,9 @@ func (a *AgentPoolApiService) AgentPoolGetAgentPoolsExecute(r ApiAgentPoolGetAge localVarReturnValue []ModelsAgentsAgentPool ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/AgentPools" + localVarPath := localBasePath + "/AgentPools" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -655,14 +637,13 @@ AgentPoolGetDefaultAgentPoolAgents Returns all agents for the default agent pool @return ApiAgentPoolGetDefaultAgentPoolAgentsRequest */ func (a *AgentPoolApiService) AgentPoolGetDefaultAgentPoolAgents(ctx context.Context) ApiAgentPoolGetDefaultAgentPoolAgentsRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiAgentPoolGetDefaultAgentPoolAgentsRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -677,12 +658,9 @@ func (a *AgentPoolApiService) AgentPoolGetDefaultAgentPoolAgentsExecute(r ApiAge localVarReturnValue []ModelsAgentsAgentPoolAgent ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/AgentPools/Agents" + localVarPath := localBasePath + "/AgentPools/Agents" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -800,18 +778,17 @@ AgentPoolUpdateAgentPool Updates an existing agent pool with the provided proper - DiscoverAgentsCount = An integer specifying the number of agents that can perform discovery jobs - MonitorAgentsCount = An integer specifying the number of agents that can perform monitoring jobs - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAgentPoolUpdateAgentPoolRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAgentPoolUpdateAgentPoolRequest */ func (a *AgentPoolApiService) AgentPoolUpdateAgentPool(ctx context.Context) ApiAgentPoolUpdateAgentPoolRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiAgentPoolUpdateAgentPoolRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -826,12 +803,9 @@ func (a *AgentPoolApiService) AgentPoolUpdateAgentPoolExecute(r ApiAgentPoolUpda localVarReturnValue *ModelsAgentsAgentPool ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/AgentPools" + localVarPath := localBasePath + "/AgentPools" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} diff --git a/v2/api/command/api_audit_log.go b/v1/api/keyfactor/api_audit_log.go similarity index 93% rename from v2/api/command/api_audit_log.go rename to v1/api/keyfactor/api_audit_log.go index 91be1ae..4ec1122 100644 --- a/v2/api/command/api_audit_log.go +++ b/v1/api/keyfactor/api_audit_log.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "bytes" @@ -98,14 +96,13 @@ AuditLogDownloadCSV Returns a Comma Separated file containing the audit log entr @return ApiAuditLogDownloadCSVRequest */ func (a *AuditLogApiService) AuditLogDownloadCSV(ctx context.Context) ApiAuditLogDownloadCSVRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiAuditLogDownloadCSVRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -120,12 +117,9 @@ func (a *AuditLogApiService) AuditLogDownloadCSVExecute(r ApiAuditLogDownloadCSV localVarReturnValue string ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Audit/Download" + localVarPath := localBasePath + "/Audit/Download" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -239,14 +233,13 @@ AuditLogGetAuditLog Returns the audit log entry associated with the provided ide @return ApiAuditLogGetAuditLogRequest */ func (a *AuditLogApiService) AuditLogGetAuditLog(ctx context.Context, id int32) ApiAuditLogGetAuditLogRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiAuditLogGetAuditLogRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -262,12 +255,9 @@ func (a *AuditLogApiService) AuditLogGetAuditLogExecute(r ApiAuditLogGetAuditLog localVarReturnValue map[string]interface{} ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Audit/{id}" + localVarPath := localBasePath + "/Audit/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -400,14 +390,13 @@ AuditLogGetAuditLogs Returns all audit log entries according to the provided fil @return ApiAuditLogGetAuditLogsRequest */ func (a *AuditLogApiService) AuditLogGetAuditLogs(ctx context.Context) ApiAuditLogGetAuditLogsRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiAuditLogGetAuditLogsRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -422,12 +411,9 @@ func (a *AuditLogApiService) AuditLogGetAuditLogsExecute(r ApiAuditLogGetAuditLo localVarReturnValue []KeyfactorAuditingQueryingAuditLogEntry ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Audit" + localVarPath := localBasePath + "/Audit" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -574,14 +560,13 @@ AuditLogGetRelatedEntities Returns the audit log entry associated with the provi @return ApiAuditLogGetRelatedEntitiesRequest */ func (a *AuditLogApiService) AuditLogGetRelatedEntities(ctx context.Context) ApiAuditLogGetRelatedEntitiesRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiAuditLogGetRelatedEntitiesRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -596,12 +581,9 @@ func (a *AuditLogApiService) AuditLogGetRelatedEntitiesExecute(r ApiAuditLogGetR localVarReturnValue []KeyfactorAuditingQueryingAuditLogEntry ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Audit/RelatedEntities" + localVarPath := localBasePath + "/Audit/RelatedEntities" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -717,14 +699,13 @@ The validation performs a signing operation and checks the signature against the @return ApiAuditLogValidateAuditLogRequest */ func (a *AuditLogApiService) AuditLogValidateAuditLog(ctx context.Context, id int32) ApiAuditLogValidateAuditLogRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiAuditLogValidateAuditLogRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -740,12 +721,9 @@ func (a *AuditLogApiService) AuditLogValidateAuditLogExecute(r ApiAuditLogValida localVarReturnValue bool ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Audit/{id}/Validate" + localVarPath := localBasePath + "/Audit/{id}/Validate" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) diff --git a/v2/api/command/api_certificate.go b/v1/api/keyfactor/api_certificate.go similarity index 93% rename from v2/api/command/api_certificate.go rename to v1/api/keyfactor/api_certificate.go index 9bd56ce..9c8c3b1 100644 --- a/v2/api/command/api_certificate.go +++ b/v1/api/keyfactor/api_certificate.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "bytes" @@ -70,14 +68,13 @@ CertificateAnalyzeCert Returns the public information of the certificate @return ApiCertificateAnalyzeCertRequest */ func (a *CertificateApiService) CertificateAnalyzeCert(ctx context.Context) ApiCertificateAnalyzeCertRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateAnalyzeCertRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -92,12 +89,9 @@ func (a *CertificateApiService) CertificateAnalyzeCertExecute(r ApiCertificateAn localVarReturnValue []ModelsCertificateDetails ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Certificates/Analyze" + localVarPath := localBasePath + "/Certificates/Analyze" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -236,14 +230,13 @@ CertificateCertificateHistory Gets the history of operations on a certificate @return ApiCertificateCertificateHistoryRequest */ func (a *CertificateApiService) CertificateCertificateHistory(ctx context.Context, id int32) ApiCertificateCertificateHistoryRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateCertificateHistoryRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -259,12 +252,9 @@ func (a *CertificateApiService) CertificateCertificateHistoryExecute(r ApiCertif localVarReturnValue []ModelsPKICertificateOperation ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Certificates/{id}/History" + localVarPath := localBasePath + "/Certificates/{id}/History" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -405,14 +395,13 @@ CertificateCompareMetadata Compares the metadata value provided with the metadat @return ApiCertificateCompareMetadataRequest */ func (a *CertificateApiService) CertificateCompareMetadata(ctx context.Context) ApiCertificateCompareMetadataRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateCompareMetadataRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -427,12 +416,9 @@ func (a *CertificateApiService) CertificateCompareMetadataExecute(r ApiCertifica localVarReturnValue bool ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Certificates/Metadata/Compare" + localVarPath := localBasePath + "/Certificates/Metadata/Compare" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -560,14 +546,13 @@ This will ignore individual delete failures, and continue processing the array. @return ApiCertificateDeleteByQueryRequest */ func (a *CertificateApiService) CertificateDeleteByQuery(ctx context.Context) ApiCertificateDeleteByQueryRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateDeleteByQueryRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -579,12 +564,9 @@ func (a *CertificateApiService) CertificateDeleteByQueryExecute(r ApiCertificate formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Certificates/Query" + localVarPath := localBasePath + "/Certificates/Query" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -689,14 +671,13 @@ CertificateDeleteCertificate Deletes a persisted certificate by its unique id as @return ApiCertificateDeleteCertificateRequest */ func (a *CertificateApiService) CertificateDeleteCertificate(ctx context.Context, id int32) ApiCertificateDeleteCertificateRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateDeleteCertificateRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -709,12 +690,9 @@ func (a *CertificateApiService) CertificateDeleteCertificateExecute(r ApiCertifi formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Certificates/{id}" + localVarPath := localBasePath + "/Certificates/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -822,14 +800,13 @@ This will ignore individual delete failures, and continue processing the array @return ApiCertificateDeleteCertificatesRequest */ func (a *CertificateApiService) CertificateDeleteCertificates(ctx context.Context) ApiCertificateDeleteCertificatesRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateDeleteCertificatesRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -841,12 +818,9 @@ func (a *CertificateApiService) CertificateDeleteCertificatesExecute(r ApiCertif formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Certificates" + localVarPath := localBasePath + "/Certificates" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -956,14 +930,13 @@ CertificateDeletePrivateKeys0 Deletes the persisted private keys of multiple cer @return ApiCertificateDeletePrivateKeys0Request */ func (a *CertificateApiService) CertificateDeletePrivateKeys0(ctx context.Context) ApiCertificateDeletePrivateKeys0Request { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateDeletePrivateKeys0Request{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -975,12 +948,9 @@ func (a *CertificateApiService) CertificateDeletePrivateKeys0Execute(r ApiCertif formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Certificates/PrivateKey" + localVarPath := localBasePath + "/Certificates/PrivateKey" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1085,14 +1055,13 @@ CertificateDeletePrivateKeys1 Deletes the persisted private key of the certifica @return ApiCertificateDeletePrivateKeys1Request */ func (a *CertificateApiService) CertificateDeletePrivateKeys1(ctx context.Context, id int32) ApiCertificateDeletePrivateKeys1Request { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateDeletePrivateKeys1Request{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -1105,12 +1074,9 @@ func (a *CertificateApiService) CertificateDeletePrivateKeys1Execute(r ApiCertif formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Certificates/PrivateKey/{id}" + localVarPath := localBasePath + "/Certificates/PrivateKey/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -1217,18 +1183,17 @@ CertificateDownloadCertificateAsync Downloads the persisted certificate associat 2. Thumbprint 3. Serial number AND Issuer DN (because Serial Number is CA-specific and so is not unique enough on its own) - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCertificateDownloadCertificateAsyncRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCertificateDownloadCertificateAsyncRequest */ func (a *CertificateApiService) CertificateDownloadCertificateAsync(ctx context.Context) ApiCertificateDownloadCertificateAsyncRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateDownloadCertificateAsyncRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -1243,12 +1208,9 @@ func (a *CertificateApiService) CertificateDownloadCertificateAsyncExecute(r Api localVarReturnValue *ModelsCertificateDownloadResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Certificates/Download" + localVarPath := localBasePath + "/Certificates/Download" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1382,14 +1344,13 @@ CertificateGetCertificate Returns a single certificate that matches the id @return ApiCertificateGetCertificateRequest */ func (a *CertificateApiService) CertificateGetCertificate(ctx context.Context, id int32) ApiCertificateGetCertificateRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateGetCertificateRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -1405,12 +1366,9 @@ func (a *CertificateApiService) CertificateGetCertificateExecute(r ApiCertificat localVarReturnValue *ModelsCertificateRetrievalResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Certificates/{id}" + localVarPath := localBasePath + "/Certificates/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -1529,14 +1487,13 @@ CertificateGetCertificateLocations Returns a list of locations the certificate i @return ApiCertificateGetCertificateLocationsRequest */ func (a *CertificateApiService) CertificateGetCertificateLocations(ctx context.Context, id int32) ApiCertificateGetCertificateLocationsRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateGetCertificateLocationsRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -1552,12 +1509,9 @@ func (a *CertificateApiService) CertificateGetCertificateLocationsExecute(r ApiC localVarReturnValue *KeyfactorApiModelsCertificatesCertificateLocationsResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Certificates/Locations/{id}" + localVarPath := localBasePath + "/Certificates/Locations/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -1667,14 +1621,13 @@ CertificateGetCertificateSecurity Gets the list of Security Identities and which @return ApiCertificateGetCertificateSecurityRequest */ func (a *CertificateApiService) CertificateGetCertificateSecurity(ctx context.Context, id int32) ApiCertificateGetCertificateSecurityRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateGetCertificateSecurityRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -1690,12 +1643,9 @@ func (a *CertificateApiService) CertificateGetCertificateSecurityExecute(r ApiCe localVarReturnValue *ModelsSecurityCertificatePermissions ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Certificates/{id}/Security" + localVarPath := localBasePath + "/Certificates/{id}/Security" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -1805,14 +1755,13 @@ CertificateIdentityAudit Audit identity permissions for certificate @return ApiCertificateIdentityAuditRequest */ func (a *CertificateApiService) CertificateIdentityAudit(ctx context.Context, id int32) ApiCertificateIdentityAuditRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateIdentityAuditRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -1828,12 +1777,9 @@ func (a *CertificateApiService) CertificateIdentityAuditExecute(r ApiCertificate localVarReturnValue []KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Certificates/IdentityAudit/{id}" + localVarPath := localBasePath + "/Certificates/IdentityAudit/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -1941,14 +1887,13 @@ CertificatePostImportCertificate Imports the provided certificate into the Keyfa @return ApiCertificatePostImportCertificateRequest */ func (a *CertificateApiService) CertificatePostImportCertificate(ctx context.Context) ApiCertificatePostImportCertificateRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificatePostImportCertificateRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -1963,12 +1908,9 @@ func (a *CertificateApiService) CertificatePostImportCertificateExecute(r ApiCer localVarReturnValue *ModelsCertificateImportResponseModel ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Certificates/Import" + localVarPath := localBasePath + "/Certificates/Import" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2153,14 +2095,13 @@ CertificateQueryCertificates Returns all certificates according to the provided @return ApiCertificateQueryCertificatesRequest */ func (a *CertificateApiService) CertificateQueryCertificates(ctx context.Context) ApiCertificateQueryCertificatesRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateQueryCertificatesRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -2175,12 +2116,9 @@ func (a *CertificateApiService) CertificateQueryCertificatesExecute(r ApiCertifi localVarReturnValue []ModelsCertificateRetrievalResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Certificates" + localVarPath := localBasePath + "/Certificates" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2335,20 +2273,17 @@ CertificateRecoverCertificateAsync Recovers the persisted certificate associated 2. Thumbprint 3. Serial number AND Issuer DN (because Serial Number is CA-specific and so is not unique enough on its own) - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCertificateRecoverCertificateAsyncRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCertificateRecoverCertificateAsyncRequest */ func (a *CertificateApiService) CertificateRecoverCertificateAsync(ctx context.Context) ApiCertificateRecoverCertificateAsyncRequest { - xKeyfactorApiVersion := "1" - xCertificateformat := "PEM" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateRecoverCertificateAsyncRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xCertificateformat: &xCertificateformat, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -2363,12 +2298,9 @@ func (a *CertificateApiService) CertificateRecoverCertificateAsyncExecute(r ApiC localVarReturnValue *ModelsRecoveryResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Certificates/Recover" + localVarPath := localBasePath + "/Certificates/Recover" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2494,18 +2426,17 @@ CertificateRevoke Revokes the certificates associated with the provided identifi | 7 | Remove from CRL | | 999 | Unknown | - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCertificateRevokeRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCertificateRevokeRequest */ func (a *CertificateApiService) CertificateRevoke(ctx context.Context) ApiCertificateRevokeRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateRevokeRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -2520,12 +2451,9 @@ func (a *CertificateApiService) CertificateRevokeExecute(r ApiCertificateRevokeR localVarReturnValue *ModelsRevocationRevocationResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Certificates/Revoke" + localVarPath := localBasePath + "/Certificates/Revoke" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2651,18 +2579,17 @@ CertificateRevokeAll Revokes the certificates associated with the provided query | 7 | Remove from CRL | | 999 | Unknown | - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCertificateRevokeAllRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCertificateRevokeAllRequest */ func (a *CertificateApiService) CertificateRevokeAll(ctx context.Context) ApiCertificateRevokeAllRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateRevokeAllRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -2677,12 +2604,9 @@ func (a *CertificateApiService) CertificateRevokeAllExecute(r ApiCertificateRevo localVarReturnValue *ModelsRevocationRevocationResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Certificates/RevokeAll" + localVarPath := localBasePath + "/Certificates/RevokeAll" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2801,14 +2725,13 @@ CertificateUpdateAllMetadata Updates the metadata for certificates associated wi @return ApiCertificateUpdateAllMetadataRequest */ func (a *CertificateApiService) CertificateUpdateAllMetadata(ctx context.Context) ApiCertificateUpdateAllMetadataRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateUpdateAllMetadataRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -2820,12 +2743,9 @@ func (a *CertificateApiService) CertificateUpdateAllMetadataExecute(r ApiCertifi formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Certificates/Metadata/All" + localVarPath := localBasePath + "/Certificates/Metadata/All" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2935,14 +2855,13 @@ CertificateUpdateMetadata Updates the metadata for the certificate associated wi @return ApiCertificateUpdateMetadataRequest */ func (a *CertificateApiService) CertificateUpdateMetadata(ctx context.Context) ApiCertificateUpdateMetadataRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateUpdateMetadataRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -2954,12 +2873,9 @@ func (a *CertificateApiService) CertificateUpdateMetadataExecute(r ApiCertificat formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Certificates/Metadata" + localVarPath := localBasePath + "/Certificates/Metadata" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -3064,14 +2980,13 @@ CertificateValidateCertificate Validates the certificate chain can be built. @return ApiCertificateValidateCertificateRequest */ func (a *CertificateApiService) CertificateValidateCertificate(ctx context.Context, id int32) ApiCertificateValidateCertificateRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateValidateCertificateRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -3087,12 +3002,9 @@ func (a *CertificateApiService) CertificateValidateCertificateExecute(r ApiCerti localVarReturnValue *ModelsCertificateValidationResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Certificates/{id}/Validate" + localVarPath := localBasePath + "/Certificates/{id}/Validate" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) diff --git a/v2/api/command/api_certificate_authority.go b/v1/api/keyfactor/api_certificate_authority.go similarity index 93% rename from v2/api/command/api_certificate_authority.go rename to v1/api/keyfactor/api_certificate_authority.go index 09b2100..fb64d79 100644 --- a/v2/api/command/api_certificate_authority.go +++ b/v1/api/keyfactor/api_certificate_authority.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "bytes" @@ -69,14 +67,13 @@ CertificateAuthorityCreateCA Creates a new CertificateAuthority object @return ApiCertificateAuthorityCreateCARequest */ func (a *CertificateAuthorityApiService) CertificateAuthorityCreateCA(ctx context.Context) ApiCertificateAuthorityCreateCARequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateAuthorityCreateCARequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -91,12 +88,9 @@ func (a *CertificateAuthorityApiService) CertificateAuthorityCreateCAExecute(r A localVarReturnValue *ModelsCertificateAuthoritiesCertificateAuthorityResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/CertificateAuthority" + localVarPath := localBasePath + "/CertificateAuthority" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -200,14 +194,13 @@ CertificateAuthorityDeleteCA Deletes a CertificateAuthority from the system, spe @return ApiCertificateAuthorityDeleteCARequest */ func (a *CertificateAuthorityApiService) CertificateAuthorityDeleteCA(ctx context.Context, id int32) ApiCertificateAuthorityDeleteCARequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateAuthorityDeleteCARequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -220,12 +213,9 @@ func (a *CertificateAuthorityApiService) CertificateAuthorityDeleteCAExecute(r A formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/CertificateAuthority/{id}" + localVarPath := localBasePath + "/CertificateAuthority/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -316,14 +306,13 @@ CertificateAuthorityGetCa Returns details for a single CA, specified by ID @return ApiCertificateAuthorityGetCaRequest */ func (a *CertificateAuthorityApiService) CertificateAuthorityGetCa(ctx context.Context, id int32) ApiCertificateAuthorityGetCaRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateAuthorityGetCaRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -339,12 +328,9 @@ func (a *CertificateAuthorityApiService) CertificateAuthorityGetCaExecute(r ApiC localVarReturnValue *ModelsCertificateAuthoritiesCertificateAuthorityResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/CertificateAuthority/{id}" + localVarPath := localBasePath + "/CertificateAuthority/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -477,14 +463,13 @@ CertificateAuthorityGetCas Returns all certificate authorities @return ApiCertificateAuthorityGetCasRequest */ func (a *CertificateAuthorityApiService) CertificateAuthorityGetCas(ctx context.Context) ApiCertificateAuthorityGetCasRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateAuthorityGetCasRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -499,12 +484,9 @@ func (a *CertificateAuthorityApiService) CertificateAuthorityGetCasExecute(r Api localVarReturnValue []ModelsCertificateAuthoritiesCertificateAuthorityResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/CertificateAuthority" + localVarPath := localBasePath + "/CertificateAuthority" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -623,14 +605,13 @@ CertificateAuthorityPublishCRL Publishes a CRL according to the provided request @return ApiCertificateAuthorityPublishCRLRequest */ func (a *CertificateAuthorityApiService) CertificateAuthorityPublishCRL(ctx context.Context) ApiCertificateAuthorityPublishCRLRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateAuthorityPublishCRLRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -642,12 +623,9 @@ func (a *CertificateAuthorityApiService) CertificateAuthorityPublishCRLExecute(r formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/CertificateAuthority/PublishCRL" + localVarPath := localBasePath + "/CertificateAuthority/PublishCRL" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -747,14 +725,13 @@ CertificateAuthorityTestCertificateAuthority Validates the connection info for t @return ApiCertificateAuthorityTestCertificateAuthorityRequest */ func (a *CertificateAuthorityApiService) CertificateAuthorityTestCertificateAuthority(ctx context.Context) ApiCertificateAuthorityTestCertificateAuthorityRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateAuthorityTestCertificateAuthorityRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -769,12 +746,9 @@ func (a *CertificateAuthorityApiService) CertificateAuthorityTestCertificateAuth localVarReturnValue *KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/CertificateAuthority/Test" + localVarPath := localBasePath + "/CertificateAuthority/Test" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -882,14 +856,13 @@ CertificateAuthorityUpdateCA Updates a CertificateAuthority object @return ApiCertificateAuthorityUpdateCARequest */ func (a *CertificateAuthorityApiService) CertificateAuthorityUpdateCA(ctx context.Context) ApiCertificateAuthorityUpdateCARequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateAuthorityUpdateCARequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -904,12 +877,9 @@ func (a *CertificateAuthorityApiService) CertificateAuthorityUpdateCAExecute(r A localVarReturnValue *ModelsCertificateAuthoritiesCertificateAuthorityResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/CertificateAuthority" + localVarPath := localBasePath + "/CertificateAuthority" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} diff --git a/v2/api/command/api_certificate_collection.go b/v1/api/keyfactor/api_certificate_collection.go similarity index 92% rename from v2/api/command/api_certificate_collection.go rename to v1/api/keyfactor/api_certificate_collection.go index 3d05ce5..1fc82a7 100644 --- a/v2/api/command/api_certificate_collection.go +++ b/v1/api/keyfactor/api_certificate_collection.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "bytes" @@ -74,18 +72,17 @@ The field used to determine if a certificate is a duplicate of another. | 2 | Distinguished name | | 3 | Principal name | - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCertificateCollectionCopyFromExistingCollectionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCertificateCollectionCopyFromExistingCollectionRequest */ func (a *CertificateCollectionApiService) CertificateCollectionCopyFromExistingCollection(ctx context.Context) ApiCertificateCollectionCopyFromExistingCollectionRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateCollectionCopyFromExistingCollectionRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -100,12 +97,9 @@ func (a *CertificateCollectionApiService) CertificateCollectionCopyFromExistingC localVarReturnValue *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/CertificateCollections/Copy" + localVarPath := localBasePath + "/CertificateCollections/Copy" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -218,18 +212,17 @@ The field used to determine if a certificate is a duplicate of another. | 2 | Distinguished name | | 3 | Principal name | - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCertificateCollectionCreateCollectionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCertificateCollectionCreateCollectionRequest */ func (a *CertificateCollectionApiService) CertificateCollectionCreateCollection(ctx context.Context) ApiCertificateCollectionCreateCollectionRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateCollectionCreateCollectionRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -244,12 +237,9 @@ func (a *CertificateCollectionApiService) CertificateCollectionCreateCollectionE localVarReturnValue *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/CertificateCollections" + localVarPath := localBasePath + "/CertificateCollections" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -353,14 +343,13 @@ CertificateCollectionGetCollection0 Returns the certificate collection definitio @return ApiCertificateCollectionGetCollection0Request */ func (a *CertificateCollectionApiService) CertificateCollectionGetCollection0(ctx context.Context, id int32) ApiCertificateCollectionGetCollection0Request { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateCollectionGetCollection0Request{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -376,12 +365,9 @@ func (a *CertificateCollectionApiService) CertificateCollectionGetCollection0Exe localVarReturnValue *ModelsCertificateQuery ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/CertificateCollections/{id}" + localVarPath := localBasePath + "/CertificateCollections/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -481,14 +467,13 @@ CertificateCollectionGetCollection1 Returns the certificate collection associate @return ApiCertificateCollectionGetCollection1Request */ func (a *CertificateCollectionApiService) CertificateCollectionGetCollection1(ctx context.Context, name string) ApiCertificateCollectionGetCollection1Request { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateCollectionGetCollection1Request{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, name: name, } } @@ -504,12 +489,9 @@ func (a *CertificateCollectionApiService) CertificateCollectionGetCollection1Exe localVarReturnValue *ModelsCertificateQuery ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/CertificateCollections/{name}" + localVarPath := localBasePath + "/CertificateCollections/{name}" localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterValueToString(r.name, "name")), -1) localVarHeaderParams := make(map[string]string) @@ -642,14 +624,13 @@ CertificateCollectionGetCollections Returns all certificate collections @return ApiCertificateCollectionGetCollectionsRequest */ func (a *CertificateCollectionApiService) CertificateCollectionGetCollections(ctx context.Context) ApiCertificateCollectionGetCollectionsRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateCollectionGetCollectionsRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -664,12 +645,9 @@ func (a *CertificateCollectionApiService) CertificateCollectionGetCollectionsExe localVarReturnValue []ModelsCertificateQuery ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/CertificateCollections" + localVarPath := localBasePath + "/CertificateCollections" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -794,14 +772,13 @@ This endpoint should not be used as its use will potentially cause users to lose Deprecated */ func (a *CertificateCollectionApiService) CertificateCollectionSetCollectionPermissions(ctx context.Context, id int32) ApiCertificateCollectionSetCollectionPermissionsRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateCollectionSetCollectionPermissionsRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -815,12 +792,9 @@ func (a *CertificateCollectionApiService) CertificateCollectionSetCollectionPerm formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/CertificateCollections/{id}/Permissions" + localVarPath := localBasePath + "/CertificateCollections/{id}/Permissions" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -925,18 +899,17 @@ The field used to determine if a certificate is a duplicate of another. | 2 | Distinguished name | | 3 | Principal name | - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCertificateCollectionUpdateCollectionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCertificateCollectionUpdateCollectionRequest */ func (a *CertificateCollectionApiService) CertificateCollectionUpdateCollection(ctx context.Context) ApiCertificateCollectionUpdateCollectionRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateCollectionUpdateCollectionRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -951,12 +924,9 @@ func (a *CertificateCollectionApiService) CertificateCollectionUpdateCollectionE localVarReturnValue *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/CertificateCollections" + localVarPath := localBasePath + "/CertificateCollections" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} diff --git a/v2/api/command/api_certificate_store.go b/v1/api/keyfactor/api_certificate_store.go similarity index 67% rename from v2/api/command/api_certificate_store.go rename to v1/api/keyfactor/api_certificate_store.go index b1f2030..7b5a440 100644 --- a/v2/api/command/api_certificate_store.go +++ b/v1/api/keyfactor/api_certificate_store.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "bytes" @@ -70,14 +68,13 @@ CertificateStoreAddCertificate Configures a management job to add a certificate @return ApiCertificateStoreAddCertificateRequest */ func (a *CertificateStoreApiService) CertificateStoreAddCertificate(ctx context.Context) ApiCertificateStoreAddCertificateRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateStoreAddCertificateRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -92,12 +89,9 @@ func (a *CertificateStoreApiService) CertificateStoreAddCertificateExecute(r Api localVarReturnValue []string ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/CertificateStores/Certificates/Add" + localVarPath := localBasePath + "/CertificateStores/Certificates/Add" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -206,14 +200,13 @@ CertificateStoreApprovePending Approves the provided certificate stores to make @return ApiCertificateStoreApprovePendingRequest */ func (a *CertificateStoreApiService) CertificateStoreApprovePending(ctx context.Context) ApiCertificateStoreApprovePendingRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateStoreApprovePendingRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -225,12 +218,9 @@ func (a *CertificateStoreApiService) CertificateStoreApprovePendingExecute(r Api formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/CertificateStores/Approve" + localVarPath := localBasePath + "/CertificateStores/Approve" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -330,14 +320,13 @@ CertificateStoreConfigureDiscoveryJob Configures a discovery job to locate curre @return ApiCertificateStoreConfigureDiscoveryJobRequest */ func (a *CertificateStoreApiService) CertificateStoreConfigureDiscoveryJob(ctx context.Context) ApiCertificateStoreConfigureDiscoveryJobRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateStoreConfigureDiscoveryJobRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -349,12 +338,9 @@ func (a *CertificateStoreApiService) CertificateStoreConfigureDiscoveryJobExecut formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/CertificateStores/DiscoveryJob" + localVarPath := localBasePath + "/CertificateStores/DiscoveryJob" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -417,142 +403,6 @@ func (a *CertificateStoreApiService) CertificateStoreConfigureDiscoveryJobExecut return localVarHTTPResponse, nil } -type ApiCertificateStoreCreateCertificateStoreRequest struct { - ctx context.Context - ApiService *CertificateStoreApiService - xKeyfactorRequestedWith *string - store *ModelsCertificateStoresCertificateStoreCreateRequest - xKeyfactorApiVersion *string -} - -// Type of the request [XMLHttpRequest, APIClient] -func (r ApiCertificateStoreCreateCertificateStoreRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCertificateStoreCreateCertificateStoreRequest { - r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith - return r -} - -// Certificate store to be created with the provided properties -func (r ApiCertificateStoreCreateCertificateStoreRequest) Store(store ModelsCertificateStoresCertificateStoreCreateRequest) ApiCertificateStoreCreateCertificateStoreRequest { - r.store = &store - return r -} - -// Desired version of the api, if not provided defaults to v1 -func (r ApiCertificateStoreCreateCertificateStoreRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCertificateStoreCreateCertificateStoreRequest { - r.xKeyfactorApiVersion = &xKeyfactorApiVersion - return r -} - -func (r ApiCertificateStoreCreateCertificateStoreRequest) Execute() (*KeyfactorApiModelsCertificateStoresCertificateStoreResponse, *http.Response, error) { - return r.ApiService.CertificateStoreCreateCertificateStoreExecute(r) -} - -/* -CertificateStoreCreateCertificateStore Creates a new certificate store with the provided properties - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCertificateStoreCreateCertificateStoreRequest -*/ -func (a *CertificateStoreApiService) CertificateStoreCreateCertificateStore(ctx context.Context) ApiCertificateStoreCreateCertificateStoreRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - - return ApiCertificateStoreCreateCertificateStoreRequest{ - ApiService: a, - ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, - } -} - -// Execute executes the request -// -// @return KeyfactorApiModelsCertificateStoresCertificateStoreResponse -func (a *CertificateStoreApiService) CertificateStoreCreateCertificateStoreExecute(r ApiCertificateStoreCreateCertificateStoreRequest) (*KeyfactorApiModelsCertificateStoresCertificateStoreResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *KeyfactorApiModelsCertificateStoresCertificateStoreResponse - ) - - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } - - localVarPath := apiBasePath + "/CertificateStores" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.xKeyfactorRequestedWith == nil { - return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") - } - if r.store == nil { - return localVarReturnValue, nil, reportError("store is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.xKeyfactorApiVersion != nil { - parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") - } - parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") - // body params - localVarPostBody = r.store - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - type ApiCertificateStoreCreateCertificateStoreServerRequest struct { ctx context.Context ApiService *CertificateStoreApiService @@ -592,14 +442,13 @@ CertificateStoreCreateCertificateStoreServer Creates a new certificate store ser Deprecated */ func (a *CertificateStoreApiService) CertificateStoreCreateCertificateStoreServer(ctx context.Context) ApiCertificateStoreCreateCertificateStoreServerRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateStoreCreateCertificateStoreServerRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -616,12 +465,9 @@ func (a *CertificateStoreApiService) CertificateStoreCreateCertificateStoreServe localVarReturnValue *ModelsCertificateStoreServerResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/CertificateStores/Server" + localVarPath := localBasePath + "/CertificateStores/Server" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -725,14 +571,13 @@ CertificateStoreDeleteCertificateStore Deletes a persisted certificate store by @return ApiCertificateStoreDeleteCertificateStoreRequest */ func (a *CertificateStoreApiService) CertificateStoreDeleteCertificateStore(ctx context.Context, id string) ApiCertificateStoreDeleteCertificateStoreRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateStoreDeleteCertificateStoreRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -745,12 +590,9 @@ func (a *CertificateStoreApiService) CertificateStoreDeleteCertificateStoreExecu formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/CertificateStores/{id}" + localVarPath := localBasePath + "/CertificateStores/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -848,14 +690,13 @@ This will ignore individual delete failures, and continue processing the array. @return ApiCertificateStoreDeleteCertificateStoresRequest */ func (a *CertificateStoreApiService) CertificateStoreDeleteCertificateStores(ctx context.Context) ApiCertificateStoreDeleteCertificateStoresRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateStoreDeleteCertificateStoresRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -867,12 +708,9 @@ func (a *CertificateStoreApiService) CertificateStoreDeleteCertificateStoresExec formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/CertificateStores" + localVarPath := localBasePath + "/CertificateStores" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -935,134 +773,6 @@ func (a *CertificateStoreApiService) CertificateStoreDeleteCertificateStoresExec return localVarHTTPResponse, nil } -type ApiCertificateStoreGetCertificateStoreRequest struct { - ctx context.Context - ApiService *CertificateStoreApiService - id string - xKeyfactorRequestedWith *string - xKeyfactorApiVersion *string -} - -// Type of the request [XMLHttpRequest, APIClient] -func (r ApiCertificateStoreGetCertificateStoreRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCertificateStoreGetCertificateStoreRequest { - r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith - return r -} - -// Desired version of the api, if not provided defaults to v1 -func (r ApiCertificateStoreGetCertificateStoreRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCertificateStoreGetCertificateStoreRequest { - r.xKeyfactorApiVersion = &xKeyfactorApiVersion - return r -} - -func (r ApiCertificateStoreGetCertificateStoreRequest) Execute() (*KeyfactorApiModelsCertificateStoresCertificateStoreResponse, *http.Response, error) { - return r.ApiService.CertificateStoreGetCertificateStoreExecute(r) -} - -/* -CertificateStoreGetCertificateStore Returns a single certificate store associated with the provided id - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id Keyfactor identifier (GUID) of the certificate store - @return ApiCertificateStoreGetCertificateStoreRequest -*/ -func (a *CertificateStoreApiService) CertificateStoreGetCertificateStore(ctx context.Context, id string) ApiCertificateStoreGetCertificateStoreRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - - return ApiCertificateStoreGetCertificateStoreRequest{ - ApiService: a, - ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, - id: id, - } -} - -// Execute executes the request -// -// @return KeyfactorApiModelsCertificateStoresCertificateStoreResponse -func (a *CertificateStoreApiService) CertificateStoreGetCertificateStoreExecute(r ApiCertificateStoreGetCertificateStoreRequest) (*KeyfactorApiModelsCertificateStoresCertificateStoreResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *KeyfactorApiModelsCertificateStoresCertificateStoreResponse - ) - - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } - - localVarPath := apiBasePath + "/CertificateStores/{id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.xKeyfactorRequestedWith == nil { - return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json", "text/json", "application/xml", "text/xml"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.xKeyfactorApiVersion != nil { - parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") - } - parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - type ApiCertificateStoreGetCertificateStoreInventoryRequest struct { ctx context.Context ApiService *CertificateStoreApiService @@ -1123,14 +833,13 @@ CertificateStoreGetCertificateStoreInventory Returns a single certificate store' @return ApiCertificateStoreGetCertificateStoreInventoryRequest */ func (a *CertificateStoreApiService) CertificateStoreGetCertificateStoreInventory(ctx context.Context, id string) ApiCertificateStoreGetCertificateStoreInventoryRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateStoreGetCertificateStoreInventoryRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -1146,12 +855,9 @@ func (a *CertificateStoreApiService) CertificateStoreGetCertificateStoreInventor localVarReturnValue []ModelsCertificateStoreInventory ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/CertificateStores/{id}/Inventory" + localVarPath := localBasePath + "/CertificateStores/{id}/Inventory" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -1231,180 +937,6 @@ func (a *CertificateStoreApiService) CertificateStoreGetCertificateStoreInventor return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCertificateStoreQueryCertificateStoresRequest struct { - ctx context.Context - ApiService *CertificateStoreApiService - xKeyfactorRequestedWith *string - xKeyfactorApiVersion *string - certificateStoreQueryQueryString *string - certificateStoreQueryPageReturned *int32 - certificateStoreQueryReturnLimit *int32 - certificateStoreQuerySortField *string - certificateStoreQuerySortAscending *int32 -} - -// Type of the request [XMLHttpRequest, APIClient] -func (r ApiCertificateStoreQueryCertificateStoresRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCertificateStoreQueryCertificateStoresRequest { - r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith - return r -} - -// Desired version of the api, if not provided defaults to v1 -func (r ApiCertificateStoreQueryCertificateStoresRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCertificateStoreQueryCertificateStoresRequest { - r.xKeyfactorApiVersion = &xKeyfactorApiVersion - return r -} - -// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) -func (r ApiCertificateStoreQueryCertificateStoresRequest) CertificateStoreQueryQueryString(certificateStoreQueryQueryString string) ApiCertificateStoreQueryCertificateStoresRequest { - r.certificateStoreQueryQueryString = &certificateStoreQueryQueryString - return r -} - -// The current page within the result set to be returned -func (r ApiCertificateStoreQueryCertificateStoresRequest) CertificateStoreQueryPageReturned(certificateStoreQueryPageReturned int32) ApiCertificateStoreQueryCertificateStoresRequest { - r.certificateStoreQueryPageReturned = &certificateStoreQueryPageReturned - return r -} - -// Maximum number of records to be returned in a single call -func (r ApiCertificateStoreQueryCertificateStoresRequest) CertificateStoreQueryReturnLimit(certificateStoreQueryReturnLimit int32) ApiCertificateStoreQueryCertificateStoresRequest { - r.certificateStoreQueryReturnLimit = &certificateStoreQueryReturnLimit - return r -} - -// Field by which the results should be sorted (view results via Management Portal for sortable columns) -func (r ApiCertificateStoreQueryCertificateStoresRequest) CertificateStoreQuerySortField(certificateStoreQuerySortField string) ApiCertificateStoreQueryCertificateStoresRequest { - r.certificateStoreQuerySortField = &certificateStoreQuerySortField - return r -} - -// Field sort direction [0=ascending, 1=descending] -func (r ApiCertificateStoreQueryCertificateStoresRequest) CertificateStoreQuerySortAscending(certificateStoreQuerySortAscending int32) ApiCertificateStoreQueryCertificateStoresRequest { - r.certificateStoreQuerySortAscending = &certificateStoreQuerySortAscending - return r -} - -func (r ApiCertificateStoreQueryCertificateStoresRequest) Execute() ([]KeyfactorApiModelsCertificateStoresCertificateStoreResponse, *http.Response, error) { - return r.ApiService.CertificateStoreQueryCertificateStoresExecute(r) -} - -/* -CertificateStoreQueryCertificateStores Returns all certificate stores according to the provided filter and output parameters - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCertificateStoreQueryCertificateStoresRequest -*/ -func (a *CertificateStoreApiService) CertificateStoreQueryCertificateStores(ctx context.Context) ApiCertificateStoreQueryCertificateStoresRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - - return ApiCertificateStoreQueryCertificateStoresRequest{ - ApiService: a, - ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, - } -} - -// Execute executes the request -// -// @return []KeyfactorApiModelsCertificateStoresCertificateStoreResponse -func (a *CertificateStoreApiService) CertificateStoreQueryCertificateStoresExecute(r ApiCertificateStoreQueryCertificateStoresRequest) ([]KeyfactorApiModelsCertificateStoresCertificateStoreResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []KeyfactorApiModelsCertificateStoresCertificateStoreResponse - ) - - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } - - localVarPath := apiBasePath + "/CertificateStores" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.xKeyfactorRequestedWith == nil { - return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") - } - - if r.certificateStoreQueryQueryString != nil { - parameterAddToQuery(localVarQueryParams, "certificateStoreQuery.queryString", r.certificateStoreQueryQueryString, "") - } - if r.certificateStoreQueryPageReturned != nil { - parameterAddToQuery(localVarQueryParams, "certificateStoreQuery.pageReturned", r.certificateStoreQueryPageReturned, "") - } - if r.certificateStoreQueryReturnLimit != nil { - parameterAddToQuery(localVarQueryParams, "certificateStoreQuery.returnLimit", r.certificateStoreQueryReturnLimit, "") - } - if r.certificateStoreQuerySortField != nil { - parameterAddToQuery(localVarQueryParams, "certificateStoreQuery.sortField", r.certificateStoreQuerySortField, "") - } - if r.certificateStoreQuerySortAscending != nil { - parameterAddToQuery(localVarQueryParams, "certificateStoreQuery.sortAscending", r.certificateStoreQuerySortAscending, "") - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json", "text/json", "application/xml", "text/xml"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.xKeyfactorApiVersion != nil { - parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") - } - parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - type ApiCertificateStoreRemoveCertificateRequest struct { ctx context.Context ApiService *CertificateStoreApiService @@ -1442,14 +974,13 @@ CertificateStoreRemoveCertificate Configures a management job to remove a certif @return ApiCertificateStoreRemoveCertificateRequest */ func (a *CertificateStoreApiService) CertificateStoreRemoveCertificate(ctx context.Context) ApiCertificateStoreRemoveCertificateRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateStoreRemoveCertificateRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -1464,12 +995,9 @@ func (a *CertificateStoreApiService) CertificateStoreRemoveCertificateExecute(r localVarReturnValue []string ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/CertificateStores/Certificates/Remove" + localVarPath := localBasePath + "/CertificateStores/Certificates/Remove" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1578,14 +1106,13 @@ CertificateStoreSchedule Creates an inventory schedule for the provided certific @return ApiCertificateStoreScheduleRequest */ func (a *CertificateStoreApiService) CertificateStoreSchedule(ctx context.Context) ApiCertificateStoreScheduleRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateStoreScheduleRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -1597,12 +1124,9 @@ func (a *CertificateStoreApiService) CertificateStoreScheduleExecute(r ApiCertif formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/CertificateStores/Schedule" + localVarPath := localBasePath + "/CertificateStores/Schedule" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1702,14 +1226,13 @@ CertificateStoreScheduleForReenrollment Schedules a certificate store for reenro @return ApiCertificateStoreScheduleForReenrollmentRequest */ func (a *CertificateStoreApiService) CertificateStoreScheduleForReenrollment(ctx context.Context) ApiCertificateStoreScheduleForReenrollmentRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateStoreScheduleForReenrollmentRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -1721,12 +1244,9 @@ func (a *CertificateStoreApiService) CertificateStoreScheduleForReenrollmentExec formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/CertificateStores/Reenrollment" + localVarPath := localBasePath + "/CertificateStores/Reenrollment" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1826,14 +1346,13 @@ CertificateStoreSetPassword Sets a password for the requested certificate store @return ApiCertificateStoreSetPasswordRequest */ func (a *CertificateStoreApiService) CertificateStoreSetPassword(ctx context.Context) ApiCertificateStoreSetPasswordRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateStoreSetPasswordRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -1845,12 +1364,9 @@ func (a *CertificateStoreApiService) CertificateStoreSetPasswordExecute(r ApiCer formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/CertificateStores/Password" + localVarPath := localBasePath + "/CertificateStores/Password" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1913,142 +1429,6 @@ func (a *CertificateStoreApiService) CertificateStoreSetPasswordExecute(r ApiCer return localVarHTTPResponse, nil } -type ApiCertificateStoreUpdateCertStoreRequest struct { - ctx context.Context - ApiService *CertificateStoreApiService - xKeyfactorRequestedWith *string - certStore *ModelsCertificateStoresCertificateStoreUpdateRequest - xKeyfactorApiVersion *string -} - -// Type of the request [XMLHttpRequest, APIClient] -func (r ApiCertificateStoreUpdateCertStoreRequest) XKeyfactorRequestedWith(xKeyfactorRequestedWith string) ApiCertificateStoreUpdateCertStoreRequest { - r.xKeyfactorRequestedWith = &xKeyfactorRequestedWith - return r -} - -// Certificate store to be updated with the provided properties -func (r ApiCertificateStoreUpdateCertStoreRequest) CertStore(certStore ModelsCertificateStoresCertificateStoreUpdateRequest) ApiCertificateStoreUpdateCertStoreRequest { - r.certStore = &certStore - return r -} - -// Desired version of the api, if not provided defaults to v1 -func (r ApiCertificateStoreUpdateCertStoreRequest) XKeyfactorApiVersion(xKeyfactorApiVersion string) ApiCertificateStoreUpdateCertStoreRequest { - r.xKeyfactorApiVersion = &xKeyfactorApiVersion - return r -} - -func (r ApiCertificateStoreUpdateCertStoreRequest) Execute() (*KeyfactorApiModelsCertificateStoresCertificateStoreResponse, *http.Response, error) { - return r.ApiService.CertificateStoreUpdateCertStoreExecute(r) -} - -/* -CertificateStoreUpdateCertStore Updates a given certificate store with the properties of the provided instance - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCertificateStoreUpdateCertStoreRequest -*/ -func (a *CertificateStoreApiService) CertificateStoreUpdateCertStore(ctx context.Context) ApiCertificateStoreUpdateCertStoreRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - - return ApiCertificateStoreUpdateCertStoreRequest{ - ApiService: a, - ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, - } -} - -// Execute executes the request -// -// @return KeyfactorApiModelsCertificateStoresCertificateStoreResponse -func (a *CertificateStoreApiService) CertificateStoreUpdateCertStoreExecute(r ApiCertificateStoreUpdateCertStoreRequest) (*KeyfactorApiModelsCertificateStoresCertificateStoreResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *KeyfactorApiModelsCertificateStoresCertificateStoreResponse - ) - - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } - - localVarPath := apiBasePath + "/CertificateStores" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.xKeyfactorRequestedWith == nil { - return localVarReturnValue, nil, reportError("xKeyfactorRequestedWith is required and must be specified") - } - if r.certStore == nil { - return localVarReturnValue, nil, reportError("certStore is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json", "text/json", "application/xml", "text/xml"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.xKeyfactorApiVersion != nil { - parameterAddToQuery(localVarHeaderParams, "x-keyfactor-api-version", r.xKeyfactorApiVersion, "") - } - parameterAddToQuery(localVarHeaderParams, "x-keyfactor-requested-with", r.xKeyfactorRequestedWith, "") - // body params - localVarPostBody = r.certStore - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - type ApiCertificateStoreUpdateCertificateStoreServerRequest struct { ctx context.Context ApiService *CertificateStoreApiService @@ -2088,14 +1468,13 @@ CertificateStoreUpdateCertificateStoreServer Updates a given certificate store s Deprecated */ func (a *CertificateStoreApiService) CertificateStoreUpdateCertificateStoreServer(ctx context.Context) ApiCertificateStoreUpdateCertificateStoreServerRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateStoreUpdateCertificateStoreServerRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -2112,12 +1491,9 @@ func (a *CertificateStoreApiService) CertificateStoreUpdateCertificateStoreServe localVarReturnValue *ModelsCertificateStoreServerResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/CertificateStores/Server" + localVarPath := localBasePath + "/CertificateStores/Server" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} diff --git a/v2/api/command/api_certificate_store_container.go b/v1/api/keyfactor/api_certificate_store_container.go similarity index 92% rename from v2/api/command/api_certificate_store_container.go rename to v1/api/keyfactor/api_certificate_store_container.go index d813808..9ace836 100644 --- a/v2/api/command/api_certificate_store_container.go +++ b/v1/api/keyfactor/api_certificate_store_container.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "bytes" @@ -65,14 +63,13 @@ CertificateStoreContainerDeleteCertificateStoreContainers Delete a certificate s @return ApiCertificateStoreContainerDeleteCertificateStoreContainersRequest */ func (a *CertificateStoreContainerApiService) CertificateStoreContainerDeleteCertificateStoreContainers(ctx context.Context, id int32) ApiCertificateStoreContainerDeleteCertificateStoreContainersRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateStoreContainerDeleteCertificateStoreContainersRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -85,12 +82,9 @@ func (a *CertificateStoreContainerApiService) CertificateStoreContainerDeleteCer formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/CertificateStoreContainers/{id}" + localVarPath := localBasePath + "/CertificateStoreContainers/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -214,14 +208,13 @@ CertificateStoreContainerGetAllCertificateStoreContainers Returns all certificat @return ApiCertificateStoreContainerGetAllCertificateStoreContainersRequest */ func (a *CertificateStoreContainerApiService) CertificateStoreContainerGetAllCertificateStoreContainers(ctx context.Context) ApiCertificateStoreContainerGetAllCertificateStoreContainersRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateStoreContainerGetAllCertificateStoreContainersRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -236,12 +229,9 @@ func (a *CertificateStoreContainerApiService) CertificateStoreContainerGetAllCer localVarReturnValue []ModelsCertificateStoreContainerListResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/CertificateStoreContainers" + localVarPath := localBasePath + "/CertificateStoreContainers" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} diff --git a/v2/api/command/api_certificate_store_type.go b/v1/api/keyfactor/api_certificate_store_type.go similarity index 93% rename from v2/api/command/api_certificate_store_type.go rename to v1/api/keyfactor/api_certificate_store_type.go index 188549b..c1324cb 100644 --- a/v2/api/command/api_certificate_store_type.go +++ b/v1/api/keyfactor/api_certificate_store_type.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "bytes" @@ -70,14 +68,13 @@ CertificateStoreTypeCreateCertificateStoreType Creates a new certificate store t @return ApiCertificateStoreTypeCreateCertificateStoreTypeRequest */ func (a *CertificateStoreTypeApiService) CertificateStoreTypeCreateCertificateStoreType(ctx context.Context) ApiCertificateStoreTypeCreateCertificateStoreTypeRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateStoreTypeCreateCertificateStoreTypeRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -92,12 +89,9 @@ func (a *CertificateStoreTypeApiService) CertificateStoreTypeCreateCertificateSt localVarReturnValue *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/CertificateStoreTypes" + localVarPath := localBasePath + "/CertificateStoreTypes" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -203,14 +197,13 @@ This will ignore individual delete failures, and continue processing certificate @return ApiCertificateStoreTypeDeleteCertificateStoreTypeRequest */ func (a *CertificateStoreTypeApiService) CertificateStoreTypeDeleteCertificateStoreType(ctx context.Context, id int32) ApiCertificateStoreTypeDeleteCertificateStoreTypeRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateStoreTypeDeleteCertificateStoreTypeRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -223,12 +216,9 @@ func (a *CertificateStoreTypeApiService) CertificateStoreTypeDeleteCertificateSt formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/CertificateStoreTypes/{id}" + localVarPath := localBasePath + "/CertificateStoreTypes/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -326,14 +316,13 @@ This will ignore individual delete failures, and continue processing the array. @return ApiCertificateStoreTypeDeleteCertificateStoreTypesRequest */ func (a *CertificateStoreTypeApiService) CertificateStoreTypeDeleteCertificateStoreTypes(ctx context.Context) ApiCertificateStoreTypeDeleteCertificateStoreTypesRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateStoreTypeDeleteCertificateStoreTypesRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -345,12 +334,9 @@ func (a *CertificateStoreTypeApiService) CertificateStoreTypeDeleteCertificateSt formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/CertificateStoreTypes" + localVarPath := localBasePath + "/CertificateStoreTypes" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -445,14 +431,13 @@ CertificateStoreTypeGetCertificateStoreType0 Returns a single certificate store @return ApiCertificateStoreTypeGetCertificateStoreType0Request */ func (a *CertificateStoreTypeApiService) CertificateStoreTypeGetCertificateStoreType0(ctx context.Context, id int32) ApiCertificateStoreTypeGetCertificateStoreType0Request { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateStoreTypeGetCertificateStoreType0Request{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -468,12 +453,9 @@ func (a *CertificateStoreTypeApiService) CertificateStoreTypeGetCertificateStore localVarReturnValue *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/CertificateStoreTypes/{id}" + localVarPath := localBasePath + "/CertificateStoreTypes/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -573,14 +555,13 @@ CertificateStoreTypeGetCertificateStoreType1 Returns a single certificate store @return ApiCertificateStoreTypeGetCertificateStoreType1Request */ func (a *CertificateStoreTypeApiService) CertificateStoreTypeGetCertificateStoreType1(ctx context.Context, name string) ApiCertificateStoreTypeGetCertificateStoreType1Request { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateStoreTypeGetCertificateStoreType1Request{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, name: name, } } @@ -596,12 +577,9 @@ func (a *CertificateStoreTypeApiService) CertificateStoreTypeGetCertificateStore localVarReturnValue []KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/CertificateStoreTypes/Name/{name}" + localVarPath := localBasePath + "/CertificateStoreTypes/Name/{name}" localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterValueToString(r.name, "name")), -1) localVarHeaderParams := make(map[string]string) @@ -734,14 +712,13 @@ CertificateStoreTypeGetTypes Returns all certificate store types according to th @return ApiCertificateStoreTypeGetTypesRequest */ func (a *CertificateStoreTypeApiService) CertificateStoreTypeGetTypes(ctx context.Context) ApiCertificateStoreTypeGetTypesRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateStoreTypeGetTypesRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -756,12 +733,9 @@ func (a *CertificateStoreTypeApiService) CertificateStoreTypeGetTypesExecute(r A localVarReturnValue []KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/CertificateStoreTypes" + localVarPath := localBasePath + "/CertificateStoreTypes" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -880,14 +854,13 @@ CertificateStoreTypeUpdateCertificateStoreType Updates an existing certificate s @return ApiCertificateStoreTypeUpdateCertificateStoreTypeRequest */ func (a *CertificateStoreTypeApiService) CertificateStoreTypeUpdateCertificateStoreType(ctx context.Context) ApiCertificateStoreTypeUpdateCertificateStoreTypeRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCertificateStoreTypeUpdateCertificateStoreTypeRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -902,12 +875,9 @@ func (a *CertificateStoreTypeApiService) CertificateStoreTypeUpdateCertificateSt localVarReturnValue *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/CertificateStoreTypes" + localVarPath := localBasePath + "/CertificateStoreTypes" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} diff --git a/v2/api/command/api_csr_generation.go b/v1/api/keyfactor/api_csr_generation.go similarity index 92% rename from v2/api/command/api_csr_generation.go rename to v1/api/keyfactor/api_csr_generation.go index 190ae9b..9e685e8 100644 --- a/v2/api/command/api_csr_generation.go +++ b/v1/api/keyfactor/api_csr_generation.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "bytes" @@ -65,14 +63,13 @@ CSRGenerationDeleteCSR Deletes a CSR associated with the provided identifier @return ApiCSRGenerationDeleteCSRRequest */ func (a *CSRGenerationApiService) CSRGenerationDeleteCSR(ctx context.Context, id int32) ApiCSRGenerationDeleteCSRRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCSRGenerationDeleteCSRRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -85,12 +82,9 @@ func (a *CSRGenerationApiService) CSRGenerationDeleteCSRExecute(r ApiCSRGenerati formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/CSRGeneration/Pending/{id}" + localVarPath := localBasePath + "/CSRGeneration/Pending/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -186,14 +180,13 @@ CSRGenerationDeleteCSRs Deletes the CSRs associated with the provided identifier @return ApiCSRGenerationDeleteCSRsRequest */ func (a *CSRGenerationApiService) CSRGenerationDeleteCSRs(ctx context.Context) ApiCSRGenerationDeleteCSRsRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCSRGenerationDeleteCSRsRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -205,12 +198,9 @@ func (a *CSRGenerationApiService) CSRGenerationDeleteCSRsExecute(r ApiCSRGenerat formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/CSRGeneration/Pending" + localVarPath := localBasePath + "/CSRGeneration/Pending" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -305,14 +295,13 @@ CSRGenerationDownload Returns a previously generated CSR associated with the pro @return ApiCSRGenerationDownloadRequest */ func (a *CSRGenerationApiService) CSRGenerationDownload(ctx context.Context, id int32) ApiCSRGenerationDownloadRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCSRGenerationDownloadRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -328,12 +317,9 @@ func (a *CSRGenerationApiService) CSRGenerationDownloadExecute(r ApiCSRGeneratio localVarReturnValue *ModelsCSRGenerationResponseModel ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/CSRGeneration/Pending/{id}" + localVarPath := localBasePath + "/CSRGeneration/Pending/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -466,14 +452,13 @@ CSRGenerationGetPendingCSRs Returns a list of the currently pending CSRs accordi @return ApiCSRGenerationGetPendingCSRsRequest */ func (a *CSRGenerationApiService) CSRGenerationGetPendingCSRs(ctx context.Context) ApiCSRGenerationGetPendingCSRsRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCSRGenerationGetPendingCSRsRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -488,12 +473,9 @@ func (a *CSRGenerationApiService) CSRGenerationGetPendingCSRsExecute(r ApiCSRGen localVarReturnValue []ModelsPendingCSRResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/CSRGeneration/Pending" + localVarPath := localBasePath + "/CSRGeneration/Pending" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -612,14 +594,13 @@ CSRGenerationPostGenerate Generates a CSR according the properties provided @return ApiCSRGenerationPostGenerateRequest */ func (a *CSRGenerationApiService) CSRGenerationPostGenerate(ctx context.Context) ApiCSRGenerationPostGenerateRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCSRGenerationPostGenerateRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -634,12 +615,9 @@ func (a *CSRGenerationApiService) CSRGenerationPostGenerateExecute(r ApiCSRGener localVarReturnValue *ModelsCSRContents ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/CSRGeneration/Generate" + localVarPath := localBasePath + "/CSRGeneration/Generate" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} diff --git a/v2/api/command/api_custom_job_type.go b/v1/api/keyfactor/api_custom_job_type.go similarity index 93% rename from v2/api/command/api_custom_job_type.go rename to v1/api/keyfactor/api_custom_job_type.go index eee946e..9e32439 100644 --- a/v2/api/command/api_custom_job_type.go +++ b/v1/api/keyfactor/api_custom_job_type.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "bytes" @@ -70,14 +68,13 @@ CustomJobTypeCreateJobType Creates a custom job type with the provided propertie @return ApiCustomJobTypeCreateJobTypeRequest */ func (a *CustomJobTypeApiService) CustomJobTypeCreateJobType(ctx context.Context) ApiCustomJobTypeCreateJobTypeRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCustomJobTypeCreateJobTypeRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -92,12 +89,9 @@ func (a *CustomJobTypeApiService) CustomJobTypeCreateJobTypeExecute(r ApiCustomJ localVarReturnValue *KeyfactorApiModelsOrchestratorJobsJobTypeResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/JobTypes/Custom" + localVarPath := localBasePath + "/JobTypes/Custom" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -201,14 +195,13 @@ CustomJobTypeDeleteJobType Deletes the custom job type associated with the provi @return ApiCustomJobTypeDeleteJobTypeRequest */ func (a *CustomJobTypeApiService) CustomJobTypeDeleteJobType(ctx context.Context, id string) ApiCustomJobTypeDeleteJobTypeRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCustomJobTypeDeleteJobTypeRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -221,12 +214,9 @@ func (a *CustomJobTypeApiService) CustomJobTypeDeleteJobTypeExecute(r ApiCustomJ formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/JobTypes/Custom/{id}" + localVarPath := localBasePath + "/JobTypes/Custom/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -317,14 +307,13 @@ CustomJobTypeGetJobTypeById Returns a single custom job type associated with the @return ApiCustomJobTypeGetJobTypeByIdRequest */ func (a *CustomJobTypeApiService) CustomJobTypeGetJobTypeById(ctx context.Context, id string) ApiCustomJobTypeGetJobTypeByIdRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCustomJobTypeGetJobTypeByIdRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -340,12 +329,9 @@ func (a *CustomJobTypeApiService) CustomJobTypeGetJobTypeByIdExecute(r ApiCustom localVarReturnValue *KeyfactorApiModelsOrchestratorJobsJobTypeResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/JobTypes/Custom/{id}" + localVarPath := localBasePath + "/JobTypes/Custom/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -478,14 +464,13 @@ CustomJobTypeGetJobTypes Returns all custom job types according to the provided @return ApiCustomJobTypeGetJobTypesRequest */ func (a *CustomJobTypeApiService) CustomJobTypeGetJobTypes(ctx context.Context) ApiCustomJobTypeGetJobTypesRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCustomJobTypeGetJobTypesRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -500,12 +485,9 @@ func (a *CustomJobTypeApiService) CustomJobTypeGetJobTypesExecute(r ApiCustomJob localVarReturnValue []KeyfactorApiModelsOrchestratorJobsJobTypeResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/JobTypes/Custom" + localVarPath := localBasePath + "/JobTypes/Custom" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -624,14 +606,13 @@ CustomJobTypeUpdateJobType Updates an existing custom job type with the provided @return ApiCustomJobTypeUpdateJobTypeRequest */ func (a *CustomJobTypeApiService) CustomJobTypeUpdateJobType(ctx context.Context) ApiCustomJobTypeUpdateJobTypeRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiCustomJobTypeUpdateJobTypeRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -646,12 +627,9 @@ func (a *CustomJobTypeApiService) CustomJobTypeUpdateJobTypeExecute(r ApiCustomJ localVarReturnValue *KeyfactorApiModelsOrchestratorJobsJobTypeResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/JobTypes/Custom" + localVarPath := localBasePath + "/JobTypes/Custom" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} diff --git a/v2/api/command/api_denied_alert.go b/v1/api/keyfactor/api_denied_alert.go similarity index 93% rename from v2/api/command/api_denied_alert.go rename to v1/api/keyfactor/api_denied_alert.go index ff669af..573a422 100644 --- a/v2/api/command/api_denied_alert.go +++ b/v1/api/keyfactor/api_denied_alert.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "bytes" @@ -70,14 +68,13 @@ DeniedAlertAddDeniedAlert Add a denied alert @return ApiDeniedAlertAddDeniedAlertRequest */ func (a *DeniedAlertApiService) DeniedAlertAddDeniedAlert(ctx context.Context) ApiDeniedAlertAddDeniedAlertRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiDeniedAlertAddDeniedAlertRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -92,12 +89,9 @@ func (a *DeniedAlertApiService) DeniedAlertAddDeniedAlertExecute(r ApiDeniedAler localVarReturnValue *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Alerts/Denied" + localVarPath := localBasePath + "/Alerts/Denied" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -201,14 +195,13 @@ DeniedAlertDeleteDeniedAlert Delete a denied alert @return ApiDeniedAlertDeleteDeniedAlertRequest */ func (a *DeniedAlertApiService) DeniedAlertDeleteDeniedAlert(ctx context.Context, id int32) ApiDeniedAlertDeleteDeniedAlertRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiDeniedAlertDeleteDeniedAlertRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -221,12 +214,9 @@ func (a *DeniedAlertApiService) DeniedAlertDeleteDeniedAlertExecute(r ApiDeniedA formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Alerts/Denied/{id}" + localVarPath := localBasePath + "/Alerts/Denied/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -322,14 +312,13 @@ DeniedAlertEditDeniedAlert Edit a denied alert @return ApiDeniedAlertEditDeniedAlertRequest */ func (a *DeniedAlertApiService) DeniedAlertEditDeniedAlert(ctx context.Context) ApiDeniedAlertEditDeniedAlertRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiDeniedAlertEditDeniedAlertRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -344,12 +333,9 @@ func (a *DeniedAlertApiService) DeniedAlertEditDeniedAlertExecute(r ApiDeniedAle localVarReturnValue *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Alerts/Denied" + localVarPath := localBasePath + "/Alerts/Denied" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -453,14 +439,13 @@ DeniedAlertGetDeniedAlert Get a denied alert @return ApiDeniedAlertGetDeniedAlertRequest */ func (a *DeniedAlertApiService) DeniedAlertGetDeniedAlert(ctx context.Context, id int32) ApiDeniedAlertGetDeniedAlertRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiDeniedAlertGetDeniedAlertRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -476,12 +461,9 @@ func (a *DeniedAlertApiService) DeniedAlertGetDeniedAlertExecute(r ApiDeniedAler localVarReturnValue *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Alerts/Denied/{id}" + localVarPath := localBasePath + "/Alerts/Denied/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -614,14 +596,13 @@ DeniedAlertGetDeniedAlerts Gets all denied alerts according to the provided filt @return ApiDeniedAlertGetDeniedAlertsRequest */ func (a *DeniedAlertApiService) DeniedAlertGetDeniedAlerts(ctx context.Context) ApiDeniedAlertGetDeniedAlertsRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiDeniedAlertGetDeniedAlertsRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -636,12 +617,9 @@ func (a *DeniedAlertApiService) DeniedAlertGetDeniedAlertsExecute(r ApiDeniedAle localVarReturnValue []KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Alerts/Denied" + localVarPath := localBasePath + "/Alerts/Denied" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} diff --git a/v2/api/command/api_enrollment.go b/v1/api/keyfactor/api_enrollment.go similarity index 92% rename from v2/api/command/api_enrollment.go rename to v1/api/keyfactor/api_enrollment.go index 4e7dda3..33a9f4e 100644 --- a/v2/api/command/api_enrollment.go +++ b/v1/api/keyfactor/api_enrollment.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "bytes" @@ -70,14 +68,13 @@ EnrollmentAddToExistingCertStores Creates management jobs to install a newly enr @return ApiEnrollmentAddToExistingCertStoresRequest */ func (a *EnrollmentApiService) EnrollmentAddToExistingCertStores(ctx context.Context) ApiEnrollmentAddToExistingCertStoresRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiEnrollmentAddToExistingCertStoresRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -92,12 +89,9 @@ func (a *EnrollmentApiService) EnrollmentAddToExistingCertStoresExecute(r ApiEnr localVarReturnValue *KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Enrollment/PFX/Replace" + localVarPath := localBasePath + "/Enrollment/PFX/Replace" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -210,19 +204,18 @@ EnrollmentAvailableRenewalId Returns the type of renewal available for a given c | 1 | Seeded PFX | | 2 | One-click | - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The Keyfactor certificate Id - @return ApiEnrollmentAvailableRenewalIdRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The Keyfactor certificate Id + @return ApiEnrollmentAvailableRenewalIdRequest */ func (a *EnrollmentApiService) EnrollmentAvailableRenewalId(ctx context.Context, id int32) ApiEnrollmentAvailableRenewalIdRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiEnrollmentAvailableRenewalIdRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -238,12 +231,9 @@ func (a *EnrollmentApiService) EnrollmentAvailableRenewalIdExecute(r ApiEnrollme localVarReturnValue *ModelsEnrollmentAvailableRenewal ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Enrollment/AvailableRenewal/Id/{id}" + localVarPath := localBasePath + "/Enrollment/AvailableRenewal/Id/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -353,14 +343,13 @@ EnrollmentAvailableRenewalThumbprint Returns the type of renewal available for a @return ApiEnrollmentAvailableRenewalThumbprintRequest */ func (a *EnrollmentApiService) EnrollmentAvailableRenewalThumbprint(ctx context.Context, thumbprint string) ApiEnrollmentAvailableRenewalThumbprintRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiEnrollmentAvailableRenewalThumbprintRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, thumbprint: thumbprint, } } @@ -376,12 +365,9 @@ func (a *EnrollmentApiService) EnrollmentAvailableRenewalThumbprintExecute(r Api localVarReturnValue *ModelsEnrollmentAvailableRenewal ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Enrollment/AvailableRenewal/Thumbprint/{thumbprint}" + localVarPath := localBasePath + "/Enrollment/AvailableRenewal/Thumbprint/{thumbprint}" localVarPath = strings.Replace(localVarPath, "{"+"thumbprint"+"}", url.PathEscape(parameterValueToString(r.thumbprint, "thumbprint")), -1) localVarHeaderParams := make(map[string]string) @@ -482,14 +468,13 @@ EnrollmentGetMyCSRContext Returns the list of available CSR enrollment templates @return ApiEnrollmentGetMyCSRContextRequest */ func (a *EnrollmentApiService) EnrollmentGetMyCSRContext(ctx context.Context) ApiEnrollmentGetMyCSRContextRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiEnrollmentGetMyCSRContextRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -504,12 +489,9 @@ func (a *EnrollmentApiService) EnrollmentGetMyCSRContextExecute(r ApiEnrollmentG localVarReturnValue *CoreModelsEnrollmentEnrollmentTemplateCAResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Enrollment/CSR/Context/My" + localVarPath := localBasePath + "/Enrollment/CSR/Context/My" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -606,14 +588,13 @@ EnrollmentGetMyPFXContext Returns the list of available PFX enrollment templates @return ApiEnrollmentGetMyPFXContextRequest */ func (a *EnrollmentApiService) EnrollmentGetMyPFXContext(ctx context.Context) ApiEnrollmentGetMyPFXContextRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiEnrollmentGetMyPFXContextRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -628,12 +609,9 @@ func (a *EnrollmentApiService) EnrollmentGetMyPFXContextExecute(r ApiEnrollmentG localVarReturnValue *CoreModelsEnrollmentEnrollmentTemplateCAResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Enrollment/PFX/Context/My" + localVarPath := localBasePath + "/Enrollment/PFX/Context/My" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -732,14 +710,13 @@ EnrollmentGetTemplateEnrollmentSettings Gets the template settings to use during @return ApiEnrollmentGetTemplateEnrollmentSettingsRequest */ func (a *EnrollmentApiService) EnrollmentGetTemplateEnrollmentSettings(ctx context.Context, id int32) ApiEnrollmentGetTemplateEnrollmentSettingsRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiEnrollmentGetTemplateEnrollmentSettingsRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -755,12 +732,9 @@ func (a *EnrollmentApiService) EnrollmentGetTemplateEnrollmentSettingsExecute(r localVarReturnValue *KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Enrollment/Settings/{id}" + localVarPath := localBasePath + "/Enrollment/Settings/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -865,14 +839,13 @@ EnrollmentInstallPFXToCertStore Creates management jobs to install a newly enrol @return ApiEnrollmentInstallPFXToCertStoreRequest */ func (a *EnrollmentApiService) EnrollmentInstallPFXToCertStore(ctx context.Context) ApiEnrollmentInstallPFXToCertStoreRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiEnrollmentInstallPFXToCertStoreRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -887,12 +860,9 @@ func (a *EnrollmentApiService) EnrollmentInstallPFXToCertStoreExecute(r ApiEnrol localVarReturnValue *KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Enrollment/PFX/Deploy" + localVarPath := localBasePath + "/Enrollment/PFX/Deploy" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1021,20 +991,17 @@ EnrollmentPostCSREnroll Performs a CSR Enrollment based upon the provided reques | ms_ntprincipalname | MS_NTPrincipalName | | ms_ntdsreplication | MS_NTDSReplication | - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiEnrollmentPostCSREnrollRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiEnrollmentPostCSREnrollRequest */ func (a *EnrollmentApiService) EnrollmentPostCSREnroll(ctx context.Context) ApiEnrollmentPostCSREnrollRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - xCertificateformat := "PEM" - + requestedWith := "APIClient" + version := "1" return ApiEnrollmentPostCSREnrollRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, - xCertificateformat: &xCertificateformat, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -1049,12 +1016,9 @@ func (a *EnrollmentApiService) EnrollmentPostCSREnrollExecute(r ApiEnrollmentPos localVarReturnValue *ModelsEnrollmentCSREnrollmentResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Enrollment/CSR" + localVarPath := localBasePath + "/Enrollment/CSR" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1190,20 +1154,17 @@ EnrollmentPostPFXEnroll Performs a PFX Enrollment based upon the provided reques | ms_ntprincipalname | MS_NTPrincipalName | | ms_ntdsreplication | MS_NTDSReplication | - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiEnrollmentPostPFXEnrollRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiEnrollmentPostPFXEnrollRequest */ func (a *EnrollmentApiService) EnrollmentPostPFXEnroll(ctx context.Context) ApiEnrollmentPostPFXEnrollRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - xCertificateformat := "PFX" - + requestedWith := "APIClient" + version := "1" return ApiEnrollmentPostPFXEnrollRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, - xCertificateformat: &xCertificateformat, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -1218,12 +1179,9 @@ func (a *EnrollmentApiService) EnrollmentPostPFXEnrollExecute(r ApiEnrollmentPos localVarReturnValue *ModelsEnrollmentPFXEnrollmentResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Enrollment/PFX" + localVarPath := localBasePath + "/Enrollment/PFX" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1338,14 +1296,13 @@ This functionality is equivalent to the result of pasting a CSR into the field w @return ApiEnrollmentPostParsedCSRRequest */ func (a *EnrollmentApiService) EnrollmentPostParsedCSR(ctx context.Context) ApiEnrollmentPostParsedCSRRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiEnrollmentPostParsedCSRRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -1360,12 +1317,9 @@ func (a *EnrollmentApiService) EnrollmentPostParsedCSRExecute(r ApiEnrollmentPos localVarReturnValue []string ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Enrollment/CSR/Parse" + localVarPath := localBasePath + "/Enrollment/CSR/Parse" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1481,14 +1435,13 @@ EnrollmentRenew Performs a renewal based upon the passed in request @return ApiEnrollmentRenewRequest */ func (a *EnrollmentApiService) EnrollmentRenew(ctx context.Context) ApiEnrollmentRenewRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiEnrollmentRenewRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -1503,12 +1456,9 @@ func (a *EnrollmentApiService) EnrollmentRenewExecute(r ApiEnrollmentRenewReques localVarReturnValue *ModelsEnrollmentRenewalResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Enrollment/Renew" + localVarPath := localBasePath + "/Enrollment/Renew" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} diff --git a/v2/api/command/api_expiration_alert.go b/v1/api/keyfactor/api_expiration_alert.go similarity index 93% rename from v2/api/command/api_expiration_alert.go rename to v1/api/keyfactor/api_expiration_alert.go index 9c6da65..cf0b436 100644 --- a/v2/api/command/api_expiration_alert.go +++ b/v1/api/keyfactor/api_expiration_alert.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "bytes" @@ -70,14 +68,13 @@ ExpirationAlertAddExpirationAlert Add an expiration alert @return ApiExpirationAlertAddExpirationAlertRequest */ func (a *ExpirationAlertApiService) ExpirationAlertAddExpirationAlert(ctx context.Context) ApiExpirationAlertAddExpirationAlertRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiExpirationAlertAddExpirationAlertRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -92,12 +89,9 @@ func (a *ExpirationAlertApiService) ExpirationAlertAddExpirationAlertExecute(r A localVarReturnValue *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Alerts/Expiration" + localVarPath := localBasePath + "/Alerts/Expiration" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -201,14 +195,13 @@ ExpirationAlertDeleteExpirationAlert Delete an expiration alert @return ApiExpirationAlertDeleteExpirationAlertRequest */ func (a *ExpirationAlertApiService) ExpirationAlertDeleteExpirationAlert(ctx context.Context, id int32) ApiExpirationAlertDeleteExpirationAlertRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiExpirationAlertDeleteExpirationAlertRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -221,12 +214,9 @@ func (a *ExpirationAlertApiService) ExpirationAlertDeleteExpirationAlertExecute( formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Alerts/Expiration/{id}" + localVarPath := localBasePath + "/Alerts/Expiration/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -322,14 +312,13 @@ ExpirationAlertEditExpirationAlert Edit an expiration alert @return ApiExpirationAlertEditExpirationAlertRequest */ func (a *ExpirationAlertApiService) ExpirationAlertEditExpirationAlert(ctx context.Context) ApiExpirationAlertEditExpirationAlertRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiExpirationAlertEditExpirationAlertRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -344,12 +333,9 @@ func (a *ExpirationAlertApiService) ExpirationAlertEditExpirationAlertExecute(r localVarReturnValue *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Alerts/Expiration" + localVarPath := localBasePath + "/Alerts/Expiration" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -457,14 +443,13 @@ ExpirationAlertEditSchedule Edit schedule @return ApiExpirationAlertEditScheduleRequest */ func (a *ExpirationAlertApiService) ExpirationAlertEditSchedule(ctx context.Context) ApiExpirationAlertEditScheduleRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiExpirationAlertEditScheduleRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -479,12 +464,9 @@ func (a *ExpirationAlertApiService) ExpirationAlertEditScheduleExecute(r ApiExpi localVarReturnValue *KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Alerts/Expiration/Schedule" + localVarPath := localBasePath + "/Alerts/Expiration/Schedule" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -588,14 +570,13 @@ ExpirationAlertGetExpirationAlert Get an expiration alert @return ApiExpirationAlertGetExpirationAlertRequest */ func (a *ExpirationAlertApiService) ExpirationAlertGetExpirationAlert(ctx context.Context, id int32) ApiExpirationAlertGetExpirationAlertRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiExpirationAlertGetExpirationAlertRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -611,12 +592,9 @@ func (a *ExpirationAlertApiService) ExpirationAlertGetExpirationAlertExecute(r A localVarReturnValue *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Alerts/Expiration/{id}" + localVarPath := localBasePath + "/Alerts/Expiration/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -749,14 +727,13 @@ ExpirationAlertGetExpirationAlerts Gets all expiration alerts according to the p @return ApiExpirationAlertGetExpirationAlertsRequest */ func (a *ExpirationAlertApiService) ExpirationAlertGetExpirationAlerts(ctx context.Context) ApiExpirationAlertGetExpirationAlertsRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiExpirationAlertGetExpirationAlertsRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -771,12 +748,9 @@ func (a *ExpirationAlertApiService) ExpirationAlertGetExpirationAlertsExecute(r localVarReturnValue []KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Alerts/Expiration" + localVarPath := localBasePath + "/Alerts/Expiration" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -888,14 +862,13 @@ ExpirationAlertGetSchedule Get the schedule for expiration alerts @return ApiExpirationAlertGetScheduleRequest */ func (a *ExpirationAlertApiService) ExpirationAlertGetSchedule(ctx context.Context) ApiExpirationAlertGetScheduleRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiExpirationAlertGetScheduleRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -910,12 +883,9 @@ func (a *ExpirationAlertApiService) ExpirationAlertGetScheduleExecute(r ApiExpir localVarReturnValue *KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Alerts/Expiration/Schedule" + localVarPath := localBasePath + "/Alerts/Expiration/Schedule" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1019,14 +989,13 @@ ExpirationAlertTestAllExpirationAlert Test All Expiration Alerts @return ApiExpirationAlertTestAllExpirationAlertRequest */ func (a *ExpirationAlertApiService) ExpirationAlertTestAllExpirationAlert(ctx context.Context) ApiExpirationAlertTestAllExpirationAlertRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiExpirationAlertTestAllExpirationAlertRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -1041,12 +1010,9 @@ func (a *ExpirationAlertApiService) ExpirationAlertTestAllExpirationAlertExecute localVarReturnValue *KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Alerts/Expiration/TestAll" + localVarPath := localBasePath + "/Alerts/Expiration/TestAll" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1155,14 +1121,13 @@ ExpirationAlertTestExpirationAlert Test an Expiration Alert @return ApiExpirationAlertTestExpirationAlertRequest */ func (a *ExpirationAlertApiService) ExpirationAlertTestExpirationAlert(ctx context.Context) ApiExpirationAlertTestExpirationAlertRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiExpirationAlertTestExpirationAlertRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -1177,12 +1142,9 @@ func (a *ExpirationAlertApiService) ExpirationAlertTestExpirationAlertExecute(r localVarReturnValue *KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Alerts/Expiration/Test" + localVarPath := localBasePath + "/Alerts/Expiration/Test" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} diff --git a/v2/api/command/api_issued_alert.go b/v1/api/keyfactor/api_issued_alert.go similarity index 93% rename from v2/api/command/api_issued_alert.go rename to v1/api/keyfactor/api_issued_alert.go index 31176a7..c70e569 100644 --- a/v2/api/command/api_issued_alert.go +++ b/v1/api/keyfactor/api_issued_alert.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "bytes" @@ -70,14 +68,13 @@ IssuedAlertAddIssuedAlert Add a issued alert @return ApiIssuedAlertAddIssuedAlertRequest */ func (a *IssuedAlertApiService) IssuedAlertAddIssuedAlert(ctx context.Context) ApiIssuedAlertAddIssuedAlertRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiIssuedAlertAddIssuedAlertRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -92,12 +89,9 @@ func (a *IssuedAlertApiService) IssuedAlertAddIssuedAlertExecute(r ApiIssuedAler localVarReturnValue *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Alerts/Issued" + localVarPath := localBasePath + "/Alerts/Issued" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -201,14 +195,13 @@ IssuedAlertDeleteIssuedAlert Delete a issued alert @return ApiIssuedAlertDeleteIssuedAlertRequest */ func (a *IssuedAlertApiService) IssuedAlertDeleteIssuedAlert(ctx context.Context, id int32) ApiIssuedAlertDeleteIssuedAlertRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiIssuedAlertDeleteIssuedAlertRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -221,12 +214,9 @@ func (a *IssuedAlertApiService) IssuedAlertDeleteIssuedAlertExecute(r ApiIssuedA formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Alerts/Issued/{id}" + localVarPath := localBasePath + "/Alerts/Issued/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -322,14 +312,13 @@ IssuedAlertEditIssuedAlert Edit a issued alert @return ApiIssuedAlertEditIssuedAlertRequest */ func (a *IssuedAlertApiService) IssuedAlertEditIssuedAlert(ctx context.Context) ApiIssuedAlertEditIssuedAlertRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiIssuedAlertEditIssuedAlertRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -344,12 +333,9 @@ func (a *IssuedAlertApiService) IssuedAlertEditIssuedAlertExecute(r ApiIssuedAle localVarReturnValue *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Alerts/Issued" + localVarPath := localBasePath + "/Alerts/Issued" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -457,14 +443,13 @@ IssuedAlertEditSchedule Edit schedule @return ApiIssuedAlertEditScheduleRequest */ func (a *IssuedAlertApiService) IssuedAlertEditSchedule(ctx context.Context) ApiIssuedAlertEditScheduleRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiIssuedAlertEditScheduleRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -479,12 +464,9 @@ func (a *IssuedAlertApiService) IssuedAlertEditScheduleExecute(r ApiIssuedAlertE localVarReturnValue *KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Alerts/Issued/Schedule" + localVarPath := localBasePath + "/Alerts/Issued/Schedule" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -588,14 +570,13 @@ IssuedAlertGetIssuedAlert Get a issued alert @return ApiIssuedAlertGetIssuedAlertRequest */ func (a *IssuedAlertApiService) IssuedAlertGetIssuedAlert(ctx context.Context, id int32) ApiIssuedAlertGetIssuedAlertRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiIssuedAlertGetIssuedAlertRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -611,12 +592,9 @@ func (a *IssuedAlertApiService) IssuedAlertGetIssuedAlertExecute(r ApiIssuedAler localVarReturnValue *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Alerts/Issued/{id}" + localVarPath := localBasePath + "/Alerts/Issued/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -749,14 +727,13 @@ IssuedAlertGetIssuedAlerts Gets all issued alerts according to the provided filt @return ApiIssuedAlertGetIssuedAlertsRequest */ func (a *IssuedAlertApiService) IssuedAlertGetIssuedAlerts(ctx context.Context) ApiIssuedAlertGetIssuedAlertsRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiIssuedAlertGetIssuedAlertsRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -771,12 +748,9 @@ func (a *IssuedAlertApiService) IssuedAlertGetIssuedAlertsExecute(r ApiIssuedAle localVarReturnValue []KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Alerts/Issued" + localVarPath := localBasePath + "/Alerts/Issued" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -888,14 +862,13 @@ IssuedAlertGetSchedule Get the schedule for issued alerts @return ApiIssuedAlertGetScheduleRequest */ func (a *IssuedAlertApiService) IssuedAlertGetSchedule(ctx context.Context) ApiIssuedAlertGetScheduleRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiIssuedAlertGetScheduleRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -910,12 +883,9 @@ func (a *IssuedAlertApiService) IssuedAlertGetScheduleExecute(r ApiIssuedAlertGe localVarReturnValue *KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Alerts/Issued/Schedule" + localVarPath := localBasePath + "/Alerts/Issued/Schedule" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} diff --git a/v2/api/command/api_key.go b/v1/api/keyfactor/api_key.go similarity index 92% rename from v2/api/command/api_key.go rename to v1/api/keyfactor/api_key.go index d687c53..47e5dcb 100644 --- a/v2/api/command/api_key.go +++ b/v1/api/keyfactor/api_key.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "bytes" @@ -65,14 +63,13 @@ KeyDeleteUnmanagedKey Deletes Unmanaged Key associated with the provided identif @return ApiKeyDeleteUnmanagedKeyRequest */ func (a *KeyApiService) KeyDeleteUnmanagedKey(ctx context.Context, id int32) ApiKeyDeleteUnmanagedKeyRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiKeyDeleteUnmanagedKeyRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -85,12 +82,9 @@ func (a *KeyApiService) KeyDeleteUnmanagedKeyExecute(r ApiKeyDeleteUnmanagedKeyR formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSH/Keys/Unmanaged/{id}" + localVarPath := localBasePath + "/SSH/Keys/Unmanaged/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -186,14 +180,13 @@ KeyDeleteUnmanagedKeys Deletes Unmanaged Keys associated with the provided ident @return ApiKeyDeleteUnmanagedKeysRequest */ func (a *KeyApiService) KeyDeleteUnmanagedKeys(ctx context.Context) ApiKeyDeleteUnmanagedKeysRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiKeyDeleteUnmanagedKeysRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -205,12 +198,9 @@ func (a *KeyApiService) KeyDeleteUnmanagedKeysExecute(r ApiKeyDeleteUnmanagedKey formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSH/Keys/Unmanaged" + localVarPath := localBasePath + "/SSH/Keys/Unmanaged" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -321,18 +311,17 @@ KeyGenerateKey Generates an SSH Key Pair for the requesting user. | 1 | OpenSSH | | 2 | PKCS8 | - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiKeyGenerateKeyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiKeyGenerateKeyRequest */ func (a *KeyApiService) KeyGenerateKey(ctx context.Context) ApiKeyGenerateKeyRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiKeyGenerateKeyRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -347,12 +336,9 @@ func (a *KeyApiService) KeyGenerateKeyExecute(r ApiKeyGenerateKeyRequest) (*Mode localVarReturnValue *ModelsSSHKeysKeyResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSH/Keys/MyKey" + localVarPath := localBasePath + "/SSH/Keys/MyKey" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -468,14 +454,13 @@ KeyGetMyKey Returns the current key of the requesting user @return ApiKeyGetMyKeyRequest */ func (a *KeyApiService) KeyGetMyKey(ctx context.Context) ApiKeyGetMyKeyRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiKeyGetMyKeyRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -490,12 +475,9 @@ func (a *KeyApiService) KeyGetMyKeyExecute(r ApiKeyGetMyKeyRequest) (*ModelsSSHK localVarReturnValue *ModelsSSHKeysKeyResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSH/Keys/MyKey" + localVarPath := localBasePath + "/SSH/Keys/MyKey" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -601,14 +583,13 @@ KeyGetUnmanagedKey Returns an unmanaged SSH key with provided id. @return ApiKeyGetUnmanagedKeyRequest */ func (a *KeyApiService) KeyGetUnmanagedKey(ctx context.Context, id int32) ApiKeyGetUnmanagedKeyRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiKeyGetUnmanagedKeyRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -624,12 +605,9 @@ func (a *KeyApiService) KeyGetUnmanagedKeyExecute(r ApiKeyGetUnmanagedKeyRequest localVarReturnValue *ModelsSSHKeysUnmanagedKeyResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSH/Keys/Unmanaged/{id}" + localVarPath := localBasePath + "/SSH/Keys/Unmanaged/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -762,14 +740,13 @@ KeyGetUnmanagedKeys Returns Unmanaged SSH keys @return ApiKeyGetUnmanagedKeysRequest */ func (a *KeyApiService) KeyGetUnmanagedKeys(ctx context.Context) ApiKeyGetUnmanagedKeysRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiKeyGetUnmanagedKeysRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -784,12 +761,9 @@ func (a *KeyApiService) KeyGetUnmanagedKeysExecute(r ApiKeyGetUnmanagedKeysReque localVarReturnValue []ModelsSSHKeysUnmanagedKeyResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSH/Keys/Unmanaged" + localVarPath := localBasePath + "/SSH/Keys/Unmanaged" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -908,14 +882,13 @@ KeyUpdate Updates the requesting user's SSH key @return ApiKeyUpdateRequest */ func (a *KeyApiService) KeyUpdate(ctx context.Context) ApiKeyUpdateRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiKeyUpdateRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -930,12 +903,9 @@ func (a *KeyApiService) KeyUpdateExecute(r ApiKeyUpdateRequest) (*ModelsSSHKeysK localVarReturnValue *ModelsSSHKeysKeyResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSH/Keys/MyKey" + localVarPath := localBasePath + "/SSH/Keys/MyKey" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} diff --git a/v2/api/command/api_key_rotation_alert.go b/v1/api/keyfactor/api_key_rotation_alert.go similarity index 93% rename from v2/api/command/api_key_rotation_alert.go rename to v1/api/keyfactor/api_key_rotation_alert.go index c152a84..a28cb10 100644 --- a/v2/api/command/api_key_rotation_alert.go +++ b/v1/api/keyfactor/api_key_rotation_alert.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "bytes" @@ -70,14 +68,13 @@ KeyRotationAlertAddKeyRotationAlert Add a key rotation alert @return ApiKeyRotationAlertAddKeyRotationAlertRequest */ func (a *KeyRotationAlertApiService) KeyRotationAlertAddKeyRotationAlert(ctx context.Context) ApiKeyRotationAlertAddKeyRotationAlertRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiKeyRotationAlertAddKeyRotationAlertRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -92,12 +89,9 @@ func (a *KeyRotationAlertApiService) KeyRotationAlertAddKeyRotationAlertExecute( localVarReturnValue *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Alerts/KeyRotation" + localVarPath := localBasePath + "/Alerts/KeyRotation" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -201,14 +195,13 @@ KeyRotationAlertDeleteKeyRotationAlert Delete a key rotation alert @return ApiKeyRotationAlertDeleteKeyRotationAlertRequest */ func (a *KeyRotationAlertApiService) KeyRotationAlertDeleteKeyRotationAlert(ctx context.Context, id int32) ApiKeyRotationAlertDeleteKeyRotationAlertRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiKeyRotationAlertDeleteKeyRotationAlertRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -221,12 +214,9 @@ func (a *KeyRotationAlertApiService) KeyRotationAlertDeleteKeyRotationAlertExecu formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Alerts/KeyRotation/{id}" + localVarPath := localBasePath + "/Alerts/KeyRotation/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -322,14 +312,13 @@ KeyRotationAlertEditKeyRotationAlert Edit a key rotation alert @return ApiKeyRotationAlertEditKeyRotationAlertRequest */ func (a *KeyRotationAlertApiService) KeyRotationAlertEditKeyRotationAlert(ctx context.Context) ApiKeyRotationAlertEditKeyRotationAlertRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiKeyRotationAlertEditKeyRotationAlertRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -344,12 +333,9 @@ func (a *KeyRotationAlertApiService) KeyRotationAlertEditKeyRotationAlertExecute localVarReturnValue *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Alerts/KeyRotation" + localVarPath := localBasePath + "/Alerts/KeyRotation" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -457,14 +443,13 @@ KeyRotationAlertEditSchedule Edit schedule @return ApiKeyRotationAlertEditScheduleRequest */ func (a *KeyRotationAlertApiService) KeyRotationAlertEditSchedule(ctx context.Context) ApiKeyRotationAlertEditScheduleRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiKeyRotationAlertEditScheduleRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -479,12 +464,9 @@ func (a *KeyRotationAlertApiService) KeyRotationAlertEditScheduleExecute(r ApiKe localVarReturnValue *KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Alerts/KeyRotation/Schedule" + localVarPath := localBasePath + "/Alerts/KeyRotation/Schedule" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -588,14 +570,13 @@ KeyRotationAlertGetKeyRotationAlert Get a key rotation alert @return ApiKeyRotationAlertGetKeyRotationAlertRequest */ func (a *KeyRotationAlertApiService) KeyRotationAlertGetKeyRotationAlert(ctx context.Context, id int32) ApiKeyRotationAlertGetKeyRotationAlertRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiKeyRotationAlertGetKeyRotationAlertRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -611,12 +592,9 @@ func (a *KeyRotationAlertApiService) KeyRotationAlertGetKeyRotationAlertExecute( localVarReturnValue *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Alerts/KeyRotation/{id}" + localVarPath := localBasePath + "/Alerts/KeyRotation/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -749,14 +727,13 @@ KeyRotationAlertGetKeyRotationAlerts Gets all key rotation alerts according to t @return ApiKeyRotationAlertGetKeyRotationAlertsRequest */ func (a *KeyRotationAlertApiService) KeyRotationAlertGetKeyRotationAlerts(ctx context.Context) ApiKeyRotationAlertGetKeyRotationAlertsRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiKeyRotationAlertGetKeyRotationAlertsRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -771,12 +748,9 @@ func (a *KeyRotationAlertApiService) KeyRotationAlertGetKeyRotationAlertsExecute localVarReturnValue []KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Alerts/KeyRotation" + localVarPath := localBasePath + "/Alerts/KeyRotation" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -888,14 +862,13 @@ KeyRotationAlertGetSchedule Get the schedule for key rotation alerts @return ApiKeyRotationAlertGetScheduleRequest */ func (a *KeyRotationAlertApiService) KeyRotationAlertGetSchedule(ctx context.Context) ApiKeyRotationAlertGetScheduleRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiKeyRotationAlertGetScheduleRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -910,12 +883,9 @@ func (a *KeyRotationAlertApiService) KeyRotationAlertGetScheduleExecute(r ApiKey localVarReturnValue *KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Alerts/KeyRotation/Schedule" + localVarPath := localBasePath + "/Alerts/KeyRotation/Schedule" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1019,14 +989,13 @@ KeyRotationAlertTestAllKeyRotationAlert Test All Alerts @return ApiKeyRotationAlertTestAllKeyRotationAlertRequest */ func (a *KeyRotationAlertApiService) KeyRotationAlertTestAllKeyRotationAlert(ctx context.Context) ApiKeyRotationAlertTestAllKeyRotationAlertRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiKeyRotationAlertTestAllKeyRotationAlertRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -1041,12 +1010,9 @@ func (a *KeyRotationAlertApiService) KeyRotationAlertTestAllKeyRotationAlertExec localVarReturnValue *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Alerts/KeyRotation/TestAll" + localVarPath := localBasePath + "/Alerts/KeyRotation/TestAll" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1155,14 +1121,13 @@ KeyRotationAlertTestKeyRotationAlert Test An Alert @return ApiKeyRotationAlertTestKeyRotationAlertRequest */ func (a *KeyRotationAlertApiService) KeyRotationAlertTestKeyRotationAlert(ctx context.Context) ApiKeyRotationAlertTestKeyRotationAlertRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiKeyRotationAlertTestKeyRotationAlertRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -1177,12 +1142,9 @@ func (a *KeyRotationAlertApiService) KeyRotationAlertTestKeyRotationAlertExecute localVarReturnValue *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Alerts/KeyRotation/Test" + localVarPath := localBasePath + "/Alerts/KeyRotation/Test" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} diff --git a/v2/api/command/api_license.go b/v1/api/keyfactor/api_license.go similarity index 89% rename from v2/api/command/api_license.go rename to v1/api/keyfactor/api_license.go index 5468d89..1bf1967 100644 --- a/v2/api/command/api_license.go +++ b/v1/api/keyfactor/api_license.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "bytes" @@ -62,14 +60,13 @@ LicenseGetCurrentLicense Gets the current license @return ApiLicenseGetCurrentLicenseRequest */ func (a *LicenseApiService) LicenseGetCurrentLicense(ctx context.Context) ApiLicenseGetCurrentLicenseRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiLicenseGetCurrentLicenseRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -84,12 +81,9 @@ func (a *LicenseApiService) LicenseGetCurrentLicenseExecute(r ApiLicenseGetCurre localVarReturnValue *KeyfactorApiModelsLicenseLicenseResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/License" + localVarPath := localBasePath + "/License" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} diff --git a/v2/api/command/api_logon.go b/v1/api/keyfactor/api_logon.go similarity index 92% rename from v2/api/command/api_logon.go rename to v1/api/keyfactor/api_logon.go index 5ba3a92..0ac34bd 100644 --- a/v2/api/command/api_logon.go +++ b/v1/api/keyfactor/api_logon.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "bytes" @@ -70,14 +68,13 @@ LogonCreateLogon Creates a logon with the provided properties @return ApiLogonCreateLogonRequest */ func (a *LogonApiService) LogonCreateLogon(ctx context.Context) ApiLogonCreateLogonRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiLogonCreateLogonRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -92,12 +89,9 @@ func (a *LogonApiService) LogonCreateLogonExecute(r ApiLogonCreateLogonRequest) localVarReturnValue *ModelsSSHLogonsLogonResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSH/Logons" + localVarPath := localBasePath + "/SSH/Logons" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -201,14 +195,13 @@ LogonDelete Deletes a Logon associated with the provided identifier @return ApiLogonDeleteRequest */ func (a *LogonApiService) LogonDelete(ctx context.Context, id int32) ApiLogonDeleteRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiLogonDeleteRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -221,12 +214,9 @@ func (a *LogonApiService) LogonDeleteExecute(r ApiLogonDeleteRequest) (*http.Res formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSH/Logons/{id}" + localVarPath := localBasePath + "/SSH/Logons/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -317,14 +307,13 @@ LogonGetLogon Fetches a Logon associated with the provided identifier @return ApiLogonGetLogonRequest */ func (a *LogonApiService) LogonGetLogon(ctx context.Context, id int32) ApiLogonGetLogonRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiLogonGetLogonRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -340,12 +329,9 @@ func (a *LogonApiService) LogonGetLogonExecute(r ApiLogonGetLogonRequest) (*Mode localVarReturnValue *ModelsSSHLogonsLogonResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSH/Logons/{id}" + localVarPath := localBasePath + "/SSH/Logons/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -450,14 +436,13 @@ LogonLogonAccess Updates the users with access to an existing logon @return ApiLogonLogonAccessRequest */ func (a *LogonApiService) LogonLogonAccess(ctx context.Context) ApiLogonLogonAccessRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiLogonLogonAccessRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -472,12 +457,9 @@ func (a *LogonApiService) LogonLogonAccessExecute(r ApiLogonLogonAccessRequest) localVarReturnValue *ModelsSSHAccessLogonUserAccessResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSH/Logons/Access" + localVarPath := localBasePath + "/SSH/Logons/Access" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -614,14 +596,13 @@ LogonQueryLogons Returns all Logons according to the provided filter parameters @return ApiLogonQueryLogonsRequest */ func (a *LogonApiService) LogonQueryLogons(ctx context.Context) ApiLogonQueryLogonsRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiLogonQueryLogonsRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -636,12 +617,9 @@ func (a *LogonApiService) LogonQueryLogonsExecute(r ApiLogonQueryLogonsRequest) localVarReturnValue []ModelsSSHLogonsLogonQueryResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSH/Logons" + localVarPath := localBasePath + "/SSH/Logons" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} diff --git a/v2/api/command/api_mac_enrollment.go b/v1/api/keyfactor/api_mac_enrollment.go similarity index 91% rename from v2/api/command/api_mac_enrollment.go rename to v1/api/keyfactor/api_mac_enrollment.go index 1e4d576..32ea2a6 100644 --- a/v2/api/command/api_mac_enrollment.go +++ b/v1/api/keyfactor/api_mac_enrollment.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "bytes" @@ -68,14 +66,13 @@ MacEnrollmentEditMacEnrollment Updates mac enrollment settings data @return ApiMacEnrollmentEditMacEnrollmentRequest */ func (a *MacEnrollmentApiService) MacEnrollmentEditMacEnrollment(ctx context.Context) ApiMacEnrollmentEditMacEnrollmentRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiMacEnrollmentEditMacEnrollmentRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -90,12 +87,9 @@ func (a *MacEnrollmentApiService) MacEnrollmentEditMacEnrollmentExecute(r ApiMac localVarReturnValue *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/MacEnrollment" + localVarPath := localBasePath + "/MacEnrollment" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -197,14 +191,13 @@ MacEnrollmentMacEnrollment Gets mac enrollment settings data @return ApiMacEnrollmentMacEnrollmentRequest */ func (a *MacEnrollmentApiService) MacEnrollmentMacEnrollment(ctx context.Context) ApiMacEnrollmentMacEnrollmentRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiMacEnrollmentMacEnrollmentRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -219,12 +212,9 @@ func (a *MacEnrollmentApiService) MacEnrollmentMacEnrollmentExecute(r ApiMacEnro localVarReturnValue *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/MacEnrollment" + localVarPath := localBasePath + "/MacEnrollment" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} diff --git a/v2/api/command/api_metadata_field.go b/v1/api/keyfactor/api_metadata_field.go similarity index 93% rename from v2/api/command/api_metadata_field.go rename to v1/api/keyfactor/api_metadata_field.go index 75613ba..8a0fa19 100644 --- a/v2/api/command/api_metadata_field.go +++ b/v1/api/keyfactor/api_metadata_field.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "bytes" @@ -72,14 +70,13 @@ MetadataFieldCreateMetadataField Creates a new metadata field type with the give @return ApiMetadataFieldCreateMetadataFieldRequest */ func (a *MetadataFieldApiService) MetadataFieldCreateMetadataField(ctx context.Context) ApiMetadataFieldCreateMetadataFieldRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiMetadataFieldCreateMetadataFieldRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -94,12 +91,9 @@ func (a *MetadataFieldApiService) MetadataFieldCreateMetadataFieldExecute(r ApiM localVarReturnValue *KeyfactorApiModelsMetadataFieldMetadataFieldResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/MetadataFields" + localVarPath := localBasePath + "/MetadataFields" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -210,14 +204,13 @@ MetadataFieldDeleteMetadataField Deletes a persisted metadata field type by its @return ApiMetadataFieldDeleteMetadataFieldRequest */ func (a *MetadataFieldApiService) MetadataFieldDeleteMetadataField(ctx context.Context, id int32) ApiMetadataFieldDeleteMetadataFieldRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiMetadataFieldDeleteMetadataFieldRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -230,12 +223,9 @@ func (a *MetadataFieldApiService) MetadataFieldDeleteMetadataFieldExecute(r ApiM formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/MetadataFields/{id}" + localVarPath := localBasePath + "/MetadataFields/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -343,14 +333,13 @@ This will ignore individual delete failures, and continue processing the array. @return ApiMetadataFieldDeleteMetadataFieldsRequest */ func (a *MetadataFieldApiService) MetadataFieldDeleteMetadataFields(ctx context.Context) ApiMetadataFieldDeleteMetadataFieldsRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiMetadataFieldDeleteMetadataFieldsRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -362,12 +351,9 @@ func (a *MetadataFieldApiService) MetadataFieldDeleteMetadataFieldsExecute(r Api formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/MetadataFields" + localVarPath := localBasePath + "/MetadataFields" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -498,14 +484,13 @@ MetadataFieldGetAllMetadataFields Returns all metadata field types according to @return ApiMetadataFieldGetAllMetadataFieldsRequest */ func (a *MetadataFieldApiService) MetadataFieldGetAllMetadataFields(ctx context.Context) ApiMetadataFieldGetAllMetadataFieldsRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiMetadataFieldGetAllMetadataFieldsRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -520,12 +505,9 @@ func (a *MetadataFieldApiService) MetadataFieldGetAllMetadataFieldsExecute(r Api localVarReturnValue []ModelsMetadataFieldTypeModel ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/MetadataFields" + localVarPath := localBasePath + "/MetadataFields" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -639,14 +621,13 @@ MetadataFieldGetMetadataField0 Gets a persisted metadata field type by its uniqu @return ApiMetadataFieldGetMetadataField0Request */ func (a *MetadataFieldApiService) MetadataFieldGetMetadataField0(ctx context.Context, id int32) ApiMetadataFieldGetMetadataField0Request { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiMetadataFieldGetMetadataField0Request{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -662,12 +643,9 @@ func (a *MetadataFieldApiService) MetadataFieldGetMetadataField0Execute(r ApiMet localVarReturnValue *ModelsMetadataFieldTypeModel ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/MetadataFields/{id}" + localVarPath := localBasePath + "/MetadataFields/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -767,14 +745,13 @@ MetadataFieldGetMetadataField1 Gets a persisted metadata field type by its uniqu @return ApiMetadataFieldGetMetadataField1Request */ func (a *MetadataFieldApiService) MetadataFieldGetMetadataField1(ctx context.Context, name string) ApiMetadataFieldGetMetadataField1Request { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiMetadataFieldGetMetadataField1Request{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, name: name, } } @@ -790,12 +767,9 @@ func (a *MetadataFieldApiService) MetadataFieldGetMetadataField1Execute(r ApiMet localVarReturnValue *ModelsMetadataFieldTypeModel ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/MetadataFields/{name}" + localVarPath := localBasePath + "/MetadataFields/{name}" localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterValueToString(r.name, "name")), -1) localVarHeaderParams := make(map[string]string) @@ -895,14 +869,13 @@ MetadataFieldGetMetadataFieldInUse Determines if a metadata field type associate @return ApiMetadataFieldGetMetadataFieldInUseRequest */ func (a *MetadataFieldApiService) MetadataFieldGetMetadataFieldInUse(ctx context.Context, id int32) ApiMetadataFieldGetMetadataFieldInUseRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiMetadataFieldGetMetadataFieldInUseRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -918,12 +891,9 @@ func (a *MetadataFieldApiService) MetadataFieldGetMetadataFieldInUseExecute(r Ap localVarReturnValue bool ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/MetadataFields/{id}/InUse" + localVarPath := localBasePath + "/MetadataFields/{id}/InUse" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -1030,14 +1000,13 @@ MetadataFieldUpdateMetadataField Updates a persisted metadata field with the giv @return ApiMetadataFieldUpdateMetadataFieldRequest */ func (a *MetadataFieldApiService) MetadataFieldUpdateMetadataField(ctx context.Context) ApiMetadataFieldUpdateMetadataFieldRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiMetadataFieldUpdateMetadataFieldRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -1052,12 +1021,9 @@ func (a *MetadataFieldApiService) MetadataFieldUpdateMetadataFieldExecute(r ApiM localVarReturnValue *KeyfactorApiModelsMetadataFieldMetadataFieldResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/MetadataFields" + localVarPath := localBasePath + "/MetadataFields" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} diff --git a/v2/api/command/api_monitoring.go b/v1/api/keyfactor/api_monitoring.go similarity index 93% rename from v2/api/command/api_monitoring.go rename to v1/api/keyfactor/api_monitoring.go index 13ba76e..8d63a33 100644 --- a/v2/api/command/api_monitoring.go +++ b/v1/api/keyfactor/api_monitoring.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "bytes" @@ -70,14 +68,13 @@ MonitoringAddRevocationMonitoring Add a revocation monitoring endpoint @return ApiMonitoringAddRevocationMonitoringRequest */ func (a *MonitoringApiService) MonitoringAddRevocationMonitoring(ctx context.Context) ApiMonitoringAddRevocationMonitoringRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiMonitoringAddRevocationMonitoringRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -92,12 +89,9 @@ func (a *MonitoringApiService) MonitoringAddRevocationMonitoringExecute(r ApiMon localVarReturnValue *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Monitoring/Revocation" + localVarPath := localBasePath + "/Monitoring/Revocation" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -201,14 +195,13 @@ MonitoringDeleteRevocationMonitoring Delete a revocation monitoring endpoint @return ApiMonitoringDeleteRevocationMonitoringRequest */ func (a *MonitoringApiService) MonitoringDeleteRevocationMonitoring(ctx context.Context, id int32) ApiMonitoringDeleteRevocationMonitoringRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiMonitoringDeleteRevocationMonitoringRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -221,12 +214,9 @@ func (a *MonitoringApiService) MonitoringDeleteRevocationMonitoringExecute(r Api formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Monitoring/Revocation/{id}" + localVarPath := localBasePath + "/Monitoring/Revocation/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -322,14 +312,13 @@ MonitoringEditRevocationMonitoring Edit a revocation monitoring endpoint @return ApiMonitoringEditRevocationMonitoringRequest */ func (a *MonitoringApiService) MonitoringEditRevocationMonitoring(ctx context.Context) ApiMonitoringEditRevocationMonitoringRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiMonitoringEditRevocationMonitoringRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -344,12 +333,9 @@ func (a *MonitoringApiService) MonitoringEditRevocationMonitoringExecute(r ApiMo localVarReturnValue *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Monitoring/Revocation" + localVarPath := localBasePath + "/Monitoring/Revocation" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -453,14 +439,13 @@ MonitoringGetRevocationMonitoring Get a revocation monitoring endpoint @return ApiMonitoringGetRevocationMonitoringRequest */ func (a *MonitoringApiService) MonitoringGetRevocationMonitoring(ctx context.Context, id int32) ApiMonitoringGetRevocationMonitoringRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiMonitoringGetRevocationMonitoringRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -476,12 +461,9 @@ func (a *MonitoringApiService) MonitoringGetRevocationMonitoringExecute(r ApiMon localVarReturnValue *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Monitoring/Revocation/{id}" + localVarPath := localBasePath + "/Monitoring/Revocation/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -614,14 +596,13 @@ MonitoringGetRevocationMonitoringEndpoints Gets all revocation monitoring endpoi @return ApiMonitoringGetRevocationMonitoringEndpointsRequest */ func (a *MonitoringApiService) MonitoringGetRevocationMonitoringEndpoints(ctx context.Context) ApiMonitoringGetRevocationMonitoringEndpointsRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiMonitoringGetRevocationMonitoringEndpointsRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -636,12 +617,9 @@ func (a *MonitoringApiService) MonitoringGetRevocationMonitoringEndpointsExecute localVarReturnValue []KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Monitoring/Revocation" + localVarPath := localBasePath + "/Monitoring/Revocation" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -760,14 +738,13 @@ MonitoringResolveOCSP Resolve the Certificate authority given @return ApiMonitoringResolveOCSPRequest */ func (a *MonitoringApiService) MonitoringResolveOCSP(ctx context.Context) ApiMonitoringResolveOCSPRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiMonitoringResolveOCSPRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -782,12 +759,9 @@ func (a *MonitoringApiService) MonitoringResolveOCSPExecute(r ApiMonitoringResol localVarReturnValue *KeyfactorApiModelsMonitoringOCSPParametersResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Monitoring/ResolveOCSP" + localVarPath := localBasePath + "/Monitoring/ResolveOCSP" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -896,14 +870,13 @@ MonitoringTestAllRevocationMonitoringAlert Test All Alerts @return ApiMonitoringTestAllRevocationMonitoringAlertRequest */ func (a *MonitoringApiService) MonitoringTestAllRevocationMonitoringAlert(ctx context.Context) ApiMonitoringTestAllRevocationMonitoringAlertRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiMonitoringTestAllRevocationMonitoringAlertRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -918,12 +891,9 @@ func (a *MonitoringApiService) MonitoringTestAllRevocationMonitoringAlertExecute localVarReturnValue *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Monitoring/Revocation/TestAll" + localVarPath := localBasePath + "/Monitoring/Revocation/TestAll" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1032,14 +1002,13 @@ MonitoringTestRevocationMonitoringAlert Test Alert @return ApiMonitoringTestRevocationMonitoringAlertRequest */ func (a *MonitoringApiService) MonitoringTestRevocationMonitoringAlert(ctx context.Context) ApiMonitoringTestRevocationMonitoringAlertRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiMonitoringTestRevocationMonitoringAlertRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -1054,12 +1023,9 @@ func (a *MonitoringApiService) MonitoringTestRevocationMonitoringAlertExecute(r localVarReturnValue *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Monitoring/Revocation/Test" + localVarPath := localBasePath + "/Monitoring/Revocation/Test" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} diff --git a/v2/api/command/api_orchestrator_job.go b/v1/api/keyfactor/api_orchestrator_job.go similarity index 93% rename from v2/api/command/api_orchestrator_job.go rename to v1/api/keyfactor/api_orchestrator_job.go index 67e7ef6..22d6f66 100644 --- a/v2/api/command/api_orchestrator_job.go +++ b/v1/api/keyfactor/api_orchestrator_job.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "bytes" @@ -69,14 +67,13 @@ OrchestratorJobAcknowledgeJobs Acknowledges orchestrator jobs based on the provi @return ApiOrchestratorJobAcknowledgeJobsRequest */ func (a *OrchestratorJobApiService) OrchestratorJobAcknowledgeJobs(ctx context.Context) ApiOrchestratorJobAcknowledgeJobsRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiOrchestratorJobAcknowledgeJobsRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -88,12 +85,9 @@ func (a *OrchestratorJobApiService) OrchestratorJobAcknowledgeJobsExecute(r ApiO formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/OrchestratorJobs/Acknowledge" + localVarPath := localBasePath + "/OrchestratorJobs/Acknowledge" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -193,14 +187,13 @@ OrchestratorJobGetCustomJobResultData Retrieves the results of a custom job usin @return ApiOrchestratorJobGetCustomJobResultDataRequest */ func (a *OrchestratorJobApiService) OrchestratorJobGetCustomJobResultData(ctx context.Context) ApiOrchestratorJobGetCustomJobResultDataRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiOrchestratorJobGetCustomJobResultDataRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -215,12 +208,9 @@ func (a *OrchestratorJobApiService) OrchestratorJobGetCustomJobResultDataExecute localVarReturnValue *KeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/OrchestratorJobs/JobStatus/Data" + localVarPath := localBasePath + "/OrchestratorJobs/JobStatus/Data" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -356,14 +346,13 @@ OrchestratorJobGetJobHistory Returns all histories of an orchestrator job accord @return ApiOrchestratorJobGetJobHistoryRequest */ func (a *OrchestratorJobApiService) OrchestratorJobGetJobHistory(ctx context.Context) ApiOrchestratorJobGetJobHistoryRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiOrchestratorJobGetJobHistoryRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -378,12 +367,9 @@ func (a *OrchestratorJobApiService) OrchestratorJobGetJobHistoryExecute(r ApiOrc localVarReturnValue []KeyfactorApiModelsCertificateStoresJobHistoryResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/OrchestratorJobs/JobHistory" + localVarPath := localBasePath + "/OrchestratorJobs/JobHistory" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -530,14 +516,13 @@ OrchestratorJobGetScheduledJobs Returns all scheduled orchestrator jobs accordin @return ApiOrchestratorJobGetScheduledJobsRequest */ func (a *OrchestratorJobApiService) OrchestratorJobGetScheduledJobs(ctx context.Context) ApiOrchestratorJobGetScheduledJobsRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiOrchestratorJobGetScheduledJobsRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -552,12 +537,9 @@ func (a *OrchestratorJobApiService) OrchestratorJobGetScheduledJobsExecute(r Api localVarReturnValue []ModelsOrchestratorJobsJob ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/OrchestratorJobs/ScheduledJobs" + localVarPath := localBasePath + "/OrchestratorJobs/ScheduledJobs" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -676,14 +658,13 @@ OrchestratorJobRescheduleJobs Reschedules orchestrator jobs based on the provide @return ApiOrchestratorJobRescheduleJobsRequest */ func (a *OrchestratorJobApiService) OrchestratorJobRescheduleJobs(ctx context.Context) ApiOrchestratorJobRescheduleJobsRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiOrchestratorJobRescheduleJobsRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -695,12 +676,9 @@ func (a *OrchestratorJobApiService) OrchestratorJobRescheduleJobsExecute(r ApiOr formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/OrchestratorJobs/Reschedule" + localVarPath := localBasePath + "/OrchestratorJobs/Reschedule" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -800,14 +778,13 @@ OrchestratorJobScheduleBulkJob Schedules the same job for a custom JobType on th @return ApiOrchestratorJobScheduleBulkJobRequest */ func (a *OrchestratorJobApiService) OrchestratorJobScheduleBulkJob(ctx context.Context) ApiOrchestratorJobScheduleBulkJobRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiOrchestratorJobScheduleBulkJobRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -822,12 +799,9 @@ func (a *OrchestratorJobApiService) OrchestratorJobScheduleBulkJobExecute(r ApiO localVarReturnValue *KeyfactorApiModelsOrchestratorJobsBulkJobResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/OrchestratorJobs/Custom/Bulk" + localVarPath := localBasePath + "/OrchestratorJobs/Custom/Bulk" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -936,14 +910,13 @@ OrchestratorJobScheduleJob Schedules a job for a custom JobType on the agent usi @return ApiOrchestratorJobScheduleJobRequest */ func (a *OrchestratorJobApiService) OrchestratorJobScheduleJob(ctx context.Context) ApiOrchestratorJobScheduleJobRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiOrchestratorJobScheduleJobRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -958,12 +931,9 @@ func (a *OrchestratorJobApiService) OrchestratorJobScheduleJobExecute(r ApiOrche localVarReturnValue *KeyfactorApiModelsOrchestratorJobsJobResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/OrchestratorJobs/Custom" + localVarPath := localBasePath + "/OrchestratorJobs/Custom" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1072,14 +1042,13 @@ OrchestratorJobUnscheduleJobs Unschedules orchestrator jobs based on the provide @return ApiOrchestratorJobUnscheduleJobsRequest */ func (a *OrchestratorJobApiService) OrchestratorJobUnscheduleJobs(ctx context.Context) ApiOrchestratorJobUnscheduleJobsRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiOrchestratorJobUnscheduleJobsRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -1091,12 +1060,9 @@ func (a *OrchestratorJobApiService) OrchestratorJobUnscheduleJobsExecute(r ApiOr formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/OrchestratorJobs/Unschedule" + localVarPath := localBasePath + "/OrchestratorJobs/Unschedule" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} diff --git a/v2/api/command/api_pam_provider.go b/v1/api/keyfactor/api_pam_provider.go similarity index 91% rename from v2/api/command/api_pam_provider.go rename to v1/api/keyfactor/api_pam_provider.go index 066460b..5e37cb1 100644 --- a/v2/api/command/api_pam_provider.go +++ b/v1/api/keyfactor/api_pam_provider.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "bytes" @@ -72,18 +70,17 @@ PAMProviderCreatePamProvider Creates a new PAM provider with the associated prop | 1 | string | | 2 | secret | - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiPAMProviderCreatePamProviderRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiPAMProviderCreatePamProviderRequest */ func (a *PAMProviderApiService) PAMProviderCreatePamProvider(ctx context.Context) ApiPAMProviderCreatePamProviderRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiPAMProviderCreatePamProviderRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -98,12 +95,9 @@ func (a *PAMProviderApiService) PAMProviderCreatePamProviderExecute(r ApiPAMProv localVarReturnValue *CSSCMSDataModelModelsProvider ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/PamProviders" + localVarPath := localBasePath + "/PamProviders" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -214,18 +208,17 @@ PAMProviderCreatePamProviderType Creates a new PAM provider type with the associ | 1 | string | | 2 | secret | - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiPAMProviderCreatePamProviderTypeRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiPAMProviderCreatePamProviderTypeRequest */ func (a *PAMProviderApiService) PAMProviderCreatePamProviderType(ctx context.Context) ApiPAMProviderCreatePamProviderTypeRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiPAMProviderCreatePamProviderTypeRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -240,12 +233,9 @@ func (a *PAMProviderApiService) PAMProviderCreatePamProviderTypeExecute(r ApiPAM localVarReturnValue *KeyfactorApiPAMProviderTypeResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/PamProviders/Types" + localVarPath := localBasePath + "/PamProviders/Types" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -349,14 +339,13 @@ PAMProviderDeletePamProvider Deletes a PAM Provider @return ApiPAMProviderDeletePamProviderRequest */ func (a *PAMProviderApiService) PAMProviderDeletePamProvider(ctx context.Context, id int32) ApiPAMProviderDeletePamProviderRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiPAMProviderDeletePamProviderRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -369,12 +358,9 @@ func (a *PAMProviderApiService) PAMProviderDeletePamProviderExecute(r ApiPAMProv formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/PamProviders/{id}" + localVarPath := localBasePath + "/PamProviders/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -466,19 +452,18 @@ PAMProviderGetPamProvider Returns a single PAM Provider that matches the associa | 1 | string | | 2 | secret | - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id Keyfactor identifier of the PAM provider - @return ApiPAMProviderGetPamProviderRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Keyfactor identifier of the PAM provider + @return ApiPAMProviderGetPamProviderRequest */ func (a *PAMProviderApiService) PAMProviderGetPamProvider(ctx context.Context, id int32) ApiPAMProviderGetPamProviderRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiPAMProviderGetPamProviderRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -494,12 +479,9 @@ func (a *PAMProviderApiService) PAMProviderGetPamProviderExecute(r ApiPAMProvide localVarReturnValue *CSSCMSDataModelModelsProvider ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/PamProviders/{id}" + localVarPath := localBasePath + "/PamProviders/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -599,18 +581,17 @@ PAMProviderGetPamProviderTypes Returns all PAM providers in the Keyfactor instan | 1 | string | | 2 | secret | - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiPAMProviderGetPamProviderTypesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiPAMProviderGetPamProviderTypesRequest */ func (a *PAMProviderApiService) PAMProviderGetPamProviderTypes(ctx context.Context) ApiPAMProviderGetPamProviderTypesRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiPAMProviderGetPamProviderTypesRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -625,12 +606,9 @@ func (a *PAMProviderApiService) PAMProviderGetPamProviderTypesExecute(r ApiPAMPr localVarReturnValue []CSSCMSDataModelModelsProviderType ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/PamProviders/Types" + localVarPath := localBasePath + "/PamProviders/Types" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -764,18 +742,17 @@ PAMProviderGetPamProviders Returns all PAM providers according to the provided f | 1 | string | | 2 | secret | - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiPAMProviderGetPamProvidersRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiPAMProviderGetPamProvidersRequest */ func (a *PAMProviderApiService) PAMProviderGetPamProviders(ctx context.Context) ApiPAMProviderGetPamProvidersRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiPAMProviderGetPamProvidersRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -790,12 +767,9 @@ func (a *PAMProviderApiService) PAMProviderGetPamProvidersExecute(r ApiPAMProvid localVarReturnValue []CSSCMSDataModelModelsProvider ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/PamProviders" + localVarPath := localBasePath + "/PamProviders" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -916,18 +890,17 @@ PAMProviderUpdatePamProvider Updates an existing PAM provider according to the p | 1 | string | | 2 | secret | - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiPAMProviderUpdatePamProviderRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiPAMProviderUpdatePamProviderRequest */ func (a *PAMProviderApiService) PAMProviderUpdatePamProvider(ctx context.Context) ApiPAMProviderUpdatePamProviderRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiPAMProviderUpdatePamProviderRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -942,12 +915,9 @@ func (a *PAMProviderApiService) PAMProviderUpdatePamProviderExecute(r ApiPAMProv localVarReturnValue *CSSCMSDataModelModelsProvider ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/PamProviders" + localVarPath := localBasePath + "/PamProviders" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} diff --git a/v2/api/command/api_pending_alert.go b/v1/api/keyfactor/api_pending_alert.go similarity index 93% rename from v2/api/command/api_pending_alert.go rename to v1/api/keyfactor/api_pending_alert.go index 8abe22d..f5e5e39 100644 --- a/v2/api/command/api_pending_alert.go +++ b/v1/api/keyfactor/api_pending_alert.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "bytes" @@ -70,14 +68,13 @@ PendingAlertAddPendingAlert Add a pending alert @return ApiPendingAlertAddPendingAlertRequest */ func (a *PendingAlertApiService) PendingAlertAddPendingAlert(ctx context.Context) ApiPendingAlertAddPendingAlertRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiPendingAlertAddPendingAlertRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -92,12 +89,9 @@ func (a *PendingAlertApiService) PendingAlertAddPendingAlertExecute(r ApiPending localVarReturnValue *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Alerts/Pending" + localVarPath := localBasePath + "/Alerts/Pending" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -201,14 +195,13 @@ PendingAlertDeletePendingAlert Delete a pending alert @return ApiPendingAlertDeletePendingAlertRequest */ func (a *PendingAlertApiService) PendingAlertDeletePendingAlert(ctx context.Context, id int32) ApiPendingAlertDeletePendingAlertRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiPendingAlertDeletePendingAlertRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -221,12 +214,9 @@ func (a *PendingAlertApiService) PendingAlertDeletePendingAlertExecute(r ApiPend formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Alerts/Pending/{id}" + localVarPath := localBasePath + "/Alerts/Pending/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -322,14 +312,13 @@ PendingAlertEditPendingAlert Edit a pending alert @return ApiPendingAlertEditPendingAlertRequest */ func (a *PendingAlertApiService) PendingAlertEditPendingAlert(ctx context.Context) ApiPendingAlertEditPendingAlertRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiPendingAlertEditPendingAlertRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -344,12 +333,9 @@ func (a *PendingAlertApiService) PendingAlertEditPendingAlertExecute(r ApiPendin localVarReturnValue *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Alerts/Pending" + localVarPath := localBasePath + "/Alerts/Pending" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -457,14 +443,13 @@ PendingAlertEditSchedule Edit schedule @return ApiPendingAlertEditScheduleRequest */ func (a *PendingAlertApiService) PendingAlertEditSchedule(ctx context.Context) ApiPendingAlertEditScheduleRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiPendingAlertEditScheduleRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -479,12 +464,9 @@ func (a *PendingAlertApiService) PendingAlertEditScheduleExecute(r ApiPendingAle localVarReturnValue *KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Alerts/Pending/Schedule" + localVarPath := localBasePath + "/Alerts/Pending/Schedule" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -588,14 +570,13 @@ PendingAlertGetPendingAlert Get a pending alert @return ApiPendingAlertGetPendingAlertRequest */ func (a *PendingAlertApiService) PendingAlertGetPendingAlert(ctx context.Context, id int32) ApiPendingAlertGetPendingAlertRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiPendingAlertGetPendingAlertRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -611,12 +592,9 @@ func (a *PendingAlertApiService) PendingAlertGetPendingAlertExecute(r ApiPending localVarReturnValue *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Alerts/Pending/{id}" + localVarPath := localBasePath + "/Alerts/Pending/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -749,14 +727,13 @@ PendingAlertGetPendingAlerts Gets all pending alerts according to the provided f @return ApiPendingAlertGetPendingAlertsRequest */ func (a *PendingAlertApiService) PendingAlertGetPendingAlerts(ctx context.Context) ApiPendingAlertGetPendingAlertsRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiPendingAlertGetPendingAlertsRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -771,12 +748,9 @@ func (a *PendingAlertApiService) PendingAlertGetPendingAlertsExecute(r ApiPendin localVarReturnValue []KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Alerts/Pending" + localVarPath := localBasePath + "/Alerts/Pending" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -888,14 +862,13 @@ PendingAlertGetSchedule Get the schedule for pending alerts @return ApiPendingAlertGetScheduleRequest */ func (a *PendingAlertApiService) PendingAlertGetSchedule(ctx context.Context) ApiPendingAlertGetScheduleRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiPendingAlertGetScheduleRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -910,12 +883,9 @@ func (a *PendingAlertApiService) PendingAlertGetScheduleExecute(r ApiPendingAler localVarReturnValue *KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Alerts/Pending/Schedule" + localVarPath := localBasePath + "/Alerts/Pending/Schedule" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1019,14 +989,13 @@ PendingAlertTestAllPendingAlert Test all pending alerts. Will send alert emails @return ApiPendingAlertTestAllPendingAlertRequest */ func (a *PendingAlertApiService) PendingAlertTestAllPendingAlert(ctx context.Context) ApiPendingAlertTestAllPendingAlertRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiPendingAlertTestAllPendingAlertRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -1041,12 +1010,9 @@ func (a *PendingAlertApiService) PendingAlertTestAllPendingAlertExecute(r ApiPen localVarReturnValue *KeyfactorApiModelsAlertsPendingPendingAlertTestResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Alerts/Pending/TestAll" + localVarPath := localBasePath + "/Alerts/Pending/TestAll" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1155,14 +1121,13 @@ PendingAlertTestPendingAlert Test pending alert. Will send alert emails if SendA @return ApiPendingAlertTestPendingAlertRequest */ func (a *PendingAlertApiService) PendingAlertTestPendingAlert(ctx context.Context) ApiPendingAlertTestPendingAlertRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiPendingAlertTestPendingAlertRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -1177,12 +1142,9 @@ func (a *PendingAlertApiService) PendingAlertTestPendingAlertExecute(r ApiPendin localVarReturnValue *KeyfactorApiModelsAlertsPendingPendingAlertTestResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Alerts/Pending/Test" + localVarPath := localBasePath + "/Alerts/Pending/Test" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} diff --git a/v2/api/command/api_reports.go b/v1/api/keyfactor/api_reports.go similarity index 93% rename from v2/api/command/api_reports.go rename to v1/api/keyfactor/api_reports.go index 6370c75..cdcc928 100644 --- a/v2/api/command/api_reports.go +++ b/v1/api/keyfactor/api_reports.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "bytes" @@ -70,14 +68,13 @@ ReportsCreateCustomReport Creates a custom report @return ApiReportsCreateCustomReportRequest */ func (a *ReportsApiService) ReportsCreateCustomReport(ctx context.Context) ApiReportsCreateCustomReportRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiReportsCreateCustomReportRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -92,12 +89,9 @@ func (a *ReportsApiService) ReportsCreateCustomReportExecute(r ApiReportsCreateC localVarReturnValue *ModelsCustomReport ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Reports/Custom" + localVarPath := localBasePath + "/Reports/Custom" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -208,14 +202,13 @@ ReportsCreateReportSchedule Create a built-in report's schedule that matches the @return ApiReportsCreateReportScheduleRequest */ func (a *ReportsApiService) ReportsCreateReportSchedule(ctx context.Context, id int32) ApiReportsCreateReportScheduleRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiReportsCreateReportScheduleRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -231,12 +224,9 @@ func (a *ReportsApiService) ReportsCreateReportScheduleExecute(r ApiReportsCreat localVarReturnValue *ModelsReportSchedule ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Reports/{id}/Schedules" + localVarPath := localBasePath + "/Reports/{id}/Schedules" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -341,14 +331,13 @@ ReportsDeleteReport Delete custom report that matches the id @return ApiReportsDeleteReportRequest */ func (a *ReportsApiService) ReportsDeleteReport(ctx context.Context, id int32) ApiReportsDeleteReportRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiReportsDeleteReportRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -361,12 +350,9 @@ func (a *ReportsApiService) ReportsDeleteReportExecute(r ApiReportsDeleteReportR formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Reports/Custom/{id}" + localVarPath := localBasePath + "/Reports/Custom/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -457,14 +443,13 @@ ReportsDeleteReportSchedule Delete a built-in report's schedule that matches the @return ApiReportsDeleteReportScheduleRequest */ func (a *ReportsApiService) ReportsDeleteReportSchedule(ctx context.Context, id int32) ApiReportsDeleteReportScheduleRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiReportsDeleteReportScheduleRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -477,12 +462,9 @@ func (a *ReportsApiService) ReportsDeleteReportScheduleExecute(r ApiReportsDelet formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Reports/Schedules/{id}" + localVarPath := localBasePath + "/Reports/Schedules/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -573,14 +555,13 @@ ReportsGetCustomReport Returns a single custom report that matches the id @return ApiReportsGetCustomReportRequest */ func (a *ReportsApiService) ReportsGetCustomReport(ctx context.Context, id int32) ApiReportsGetCustomReportRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiReportsGetCustomReportRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -596,12 +577,9 @@ func (a *ReportsApiService) ReportsGetCustomReportExecute(r ApiReportsGetCustomR localVarReturnValue *ModelsCustomReport ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Reports/Custom/{id}" + localVarPath := localBasePath + "/Reports/Custom/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -701,14 +679,13 @@ ReportsGetReport Returns a single built-in report that matches the id @return ApiReportsGetReportRequest */ func (a *ReportsApiService) ReportsGetReport(ctx context.Context, id int32) ApiReportsGetReportRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiReportsGetReportRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -724,12 +701,9 @@ func (a *ReportsApiService) ReportsGetReportExecute(r ApiReportsGetReportRequest localVarReturnValue *ModelsReport ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Reports/{id}" + localVarPath := localBasePath + "/Reports/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -829,14 +803,13 @@ ReportsGetReportParameters Get a built-in report's parameters that matches the i @return ApiReportsGetReportParametersRequest */ func (a *ReportsApiService) ReportsGetReportParameters(ctx context.Context, id int32) ApiReportsGetReportParametersRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiReportsGetReportParametersRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -852,12 +825,9 @@ func (a *ReportsApiService) ReportsGetReportParametersExecute(r ApiReportsGetRep localVarReturnValue []ModelsReportParameters ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Reports/{id}/Parameters" + localVarPath := localBasePath + "/Reports/{id}/Parameters" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -957,14 +927,13 @@ ReportsGetReportSchedule Get a built-in report's schedule that matches the id of @return ApiReportsGetReportScheduleRequest */ func (a *ReportsApiService) ReportsGetReportSchedule(ctx context.Context, id int32) ApiReportsGetReportScheduleRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiReportsGetReportScheduleRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -980,12 +949,9 @@ func (a *ReportsApiService) ReportsGetReportScheduleExecute(r ApiReportsGetRepor localVarReturnValue *ModelsReportSchedule ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Reports/Schedules/{id}" + localVarPath := localBasePath + "/Reports/Schedules/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -1120,14 +1086,13 @@ ReportsGetReportSchedules Get a built-in report's schedules that matches the id @return ApiReportsGetReportSchedulesRequest */ func (a *ReportsApiService) ReportsGetReportSchedules(ctx context.Context, id int32) ApiReportsGetReportSchedulesRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiReportsGetReportSchedulesRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -1143,12 +1108,9 @@ func (a *ReportsApiService) ReportsGetReportSchedulesExecute(r ApiReportsGetRepo localVarReturnValue []ModelsReportSchedule ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Reports/{id}/Schedules" + localVarPath := localBasePath + "/Reports/{id}/Schedules" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -1296,14 +1258,13 @@ ReportsQueryCustomReports Returns all custom reports according to the provided f @return ApiReportsQueryCustomReportsRequest */ func (a *ReportsApiService) ReportsQueryCustomReports(ctx context.Context) ApiReportsQueryCustomReportsRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiReportsQueryCustomReportsRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -1318,12 +1279,9 @@ func (a *ReportsApiService) ReportsQueryCustomReportsExecute(r ApiReportsQueryCu localVarReturnValue []ModelsCustomReport ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Reports/Custom" + localVarPath := localBasePath + "/Reports/Custom" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1470,14 +1428,13 @@ ReportsQueryReports Returns all built-in reports according to the provided filte @return ApiReportsQueryReportsRequest */ func (a *ReportsApiService) ReportsQueryReports(ctx context.Context) ApiReportsQueryReportsRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiReportsQueryReportsRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -1492,12 +1449,9 @@ func (a *ReportsApiService) ReportsQueryReportsExecute(r ApiReportsQueryReportsR localVarReturnValue []ModelsReport ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Reports" + localVarPath := localBasePath + "/Reports" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1616,14 +1570,13 @@ ReportsUpdateCustomReport Updates a custom report that matches the id @return ApiReportsUpdateCustomReportRequest */ func (a *ReportsApiService) ReportsUpdateCustomReport(ctx context.Context) ApiReportsUpdateCustomReportRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiReportsUpdateCustomReportRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -1638,12 +1591,9 @@ func (a *ReportsApiService) ReportsUpdateCustomReportExecute(r ApiReportsUpdateC localVarReturnValue *ModelsCustomReport ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Reports/Custom" + localVarPath := localBasePath + "/Reports/Custom" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1752,14 +1702,13 @@ ReportsUpdateReport Updates a single built-in report that matches the id. Only s @return ApiReportsUpdateReportRequest */ func (a *ReportsApiService) ReportsUpdateReport(ctx context.Context) ApiReportsUpdateReportRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiReportsUpdateReportRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -1774,12 +1723,9 @@ func (a *ReportsApiService) ReportsUpdateReportExecute(r ApiReportsUpdateReportR localVarReturnValue *ModelsReport ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Reports" + localVarPath := localBasePath + "/Reports" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1890,14 +1836,13 @@ ReportsUpdateReportParameters Update a built-in report's parameters that matches @return ApiReportsUpdateReportParametersRequest */ func (a *ReportsApiService) ReportsUpdateReportParameters(ctx context.Context, id int32) ApiReportsUpdateReportParametersRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiReportsUpdateReportParametersRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -1913,12 +1858,9 @@ func (a *ReportsApiService) ReportsUpdateReportParametersExecute(r ApiReportsUpd localVarReturnValue []ModelsReportParameters ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Reports/{id}/Parameters" + localVarPath := localBasePath + "/Reports/{id}/Parameters" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -2030,14 +1972,13 @@ ReportsUpdateReportSchedule Update a built-in report's schedule that matches the @return ApiReportsUpdateReportScheduleRequest */ func (a *ReportsApiService) ReportsUpdateReportSchedule(ctx context.Context, id int32) ApiReportsUpdateReportScheduleRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiReportsUpdateReportScheduleRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -2053,12 +1994,9 @@ func (a *ReportsApiService) ReportsUpdateReportScheduleExecute(r ApiReportsUpdat localVarReturnValue *ModelsReportSchedule ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Reports/{id}/Schedules" + localVarPath := localBasePath + "/Reports/{id}/Schedules" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) diff --git a/v2/api/command/api_security.go b/v1/api/keyfactor/api_security.go similarity index 91% rename from v2/api/command/api_security.go rename to v1/api/keyfactor/api_security.go index 54a2134..119311d 100644 --- a/v2/api/command/api_security.go +++ b/v1/api/keyfactor/api_security.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "bytes" @@ -65,14 +63,13 @@ SecurityDeleteSecurityIdentity Deletes the security identity whose ID is provide @return ApiSecurityDeleteSecurityIdentityRequest */ func (a *SecurityApiService) SecurityDeleteSecurityIdentity(ctx context.Context, id int32) ApiSecurityDeleteSecurityIdentityRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiSecurityDeleteSecurityIdentityRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -85,12 +82,9 @@ func (a *SecurityApiService) SecurityDeleteSecurityIdentityExecute(r ApiSecurity formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Security/Identities/{id}" + localVarPath := localBasePath + "/Security/Identities/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -181,14 +175,13 @@ SecurityIdentityPermissions Gets an object representing the permissions of the i @return ApiSecurityIdentityPermissionsRequest */ func (a *SecurityApiService) SecurityIdentityPermissions(ctx context.Context, id int32) ApiSecurityIdentityPermissionsRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiSecurityIdentityPermissionsRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -204,12 +197,9 @@ func (a *SecurityApiService) SecurityIdentityPermissionsExecute(r ApiSecurityIde localVarReturnValue *ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Security/Identities/{id}" + localVarPath := localBasePath + "/Security/Identities/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -314,14 +304,13 @@ SecurityLookupIdentity Validates that the identity with the name given exists. @return ApiSecurityLookupIdentityRequest */ func (a *SecurityApiService) SecurityLookupIdentity(ctx context.Context) ApiSecurityLookupIdentityRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiSecurityLookupIdentityRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -336,12 +325,9 @@ func (a *SecurityApiService) SecurityLookupIdentityExecute(r ApiSecurityLookupId localVarReturnValue *ModelsSecurityIdentitiesSecurityIdentityLookupResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Security/Identities/Lookup" + localVarPath := localBasePath + "/Security/Identities/Lookup" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} diff --git a/v2/api/command/api_security_role_permissions.go b/v1/api/keyfactor/api_security_role_permissions.go similarity index 92% rename from v2/api/command/api_security_role_permissions.go rename to v1/api/keyfactor/api_security_role_permissions.go index 0a4711b..9a82793 100644 --- a/v2/api/command/api_security_role_permissions.go +++ b/v1/api/keyfactor/api_security_role_permissions.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "bytes" @@ -76,19 +74,18 @@ SecurityRolePermissionsAddCollectionPermissions Adds collection permissions to t | Revoke | Revoke | | Delete | Delete | - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id Security role identifier - @return ApiSecurityRolePermissionsAddCollectionPermissionsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Security role identifier + @return ApiSecurityRolePermissionsAddCollectionPermissionsRequest */ func (a *SecurityRolePermissionsApiService) SecurityRolePermissionsAddCollectionPermissions(ctx context.Context, id int32) ApiSecurityRolePermissionsAddCollectionPermissionsRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiSecurityRolePermissionsAddCollectionPermissionsRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -104,12 +101,9 @@ func (a *SecurityRolePermissionsApiService) SecurityRolePermissionsAddCollection localVarReturnValue []KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Security/Roles/{id}/Permissions/Collections" + localVarPath := localBasePath + "/Security/Roles/{id}/Permissions/Collections" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -223,19 +217,18 @@ SecurityRolePermissionsAddContainerPermissions Adds container permissions to the | Schedule | Read | | Modify | Read, Schedule | - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id Security role identifier - @return ApiSecurityRolePermissionsAddContainerPermissionsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Security role identifier + @return ApiSecurityRolePermissionsAddContainerPermissionsRequest */ func (a *SecurityRolePermissionsApiService) SecurityRolePermissionsAddContainerPermissions(ctx context.Context, id int32) ApiSecurityRolePermissionsAddContainerPermissionsRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiSecurityRolePermissionsAddContainerPermissionsRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -251,12 +244,9 @@ func (a *SecurityRolePermissionsApiService) SecurityRolePermissionsAddContainerP localVarReturnValue []KeyfactorApiModelsSecurityRolesContainerPermissionResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Security/Roles/{id}/Permissions/Containers" + localVarPath := localBasePath + "/Security/Roles/{id}/Permissions/Containers" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -428,19 +418,18 @@ SecurityRolePermissionsAddGlobalPermissions Adds global permissions to the secur | WorkflowManagement | Participate | | WorkflowManagement | Manage | - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id Security role identifier - @return ApiSecurityRolePermissionsAddGlobalPermissionsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Security role identifier + @return ApiSecurityRolePermissionsAddGlobalPermissionsRequest */ func (a *SecurityRolePermissionsApiService) SecurityRolePermissionsAddGlobalPermissions(ctx context.Context, id int32) ApiSecurityRolePermissionsAddGlobalPermissionsRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiSecurityRolePermissionsAddGlobalPermissionsRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -456,12 +445,9 @@ func (a *SecurityRolePermissionsApiService) SecurityRolePermissionsAddGlobalPerm localVarReturnValue []KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Security/Roles/{id}/Permissions/Global" + localVarPath := localBasePath + "/Security/Roles/{id}/Permissions/Global" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -566,14 +552,13 @@ SecurityRolePermissionsGetCollectionPermissionsForRole Returns all collection pe @return ApiSecurityRolePermissionsGetCollectionPermissionsForRoleRequest */ func (a *SecurityRolePermissionsApiService) SecurityRolePermissionsGetCollectionPermissionsForRole(ctx context.Context, id int32) ApiSecurityRolePermissionsGetCollectionPermissionsForRoleRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiSecurityRolePermissionsGetCollectionPermissionsForRoleRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -589,12 +574,9 @@ func (a *SecurityRolePermissionsApiService) SecurityRolePermissionsGetCollection localVarReturnValue []KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Security/Roles/{id}/Permissions/Collections" + localVarPath := localBasePath + "/Security/Roles/{id}/Permissions/Collections" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -694,14 +676,13 @@ SecurityRolePermissionsGetContainerPermissionsForRole Returns all container perm @return ApiSecurityRolePermissionsGetContainerPermissionsForRoleRequest */ func (a *SecurityRolePermissionsApiService) SecurityRolePermissionsGetContainerPermissionsForRole(ctx context.Context, id int32) ApiSecurityRolePermissionsGetContainerPermissionsForRoleRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiSecurityRolePermissionsGetContainerPermissionsForRoleRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -717,12 +698,9 @@ func (a *SecurityRolePermissionsApiService) SecurityRolePermissionsGetContainerP localVarReturnValue []KeyfactorApiModelsSecurityRolesContainerPermissionResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Security/Roles/{id}/Permissions/Containers" + localVarPath := localBasePath + "/Security/Roles/{id}/Permissions/Containers" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -822,14 +800,13 @@ SecurityRolePermissionsGetGlobalPermissionsForRole Returns all global permission @return ApiSecurityRolePermissionsGetGlobalPermissionsForRoleRequest */ func (a *SecurityRolePermissionsApiService) SecurityRolePermissionsGetGlobalPermissionsForRole(ctx context.Context, id int32) ApiSecurityRolePermissionsGetGlobalPermissionsForRoleRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiSecurityRolePermissionsGetGlobalPermissionsForRoleRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -845,12 +822,9 @@ func (a *SecurityRolePermissionsApiService) SecurityRolePermissionsGetGlobalPerm localVarReturnValue []KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Security/Roles/{id}/Permissions/Global" + localVarPath := localBasePath + "/Security/Roles/{id}/Permissions/Global" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -950,14 +924,13 @@ SecurityRolePermissionsGetPermissionsForRole Returns all permissions associated @return ApiSecurityRolePermissionsGetPermissionsForRoleRequest */ func (a *SecurityRolePermissionsApiService) SecurityRolePermissionsGetPermissionsForRole(ctx context.Context, id int32) ApiSecurityRolePermissionsGetPermissionsForRoleRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiSecurityRolePermissionsGetPermissionsForRoleRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -973,12 +946,9 @@ func (a *SecurityRolePermissionsApiService) SecurityRolePermissionsGetPermission localVarReturnValue []KeyfactorApiModelsSecurityRolesAreaPermissionResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Security/Roles/{id}/Permissions" + localVarPath := localBasePath + "/Security/Roles/{id}/Permissions" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -1089,19 +1059,18 @@ SecurityRolePermissionsSetCollectionPermissions Sets collection permissions to t | Revoke | Revoke | | Delete | Delete | - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id Security role identifier - @return ApiSecurityRolePermissionsSetCollectionPermissionsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Security role identifier + @return ApiSecurityRolePermissionsSetCollectionPermissionsRequest */ func (a *SecurityRolePermissionsApiService) SecurityRolePermissionsSetCollectionPermissions(ctx context.Context, id int32) ApiSecurityRolePermissionsSetCollectionPermissionsRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiSecurityRolePermissionsSetCollectionPermissionsRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -1117,12 +1086,9 @@ func (a *SecurityRolePermissionsApiService) SecurityRolePermissionsSetCollection localVarReturnValue []KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Security/Roles/{id}/Permissions/Collections" + localVarPath := localBasePath + "/Security/Roles/{id}/Permissions/Collections" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -1236,19 +1202,18 @@ SecurityRolePermissionsSetContainerPermissions Sets container permissions to the | Schedule | Read | | Modify | Read, Schedule | - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id Security role identifier - @return ApiSecurityRolePermissionsSetContainerPermissionsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Security role identifier + @return ApiSecurityRolePermissionsSetContainerPermissionsRequest */ func (a *SecurityRolePermissionsApiService) SecurityRolePermissionsSetContainerPermissions(ctx context.Context, id int32) ApiSecurityRolePermissionsSetContainerPermissionsRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiSecurityRolePermissionsSetContainerPermissionsRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -1264,12 +1229,9 @@ func (a *SecurityRolePermissionsApiService) SecurityRolePermissionsSetContainerP localVarReturnValue []KeyfactorApiModelsSecurityRolesContainerPermissionResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Security/Roles/{id}/Permissions/Containers" + localVarPath := localBasePath + "/Security/Roles/{id}/Permissions/Containers" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -1441,19 +1403,18 @@ SecurityRolePermissionsSetGlobalPermissions Adds global permissions to the secur | WorkflowManagement | Participate | | WorkflowManagement | Manage | - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id Security role identifier - @return ApiSecurityRolePermissionsSetGlobalPermissionsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Security role identifier + @return ApiSecurityRolePermissionsSetGlobalPermissionsRequest */ func (a *SecurityRolePermissionsApiService) SecurityRolePermissionsSetGlobalPermissions(ctx context.Context, id int32) ApiSecurityRolePermissionsSetGlobalPermissionsRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiSecurityRolePermissionsSetGlobalPermissionsRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -1469,12 +1430,9 @@ func (a *SecurityRolePermissionsApiService) SecurityRolePermissionsSetGlobalPerm localVarReturnValue []KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Security/Roles/{id}/Permissions/Global" + localVarPath := localBasePath + "/Security/Roles/{id}/Permissions/Global" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) diff --git a/v2/api/command/api_security_roles.go b/v1/api/keyfactor/api_security_roles.go similarity index 92% rename from v2/api/command/api_security_roles.go rename to v1/api/keyfactor/api_security_roles.go index 0a6a362..89c740c 100644 --- a/v2/api/command/api_security_roles.go +++ b/v1/api/keyfactor/api_security_roles.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "bytes" @@ -65,14 +63,13 @@ SecurityRolesDeleteSecurityRole Deletes the security role whose ID is provided. @return ApiSecurityRolesDeleteSecurityRoleRequest */ func (a *SecurityRolesApiService) SecurityRolesDeleteSecurityRole(ctx context.Context, id int32) ApiSecurityRolesDeleteSecurityRoleRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiSecurityRolesDeleteSecurityRoleRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -85,12 +82,9 @@ func (a *SecurityRolesApiService) SecurityRolesDeleteSecurityRoleExecute(r ApiSe formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Security/Roles/{id}" + localVarPath := localBasePath + "/Security/Roles/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -181,14 +175,13 @@ SecurityRolesGetIdentitiesWithRole Returns all identities which have the securit @return ApiSecurityRolesGetIdentitiesWithRoleRequest */ func (a *SecurityRolesApiService) SecurityRolesGetIdentitiesWithRole(ctx context.Context, id int32) ApiSecurityRolesGetIdentitiesWithRoleRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiSecurityRolesGetIdentitiesWithRoleRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -204,12 +197,9 @@ func (a *SecurityRolesApiService) SecurityRolesGetIdentitiesWithRoleExecute(r Ap localVarReturnValue []KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Security/Roles/{id}/Identities" + localVarPath := localBasePath + "/Security/Roles/{id}/Identities" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -316,14 +306,13 @@ SecurityRolesUpdateIdentitiesWithRole Updates the identities which have the secu @return ApiSecurityRolesUpdateIdentitiesWithRoleRequest */ func (a *SecurityRolesApiService) SecurityRolesUpdateIdentitiesWithRole(ctx context.Context, id int32) ApiSecurityRolesUpdateIdentitiesWithRoleRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiSecurityRolesUpdateIdentitiesWithRoleRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -339,12 +328,9 @@ func (a *SecurityRolesApiService) SecurityRolesUpdateIdentitiesWithRoleExecute(r localVarReturnValue []KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Security/Roles/{id}/Identities" + localVarPath := localBasePath + "/Security/Roles/{id}/Identities" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) diff --git a/v2/api/command/api_server.go b/v1/api/keyfactor/api_server.go similarity index 92% rename from v2/api/command/api_server.go rename to v1/api/keyfactor/api_server.go index 0fc8d24..b4dfb4e 100644 --- a/v2/api/command/api_server.go +++ b/v1/api/keyfactor/api_server.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "bytes" @@ -70,14 +68,13 @@ ServerAddAccess Updates logons and users with access to those logons for an exis @return ApiServerAddAccessRequest */ func (a *ServerApiService) ServerAddAccess(ctx context.Context) ApiServerAddAccessRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiServerAddAccessRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -92,12 +89,9 @@ func (a *ServerApiService) ServerAddAccessExecute(r ApiServerAddAccessRequest) ( localVarReturnValue *ModelsSSHAccessServerAccessResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSH/Servers/Access" + localVarPath := localBasePath + "/SSH/Servers/Access" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -206,14 +200,13 @@ ServerCreateServer Creates a server with the provided properties @return ApiServerCreateServerRequest */ func (a *ServerApiService) ServerCreateServer(ctx context.Context) ApiServerCreateServerRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiServerCreateServerRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -228,12 +221,9 @@ func (a *ServerApiService) ServerCreateServerExecute(r ApiServerCreateServerRequ localVarReturnValue *ModelsSSHServersServerResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSH/Servers" + localVarPath := localBasePath + "/SSH/Servers" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -337,14 +327,13 @@ ServerDelete Deletes a Server associated with the provided identifier @return ApiServerDeleteRequest */ func (a *ServerApiService) ServerDelete(ctx context.Context, id int32) ApiServerDeleteRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiServerDeleteRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -357,12 +346,9 @@ func (a *ServerApiService) ServerDeleteExecute(r ApiServerDeleteRequest) (*http. formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSH/Servers/{id}" + localVarPath := localBasePath + "/SSH/Servers/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -453,14 +439,13 @@ ServerGet Returns a Server associated with the provided identifier @return ApiServerGetRequest */ func (a *ServerApiService) ServerGet(ctx context.Context, id int32) ApiServerGetRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiServerGetRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -476,12 +461,9 @@ func (a *ServerApiService) ServerGetExecute(r ApiServerGetRequest) (*ModelsSSHSe localVarReturnValue *ModelsSSHServersServerResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSH/Servers/{id}" + localVarPath := localBasePath + "/SSH/Servers/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -581,14 +563,13 @@ ServerGetAccess Retrieves logons and users with access to those logons for an ex @return ApiServerGetAccessRequest */ func (a *ServerApiService) ServerGetAccess(ctx context.Context, id int32) ApiServerGetAccessRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiServerGetAccessRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -604,12 +585,9 @@ func (a *ServerApiService) ServerGetAccessExecute(r ApiServerGetAccessRequest) ( localVarReturnValue *ModelsSSHAccessServerAccessResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSH/Servers/Access/{id}" + localVarPath := localBasePath + "/SSH/Servers/Access/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -742,14 +720,13 @@ ServerQueryServers Returns all servers according to the provided filter paramete @return ApiServerQueryServersRequest */ func (a *ServerApiService) ServerQueryServers(ctx context.Context) ApiServerQueryServersRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiServerQueryServersRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -764,12 +741,9 @@ func (a *ServerApiService) ServerQueryServersExecute(r ApiServerQueryServersRequ localVarReturnValue []ModelsSSHServersServerResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSH/Servers" + localVarPath := localBasePath + "/SSH/Servers" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -888,14 +862,13 @@ ServerRemoveAccess Updates logons and users with access to those logons for an e @return ApiServerRemoveAccessRequest */ func (a *ServerApiService) ServerRemoveAccess(ctx context.Context) ApiServerRemoveAccessRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiServerRemoveAccessRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -910,12 +883,9 @@ func (a *ServerApiService) ServerRemoveAccessExecute(r ApiServerRemoveAccessRequ localVarReturnValue *ModelsSSHAccessServerAccessResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSH/Servers/Access" + localVarPath := localBasePath + "/SSH/Servers/Access" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1024,14 +994,13 @@ ServerUpdateServer Updates an existing server with the provided properties @return ApiServerUpdateServerRequest */ func (a *ServerApiService) ServerUpdateServer(ctx context.Context) ApiServerUpdateServerRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiServerUpdateServerRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -1046,12 +1015,9 @@ func (a *ServerApiService) ServerUpdateServerExecute(r ApiServerUpdateServerRequ localVarReturnValue *ModelsSSHServersServerResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSH/Servers" + localVarPath := localBasePath + "/SSH/Servers" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} diff --git a/v2/api/command/api_server_group.go b/v1/api/keyfactor/api_server_group.go similarity index 93% rename from v2/api/command/api_server_group.go rename to v1/api/keyfactor/api_server_group.go index deeec91..4c1c5df 100644 --- a/v2/api/command/api_server_group.go +++ b/v1/api/keyfactor/api_server_group.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "bytes" @@ -69,14 +67,13 @@ ServerGroupAddAccess Add access rules to the server group @return ApiServerGroupAddAccessRequest */ func (a *ServerGroupApiService) ServerGroupAddAccess(ctx context.Context) ApiServerGroupAddAccessRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiServerGroupAddAccessRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -91,12 +88,9 @@ func (a *ServerGroupApiService) ServerGroupAddAccessExecute(r ApiServerGroupAddA localVarReturnValue *ModelsSSHAccessServerGroupAccessResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSH/ServerGroups/Access" + localVarPath := localBasePath + "/SSH/ServerGroups/Access" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -205,14 +199,13 @@ ServerGroupCreateServerGroup Creates a server group with the provided properties @return ApiServerGroupCreateServerGroupRequest */ func (a *ServerGroupApiService) ServerGroupCreateServerGroup(ctx context.Context) ApiServerGroupCreateServerGroupRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiServerGroupCreateServerGroupRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -227,12 +220,9 @@ func (a *ServerGroupApiService) ServerGroupCreateServerGroupExecute(r ApiServerG localVarReturnValue *ModelsSSHServerGroupsServerGroupResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSH/ServerGroups" + localVarPath := localBasePath + "/SSH/ServerGroups" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -336,14 +326,13 @@ ServerGroupDelete Deletes a ServerGroup associated with the provided identifier @return ApiServerGroupDeleteRequest */ func (a *ServerGroupApiService) ServerGroupDelete(ctx context.Context, id string) ApiServerGroupDeleteRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiServerGroupDeleteRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -356,12 +345,9 @@ func (a *ServerGroupApiService) ServerGroupDeleteExecute(r ApiServerGroupDeleteR formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSH/ServerGroups/{id}" + localVarPath := localBasePath + "/SSH/ServerGroups/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -452,14 +438,13 @@ ServerGroupGetAccess Retrieves logons and users with access to those logons for @return ApiServerGroupGetAccessRequest */ func (a *ServerGroupApiService) ServerGroupGetAccess(ctx context.Context, id string) ApiServerGroupGetAccessRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiServerGroupGetAccessRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -475,12 +460,9 @@ func (a *ServerGroupApiService) ServerGroupGetAccessExecute(r ApiServerGroupGetA localVarReturnValue *ModelsSSHAccessServerGroupAccessResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSH/ServerGroups/Access/{id}" + localVarPath := localBasePath + "/SSH/ServerGroups/Access/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -580,14 +562,13 @@ ServerGroupGetGroup Returns a ServerGroup associated with the provided identifie @return ApiServerGroupGetGroupRequest */ func (a *ServerGroupApiService) ServerGroupGetGroup(ctx context.Context, id string) ApiServerGroupGetGroupRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiServerGroupGetGroupRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -603,12 +584,9 @@ func (a *ServerGroupApiService) ServerGroupGetGroupExecute(r ApiServerGroupGetGr localVarReturnValue *ModelsSSHServerGroupsServerGroupResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSH/ServerGroups/{id}" + localVarPath := localBasePath + "/SSH/ServerGroups/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -708,14 +686,13 @@ ServerGroupGetGroupByName Returns a ServerGroup associated with the provided ide @return ApiServerGroupGetGroupByNameRequest */ func (a *ServerGroupApiService) ServerGroupGetGroupByName(ctx context.Context, name string) ApiServerGroupGetGroupByNameRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiServerGroupGetGroupByNameRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, name: name, } } @@ -731,12 +708,9 @@ func (a *ServerGroupApiService) ServerGroupGetGroupByNameExecute(r ApiServerGrou localVarReturnValue *ModelsSSHServerGroupsServerGroupResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSH/ServerGroups/{name}" + localVarPath := localBasePath + "/SSH/ServerGroups/{name}" localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterValueToString(r.name, "name")), -1) localVarHeaderParams := make(map[string]string) @@ -869,14 +843,13 @@ ServerGroupQueryServerGroups Returns all server groups according to the provided @return ApiServerGroupQueryServerGroupsRequest */ func (a *ServerGroupApiService) ServerGroupQueryServerGroups(ctx context.Context) ApiServerGroupQueryServerGroupsRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiServerGroupQueryServerGroupsRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -891,12 +864,9 @@ func (a *ServerGroupApiService) ServerGroupQueryServerGroupsExecute(r ApiServerG localVarReturnValue []ModelsSSHServerGroupsServerGroupResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSH/ServerGroups" + localVarPath := localBasePath + "/SSH/ServerGroups" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1014,14 +984,13 @@ ServerGroupRemoveAccess Removes access mappings for the specified server group @return ApiServerGroupRemoveAccessRequest */ func (a *ServerGroupApiService) ServerGroupRemoveAccess(ctx context.Context) ApiServerGroupRemoveAccessRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiServerGroupRemoveAccessRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -1036,12 +1005,9 @@ func (a *ServerGroupApiService) ServerGroupRemoveAccessExecute(r ApiServerGroupR localVarReturnValue *ModelsSSHAccessServerGroupAccessResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSH/ServerGroups/Access" + localVarPath := localBasePath + "/SSH/ServerGroups/Access" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1150,14 +1116,13 @@ ServerGroupUpdateServerGroup Updates an existing server group with the provided @return ApiServerGroupUpdateServerGroupRequest */ func (a *ServerGroupApiService) ServerGroupUpdateServerGroup(ctx context.Context) ApiServerGroupUpdateServerGroupRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiServerGroupUpdateServerGroupRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -1172,12 +1137,9 @@ func (a *ServerGroupApiService) ServerGroupUpdateServerGroupExecute(r ApiServerG localVarReturnValue *ModelsSSHServerGroupsServerGroupResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSH/ServerGroups" + localVarPath := localBasePath + "/SSH/ServerGroups" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} diff --git a/v2/api/command/api_service_account.go b/v1/api/keyfactor/api_service_account.go similarity index 93% rename from v2/api/command/api_service_account.go rename to v1/api/keyfactor/api_service_account.go index 89eec24..3208a64 100644 --- a/v2/api/command/api_service_account.go +++ b/v1/api/keyfactor/api_service_account.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "bytes" @@ -70,14 +68,13 @@ ServiceAccountCreateServiceAccount Creates a ServiceAccount with the provided pr @return ApiServiceAccountCreateServiceAccountRequest */ func (a *ServiceAccountApiService) ServiceAccountCreateServiceAccount(ctx context.Context) ApiServiceAccountCreateServiceAccountRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiServiceAccountCreateServiceAccountRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -92,12 +89,9 @@ func (a *ServiceAccountApiService) ServiceAccountCreateServiceAccountExecute(r A localVarReturnValue *ModelsSSHServiceAccountsServiceAccountResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSH/ServiceAccounts" + localVarPath := localBasePath + "/SSH/ServiceAccounts" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -201,14 +195,13 @@ ServiceAccountDeleteServiceAccount Deletes a ServiceAccount associated with the @return ApiServiceAccountDeleteServiceAccountRequest */ func (a *ServiceAccountApiService) ServiceAccountDeleteServiceAccount(ctx context.Context, id int32) ApiServiceAccountDeleteServiceAccountRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiServiceAccountDeleteServiceAccountRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -221,12 +214,9 @@ func (a *ServiceAccountApiService) ServiceAccountDeleteServiceAccountExecute(r A formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSH/ServiceAccounts/{id}" + localVarPath := localBasePath + "/SSH/ServiceAccounts/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -322,14 +312,13 @@ ServiceAccountDeleteServiceAccounts Deletes Service Accounts associated with the @return ApiServiceAccountDeleteServiceAccountsRequest */ func (a *ServiceAccountApiService) ServiceAccountDeleteServiceAccounts(ctx context.Context) ApiServiceAccountDeleteServiceAccountsRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiServiceAccountDeleteServiceAccountsRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -341,12 +330,9 @@ func (a *ServiceAccountApiService) ServiceAccountDeleteServiceAccountsExecute(r formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSH/ServiceAccounts" + localVarPath := localBasePath + "/SSH/ServiceAccounts" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -441,14 +427,13 @@ ServiceAccountGet Returns a ServiceAccount associated with the provided identifi @return ApiServiceAccountGetRequest */ func (a *ServiceAccountApiService) ServiceAccountGet(ctx context.Context, id int32) ApiServiceAccountGetRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiServiceAccountGetRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -464,12 +449,9 @@ func (a *ServiceAccountApiService) ServiceAccountGetExecute(r ApiServiceAccountG localVarReturnValue *ModelsSSHServiceAccountsServiceAccountResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSH/ServiceAccounts/{id}" + localVarPath := localBasePath + "/SSH/ServiceAccounts/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -576,14 +558,13 @@ ServiceAccountGetServiceAccountKey Returns an SSH key with or without private ke @return ApiServiceAccountGetServiceAccountKeyRequest */ func (a *ServiceAccountApiService) ServiceAccountGetServiceAccountKey(ctx context.Context, id int32) ApiServiceAccountGetServiceAccountKeyRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiServiceAccountGetServiceAccountKeyRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -599,12 +580,9 @@ func (a *ServiceAccountApiService) ServiceAccountGetServiceAccountKeyExecute(r A localVarReturnValue *ModelsSSHKeysKeyResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSH/ServiceAccounts/Key/{id}" + localVarPath := localBasePath + "/SSH/ServiceAccounts/Key/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -740,14 +718,13 @@ ServiceAccountQueryServiceAccounts Returns all ServiceAccounts according to the @return ApiServiceAccountQueryServiceAccountsRequest */ func (a *ServiceAccountApiService) ServiceAccountQueryServiceAccounts(ctx context.Context) ApiServiceAccountQueryServiceAccountsRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiServiceAccountQueryServiceAccountsRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -762,12 +739,9 @@ func (a *ServiceAccountApiService) ServiceAccountQueryServiceAccountsExecute(r A localVarReturnValue []ModelsSSHServiceAccountsServiceAccountResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSH/ServiceAccounts" + localVarPath := localBasePath + "/SSH/ServiceAccounts" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -887,14 +861,13 @@ ServiceAccountRotateServiceAccountKey Rotate an SSH key for a specified service @return ApiServiceAccountRotateServiceAccountKeyRequest */ func (a *ServiceAccountApiService) ServiceAccountRotateServiceAccountKey(ctx context.Context, id int32) ApiServiceAccountRotateServiceAccountKeyRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiServiceAccountRotateServiceAccountKeyRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -910,12 +883,9 @@ func (a *ServiceAccountApiService) ServiceAccountRotateServiceAccountKeyExecute( localVarReturnValue *ModelsSSHKeysKeyResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSH/ServiceAccounts/Rotate/{id}" + localVarPath := localBasePath + "/SSH/ServiceAccounts/Rotate/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -1025,14 +995,13 @@ ServiceAccountUpdateServiceAccount Updates an SSH key for a specified service ac @return ApiServiceAccountUpdateServiceAccountRequest */ func (a *ServiceAccountApiService) ServiceAccountUpdateServiceAccount(ctx context.Context) ApiServiceAccountUpdateServiceAccountRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiServiceAccountUpdateServiceAccountRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -1047,12 +1016,9 @@ func (a *ServiceAccountApiService) ServiceAccountUpdateServiceAccountExecute(r A localVarReturnValue *ModelsSSHServiceAccountsServiceAccountResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSH/ServiceAccounts" + localVarPath := localBasePath + "/SSH/ServiceAccounts" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} diff --git a/v2/api/command/api_smtp.go b/v1/api/keyfactor/api_smtp.go similarity index 91% rename from v2/api/command/api_smtp.go rename to v1/api/keyfactor/api_smtp.go index 896ac01..21d455d 100644 --- a/v2/api/command/api_smtp.go +++ b/v1/api/keyfactor/api_smtp.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "bytes" @@ -62,14 +60,13 @@ SMTPSMTP Gets SMTP profile data @return ApiSMTPSMTPRequest */ func (a *SMTPApiService) SMTPSMTP(ctx context.Context) ApiSMTPSMTPRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiSMTPSMTPRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -84,12 +81,9 @@ func (a *SMTPApiService) SMTPSMTPExecute(r ApiSMTPSMTPRequest) (*KeyfactorAPIMod localVarReturnValue *KeyfactorAPIModelsSMTPSMTPResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SMTP" + localVarPath := localBasePath + "/SMTP" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -192,14 +186,13 @@ SMTPTestSMTP Tests SMTP profile data @return ApiSMTPTestSMTPRequest */ func (a *SMTPApiService) SMTPTestSMTP(ctx context.Context) ApiSMTPTestSMTPRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiSMTPTestSMTPRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -214,12 +207,9 @@ func (a *SMTPApiService) SMTPTestSMTPExecute(r ApiSMTPTestSMTPRequest) (*Keyfact localVarReturnValue *KeyfactorAPIModelsSMTPSMTPTestResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SMTP/Test" + localVarPath := localBasePath + "/SMTP/Test" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -327,14 +317,13 @@ SMTPUpdateSMTP Updates SMTP profile data @return ApiSMTPUpdateSMTPRequest */ func (a *SMTPApiService) SMTPUpdateSMTP(ctx context.Context) ApiSMTPUpdateSMTPRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiSMTPUpdateSMTPRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -349,12 +338,9 @@ func (a *SMTPApiService) SMTPUpdateSMTPExecute(r ApiSMTPUpdateSMTPRequest) (*Key localVarReturnValue *KeyfactorAPIModelsSMTPSMTPResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SMTP" + localVarPath := localBasePath + "/SMTP" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} diff --git a/v2/api/command/api_ssl.go b/v1/api/keyfactor/api_ssl.go similarity index 93% rename from v2/api/command/api_ssl.go rename to v1/api/keyfactor/api_ssl.go index 92bb7fc..542afc2 100644 --- a/v2/api/command/api_ssl.go +++ b/v1/api/keyfactor/api_ssl.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "bytes" @@ -70,14 +68,13 @@ SslAddNetworkRanges Adds the provided network range definitions to the associate @return ApiSslAddNetworkRangesRequest */ func (a *SslApiService) SslAddNetworkRanges(ctx context.Context) ApiSslAddNetworkRangesRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiSslAddNetworkRangesRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -89,12 +86,9 @@ func (a *SslApiService) SslAddNetworkRangesExecute(r ApiSslAddNetworkRangesReque formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSL/NetworkRanges" + localVarPath := localBasePath + "/SSL/NetworkRanges" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -194,14 +188,13 @@ SslCreateNetwork Creates a network definition according to the provided properti @return ApiSslCreateNetworkRequest */ func (a *SslApiService) SslCreateNetwork(ctx context.Context) ApiSslCreateNetworkRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiSslCreateNetworkRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -216,12 +209,9 @@ func (a *SslApiService) SslCreateNetworkExecute(r ApiSslCreateNetworkRequest) (* localVarReturnValue *KeyfactorApiModelsSslNetworkResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSL/Networks" + localVarPath := localBasePath + "/SSL/Networks" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -325,14 +315,13 @@ SslEndpoint Returns the details of the associated scanning endpoint @return ApiSslEndpointRequest */ func (a *SslApiService) SslEndpoint(ctx context.Context, id string) ApiSslEndpointRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiSslEndpointRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -348,12 +337,9 @@ func (a *SslApiService) SslEndpointExecute(r ApiSslEndpointRequest) (*ModelsSSLE localVarReturnValue *ModelsSSLEndpoint ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSL/Endpoints/{id}" + localVarPath := localBasePath + "/SSL/Endpoints/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -488,14 +474,13 @@ SslEndpointHistory Returns a list of the scan results for the provided endpoint @return ApiSslEndpointHistoryRequest */ func (a *SslApiService) SslEndpointHistory(ctx context.Context, id string) ApiSslEndpointHistoryRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiSslEndpointHistoryRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -511,12 +496,9 @@ func (a *SslApiService) SslEndpointHistoryExecute(r ApiSslEndpointHistoryRequest localVarReturnValue []ModelsSSLEndpointHistoryResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSL/Endpoints/{id}/History" + localVarPath := localBasePath + "/SSL/Endpoints/{id}/History" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -631,14 +613,13 @@ SslGetNetwork Returns a defined SSL network according to the provided name @return ApiSslGetNetworkRequest */ func (a *SslApiService) SslGetNetwork(ctx context.Context, identifier string) ApiSslGetNetworkRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiSslGetNetworkRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, identifier: identifier, } } @@ -654,12 +635,9 @@ func (a *SslApiService) SslGetNetworkExecute(r ApiSslGetNetworkRequest) (*Keyfac localVarReturnValue *KeyfactorApiModelsSslNetworkResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSL/Networks/{identifier}" + localVarPath := localBasePath + "/SSL/Networks/{identifier}" localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -1) localVarHeaderParams := make(map[string]string) @@ -759,14 +737,13 @@ SslGetNetworkRangesForNetwork Returns the network range definitions for the prov @return ApiSslGetNetworkRangesForNetworkRequest */ func (a *SslApiService) SslGetNetworkRangesForNetwork(ctx context.Context, id string) ApiSslGetNetworkRangesForNetworkRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiSslGetNetworkRangesForNetworkRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -782,12 +759,9 @@ func (a *SslApiService) SslGetNetworkRangesForNetworkExecute(r ApiSslGetNetworkR localVarReturnValue []ModelsSSLNetworkDefinition ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSL/NetworkRanges/{id}" + localVarPath := localBasePath + "/SSL/NetworkRanges/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -920,14 +894,13 @@ SslGetNetworks Returns all defined SSL networks according to the provided filter @return ApiSslGetNetworksRequest */ func (a *SslApiService) SslGetNetworks(ctx context.Context) ApiSslGetNetworksRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiSslGetNetworksRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -942,12 +915,9 @@ func (a *SslApiService) SslGetNetworksExecute(r ApiSslGetNetworksRequest) ([]Key localVarReturnValue []KeyfactorApiModelsSslNetworkQueryResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSL/Networks" + localVarPath := localBasePath + "/SSL/Networks" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1068,14 +1038,13 @@ SslImmediateSslScan Starts an SSL Scan for the network according to the associat @return ApiSslImmediateSslScanRequest */ func (a *SslApiService) SslImmediateSslScan(ctx context.Context, id string) ApiSslImmediateSslScanRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiSslImmediateSslScanRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -1088,12 +1057,9 @@ func (a *SslApiService) SslImmediateSslScanExecute(r ApiSslImmediateSslScanReque formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSL/Networks/{id}/Scan" + localVarPath := localBasePath + "/SSL/Networks/{id}/Scan" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -1194,14 +1160,13 @@ SslMonitorAll Sets all endpoints matching the provided query as 'monitored' @return ApiSslMonitorAllRequest */ func (a *SslApiService) SslMonitorAll(ctx context.Context) ApiSslMonitorAllRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiSslMonitorAllRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -1213,12 +1178,9 @@ func (a *SslApiService) SslMonitorAllExecute(r ApiSslMonitorAllRequest) (*http.R formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSL/Endpoints/MonitorAll" + localVarPath := localBasePath + "/SSL/Endpoints/MonitorAll" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1316,14 +1278,13 @@ SslMonitoringStatus Sets the monitored status according to the provided endpoint @return ApiSslMonitoringStatusRequest */ func (a *SslApiService) SslMonitoringStatus(ctx context.Context) ApiSslMonitoringStatusRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiSslMonitoringStatusRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -1335,12 +1296,9 @@ func (a *SslApiService) SslMonitoringStatusExecute(r ApiSslMonitoringStatusReque formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSL/Endpoints/MonitorStatus" + localVarPath := localBasePath + "/SSL/Endpoints/MonitorStatus" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1476,14 +1434,13 @@ SslNetworkScanParts Returns the scan job components comprising the entire scan j @return ApiSslNetworkScanPartsRequest */ func (a *SslApiService) SslNetworkScanParts(ctx context.Context, id string) ApiSslNetworkScanPartsRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiSslNetworkScanPartsRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -1499,12 +1456,9 @@ func (a *SslApiService) SslNetworkScanPartsExecute(r ApiSslNetworkScanPartsReque localVarReturnValue []ModelsSSLDisplayScanJobPart ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSL/Networks/{id}/Parts" + localVarPath := localBasePath + "/SSL/Networks/{id}/Parts" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -1622,14 +1576,13 @@ SslRemoveAllNetworkRanges Removes all network range definitions from the associa @return ApiSslRemoveAllNetworkRangesRequest */ func (a *SslApiService) SslRemoveAllNetworkRanges(ctx context.Context, id string) ApiSslRemoveAllNetworkRangesRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiSslRemoveAllNetworkRangesRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -1642,12 +1595,9 @@ func (a *SslApiService) SslRemoveAllNetworkRangesExecute(r ApiSslRemoveAllNetwor formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSL/NetworkRanges/{id}" + localVarPath := localBasePath + "/SSL/NetworkRanges/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -1738,14 +1688,13 @@ SslRemoveNetwork Removes a network definition according to the provided identifi @return ApiSslRemoveNetworkRequest */ func (a *SslApiService) SslRemoveNetwork(ctx context.Context, id string) ApiSslRemoveNetworkRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiSslRemoveNetworkRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -1758,12 +1707,9 @@ func (a *SslApiService) SslRemoveNetworkExecute(r ApiSslRemoveNetworkRequest) (* formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSL/Networks/{id}" + localVarPath := localBasePath + "/SSL/Networks/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -1887,14 +1833,13 @@ SslResults Returns a list of the endpoint scan results according to the provided @return ApiSslResultsRequest */ func (a *SslApiService) SslResults(ctx context.Context) ApiSslResultsRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiSslResultsRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -1909,12 +1854,9 @@ func (a *SslApiService) SslResultsExecute(r ApiSslResultsRequest) ([]ModelsSSLSs localVarReturnValue []ModelsSSLSslScanResult ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSL" + localVarPath := localBasePath + "/SSL" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2033,14 +1975,13 @@ SslReviewAll Sets all endpoints matching the provided query as 'reviewed' @return ApiSslReviewAllRequest */ func (a *SslApiService) SslReviewAll(ctx context.Context) ApiSslReviewAllRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiSslReviewAllRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -2052,12 +1993,9 @@ func (a *SslApiService) SslReviewAllExecute(r ApiSslReviewAllRequest) (*http.Res formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSL/Endpoints/ReviewAll" + localVarPath := localBasePath + "/SSL/Endpoints/ReviewAll" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2155,14 +2093,13 @@ SslReviewedStatus Sets the reviewed status according to the provided endpoint an @return ApiSslReviewedStatusRequest */ func (a *SslApiService) SslReviewedStatus(ctx context.Context) ApiSslReviewedStatusRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiSslReviewedStatusRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -2174,12 +2111,9 @@ func (a *SslApiService) SslReviewedStatusExecute(r ApiSslReviewedStatusRequest) formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSL/Endpoints/ReviewStatus" + localVarPath := localBasePath + "/SSL/Endpoints/ReviewStatus" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2274,14 +2208,13 @@ SslScanPart Returns the execution details of the associated network scan job par @return ApiSslScanPartRequest */ func (a *SslApiService) SslScanPart(ctx context.Context, id string) ApiSslScanPartRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiSslScanPartRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -2297,12 +2230,9 @@ func (a *SslApiService) SslScanPartExecute(r ApiSslScanPartRequest) (*ModelsSSLS localVarReturnValue *ModelsSSLScanJobPart ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSL/Parts/{id}" + localVarPath := localBasePath + "/SSL/Parts/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -2407,14 +2337,13 @@ SslSetNetworkRanges Configures network range definitions for the provided networ @return ApiSslSetNetworkRangesRequest */ func (a *SslApiService) SslSetNetworkRanges(ctx context.Context) ApiSslSetNetworkRangesRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiSslSetNetworkRangesRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -2426,12 +2355,9 @@ func (a *SslApiService) SslSetNetworkRangesExecute(r ApiSslSetNetworkRangesReque formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSL/NetworkRanges" + localVarPath := localBasePath + "/SSL/NetworkRanges" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2531,14 +2457,13 @@ SslUpdateNetwork Updates an existing network definition according to the provide @return ApiSslUpdateNetworkRequest */ func (a *SslApiService) SslUpdateNetwork(ctx context.Context) ApiSslUpdateNetworkRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiSslUpdateNetworkRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -2553,12 +2478,9 @@ func (a *SslApiService) SslUpdateNetworkExecute(r ApiSslUpdateNetworkRequest) (* localVarReturnValue *KeyfactorApiModelsSslNetworkResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSL/Networks" + localVarPath := localBasePath + "/SSL/Networks" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2667,14 +2589,13 @@ SslValidateNetworkRanges Validates the format (using regular expressions) of the @return ApiSslValidateNetworkRangesRequest */ func (a *SslApiService) SslValidateNetworkRanges(ctx context.Context) ApiSslValidateNetworkRangesRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiSslValidateNetworkRangesRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -2686,12 +2607,9 @@ func (a *SslApiService) SslValidateNetworkRangesExecute(r ApiSslValidateNetworkR formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSL/NetworkRanges/Validate" + localVarPath := localBasePath + "/SSL/NetworkRanges/Validate" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} diff --git a/v2/api/command/api_status.go b/v1/api/keyfactor/api_status.go similarity index 89% rename from v2/api/command/api_status.go rename to v1/api/keyfactor/api_status.go index d1c0ad2..907d8ea 100644 --- a/v2/api/command/api_status.go +++ b/v1/api/keyfactor/api_status.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "bytes" @@ -62,14 +60,13 @@ StatusGetEndpoints Returns all endpoints to which the requesting identity has ac @return ApiStatusGetEndpointsRequest */ func (a *StatusApiService) StatusGetEndpoints(ctx context.Context) ApiStatusGetEndpointsRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiStatusGetEndpointsRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -84,12 +81,9 @@ func (a *StatusApiService) StatusGetEndpointsExecute(r ApiStatusGetEndpointsRequ localVarReturnValue []string ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Status/Endpoints" + localVarPath := localBasePath + "/Status/Endpoints" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} diff --git a/v2/api/command/api_template.go b/v1/api/keyfactor/api_template.go similarity index 93% rename from v2/api/command/api_template.go rename to v1/api/keyfactor/api_template.go index 82e3d9b..46ccbed 100644 --- a/v2/api/command/api_template.go +++ b/v1/api/keyfactor/api_template.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "bytes" @@ -63,14 +61,13 @@ TemplateGetGlobalSettings Gets the global template settings. @return ApiTemplateGetGlobalSettingsRequest */ func (a *TemplateApiService) TemplateGetGlobalSettings(ctx context.Context) ApiTemplateGetGlobalSettingsRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiTemplateGetGlobalSettingsRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -85,12 +82,9 @@ func (a *TemplateApiService) TemplateGetGlobalSettingsExecute(r ApiTemplateGetGl localVarReturnValue *KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Templates/Settings" + localVarPath := localBasePath + "/Templates/Settings" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -189,14 +183,13 @@ TemplateGetTemplate Returns the certificate template associated with the provide @return ApiTemplateGetTemplateRequest */ func (a *TemplateApiService) TemplateGetTemplate(ctx context.Context, id int32) ApiTemplateGetTemplateRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiTemplateGetTemplateRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -212,12 +205,9 @@ func (a *TemplateApiService) TemplateGetTemplateExecute(r ApiTemplateGetTemplate localVarReturnValue *ModelsTemplateRetrievalResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Templates/{id}" + localVarPath := localBasePath + "/Templates/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -350,14 +340,13 @@ TemplateGetTemplates Returns all certificate templates according to the provided @return ApiTemplateGetTemplatesRequest */ func (a *TemplateApiService) TemplateGetTemplates(ctx context.Context) ApiTemplateGetTemplatesRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiTemplateGetTemplatesRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -372,12 +361,9 @@ func (a *TemplateApiService) TemplateGetTemplatesExecute(r ApiTemplateGetTemplat localVarReturnValue []ModelsTemplateCollectionRetrievalResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Templates" + localVarPath := localBasePath + "/Templates" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -489,14 +475,13 @@ TemplateGetValidSubjectParts Method for TemplateGetValidSubjectParts @return ApiTemplateGetValidSubjectPartsRequest */ func (a *TemplateApiService) TemplateGetValidSubjectParts(ctx context.Context) ApiTemplateGetValidSubjectPartsRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiTemplateGetValidSubjectPartsRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -511,12 +496,9 @@ func (a *TemplateApiService) TemplateGetValidSubjectPartsExecute(r ApiTemplateGe localVarReturnValue []KeyfactorApiModelsTemplatesValidSubjectPartResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Templates/SubjectParts" + localVarPath := localBasePath + "/Templates/SubjectParts" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -620,14 +602,13 @@ TemplateImport Imports templates from the provided configuration tenant @return ApiTemplateImportRequest */ func (a *TemplateApiService) TemplateImport(ctx context.Context) ApiTemplateImportRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiTemplateImportRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -639,12 +620,9 @@ func (a *TemplateApiService) TemplateImportExecute(r ApiTemplateImportRequest) ( formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Templates/Import" + localVarPath := localBasePath + "/Templates/Import" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -744,14 +722,13 @@ TemplateUpdateGlobalSettings Replaces the existing global template settings. @return ApiTemplateUpdateGlobalSettingsRequest */ func (a *TemplateApiService) TemplateUpdateGlobalSettings(ctx context.Context) ApiTemplateUpdateGlobalSettingsRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiTemplateUpdateGlobalSettingsRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -766,12 +743,9 @@ func (a *TemplateApiService) TemplateUpdateGlobalSettingsExecute(r ApiTemplateUp localVarReturnValue *KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Templates/Settings" + localVarPath := localBasePath + "/Templates/Settings" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -880,14 +854,13 @@ TemplateUpdateTemplate Updates a certificate template according to the provided @return ApiTemplateUpdateTemplateRequest */ func (a *TemplateApiService) TemplateUpdateTemplate(ctx context.Context) ApiTemplateUpdateTemplateRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiTemplateUpdateTemplateRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -902,12 +875,9 @@ func (a *TemplateApiService) TemplateUpdateTemplateExecute(r ApiTemplateUpdateTe localVarReturnValue *ModelsTemplateRetrievalResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Templates" + localVarPath := localBasePath + "/Templates" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} diff --git a/v2/api/command/api_user.go b/v1/api/keyfactor/api_user.go similarity index 92% rename from v2/api/command/api_user.go rename to v1/api/keyfactor/api_user.go index 67ddaf7..06a38e6 100644 --- a/v2/api/command/api_user.go +++ b/v1/api/keyfactor/api_user.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "bytes" @@ -70,14 +68,13 @@ UserCreateUser Creates a new SSH User. @return ApiUserCreateUserRequest */ func (a *UserApiService) UserCreateUser(ctx context.Context) ApiUserCreateUserRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiUserCreateUserRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -92,12 +89,9 @@ func (a *UserApiService) UserCreateUserExecute(r ApiUserCreateUserRequest) (*Mod localVarReturnValue *ModelsSSHUsersSshUserResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSH/Users" + localVarPath := localBasePath + "/SSH/Users" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -201,14 +195,13 @@ UserDeleteUser Deletes an SSH user. @return ApiUserDeleteUserRequest */ func (a *UserApiService) UserDeleteUser(ctx context.Context, id int32) ApiUserDeleteUserRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiUserDeleteUserRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -221,12 +214,9 @@ func (a *UserApiService) UserDeleteUserExecute(r ApiUserDeleteUserRequest) (*htt formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSH/Users/{id}" + localVarPath := localBasePath + "/SSH/Users/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -317,14 +307,13 @@ UserGetUser Looks up information about an existing SSH user. @return ApiUserGetUserRequest */ func (a *UserApiService) UserGetUser(ctx context.Context, id int32) ApiUserGetUserRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiUserGetUserRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -340,12 +329,9 @@ func (a *UserApiService) UserGetUserExecute(r ApiUserGetUserRequest) (*ModelsSSH localVarReturnValue *ModelsSSHUsersSshUserResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSH/Users/{id}" + localVarPath := localBasePath + "/SSH/Users/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -485,14 +471,13 @@ UserQueryUsers Returns users matching the criteria from the provided query param @return ApiUserQueryUsersRequest */ func (a *UserApiService) UserQueryUsers(ctx context.Context) ApiUserQueryUsersRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiUserQueryUsersRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -507,12 +492,9 @@ func (a *UserApiService) UserQueryUsersExecute(r ApiUserQueryUsersRequest) ([]Mo localVarReturnValue []ModelsSSHUsersSshUserResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSH/Users" + localVarPath := localBasePath + "/SSH/Users" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -634,14 +616,13 @@ UserUpdateUser Updates information about a given user. @return ApiUserUpdateUserRequest */ func (a *UserApiService) UserUpdateUser(ctx context.Context) ApiUserUpdateUserRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiUserUpdateUserRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -656,12 +637,9 @@ func (a *UserApiService) UserUpdateUserExecute(r ApiUserUpdateUserRequest) (*Mod localVarReturnValue *ModelsSSHUsersSshUserResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSH/Users" + localVarPath := localBasePath + "/SSH/Users" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -770,14 +748,13 @@ UserUserAccess Updates logon access for a user @return ApiUserUserAccessRequest */ func (a *UserApiService) UserUserAccess(ctx context.Context) ApiUserUserAccessRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiUserUserAccessRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -792,12 +769,9 @@ func (a *UserApiService) UserUserAccessExecute(r ApiUserUserAccessRequest) (*Mod localVarReturnValue *ModelsSSHUsersSshUserAccessResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/SSH/Users/Access" + localVarPath := localBasePath + "/SSH/Users/Access" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} diff --git a/v2/api/command/api_workflow.go b/v1/api/keyfactor/api_workflow.go similarity index 93% rename from v2/api/command/api_workflow.go rename to v1/api/keyfactor/api_workflow.go index d313918..525963e 100644 --- a/v2/api/command/api_workflow.go +++ b/v1/api/keyfactor/api_workflow.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "bytes" @@ -70,14 +68,13 @@ WorkflowApprovePendingRequests Approves pending certificate requests associated @return ApiWorkflowApprovePendingRequestsRequest */ func (a *WorkflowApiService) WorkflowApprovePendingRequests(ctx context.Context) ApiWorkflowApprovePendingRequestsRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiWorkflowApprovePendingRequestsRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -92,12 +89,9 @@ func (a *WorkflowApiService) WorkflowApprovePendingRequestsExecute(r ApiWorkflow localVarReturnValue *ModelsWorkflowApproveDenyResult ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Workflow/Certificates/Approve" + localVarPath := localBasePath + "/Workflow/Certificates/Approve" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -206,14 +200,13 @@ WorkflowDenyPendingRequests Denies pending certificate requests associated with @return ApiWorkflowDenyPendingRequestsRequest */ func (a *WorkflowApiService) WorkflowDenyPendingRequests(ctx context.Context) ApiWorkflowDenyPendingRequestsRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiWorkflowDenyPendingRequestsRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -228,12 +221,9 @@ func (a *WorkflowApiService) WorkflowDenyPendingRequestsExecute(r ApiWorkflowDen localVarReturnValue *ModelsWorkflowApproveDenyResult ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Workflow/Certificates/Deny" + localVarPath := localBasePath + "/Workflow/Certificates/Deny" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -370,14 +360,13 @@ WorkflowGet Gets a collection of certificate requests based on the provided quer @return ApiWorkflowGetRequest */ func (a *WorkflowApiService) WorkflowGet(ctx context.Context) ApiWorkflowGetRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiWorkflowGetRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -392,12 +381,9 @@ func (a *WorkflowApiService) WorkflowGetExecute(r ApiWorkflowGetRequest) ([]Mode localVarReturnValue []ModelsWorkflowCertificateRequestModel ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Workflow/Certificates/Pending" + localVarPath := localBasePath + "/Workflow/Certificates/Pending" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -511,14 +497,13 @@ WorkflowGetCertificateRequestDetails Returns certificate request details based o @return ApiWorkflowGetCertificateRequestDetailsRequest */ func (a *WorkflowApiService) WorkflowGetCertificateRequestDetails(ctx context.Context, id int32) ApiWorkflowGetCertificateRequestDetailsRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiWorkflowGetCertificateRequestDetailsRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, id: id, } } @@ -534,12 +519,9 @@ func (a *WorkflowApiService) WorkflowGetCertificateRequestDetailsExecute(r ApiWo localVarReturnValue *ModelsWorkflowCertificateRequestDetailsModel ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Workflow/Certificates/{id}" + localVarPath := localBasePath + "/Workflow/Certificates/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -672,14 +654,13 @@ WorkflowGetDenied Gets a collection of denied certificate requests based on the @return ApiWorkflowGetDeniedRequest */ func (a *WorkflowApiService) WorkflowGetDenied(ctx context.Context) ApiWorkflowGetDeniedRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiWorkflowGetDeniedRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -694,12 +675,9 @@ func (a *WorkflowApiService) WorkflowGetDeniedExecute(r ApiWorkflowGetDeniedRequ localVarReturnValue []ModelsWorkflowCertificateRequestModel ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Workflow/Certificates/Denied" + localVarPath := localBasePath + "/Workflow/Certificates/Denied" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} diff --git a/v2/api/command/api_workflow_definition.go b/v1/api/keyfactor/api_workflow_definition.go similarity index 93% rename from v2/api/command/api_workflow_definition.go rename to v1/api/keyfactor/api_workflow_definition.go index c8bdac7..e2e6ba7 100644 --- a/v2/api/command/api_workflow_definition.go +++ b/v1/api/keyfactor/api_workflow_definition.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "bytes" @@ -74,14 +72,13 @@ If the latest version is also the published version, a new version will be creat @return ApiWorkflowDefinitionConfigureDefinitionStepsRequest */ func (a *WorkflowDefinitionApiService) WorkflowDefinitionConfigureDefinitionSteps(ctx context.Context, definitionId string) ApiWorkflowDefinitionConfigureDefinitionStepsRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiWorkflowDefinitionConfigureDefinitionStepsRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, definitionId: definitionId, } } @@ -97,12 +94,9 @@ func (a *WorkflowDefinitionApiService) WorkflowDefinitionConfigureDefinitionStep localVarReturnValue *KeyfactorApiModelsWorkflowsDefinitionResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Workflow/Definitions/{definitionId}/Steps" + localVarPath := localBasePath + "/Workflow/Definitions/{definitionId}/Steps" localVarPath = strings.Replace(localVarPath, "{"+"definitionId"+"}", url.PathEscape(parameterValueToString(r.definitionId, "definitionId")), -1) localVarHeaderParams := make(map[string]string) @@ -212,14 +206,13 @@ WorkflowDefinitionCreateNewDefinition Creates a new base definition without any @return ApiWorkflowDefinitionCreateNewDefinitionRequest */ func (a *WorkflowDefinitionApiService) WorkflowDefinitionCreateNewDefinition(ctx context.Context) ApiWorkflowDefinitionCreateNewDefinitionRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiWorkflowDefinitionCreateNewDefinitionRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -234,12 +227,9 @@ func (a *WorkflowDefinitionApiService) WorkflowDefinitionCreateNewDefinitionExec localVarReturnValue *KeyfactorApiModelsWorkflowsDefinitionResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Workflow/Definitions" + localVarPath := localBasePath + "/Workflow/Definitions" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -343,14 +333,13 @@ WorkflowDefinitionDelete Deletes the definition matching the given Id. @return ApiWorkflowDefinitionDeleteRequest */ func (a *WorkflowDefinitionApiService) WorkflowDefinitionDelete(ctx context.Context, definitionId string) ApiWorkflowDefinitionDeleteRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiWorkflowDefinitionDeleteRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, definitionId: definitionId, } } @@ -363,12 +352,9 @@ func (a *WorkflowDefinitionApiService) WorkflowDefinitionDeleteExecute(r ApiWork formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Workflow/Definitions/{definitionId}" + localVarPath := localBasePath + "/Workflow/Definitions/{definitionId}" localVarPath = strings.Replace(localVarPath, "{"+"definitionId"+"}", url.PathEscape(parameterValueToString(r.definitionId, "definitionId")), -1) localVarHeaderParams := make(map[string]string) @@ -473,14 +459,13 @@ WorkflowDefinitionGet Gets a workflow definition. @return ApiWorkflowDefinitionGetRequest */ func (a *WorkflowDefinitionApiService) WorkflowDefinitionGet(ctx context.Context, definitionId string) ApiWorkflowDefinitionGetRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiWorkflowDefinitionGetRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, definitionId: definitionId, } } @@ -496,12 +481,9 @@ func (a *WorkflowDefinitionApiService) WorkflowDefinitionGetExecute(r ApiWorkflo localVarReturnValue *KeyfactorApiModelsWorkflowsDefinitionResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Workflow/Definitions/{definitionId}" + localVarPath := localBasePath + "/Workflow/Definitions/{definitionId}" localVarPath = strings.Replace(localVarPath, "{"+"definitionId"+"}", url.PathEscape(parameterValueToString(r.definitionId, "definitionId")), -1) localVarHeaderParams := make(map[string]string) @@ -607,14 +589,13 @@ WorkflowDefinitionGetStepSchema Gets the schema of a given step with the specifi @return ApiWorkflowDefinitionGetStepSchemaRequest */ func (a *WorkflowDefinitionApiService) WorkflowDefinitionGetStepSchema(ctx context.Context, extensionName string) ApiWorkflowDefinitionGetStepSchemaRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiWorkflowDefinitionGetStepSchemaRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, extensionName: extensionName, } } @@ -630,12 +611,9 @@ func (a *WorkflowDefinitionApiService) WorkflowDefinitionGetStepSchemaExecute(r localVarReturnValue *KeyfactorApiModelsWorkflowsAvailableStepResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Workflow/Definitions/Steps/{extensionName}" + localVarPath := localBasePath + "/Workflow/Definitions/Steps/{extensionName}" localVarPath = strings.Replace(localVarPath, "{"+"extensionName"+"}", url.PathEscape(parameterValueToString(r.extensionName, "extensionName")), -1) localVarHeaderParams := make(map[string]string) @@ -735,14 +713,13 @@ WorkflowDefinitionPublishDefinition Makes the most recent version of a Workflow @return ApiWorkflowDefinitionPublishDefinitionRequest */ func (a *WorkflowDefinitionApiService) WorkflowDefinitionPublishDefinition(ctx context.Context, definitionId string) ApiWorkflowDefinitionPublishDefinitionRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiWorkflowDefinitionPublishDefinitionRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, definitionId: definitionId, } } @@ -758,12 +735,9 @@ func (a *WorkflowDefinitionApiService) WorkflowDefinitionPublishDefinitionExecut localVarReturnValue *KeyfactorApiModelsWorkflowsDefinitionResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Workflow/Definitions/{definitionId}/Publish" + localVarPath := localBasePath + "/Workflow/Definitions/{definitionId}/Publish" localVarPath = strings.Replace(localVarPath, "{"+"definitionId"+"}", url.PathEscape(parameterValueToString(r.definitionId, "definitionId")), -1) localVarHeaderParams := make(map[string]string) @@ -896,14 +870,13 @@ WorkflowDefinitionQuery Gets the Definitions matching the query specifications. @return ApiWorkflowDefinitionQueryRequest */ func (a *WorkflowDefinitionApiService) WorkflowDefinitionQuery(ctx context.Context) ApiWorkflowDefinitionQueryRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiWorkflowDefinitionQueryRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -918,12 +891,9 @@ func (a *WorkflowDefinitionApiService) WorkflowDefinitionQueryExecute(r ApiWorkf localVarReturnValue []KeyfactorApiModelsWorkflowsDefinitionQueryResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Workflow/Definitions" + localVarPath := localBasePath + "/Workflow/Definitions" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1070,14 +1040,13 @@ WorkflowDefinitionQueryAvailableSteps Gets the result set of available steps for @return ApiWorkflowDefinitionQueryAvailableStepsRequest */ func (a *WorkflowDefinitionApiService) WorkflowDefinitionQueryAvailableSteps(ctx context.Context) ApiWorkflowDefinitionQueryAvailableStepsRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiWorkflowDefinitionQueryAvailableStepsRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -1092,12 +1061,9 @@ func (a *WorkflowDefinitionApiService) WorkflowDefinitionQueryAvailableStepsExec localVarReturnValue []KeyfactorApiModelsWorkflowsAvailableStepQueryResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Workflow/Definitions/Steps" + localVarPath := localBasePath + "/Workflow/Definitions/Steps" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1244,14 +1210,13 @@ WorkflowDefinitionQueryWorkflowTypes Performs a query against the workflow types @return ApiWorkflowDefinitionQueryWorkflowTypesRequest */ func (a *WorkflowDefinitionApiService) WorkflowDefinitionQueryWorkflowTypes(ctx context.Context) ApiWorkflowDefinitionQueryWorkflowTypesRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiWorkflowDefinitionQueryWorkflowTypesRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -1266,12 +1231,9 @@ func (a *WorkflowDefinitionApiService) WorkflowDefinitionQueryWorkflowTypesExecu localVarReturnValue []KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Workflow/Definitions/Types" + localVarPath := localBasePath + "/Workflow/Definitions/Types" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1392,14 +1354,13 @@ WorkflowDefinitionUpdateExistingDefinition Updates the existing definition's Dis @return ApiWorkflowDefinitionUpdateExistingDefinitionRequest */ func (a *WorkflowDefinitionApiService) WorkflowDefinitionUpdateExistingDefinition(ctx context.Context, definitionId string) ApiWorkflowDefinitionUpdateExistingDefinitionRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiWorkflowDefinitionUpdateExistingDefinitionRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, definitionId: definitionId, } } @@ -1415,12 +1376,9 @@ func (a *WorkflowDefinitionApiService) WorkflowDefinitionUpdateExistingDefinitio localVarReturnValue *KeyfactorApiModelsWorkflowsDefinitionResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Workflow/Definitions/{definitionId}" + localVarPath := localBasePath + "/Workflow/Definitions/{definitionId}" localVarPath = strings.Replace(localVarPath, "{"+"definitionId"+"}", url.PathEscape(parameterValueToString(r.definitionId, "definitionId")), -1) localVarHeaderParams := make(map[string]string) diff --git a/v2/api/command/api_workflow_instance.go b/v1/api/keyfactor/api_workflow_instance.go similarity index 93% rename from v2/api/command/api_workflow_instance.go rename to v1/api/keyfactor/api_workflow_instance.go index c353c35..c8cfb65 100644 --- a/v2/api/command/api_workflow_instance.go +++ b/v1/api/keyfactor/api_workflow_instance.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "bytes" @@ -65,14 +63,13 @@ WorkflowInstanceDeleteInstance Deletes the specified instance. @return ApiWorkflowInstanceDeleteInstanceRequest */ func (a *WorkflowInstanceApiService) WorkflowInstanceDeleteInstance(ctx context.Context, instanceId string) ApiWorkflowInstanceDeleteInstanceRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiWorkflowInstanceDeleteInstanceRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, instanceId: instanceId, } } @@ -85,12 +82,9 @@ func (a *WorkflowInstanceApiService) WorkflowInstanceDeleteInstanceExecute(r Api formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Workflow/Instances/{instanceId}" + localVarPath := localBasePath + "/Workflow/Instances/{instanceId}" localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) localVarHeaderParams := make(map[string]string) @@ -181,14 +175,13 @@ WorkflowInstanceGet Get information relevant for knowing where an instance is in @return ApiWorkflowInstanceGetRequest */ func (a *WorkflowInstanceApiService) WorkflowInstanceGet(ctx context.Context, instanceId string) ApiWorkflowInstanceGetRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiWorkflowInstanceGetRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, instanceId: instanceId, } } @@ -204,12 +197,9 @@ func (a *WorkflowInstanceApiService) WorkflowInstanceGetExecute(r ApiWorkflowIns localVarReturnValue *KeyfactorApiModelsWorkflowsInstanceResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Workflow/Instances/{instanceId}" + localVarPath := localBasePath + "/Workflow/Instances/{instanceId}" localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) localVarHeaderParams := make(map[string]string) @@ -342,14 +332,13 @@ WorkflowInstanceQuery Gets the workflow instances matching the query specificati @return ApiWorkflowInstanceQueryRequest */ func (a *WorkflowInstanceApiService) WorkflowInstanceQuery(ctx context.Context) ApiWorkflowInstanceQueryRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiWorkflowInstanceQueryRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -364,12 +353,9 @@ func (a *WorkflowInstanceApiService) WorkflowInstanceQueryExecute(r ApiWorkflowI localVarReturnValue []KeyfactorApiModelsWorkflowsInstanceQueryResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Workflow/Instances" + localVarPath := localBasePath + "/Workflow/Instances" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -516,14 +502,13 @@ WorkflowInstanceQueryInstancesAssignedToMe Gets the workflow instances waiting o @return ApiWorkflowInstanceQueryInstancesAssignedToMeRequest */ func (a *WorkflowInstanceApiService) WorkflowInstanceQueryInstancesAssignedToMe(ctx context.Context) ApiWorkflowInstanceQueryInstancesAssignedToMeRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiWorkflowInstanceQueryInstancesAssignedToMeRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -538,12 +523,9 @@ func (a *WorkflowInstanceApiService) WorkflowInstanceQueryInstancesAssignedToMeE localVarReturnValue []KeyfactorApiModelsWorkflowsInstanceQueryResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Workflow/Instances/AssignedToMe" + localVarPath := localBasePath + "/Workflow/Instances/AssignedToMe" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -690,14 +672,13 @@ WorkflowInstanceQueryInstancesStartedByMe Gets the workflow instances started by @return ApiWorkflowInstanceQueryInstancesStartedByMeRequest */ func (a *WorkflowInstanceApiService) WorkflowInstanceQueryInstancesStartedByMe(ctx context.Context) ApiWorkflowInstanceQueryInstancesStartedByMeRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiWorkflowInstanceQueryInstancesStartedByMeRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, } } @@ -712,12 +693,9 @@ func (a *WorkflowInstanceApiService) WorkflowInstanceQueryInstancesStartedByMeEx localVarReturnValue []KeyfactorApiModelsWorkflowsInstanceQueryResponse ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Workflow/Instances/My" + localVarPath := localBasePath + "/Workflow/Instances/My" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -838,14 +816,13 @@ WorkflowInstanceRestart Restarts a failed instance against the specified definit @return ApiWorkflowInstanceRestartRequest */ func (a *WorkflowInstanceApiService) WorkflowInstanceRestart(ctx context.Context, instanceId string) ApiWorkflowInstanceRestartRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiWorkflowInstanceRestartRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, instanceId: instanceId, } } @@ -858,12 +835,9 @@ func (a *WorkflowInstanceApiService) WorkflowInstanceRestartExecute(r ApiWorkflo formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Workflow/Instances/{instanceId}/Restart" + localVarPath := localBasePath + "/Workflow/Instances/{instanceId}/Restart" localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) localVarHeaderParams := make(map[string]string) @@ -964,14 +938,13 @@ WorkflowInstanceSignal Receives the given signal for the given instance. @return ApiWorkflowInstanceSignalRequest */ func (a *WorkflowInstanceApiService) WorkflowInstanceSignal(ctx context.Context, instanceId string) ApiWorkflowInstanceSignalRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiWorkflowInstanceSignalRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, instanceId: instanceId, } } @@ -984,12 +957,9 @@ func (a *WorkflowInstanceApiService) WorkflowInstanceSignalExecute(r ApiWorkflow formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Workflow/Instances/{instanceId}/Signals" + localVarPath := localBasePath + "/Workflow/Instances/{instanceId}/Signals" localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) localVarHeaderParams := make(map[string]string) @@ -1085,14 +1055,13 @@ WorkflowInstanceStop Rejects an instance, preventing it from continuing. @return ApiWorkflowInstanceStopRequest */ func (a *WorkflowInstanceApiService) WorkflowInstanceStop(ctx context.Context, instanceId string) ApiWorkflowInstanceStopRequest { - xKeyfactorApiVersion := "1" - xKeyfactorRequestedWith := "APIClient" - + requestedWith := "APIClient" + version := "1" return ApiWorkflowInstanceStopRequest{ ApiService: a, ctx: ctx, - xKeyfactorApiVersion: &xKeyfactorApiVersion, - xKeyfactorRequestedWith: &xKeyfactorRequestedWith, + xKeyfactorRequestedWith: &requestedWith, + xKeyfactorApiVersion: &version, instanceId: instanceId, } } @@ -1105,12 +1074,9 @@ func (a *WorkflowInstanceApiService) WorkflowInstanceStopExecute(r ApiWorkflowIn formFiles []formFile ) - apiBasePath := a.client.cfg.APIPath - if apiBasePath == "" { - apiBasePath = "/KeyfactorAPI" - } + localBasePath := "/KeyfactorAPI" - localVarPath := apiBasePath + "/Workflow/Instances/{instanceId}/Stop" + localVarPath := localBasePath + "/Workflow/Instances/{instanceId}/Stop" localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) localVarHeaderParams := make(map[string]string) diff --git a/v2/api/command/client.go b/v1/api/keyfactor/client.go similarity index 95% rename from v2/api/command/client.go rename to v1/api/keyfactor/client.go index 71bc302..23688cb 100644 --- a/v2/api/command/client.go +++ b/v1/api/keyfactor/client.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "bytes" @@ -660,7 +658,7 @@ func (c *APIClient) prepareRequest( } - localVarRequest.SetBasicAuth(c.cfg.BasicAuth.Username, c.cfg.BasicAuth.Password) + localVarRequest.SetBasicAuth(c.cfg.BasicAuth.UserName, c.cfg.BasicAuth.Password) for header, value := range c.cfg.DefaultHeader { localVarRequest.Header.Add(header, value) @@ -903,37 +901,3 @@ func formatErrorMessage(status string, v interface{}) string { // status title (detail) return strings.TrimSpace(fmt.Sprintf("%s %s", status, str)) } - -func convertParamInterface(param interface{}, format string) (interface{}, error) { - if param == nil { - return nil, nil - } - - switch format { - case "int32": - val, err := strconv.ParseInt(fmt.Sprintf("%v", param), 10, 32) - return int32(val), err - case "int64": - return strconv.ParseInt(fmt.Sprintf("%v", param), 10, 64) - case "float32": - val, err := strconv.ParseFloat(fmt.Sprintf("%v", param), 32) - return float32(val), err - case "float64": - return strconv.ParseFloat(fmt.Sprintf("%v", param), 64) - case "byte": - return []byte(fmt.Sprintf("%v", param)), nil - case "date": - return time.Parse("2006-01-02", fmt.Sprintf("%v", param)) - case "date-time": - return time.Parse(time.RFC3339, fmt.Sprintf("%v", param)) - case "password": - return fmt.Sprintf("%v", param), nil - default: - return param, nil - } -} - -func generateTimestamp() *time.Time { - output := time.Now().UTC() - return &output -} diff --git a/v2/api/command/configuration.go b/v1/api/keyfactor/configuration.go similarity index 51% rename from v2/api/command/configuration.go rename to v1/api/keyfactor/configuration.go index fc6eec4..e8f2d92 100644 --- a/v2/api/command/configuration.go +++ b/v1/api/keyfactor/configuration.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "crypto/x509" @@ -55,18 +53,16 @@ var ( // ContextOperationServerVariables overrides a server configuration variables using operation specific values. ContextOperationServerVariables = contextKey("serverOperationVariables") - envCommandHostname = "KEYFACTOR_HOSTNAME" - envCommandUsername = "KEYFACTOR_USERNAME" - envCommandPassword = "KEYFACTOR_PASSWORD" - envCommandDomain = "KEYFACTOR_DOMAIN" - envCommandApiPath = "KEYFACTOR_API_PATH" - envCommandLogLevel = "KEYFACTOR_LOG_LEVEL" - envCommandCaCertificatePath = "KEYFACTOR_CA_CERTIFICATE_PATH" + envCommandHostname = "KEYFACTOR_HOSTNAME" + + EnvCommandUsername = "KEYFACTOR_USERNAME" + + EnvCommandPassword = "KEYFACTOR_PASSWORD" ) // BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth type BasicAuth struct { - Username string `json:"username,omitempty"` + UserName string `json:"userName,omitempty"` Password string `json:"password,omitempty"` } @@ -91,77 +87,12 @@ type Configuration struct { UserAgent string `json:"userAgent,omitempty"` Debug bool `json:"debug,omitempty"` CaCertificatePath string `json:"caCertificatePath,omitempty"` - APIPath string `json:"apiPath,omitempty"` - Domain string `json:"domain,omitempty"` HTTPClient *http.Client caCertificates []*x509.Certificate } -func ValidateConfiguration(configuration *Configuration) []error { - var errs []error - if configuration.Host == "" { - errs = append(errs, fmt.Errorf("hostname cannot be empty")) - } - if configuration.BasicAuth.Username == "" { - errs = append(errs, fmt.Errorf("username cannot be empty")) - } - if configuration.BasicAuth.Password == "" { - errs = append(errs, fmt.Errorf("password cannot be empty")) - } - - if configuration.CaCertificatePath != "" { - if _, err := os.Stat(configuration.CaCertificatePath); os.IsNotExist(err) { - errs = append(errs, fmt.Errorf("caCertificatePath does not exist: %s", configuration.CaCertificatePath)) - } - } - - if configuration.APIPath == "" { - configuration.APIPath = "/KeyfactorAPI" - } - - if configuration.Domain == "" && configuration.BasicAuth.Username != "" && (!strings.Contains(configuration.BasicAuth.Username, "@") && !strings.Contains(configuration.BasicAuth.Username, "\\")) { - errs = append(errs, fmt.Errorf("domain cannot be empty when username does not contain a domain or a slash (\\) or an at (@) symbol")) - } - - return errs -} - -// GetEnvConfig returns a map of environment variables -func GetEnvConfiguration() map[string]string { - config := make(map[string]string) - hostname, hostnameOk := os.LookupEnv("KEYFACTOR_HOSTNAME") - if hostnameOk { - config["hostname"] = hostname - } - username, usernameOk := os.LookupEnv("KEYFACTOR_USERNAME") - if usernameOk { - config["username"] = username - } - password, passwordOk := os.LookupEnv("KEYFACTOR_PASSWORD") - if passwordOk { - config["password"] = password - } - domain, domainOk := os.LookupEnv("KEYFACTOR_DOMAIN") - if domainOk { - config["domain"] = domain - } - apiPath, apiPathOk := os.LookupEnv("KEYFACTOR_API_PATH") - if apiPathOk { - config["apiPath"] = apiPath - } - logLevel, logLevelOk := os.LookupEnv("KEYFACTOR_LOG_LEVEL") - if logLevelOk { - config["logLevel"] = logLevel - } - caCertificatePath, caCertificatePathOk := os.LookupEnv("KEYFACTOR_CA_CERTIFICATE_PATH") - if caCertificatePathOk { - config["caCertificatePath"] = caCertificatePath - } - return config -} - // NewConfiguration returns a new Configuration object -func NewConfiguration(config map[string]string) (*Configuration, error) { +func NewConfiguration(config map[string]string) *Configuration { cfg := &Configuration{ DefaultHeader: make(map[string]string), UserAgent: "OpenAPI-Generator/1.0.0/go", @@ -176,7 +107,6 @@ func NewConfiguration(config map[string]string) (*Configuration, error) { confPass := config["password"] confDomain := config["domain"] confCaPath := config["caCertificatePath"] - confAPIPath := config["apiPath"] // Get hostname from environment variable if confHost == "" { @@ -188,30 +118,28 @@ func NewConfiguration(config map[string]string) (*Configuration, error) { if hostname != "" { if hostnameCleaned, err := cleanHostname(hostname); err == nil { cfg.Host = hostnameCleaned + } else { + fmt.Errorf("%s is not a valid URL: %s", hostname, err) + return nil } } // Get username from environment variable if confUser == "" { - cfg.BasicAuth.Username = os.Getenv(envCommandUsername) + cfg.BasicAuth.UserName = os.Getenv(EnvCommandUsername) } else { - cfg.BasicAuth.Username = confUser + cfg.BasicAuth.UserName = confUser } if confDomain != "" { - if cfg.BasicAuth.Username != "" && !strings.Contains(cfg.BasicAuth.Username, confDomain) { - cfg.BasicAuth.Username = cfg.BasicAuth.Username + "@" + confDomain - } - } else { - cfg.Domain = os.Getenv(envCommandDomain) - if cfg.BasicAuth.Username != "" && !strings.Contains(cfg.BasicAuth.Username, cfg.Domain) && cfg.Domain != "" && !strings.Contains(cfg.BasicAuth.Username, "@") { - cfg.BasicAuth.Username = cfg.BasicAuth.Username + "@" + cfg.Domain + if cfg.BasicAuth.UserName != "" && !strings.Contains(cfg.BasicAuth.UserName, confDomain) { + cfg.BasicAuth.UserName = cfg.BasicAuth.UserName + "@" + confDomain } } // Get password from environment variable if confPass == "" { - cfg.BasicAuth.Password = os.Getenv(envCommandPassword) + cfg.BasicAuth.Password = os.Getenv(EnvCommandPassword) } else { cfg.BasicAuth.Password = confPass } @@ -223,23 +151,7 @@ func NewConfiguration(config map[string]string) (*Configuration, error) { cfg.CaCertificatePath = confCaPath } - // Get apiPath from environment variable - if confAPIPath == "" { - cfg.APIPath = os.Getenv(envCommandApiPath) - } else { - cfg.APIPath = confAPIPath - } - - errs := ValidateConfiguration(cfg) - if len(errs) > 0 { - outputString := "Configuration errors:\n" - for _, err := range errs { - outputString += fmt.Sprintf(" - %s\n", err) - } - return nil, fmt.Errorf(outputString) - } - - return cfg, nil + return cfg } // AddDefaultHeader adds a new HTTP header to the default header in the request diff --git a/v1/api/keyfactor/model_core_models_enrollment_enrollment_ca.go b/v1/api/keyfactor/model_core_models_enrollment_enrollment_ca.go new file mode 100644 index 0000000..cdc3fdc --- /dev/null +++ b/v1/api/keyfactor/model_core_models_enrollment_enrollment_ca.go @@ -0,0 +1,232 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the CoreModelsEnrollmentEnrollmentCA type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CoreModelsEnrollmentEnrollmentCA{} + +// CoreModelsEnrollmentEnrollmentCA struct for CoreModelsEnrollmentEnrollmentCA +type CoreModelsEnrollmentEnrollmentCA struct { + Name *string `json:"Name,omitempty"` + RFCEnforcement *bool `json:"RFCEnforcement,omitempty"` + SubscriberTerms *bool `json:"SubscriberTerms,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CoreModelsEnrollmentEnrollmentCA CoreModelsEnrollmentEnrollmentCA + +// NewCoreModelsEnrollmentEnrollmentCA instantiates a new CoreModelsEnrollmentEnrollmentCA object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCoreModelsEnrollmentEnrollmentCA() *CoreModelsEnrollmentEnrollmentCA { + this := CoreModelsEnrollmentEnrollmentCA{} + return &this +} + +// NewCoreModelsEnrollmentEnrollmentCAWithDefaults instantiates a new CoreModelsEnrollmentEnrollmentCA object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCoreModelsEnrollmentEnrollmentCAWithDefaults() *CoreModelsEnrollmentEnrollmentCA { + this := CoreModelsEnrollmentEnrollmentCA{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *CoreModelsEnrollmentEnrollmentCA) GetName() string { + if o == nil || isNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CoreModelsEnrollmentEnrollmentCA) GetNameOk() (*string, bool) { + if o == nil || isNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *CoreModelsEnrollmentEnrollmentCA) HasName() bool { + if o != nil && !isNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *CoreModelsEnrollmentEnrollmentCA) SetName(v string) { + o.Name = &v +} + +// GetRFCEnforcement returns the RFCEnforcement field value if set, zero value otherwise. +func (o *CoreModelsEnrollmentEnrollmentCA) GetRFCEnforcement() bool { + if o == nil || isNil(o.RFCEnforcement) { + var ret bool + return ret + } + return *o.RFCEnforcement +} + +// GetRFCEnforcementOk returns a tuple with the RFCEnforcement field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CoreModelsEnrollmentEnrollmentCA) GetRFCEnforcementOk() (*bool, bool) { + if o == nil || isNil(o.RFCEnforcement) { + return nil, false + } + return o.RFCEnforcement, true +} + +// HasRFCEnforcement returns a boolean if a field has been set. +func (o *CoreModelsEnrollmentEnrollmentCA) HasRFCEnforcement() bool { + if o != nil && !isNil(o.RFCEnforcement) { + return true + } + + return false +} + +// SetRFCEnforcement gets a reference to the given bool and assigns it to the RFCEnforcement field. +func (o *CoreModelsEnrollmentEnrollmentCA) SetRFCEnforcement(v bool) { + o.RFCEnforcement = &v +} + +// GetSubscriberTerms returns the SubscriberTerms field value if set, zero value otherwise. +func (o *CoreModelsEnrollmentEnrollmentCA) GetSubscriberTerms() bool { + if o == nil || isNil(o.SubscriberTerms) { + var ret bool + return ret + } + return *o.SubscriberTerms +} + +// GetSubscriberTermsOk returns a tuple with the SubscriberTerms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CoreModelsEnrollmentEnrollmentCA) GetSubscriberTermsOk() (*bool, bool) { + if o == nil || isNil(o.SubscriberTerms) { + return nil, false + } + return o.SubscriberTerms, true +} + +// HasSubscriberTerms returns a boolean if a field has been set. +func (o *CoreModelsEnrollmentEnrollmentCA) HasSubscriberTerms() bool { + if o != nil && !isNil(o.SubscriberTerms) { + return true + } + + return false +} + +// SetSubscriberTerms gets a reference to the given bool and assigns it to the SubscriberTerms field. +func (o *CoreModelsEnrollmentEnrollmentCA) SetSubscriberTerms(v bool) { + o.SubscriberTerms = &v +} + +func (o CoreModelsEnrollmentEnrollmentCA) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CoreModelsEnrollmentEnrollmentCA) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Name) { + toSerialize["Name"] = o.Name + } + if !isNil(o.RFCEnforcement) { + toSerialize["RFCEnforcement"] = o.RFCEnforcement + } + if !isNil(o.SubscriberTerms) { + toSerialize["SubscriberTerms"] = o.SubscriberTerms + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CoreModelsEnrollmentEnrollmentCA) UnmarshalJSON(bytes []byte) (err error) { + varCoreModelsEnrollmentEnrollmentCA := _CoreModelsEnrollmentEnrollmentCA{} + + if err = json.Unmarshal(bytes, &varCoreModelsEnrollmentEnrollmentCA); err == nil { + *o = CoreModelsEnrollmentEnrollmentCA(varCoreModelsEnrollmentEnrollmentCA) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Name") + delete(additionalProperties, "RFCEnforcement") + delete(additionalProperties, "SubscriberTerms") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCoreModelsEnrollmentEnrollmentCA struct { + value *CoreModelsEnrollmentEnrollmentCA + isSet bool +} + +func (v NullableCoreModelsEnrollmentEnrollmentCA) Get() *CoreModelsEnrollmentEnrollmentCA { + return v.value +} + +func (v *NullableCoreModelsEnrollmentEnrollmentCA) Set(val *CoreModelsEnrollmentEnrollmentCA) { + v.value = val + v.isSet = true +} + +func (v NullableCoreModelsEnrollmentEnrollmentCA) IsSet() bool { + return v.isSet +} + +func (v *NullableCoreModelsEnrollmentEnrollmentCA) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCoreModelsEnrollmentEnrollmentCA(val *CoreModelsEnrollmentEnrollmentCA) *NullableCoreModelsEnrollmentEnrollmentCA { + return &NullableCoreModelsEnrollmentEnrollmentCA{value: val, isSet: true} +} + +func (v NullableCoreModelsEnrollmentEnrollmentCA) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCoreModelsEnrollmentEnrollmentCA) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_core_models_enrollment_enrollment_template.go b/v1/api/keyfactor/model_core_models_enrollment_enrollment_template.go new file mode 100644 index 0000000..ee7b885 --- /dev/null +++ b/v1/api/keyfactor/model_core_models_enrollment_enrollment_template.go @@ -0,0 +1,650 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the CoreModelsEnrollmentEnrollmentTemplate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CoreModelsEnrollmentEnrollmentTemplate{} + +// CoreModelsEnrollmentEnrollmentTemplate struct for CoreModelsEnrollmentEnrollmentTemplate +type CoreModelsEnrollmentEnrollmentTemplate struct { + Id *int32 `json:"Id,omitempty"` + Name *string `json:"Name,omitempty"` + DisplayName *string `json:"DisplayName,omitempty"` + Forest *string `json:"Forest,omitempty"` + KeySize *string `json:"KeySize,omitempty"` + KeyType *string `json:"KeyType,omitempty"` + RequiresApproval *bool `json:"RequiresApproval,omitempty"` + RFCEnforcement *bool `json:"RFCEnforcement,omitempty"` + CAs []CoreModelsEnrollmentEnrollmentCA `json:"CAs,omitempty"` + EnrollmentFields []ModelsTemplateEnrollmentField `json:"EnrollmentFields,omitempty"` + MetadataFields []ModelsTemplateMetadataField `json:"MetadataFields,omitempty"` + Regexes []ModelsTemplateRegex `json:"Regexes,omitempty"` + ExtendedKeyUsages []ModelsExtendedKeyUsage `json:"ExtendedKeyUsages,omitempty"` + Curve NullableString `json:"Curve,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CoreModelsEnrollmentEnrollmentTemplate CoreModelsEnrollmentEnrollmentTemplate + +// NewCoreModelsEnrollmentEnrollmentTemplate instantiates a new CoreModelsEnrollmentEnrollmentTemplate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCoreModelsEnrollmentEnrollmentTemplate() *CoreModelsEnrollmentEnrollmentTemplate { + this := CoreModelsEnrollmentEnrollmentTemplate{} + return &this +} + +// NewCoreModelsEnrollmentEnrollmentTemplateWithDefaults instantiates a new CoreModelsEnrollmentEnrollmentTemplate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCoreModelsEnrollmentEnrollmentTemplateWithDefaults() *CoreModelsEnrollmentEnrollmentTemplate { + this := CoreModelsEnrollmentEnrollmentTemplate{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *CoreModelsEnrollmentEnrollmentTemplate) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CoreModelsEnrollmentEnrollmentTemplate) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CoreModelsEnrollmentEnrollmentTemplate) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *CoreModelsEnrollmentEnrollmentTemplate) SetId(v int32) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *CoreModelsEnrollmentEnrollmentTemplate) GetName() string { + if o == nil || isNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CoreModelsEnrollmentEnrollmentTemplate) GetNameOk() (*string, bool) { + if o == nil || isNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *CoreModelsEnrollmentEnrollmentTemplate) HasName() bool { + if o != nil && !isNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *CoreModelsEnrollmentEnrollmentTemplate) SetName(v string) { + o.Name = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *CoreModelsEnrollmentEnrollmentTemplate) GetDisplayName() string { + if o == nil || isNil(o.DisplayName) { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CoreModelsEnrollmentEnrollmentTemplate) GetDisplayNameOk() (*string, bool) { + if o == nil || isNil(o.DisplayName) { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *CoreModelsEnrollmentEnrollmentTemplate) HasDisplayName() bool { + if o != nil && !isNil(o.DisplayName) { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *CoreModelsEnrollmentEnrollmentTemplate) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetForest returns the Forest field value if set, zero value otherwise. +func (o *CoreModelsEnrollmentEnrollmentTemplate) GetForest() string { + if o == nil || isNil(o.Forest) { + var ret string + return ret + } + return *o.Forest +} + +// GetForestOk returns a tuple with the Forest field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CoreModelsEnrollmentEnrollmentTemplate) GetForestOk() (*string, bool) { + if o == nil || isNil(o.Forest) { + return nil, false + } + return o.Forest, true +} + +// HasForest returns a boolean if a field has been set. +func (o *CoreModelsEnrollmentEnrollmentTemplate) HasForest() bool { + if o != nil && !isNil(o.Forest) { + return true + } + + return false +} + +// SetForest gets a reference to the given string and assigns it to the Forest field. +func (o *CoreModelsEnrollmentEnrollmentTemplate) SetForest(v string) { + o.Forest = &v +} + +// GetKeySize returns the KeySize field value if set, zero value otherwise. +func (o *CoreModelsEnrollmentEnrollmentTemplate) GetKeySize() string { + if o == nil || isNil(o.KeySize) { + var ret string + return ret + } + return *o.KeySize +} + +// GetKeySizeOk returns a tuple with the KeySize field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CoreModelsEnrollmentEnrollmentTemplate) GetKeySizeOk() (*string, bool) { + if o == nil || isNil(o.KeySize) { + return nil, false + } + return o.KeySize, true +} + +// HasKeySize returns a boolean if a field has been set. +func (o *CoreModelsEnrollmentEnrollmentTemplate) HasKeySize() bool { + if o != nil && !isNil(o.KeySize) { + return true + } + + return false +} + +// SetKeySize gets a reference to the given string and assigns it to the KeySize field. +func (o *CoreModelsEnrollmentEnrollmentTemplate) SetKeySize(v string) { + o.KeySize = &v +} + +// GetKeyType returns the KeyType field value if set, zero value otherwise. +func (o *CoreModelsEnrollmentEnrollmentTemplate) GetKeyType() string { + if o == nil || isNil(o.KeyType) { + var ret string + return ret + } + return *o.KeyType +} + +// GetKeyTypeOk returns a tuple with the KeyType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CoreModelsEnrollmentEnrollmentTemplate) GetKeyTypeOk() (*string, bool) { + if o == nil || isNil(o.KeyType) { + return nil, false + } + return o.KeyType, true +} + +// HasKeyType returns a boolean if a field has been set. +func (o *CoreModelsEnrollmentEnrollmentTemplate) HasKeyType() bool { + if o != nil && !isNil(o.KeyType) { + return true + } + + return false +} + +// SetKeyType gets a reference to the given string and assigns it to the KeyType field. +func (o *CoreModelsEnrollmentEnrollmentTemplate) SetKeyType(v string) { + o.KeyType = &v +} + +// GetRequiresApproval returns the RequiresApproval field value if set, zero value otherwise. +func (o *CoreModelsEnrollmentEnrollmentTemplate) GetRequiresApproval() bool { + if o == nil || isNil(o.RequiresApproval) { + var ret bool + return ret + } + return *o.RequiresApproval +} + +// GetRequiresApprovalOk returns a tuple with the RequiresApproval field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CoreModelsEnrollmentEnrollmentTemplate) GetRequiresApprovalOk() (*bool, bool) { + if o == nil || isNil(o.RequiresApproval) { + return nil, false + } + return o.RequiresApproval, true +} + +// HasRequiresApproval returns a boolean if a field has been set. +func (o *CoreModelsEnrollmentEnrollmentTemplate) HasRequiresApproval() bool { + if o != nil && !isNil(o.RequiresApproval) { + return true + } + + return false +} + +// SetRequiresApproval gets a reference to the given bool and assigns it to the RequiresApproval field. +func (o *CoreModelsEnrollmentEnrollmentTemplate) SetRequiresApproval(v bool) { + o.RequiresApproval = &v +} + +// GetRFCEnforcement returns the RFCEnforcement field value if set, zero value otherwise. +func (o *CoreModelsEnrollmentEnrollmentTemplate) GetRFCEnforcement() bool { + if o == nil || isNil(o.RFCEnforcement) { + var ret bool + return ret + } + return *o.RFCEnforcement +} + +// GetRFCEnforcementOk returns a tuple with the RFCEnforcement field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CoreModelsEnrollmentEnrollmentTemplate) GetRFCEnforcementOk() (*bool, bool) { + if o == nil || isNil(o.RFCEnforcement) { + return nil, false + } + return o.RFCEnforcement, true +} + +// HasRFCEnforcement returns a boolean if a field has been set. +func (o *CoreModelsEnrollmentEnrollmentTemplate) HasRFCEnforcement() bool { + if o != nil && !isNil(o.RFCEnforcement) { + return true + } + + return false +} + +// SetRFCEnforcement gets a reference to the given bool and assigns it to the RFCEnforcement field. +func (o *CoreModelsEnrollmentEnrollmentTemplate) SetRFCEnforcement(v bool) { + o.RFCEnforcement = &v +} + +// GetCAs returns the CAs field value if set, zero value otherwise. +func (o *CoreModelsEnrollmentEnrollmentTemplate) GetCAs() []CoreModelsEnrollmentEnrollmentCA { + if o == nil || isNil(o.CAs) { + var ret []CoreModelsEnrollmentEnrollmentCA + return ret + } + return o.CAs +} + +// GetCAsOk returns a tuple with the CAs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CoreModelsEnrollmentEnrollmentTemplate) GetCAsOk() ([]CoreModelsEnrollmentEnrollmentCA, bool) { + if o == nil || isNil(o.CAs) { + return nil, false + } + return o.CAs, true +} + +// HasCAs returns a boolean if a field has been set. +func (o *CoreModelsEnrollmentEnrollmentTemplate) HasCAs() bool { + if o != nil && !isNil(o.CAs) { + return true + } + + return false +} + +// SetCAs gets a reference to the given []CoreModelsEnrollmentEnrollmentCA and assigns it to the CAs field. +func (o *CoreModelsEnrollmentEnrollmentTemplate) SetCAs(v []CoreModelsEnrollmentEnrollmentCA) { + o.CAs = v +} + +// GetEnrollmentFields returns the EnrollmentFields field value if set, zero value otherwise. +func (o *CoreModelsEnrollmentEnrollmentTemplate) GetEnrollmentFields() []ModelsTemplateEnrollmentField { + if o == nil || isNil(o.EnrollmentFields) { + var ret []ModelsTemplateEnrollmentField + return ret + } + return o.EnrollmentFields +} + +// GetEnrollmentFieldsOk returns a tuple with the EnrollmentFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CoreModelsEnrollmentEnrollmentTemplate) GetEnrollmentFieldsOk() ([]ModelsTemplateEnrollmentField, bool) { + if o == nil || isNil(o.EnrollmentFields) { + return nil, false + } + return o.EnrollmentFields, true +} + +// HasEnrollmentFields returns a boolean if a field has been set. +func (o *CoreModelsEnrollmentEnrollmentTemplate) HasEnrollmentFields() bool { + if o != nil && !isNil(o.EnrollmentFields) { + return true + } + + return false +} + +// SetEnrollmentFields gets a reference to the given []ModelsTemplateEnrollmentField and assigns it to the EnrollmentFields field. +func (o *CoreModelsEnrollmentEnrollmentTemplate) SetEnrollmentFields(v []ModelsTemplateEnrollmentField) { + o.EnrollmentFields = v +} + +// GetMetadataFields returns the MetadataFields field value if set, zero value otherwise. +func (o *CoreModelsEnrollmentEnrollmentTemplate) GetMetadataFields() []ModelsTemplateMetadataField { + if o == nil || isNil(o.MetadataFields) { + var ret []ModelsTemplateMetadataField + return ret + } + return o.MetadataFields +} + +// GetMetadataFieldsOk returns a tuple with the MetadataFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CoreModelsEnrollmentEnrollmentTemplate) GetMetadataFieldsOk() ([]ModelsTemplateMetadataField, bool) { + if o == nil || isNil(o.MetadataFields) { + return nil, false + } + return o.MetadataFields, true +} + +// HasMetadataFields returns a boolean if a field has been set. +func (o *CoreModelsEnrollmentEnrollmentTemplate) HasMetadataFields() bool { + if o != nil && !isNil(o.MetadataFields) { + return true + } + + return false +} + +// SetMetadataFields gets a reference to the given []ModelsTemplateMetadataField and assigns it to the MetadataFields field. +func (o *CoreModelsEnrollmentEnrollmentTemplate) SetMetadataFields(v []ModelsTemplateMetadataField) { + o.MetadataFields = v +} + +// GetRegexes returns the Regexes field value if set, zero value otherwise. +func (o *CoreModelsEnrollmentEnrollmentTemplate) GetRegexes() []ModelsTemplateRegex { + if o == nil || isNil(o.Regexes) { + var ret []ModelsTemplateRegex + return ret + } + return o.Regexes +} + +// GetRegexesOk returns a tuple with the Regexes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CoreModelsEnrollmentEnrollmentTemplate) GetRegexesOk() ([]ModelsTemplateRegex, bool) { + if o == nil || isNil(o.Regexes) { + return nil, false + } + return o.Regexes, true +} + +// HasRegexes returns a boolean if a field has been set. +func (o *CoreModelsEnrollmentEnrollmentTemplate) HasRegexes() bool { + if o != nil && !isNil(o.Regexes) { + return true + } + + return false +} + +// SetRegexes gets a reference to the given []ModelsTemplateRegex and assigns it to the Regexes field. +func (o *CoreModelsEnrollmentEnrollmentTemplate) SetRegexes(v []ModelsTemplateRegex) { + o.Regexes = v +} + +// GetExtendedKeyUsages returns the ExtendedKeyUsages field value if set, zero value otherwise. +func (o *CoreModelsEnrollmentEnrollmentTemplate) GetExtendedKeyUsages() []ModelsExtendedKeyUsage { + if o == nil || isNil(o.ExtendedKeyUsages) { + var ret []ModelsExtendedKeyUsage + return ret + } + return o.ExtendedKeyUsages +} + +// GetExtendedKeyUsagesOk returns a tuple with the ExtendedKeyUsages field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CoreModelsEnrollmentEnrollmentTemplate) GetExtendedKeyUsagesOk() ([]ModelsExtendedKeyUsage, bool) { + if o == nil || isNil(o.ExtendedKeyUsages) { + return nil, false + } + return o.ExtendedKeyUsages, true +} + +// HasExtendedKeyUsages returns a boolean if a field has been set. +func (o *CoreModelsEnrollmentEnrollmentTemplate) HasExtendedKeyUsages() bool { + if o != nil && !isNil(o.ExtendedKeyUsages) { + return true + } + + return false +} + +// SetExtendedKeyUsages gets a reference to the given []ModelsExtendedKeyUsage and assigns it to the ExtendedKeyUsages field. +func (o *CoreModelsEnrollmentEnrollmentTemplate) SetExtendedKeyUsages(v []ModelsExtendedKeyUsage) { + o.ExtendedKeyUsages = v +} + +// GetCurve returns the Curve field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CoreModelsEnrollmentEnrollmentTemplate) GetCurve() string { + if o == nil || isNil(o.Curve.Get()) { + var ret string + return ret + } + return *o.Curve.Get() +} + +// GetCurveOk returns a tuple with the Curve field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CoreModelsEnrollmentEnrollmentTemplate) GetCurveOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Curve.Get(), o.Curve.IsSet() +} + +// HasCurve returns a boolean if a field has been set. +func (o *CoreModelsEnrollmentEnrollmentTemplate) HasCurve() bool { + if o != nil && o.Curve.IsSet() { + return true + } + + return false +} + +// SetCurve gets a reference to the given NullableString and assigns it to the Curve field. +func (o *CoreModelsEnrollmentEnrollmentTemplate) SetCurve(v string) { + o.Curve.Set(&v) +} + +// SetCurveNil sets the value for Curve to be an explicit nil +func (o *CoreModelsEnrollmentEnrollmentTemplate) SetCurveNil() { + o.Curve.Set(nil) +} + +// UnsetCurve ensures that no value is present for Curve, not even an explicit nil +func (o *CoreModelsEnrollmentEnrollmentTemplate) UnsetCurve() { + o.Curve.Unset() +} + +func (o CoreModelsEnrollmentEnrollmentTemplate) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CoreModelsEnrollmentEnrollmentTemplate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.Name) { + toSerialize["Name"] = o.Name + } + if !isNil(o.DisplayName) { + toSerialize["DisplayName"] = o.DisplayName + } + if !isNil(o.Forest) { + toSerialize["Forest"] = o.Forest + } + if !isNil(o.KeySize) { + toSerialize["KeySize"] = o.KeySize + } + if !isNil(o.KeyType) { + toSerialize["KeyType"] = o.KeyType + } + if !isNil(o.RequiresApproval) { + toSerialize["RequiresApproval"] = o.RequiresApproval + } + if !isNil(o.RFCEnforcement) { + toSerialize["RFCEnforcement"] = o.RFCEnforcement + } + if !isNil(o.CAs) { + toSerialize["CAs"] = o.CAs + } + if !isNil(o.EnrollmentFields) { + toSerialize["EnrollmentFields"] = o.EnrollmentFields + } + if !isNil(o.MetadataFields) { + toSerialize["MetadataFields"] = o.MetadataFields + } + if !isNil(o.Regexes) { + toSerialize["Regexes"] = o.Regexes + } + if !isNil(o.ExtendedKeyUsages) { + toSerialize["ExtendedKeyUsages"] = o.ExtendedKeyUsages + } + if o.Curve.IsSet() { + toSerialize["Curve"] = o.Curve.Get() + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CoreModelsEnrollmentEnrollmentTemplate) UnmarshalJSON(bytes []byte) (err error) { + varCoreModelsEnrollmentEnrollmentTemplate := _CoreModelsEnrollmentEnrollmentTemplate{} + + if err = json.Unmarshal(bytes, &varCoreModelsEnrollmentEnrollmentTemplate); err == nil { + *o = CoreModelsEnrollmentEnrollmentTemplate(varCoreModelsEnrollmentEnrollmentTemplate) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "Name") + delete(additionalProperties, "DisplayName") + delete(additionalProperties, "Forest") + delete(additionalProperties, "KeySize") + delete(additionalProperties, "KeyType") + delete(additionalProperties, "RequiresApproval") + delete(additionalProperties, "RFCEnforcement") + delete(additionalProperties, "CAs") + delete(additionalProperties, "EnrollmentFields") + delete(additionalProperties, "MetadataFields") + delete(additionalProperties, "Regexes") + delete(additionalProperties, "ExtendedKeyUsages") + delete(additionalProperties, "Curve") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCoreModelsEnrollmentEnrollmentTemplate struct { + value *CoreModelsEnrollmentEnrollmentTemplate + isSet bool +} + +func (v NullableCoreModelsEnrollmentEnrollmentTemplate) Get() *CoreModelsEnrollmentEnrollmentTemplate { + return v.value +} + +func (v *NullableCoreModelsEnrollmentEnrollmentTemplate) Set(val *CoreModelsEnrollmentEnrollmentTemplate) { + v.value = val + v.isSet = true +} + +func (v NullableCoreModelsEnrollmentEnrollmentTemplate) IsSet() bool { + return v.isSet +} + +func (v *NullableCoreModelsEnrollmentEnrollmentTemplate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCoreModelsEnrollmentEnrollmentTemplate(val *CoreModelsEnrollmentEnrollmentTemplate) *NullableCoreModelsEnrollmentEnrollmentTemplate { + return &NullableCoreModelsEnrollmentEnrollmentTemplate{value: val, isSet: true} +} + +func (v NullableCoreModelsEnrollmentEnrollmentTemplate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCoreModelsEnrollmentEnrollmentTemplate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_core_models_enrollment_enrollment_template_ca_response.go b/v1/api/keyfactor/model_core_models_enrollment_enrollment_template_ca_response.go new file mode 100644 index 0000000..daa5d5c --- /dev/null +++ b/v1/api/keyfactor/model_core_models_enrollment_enrollment_template_ca_response.go @@ -0,0 +1,195 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the CoreModelsEnrollmentEnrollmentTemplateCAResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CoreModelsEnrollmentEnrollmentTemplateCAResponse{} + +// CoreModelsEnrollmentEnrollmentTemplateCAResponse struct for CoreModelsEnrollmentEnrollmentTemplateCAResponse +type CoreModelsEnrollmentEnrollmentTemplateCAResponse struct { + Templates []CoreModelsEnrollmentEnrollmentTemplate `json:"Templates,omitempty"` + StandaloneCAs []CoreModelsEnrollmentEnrollmentCA `json:"StandaloneCAs,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CoreModelsEnrollmentEnrollmentTemplateCAResponse CoreModelsEnrollmentEnrollmentTemplateCAResponse + +// NewCoreModelsEnrollmentEnrollmentTemplateCAResponse instantiates a new CoreModelsEnrollmentEnrollmentTemplateCAResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCoreModelsEnrollmentEnrollmentTemplateCAResponse() *CoreModelsEnrollmentEnrollmentTemplateCAResponse { + this := CoreModelsEnrollmentEnrollmentTemplateCAResponse{} + return &this +} + +// NewCoreModelsEnrollmentEnrollmentTemplateCAResponseWithDefaults instantiates a new CoreModelsEnrollmentEnrollmentTemplateCAResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCoreModelsEnrollmentEnrollmentTemplateCAResponseWithDefaults() *CoreModelsEnrollmentEnrollmentTemplateCAResponse { + this := CoreModelsEnrollmentEnrollmentTemplateCAResponse{} + return &this +} + +// GetTemplates returns the Templates field value if set, zero value otherwise. +func (o *CoreModelsEnrollmentEnrollmentTemplateCAResponse) GetTemplates() []CoreModelsEnrollmentEnrollmentTemplate { + if o == nil || isNil(o.Templates) { + var ret []CoreModelsEnrollmentEnrollmentTemplate + return ret + } + return o.Templates +} + +// GetTemplatesOk returns a tuple with the Templates field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CoreModelsEnrollmentEnrollmentTemplateCAResponse) GetTemplatesOk() ([]CoreModelsEnrollmentEnrollmentTemplate, bool) { + if o == nil || isNil(o.Templates) { + return nil, false + } + return o.Templates, true +} + +// HasTemplates returns a boolean if a field has been set. +func (o *CoreModelsEnrollmentEnrollmentTemplateCAResponse) HasTemplates() bool { + if o != nil && !isNil(o.Templates) { + return true + } + + return false +} + +// SetTemplates gets a reference to the given []CoreModelsEnrollmentEnrollmentTemplate and assigns it to the Templates field. +func (o *CoreModelsEnrollmentEnrollmentTemplateCAResponse) SetTemplates(v []CoreModelsEnrollmentEnrollmentTemplate) { + o.Templates = v +} + +// GetStandaloneCAs returns the StandaloneCAs field value if set, zero value otherwise. +func (o *CoreModelsEnrollmentEnrollmentTemplateCAResponse) GetStandaloneCAs() []CoreModelsEnrollmentEnrollmentCA { + if o == nil || isNil(o.StandaloneCAs) { + var ret []CoreModelsEnrollmentEnrollmentCA + return ret + } + return o.StandaloneCAs +} + +// GetStandaloneCAsOk returns a tuple with the StandaloneCAs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CoreModelsEnrollmentEnrollmentTemplateCAResponse) GetStandaloneCAsOk() ([]CoreModelsEnrollmentEnrollmentCA, bool) { + if o == nil || isNil(o.StandaloneCAs) { + return nil, false + } + return o.StandaloneCAs, true +} + +// HasStandaloneCAs returns a boolean if a field has been set. +func (o *CoreModelsEnrollmentEnrollmentTemplateCAResponse) HasStandaloneCAs() bool { + if o != nil && !isNil(o.StandaloneCAs) { + return true + } + + return false +} + +// SetStandaloneCAs gets a reference to the given []CoreModelsEnrollmentEnrollmentCA and assigns it to the StandaloneCAs field. +func (o *CoreModelsEnrollmentEnrollmentTemplateCAResponse) SetStandaloneCAs(v []CoreModelsEnrollmentEnrollmentCA) { + o.StandaloneCAs = v +} + +func (o CoreModelsEnrollmentEnrollmentTemplateCAResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CoreModelsEnrollmentEnrollmentTemplateCAResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Templates) { + toSerialize["Templates"] = o.Templates + } + if !isNil(o.StandaloneCAs) { + toSerialize["StandaloneCAs"] = o.StandaloneCAs + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CoreModelsEnrollmentEnrollmentTemplateCAResponse) UnmarshalJSON(bytes []byte) (err error) { + varCoreModelsEnrollmentEnrollmentTemplateCAResponse := _CoreModelsEnrollmentEnrollmentTemplateCAResponse{} + + if err = json.Unmarshal(bytes, &varCoreModelsEnrollmentEnrollmentTemplateCAResponse); err == nil { + *o = CoreModelsEnrollmentEnrollmentTemplateCAResponse(varCoreModelsEnrollmentEnrollmentTemplateCAResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Templates") + delete(additionalProperties, "StandaloneCAs") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCoreModelsEnrollmentEnrollmentTemplateCAResponse struct { + value *CoreModelsEnrollmentEnrollmentTemplateCAResponse + isSet bool +} + +func (v NullableCoreModelsEnrollmentEnrollmentTemplateCAResponse) Get() *CoreModelsEnrollmentEnrollmentTemplateCAResponse { + return v.value +} + +func (v *NullableCoreModelsEnrollmentEnrollmentTemplateCAResponse) Set(val *CoreModelsEnrollmentEnrollmentTemplateCAResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCoreModelsEnrollmentEnrollmentTemplateCAResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCoreModelsEnrollmentEnrollmentTemplateCAResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCoreModelsEnrollmentEnrollmentTemplateCAResponse(val *CoreModelsEnrollmentEnrollmentTemplateCAResponse) *NullableCoreModelsEnrollmentEnrollmentTemplateCAResponse { + return &NullableCoreModelsEnrollmentEnrollmentTemplateCAResponse{value: val, isSet: true} +} + +func (v NullableCoreModelsEnrollmentEnrollmentTemplateCAResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCoreModelsEnrollmentEnrollmentTemplateCAResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v2/api/command/model_css_cms_data_model_models_pam_provider_type_param_value.go b/v1/api/keyfactor/model_css_cms_data_model_models_pam_provider_type_param_value.go similarity index 97% rename from v2/api/command/model_css_cms_data_model_models_pam_provider_type_param_value.go rename to v1/api/keyfactor/model_css_cms_data_model_models_pam_provider_type_param_value.go index b64af91..27759a4 100644 --- a/v2/api/command/model_css_cms_data_model_models_pam_provider_type_param_value.go +++ b/v1/api/keyfactor/model_css_cms_data_model_models_pam_provider_type_param_value.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "encoding/json" diff --git a/v2/api/command/model_css_cms_data_model_models_provider.go b/v1/api/keyfactor/model_css_cms_data_model_models_provider.go similarity index 97% rename from v2/api/command/model_css_cms_data_model_models_provider.go rename to v1/api/keyfactor/model_css_cms_data_model_models_provider.go index 28415a5..98fa99e 100644 --- a/v2/api/command/model_css_cms_data_model_models_provider.go +++ b/v1/api/keyfactor/model_css_cms_data_model_models_provider.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "encoding/json" diff --git a/v2/api/command/model_css_cms_data_model_models_provider_type.go b/v1/api/keyfactor/model_css_cms_data_model_models_provider_type.go similarity index 96% rename from v2/api/command/model_css_cms_data_model_models_provider_type.go rename to v1/api/keyfactor/model_css_cms_data_model_models_provider_type.go index 62c1817..05423eb 100644 --- a/v2/api/command/model_css_cms_data_model_models_provider_type.go +++ b/v1/api/keyfactor/model_css_cms_data_model_models_provider_type.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "encoding/json" diff --git a/v2/api/command/model_css_cms_data_model_models_provider_type_param.go b/v1/api/keyfactor/model_css_cms_data_model_models_provider_type_param.go similarity index 97% rename from v2/api/command/model_css_cms_data_model_models_provider_type_param.go rename to v1/api/keyfactor/model_css_cms_data_model_models_provider_type_param.go index b894949..9f112cb 100644 --- a/v2/api/command/model_css_cms_data_model_models_provider_type_param.go +++ b/v1/api/keyfactor/model_css_cms_data_model_models_provider_type_param.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "encoding/json" diff --git a/v1/api/keyfactor/model_keyfactor_api_models_alerts_alert_certificate_query_alert_certificate_query_response.go b/v1/api/keyfactor/model_keyfactor_api_models_alerts_alert_certificate_query_alert_certificate_query_response.go new file mode 100644 index 0000000..78728e4 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_alerts_alert_certificate_query_alert_certificate_query_response.go @@ -0,0 +1,195 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse{} + +// KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse struct for KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse +type KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse struct { + Id *int32 `json:"Id,omitempty"` + Name *string `json:"Name,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse + +// NewKeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse instantiates a new KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse() *KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse { + this := KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse{} + return &this +} + +// NewKeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponseWithDefaults instantiates a new KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponseWithDefaults() *KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse { + this := KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse) SetId(v int32) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse) GetName() string { + if o == nil || isNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse) GetNameOk() (*string, bool) { + if o == nil || isNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse) HasName() bool { + if o != nil && !isNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse) SetName(v string) { + o.Name = &v +} + +func (o KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.Name) { + toSerialize["Name"] = o.Name + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse := _KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse); err == nil { + *o = KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse(varKeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "Name") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse struct { + value *KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse) Get() *KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse) Set(val *KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse(val *KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse) *NullableKeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse { + return &NullableKeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_alerts_alert_schedule_alert_schedule_request.go b/v1/api/keyfactor/model_keyfactor_api_models_alerts_alert_schedule_alert_schedule_request.go new file mode 100644 index 0000000..beba9bc --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_alerts_alert_schedule_alert_schedule_request.go @@ -0,0 +1,158 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest{} + +// KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest struct for KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest +type KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest struct { + Schedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"Schedule,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest + +// NewKeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest instantiates a new KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest() *KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest { + this := KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest{} + return &this +} + +// NewKeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequestWithDefaults instantiates a new KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequestWithDefaults() *KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest { + this := KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest{} + return &this +} + +// GetSchedule returns the Schedule field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.Schedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.Schedule +} + +// GetScheduleOk returns a tuple with the Schedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.Schedule) { + return nil, false + } + return o.Schedule, true +} + +// HasSchedule returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest) HasSchedule() bool { + if o != nil && !isNil(o.Schedule) { + return true + } + + return false +} + +// SetSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the Schedule field. +func (o *KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.Schedule = &v +} + +func (o KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Schedule) { + toSerialize["Schedule"] = o.Schedule + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest := _KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest); err == nil { + *o = KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest(varKeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Schedule") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest struct { + value *KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest) Get() *KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest) Set(val *KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest(val *KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest) *NullableKeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest { + return &NullableKeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_alerts_alert_schedule_alert_schedule_response.go b/v1/api/keyfactor/model_keyfactor_api_models_alerts_alert_schedule_alert_schedule_response.go new file mode 100644 index 0000000..b6db81f --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_alerts_alert_schedule_alert_schedule_response.go @@ -0,0 +1,158 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse{} + +// KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse struct for KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse +type KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse struct { + Schedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"Schedule,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse + +// NewKeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse instantiates a new KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse() *KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse { + this := KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse{} + return &this +} + +// NewKeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponseWithDefaults instantiates a new KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponseWithDefaults() *KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse { + this := KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse{} + return &this +} + +// GetSchedule returns the Schedule field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.Schedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.Schedule +} + +// GetScheduleOk returns a tuple with the Schedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.Schedule) { + return nil, false + } + return o.Schedule, true +} + +// HasSchedule returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse) HasSchedule() bool { + if o != nil && !isNil(o.Schedule) { + return true + } + + return false +} + +// SetSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the Schedule field. +func (o *KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.Schedule = &v +} + +func (o KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Schedule) { + toSerialize["Schedule"] = o.Schedule + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse := _KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse); err == nil { + *o = KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse(varKeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Schedule") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse struct { + value *KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse) Get() *KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse) Set(val *KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse(val *KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse) *NullableKeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse { + return &NullableKeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_alerts_alert_template_alert_template_response.go b/v1/api/keyfactor/model_keyfactor_api_models_alerts_alert_template_alert_template_response.go new file mode 100644 index 0000000..cdda377 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_alerts_alert_template_alert_template_response.go @@ -0,0 +1,269 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse{} + +// KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse struct for KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse +type KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse struct { + Id *int32 `json:"Id,omitempty"` + DisplayName *string `json:"DisplayName,omitempty"` + ForestRoot *string `json:"ForestRoot,omitempty"` + ConfigurationTenant *string `json:"ConfigurationTenant,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse + +// NewKeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse instantiates a new KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse() *KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse { + this := KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse{} + return &this +} + +// NewKeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponseWithDefaults instantiates a new KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponseWithDefaults() *KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse { + this := KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse) SetId(v int32) { + o.Id = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse) GetDisplayName() string { + if o == nil || isNil(o.DisplayName) { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse) GetDisplayNameOk() (*string, bool) { + if o == nil || isNil(o.DisplayName) { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse) HasDisplayName() bool { + if o != nil && !isNil(o.DisplayName) { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetForestRoot returns the ForestRoot field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse) GetForestRoot() string { + if o == nil || isNil(o.ForestRoot) { + var ret string + return ret + } + return *o.ForestRoot +} + +// GetForestRootOk returns a tuple with the ForestRoot field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse) GetForestRootOk() (*string, bool) { + if o == nil || isNil(o.ForestRoot) { + return nil, false + } + return o.ForestRoot, true +} + +// HasForestRoot returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse) HasForestRoot() bool { + if o != nil && !isNil(o.ForestRoot) { + return true + } + + return false +} + +// SetForestRoot gets a reference to the given string and assigns it to the ForestRoot field. +func (o *KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse) SetForestRoot(v string) { + o.ForestRoot = &v +} + +// GetConfigurationTenant returns the ConfigurationTenant field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse) GetConfigurationTenant() string { + if o == nil || isNil(o.ConfigurationTenant) { + var ret string + return ret + } + return *o.ConfigurationTenant +} + +// GetConfigurationTenantOk returns a tuple with the ConfigurationTenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse) GetConfigurationTenantOk() (*string, bool) { + if o == nil || isNil(o.ConfigurationTenant) { + return nil, false + } + return o.ConfigurationTenant, true +} + +// HasConfigurationTenant returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse) HasConfigurationTenant() bool { + if o != nil && !isNil(o.ConfigurationTenant) { + return true + } + + return false +} + +// SetConfigurationTenant gets a reference to the given string and assigns it to the ConfigurationTenant field. +func (o *KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse) SetConfigurationTenant(v string) { + o.ConfigurationTenant = &v +} + +func (o KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.DisplayName) { + toSerialize["DisplayName"] = o.DisplayName + } + if !isNil(o.ForestRoot) { + toSerialize["ForestRoot"] = o.ForestRoot + } + if !isNil(o.ConfigurationTenant) { + toSerialize["ConfigurationTenant"] = o.ConfigurationTenant + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse := _KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse); err == nil { + *o = KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse(varKeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "DisplayName") + delete(additionalProperties, "ForestRoot") + delete(additionalProperties, "ConfigurationTenant") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse struct { + value *KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse) Get() *KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse) Set(val *KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse(val *KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse) *NullableKeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse { + return &NullableKeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_alerts_denied_denied_alert_creation_request.go b/v1/api/keyfactor/model_keyfactor_api_models_alerts_denied_denied_alert_creation_request.go new file mode 100644 index 0000000..61df88c --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_alerts_denied_denied_alert_creation_request.go @@ -0,0 +1,353 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest{} + +// KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest struct for KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest +type KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest struct { + DisplayName string `json:"DisplayName"` + Subject string `json:"Subject"` + Message string `json:"Message"` + TemplateId *int32 `json:"TemplateId,omitempty"` + RegisteredEventHandler *KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest `json:"RegisteredEventHandler,omitempty"` + Recipients []string `json:"Recipients,omitempty"` + EventHandlerParameters []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest `json:"EventHandlerParameters,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest + +// NewKeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest instantiates a new KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest(displayName string, subject string, message string) *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest { + this := KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest{} + this.DisplayName = displayName + this.Subject = subject + this.Message = message + return &this +} + +// NewKeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequestWithDefaults instantiates a new KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequestWithDefaults() *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest { + this := KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest{} + return &this +} + +// GetDisplayName returns the DisplayName field value +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) GetDisplayName() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayName, true +} + +// SetDisplayName sets field value +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) SetDisplayName(v string) { + o.DisplayName = v +} + +// GetSubject returns the Subject field value +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) GetSubject() string { + if o == nil { + var ret string + return ret + } + + return o.Subject +} + +// GetSubjectOk returns a tuple with the Subject field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) GetSubjectOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Subject, true +} + +// SetSubject sets field value +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) SetSubject(v string) { + o.Subject = v +} + +// GetMessage returns the Message field value +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) SetMessage(v string) { + o.Message = v +} + +// GetTemplateId returns the TemplateId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) GetTemplateId() int32 { + if o == nil || isNil(o.TemplateId) { + var ret int32 + return ret + } + return *o.TemplateId +} + +// GetTemplateIdOk returns a tuple with the TemplateId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) GetTemplateIdOk() (*int32, bool) { + if o == nil || isNil(o.TemplateId) { + return nil, false + } + return o.TemplateId, true +} + +// HasTemplateId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) HasTemplateId() bool { + if o != nil && !isNil(o.TemplateId) { + return true + } + + return false +} + +// SetTemplateId gets a reference to the given int32 and assigns it to the TemplateId field. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) SetTemplateId(v int32) { + o.TemplateId = &v +} + +// GetRegisteredEventHandler returns the RegisteredEventHandler field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) GetRegisteredEventHandler() KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest { + if o == nil || isNil(o.RegisteredEventHandler) { + var ret KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest + return ret + } + return *o.RegisteredEventHandler +} + +// GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) GetRegisteredEventHandlerOk() (*KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest, bool) { + if o == nil || isNil(o.RegisteredEventHandler) { + return nil, false + } + return o.RegisteredEventHandler, true +} + +// HasRegisteredEventHandler returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) HasRegisteredEventHandler() bool { + if o != nil && !isNil(o.RegisteredEventHandler) { + return true + } + + return false +} + +// SetRegisteredEventHandler gets a reference to the given KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest and assigns it to the RegisteredEventHandler field. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) SetRegisteredEventHandler(v KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest) { + o.RegisteredEventHandler = &v +} + +// GetRecipients returns the Recipients field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) GetRecipients() []string { + if o == nil || isNil(o.Recipients) { + var ret []string + return ret + } + return o.Recipients +} + +// GetRecipientsOk returns a tuple with the Recipients field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) GetRecipientsOk() ([]string, bool) { + if o == nil || isNil(o.Recipients) { + return nil, false + } + return o.Recipients, true +} + +// HasRecipients returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) HasRecipients() bool { + if o != nil && !isNil(o.Recipients) { + return true + } + + return false +} + +// SetRecipients gets a reference to the given []string and assigns it to the Recipients field. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) SetRecipients(v []string) { + o.Recipients = v +} + +// GetEventHandlerParameters returns the EventHandlerParameters field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) GetEventHandlerParameters() []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest { + if o == nil || isNil(o.EventHandlerParameters) { + var ret []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest + return ret + } + return o.EventHandlerParameters +} + +// GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) GetEventHandlerParametersOk() ([]KeyfactorApiModelsEventHandlerEventHandlerParameterRequest, bool) { + if o == nil || isNil(o.EventHandlerParameters) { + return nil, false + } + return o.EventHandlerParameters, true +} + +// HasEventHandlerParameters returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) HasEventHandlerParameters() bool { + if o != nil && !isNil(o.EventHandlerParameters) { + return true + } + + return false +} + +// SetEventHandlerParameters gets a reference to the given []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest and assigns it to the EventHandlerParameters field. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) SetEventHandlerParameters(v []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest) { + o.EventHandlerParameters = v +} + +func (o KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["DisplayName"] = o.DisplayName + toSerialize["Subject"] = o.Subject + toSerialize["Message"] = o.Message + if !isNil(o.TemplateId) { + toSerialize["TemplateId"] = o.TemplateId + } + if !isNil(o.RegisteredEventHandler) { + toSerialize["RegisteredEventHandler"] = o.RegisteredEventHandler + } + if !isNil(o.Recipients) { + toSerialize["Recipients"] = o.Recipients + } + if !isNil(o.EventHandlerParameters) { + toSerialize["EventHandlerParameters"] = o.EventHandlerParameters + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest := _KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest); err == nil { + *o = KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest(varKeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "DisplayName") + delete(additionalProperties, "Subject") + delete(additionalProperties, "Message") + delete(additionalProperties, "TemplateId") + delete(additionalProperties, "RegisteredEventHandler") + delete(additionalProperties, "Recipients") + delete(additionalProperties, "EventHandlerParameters") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest struct { + value *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) Get() *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) Set(val *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest(val *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) *NullableKeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest { + return &NullableKeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_alerts_denied_denied_alert_definition_response.go b/v1/api/keyfactor/model_keyfactor_api_models_alerts_denied_denied_alert_definition_response.go new file mode 100644 index 0000000..e4adef7 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_alerts_denied_denied_alert_definition_response.go @@ -0,0 +1,417 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse{} + +// KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse struct for KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse +type KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse struct { + Id *int32 `json:"Id,omitempty"` + DisplayName *string `json:"DisplayName,omitempty"` + Subject *string `json:"Subject,omitempty"` + Message *string `json:"Message,omitempty"` + Recipients []string `json:"Recipients,omitempty"` + Template *KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse `json:"Template,omitempty"` + RegisteredEventHandler *KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse `json:"RegisteredEventHandler,omitempty"` + EventHandlerParameters []KeyfactorApiModelsEventHandlerEventHandlerParameterResponse `json:"EventHandlerParameters,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse + +// NewKeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse instantiates a new KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse() *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse { + this := KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse{} + return &this +} + +// NewKeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponseWithDefaults instantiates a new KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponseWithDefaults() *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse { + this := KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) SetId(v int32) { + o.Id = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) GetDisplayName() string { + if o == nil || isNil(o.DisplayName) { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) GetDisplayNameOk() (*string, bool) { + if o == nil || isNil(o.DisplayName) { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) HasDisplayName() bool { + if o != nil && !isNil(o.DisplayName) { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetSubject returns the Subject field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) GetSubject() string { + if o == nil || isNil(o.Subject) { + var ret string + return ret + } + return *o.Subject +} + +// GetSubjectOk returns a tuple with the Subject field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) GetSubjectOk() (*string, bool) { + if o == nil || isNil(o.Subject) { + return nil, false + } + return o.Subject, true +} + +// HasSubject returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) HasSubject() bool { + if o != nil && !isNil(o.Subject) { + return true + } + + return false +} + +// SetSubject gets a reference to the given string and assigns it to the Subject field. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) SetSubject(v string) { + o.Subject = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) GetMessage() string { + if o == nil || isNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) GetMessageOk() (*string, bool) { + if o == nil || isNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) HasMessage() bool { + if o != nil && !isNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) SetMessage(v string) { + o.Message = &v +} + +// GetRecipients returns the Recipients field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) GetRecipients() []string { + if o == nil || isNil(o.Recipients) { + var ret []string + return ret + } + return o.Recipients +} + +// GetRecipientsOk returns a tuple with the Recipients field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) GetRecipientsOk() ([]string, bool) { + if o == nil || isNil(o.Recipients) { + return nil, false + } + return o.Recipients, true +} + +// HasRecipients returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) HasRecipients() bool { + if o != nil && !isNil(o.Recipients) { + return true + } + + return false +} + +// SetRecipients gets a reference to the given []string and assigns it to the Recipients field. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) SetRecipients(v []string) { + o.Recipients = v +} + +// GetTemplate returns the Template field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) GetTemplate() KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse { + if o == nil || isNil(o.Template) { + var ret KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse + return ret + } + return *o.Template +} + +// GetTemplateOk returns a tuple with the Template field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) GetTemplateOk() (*KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse, bool) { + if o == nil || isNil(o.Template) { + return nil, false + } + return o.Template, true +} + +// HasTemplate returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) HasTemplate() bool { + if o != nil && !isNil(o.Template) { + return true + } + + return false +} + +// SetTemplate gets a reference to the given KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse and assigns it to the Template field. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) SetTemplate(v KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse) { + o.Template = &v +} + +// GetRegisteredEventHandler returns the RegisteredEventHandler field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) GetRegisteredEventHandler() KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse { + if o == nil || isNil(o.RegisteredEventHandler) { + var ret KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse + return ret + } + return *o.RegisteredEventHandler +} + +// GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) GetRegisteredEventHandlerOk() (*KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse, bool) { + if o == nil || isNil(o.RegisteredEventHandler) { + return nil, false + } + return o.RegisteredEventHandler, true +} + +// HasRegisteredEventHandler returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) HasRegisteredEventHandler() bool { + if o != nil && !isNil(o.RegisteredEventHandler) { + return true + } + + return false +} + +// SetRegisteredEventHandler gets a reference to the given KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse and assigns it to the RegisteredEventHandler field. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) SetRegisteredEventHandler(v KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse) { + o.RegisteredEventHandler = &v +} + +// GetEventHandlerParameters returns the EventHandlerParameters field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) GetEventHandlerParameters() []KeyfactorApiModelsEventHandlerEventHandlerParameterResponse { + if o == nil || isNil(o.EventHandlerParameters) { + var ret []KeyfactorApiModelsEventHandlerEventHandlerParameterResponse + return ret + } + return o.EventHandlerParameters +} + +// GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) GetEventHandlerParametersOk() ([]KeyfactorApiModelsEventHandlerEventHandlerParameterResponse, bool) { + if o == nil || isNil(o.EventHandlerParameters) { + return nil, false + } + return o.EventHandlerParameters, true +} + +// HasEventHandlerParameters returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) HasEventHandlerParameters() bool { + if o != nil && !isNil(o.EventHandlerParameters) { + return true + } + + return false +} + +// SetEventHandlerParameters gets a reference to the given []KeyfactorApiModelsEventHandlerEventHandlerParameterResponse and assigns it to the EventHandlerParameters field. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) SetEventHandlerParameters(v []KeyfactorApiModelsEventHandlerEventHandlerParameterResponse) { + o.EventHandlerParameters = v +} + +func (o KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.DisplayName) { + toSerialize["DisplayName"] = o.DisplayName + } + if !isNil(o.Subject) { + toSerialize["Subject"] = o.Subject + } + if !isNil(o.Message) { + toSerialize["Message"] = o.Message + } + if !isNil(o.Recipients) { + toSerialize["Recipients"] = o.Recipients + } + if !isNil(o.Template) { + toSerialize["Template"] = o.Template + } + if !isNil(o.RegisteredEventHandler) { + toSerialize["RegisteredEventHandler"] = o.RegisteredEventHandler + } + if !isNil(o.EventHandlerParameters) { + toSerialize["EventHandlerParameters"] = o.EventHandlerParameters + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse := _KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse); err == nil { + *o = KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse(varKeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "DisplayName") + delete(additionalProperties, "Subject") + delete(additionalProperties, "Message") + delete(additionalProperties, "Recipients") + delete(additionalProperties, "Template") + delete(additionalProperties, "RegisteredEventHandler") + delete(additionalProperties, "EventHandlerParameters") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse struct { + value *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) Get() *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) Set(val *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse(val *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) *NullableKeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse { + return &NullableKeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_alerts_denied_denied_alert_update_request.go b/v1/api/keyfactor/model_keyfactor_api_models_alerts_denied_denied_alert_update_request.go new file mode 100644 index 0000000..a1f4043 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_alerts_denied_denied_alert_update_request.go @@ -0,0 +1,390 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest{} + +// KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest struct for KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest +type KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest struct { + Id *int32 `json:"Id,omitempty"` + DisplayName string `json:"DisplayName"` + Subject string `json:"Subject"` + Message string `json:"Message"` + TemplateId *int32 `json:"TemplateId,omitempty"` + RegisteredEventHandler *KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest `json:"RegisteredEventHandler,omitempty"` + Recipients []string `json:"Recipients,omitempty"` + EventHandlerParameters []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest `json:"EventHandlerParameters,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest + +// NewKeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest instantiates a new KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest(displayName string, subject string, message string) *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest { + this := KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest{} + this.DisplayName = displayName + this.Subject = subject + this.Message = message + return &this +} + +// NewKeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequestWithDefaults instantiates a new KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequestWithDefaults() *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest { + this := KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) SetId(v int32) { + o.Id = &v +} + +// GetDisplayName returns the DisplayName field value +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) GetDisplayName() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayName, true +} + +// SetDisplayName sets field value +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) SetDisplayName(v string) { + o.DisplayName = v +} + +// GetSubject returns the Subject field value +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) GetSubject() string { + if o == nil { + var ret string + return ret + } + + return o.Subject +} + +// GetSubjectOk returns a tuple with the Subject field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) GetSubjectOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Subject, true +} + +// SetSubject sets field value +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) SetSubject(v string) { + o.Subject = v +} + +// GetMessage returns the Message field value +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) SetMessage(v string) { + o.Message = v +} + +// GetTemplateId returns the TemplateId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) GetTemplateId() int32 { + if o == nil || isNil(o.TemplateId) { + var ret int32 + return ret + } + return *o.TemplateId +} + +// GetTemplateIdOk returns a tuple with the TemplateId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) GetTemplateIdOk() (*int32, bool) { + if o == nil || isNil(o.TemplateId) { + return nil, false + } + return o.TemplateId, true +} + +// HasTemplateId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) HasTemplateId() bool { + if o != nil && !isNil(o.TemplateId) { + return true + } + + return false +} + +// SetTemplateId gets a reference to the given int32 and assigns it to the TemplateId field. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) SetTemplateId(v int32) { + o.TemplateId = &v +} + +// GetRegisteredEventHandler returns the RegisteredEventHandler field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) GetRegisteredEventHandler() KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest { + if o == nil || isNil(o.RegisteredEventHandler) { + var ret KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest + return ret + } + return *o.RegisteredEventHandler +} + +// GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) GetRegisteredEventHandlerOk() (*KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest, bool) { + if o == nil || isNil(o.RegisteredEventHandler) { + return nil, false + } + return o.RegisteredEventHandler, true +} + +// HasRegisteredEventHandler returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) HasRegisteredEventHandler() bool { + if o != nil && !isNil(o.RegisteredEventHandler) { + return true + } + + return false +} + +// SetRegisteredEventHandler gets a reference to the given KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest and assigns it to the RegisteredEventHandler field. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) SetRegisteredEventHandler(v KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest) { + o.RegisteredEventHandler = &v +} + +// GetRecipients returns the Recipients field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) GetRecipients() []string { + if o == nil || isNil(o.Recipients) { + var ret []string + return ret + } + return o.Recipients +} + +// GetRecipientsOk returns a tuple with the Recipients field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) GetRecipientsOk() ([]string, bool) { + if o == nil || isNil(o.Recipients) { + return nil, false + } + return o.Recipients, true +} + +// HasRecipients returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) HasRecipients() bool { + if o != nil && !isNil(o.Recipients) { + return true + } + + return false +} + +// SetRecipients gets a reference to the given []string and assigns it to the Recipients field. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) SetRecipients(v []string) { + o.Recipients = v +} + +// GetEventHandlerParameters returns the EventHandlerParameters field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) GetEventHandlerParameters() []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest { + if o == nil || isNil(o.EventHandlerParameters) { + var ret []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest + return ret + } + return o.EventHandlerParameters +} + +// GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) GetEventHandlerParametersOk() ([]KeyfactorApiModelsEventHandlerEventHandlerParameterRequest, bool) { + if o == nil || isNil(o.EventHandlerParameters) { + return nil, false + } + return o.EventHandlerParameters, true +} + +// HasEventHandlerParameters returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) HasEventHandlerParameters() bool { + if o != nil && !isNil(o.EventHandlerParameters) { + return true + } + + return false +} + +// SetEventHandlerParameters gets a reference to the given []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest and assigns it to the EventHandlerParameters field. +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) SetEventHandlerParameters(v []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest) { + o.EventHandlerParameters = v +} + +func (o KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + toSerialize["DisplayName"] = o.DisplayName + toSerialize["Subject"] = o.Subject + toSerialize["Message"] = o.Message + if !isNil(o.TemplateId) { + toSerialize["TemplateId"] = o.TemplateId + } + if !isNil(o.RegisteredEventHandler) { + toSerialize["RegisteredEventHandler"] = o.RegisteredEventHandler + } + if !isNil(o.Recipients) { + toSerialize["Recipients"] = o.Recipients + } + if !isNil(o.EventHandlerParameters) { + toSerialize["EventHandlerParameters"] = o.EventHandlerParameters + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest := _KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest); err == nil { + *o = KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest(varKeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "DisplayName") + delete(additionalProperties, "Subject") + delete(additionalProperties, "Message") + delete(additionalProperties, "TemplateId") + delete(additionalProperties, "RegisteredEventHandler") + delete(additionalProperties, "Recipients") + delete(additionalProperties, "EventHandlerParameters") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest struct { + value *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) Get() *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) Set(val *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest(val *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) *NullableKeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest { + return &NullableKeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_alerts_expiration_expiration_alert_creation_request.go b/v1/api/keyfactor/model_keyfactor_api_models_alerts_expiration_expiration_alert_creation_request.go new file mode 100644 index 0000000..a2e5cd1 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_alerts_expiration_expiration_alert_creation_request.go @@ -0,0 +1,381 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest{} + +// KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest struct for KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest +type KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest struct { + DisplayName string `json:"DisplayName"` + Subject string `json:"Subject"` + Message string `json:"Message"` + ExpirationWarningDays int32 `json:"ExpirationWarningDays"` + CertificateQueryId *int32 `json:"CertificateQueryId,omitempty"` + RegisteredEventHandler *KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest `json:"RegisteredEventHandler,omitempty"` + Recipients []string `json:"Recipients,omitempty"` + EventHandlerParameters []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest `json:"EventHandlerParameters,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest + +// NewKeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest instantiates a new KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest(displayName string, subject string, message string, expirationWarningDays int32) *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest { + this := KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest{} + this.DisplayName = displayName + this.Subject = subject + this.Message = message + this.ExpirationWarningDays = expirationWarningDays + return &this +} + +// NewKeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequestWithDefaults instantiates a new KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequestWithDefaults() *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest { + this := KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest{} + return &this +} + +// GetDisplayName returns the DisplayName field value +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) GetDisplayName() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayName, true +} + +// SetDisplayName sets field value +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) SetDisplayName(v string) { + o.DisplayName = v +} + +// GetSubject returns the Subject field value +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) GetSubject() string { + if o == nil { + var ret string + return ret + } + + return o.Subject +} + +// GetSubjectOk returns a tuple with the Subject field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) GetSubjectOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Subject, true +} + +// SetSubject sets field value +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) SetSubject(v string) { + o.Subject = v +} + +// GetMessage returns the Message field value +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) SetMessage(v string) { + o.Message = v +} + +// GetExpirationWarningDays returns the ExpirationWarningDays field value +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) GetExpirationWarningDays() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.ExpirationWarningDays +} + +// GetExpirationWarningDaysOk returns a tuple with the ExpirationWarningDays field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) GetExpirationWarningDaysOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.ExpirationWarningDays, true +} + +// SetExpirationWarningDays sets field value +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) SetExpirationWarningDays(v int32) { + o.ExpirationWarningDays = v +} + +// GetCertificateQueryId returns the CertificateQueryId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) GetCertificateQueryId() int32 { + if o == nil || isNil(o.CertificateQueryId) { + var ret int32 + return ret + } + return *o.CertificateQueryId +} + +// GetCertificateQueryIdOk returns a tuple with the CertificateQueryId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) GetCertificateQueryIdOk() (*int32, bool) { + if o == nil || isNil(o.CertificateQueryId) { + return nil, false + } + return o.CertificateQueryId, true +} + +// HasCertificateQueryId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) HasCertificateQueryId() bool { + if o != nil && !isNil(o.CertificateQueryId) { + return true + } + + return false +} + +// SetCertificateQueryId gets a reference to the given int32 and assigns it to the CertificateQueryId field. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) SetCertificateQueryId(v int32) { + o.CertificateQueryId = &v +} + +// GetRegisteredEventHandler returns the RegisteredEventHandler field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) GetRegisteredEventHandler() KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest { + if o == nil || isNil(o.RegisteredEventHandler) { + var ret KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest + return ret + } + return *o.RegisteredEventHandler +} + +// GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) GetRegisteredEventHandlerOk() (*KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest, bool) { + if o == nil || isNil(o.RegisteredEventHandler) { + return nil, false + } + return o.RegisteredEventHandler, true +} + +// HasRegisteredEventHandler returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) HasRegisteredEventHandler() bool { + if o != nil && !isNil(o.RegisteredEventHandler) { + return true + } + + return false +} + +// SetRegisteredEventHandler gets a reference to the given KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest and assigns it to the RegisteredEventHandler field. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) SetRegisteredEventHandler(v KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest) { + o.RegisteredEventHandler = &v +} + +// GetRecipients returns the Recipients field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) GetRecipients() []string { + if o == nil || isNil(o.Recipients) { + var ret []string + return ret + } + return o.Recipients +} + +// GetRecipientsOk returns a tuple with the Recipients field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) GetRecipientsOk() ([]string, bool) { + if o == nil || isNil(o.Recipients) { + return nil, false + } + return o.Recipients, true +} + +// HasRecipients returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) HasRecipients() bool { + if o != nil && !isNil(o.Recipients) { + return true + } + + return false +} + +// SetRecipients gets a reference to the given []string and assigns it to the Recipients field. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) SetRecipients(v []string) { + o.Recipients = v +} + +// GetEventHandlerParameters returns the EventHandlerParameters field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) GetEventHandlerParameters() []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest { + if o == nil || isNil(o.EventHandlerParameters) { + var ret []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest + return ret + } + return o.EventHandlerParameters +} + +// GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) GetEventHandlerParametersOk() ([]KeyfactorApiModelsEventHandlerEventHandlerParameterRequest, bool) { + if o == nil || isNil(o.EventHandlerParameters) { + return nil, false + } + return o.EventHandlerParameters, true +} + +// HasEventHandlerParameters returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) HasEventHandlerParameters() bool { + if o != nil && !isNil(o.EventHandlerParameters) { + return true + } + + return false +} + +// SetEventHandlerParameters gets a reference to the given []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest and assigns it to the EventHandlerParameters field. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) SetEventHandlerParameters(v []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest) { + o.EventHandlerParameters = v +} + +func (o KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["DisplayName"] = o.DisplayName + toSerialize["Subject"] = o.Subject + toSerialize["Message"] = o.Message + toSerialize["ExpirationWarningDays"] = o.ExpirationWarningDays + if !isNil(o.CertificateQueryId) { + toSerialize["CertificateQueryId"] = o.CertificateQueryId + } + if !isNil(o.RegisteredEventHandler) { + toSerialize["RegisteredEventHandler"] = o.RegisteredEventHandler + } + if !isNil(o.Recipients) { + toSerialize["Recipients"] = o.Recipients + } + if !isNil(o.EventHandlerParameters) { + toSerialize["EventHandlerParameters"] = o.EventHandlerParameters + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest := _KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest); err == nil { + *o = KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest(varKeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "DisplayName") + delete(additionalProperties, "Subject") + delete(additionalProperties, "Message") + delete(additionalProperties, "ExpirationWarningDays") + delete(additionalProperties, "CertificateQueryId") + delete(additionalProperties, "RegisteredEventHandler") + delete(additionalProperties, "Recipients") + delete(additionalProperties, "EventHandlerParameters") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest struct { + value *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) Get() *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) Set(val *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest(val *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) *NullableKeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest { + return &NullableKeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_alerts_expiration_expiration_alert_definition_response.go b/v1/api/keyfactor/model_keyfactor_api_models_alerts_expiration_expiration_alert_definition_response.go new file mode 100644 index 0000000..4565320 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_alerts_expiration_expiration_alert_definition_response.go @@ -0,0 +1,454 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse{} + +// KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse struct for KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse +type KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse struct { + Id *int32 `json:"Id,omitempty"` + DisplayName *string `json:"DisplayName,omitempty"` + Subject *string `json:"Subject,omitempty"` + Message *string `json:"Message,omitempty"` + ExpirationWarningDays *int32 `json:"ExpirationWarningDays,omitempty"` + Recipients []string `json:"Recipients,omitempty"` + CertificateQuery *KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse `json:"CertificateQuery,omitempty"` + RegisteredEventHandler *KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse `json:"RegisteredEventHandler,omitempty"` + EventHandlerParameters []KeyfactorApiModelsEventHandlerEventHandlerParameterResponse `json:"EventHandlerParameters,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse + +// NewKeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse instantiates a new KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse() *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse { + this := KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse{} + return &this +} + +// NewKeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponseWithDefaults instantiates a new KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponseWithDefaults() *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse { + this := KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) SetId(v int32) { + o.Id = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) GetDisplayName() string { + if o == nil || isNil(o.DisplayName) { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) GetDisplayNameOk() (*string, bool) { + if o == nil || isNil(o.DisplayName) { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) HasDisplayName() bool { + if o != nil && !isNil(o.DisplayName) { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetSubject returns the Subject field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) GetSubject() string { + if o == nil || isNil(o.Subject) { + var ret string + return ret + } + return *o.Subject +} + +// GetSubjectOk returns a tuple with the Subject field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) GetSubjectOk() (*string, bool) { + if o == nil || isNil(o.Subject) { + return nil, false + } + return o.Subject, true +} + +// HasSubject returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) HasSubject() bool { + if o != nil && !isNil(o.Subject) { + return true + } + + return false +} + +// SetSubject gets a reference to the given string and assigns it to the Subject field. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) SetSubject(v string) { + o.Subject = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) GetMessage() string { + if o == nil || isNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) GetMessageOk() (*string, bool) { + if o == nil || isNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) HasMessage() bool { + if o != nil && !isNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) SetMessage(v string) { + o.Message = &v +} + +// GetExpirationWarningDays returns the ExpirationWarningDays field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) GetExpirationWarningDays() int32 { + if o == nil || isNil(o.ExpirationWarningDays) { + var ret int32 + return ret + } + return *o.ExpirationWarningDays +} + +// GetExpirationWarningDaysOk returns a tuple with the ExpirationWarningDays field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) GetExpirationWarningDaysOk() (*int32, bool) { + if o == nil || isNil(o.ExpirationWarningDays) { + return nil, false + } + return o.ExpirationWarningDays, true +} + +// HasExpirationWarningDays returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) HasExpirationWarningDays() bool { + if o != nil && !isNil(o.ExpirationWarningDays) { + return true + } + + return false +} + +// SetExpirationWarningDays gets a reference to the given int32 and assigns it to the ExpirationWarningDays field. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) SetExpirationWarningDays(v int32) { + o.ExpirationWarningDays = &v +} + +// GetRecipients returns the Recipients field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) GetRecipients() []string { + if o == nil || isNil(o.Recipients) { + var ret []string + return ret + } + return o.Recipients +} + +// GetRecipientsOk returns a tuple with the Recipients field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) GetRecipientsOk() ([]string, bool) { + if o == nil || isNil(o.Recipients) { + return nil, false + } + return o.Recipients, true +} + +// HasRecipients returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) HasRecipients() bool { + if o != nil && !isNil(o.Recipients) { + return true + } + + return false +} + +// SetRecipients gets a reference to the given []string and assigns it to the Recipients field. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) SetRecipients(v []string) { + o.Recipients = v +} + +// GetCertificateQuery returns the CertificateQuery field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) GetCertificateQuery() KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse { + if o == nil || isNil(o.CertificateQuery) { + var ret KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse + return ret + } + return *o.CertificateQuery +} + +// GetCertificateQueryOk returns a tuple with the CertificateQuery field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) GetCertificateQueryOk() (*KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse, bool) { + if o == nil || isNil(o.CertificateQuery) { + return nil, false + } + return o.CertificateQuery, true +} + +// HasCertificateQuery returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) HasCertificateQuery() bool { + if o != nil && !isNil(o.CertificateQuery) { + return true + } + + return false +} + +// SetCertificateQuery gets a reference to the given KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse and assigns it to the CertificateQuery field. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) SetCertificateQuery(v KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse) { + o.CertificateQuery = &v +} + +// GetRegisteredEventHandler returns the RegisteredEventHandler field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) GetRegisteredEventHandler() KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse { + if o == nil || isNil(o.RegisteredEventHandler) { + var ret KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse + return ret + } + return *o.RegisteredEventHandler +} + +// GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) GetRegisteredEventHandlerOk() (*KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse, bool) { + if o == nil || isNil(o.RegisteredEventHandler) { + return nil, false + } + return o.RegisteredEventHandler, true +} + +// HasRegisteredEventHandler returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) HasRegisteredEventHandler() bool { + if o != nil && !isNil(o.RegisteredEventHandler) { + return true + } + + return false +} + +// SetRegisteredEventHandler gets a reference to the given KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse and assigns it to the RegisteredEventHandler field. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) SetRegisteredEventHandler(v KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse) { + o.RegisteredEventHandler = &v +} + +// GetEventHandlerParameters returns the EventHandlerParameters field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) GetEventHandlerParameters() []KeyfactorApiModelsEventHandlerEventHandlerParameterResponse { + if o == nil || isNil(o.EventHandlerParameters) { + var ret []KeyfactorApiModelsEventHandlerEventHandlerParameterResponse + return ret + } + return o.EventHandlerParameters +} + +// GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) GetEventHandlerParametersOk() ([]KeyfactorApiModelsEventHandlerEventHandlerParameterResponse, bool) { + if o == nil || isNil(o.EventHandlerParameters) { + return nil, false + } + return o.EventHandlerParameters, true +} + +// HasEventHandlerParameters returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) HasEventHandlerParameters() bool { + if o != nil && !isNil(o.EventHandlerParameters) { + return true + } + + return false +} + +// SetEventHandlerParameters gets a reference to the given []KeyfactorApiModelsEventHandlerEventHandlerParameterResponse and assigns it to the EventHandlerParameters field. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) SetEventHandlerParameters(v []KeyfactorApiModelsEventHandlerEventHandlerParameterResponse) { + o.EventHandlerParameters = v +} + +func (o KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.DisplayName) { + toSerialize["DisplayName"] = o.DisplayName + } + if !isNil(o.Subject) { + toSerialize["Subject"] = o.Subject + } + if !isNil(o.Message) { + toSerialize["Message"] = o.Message + } + if !isNil(o.ExpirationWarningDays) { + toSerialize["ExpirationWarningDays"] = o.ExpirationWarningDays + } + if !isNil(o.Recipients) { + toSerialize["Recipients"] = o.Recipients + } + if !isNil(o.CertificateQuery) { + toSerialize["CertificateQuery"] = o.CertificateQuery + } + if !isNil(o.RegisteredEventHandler) { + toSerialize["RegisteredEventHandler"] = o.RegisteredEventHandler + } + if !isNil(o.EventHandlerParameters) { + toSerialize["EventHandlerParameters"] = o.EventHandlerParameters + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse := _KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse); err == nil { + *o = KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse(varKeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "DisplayName") + delete(additionalProperties, "Subject") + delete(additionalProperties, "Message") + delete(additionalProperties, "ExpirationWarningDays") + delete(additionalProperties, "Recipients") + delete(additionalProperties, "CertificateQuery") + delete(additionalProperties, "RegisteredEventHandler") + delete(additionalProperties, "EventHandlerParameters") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse struct { + value *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) Get() *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) Set(val *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse(val *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) *NullableKeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse { + return &NullableKeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_alerts_expiration_expiration_alert_response.go b/v1/api/keyfactor/model_keyfactor_api_models_alerts_expiration_expiration_alert_response.go new file mode 100644 index 0000000..f16e339 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_alerts_expiration_expiration_alert_response.go @@ -0,0 +1,428 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsAlertsExpirationExpirationAlertResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsAlertsExpirationExpirationAlertResponse{} + +// KeyfactorApiModelsAlertsExpirationExpirationAlertResponse struct for KeyfactorApiModelsAlertsExpirationExpirationAlertResponse +type KeyfactorApiModelsAlertsExpirationExpirationAlertResponse struct { + CAName *string `json:"CAName,omitempty"` + CARow *int64 `json:"CARow,omitempty"` + IssuedCN NullableString `json:"IssuedCN,omitempty"` + Expiry *string `json:"Expiry,omitempty"` + Subject *string `json:"Subject,omitempty"` + Message *string `json:"Message,omitempty"` + Recipients []string `json:"Recipients,omitempty"` + SendDate *string `json:"SendDate,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsAlertsExpirationExpirationAlertResponse KeyfactorApiModelsAlertsExpirationExpirationAlertResponse + +// NewKeyfactorApiModelsAlertsExpirationExpirationAlertResponse instantiates a new KeyfactorApiModelsAlertsExpirationExpirationAlertResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsAlertsExpirationExpirationAlertResponse() *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse { + this := KeyfactorApiModelsAlertsExpirationExpirationAlertResponse{} + return &this +} + +// NewKeyfactorApiModelsAlertsExpirationExpirationAlertResponseWithDefaults instantiates a new KeyfactorApiModelsAlertsExpirationExpirationAlertResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsAlertsExpirationExpirationAlertResponseWithDefaults() *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse { + this := KeyfactorApiModelsAlertsExpirationExpirationAlertResponse{} + return &this +} + +// GetCAName returns the CAName field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) GetCAName() string { + if o == nil || isNil(o.CAName) { + var ret string + return ret + } + return *o.CAName +} + +// GetCANameOk returns a tuple with the CAName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) GetCANameOk() (*string, bool) { + if o == nil || isNil(o.CAName) { + return nil, false + } + return o.CAName, true +} + +// HasCAName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) HasCAName() bool { + if o != nil && !isNil(o.CAName) { + return true + } + + return false +} + +// SetCAName gets a reference to the given string and assigns it to the CAName field. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) SetCAName(v string) { + o.CAName = &v +} + +// GetCARow returns the CARow field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) GetCARow() int64 { + if o == nil || isNil(o.CARow) { + var ret int64 + return ret + } + return *o.CARow +} + +// GetCARowOk returns a tuple with the CARow field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) GetCARowOk() (*int64, bool) { + if o == nil || isNil(o.CARow) { + return nil, false + } + return o.CARow, true +} + +// HasCARow returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) HasCARow() bool { + if o != nil && !isNil(o.CARow) { + return true + } + + return false +} + +// SetCARow gets a reference to the given int64 and assigns it to the CARow field. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) SetCARow(v int64) { + o.CARow = &v +} + +// GetIssuedCN returns the IssuedCN field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) GetIssuedCN() string { + if o == nil || isNil(o.IssuedCN.Get()) { + var ret string + return ret + } + return *o.IssuedCN.Get() +} + +// GetIssuedCNOk returns a tuple with the IssuedCN field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) GetIssuedCNOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IssuedCN.Get(), o.IssuedCN.IsSet() +} + +// HasIssuedCN returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) HasIssuedCN() bool { + if o != nil && o.IssuedCN.IsSet() { + return true + } + + return false +} + +// SetIssuedCN gets a reference to the given NullableString and assigns it to the IssuedCN field. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) SetIssuedCN(v string) { + o.IssuedCN.Set(&v) +} + +// SetIssuedCNNil sets the value for IssuedCN to be an explicit nil +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) SetIssuedCNNil() { + o.IssuedCN.Set(nil) +} + +// UnsetIssuedCN ensures that no value is present for IssuedCN, not even an explicit nil +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) UnsetIssuedCN() { + o.IssuedCN.Unset() +} + +// GetExpiry returns the Expiry field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) GetExpiry() string { + if o == nil || isNil(o.Expiry) { + var ret string + return ret + } + return *o.Expiry +} + +// GetExpiryOk returns a tuple with the Expiry field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) GetExpiryOk() (*string, bool) { + if o == nil || isNil(o.Expiry) { + return nil, false + } + return o.Expiry, true +} + +// HasExpiry returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) HasExpiry() bool { + if o != nil && !isNil(o.Expiry) { + return true + } + + return false +} + +// SetExpiry gets a reference to the given string and assigns it to the Expiry field. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) SetExpiry(v string) { + o.Expiry = &v +} + +// GetSubject returns the Subject field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) GetSubject() string { + if o == nil || isNil(o.Subject) { + var ret string + return ret + } + return *o.Subject +} + +// GetSubjectOk returns a tuple with the Subject field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) GetSubjectOk() (*string, bool) { + if o == nil || isNil(o.Subject) { + return nil, false + } + return o.Subject, true +} + +// HasSubject returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) HasSubject() bool { + if o != nil && !isNil(o.Subject) { + return true + } + + return false +} + +// SetSubject gets a reference to the given string and assigns it to the Subject field. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) SetSubject(v string) { + o.Subject = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) GetMessage() string { + if o == nil || isNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) GetMessageOk() (*string, bool) { + if o == nil || isNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) HasMessage() bool { + if o != nil && !isNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) SetMessage(v string) { + o.Message = &v +} + +// GetRecipients returns the Recipients field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) GetRecipients() []string { + if o == nil || isNil(o.Recipients) { + var ret []string + return ret + } + return o.Recipients +} + +// GetRecipientsOk returns a tuple with the Recipients field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) GetRecipientsOk() ([]string, bool) { + if o == nil || isNil(o.Recipients) { + return nil, false + } + return o.Recipients, true +} + +// HasRecipients returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) HasRecipients() bool { + if o != nil && !isNil(o.Recipients) { + return true + } + + return false +} + +// SetRecipients gets a reference to the given []string and assigns it to the Recipients field. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) SetRecipients(v []string) { + o.Recipients = v +} + +// GetSendDate returns the SendDate field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) GetSendDate() string { + if o == nil || isNil(o.SendDate) { + var ret string + return ret + } + return *o.SendDate +} + +// GetSendDateOk returns a tuple with the SendDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) GetSendDateOk() (*string, bool) { + if o == nil || isNil(o.SendDate) { + return nil, false + } + return o.SendDate, true +} + +// HasSendDate returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) HasSendDate() bool { + if o != nil && !isNil(o.SendDate) { + return true + } + + return false +} + +// SetSendDate gets a reference to the given string and assigns it to the SendDate field. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) SetSendDate(v string) { + o.SendDate = &v +} + +func (o KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.CAName) { + toSerialize["CAName"] = o.CAName + } + if !isNil(o.CARow) { + toSerialize["CARow"] = o.CARow + } + if o.IssuedCN.IsSet() { + toSerialize["IssuedCN"] = o.IssuedCN.Get() + } + if !isNil(o.Expiry) { + toSerialize["Expiry"] = o.Expiry + } + if !isNil(o.Subject) { + toSerialize["Subject"] = o.Subject + } + if !isNil(o.Message) { + toSerialize["Message"] = o.Message + } + if !isNil(o.Recipients) { + toSerialize["Recipients"] = o.Recipients + } + if !isNil(o.SendDate) { + toSerialize["SendDate"] = o.SendDate + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsAlertsExpirationExpirationAlertResponse := _KeyfactorApiModelsAlertsExpirationExpirationAlertResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsAlertsExpirationExpirationAlertResponse); err == nil { + *o = KeyfactorApiModelsAlertsExpirationExpirationAlertResponse(varKeyfactorApiModelsAlertsExpirationExpirationAlertResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "CAName") + delete(additionalProperties, "CARow") + delete(additionalProperties, "IssuedCN") + delete(additionalProperties, "Expiry") + delete(additionalProperties, "Subject") + delete(additionalProperties, "Message") + delete(additionalProperties, "Recipients") + delete(additionalProperties, "SendDate") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsAlertsExpirationExpirationAlertResponse struct { + value *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsAlertsExpirationExpirationAlertResponse) Get() *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsAlertsExpirationExpirationAlertResponse) Set(val *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsAlertsExpirationExpirationAlertResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsAlertsExpirationExpirationAlertResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsAlertsExpirationExpirationAlertResponse(val *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) *NullableKeyfactorApiModelsAlertsExpirationExpirationAlertResponse { + return &NullableKeyfactorApiModelsAlertsExpirationExpirationAlertResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsAlertsExpirationExpirationAlertResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsAlertsExpirationExpirationAlertResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_alerts_expiration_expiration_alert_test_all_request.go b/v1/api/keyfactor/model_keyfactor_api_models_alerts_expiration_expiration_alert_test_all_request.go new file mode 100644 index 0000000..8a4625c --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_alerts_expiration_expiration_alert_test_all_request.go @@ -0,0 +1,233 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" + "time" +) + +// checks if the KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest{} + +// KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest struct for KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest +type KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest struct { + EvaluationDate *time.Time `json:"EvaluationDate,omitempty"` + PreviousEvaluationDate *time.Time `json:"PreviousEvaluationDate,omitempty"` + SendAlerts *bool `json:"SendAlerts,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest + +// NewKeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest instantiates a new KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest() *KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest { + this := KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest{} + return &this +} + +// NewKeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequestWithDefaults instantiates a new KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequestWithDefaults() *KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest { + this := KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest{} + return &this +} + +// GetEvaluationDate returns the EvaluationDate field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest) GetEvaluationDate() time.Time { + if o == nil || isNil(o.EvaluationDate) { + var ret time.Time + return ret + } + return *o.EvaluationDate +} + +// GetEvaluationDateOk returns a tuple with the EvaluationDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest) GetEvaluationDateOk() (*time.Time, bool) { + if o == nil || isNil(o.EvaluationDate) { + return nil, false + } + return o.EvaluationDate, true +} + +// HasEvaluationDate returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest) HasEvaluationDate() bool { + if o != nil && !isNil(o.EvaluationDate) { + return true + } + + return false +} + +// SetEvaluationDate gets a reference to the given time.Time and assigns it to the EvaluationDate field. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest) SetEvaluationDate(v time.Time) { + o.EvaluationDate = &v +} + +// GetPreviousEvaluationDate returns the PreviousEvaluationDate field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest) GetPreviousEvaluationDate() time.Time { + if o == nil || isNil(o.PreviousEvaluationDate) { + var ret time.Time + return ret + } + return *o.PreviousEvaluationDate +} + +// GetPreviousEvaluationDateOk returns a tuple with the PreviousEvaluationDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest) GetPreviousEvaluationDateOk() (*time.Time, bool) { + if o == nil || isNil(o.PreviousEvaluationDate) { + return nil, false + } + return o.PreviousEvaluationDate, true +} + +// HasPreviousEvaluationDate returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest) HasPreviousEvaluationDate() bool { + if o != nil && !isNil(o.PreviousEvaluationDate) { + return true + } + + return false +} + +// SetPreviousEvaluationDate gets a reference to the given time.Time and assigns it to the PreviousEvaluationDate field. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest) SetPreviousEvaluationDate(v time.Time) { + o.PreviousEvaluationDate = &v +} + +// GetSendAlerts returns the SendAlerts field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest) GetSendAlerts() bool { + if o == nil || isNil(o.SendAlerts) { + var ret bool + return ret + } + return *o.SendAlerts +} + +// GetSendAlertsOk returns a tuple with the SendAlerts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest) GetSendAlertsOk() (*bool, bool) { + if o == nil || isNil(o.SendAlerts) { + return nil, false + } + return o.SendAlerts, true +} + +// HasSendAlerts returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest) HasSendAlerts() bool { + if o != nil && !isNil(o.SendAlerts) { + return true + } + + return false +} + +// SetSendAlerts gets a reference to the given bool and assigns it to the SendAlerts field. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest) SetSendAlerts(v bool) { + o.SendAlerts = &v +} + +func (o KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.EvaluationDate) { + toSerialize["EvaluationDate"] = o.EvaluationDate + } + if !isNil(o.PreviousEvaluationDate) { + toSerialize["PreviousEvaluationDate"] = o.PreviousEvaluationDate + } + if !isNil(o.SendAlerts) { + toSerialize["SendAlerts"] = o.SendAlerts + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest := _KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest); err == nil { + *o = KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest(varKeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "EvaluationDate") + delete(additionalProperties, "PreviousEvaluationDate") + delete(additionalProperties, "SendAlerts") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest struct { + value *KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest) Get() *KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest) Set(val *KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest(val *KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest) *NullableKeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest { + return &NullableKeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_alerts_expiration_expiration_alert_test_request.go b/v1/api/keyfactor/model_keyfactor_api_models_alerts_expiration_expiration_alert_test_request.go new file mode 100644 index 0000000..e587af3 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_alerts_expiration_expiration_alert_test_request.go @@ -0,0 +1,270 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" + "time" +) + +// checks if the KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest{} + +// KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest struct for KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest +type KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest struct { + AlertId *int32 `json:"AlertId,omitempty"` + EvaluationDate *time.Time `json:"EvaluationDate,omitempty"` + PreviousEvaluationDate *time.Time `json:"PreviousEvaluationDate,omitempty"` + SendAlerts *bool `json:"SendAlerts,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest + +// NewKeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest instantiates a new KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest() *KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest { + this := KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest{} + return &this +} + +// NewKeyfactorApiModelsAlertsExpirationExpirationAlertTestRequestWithDefaults instantiates a new KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsAlertsExpirationExpirationAlertTestRequestWithDefaults() *KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest { + this := KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest{} + return &this +} + +// GetAlertId returns the AlertId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest) GetAlertId() int32 { + if o == nil || isNil(o.AlertId) { + var ret int32 + return ret + } + return *o.AlertId +} + +// GetAlertIdOk returns a tuple with the AlertId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest) GetAlertIdOk() (*int32, bool) { + if o == nil || isNil(o.AlertId) { + return nil, false + } + return o.AlertId, true +} + +// HasAlertId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest) HasAlertId() bool { + if o != nil && !isNil(o.AlertId) { + return true + } + + return false +} + +// SetAlertId gets a reference to the given int32 and assigns it to the AlertId field. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest) SetAlertId(v int32) { + o.AlertId = &v +} + +// GetEvaluationDate returns the EvaluationDate field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest) GetEvaluationDate() time.Time { + if o == nil || isNil(o.EvaluationDate) { + var ret time.Time + return ret + } + return *o.EvaluationDate +} + +// GetEvaluationDateOk returns a tuple with the EvaluationDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest) GetEvaluationDateOk() (*time.Time, bool) { + if o == nil || isNil(o.EvaluationDate) { + return nil, false + } + return o.EvaluationDate, true +} + +// HasEvaluationDate returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest) HasEvaluationDate() bool { + if o != nil && !isNil(o.EvaluationDate) { + return true + } + + return false +} + +// SetEvaluationDate gets a reference to the given time.Time and assigns it to the EvaluationDate field. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest) SetEvaluationDate(v time.Time) { + o.EvaluationDate = &v +} + +// GetPreviousEvaluationDate returns the PreviousEvaluationDate field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest) GetPreviousEvaluationDate() time.Time { + if o == nil || isNil(o.PreviousEvaluationDate) { + var ret time.Time + return ret + } + return *o.PreviousEvaluationDate +} + +// GetPreviousEvaluationDateOk returns a tuple with the PreviousEvaluationDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest) GetPreviousEvaluationDateOk() (*time.Time, bool) { + if o == nil || isNil(o.PreviousEvaluationDate) { + return nil, false + } + return o.PreviousEvaluationDate, true +} + +// HasPreviousEvaluationDate returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest) HasPreviousEvaluationDate() bool { + if o != nil && !isNil(o.PreviousEvaluationDate) { + return true + } + + return false +} + +// SetPreviousEvaluationDate gets a reference to the given time.Time and assigns it to the PreviousEvaluationDate field. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest) SetPreviousEvaluationDate(v time.Time) { + o.PreviousEvaluationDate = &v +} + +// GetSendAlerts returns the SendAlerts field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest) GetSendAlerts() bool { + if o == nil || isNil(o.SendAlerts) { + var ret bool + return ret + } + return *o.SendAlerts +} + +// GetSendAlertsOk returns a tuple with the SendAlerts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest) GetSendAlertsOk() (*bool, bool) { + if o == nil || isNil(o.SendAlerts) { + return nil, false + } + return o.SendAlerts, true +} + +// HasSendAlerts returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest) HasSendAlerts() bool { + if o != nil && !isNil(o.SendAlerts) { + return true + } + + return false +} + +// SetSendAlerts gets a reference to the given bool and assigns it to the SendAlerts field. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest) SetSendAlerts(v bool) { + o.SendAlerts = &v +} + +func (o KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.AlertId) { + toSerialize["AlertId"] = o.AlertId + } + if !isNil(o.EvaluationDate) { + toSerialize["EvaluationDate"] = o.EvaluationDate + } + if !isNil(o.PreviousEvaluationDate) { + toSerialize["PreviousEvaluationDate"] = o.PreviousEvaluationDate + } + if !isNil(o.SendAlerts) { + toSerialize["SendAlerts"] = o.SendAlerts + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest := _KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest); err == nil { + *o = KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest(varKeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "AlertId") + delete(additionalProperties, "EvaluationDate") + delete(additionalProperties, "PreviousEvaluationDate") + delete(additionalProperties, "SendAlerts") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest struct { + value *KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest) Get() *KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest) Set(val *KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest(val *KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest) *NullableKeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest { + return &NullableKeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_alerts_expiration_expiration_alert_test_response.go b/v1/api/keyfactor/model_keyfactor_api_models_alerts_expiration_expiration_alert_test_response.go new file mode 100644 index 0000000..5e32650 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_alerts_expiration_expiration_alert_test_response.go @@ -0,0 +1,195 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse{} + +// KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse struct for KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse +type KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse struct { + ExpirationAlerts []KeyfactorApiModelsAlertsExpirationExpirationAlertResponse `json:"ExpirationAlerts,omitempty"` + AlertBuildResult *int32 `json:"AlertBuildResult,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse + +// NewKeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse instantiates a new KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse() *KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse { + this := KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse{} + return &this +} + +// NewKeyfactorApiModelsAlertsExpirationExpirationAlertTestResponseWithDefaults instantiates a new KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsAlertsExpirationExpirationAlertTestResponseWithDefaults() *KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse { + this := KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse{} + return &this +} + +// GetExpirationAlerts returns the ExpirationAlerts field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse) GetExpirationAlerts() []KeyfactorApiModelsAlertsExpirationExpirationAlertResponse { + if o == nil || isNil(o.ExpirationAlerts) { + var ret []KeyfactorApiModelsAlertsExpirationExpirationAlertResponse + return ret + } + return o.ExpirationAlerts +} + +// GetExpirationAlertsOk returns a tuple with the ExpirationAlerts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse) GetExpirationAlertsOk() ([]KeyfactorApiModelsAlertsExpirationExpirationAlertResponse, bool) { + if o == nil || isNil(o.ExpirationAlerts) { + return nil, false + } + return o.ExpirationAlerts, true +} + +// HasExpirationAlerts returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse) HasExpirationAlerts() bool { + if o != nil && !isNil(o.ExpirationAlerts) { + return true + } + + return false +} + +// SetExpirationAlerts gets a reference to the given []KeyfactorApiModelsAlertsExpirationExpirationAlertResponse and assigns it to the ExpirationAlerts field. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse) SetExpirationAlerts(v []KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) { + o.ExpirationAlerts = v +} + +// GetAlertBuildResult returns the AlertBuildResult field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse) GetAlertBuildResult() int32 { + if o == nil || isNil(o.AlertBuildResult) { + var ret int32 + return ret + } + return *o.AlertBuildResult +} + +// GetAlertBuildResultOk returns a tuple with the AlertBuildResult field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse) GetAlertBuildResultOk() (*int32, bool) { + if o == nil || isNil(o.AlertBuildResult) { + return nil, false + } + return o.AlertBuildResult, true +} + +// HasAlertBuildResult returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse) HasAlertBuildResult() bool { + if o != nil && !isNil(o.AlertBuildResult) { + return true + } + + return false +} + +// SetAlertBuildResult gets a reference to the given int32 and assigns it to the AlertBuildResult field. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse) SetAlertBuildResult(v int32) { + o.AlertBuildResult = &v +} + +func (o KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.ExpirationAlerts) { + toSerialize["ExpirationAlerts"] = o.ExpirationAlerts + } + if !isNil(o.AlertBuildResult) { + toSerialize["AlertBuildResult"] = o.AlertBuildResult + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse := _KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse); err == nil { + *o = KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse(varKeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "ExpirationAlerts") + delete(additionalProperties, "AlertBuildResult") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse struct { + value *KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse) Get() *KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse) Set(val *KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse(val *KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse) *NullableKeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse { + return &NullableKeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_alerts_expiration_expiration_alert_update_request.go b/v1/api/keyfactor/model_keyfactor_api_models_alerts_expiration_expiration_alert_update_request.go new file mode 100644 index 0000000..5f03c04 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_alerts_expiration_expiration_alert_update_request.go @@ -0,0 +1,418 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest{} + +// KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest struct for KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest +type KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest struct { + Id *int32 `json:"Id,omitempty"` + DisplayName string `json:"DisplayName"` + Subject string `json:"Subject"` + Message string `json:"Message"` + ExpirationWarningDays int32 `json:"ExpirationWarningDays"` + CertificateQueryId *int32 `json:"CertificateQueryId,omitempty"` + RegisteredEventHandler *KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest `json:"RegisteredEventHandler,omitempty"` + Recipients []string `json:"Recipients,omitempty"` + EventHandlerParameters []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest `json:"EventHandlerParameters,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest + +// NewKeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest instantiates a new KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest(displayName string, subject string, message string, expirationWarningDays int32) *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest { + this := KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest{} + this.DisplayName = displayName + this.Subject = subject + this.Message = message + this.ExpirationWarningDays = expirationWarningDays + return &this +} + +// NewKeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequestWithDefaults instantiates a new KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequestWithDefaults() *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest { + this := KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) SetId(v int32) { + o.Id = &v +} + +// GetDisplayName returns the DisplayName field value +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) GetDisplayName() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayName, true +} + +// SetDisplayName sets field value +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) SetDisplayName(v string) { + o.DisplayName = v +} + +// GetSubject returns the Subject field value +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) GetSubject() string { + if o == nil { + var ret string + return ret + } + + return o.Subject +} + +// GetSubjectOk returns a tuple with the Subject field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) GetSubjectOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Subject, true +} + +// SetSubject sets field value +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) SetSubject(v string) { + o.Subject = v +} + +// GetMessage returns the Message field value +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) SetMessage(v string) { + o.Message = v +} + +// GetExpirationWarningDays returns the ExpirationWarningDays field value +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) GetExpirationWarningDays() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.ExpirationWarningDays +} + +// GetExpirationWarningDaysOk returns a tuple with the ExpirationWarningDays field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) GetExpirationWarningDaysOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.ExpirationWarningDays, true +} + +// SetExpirationWarningDays sets field value +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) SetExpirationWarningDays(v int32) { + o.ExpirationWarningDays = v +} + +// GetCertificateQueryId returns the CertificateQueryId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) GetCertificateQueryId() int32 { + if o == nil || isNil(o.CertificateQueryId) { + var ret int32 + return ret + } + return *o.CertificateQueryId +} + +// GetCertificateQueryIdOk returns a tuple with the CertificateQueryId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) GetCertificateQueryIdOk() (*int32, bool) { + if o == nil || isNil(o.CertificateQueryId) { + return nil, false + } + return o.CertificateQueryId, true +} + +// HasCertificateQueryId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) HasCertificateQueryId() bool { + if o != nil && !isNil(o.CertificateQueryId) { + return true + } + + return false +} + +// SetCertificateQueryId gets a reference to the given int32 and assigns it to the CertificateQueryId field. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) SetCertificateQueryId(v int32) { + o.CertificateQueryId = &v +} + +// GetRegisteredEventHandler returns the RegisteredEventHandler field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) GetRegisteredEventHandler() KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest { + if o == nil || isNil(o.RegisteredEventHandler) { + var ret KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest + return ret + } + return *o.RegisteredEventHandler +} + +// GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) GetRegisteredEventHandlerOk() (*KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest, bool) { + if o == nil || isNil(o.RegisteredEventHandler) { + return nil, false + } + return o.RegisteredEventHandler, true +} + +// HasRegisteredEventHandler returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) HasRegisteredEventHandler() bool { + if o != nil && !isNil(o.RegisteredEventHandler) { + return true + } + + return false +} + +// SetRegisteredEventHandler gets a reference to the given KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest and assigns it to the RegisteredEventHandler field. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) SetRegisteredEventHandler(v KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest) { + o.RegisteredEventHandler = &v +} + +// GetRecipients returns the Recipients field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) GetRecipients() []string { + if o == nil || isNil(o.Recipients) { + var ret []string + return ret + } + return o.Recipients +} + +// GetRecipientsOk returns a tuple with the Recipients field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) GetRecipientsOk() ([]string, bool) { + if o == nil || isNil(o.Recipients) { + return nil, false + } + return o.Recipients, true +} + +// HasRecipients returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) HasRecipients() bool { + if o != nil && !isNil(o.Recipients) { + return true + } + + return false +} + +// SetRecipients gets a reference to the given []string and assigns it to the Recipients field. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) SetRecipients(v []string) { + o.Recipients = v +} + +// GetEventHandlerParameters returns the EventHandlerParameters field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) GetEventHandlerParameters() []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest { + if o == nil || isNil(o.EventHandlerParameters) { + var ret []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest + return ret + } + return o.EventHandlerParameters +} + +// GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) GetEventHandlerParametersOk() ([]KeyfactorApiModelsEventHandlerEventHandlerParameterRequest, bool) { + if o == nil || isNil(o.EventHandlerParameters) { + return nil, false + } + return o.EventHandlerParameters, true +} + +// HasEventHandlerParameters returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) HasEventHandlerParameters() bool { + if o != nil && !isNil(o.EventHandlerParameters) { + return true + } + + return false +} + +// SetEventHandlerParameters gets a reference to the given []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest and assigns it to the EventHandlerParameters field. +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) SetEventHandlerParameters(v []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest) { + o.EventHandlerParameters = v +} + +func (o KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + toSerialize["DisplayName"] = o.DisplayName + toSerialize["Subject"] = o.Subject + toSerialize["Message"] = o.Message + toSerialize["ExpirationWarningDays"] = o.ExpirationWarningDays + if !isNil(o.CertificateQueryId) { + toSerialize["CertificateQueryId"] = o.CertificateQueryId + } + if !isNil(o.RegisteredEventHandler) { + toSerialize["RegisteredEventHandler"] = o.RegisteredEventHandler + } + if !isNil(o.Recipients) { + toSerialize["Recipients"] = o.Recipients + } + if !isNil(o.EventHandlerParameters) { + toSerialize["EventHandlerParameters"] = o.EventHandlerParameters + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest := _KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest); err == nil { + *o = KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest(varKeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "DisplayName") + delete(additionalProperties, "Subject") + delete(additionalProperties, "Message") + delete(additionalProperties, "ExpirationWarningDays") + delete(additionalProperties, "CertificateQueryId") + delete(additionalProperties, "RegisteredEventHandler") + delete(additionalProperties, "Recipients") + delete(additionalProperties, "EventHandlerParameters") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest struct { + value *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) Get() *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) Set(val *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest(val *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) *NullableKeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest { + return &NullableKeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_alerts_issued_issued_alert_creation_request.go b/v1/api/keyfactor/model_keyfactor_api_models_alerts_issued_issued_alert_creation_request.go new file mode 100644 index 0000000..b8c4f42 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_alerts_issued_issued_alert_creation_request.go @@ -0,0 +1,353 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest{} + +// KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest struct for KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest +type KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest struct { + DisplayName string `json:"DisplayName"` + Subject string `json:"Subject"` + Message string `json:"Message"` + TemplateId *int32 `json:"TemplateId,omitempty"` + RegisteredEventHandler *KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest `json:"RegisteredEventHandler,omitempty"` + Recipients []string `json:"Recipients,omitempty"` + EventHandlerParameters []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest `json:"EventHandlerParameters,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest + +// NewKeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest instantiates a new KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest(displayName string, subject string, message string) *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest { + this := KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest{} + this.DisplayName = displayName + this.Subject = subject + this.Message = message + return &this +} + +// NewKeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequestWithDefaults instantiates a new KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequestWithDefaults() *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest { + this := KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest{} + return &this +} + +// GetDisplayName returns the DisplayName field value +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) GetDisplayName() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayName, true +} + +// SetDisplayName sets field value +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) SetDisplayName(v string) { + o.DisplayName = v +} + +// GetSubject returns the Subject field value +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) GetSubject() string { + if o == nil { + var ret string + return ret + } + + return o.Subject +} + +// GetSubjectOk returns a tuple with the Subject field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) GetSubjectOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Subject, true +} + +// SetSubject sets field value +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) SetSubject(v string) { + o.Subject = v +} + +// GetMessage returns the Message field value +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) SetMessage(v string) { + o.Message = v +} + +// GetTemplateId returns the TemplateId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) GetTemplateId() int32 { + if o == nil || isNil(o.TemplateId) { + var ret int32 + return ret + } + return *o.TemplateId +} + +// GetTemplateIdOk returns a tuple with the TemplateId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) GetTemplateIdOk() (*int32, bool) { + if o == nil || isNil(o.TemplateId) { + return nil, false + } + return o.TemplateId, true +} + +// HasTemplateId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) HasTemplateId() bool { + if o != nil && !isNil(o.TemplateId) { + return true + } + + return false +} + +// SetTemplateId gets a reference to the given int32 and assigns it to the TemplateId field. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) SetTemplateId(v int32) { + o.TemplateId = &v +} + +// GetRegisteredEventHandler returns the RegisteredEventHandler field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) GetRegisteredEventHandler() KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest { + if o == nil || isNil(o.RegisteredEventHandler) { + var ret KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest + return ret + } + return *o.RegisteredEventHandler +} + +// GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) GetRegisteredEventHandlerOk() (*KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest, bool) { + if o == nil || isNil(o.RegisteredEventHandler) { + return nil, false + } + return o.RegisteredEventHandler, true +} + +// HasRegisteredEventHandler returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) HasRegisteredEventHandler() bool { + if o != nil && !isNil(o.RegisteredEventHandler) { + return true + } + + return false +} + +// SetRegisteredEventHandler gets a reference to the given KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest and assigns it to the RegisteredEventHandler field. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) SetRegisteredEventHandler(v KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest) { + o.RegisteredEventHandler = &v +} + +// GetRecipients returns the Recipients field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) GetRecipients() []string { + if o == nil || isNil(o.Recipients) { + var ret []string + return ret + } + return o.Recipients +} + +// GetRecipientsOk returns a tuple with the Recipients field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) GetRecipientsOk() ([]string, bool) { + if o == nil || isNil(o.Recipients) { + return nil, false + } + return o.Recipients, true +} + +// HasRecipients returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) HasRecipients() bool { + if o != nil && !isNil(o.Recipients) { + return true + } + + return false +} + +// SetRecipients gets a reference to the given []string and assigns it to the Recipients field. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) SetRecipients(v []string) { + o.Recipients = v +} + +// GetEventHandlerParameters returns the EventHandlerParameters field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) GetEventHandlerParameters() []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest { + if o == nil || isNil(o.EventHandlerParameters) { + var ret []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest + return ret + } + return o.EventHandlerParameters +} + +// GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) GetEventHandlerParametersOk() ([]KeyfactorApiModelsEventHandlerEventHandlerParameterRequest, bool) { + if o == nil || isNil(o.EventHandlerParameters) { + return nil, false + } + return o.EventHandlerParameters, true +} + +// HasEventHandlerParameters returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) HasEventHandlerParameters() bool { + if o != nil && !isNil(o.EventHandlerParameters) { + return true + } + + return false +} + +// SetEventHandlerParameters gets a reference to the given []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest and assigns it to the EventHandlerParameters field. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) SetEventHandlerParameters(v []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest) { + o.EventHandlerParameters = v +} + +func (o KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["DisplayName"] = o.DisplayName + toSerialize["Subject"] = o.Subject + toSerialize["Message"] = o.Message + if !isNil(o.TemplateId) { + toSerialize["TemplateId"] = o.TemplateId + } + if !isNil(o.RegisteredEventHandler) { + toSerialize["RegisteredEventHandler"] = o.RegisteredEventHandler + } + if !isNil(o.Recipients) { + toSerialize["Recipients"] = o.Recipients + } + if !isNil(o.EventHandlerParameters) { + toSerialize["EventHandlerParameters"] = o.EventHandlerParameters + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest := _KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest); err == nil { + *o = KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest(varKeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "DisplayName") + delete(additionalProperties, "Subject") + delete(additionalProperties, "Message") + delete(additionalProperties, "TemplateId") + delete(additionalProperties, "RegisteredEventHandler") + delete(additionalProperties, "Recipients") + delete(additionalProperties, "EventHandlerParameters") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest struct { + value *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) Get() *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) Set(val *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest(val *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) *NullableKeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest { + return &NullableKeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_alerts_issued_issued_alert_definition_response.go b/v1/api/keyfactor/model_keyfactor_api_models_alerts_issued_issued_alert_definition_response.go new file mode 100644 index 0000000..8ae2fac --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_alerts_issued_issued_alert_definition_response.go @@ -0,0 +1,417 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse{} + +// KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse struct for KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse +type KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse struct { + Id *int32 `json:"Id,omitempty"` + DisplayName *string `json:"DisplayName,omitempty"` + Subject *string `json:"Subject,omitempty"` + Message *string `json:"Message,omitempty"` + Recipients []string `json:"Recipients,omitempty"` + Template *KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse `json:"Template,omitempty"` + RegisteredEventHandler *KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse `json:"RegisteredEventHandler,omitempty"` + EventHandlerParameters []KeyfactorApiModelsEventHandlerEventHandlerParameterResponse `json:"EventHandlerParameters,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse + +// NewKeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse instantiates a new KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse() *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse { + this := KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse{} + return &this +} + +// NewKeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponseWithDefaults instantiates a new KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponseWithDefaults() *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse { + this := KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) SetId(v int32) { + o.Id = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) GetDisplayName() string { + if o == nil || isNil(o.DisplayName) { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) GetDisplayNameOk() (*string, bool) { + if o == nil || isNil(o.DisplayName) { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) HasDisplayName() bool { + if o != nil && !isNil(o.DisplayName) { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetSubject returns the Subject field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) GetSubject() string { + if o == nil || isNil(o.Subject) { + var ret string + return ret + } + return *o.Subject +} + +// GetSubjectOk returns a tuple with the Subject field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) GetSubjectOk() (*string, bool) { + if o == nil || isNil(o.Subject) { + return nil, false + } + return o.Subject, true +} + +// HasSubject returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) HasSubject() bool { + if o != nil && !isNil(o.Subject) { + return true + } + + return false +} + +// SetSubject gets a reference to the given string and assigns it to the Subject field. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) SetSubject(v string) { + o.Subject = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) GetMessage() string { + if o == nil || isNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) GetMessageOk() (*string, bool) { + if o == nil || isNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) HasMessage() bool { + if o != nil && !isNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) SetMessage(v string) { + o.Message = &v +} + +// GetRecipients returns the Recipients field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) GetRecipients() []string { + if o == nil || isNil(o.Recipients) { + var ret []string + return ret + } + return o.Recipients +} + +// GetRecipientsOk returns a tuple with the Recipients field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) GetRecipientsOk() ([]string, bool) { + if o == nil || isNil(o.Recipients) { + return nil, false + } + return o.Recipients, true +} + +// HasRecipients returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) HasRecipients() bool { + if o != nil && !isNil(o.Recipients) { + return true + } + + return false +} + +// SetRecipients gets a reference to the given []string and assigns it to the Recipients field. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) SetRecipients(v []string) { + o.Recipients = v +} + +// GetTemplate returns the Template field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) GetTemplate() KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse { + if o == nil || isNil(o.Template) { + var ret KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse + return ret + } + return *o.Template +} + +// GetTemplateOk returns a tuple with the Template field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) GetTemplateOk() (*KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse, bool) { + if o == nil || isNil(o.Template) { + return nil, false + } + return o.Template, true +} + +// HasTemplate returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) HasTemplate() bool { + if o != nil && !isNil(o.Template) { + return true + } + + return false +} + +// SetTemplate gets a reference to the given KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse and assigns it to the Template field. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) SetTemplate(v KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse) { + o.Template = &v +} + +// GetRegisteredEventHandler returns the RegisteredEventHandler field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) GetRegisteredEventHandler() KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse { + if o == nil || isNil(o.RegisteredEventHandler) { + var ret KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse + return ret + } + return *o.RegisteredEventHandler +} + +// GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) GetRegisteredEventHandlerOk() (*KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse, bool) { + if o == nil || isNil(o.RegisteredEventHandler) { + return nil, false + } + return o.RegisteredEventHandler, true +} + +// HasRegisteredEventHandler returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) HasRegisteredEventHandler() bool { + if o != nil && !isNil(o.RegisteredEventHandler) { + return true + } + + return false +} + +// SetRegisteredEventHandler gets a reference to the given KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse and assigns it to the RegisteredEventHandler field. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) SetRegisteredEventHandler(v KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse) { + o.RegisteredEventHandler = &v +} + +// GetEventHandlerParameters returns the EventHandlerParameters field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) GetEventHandlerParameters() []KeyfactorApiModelsEventHandlerEventHandlerParameterResponse { + if o == nil || isNil(o.EventHandlerParameters) { + var ret []KeyfactorApiModelsEventHandlerEventHandlerParameterResponse + return ret + } + return o.EventHandlerParameters +} + +// GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) GetEventHandlerParametersOk() ([]KeyfactorApiModelsEventHandlerEventHandlerParameterResponse, bool) { + if o == nil || isNil(o.EventHandlerParameters) { + return nil, false + } + return o.EventHandlerParameters, true +} + +// HasEventHandlerParameters returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) HasEventHandlerParameters() bool { + if o != nil && !isNil(o.EventHandlerParameters) { + return true + } + + return false +} + +// SetEventHandlerParameters gets a reference to the given []KeyfactorApiModelsEventHandlerEventHandlerParameterResponse and assigns it to the EventHandlerParameters field. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) SetEventHandlerParameters(v []KeyfactorApiModelsEventHandlerEventHandlerParameterResponse) { + o.EventHandlerParameters = v +} + +func (o KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.DisplayName) { + toSerialize["DisplayName"] = o.DisplayName + } + if !isNil(o.Subject) { + toSerialize["Subject"] = o.Subject + } + if !isNil(o.Message) { + toSerialize["Message"] = o.Message + } + if !isNil(o.Recipients) { + toSerialize["Recipients"] = o.Recipients + } + if !isNil(o.Template) { + toSerialize["Template"] = o.Template + } + if !isNil(o.RegisteredEventHandler) { + toSerialize["RegisteredEventHandler"] = o.RegisteredEventHandler + } + if !isNil(o.EventHandlerParameters) { + toSerialize["EventHandlerParameters"] = o.EventHandlerParameters + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse := _KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse); err == nil { + *o = KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse(varKeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "DisplayName") + delete(additionalProperties, "Subject") + delete(additionalProperties, "Message") + delete(additionalProperties, "Recipients") + delete(additionalProperties, "Template") + delete(additionalProperties, "RegisteredEventHandler") + delete(additionalProperties, "EventHandlerParameters") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse struct { + value *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) Get() *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) Set(val *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse(val *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) *NullableKeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse { + return &NullableKeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_alerts_issued_issued_alert_update_request.go b/v1/api/keyfactor/model_keyfactor_api_models_alerts_issued_issued_alert_update_request.go new file mode 100644 index 0000000..dd9852a --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_alerts_issued_issued_alert_update_request.go @@ -0,0 +1,390 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest{} + +// KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest struct for KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest +type KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest struct { + Id *int32 `json:"Id,omitempty"` + DisplayName string `json:"DisplayName"` + Subject string `json:"Subject"` + Message string `json:"Message"` + TemplateId *int32 `json:"TemplateId,omitempty"` + RegisteredEventHandler *KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest `json:"RegisteredEventHandler,omitempty"` + Recipients []string `json:"Recipients,omitempty"` + EventHandlerParameters []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest `json:"EventHandlerParameters,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest + +// NewKeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest instantiates a new KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest(displayName string, subject string, message string) *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest { + this := KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest{} + this.DisplayName = displayName + this.Subject = subject + this.Message = message + return &this +} + +// NewKeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequestWithDefaults instantiates a new KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequestWithDefaults() *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest { + this := KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) SetId(v int32) { + o.Id = &v +} + +// GetDisplayName returns the DisplayName field value +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) GetDisplayName() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayName, true +} + +// SetDisplayName sets field value +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) SetDisplayName(v string) { + o.DisplayName = v +} + +// GetSubject returns the Subject field value +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) GetSubject() string { + if o == nil { + var ret string + return ret + } + + return o.Subject +} + +// GetSubjectOk returns a tuple with the Subject field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) GetSubjectOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Subject, true +} + +// SetSubject sets field value +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) SetSubject(v string) { + o.Subject = v +} + +// GetMessage returns the Message field value +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) SetMessage(v string) { + o.Message = v +} + +// GetTemplateId returns the TemplateId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) GetTemplateId() int32 { + if o == nil || isNil(o.TemplateId) { + var ret int32 + return ret + } + return *o.TemplateId +} + +// GetTemplateIdOk returns a tuple with the TemplateId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) GetTemplateIdOk() (*int32, bool) { + if o == nil || isNil(o.TemplateId) { + return nil, false + } + return o.TemplateId, true +} + +// HasTemplateId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) HasTemplateId() bool { + if o != nil && !isNil(o.TemplateId) { + return true + } + + return false +} + +// SetTemplateId gets a reference to the given int32 and assigns it to the TemplateId field. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) SetTemplateId(v int32) { + o.TemplateId = &v +} + +// GetRegisteredEventHandler returns the RegisteredEventHandler field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) GetRegisteredEventHandler() KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest { + if o == nil || isNil(o.RegisteredEventHandler) { + var ret KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest + return ret + } + return *o.RegisteredEventHandler +} + +// GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) GetRegisteredEventHandlerOk() (*KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest, bool) { + if o == nil || isNil(o.RegisteredEventHandler) { + return nil, false + } + return o.RegisteredEventHandler, true +} + +// HasRegisteredEventHandler returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) HasRegisteredEventHandler() bool { + if o != nil && !isNil(o.RegisteredEventHandler) { + return true + } + + return false +} + +// SetRegisteredEventHandler gets a reference to the given KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest and assigns it to the RegisteredEventHandler field. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) SetRegisteredEventHandler(v KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest) { + o.RegisteredEventHandler = &v +} + +// GetRecipients returns the Recipients field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) GetRecipients() []string { + if o == nil || isNil(o.Recipients) { + var ret []string + return ret + } + return o.Recipients +} + +// GetRecipientsOk returns a tuple with the Recipients field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) GetRecipientsOk() ([]string, bool) { + if o == nil || isNil(o.Recipients) { + return nil, false + } + return o.Recipients, true +} + +// HasRecipients returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) HasRecipients() bool { + if o != nil && !isNil(o.Recipients) { + return true + } + + return false +} + +// SetRecipients gets a reference to the given []string and assigns it to the Recipients field. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) SetRecipients(v []string) { + o.Recipients = v +} + +// GetEventHandlerParameters returns the EventHandlerParameters field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) GetEventHandlerParameters() []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest { + if o == nil || isNil(o.EventHandlerParameters) { + var ret []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest + return ret + } + return o.EventHandlerParameters +} + +// GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) GetEventHandlerParametersOk() ([]KeyfactorApiModelsEventHandlerEventHandlerParameterRequest, bool) { + if o == nil || isNil(o.EventHandlerParameters) { + return nil, false + } + return o.EventHandlerParameters, true +} + +// HasEventHandlerParameters returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) HasEventHandlerParameters() bool { + if o != nil && !isNil(o.EventHandlerParameters) { + return true + } + + return false +} + +// SetEventHandlerParameters gets a reference to the given []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest and assigns it to the EventHandlerParameters field. +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) SetEventHandlerParameters(v []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest) { + o.EventHandlerParameters = v +} + +func (o KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + toSerialize["DisplayName"] = o.DisplayName + toSerialize["Subject"] = o.Subject + toSerialize["Message"] = o.Message + if !isNil(o.TemplateId) { + toSerialize["TemplateId"] = o.TemplateId + } + if !isNil(o.RegisteredEventHandler) { + toSerialize["RegisteredEventHandler"] = o.RegisteredEventHandler + } + if !isNil(o.Recipients) { + toSerialize["Recipients"] = o.Recipients + } + if !isNil(o.EventHandlerParameters) { + toSerialize["EventHandlerParameters"] = o.EventHandlerParameters + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest := _KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest); err == nil { + *o = KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest(varKeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "DisplayName") + delete(additionalProperties, "Subject") + delete(additionalProperties, "Message") + delete(additionalProperties, "TemplateId") + delete(additionalProperties, "RegisteredEventHandler") + delete(additionalProperties, "Recipients") + delete(additionalProperties, "EventHandlerParameters") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest struct { + value *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) Get() *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) Set(val *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest(val *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) *NullableKeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest { + return &NullableKeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_alerts_key_rotation_key_rotation_alert_creation_request.go b/v1/api/keyfactor/model_keyfactor_api_models_alerts_key_rotation_key_rotation_alert_creation_request.go new file mode 100644 index 0000000..4a90657 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_alerts_key_rotation_key_rotation_alert_creation_request.go @@ -0,0 +1,307 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest{} + +// KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest struct for KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest +type KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest struct { + DisplayName string `json:"DisplayName"` + Subject string `json:"Subject"` + Message string `json:"Message"` + RotationWarningDays int32 `json:"RotationWarningDays"` + RegisteredEventHandler *KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest `json:"RegisteredEventHandler,omitempty"` + EventHandlerParameters []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest `json:"EventHandlerParameters,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest + +// NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest instantiates a new KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest(displayName string, subject string, message string, rotationWarningDays int32) *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest { + this := KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest{} + this.DisplayName = displayName + this.Subject = subject + this.Message = message + this.RotationWarningDays = rotationWarningDays + return &this +} + +// NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequestWithDefaults instantiates a new KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequestWithDefaults() *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest { + this := KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest{} + return &this +} + +// GetDisplayName returns the DisplayName field value +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest) GetDisplayName() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayName, true +} + +// SetDisplayName sets field value +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest) SetDisplayName(v string) { + o.DisplayName = v +} + +// GetSubject returns the Subject field value +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest) GetSubject() string { + if o == nil { + var ret string + return ret + } + + return o.Subject +} + +// GetSubjectOk returns a tuple with the Subject field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest) GetSubjectOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Subject, true +} + +// SetSubject sets field value +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest) SetSubject(v string) { + o.Subject = v +} + +// GetMessage returns the Message field value +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest) SetMessage(v string) { + o.Message = v +} + +// GetRotationWarningDays returns the RotationWarningDays field value +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest) GetRotationWarningDays() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.RotationWarningDays +} + +// GetRotationWarningDaysOk returns a tuple with the RotationWarningDays field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest) GetRotationWarningDaysOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.RotationWarningDays, true +} + +// SetRotationWarningDays sets field value +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest) SetRotationWarningDays(v int32) { + o.RotationWarningDays = v +} + +// GetRegisteredEventHandler returns the RegisteredEventHandler field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest) GetRegisteredEventHandler() KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest { + if o == nil || isNil(o.RegisteredEventHandler) { + var ret KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest + return ret + } + return *o.RegisteredEventHandler +} + +// GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest) GetRegisteredEventHandlerOk() (*KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest, bool) { + if o == nil || isNil(o.RegisteredEventHandler) { + return nil, false + } + return o.RegisteredEventHandler, true +} + +// HasRegisteredEventHandler returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest) HasRegisteredEventHandler() bool { + if o != nil && !isNil(o.RegisteredEventHandler) { + return true + } + + return false +} + +// SetRegisteredEventHandler gets a reference to the given KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest and assigns it to the RegisteredEventHandler field. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest) SetRegisteredEventHandler(v KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest) { + o.RegisteredEventHandler = &v +} + +// GetEventHandlerParameters returns the EventHandlerParameters field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest) GetEventHandlerParameters() []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest { + if o == nil || isNil(o.EventHandlerParameters) { + var ret []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest + return ret + } + return o.EventHandlerParameters +} + +// GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest) GetEventHandlerParametersOk() ([]KeyfactorApiModelsEventHandlerEventHandlerParameterRequest, bool) { + if o == nil || isNil(o.EventHandlerParameters) { + return nil, false + } + return o.EventHandlerParameters, true +} + +// HasEventHandlerParameters returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest) HasEventHandlerParameters() bool { + if o != nil && !isNil(o.EventHandlerParameters) { + return true + } + + return false +} + +// SetEventHandlerParameters gets a reference to the given []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest and assigns it to the EventHandlerParameters field. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest) SetEventHandlerParameters(v []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest) { + o.EventHandlerParameters = v +} + +func (o KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["DisplayName"] = o.DisplayName + toSerialize["Subject"] = o.Subject + toSerialize["Message"] = o.Message + toSerialize["RotationWarningDays"] = o.RotationWarningDays + if !isNil(o.RegisteredEventHandler) { + toSerialize["RegisteredEventHandler"] = o.RegisteredEventHandler + } + if !isNil(o.EventHandlerParameters) { + toSerialize["EventHandlerParameters"] = o.EventHandlerParameters + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest := _KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest); err == nil { + *o = KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest(varKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "DisplayName") + delete(additionalProperties, "Subject") + delete(additionalProperties, "Message") + delete(additionalProperties, "RotationWarningDays") + delete(additionalProperties, "RegisteredEventHandler") + delete(additionalProperties, "EventHandlerParameters") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest struct { + value *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest) Get() *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest) Set(val *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest(val *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest) *NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest { + return &NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_alerts_key_rotation_key_rotation_alert_definition_response.go b/v1/api/keyfactor/model_keyfactor_api_models_alerts_key_rotation_key_rotation_alert_definition_response.go new file mode 100644 index 0000000..e8b80d8 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_alerts_key_rotation_key_rotation_alert_definition_response.go @@ -0,0 +1,417 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse{} + +// KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse struct for KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse +type KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse struct { + Id *int32 `json:"Id,omitempty"` + DisplayName *string `json:"DisplayName,omitempty"` + Subject *string `json:"Subject,omitempty"` + Message *string `json:"Message,omitempty"` + Recipient *string `json:"Recipient,omitempty"` + RotationWarningDays *int32 `json:"RotationWarningDays,omitempty"` + RegisteredEventHandler *KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse `json:"RegisteredEventHandler,omitempty"` + EventHandlerParameters []KeyfactorApiModelsEventHandlerEventHandlerParameterResponse `json:"EventHandlerParameters,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse + +// NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse instantiates a new KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse() *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse { + this := KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse{} + return &this +} + +// NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponseWithDefaults instantiates a new KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponseWithDefaults() *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse { + this := KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) SetId(v int32) { + o.Id = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) GetDisplayName() string { + if o == nil || isNil(o.DisplayName) { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) GetDisplayNameOk() (*string, bool) { + if o == nil || isNil(o.DisplayName) { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) HasDisplayName() bool { + if o != nil && !isNil(o.DisplayName) { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetSubject returns the Subject field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) GetSubject() string { + if o == nil || isNil(o.Subject) { + var ret string + return ret + } + return *o.Subject +} + +// GetSubjectOk returns a tuple with the Subject field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) GetSubjectOk() (*string, bool) { + if o == nil || isNil(o.Subject) { + return nil, false + } + return o.Subject, true +} + +// HasSubject returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) HasSubject() bool { + if o != nil && !isNil(o.Subject) { + return true + } + + return false +} + +// SetSubject gets a reference to the given string and assigns it to the Subject field. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) SetSubject(v string) { + o.Subject = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) GetMessage() string { + if o == nil || isNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) GetMessageOk() (*string, bool) { + if o == nil || isNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) HasMessage() bool { + if o != nil && !isNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) SetMessage(v string) { + o.Message = &v +} + +// GetRecipient returns the Recipient field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) GetRecipient() string { + if o == nil || isNil(o.Recipient) { + var ret string + return ret + } + return *o.Recipient +} + +// GetRecipientOk returns a tuple with the Recipient field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) GetRecipientOk() (*string, bool) { + if o == nil || isNil(o.Recipient) { + return nil, false + } + return o.Recipient, true +} + +// HasRecipient returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) HasRecipient() bool { + if o != nil && !isNil(o.Recipient) { + return true + } + + return false +} + +// SetRecipient gets a reference to the given string and assigns it to the Recipient field. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) SetRecipient(v string) { + o.Recipient = &v +} + +// GetRotationWarningDays returns the RotationWarningDays field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) GetRotationWarningDays() int32 { + if o == nil || isNil(o.RotationWarningDays) { + var ret int32 + return ret + } + return *o.RotationWarningDays +} + +// GetRotationWarningDaysOk returns a tuple with the RotationWarningDays field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) GetRotationWarningDaysOk() (*int32, bool) { + if o == nil || isNil(o.RotationWarningDays) { + return nil, false + } + return o.RotationWarningDays, true +} + +// HasRotationWarningDays returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) HasRotationWarningDays() bool { + if o != nil && !isNil(o.RotationWarningDays) { + return true + } + + return false +} + +// SetRotationWarningDays gets a reference to the given int32 and assigns it to the RotationWarningDays field. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) SetRotationWarningDays(v int32) { + o.RotationWarningDays = &v +} + +// GetRegisteredEventHandler returns the RegisteredEventHandler field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) GetRegisteredEventHandler() KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse { + if o == nil || isNil(o.RegisteredEventHandler) { + var ret KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse + return ret + } + return *o.RegisteredEventHandler +} + +// GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) GetRegisteredEventHandlerOk() (*KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse, bool) { + if o == nil || isNil(o.RegisteredEventHandler) { + return nil, false + } + return o.RegisteredEventHandler, true +} + +// HasRegisteredEventHandler returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) HasRegisteredEventHandler() bool { + if o != nil && !isNil(o.RegisteredEventHandler) { + return true + } + + return false +} + +// SetRegisteredEventHandler gets a reference to the given KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse and assigns it to the RegisteredEventHandler field. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) SetRegisteredEventHandler(v KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse) { + o.RegisteredEventHandler = &v +} + +// GetEventHandlerParameters returns the EventHandlerParameters field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) GetEventHandlerParameters() []KeyfactorApiModelsEventHandlerEventHandlerParameterResponse { + if o == nil || isNil(o.EventHandlerParameters) { + var ret []KeyfactorApiModelsEventHandlerEventHandlerParameterResponse + return ret + } + return o.EventHandlerParameters +} + +// GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) GetEventHandlerParametersOk() ([]KeyfactorApiModelsEventHandlerEventHandlerParameterResponse, bool) { + if o == nil || isNil(o.EventHandlerParameters) { + return nil, false + } + return o.EventHandlerParameters, true +} + +// HasEventHandlerParameters returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) HasEventHandlerParameters() bool { + if o != nil && !isNil(o.EventHandlerParameters) { + return true + } + + return false +} + +// SetEventHandlerParameters gets a reference to the given []KeyfactorApiModelsEventHandlerEventHandlerParameterResponse and assigns it to the EventHandlerParameters field. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) SetEventHandlerParameters(v []KeyfactorApiModelsEventHandlerEventHandlerParameterResponse) { + o.EventHandlerParameters = v +} + +func (o KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.DisplayName) { + toSerialize["DisplayName"] = o.DisplayName + } + if !isNil(o.Subject) { + toSerialize["Subject"] = o.Subject + } + if !isNil(o.Message) { + toSerialize["Message"] = o.Message + } + if !isNil(o.Recipient) { + toSerialize["Recipient"] = o.Recipient + } + if !isNil(o.RotationWarningDays) { + toSerialize["RotationWarningDays"] = o.RotationWarningDays + } + if !isNil(o.RegisteredEventHandler) { + toSerialize["RegisteredEventHandler"] = o.RegisteredEventHandler + } + if !isNil(o.EventHandlerParameters) { + toSerialize["EventHandlerParameters"] = o.EventHandlerParameters + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse := _KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse); err == nil { + *o = KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse(varKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "DisplayName") + delete(additionalProperties, "Subject") + delete(additionalProperties, "Message") + delete(additionalProperties, "Recipient") + delete(additionalProperties, "RotationWarningDays") + delete(additionalProperties, "RegisteredEventHandler") + delete(additionalProperties, "EventHandlerParameters") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse struct { + value *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) Get() *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) Set(val *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse(val *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) *NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse { + return &NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_alerts_key_rotation_key_rotation_alert_response.go b/v1/api/keyfactor/model_keyfactor_api_models_alerts_key_rotation_key_rotation_alert_response.go new file mode 100644 index 0000000..0dbcb52 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_alerts_key_rotation_key_rotation_alert_response.go @@ -0,0 +1,232 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse{} + +// KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse struct for KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse +type KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse struct { + Subject *string `json:"Subject,omitempty"` + Message *string `json:"Message,omitempty"` + Recipient *string `json:"Recipient,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse + +// NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse instantiates a new KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse() *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse { + this := KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse{} + return &this +} + +// NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponseWithDefaults instantiates a new KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponseWithDefaults() *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse { + this := KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse{} + return &this +} + +// GetSubject returns the Subject field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse) GetSubject() string { + if o == nil || isNil(o.Subject) { + var ret string + return ret + } + return *o.Subject +} + +// GetSubjectOk returns a tuple with the Subject field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse) GetSubjectOk() (*string, bool) { + if o == nil || isNil(o.Subject) { + return nil, false + } + return o.Subject, true +} + +// HasSubject returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse) HasSubject() bool { + if o != nil && !isNil(o.Subject) { + return true + } + + return false +} + +// SetSubject gets a reference to the given string and assigns it to the Subject field. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse) SetSubject(v string) { + o.Subject = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse) GetMessage() string { + if o == nil || isNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse) GetMessageOk() (*string, bool) { + if o == nil || isNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse) HasMessage() bool { + if o != nil && !isNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse) SetMessage(v string) { + o.Message = &v +} + +// GetRecipient returns the Recipient field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse) GetRecipient() string { + if o == nil || isNil(o.Recipient) { + var ret string + return ret + } + return *o.Recipient +} + +// GetRecipientOk returns a tuple with the Recipient field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse) GetRecipientOk() (*string, bool) { + if o == nil || isNil(o.Recipient) { + return nil, false + } + return o.Recipient, true +} + +// HasRecipient returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse) HasRecipient() bool { + if o != nil && !isNil(o.Recipient) { + return true + } + + return false +} + +// SetRecipient gets a reference to the given string and assigns it to the Recipient field. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse) SetRecipient(v string) { + o.Recipient = &v +} + +func (o KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Subject) { + toSerialize["Subject"] = o.Subject + } + if !isNil(o.Message) { + toSerialize["Message"] = o.Message + } + if !isNil(o.Recipient) { + toSerialize["Recipient"] = o.Recipient + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse := _KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse); err == nil { + *o = KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse(varKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Subject") + delete(additionalProperties, "Message") + delete(additionalProperties, "Recipient") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse struct { + value *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse) Get() *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse) Set(val *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse(val *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse) *NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse { + return &NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_alerts_key_rotation_key_rotation_alert_test_all_request.go b/v1/api/keyfactor/model_keyfactor_api_models_alerts_key_rotation_key_rotation_alert_test_all_request.go new file mode 100644 index 0000000..6890ff3 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_alerts_key_rotation_key_rotation_alert_test_all_request.go @@ -0,0 +1,233 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" + "time" +) + +// checks if the KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest{} + +// KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest struct for KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest +type KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest struct { + EvaluationDate *time.Time `json:"EvaluationDate,omitempty"` + PreviousEvaluationDate *time.Time `json:"PreviousEvaluationDate,omitempty"` + SendAlerts *bool `json:"SendAlerts,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest + +// NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest instantiates a new KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest() *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest { + this := KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest{} + return &this +} + +// NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequestWithDefaults instantiates a new KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequestWithDefaults() *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest { + this := KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest{} + return &this +} + +// GetEvaluationDate returns the EvaluationDate field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest) GetEvaluationDate() time.Time { + if o == nil || isNil(o.EvaluationDate) { + var ret time.Time + return ret + } + return *o.EvaluationDate +} + +// GetEvaluationDateOk returns a tuple with the EvaluationDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest) GetEvaluationDateOk() (*time.Time, bool) { + if o == nil || isNil(o.EvaluationDate) { + return nil, false + } + return o.EvaluationDate, true +} + +// HasEvaluationDate returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest) HasEvaluationDate() bool { + if o != nil && !isNil(o.EvaluationDate) { + return true + } + + return false +} + +// SetEvaluationDate gets a reference to the given time.Time and assigns it to the EvaluationDate field. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest) SetEvaluationDate(v time.Time) { + o.EvaluationDate = &v +} + +// GetPreviousEvaluationDate returns the PreviousEvaluationDate field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest) GetPreviousEvaluationDate() time.Time { + if o == nil || isNil(o.PreviousEvaluationDate) { + var ret time.Time + return ret + } + return *o.PreviousEvaluationDate +} + +// GetPreviousEvaluationDateOk returns a tuple with the PreviousEvaluationDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest) GetPreviousEvaluationDateOk() (*time.Time, bool) { + if o == nil || isNil(o.PreviousEvaluationDate) { + return nil, false + } + return o.PreviousEvaluationDate, true +} + +// HasPreviousEvaluationDate returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest) HasPreviousEvaluationDate() bool { + if o != nil && !isNil(o.PreviousEvaluationDate) { + return true + } + + return false +} + +// SetPreviousEvaluationDate gets a reference to the given time.Time and assigns it to the PreviousEvaluationDate field. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest) SetPreviousEvaluationDate(v time.Time) { + o.PreviousEvaluationDate = &v +} + +// GetSendAlerts returns the SendAlerts field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest) GetSendAlerts() bool { + if o == nil || isNil(o.SendAlerts) { + var ret bool + return ret + } + return *o.SendAlerts +} + +// GetSendAlertsOk returns a tuple with the SendAlerts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest) GetSendAlertsOk() (*bool, bool) { + if o == nil || isNil(o.SendAlerts) { + return nil, false + } + return o.SendAlerts, true +} + +// HasSendAlerts returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest) HasSendAlerts() bool { + if o != nil && !isNil(o.SendAlerts) { + return true + } + + return false +} + +// SetSendAlerts gets a reference to the given bool and assigns it to the SendAlerts field. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest) SetSendAlerts(v bool) { + o.SendAlerts = &v +} + +func (o KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.EvaluationDate) { + toSerialize["EvaluationDate"] = o.EvaluationDate + } + if !isNil(o.PreviousEvaluationDate) { + toSerialize["PreviousEvaluationDate"] = o.PreviousEvaluationDate + } + if !isNil(o.SendAlerts) { + toSerialize["SendAlerts"] = o.SendAlerts + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest := _KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest); err == nil { + *o = KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest(varKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "EvaluationDate") + delete(additionalProperties, "PreviousEvaluationDate") + delete(additionalProperties, "SendAlerts") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest struct { + value *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest) Get() *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest) Set(val *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest(val *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest) *NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest { + return &NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_alerts_key_rotation_key_rotation_alert_test_request.go b/v1/api/keyfactor/model_keyfactor_api_models_alerts_key_rotation_key_rotation_alert_test_request.go new file mode 100644 index 0000000..13dfa41 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_alerts_key_rotation_key_rotation_alert_test_request.go @@ -0,0 +1,270 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" + "time" +) + +// checks if the KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest{} + +// KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest struct for KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest +type KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest struct { + AlertId *int32 `json:"AlertId,omitempty"` + EvaluationDate *time.Time `json:"EvaluationDate,omitempty"` + PreviousEvaluationDate *time.Time `json:"PreviousEvaluationDate,omitempty"` + SendAlerts *bool `json:"SendAlerts,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest + +// NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest instantiates a new KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest() *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest { + this := KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest{} + return &this +} + +// NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequestWithDefaults instantiates a new KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequestWithDefaults() *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest { + this := KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest{} + return &this +} + +// GetAlertId returns the AlertId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest) GetAlertId() int32 { + if o == nil || isNil(o.AlertId) { + var ret int32 + return ret + } + return *o.AlertId +} + +// GetAlertIdOk returns a tuple with the AlertId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest) GetAlertIdOk() (*int32, bool) { + if o == nil || isNil(o.AlertId) { + return nil, false + } + return o.AlertId, true +} + +// HasAlertId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest) HasAlertId() bool { + if o != nil && !isNil(o.AlertId) { + return true + } + + return false +} + +// SetAlertId gets a reference to the given int32 and assigns it to the AlertId field. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest) SetAlertId(v int32) { + o.AlertId = &v +} + +// GetEvaluationDate returns the EvaluationDate field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest) GetEvaluationDate() time.Time { + if o == nil || isNil(o.EvaluationDate) { + var ret time.Time + return ret + } + return *o.EvaluationDate +} + +// GetEvaluationDateOk returns a tuple with the EvaluationDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest) GetEvaluationDateOk() (*time.Time, bool) { + if o == nil || isNil(o.EvaluationDate) { + return nil, false + } + return o.EvaluationDate, true +} + +// HasEvaluationDate returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest) HasEvaluationDate() bool { + if o != nil && !isNil(o.EvaluationDate) { + return true + } + + return false +} + +// SetEvaluationDate gets a reference to the given time.Time and assigns it to the EvaluationDate field. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest) SetEvaluationDate(v time.Time) { + o.EvaluationDate = &v +} + +// GetPreviousEvaluationDate returns the PreviousEvaluationDate field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest) GetPreviousEvaluationDate() time.Time { + if o == nil || isNil(o.PreviousEvaluationDate) { + var ret time.Time + return ret + } + return *o.PreviousEvaluationDate +} + +// GetPreviousEvaluationDateOk returns a tuple with the PreviousEvaluationDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest) GetPreviousEvaluationDateOk() (*time.Time, bool) { + if o == nil || isNil(o.PreviousEvaluationDate) { + return nil, false + } + return o.PreviousEvaluationDate, true +} + +// HasPreviousEvaluationDate returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest) HasPreviousEvaluationDate() bool { + if o != nil && !isNil(o.PreviousEvaluationDate) { + return true + } + + return false +} + +// SetPreviousEvaluationDate gets a reference to the given time.Time and assigns it to the PreviousEvaluationDate field. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest) SetPreviousEvaluationDate(v time.Time) { + o.PreviousEvaluationDate = &v +} + +// GetSendAlerts returns the SendAlerts field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest) GetSendAlerts() bool { + if o == nil || isNil(o.SendAlerts) { + var ret bool + return ret + } + return *o.SendAlerts +} + +// GetSendAlertsOk returns a tuple with the SendAlerts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest) GetSendAlertsOk() (*bool, bool) { + if o == nil || isNil(o.SendAlerts) { + return nil, false + } + return o.SendAlerts, true +} + +// HasSendAlerts returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest) HasSendAlerts() bool { + if o != nil && !isNil(o.SendAlerts) { + return true + } + + return false +} + +// SetSendAlerts gets a reference to the given bool and assigns it to the SendAlerts field. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest) SetSendAlerts(v bool) { + o.SendAlerts = &v +} + +func (o KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.AlertId) { + toSerialize["AlertId"] = o.AlertId + } + if !isNil(o.EvaluationDate) { + toSerialize["EvaluationDate"] = o.EvaluationDate + } + if !isNil(o.PreviousEvaluationDate) { + toSerialize["PreviousEvaluationDate"] = o.PreviousEvaluationDate + } + if !isNil(o.SendAlerts) { + toSerialize["SendAlerts"] = o.SendAlerts + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest := _KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest); err == nil { + *o = KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest(varKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "AlertId") + delete(additionalProperties, "EvaluationDate") + delete(additionalProperties, "PreviousEvaluationDate") + delete(additionalProperties, "SendAlerts") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest struct { + value *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest) Get() *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest) Set(val *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest(val *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest) *NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest { + return &NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_alerts_key_rotation_key_rotation_alert_test_response.go b/v1/api/keyfactor/model_keyfactor_api_models_alerts_key_rotation_key_rotation_alert_test_response.go new file mode 100644 index 0000000..e255e3c --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_alerts_key_rotation_key_rotation_alert_test_response.go @@ -0,0 +1,195 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse{} + +// KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse struct for KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse +type KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse struct { + KeyRotationAlerts []KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse `json:"KeyRotationAlerts,omitempty"` + AlertBuildResult *int32 `json:"AlertBuildResult,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse + +// NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse instantiates a new KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse() *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse { + this := KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse{} + return &this +} + +// NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponseWithDefaults instantiates a new KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponseWithDefaults() *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse { + this := KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse{} + return &this +} + +// GetKeyRotationAlerts returns the KeyRotationAlerts field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse) GetKeyRotationAlerts() []KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse { + if o == nil || isNil(o.KeyRotationAlerts) { + var ret []KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse + return ret + } + return o.KeyRotationAlerts +} + +// GetKeyRotationAlertsOk returns a tuple with the KeyRotationAlerts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse) GetKeyRotationAlertsOk() ([]KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse, bool) { + if o == nil || isNil(o.KeyRotationAlerts) { + return nil, false + } + return o.KeyRotationAlerts, true +} + +// HasKeyRotationAlerts returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse) HasKeyRotationAlerts() bool { + if o != nil && !isNil(o.KeyRotationAlerts) { + return true + } + + return false +} + +// SetKeyRotationAlerts gets a reference to the given []KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse and assigns it to the KeyRotationAlerts field. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse) SetKeyRotationAlerts(v []KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse) { + o.KeyRotationAlerts = v +} + +// GetAlertBuildResult returns the AlertBuildResult field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse) GetAlertBuildResult() int32 { + if o == nil || isNil(o.AlertBuildResult) { + var ret int32 + return ret + } + return *o.AlertBuildResult +} + +// GetAlertBuildResultOk returns a tuple with the AlertBuildResult field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse) GetAlertBuildResultOk() (*int32, bool) { + if o == nil || isNil(o.AlertBuildResult) { + return nil, false + } + return o.AlertBuildResult, true +} + +// HasAlertBuildResult returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse) HasAlertBuildResult() bool { + if o != nil && !isNil(o.AlertBuildResult) { + return true + } + + return false +} + +// SetAlertBuildResult gets a reference to the given int32 and assigns it to the AlertBuildResult field. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse) SetAlertBuildResult(v int32) { + o.AlertBuildResult = &v +} + +func (o KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.KeyRotationAlerts) { + toSerialize["KeyRotationAlerts"] = o.KeyRotationAlerts + } + if !isNil(o.AlertBuildResult) { + toSerialize["AlertBuildResult"] = o.AlertBuildResult + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse := _KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse); err == nil { + *o = KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse(varKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "KeyRotationAlerts") + delete(additionalProperties, "AlertBuildResult") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse struct { + value *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse) Get() *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse) Set(val *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse(val *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse) *NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse { + return &NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_alerts_key_rotation_key_rotation_alert_update_request.go b/v1/api/keyfactor/model_keyfactor_api_models_alerts_key_rotation_key_rotation_alert_update_request.go new file mode 100644 index 0000000..a9bf1ea --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_alerts_key_rotation_key_rotation_alert_update_request.go @@ -0,0 +1,344 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest{} + +// KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest struct for KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest +type KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest struct { + Id *int32 `json:"Id,omitempty"` + DisplayName string `json:"DisplayName"` + Subject string `json:"Subject"` + Message string `json:"Message"` + RotationWarningDays int32 `json:"RotationWarningDays"` + RegisteredEventHandler *KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest `json:"RegisteredEventHandler,omitempty"` + EventHandlerParameters []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest `json:"EventHandlerParameters,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest + +// NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest instantiates a new KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest(displayName string, subject string, message string, rotationWarningDays int32) *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest { + this := KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest{} + this.DisplayName = displayName + this.Subject = subject + this.Message = message + this.RotationWarningDays = rotationWarningDays + return &this +} + +// NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequestWithDefaults instantiates a new KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequestWithDefaults() *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest { + this := KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) SetId(v int32) { + o.Id = &v +} + +// GetDisplayName returns the DisplayName field value +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) GetDisplayName() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayName, true +} + +// SetDisplayName sets field value +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) SetDisplayName(v string) { + o.DisplayName = v +} + +// GetSubject returns the Subject field value +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) GetSubject() string { + if o == nil { + var ret string + return ret + } + + return o.Subject +} + +// GetSubjectOk returns a tuple with the Subject field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) GetSubjectOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Subject, true +} + +// SetSubject sets field value +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) SetSubject(v string) { + o.Subject = v +} + +// GetMessage returns the Message field value +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) SetMessage(v string) { + o.Message = v +} + +// GetRotationWarningDays returns the RotationWarningDays field value +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) GetRotationWarningDays() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.RotationWarningDays +} + +// GetRotationWarningDaysOk returns a tuple with the RotationWarningDays field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) GetRotationWarningDaysOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.RotationWarningDays, true +} + +// SetRotationWarningDays sets field value +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) SetRotationWarningDays(v int32) { + o.RotationWarningDays = v +} + +// GetRegisteredEventHandler returns the RegisteredEventHandler field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) GetRegisteredEventHandler() KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest { + if o == nil || isNil(o.RegisteredEventHandler) { + var ret KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest + return ret + } + return *o.RegisteredEventHandler +} + +// GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) GetRegisteredEventHandlerOk() (*KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest, bool) { + if o == nil || isNil(o.RegisteredEventHandler) { + return nil, false + } + return o.RegisteredEventHandler, true +} + +// HasRegisteredEventHandler returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) HasRegisteredEventHandler() bool { + if o != nil && !isNil(o.RegisteredEventHandler) { + return true + } + + return false +} + +// SetRegisteredEventHandler gets a reference to the given KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest and assigns it to the RegisteredEventHandler field. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) SetRegisteredEventHandler(v KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest) { + o.RegisteredEventHandler = &v +} + +// GetEventHandlerParameters returns the EventHandlerParameters field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) GetEventHandlerParameters() []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest { + if o == nil || isNil(o.EventHandlerParameters) { + var ret []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest + return ret + } + return o.EventHandlerParameters +} + +// GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) GetEventHandlerParametersOk() ([]KeyfactorApiModelsEventHandlerEventHandlerParameterRequest, bool) { + if o == nil || isNil(o.EventHandlerParameters) { + return nil, false + } + return o.EventHandlerParameters, true +} + +// HasEventHandlerParameters returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) HasEventHandlerParameters() bool { + if o != nil && !isNil(o.EventHandlerParameters) { + return true + } + + return false +} + +// SetEventHandlerParameters gets a reference to the given []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest and assigns it to the EventHandlerParameters field. +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) SetEventHandlerParameters(v []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest) { + o.EventHandlerParameters = v +} + +func (o KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + toSerialize["DisplayName"] = o.DisplayName + toSerialize["Subject"] = o.Subject + toSerialize["Message"] = o.Message + toSerialize["RotationWarningDays"] = o.RotationWarningDays + if !isNil(o.RegisteredEventHandler) { + toSerialize["RegisteredEventHandler"] = o.RegisteredEventHandler + } + if !isNil(o.EventHandlerParameters) { + toSerialize["EventHandlerParameters"] = o.EventHandlerParameters + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest := _KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest); err == nil { + *o = KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest(varKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "DisplayName") + delete(additionalProperties, "Subject") + delete(additionalProperties, "Message") + delete(additionalProperties, "RotationWarningDays") + delete(additionalProperties, "RegisteredEventHandler") + delete(additionalProperties, "EventHandlerParameters") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest struct { + value *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) Get() *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) Set(val *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest(val *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) *NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest { + return &NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_alerts_pending_pending_alert_creation_request.go b/v1/api/keyfactor/model_keyfactor_api_models_alerts_pending_pending_alert_creation_request.go new file mode 100644 index 0000000..0f89955 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_alerts_pending_pending_alert_creation_request.go @@ -0,0 +1,353 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest{} + +// KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest struct for KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest +type KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest struct { + DisplayName string `json:"DisplayName"` + Subject string `json:"Subject"` + Message string `json:"Message"` + TemplateId *int32 `json:"TemplateId,omitempty"` + RegisteredEventHandler *KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest `json:"RegisteredEventHandler,omitempty"` + Recipients []string `json:"Recipients,omitempty"` + EventHandlerParameters []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest `json:"EventHandlerParameters,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest + +// NewKeyfactorApiModelsAlertsPendingPendingAlertCreationRequest instantiates a new KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsAlertsPendingPendingAlertCreationRequest(displayName string, subject string, message string) *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest { + this := KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest{} + this.DisplayName = displayName + this.Subject = subject + this.Message = message + return &this +} + +// NewKeyfactorApiModelsAlertsPendingPendingAlertCreationRequestWithDefaults instantiates a new KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsAlertsPendingPendingAlertCreationRequestWithDefaults() *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest { + this := KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest{} + return &this +} + +// GetDisplayName returns the DisplayName field value +func (o *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) GetDisplayName() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayName, true +} + +// SetDisplayName sets field value +func (o *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) SetDisplayName(v string) { + o.DisplayName = v +} + +// GetSubject returns the Subject field value +func (o *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) GetSubject() string { + if o == nil { + var ret string + return ret + } + + return o.Subject +} + +// GetSubjectOk returns a tuple with the Subject field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) GetSubjectOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Subject, true +} + +// SetSubject sets field value +func (o *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) SetSubject(v string) { + o.Subject = v +} + +// GetMessage returns the Message field value +func (o *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) SetMessage(v string) { + o.Message = v +} + +// GetTemplateId returns the TemplateId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) GetTemplateId() int32 { + if o == nil || isNil(o.TemplateId) { + var ret int32 + return ret + } + return *o.TemplateId +} + +// GetTemplateIdOk returns a tuple with the TemplateId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) GetTemplateIdOk() (*int32, bool) { + if o == nil || isNil(o.TemplateId) { + return nil, false + } + return o.TemplateId, true +} + +// HasTemplateId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) HasTemplateId() bool { + if o != nil && !isNil(o.TemplateId) { + return true + } + + return false +} + +// SetTemplateId gets a reference to the given int32 and assigns it to the TemplateId field. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) SetTemplateId(v int32) { + o.TemplateId = &v +} + +// GetRegisteredEventHandler returns the RegisteredEventHandler field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) GetRegisteredEventHandler() KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest { + if o == nil || isNil(o.RegisteredEventHandler) { + var ret KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest + return ret + } + return *o.RegisteredEventHandler +} + +// GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) GetRegisteredEventHandlerOk() (*KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest, bool) { + if o == nil || isNil(o.RegisteredEventHandler) { + return nil, false + } + return o.RegisteredEventHandler, true +} + +// HasRegisteredEventHandler returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) HasRegisteredEventHandler() bool { + if o != nil && !isNil(o.RegisteredEventHandler) { + return true + } + + return false +} + +// SetRegisteredEventHandler gets a reference to the given KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest and assigns it to the RegisteredEventHandler field. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) SetRegisteredEventHandler(v KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest) { + o.RegisteredEventHandler = &v +} + +// GetRecipients returns the Recipients field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) GetRecipients() []string { + if o == nil || isNil(o.Recipients) { + var ret []string + return ret + } + return o.Recipients +} + +// GetRecipientsOk returns a tuple with the Recipients field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) GetRecipientsOk() ([]string, bool) { + if o == nil || isNil(o.Recipients) { + return nil, false + } + return o.Recipients, true +} + +// HasRecipients returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) HasRecipients() bool { + if o != nil && !isNil(o.Recipients) { + return true + } + + return false +} + +// SetRecipients gets a reference to the given []string and assigns it to the Recipients field. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) SetRecipients(v []string) { + o.Recipients = v +} + +// GetEventHandlerParameters returns the EventHandlerParameters field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) GetEventHandlerParameters() []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest { + if o == nil || isNil(o.EventHandlerParameters) { + var ret []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest + return ret + } + return o.EventHandlerParameters +} + +// GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) GetEventHandlerParametersOk() ([]KeyfactorApiModelsEventHandlerEventHandlerParameterRequest, bool) { + if o == nil || isNil(o.EventHandlerParameters) { + return nil, false + } + return o.EventHandlerParameters, true +} + +// HasEventHandlerParameters returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) HasEventHandlerParameters() bool { + if o != nil && !isNil(o.EventHandlerParameters) { + return true + } + + return false +} + +// SetEventHandlerParameters gets a reference to the given []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest and assigns it to the EventHandlerParameters field. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) SetEventHandlerParameters(v []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest) { + o.EventHandlerParameters = v +} + +func (o KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["DisplayName"] = o.DisplayName + toSerialize["Subject"] = o.Subject + toSerialize["Message"] = o.Message + if !isNil(o.TemplateId) { + toSerialize["TemplateId"] = o.TemplateId + } + if !isNil(o.RegisteredEventHandler) { + toSerialize["RegisteredEventHandler"] = o.RegisteredEventHandler + } + if !isNil(o.Recipients) { + toSerialize["Recipients"] = o.Recipients + } + if !isNil(o.EventHandlerParameters) { + toSerialize["EventHandlerParameters"] = o.EventHandlerParameters + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsAlertsPendingPendingAlertCreationRequest := _KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsAlertsPendingPendingAlertCreationRequest); err == nil { + *o = KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest(varKeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "DisplayName") + delete(additionalProperties, "Subject") + delete(additionalProperties, "Message") + delete(additionalProperties, "TemplateId") + delete(additionalProperties, "RegisteredEventHandler") + delete(additionalProperties, "Recipients") + delete(additionalProperties, "EventHandlerParameters") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsAlertsPendingPendingAlertCreationRequest struct { + value *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) Get() *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) Set(val *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsAlertsPendingPendingAlertCreationRequest(val *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) *NullableKeyfactorApiModelsAlertsPendingPendingAlertCreationRequest { + return &NullableKeyfactorApiModelsAlertsPendingPendingAlertCreationRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_alerts_pending_pending_alert_definition_response.go b/v1/api/keyfactor/model_keyfactor_api_models_alerts_pending_pending_alert_definition_response.go new file mode 100644 index 0000000..44fd364 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_alerts_pending_pending_alert_definition_response.go @@ -0,0 +1,417 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse{} + +// KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse struct for KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse +type KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse struct { + Id *int32 `json:"Id,omitempty"` + DisplayName *string `json:"DisplayName,omitempty"` + Subject *string `json:"Subject,omitempty"` + Message *string `json:"Message,omitempty"` + Recipients []string `json:"Recipients,omitempty"` + Template *KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse `json:"Template,omitempty"` + RegisteredEventHandler *KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse `json:"RegisteredEventHandler,omitempty"` + EventHandlerParameters []KeyfactorApiModelsEventHandlerEventHandlerParameterResponse `json:"EventHandlerParameters,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse + +// NewKeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse instantiates a new KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse() *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse { + this := KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse{} + return &this +} + +// NewKeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponseWithDefaults instantiates a new KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponseWithDefaults() *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse { + this := KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) SetId(v int32) { + o.Id = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) GetDisplayName() string { + if o == nil || isNil(o.DisplayName) { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) GetDisplayNameOk() (*string, bool) { + if o == nil || isNil(o.DisplayName) { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) HasDisplayName() bool { + if o != nil && !isNil(o.DisplayName) { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetSubject returns the Subject field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) GetSubject() string { + if o == nil || isNil(o.Subject) { + var ret string + return ret + } + return *o.Subject +} + +// GetSubjectOk returns a tuple with the Subject field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) GetSubjectOk() (*string, bool) { + if o == nil || isNil(o.Subject) { + return nil, false + } + return o.Subject, true +} + +// HasSubject returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) HasSubject() bool { + if o != nil && !isNil(o.Subject) { + return true + } + + return false +} + +// SetSubject gets a reference to the given string and assigns it to the Subject field. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) SetSubject(v string) { + o.Subject = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) GetMessage() string { + if o == nil || isNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) GetMessageOk() (*string, bool) { + if o == nil || isNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) HasMessage() bool { + if o != nil && !isNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) SetMessage(v string) { + o.Message = &v +} + +// GetRecipients returns the Recipients field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) GetRecipients() []string { + if o == nil || isNil(o.Recipients) { + var ret []string + return ret + } + return o.Recipients +} + +// GetRecipientsOk returns a tuple with the Recipients field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) GetRecipientsOk() ([]string, bool) { + if o == nil || isNil(o.Recipients) { + return nil, false + } + return o.Recipients, true +} + +// HasRecipients returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) HasRecipients() bool { + if o != nil && !isNil(o.Recipients) { + return true + } + + return false +} + +// SetRecipients gets a reference to the given []string and assigns it to the Recipients field. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) SetRecipients(v []string) { + o.Recipients = v +} + +// GetTemplate returns the Template field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) GetTemplate() KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse { + if o == nil || isNil(o.Template) { + var ret KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse + return ret + } + return *o.Template +} + +// GetTemplateOk returns a tuple with the Template field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) GetTemplateOk() (*KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse, bool) { + if o == nil || isNil(o.Template) { + return nil, false + } + return o.Template, true +} + +// HasTemplate returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) HasTemplate() bool { + if o != nil && !isNil(o.Template) { + return true + } + + return false +} + +// SetTemplate gets a reference to the given KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse and assigns it to the Template field. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) SetTemplate(v KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse) { + o.Template = &v +} + +// GetRegisteredEventHandler returns the RegisteredEventHandler field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) GetRegisteredEventHandler() KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse { + if o == nil || isNil(o.RegisteredEventHandler) { + var ret KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse + return ret + } + return *o.RegisteredEventHandler +} + +// GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) GetRegisteredEventHandlerOk() (*KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse, bool) { + if o == nil || isNil(o.RegisteredEventHandler) { + return nil, false + } + return o.RegisteredEventHandler, true +} + +// HasRegisteredEventHandler returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) HasRegisteredEventHandler() bool { + if o != nil && !isNil(o.RegisteredEventHandler) { + return true + } + + return false +} + +// SetRegisteredEventHandler gets a reference to the given KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse and assigns it to the RegisteredEventHandler field. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) SetRegisteredEventHandler(v KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse) { + o.RegisteredEventHandler = &v +} + +// GetEventHandlerParameters returns the EventHandlerParameters field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) GetEventHandlerParameters() []KeyfactorApiModelsEventHandlerEventHandlerParameterResponse { + if o == nil || isNil(o.EventHandlerParameters) { + var ret []KeyfactorApiModelsEventHandlerEventHandlerParameterResponse + return ret + } + return o.EventHandlerParameters +} + +// GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) GetEventHandlerParametersOk() ([]KeyfactorApiModelsEventHandlerEventHandlerParameterResponse, bool) { + if o == nil || isNil(o.EventHandlerParameters) { + return nil, false + } + return o.EventHandlerParameters, true +} + +// HasEventHandlerParameters returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) HasEventHandlerParameters() bool { + if o != nil && !isNil(o.EventHandlerParameters) { + return true + } + + return false +} + +// SetEventHandlerParameters gets a reference to the given []KeyfactorApiModelsEventHandlerEventHandlerParameterResponse and assigns it to the EventHandlerParameters field. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) SetEventHandlerParameters(v []KeyfactorApiModelsEventHandlerEventHandlerParameterResponse) { + o.EventHandlerParameters = v +} + +func (o KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.DisplayName) { + toSerialize["DisplayName"] = o.DisplayName + } + if !isNil(o.Subject) { + toSerialize["Subject"] = o.Subject + } + if !isNil(o.Message) { + toSerialize["Message"] = o.Message + } + if !isNil(o.Recipients) { + toSerialize["Recipients"] = o.Recipients + } + if !isNil(o.Template) { + toSerialize["Template"] = o.Template + } + if !isNil(o.RegisteredEventHandler) { + toSerialize["RegisteredEventHandler"] = o.RegisteredEventHandler + } + if !isNil(o.EventHandlerParameters) { + toSerialize["EventHandlerParameters"] = o.EventHandlerParameters + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse := _KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse); err == nil { + *o = KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse(varKeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "DisplayName") + delete(additionalProperties, "Subject") + delete(additionalProperties, "Message") + delete(additionalProperties, "Recipients") + delete(additionalProperties, "Template") + delete(additionalProperties, "RegisteredEventHandler") + delete(additionalProperties, "EventHandlerParameters") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse struct { + value *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) Get() *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) Set(val *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse(val *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) *NullableKeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse { + return &NullableKeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_alerts_pending_pending_alert_response.go b/v1/api/keyfactor/model_keyfactor_api_models_alerts_pending_pending_alert_response.go new file mode 100644 index 0000000..41a6e17 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_alerts_pending_pending_alert_response.go @@ -0,0 +1,343 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsAlertsPendingPendingAlertResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsAlertsPendingPendingAlertResponse{} + +// KeyfactorApiModelsAlertsPendingPendingAlertResponse struct for KeyfactorApiModelsAlertsPendingPendingAlertResponse +type KeyfactorApiModelsAlertsPendingPendingAlertResponse struct { + Subject *string `json:"Subject,omitempty"` + Message *string `json:"Message,omitempty"` + Recipients []string `json:"Recipients,omitempty"` + CARequestId *int32 `json:"CARequestId,omitempty"` + CommonName *string `json:"CommonName,omitempty"` + LogicalName *string `json:"LogicalName,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsAlertsPendingPendingAlertResponse KeyfactorApiModelsAlertsPendingPendingAlertResponse + +// NewKeyfactorApiModelsAlertsPendingPendingAlertResponse instantiates a new KeyfactorApiModelsAlertsPendingPendingAlertResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsAlertsPendingPendingAlertResponse() *KeyfactorApiModelsAlertsPendingPendingAlertResponse { + this := KeyfactorApiModelsAlertsPendingPendingAlertResponse{} + return &this +} + +// NewKeyfactorApiModelsAlertsPendingPendingAlertResponseWithDefaults instantiates a new KeyfactorApiModelsAlertsPendingPendingAlertResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsAlertsPendingPendingAlertResponseWithDefaults() *KeyfactorApiModelsAlertsPendingPendingAlertResponse { + this := KeyfactorApiModelsAlertsPendingPendingAlertResponse{} + return &this +} + +// GetSubject returns the Subject field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertResponse) GetSubject() string { + if o == nil || isNil(o.Subject) { + var ret string + return ret + } + return *o.Subject +} + +// GetSubjectOk returns a tuple with the Subject field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertResponse) GetSubjectOk() (*string, bool) { + if o == nil || isNil(o.Subject) { + return nil, false + } + return o.Subject, true +} + +// HasSubject returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertResponse) HasSubject() bool { + if o != nil && !isNil(o.Subject) { + return true + } + + return false +} + +// SetSubject gets a reference to the given string and assigns it to the Subject field. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertResponse) SetSubject(v string) { + o.Subject = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertResponse) GetMessage() string { + if o == nil || isNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertResponse) GetMessageOk() (*string, bool) { + if o == nil || isNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertResponse) HasMessage() bool { + if o != nil && !isNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertResponse) SetMessage(v string) { + o.Message = &v +} + +// GetRecipients returns the Recipients field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertResponse) GetRecipients() []string { + if o == nil || isNil(o.Recipients) { + var ret []string + return ret + } + return o.Recipients +} + +// GetRecipientsOk returns a tuple with the Recipients field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertResponse) GetRecipientsOk() ([]string, bool) { + if o == nil || isNil(o.Recipients) { + return nil, false + } + return o.Recipients, true +} + +// HasRecipients returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertResponse) HasRecipients() bool { + if o != nil && !isNil(o.Recipients) { + return true + } + + return false +} + +// SetRecipients gets a reference to the given []string and assigns it to the Recipients field. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertResponse) SetRecipients(v []string) { + o.Recipients = v +} + +// GetCARequestId returns the CARequestId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertResponse) GetCARequestId() int32 { + if o == nil || isNil(o.CARequestId) { + var ret int32 + return ret + } + return *o.CARequestId +} + +// GetCARequestIdOk returns a tuple with the CARequestId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertResponse) GetCARequestIdOk() (*int32, bool) { + if o == nil || isNil(o.CARequestId) { + return nil, false + } + return o.CARequestId, true +} + +// HasCARequestId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertResponse) HasCARequestId() bool { + if o != nil && !isNil(o.CARequestId) { + return true + } + + return false +} + +// SetCARequestId gets a reference to the given int32 and assigns it to the CARequestId field. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertResponse) SetCARequestId(v int32) { + o.CARequestId = &v +} + +// GetCommonName returns the CommonName field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertResponse) GetCommonName() string { + if o == nil || isNil(o.CommonName) { + var ret string + return ret + } + return *o.CommonName +} + +// GetCommonNameOk returns a tuple with the CommonName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertResponse) GetCommonNameOk() (*string, bool) { + if o == nil || isNil(o.CommonName) { + return nil, false + } + return o.CommonName, true +} + +// HasCommonName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertResponse) HasCommonName() bool { + if o != nil && !isNil(o.CommonName) { + return true + } + + return false +} + +// SetCommonName gets a reference to the given string and assigns it to the CommonName field. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertResponse) SetCommonName(v string) { + o.CommonName = &v +} + +// GetLogicalName returns the LogicalName field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertResponse) GetLogicalName() string { + if o == nil || isNil(o.LogicalName) { + var ret string + return ret + } + return *o.LogicalName +} + +// GetLogicalNameOk returns a tuple with the LogicalName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertResponse) GetLogicalNameOk() (*string, bool) { + if o == nil || isNil(o.LogicalName) { + return nil, false + } + return o.LogicalName, true +} + +// HasLogicalName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertResponse) HasLogicalName() bool { + if o != nil && !isNil(o.LogicalName) { + return true + } + + return false +} + +// SetLogicalName gets a reference to the given string and assigns it to the LogicalName field. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertResponse) SetLogicalName(v string) { + o.LogicalName = &v +} + +func (o KeyfactorApiModelsAlertsPendingPendingAlertResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsAlertsPendingPendingAlertResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Subject) { + toSerialize["Subject"] = o.Subject + } + if !isNil(o.Message) { + toSerialize["Message"] = o.Message + } + if !isNil(o.Recipients) { + toSerialize["Recipients"] = o.Recipients + } + if !isNil(o.CARequestId) { + toSerialize["CARequestId"] = o.CARequestId + } + if !isNil(o.CommonName) { + toSerialize["CommonName"] = o.CommonName + } + if !isNil(o.LogicalName) { + toSerialize["LogicalName"] = o.LogicalName + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsAlertsPendingPendingAlertResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsAlertsPendingPendingAlertResponse := _KeyfactorApiModelsAlertsPendingPendingAlertResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsAlertsPendingPendingAlertResponse); err == nil { + *o = KeyfactorApiModelsAlertsPendingPendingAlertResponse(varKeyfactorApiModelsAlertsPendingPendingAlertResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Subject") + delete(additionalProperties, "Message") + delete(additionalProperties, "Recipients") + delete(additionalProperties, "CARequestId") + delete(additionalProperties, "CommonName") + delete(additionalProperties, "LogicalName") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsAlertsPendingPendingAlertResponse struct { + value *KeyfactorApiModelsAlertsPendingPendingAlertResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsAlertsPendingPendingAlertResponse) Get() *KeyfactorApiModelsAlertsPendingPendingAlertResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsAlertsPendingPendingAlertResponse) Set(val *KeyfactorApiModelsAlertsPendingPendingAlertResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsAlertsPendingPendingAlertResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsAlertsPendingPendingAlertResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsAlertsPendingPendingAlertResponse(val *KeyfactorApiModelsAlertsPendingPendingAlertResponse) *NullableKeyfactorApiModelsAlertsPendingPendingAlertResponse { + return &NullableKeyfactorApiModelsAlertsPendingPendingAlertResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsAlertsPendingPendingAlertResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsAlertsPendingPendingAlertResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_alerts_pending_pending_alert_test_all_request.go b/v1/api/keyfactor/model_keyfactor_api_models_alerts_pending_pending_alert_test_all_request.go new file mode 100644 index 0000000..5cdeaa2 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_alerts_pending_pending_alert_test_all_request.go @@ -0,0 +1,158 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest{} + +// KeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest struct for KeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest +type KeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest struct { + SendAlerts *bool `json:"SendAlerts,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest KeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest + +// NewKeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest instantiates a new KeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest() *KeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest { + this := KeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest{} + return &this +} + +// NewKeyfactorApiModelsAlertsPendingPendingAlertTestAllRequestWithDefaults instantiates a new KeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsAlertsPendingPendingAlertTestAllRequestWithDefaults() *KeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest { + this := KeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest{} + return &this +} + +// GetSendAlerts returns the SendAlerts field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest) GetSendAlerts() bool { + if o == nil || isNil(o.SendAlerts) { + var ret bool + return ret + } + return *o.SendAlerts +} + +// GetSendAlertsOk returns a tuple with the SendAlerts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest) GetSendAlertsOk() (*bool, bool) { + if o == nil || isNil(o.SendAlerts) { + return nil, false + } + return o.SendAlerts, true +} + +// HasSendAlerts returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest) HasSendAlerts() bool { + if o != nil && !isNil(o.SendAlerts) { + return true + } + + return false +} + +// SetSendAlerts gets a reference to the given bool and assigns it to the SendAlerts field. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest) SetSendAlerts(v bool) { + o.SendAlerts = &v +} + +func (o KeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.SendAlerts) { + toSerialize["SendAlerts"] = o.SendAlerts + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest := _KeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest); err == nil { + *o = KeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest(varKeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "SendAlerts") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest struct { + value *KeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest) Get() *KeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest) Set(val *KeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest(val *KeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest) *NullableKeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest { + return &NullableKeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_alerts_pending_pending_alert_test_request.go b/v1/api/keyfactor/model_keyfactor_api_models_alerts_pending_pending_alert_test_request.go new file mode 100644 index 0000000..a21b15d --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_alerts_pending_pending_alert_test_request.go @@ -0,0 +1,195 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsAlertsPendingPendingAlertTestRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsAlertsPendingPendingAlertTestRequest{} + +// KeyfactorApiModelsAlertsPendingPendingAlertTestRequest struct for KeyfactorApiModelsAlertsPendingPendingAlertTestRequest +type KeyfactorApiModelsAlertsPendingPendingAlertTestRequest struct { + AlertId *int32 `json:"AlertId,omitempty"` + SendAlerts *bool `json:"SendAlerts,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsAlertsPendingPendingAlertTestRequest KeyfactorApiModelsAlertsPendingPendingAlertTestRequest + +// NewKeyfactorApiModelsAlertsPendingPendingAlertTestRequest instantiates a new KeyfactorApiModelsAlertsPendingPendingAlertTestRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsAlertsPendingPendingAlertTestRequest() *KeyfactorApiModelsAlertsPendingPendingAlertTestRequest { + this := KeyfactorApiModelsAlertsPendingPendingAlertTestRequest{} + return &this +} + +// NewKeyfactorApiModelsAlertsPendingPendingAlertTestRequestWithDefaults instantiates a new KeyfactorApiModelsAlertsPendingPendingAlertTestRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsAlertsPendingPendingAlertTestRequestWithDefaults() *KeyfactorApiModelsAlertsPendingPendingAlertTestRequest { + this := KeyfactorApiModelsAlertsPendingPendingAlertTestRequest{} + return &this +} + +// GetAlertId returns the AlertId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertTestRequest) GetAlertId() int32 { + if o == nil || isNil(o.AlertId) { + var ret int32 + return ret + } + return *o.AlertId +} + +// GetAlertIdOk returns a tuple with the AlertId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertTestRequest) GetAlertIdOk() (*int32, bool) { + if o == nil || isNil(o.AlertId) { + return nil, false + } + return o.AlertId, true +} + +// HasAlertId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertTestRequest) HasAlertId() bool { + if o != nil && !isNil(o.AlertId) { + return true + } + + return false +} + +// SetAlertId gets a reference to the given int32 and assigns it to the AlertId field. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertTestRequest) SetAlertId(v int32) { + o.AlertId = &v +} + +// GetSendAlerts returns the SendAlerts field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertTestRequest) GetSendAlerts() bool { + if o == nil || isNil(o.SendAlerts) { + var ret bool + return ret + } + return *o.SendAlerts +} + +// GetSendAlertsOk returns a tuple with the SendAlerts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertTestRequest) GetSendAlertsOk() (*bool, bool) { + if o == nil || isNil(o.SendAlerts) { + return nil, false + } + return o.SendAlerts, true +} + +// HasSendAlerts returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertTestRequest) HasSendAlerts() bool { + if o != nil && !isNil(o.SendAlerts) { + return true + } + + return false +} + +// SetSendAlerts gets a reference to the given bool and assigns it to the SendAlerts field. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertTestRequest) SetSendAlerts(v bool) { + o.SendAlerts = &v +} + +func (o KeyfactorApiModelsAlertsPendingPendingAlertTestRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsAlertsPendingPendingAlertTestRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.AlertId) { + toSerialize["AlertId"] = o.AlertId + } + if !isNil(o.SendAlerts) { + toSerialize["SendAlerts"] = o.SendAlerts + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsAlertsPendingPendingAlertTestRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsAlertsPendingPendingAlertTestRequest := _KeyfactorApiModelsAlertsPendingPendingAlertTestRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsAlertsPendingPendingAlertTestRequest); err == nil { + *o = KeyfactorApiModelsAlertsPendingPendingAlertTestRequest(varKeyfactorApiModelsAlertsPendingPendingAlertTestRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "AlertId") + delete(additionalProperties, "SendAlerts") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsAlertsPendingPendingAlertTestRequest struct { + value *KeyfactorApiModelsAlertsPendingPendingAlertTestRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsAlertsPendingPendingAlertTestRequest) Get() *KeyfactorApiModelsAlertsPendingPendingAlertTestRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsAlertsPendingPendingAlertTestRequest) Set(val *KeyfactorApiModelsAlertsPendingPendingAlertTestRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsAlertsPendingPendingAlertTestRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsAlertsPendingPendingAlertTestRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsAlertsPendingPendingAlertTestRequest(val *KeyfactorApiModelsAlertsPendingPendingAlertTestRequest) *NullableKeyfactorApiModelsAlertsPendingPendingAlertTestRequest { + return &NullableKeyfactorApiModelsAlertsPendingPendingAlertTestRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsAlertsPendingPendingAlertTestRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsAlertsPendingPendingAlertTestRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_alerts_pending_pending_alert_test_response.go b/v1/api/keyfactor/model_keyfactor_api_models_alerts_pending_pending_alert_test_response.go new file mode 100644 index 0000000..db7981b --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_alerts_pending_pending_alert_test_response.go @@ -0,0 +1,195 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsAlertsPendingPendingAlertTestResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsAlertsPendingPendingAlertTestResponse{} + +// KeyfactorApiModelsAlertsPendingPendingAlertTestResponse struct for KeyfactorApiModelsAlertsPendingPendingAlertTestResponse +type KeyfactorApiModelsAlertsPendingPendingAlertTestResponse struct { + PendingAlerts []KeyfactorApiModelsAlertsPendingPendingAlertResponse `json:"PendingAlerts,omitempty"` + AlertBuildResult *int32 `json:"AlertBuildResult,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsAlertsPendingPendingAlertTestResponse KeyfactorApiModelsAlertsPendingPendingAlertTestResponse + +// NewKeyfactorApiModelsAlertsPendingPendingAlertTestResponse instantiates a new KeyfactorApiModelsAlertsPendingPendingAlertTestResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsAlertsPendingPendingAlertTestResponse() *KeyfactorApiModelsAlertsPendingPendingAlertTestResponse { + this := KeyfactorApiModelsAlertsPendingPendingAlertTestResponse{} + return &this +} + +// NewKeyfactorApiModelsAlertsPendingPendingAlertTestResponseWithDefaults instantiates a new KeyfactorApiModelsAlertsPendingPendingAlertTestResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsAlertsPendingPendingAlertTestResponseWithDefaults() *KeyfactorApiModelsAlertsPendingPendingAlertTestResponse { + this := KeyfactorApiModelsAlertsPendingPendingAlertTestResponse{} + return &this +} + +// GetPendingAlerts returns the PendingAlerts field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertTestResponse) GetPendingAlerts() []KeyfactorApiModelsAlertsPendingPendingAlertResponse { + if o == nil || isNil(o.PendingAlerts) { + var ret []KeyfactorApiModelsAlertsPendingPendingAlertResponse + return ret + } + return o.PendingAlerts +} + +// GetPendingAlertsOk returns a tuple with the PendingAlerts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertTestResponse) GetPendingAlertsOk() ([]KeyfactorApiModelsAlertsPendingPendingAlertResponse, bool) { + if o == nil || isNil(o.PendingAlerts) { + return nil, false + } + return o.PendingAlerts, true +} + +// HasPendingAlerts returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertTestResponse) HasPendingAlerts() bool { + if o != nil && !isNil(o.PendingAlerts) { + return true + } + + return false +} + +// SetPendingAlerts gets a reference to the given []KeyfactorApiModelsAlertsPendingPendingAlertResponse and assigns it to the PendingAlerts field. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertTestResponse) SetPendingAlerts(v []KeyfactorApiModelsAlertsPendingPendingAlertResponse) { + o.PendingAlerts = v +} + +// GetAlertBuildResult returns the AlertBuildResult field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertTestResponse) GetAlertBuildResult() int32 { + if o == nil || isNil(o.AlertBuildResult) { + var ret int32 + return ret + } + return *o.AlertBuildResult +} + +// GetAlertBuildResultOk returns a tuple with the AlertBuildResult field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertTestResponse) GetAlertBuildResultOk() (*int32, bool) { + if o == nil || isNil(o.AlertBuildResult) { + return nil, false + } + return o.AlertBuildResult, true +} + +// HasAlertBuildResult returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertTestResponse) HasAlertBuildResult() bool { + if o != nil && !isNil(o.AlertBuildResult) { + return true + } + + return false +} + +// SetAlertBuildResult gets a reference to the given int32 and assigns it to the AlertBuildResult field. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertTestResponse) SetAlertBuildResult(v int32) { + o.AlertBuildResult = &v +} + +func (o KeyfactorApiModelsAlertsPendingPendingAlertTestResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsAlertsPendingPendingAlertTestResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.PendingAlerts) { + toSerialize["PendingAlerts"] = o.PendingAlerts + } + if !isNil(o.AlertBuildResult) { + toSerialize["AlertBuildResult"] = o.AlertBuildResult + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsAlertsPendingPendingAlertTestResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsAlertsPendingPendingAlertTestResponse := _KeyfactorApiModelsAlertsPendingPendingAlertTestResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsAlertsPendingPendingAlertTestResponse); err == nil { + *o = KeyfactorApiModelsAlertsPendingPendingAlertTestResponse(varKeyfactorApiModelsAlertsPendingPendingAlertTestResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "PendingAlerts") + delete(additionalProperties, "AlertBuildResult") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsAlertsPendingPendingAlertTestResponse struct { + value *KeyfactorApiModelsAlertsPendingPendingAlertTestResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsAlertsPendingPendingAlertTestResponse) Get() *KeyfactorApiModelsAlertsPendingPendingAlertTestResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsAlertsPendingPendingAlertTestResponse) Set(val *KeyfactorApiModelsAlertsPendingPendingAlertTestResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsAlertsPendingPendingAlertTestResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsAlertsPendingPendingAlertTestResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsAlertsPendingPendingAlertTestResponse(val *KeyfactorApiModelsAlertsPendingPendingAlertTestResponse) *NullableKeyfactorApiModelsAlertsPendingPendingAlertTestResponse { + return &NullableKeyfactorApiModelsAlertsPendingPendingAlertTestResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsAlertsPendingPendingAlertTestResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsAlertsPendingPendingAlertTestResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_alerts_pending_pending_alert_update_request.go b/v1/api/keyfactor/model_keyfactor_api_models_alerts_pending_pending_alert_update_request.go new file mode 100644 index 0000000..70efd02 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_alerts_pending_pending_alert_update_request.go @@ -0,0 +1,390 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest{} + +// KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest struct for KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest +type KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest struct { + Id *int32 `json:"Id,omitempty"` + DisplayName string `json:"DisplayName"` + Subject string `json:"Subject"` + Message string `json:"Message"` + TemplateId *int32 `json:"TemplateId,omitempty"` + RegisteredEventHandler *KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest `json:"RegisteredEventHandler,omitempty"` + Recipients []string `json:"Recipients,omitempty"` + EventHandlerParameters []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest `json:"EventHandlerParameters,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest + +// NewKeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest instantiates a new KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest(displayName string, subject string, message string) *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest { + this := KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest{} + this.DisplayName = displayName + this.Subject = subject + this.Message = message + return &this +} + +// NewKeyfactorApiModelsAlertsPendingPendingAlertUpdateRequestWithDefaults instantiates a new KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsAlertsPendingPendingAlertUpdateRequestWithDefaults() *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest { + this := KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) SetId(v int32) { + o.Id = &v +} + +// GetDisplayName returns the DisplayName field value +func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) GetDisplayName() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayName, true +} + +// SetDisplayName sets field value +func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) SetDisplayName(v string) { + o.DisplayName = v +} + +// GetSubject returns the Subject field value +func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) GetSubject() string { + if o == nil { + var ret string + return ret + } + + return o.Subject +} + +// GetSubjectOk returns a tuple with the Subject field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) GetSubjectOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Subject, true +} + +// SetSubject sets field value +func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) SetSubject(v string) { + o.Subject = v +} + +// GetMessage returns the Message field value +func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) SetMessage(v string) { + o.Message = v +} + +// GetTemplateId returns the TemplateId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) GetTemplateId() int32 { + if o == nil || isNil(o.TemplateId) { + var ret int32 + return ret + } + return *o.TemplateId +} + +// GetTemplateIdOk returns a tuple with the TemplateId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) GetTemplateIdOk() (*int32, bool) { + if o == nil || isNil(o.TemplateId) { + return nil, false + } + return o.TemplateId, true +} + +// HasTemplateId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) HasTemplateId() bool { + if o != nil && !isNil(o.TemplateId) { + return true + } + + return false +} + +// SetTemplateId gets a reference to the given int32 and assigns it to the TemplateId field. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) SetTemplateId(v int32) { + o.TemplateId = &v +} + +// GetRegisteredEventHandler returns the RegisteredEventHandler field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) GetRegisteredEventHandler() KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest { + if o == nil || isNil(o.RegisteredEventHandler) { + var ret KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest + return ret + } + return *o.RegisteredEventHandler +} + +// GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) GetRegisteredEventHandlerOk() (*KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest, bool) { + if o == nil || isNil(o.RegisteredEventHandler) { + return nil, false + } + return o.RegisteredEventHandler, true +} + +// HasRegisteredEventHandler returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) HasRegisteredEventHandler() bool { + if o != nil && !isNil(o.RegisteredEventHandler) { + return true + } + + return false +} + +// SetRegisteredEventHandler gets a reference to the given KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest and assigns it to the RegisteredEventHandler field. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) SetRegisteredEventHandler(v KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest) { + o.RegisteredEventHandler = &v +} + +// GetRecipients returns the Recipients field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) GetRecipients() []string { + if o == nil || isNil(o.Recipients) { + var ret []string + return ret + } + return o.Recipients +} + +// GetRecipientsOk returns a tuple with the Recipients field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) GetRecipientsOk() ([]string, bool) { + if o == nil || isNil(o.Recipients) { + return nil, false + } + return o.Recipients, true +} + +// HasRecipients returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) HasRecipients() bool { + if o != nil && !isNil(o.Recipients) { + return true + } + + return false +} + +// SetRecipients gets a reference to the given []string and assigns it to the Recipients field. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) SetRecipients(v []string) { + o.Recipients = v +} + +// GetEventHandlerParameters returns the EventHandlerParameters field value if set, zero value otherwise. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) GetEventHandlerParameters() []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest { + if o == nil || isNil(o.EventHandlerParameters) { + var ret []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest + return ret + } + return o.EventHandlerParameters +} + +// GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) GetEventHandlerParametersOk() ([]KeyfactorApiModelsEventHandlerEventHandlerParameterRequest, bool) { + if o == nil || isNil(o.EventHandlerParameters) { + return nil, false + } + return o.EventHandlerParameters, true +} + +// HasEventHandlerParameters returns a boolean if a field has been set. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) HasEventHandlerParameters() bool { + if o != nil && !isNil(o.EventHandlerParameters) { + return true + } + + return false +} + +// SetEventHandlerParameters gets a reference to the given []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest and assigns it to the EventHandlerParameters field. +func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) SetEventHandlerParameters(v []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest) { + o.EventHandlerParameters = v +} + +func (o KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + toSerialize["DisplayName"] = o.DisplayName + toSerialize["Subject"] = o.Subject + toSerialize["Message"] = o.Message + if !isNil(o.TemplateId) { + toSerialize["TemplateId"] = o.TemplateId + } + if !isNil(o.RegisteredEventHandler) { + toSerialize["RegisteredEventHandler"] = o.RegisteredEventHandler + } + if !isNil(o.Recipients) { + toSerialize["Recipients"] = o.Recipients + } + if !isNil(o.EventHandlerParameters) { + toSerialize["EventHandlerParameters"] = o.EventHandlerParameters + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest := _KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest); err == nil { + *o = KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest(varKeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "DisplayName") + delete(additionalProperties, "Subject") + delete(additionalProperties, "Message") + delete(additionalProperties, "TemplateId") + delete(additionalProperties, "RegisteredEventHandler") + delete(additionalProperties, "Recipients") + delete(additionalProperties, "EventHandlerParameters") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest struct { + value *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) Get() *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) Set(val *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest(val *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) *NullableKeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest { + return &NullableKeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_certificate_authorities_certificate_authority_test_response.go b/v1/api/keyfactor/model_keyfactor_api_models_certificate_authorities_certificate_authority_test_response.go new file mode 100644 index 0000000..2ff9645 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_certificate_authorities_certificate_authority_test_response.go @@ -0,0 +1,197 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse{} + +// KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse A DTO for CA tests. +type KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse struct { + // Whether the test succeeded or failed. + Success *bool `json:"Success,omitempty"` + // The message returned by the test. + Message *string `json:"Message,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse + +// NewKeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse instantiates a new KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse() *KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse { + this := KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse{} + return &this +} + +// NewKeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponseWithDefaults instantiates a new KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponseWithDefaults() *KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse { + this := KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse{} + return &this +} + +// GetSuccess returns the Success field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse) GetSuccess() bool { + if o == nil || isNil(o.Success) { + var ret bool + return ret + } + return *o.Success +} + +// GetSuccessOk returns a tuple with the Success field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse) GetSuccessOk() (*bool, bool) { + if o == nil || isNil(o.Success) { + return nil, false + } + return o.Success, true +} + +// HasSuccess returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse) HasSuccess() bool { + if o != nil && !isNil(o.Success) { + return true + } + + return false +} + +// SetSuccess gets a reference to the given bool and assigns it to the Success field. +func (o *KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse) SetSuccess(v bool) { + o.Success = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse) GetMessage() string { + if o == nil || isNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse) GetMessageOk() (*string, bool) { + if o == nil || isNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse) HasMessage() bool { + if o != nil && !isNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse) SetMessage(v string) { + o.Message = &v +} + +func (o KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Success) { + toSerialize["Success"] = o.Success + } + if !isNil(o.Message) { + toSerialize["Message"] = o.Message + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse := _KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse); err == nil { + *o = KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse(varKeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Success") + delete(additionalProperties, "Message") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse struct { + value *KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse) Get() *KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse) Set(val *KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse(val *KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse) *NullableKeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse { + return &NullableKeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_certificate_collections_certificate_collection_copy_request.go b/v1/api/keyfactor/model_keyfactor_api_models_certificate_collections_certificate_collection_copy_request.go new file mode 100644 index 0000000..e03fa89 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_certificate_collections_certificate_collection_copy_request.go @@ -0,0 +1,362 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest{} + +// KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest struct for KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest +type KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest struct { + CopyFromId int32 `json:"CopyFromId"` + Name string `json:"Name"` + Description *string `json:"Description,omitempty"` + Query *string `json:"Query,omitempty"` + DuplicationField *int32 `json:"DuplicationField,omitempty"` + ShowOnDashboard *bool `json:"ShowOnDashboard,omitempty"` + Favorite *bool `json:"Favorite,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest + +// NewKeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest instantiates a new KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest(copyFromId int32, name string) *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest { + this := KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest{} + this.CopyFromId = copyFromId + this.Name = name + return &this +} + +// NewKeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequestWithDefaults instantiates a new KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequestWithDefaults() *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest { + this := KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest{} + return &this +} + +// GetCopyFromId returns the CopyFromId field value +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) GetCopyFromId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.CopyFromId +} + +// GetCopyFromIdOk returns a tuple with the CopyFromId field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) GetCopyFromIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.CopyFromId, true +} + +// SetCopyFromId sets field value +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) SetCopyFromId(v int32) { + o.CopyFromId = v +} + +// GetName returns the Name field value +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) GetDescription() string { + if o == nil || isNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) GetDescriptionOk() (*string, bool) { + if o == nil || isNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) HasDescription() bool { + if o != nil && !isNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) SetDescription(v string) { + o.Description = &v +} + +// GetQuery returns the Query field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) GetQuery() string { + if o == nil || isNil(o.Query) { + var ret string + return ret + } + return *o.Query +} + +// GetQueryOk returns a tuple with the Query field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) GetQueryOk() (*string, bool) { + if o == nil || isNil(o.Query) { + return nil, false + } + return o.Query, true +} + +// HasQuery returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) HasQuery() bool { + if o != nil && !isNil(o.Query) { + return true + } + + return false +} + +// SetQuery gets a reference to the given string and assigns it to the Query field. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) SetQuery(v string) { + o.Query = &v +} + +// GetDuplicationField returns the DuplicationField field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) GetDuplicationField() int32 { + if o == nil || isNil(o.DuplicationField) { + var ret int32 + return ret + } + return *o.DuplicationField +} + +// GetDuplicationFieldOk returns a tuple with the DuplicationField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) GetDuplicationFieldOk() (*int32, bool) { + if o == nil || isNil(o.DuplicationField) { + return nil, false + } + return o.DuplicationField, true +} + +// HasDuplicationField returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) HasDuplicationField() bool { + if o != nil && !isNil(o.DuplicationField) { + return true + } + + return false +} + +// SetDuplicationField gets a reference to the given int32 and assigns it to the DuplicationField field. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) SetDuplicationField(v int32) { + o.DuplicationField = &v +} + +// GetShowOnDashboard returns the ShowOnDashboard field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) GetShowOnDashboard() bool { + if o == nil || isNil(o.ShowOnDashboard) { + var ret bool + return ret + } + return *o.ShowOnDashboard +} + +// GetShowOnDashboardOk returns a tuple with the ShowOnDashboard field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) GetShowOnDashboardOk() (*bool, bool) { + if o == nil || isNil(o.ShowOnDashboard) { + return nil, false + } + return o.ShowOnDashboard, true +} + +// HasShowOnDashboard returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) HasShowOnDashboard() bool { + if o != nil && !isNil(o.ShowOnDashboard) { + return true + } + + return false +} + +// SetShowOnDashboard gets a reference to the given bool and assigns it to the ShowOnDashboard field. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) SetShowOnDashboard(v bool) { + o.ShowOnDashboard = &v +} + +// GetFavorite returns the Favorite field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) GetFavorite() bool { + if o == nil || isNil(o.Favorite) { + var ret bool + return ret + } + return *o.Favorite +} + +// GetFavoriteOk returns a tuple with the Favorite field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) GetFavoriteOk() (*bool, bool) { + if o == nil || isNil(o.Favorite) { + return nil, false + } + return o.Favorite, true +} + +// HasFavorite returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) HasFavorite() bool { + if o != nil && !isNil(o.Favorite) { + return true + } + + return false +} + +// SetFavorite gets a reference to the given bool and assigns it to the Favorite field. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) SetFavorite(v bool) { + o.Favorite = &v +} + +func (o KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["CopyFromId"] = o.CopyFromId + toSerialize["Name"] = o.Name + if !isNil(o.Description) { + toSerialize["Description"] = o.Description + } + if !isNil(o.Query) { + toSerialize["Query"] = o.Query + } + if !isNil(o.DuplicationField) { + toSerialize["DuplicationField"] = o.DuplicationField + } + if !isNil(o.ShowOnDashboard) { + toSerialize["ShowOnDashboard"] = o.ShowOnDashboard + } + if !isNil(o.Favorite) { + toSerialize["Favorite"] = o.Favorite + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest := _KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest); err == nil { + *o = KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest(varKeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "CopyFromId") + delete(additionalProperties, "Name") + delete(additionalProperties, "Description") + delete(additionalProperties, "Query") + delete(additionalProperties, "DuplicationField") + delete(additionalProperties, "ShowOnDashboard") + delete(additionalProperties, "Favorite") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest struct { + value *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) Get() *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) Set(val *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest(val *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) *NullableKeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest { + return &NullableKeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_certificate_collections_certificate_collection_create_request.go b/v1/api/keyfactor/model_keyfactor_api_models_certificate_collections_certificate_collection_create_request.go new file mode 100644 index 0000000..0ff38cd --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_certificate_collections_certificate_collection_create_request.go @@ -0,0 +1,408 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest{} + +// KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest struct for KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest +type KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest struct { + CopyFromId *int32 `json:"CopyFromId,omitempty"` + Id *int32 `json:"Id,omitempty"` + Name string `json:"Name"` + Description *string `json:"Description,omitempty"` + Query *string `json:"Query,omitempty"` + DuplicationField *int32 `json:"DuplicationField,omitempty"` + ShowOnDashboard *bool `json:"ShowOnDashboard,omitempty"` + Favorite *bool `json:"Favorite,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest + +// NewKeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest instantiates a new KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest(name string) *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest { + this := KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest{} + this.Name = name + return &this +} + +// NewKeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequestWithDefaults instantiates a new KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequestWithDefaults() *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest { + this := KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest{} + return &this +} + +// GetCopyFromId returns the CopyFromId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) GetCopyFromId() int32 { + if o == nil || isNil(o.CopyFromId) { + var ret int32 + return ret + } + return *o.CopyFromId +} + +// GetCopyFromIdOk returns a tuple with the CopyFromId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) GetCopyFromIdOk() (*int32, bool) { + if o == nil || isNil(o.CopyFromId) { + return nil, false + } + return o.CopyFromId, true +} + +// HasCopyFromId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) HasCopyFromId() bool { + if o != nil && !isNil(o.CopyFromId) { + return true + } + + return false +} + +// SetCopyFromId gets a reference to the given int32 and assigns it to the CopyFromId field. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) SetCopyFromId(v int32) { + o.CopyFromId = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) SetId(v int32) { + o.Id = &v +} + +// GetName returns the Name field value +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) GetDescription() string { + if o == nil || isNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) GetDescriptionOk() (*string, bool) { + if o == nil || isNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) HasDescription() bool { + if o != nil && !isNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) SetDescription(v string) { + o.Description = &v +} + +// GetQuery returns the Query field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) GetQuery() string { + if o == nil || isNil(o.Query) { + var ret string + return ret + } + return *o.Query +} + +// GetQueryOk returns a tuple with the Query field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) GetQueryOk() (*string, bool) { + if o == nil || isNil(o.Query) { + return nil, false + } + return o.Query, true +} + +// HasQuery returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) HasQuery() bool { + if o != nil && !isNil(o.Query) { + return true + } + + return false +} + +// SetQuery gets a reference to the given string and assigns it to the Query field. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) SetQuery(v string) { + o.Query = &v +} + +// GetDuplicationField returns the DuplicationField field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) GetDuplicationField() int32 { + if o == nil || isNil(o.DuplicationField) { + var ret int32 + return ret + } + return *o.DuplicationField +} + +// GetDuplicationFieldOk returns a tuple with the DuplicationField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) GetDuplicationFieldOk() (*int32, bool) { + if o == nil || isNil(o.DuplicationField) { + return nil, false + } + return o.DuplicationField, true +} + +// HasDuplicationField returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) HasDuplicationField() bool { + if o != nil && !isNil(o.DuplicationField) { + return true + } + + return false +} + +// SetDuplicationField gets a reference to the given int32 and assigns it to the DuplicationField field. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) SetDuplicationField(v int32) { + o.DuplicationField = &v +} + +// GetShowOnDashboard returns the ShowOnDashboard field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) GetShowOnDashboard() bool { + if o == nil || isNil(o.ShowOnDashboard) { + var ret bool + return ret + } + return *o.ShowOnDashboard +} + +// GetShowOnDashboardOk returns a tuple with the ShowOnDashboard field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) GetShowOnDashboardOk() (*bool, bool) { + if o == nil || isNil(o.ShowOnDashboard) { + return nil, false + } + return o.ShowOnDashboard, true +} + +// HasShowOnDashboard returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) HasShowOnDashboard() bool { + if o != nil && !isNil(o.ShowOnDashboard) { + return true + } + + return false +} + +// SetShowOnDashboard gets a reference to the given bool and assigns it to the ShowOnDashboard field. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) SetShowOnDashboard(v bool) { + o.ShowOnDashboard = &v +} + +// GetFavorite returns the Favorite field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) GetFavorite() bool { + if o == nil || isNil(o.Favorite) { + var ret bool + return ret + } + return *o.Favorite +} + +// GetFavoriteOk returns a tuple with the Favorite field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) GetFavoriteOk() (*bool, bool) { + if o == nil || isNil(o.Favorite) { + return nil, false + } + return o.Favorite, true +} + +// HasFavorite returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) HasFavorite() bool { + if o != nil && !isNil(o.Favorite) { + return true + } + + return false +} + +// SetFavorite gets a reference to the given bool and assigns it to the Favorite field. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) SetFavorite(v bool) { + o.Favorite = &v +} + +func (o KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.CopyFromId) { + toSerialize["CopyFromId"] = o.CopyFromId + } + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + toSerialize["Name"] = o.Name + if !isNil(o.Description) { + toSerialize["Description"] = o.Description + } + if !isNil(o.Query) { + toSerialize["Query"] = o.Query + } + if !isNil(o.DuplicationField) { + toSerialize["DuplicationField"] = o.DuplicationField + } + if !isNil(o.ShowOnDashboard) { + toSerialize["ShowOnDashboard"] = o.ShowOnDashboard + } + if !isNil(o.Favorite) { + toSerialize["Favorite"] = o.Favorite + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest := _KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest); err == nil { + *o = KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest(varKeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "CopyFromId") + delete(additionalProperties, "Id") + delete(additionalProperties, "Name") + delete(additionalProperties, "Description") + delete(additionalProperties, "Query") + delete(additionalProperties, "DuplicationField") + delete(additionalProperties, "ShowOnDashboard") + delete(additionalProperties, "Favorite") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest struct { + value *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) Get() *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) Set(val *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest(val *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) *NullableKeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest { + return &NullableKeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_certificate_collections_certificate_collection_response.go b/v1/api/keyfactor/model_keyfactor_api_models_certificate_collections_certificate_collection_response.go new file mode 100644 index 0000000..3d411e6 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_certificate_collections_certificate_collection_response.go @@ -0,0 +1,415 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse{} + +// KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse struct for KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse +type KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse struct { + Id *int32 `json:"Id,omitempty"` + Name *string `json:"Name,omitempty"` + Description *string `json:"Description,omitempty"` + Content *string `json:"Content,omitempty"` + Query *string `json:"Query,omitempty"` + DuplicationField *int32 `json:"DuplicationField,omitempty"` + ShowOnDashboard *bool `json:"ShowOnDashboard,omitempty"` + Favorite *bool `json:"Favorite,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse + +// NewKeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse instantiates a new KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse() *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse { + this := KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse{} + return &this +} + +// NewKeyfactorApiModelsCertificateCollectionsCertificateCollectionResponseWithDefaults instantiates a new KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsCertificateCollectionsCertificateCollectionResponseWithDefaults() *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse { + this := KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) SetId(v int32) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) GetName() string { + if o == nil || isNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) GetNameOk() (*string, bool) { + if o == nil || isNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) HasName() bool { + if o != nil && !isNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) SetName(v string) { + o.Name = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) GetDescription() string { + if o == nil || isNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) GetDescriptionOk() (*string, bool) { + if o == nil || isNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) HasDescription() bool { + if o != nil && !isNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) SetDescription(v string) { + o.Description = &v +} + +// GetContent returns the Content field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) GetContent() string { + if o == nil || isNil(o.Content) { + var ret string + return ret + } + return *o.Content +} + +// GetContentOk returns a tuple with the Content field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) GetContentOk() (*string, bool) { + if o == nil || isNil(o.Content) { + return nil, false + } + return o.Content, true +} + +// HasContent returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) HasContent() bool { + if o != nil && !isNil(o.Content) { + return true + } + + return false +} + +// SetContent gets a reference to the given string and assigns it to the Content field. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) SetContent(v string) { + o.Content = &v +} + +// GetQuery returns the Query field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) GetQuery() string { + if o == nil || isNil(o.Query) { + var ret string + return ret + } + return *o.Query +} + +// GetQueryOk returns a tuple with the Query field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) GetQueryOk() (*string, bool) { + if o == nil || isNil(o.Query) { + return nil, false + } + return o.Query, true +} + +// HasQuery returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) HasQuery() bool { + if o != nil && !isNil(o.Query) { + return true + } + + return false +} + +// SetQuery gets a reference to the given string and assigns it to the Query field. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) SetQuery(v string) { + o.Query = &v +} + +// GetDuplicationField returns the DuplicationField field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) GetDuplicationField() int32 { + if o == nil || isNil(o.DuplicationField) { + var ret int32 + return ret + } + return *o.DuplicationField +} + +// GetDuplicationFieldOk returns a tuple with the DuplicationField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) GetDuplicationFieldOk() (*int32, bool) { + if o == nil || isNil(o.DuplicationField) { + return nil, false + } + return o.DuplicationField, true +} + +// HasDuplicationField returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) HasDuplicationField() bool { + if o != nil && !isNil(o.DuplicationField) { + return true + } + + return false +} + +// SetDuplicationField gets a reference to the given int32 and assigns it to the DuplicationField field. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) SetDuplicationField(v int32) { + o.DuplicationField = &v +} + +// GetShowOnDashboard returns the ShowOnDashboard field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) GetShowOnDashboard() bool { + if o == nil || isNil(o.ShowOnDashboard) { + var ret bool + return ret + } + return *o.ShowOnDashboard +} + +// GetShowOnDashboardOk returns a tuple with the ShowOnDashboard field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) GetShowOnDashboardOk() (*bool, bool) { + if o == nil || isNil(o.ShowOnDashboard) { + return nil, false + } + return o.ShowOnDashboard, true +} + +// HasShowOnDashboard returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) HasShowOnDashboard() bool { + if o != nil && !isNil(o.ShowOnDashboard) { + return true + } + + return false +} + +// SetShowOnDashboard gets a reference to the given bool and assigns it to the ShowOnDashboard field. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) SetShowOnDashboard(v bool) { + o.ShowOnDashboard = &v +} + +// GetFavorite returns the Favorite field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) GetFavorite() bool { + if o == nil || isNil(o.Favorite) { + var ret bool + return ret + } + return *o.Favorite +} + +// GetFavoriteOk returns a tuple with the Favorite field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) GetFavoriteOk() (*bool, bool) { + if o == nil || isNil(o.Favorite) { + return nil, false + } + return o.Favorite, true +} + +// HasFavorite returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) HasFavorite() bool { + if o != nil && !isNil(o.Favorite) { + return true + } + + return false +} + +// SetFavorite gets a reference to the given bool and assigns it to the Favorite field. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) SetFavorite(v bool) { + o.Favorite = &v +} + +func (o KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.Name) { + toSerialize["Name"] = o.Name + } + if !isNil(o.Description) { + toSerialize["Description"] = o.Description + } + // skip: Content is readOnly + if !isNil(o.Query) { + toSerialize["Query"] = o.Query + } + if !isNil(o.DuplicationField) { + toSerialize["DuplicationField"] = o.DuplicationField + } + if !isNil(o.ShowOnDashboard) { + toSerialize["ShowOnDashboard"] = o.ShowOnDashboard + } + if !isNil(o.Favorite) { + toSerialize["Favorite"] = o.Favorite + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse := _KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse); err == nil { + *o = KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse(varKeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "Name") + delete(additionalProperties, "Description") + delete(additionalProperties, "Content") + delete(additionalProperties, "Query") + delete(additionalProperties, "DuplicationField") + delete(additionalProperties, "ShowOnDashboard") + delete(additionalProperties, "Favorite") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse struct { + value *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) Get() *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) Set(val *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse(val *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) *NullableKeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse { + return &NullableKeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_certificate_collections_certificate_collection_update_request.go b/v1/api/keyfactor/model_keyfactor_api_models_certificate_collections_certificate_collection_update_request.go new file mode 100644 index 0000000..64ef66c --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_certificate_collections_certificate_collection_update_request.go @@ -0,0 +1,362 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest{} + +// KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest struct for KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest +type KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest struct { + Id int32 `json:"Id"` + Name string `json:"Name"` + Description *string `json:"Description,omitempty"` + Query *string `json:"Query,omitempty"` + DuplicationField *int32 `json:"DuplicationField,omitempty"` + ShowOnDashboard *bool `json:"ShowOnDashboard,omitempty"` + Favorite *bool `json:"Favorite,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest + +// NewKeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest instantiates a new KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest(id int32, name string) *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest { + this := KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest{} + this.Id = id + this.Name = name + return &this +} + +// NewKeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequestWithDefaults instantiates a new KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequestWithDefaults() *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest { + this := KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest{} + return &this +} + +// GetId returns the Id field value +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) SetId(v int32) { + o.Id = v +} + +// GetName returns the Name field value +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) GetDescription() string { + if o == nil || isNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) GetDescriptionOk() (*string, bool) { + if o == nil || isNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) HasDescription() bool { + if o != nil && !isNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) SetDescription(v string) { + o.Description = &v +} + +// GetQuery returns the Query field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) GetQuery() string { + if o == nil || isNil(o.Query) { + var ret string + return ret + } + return *o.Query +} + +// GetQueryOk returns a tuple with the Query field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) GetQueryOk() (*string, bool) { + if o == nil || isNil(o.Query) { + return nil, false + } + return o.Query, true +} + +// HasQuery returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) HasQuery() bool { + if o != nil && !isNil(o.Query) { + return true + } + + return false +} + +// SetQuery gets a reference to the given string and assigns it to the Query field. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) SetQuery(v string) { + o.Query = &v +} + +// GetDuplicationField returns the DuplicationField field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) GetDuplicationField() int32 { + if o == nil || isNil(o.DuplicationField) { + var ret int32 + return ret + } + return *o.DuplicationField +} + +// GetDuplicationFieldOk returns a tuple with the DuplicationField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) GetDuplicationFieldOk() (*int32, bool) { + if o == nil || isNil(o.DuplicationField) { + return nil, false + } + return o.DuplicationField, true +} + +// HasDuplicationField returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) HasDuplicationField() bool { + if o != nil && !isNil(o.DuplicationField) { + return true + } + + return false +} + +// SetDuplicationField gets a reference to the given int32 and assigns it to the DuplicationField field. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) SetDuplicationField(v int32) { + o.DuplicationField = &v +} + +// GetShowOnDashboard returns the ShowOnDashboard field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) GetShowOnDashboard() bool { + if o == nil || isNil(o.ShowOnDashboard) { + var ret bool + return ret + } + return *o.ShowOnDashboard +} + +// GetShowOnDashboardOk returns a tuple with the ShowOnDashboard field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) GetShowOnDashboardOk() (*bool, bool) { + if o == nil || isNil(o.ShowOnDashboard) { + return nil, false + } + return o.ShowOnDashboard, true +} + +// HasShowOnDashboard returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) HasShowOnDashboard() bool { + if o != nil && !isNil(o.ShowOnDashboard) { + return true + } + + return false +} + +// SetShowOnDashboard gets a reference to the given bool and assigns it to the ShowOnDashboard field. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) SetShowOnDashboard(v bool) { + o.ShowOnDashboard = &v +} + +// GetFavorite returns the Favorite field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) GetFavorite() bool { + if o == nil || isNil(o.Favorite) { + var ret bool + return ret + } + return *o.Favorite +} + +// GetFavoriteOk returns a tuple with the Favorite field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) GetFavoriteOk() (*bool, bool) { + if o == nil || isNil(o.Favorite) { + return nil, false + } + return o.Favorite, true +} + +// HasFavorite returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) HasFavorite() bool { + if o != nil && !isNil(o.Favorite) { + return true + } + + return false +} + +// SetFavorite gets a reference to the given bool and assigns it to the Favorite field. +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) SetFavorite(v bool) { + o.Favorite = &v +} + +func (o KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Id"] = o.Id + toSerialize["Name"] = o.Name + if !isNil(o.Description) { + toSerialize["Description"] = o.Description + } + if !isNil(o.Query) { + toSerialize["Query"] = o.Query + } + if !isNil(o.DuplicationField) { + toSerialize["DuplicationField"] = o.DuplicationField + } + if !isNil(o.ShowOnDashboard) { + toSerialize["ShowOnDashboard"] = o.ShowOnDashboard + } + if !isNil(o.Favorite) { + toSerialize["Favorite"] = o.Favorite + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest := _KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest); err == nil { + *o = KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest(varKeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "Name") + delete(additionalProperties, "Description") + delete(additionalProperties, "Query") + delete(additionalProperties, "DuplicationField") + delete(additionalProperties, "ShowOnDashboard") + delete(additionalProperties, "Favorite") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest struct { + value *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) Get() *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) Set(val *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest(val *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) *NullableKeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest { + return &NullableKeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_certificate_stores_add_certificate_request.go b/v1/api/keyfactor/model_keyfactor_api_models_certificate_stores_add_certificate_request.go new file mode 100644 index 0000000..166b52f --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_certificate_stores_add_certificate_request.go @@ -0,0 +1,242 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsCertificateStoresAddCertificateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsCertificateStoresAddCertificateRequest{} + +// KeyfactorApiModelsCertificateStoresAddCertificateRequest struct for KeyfactorApiModelsCertificateStoresAddCertificateRequest +type KeyfactorApiModelsCertificateStoresAddCertificateRequest struct { + CertificateId int32 `json:"CertificateId"` + CertificateStores []ModelsCertificateStoreEntry `json:"CertificateStores"` + Schedule KeyfactorCommonSchedulingKeyfactorSchedule `json:"Schedule"` + CollectionId *int32 `json:"CollectionId,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsCertificateStoresAddCertificateRequest KeyfactorApiModelsCertificateStoresAddCertificateRequest + +// NewKeyfactorApiModelsCertificateStoresAddCertificateRequest instantiates a new KeyfactorApiModelsCertificateStoresAddCertificateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsCertificateStoresAddCertificateRequest(certificateId int32, certificateStores []ModelsCertificateStoreEntry, schedule KeyfactorCommonSchedulingKeyfactorSchedule) *KeyfactorApiModelsCertificateStoresAddCertificateRequest { + this := KeyfactorApiModelsCertificateStoresAddCertificateRequest{} + this.CertificateId = certificateId + this.CertificateStores = certificateStores + this.Schedule = schedule + return &this +} + +// NewKeyfactorApiModelsCertificateStoresAddCertificateRequestWithDefaults instantiates a new KeyfactorApiModelsCertificateStoresAddCertificateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsCertificateStoresAddCertificateRequestWithDefaults() *KeyfactorApiModelsCertificateStoresAddCertificateRequest { + this := KeyfactorApiModelsCertificateStoresAddCertificateRequest{} + return &this +} + +// GetCertificateId returns the CertificateId field value +func (o *KeyfactorApiModelsCertificateStoresAddCertificateRequest) GetCertificateId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.CertificateId +} + +// GetCertificateIdOk returns a tuple with the CertificateId field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresAddCertificateRequest) GetCertificateIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.CertificateId, true +} + +// SetCertificateId sets field value +func (o *KeyfactorApiModelsCertificateStoresAddCertificateRequest) SetCertificateId(v int32) { + o.CertificateId = v +} + +// GetCertificateStores returns the CertificateStores field value +func (o *KeyfactorApiModelsCertificateStoresAddCertificateRequest) GetCertificateStores() []ModelsCertificateStoreEntry { + if o == nil { + var ret []ModelsCertificateStoreEntry + return ret + } + + return o.CertificateStores +} + +// GetCertificateStoresOk returns a tuple with the CertificateStores field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresAddCertificateRequest) GetCertificateStoresOk() ([]ModelsCertificateStoreEntry, bool) { + if o == nil { + return nil, false + } + return o.CertificateStores, true +} + +// SetCertificateStores sets field value +func (o *KeyfactorApiModelsCertificateStoresAddCertificateRequest) SetCertificateStores(v []ModelsCertificateStoreEntry) { + o.CertificateStores = v +} + +// GetSchedule returns the Schedule field value +func (o *KeyfactorApiModelsCertificateStoresAddCertificateRequest) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + + return o.Schedule +} + +// GetScheduleOk returns a tuple with the Schedule field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresAddCertificateRequest) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil { + return nil, false + } + return &o.Schedule, true +} + +// SetSchedule sets field value +func (o *KeyfactorApiModelsCertificateStoresAddCertificateRequest) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.Schedule = v +} + +// GetCollectionId returns the CollectionId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresAddCertificateRequest) GetCollectionId() int32 { + if o == nil || isNil(o.CollectionId) { + var ret int32 + return ret + } + return *o.CollectionId +} + +// GetCollectionIdOk returns a tuple with the CollectionId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresAddCertificateRequest) GetCollectionIdOk() (*int32, bool) { + if o == nil || isNil(o.CollectionId) { + return nil, false + } + return o.CollectionId, true +} + +// HasCollectionId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresAddCertificateRequest) HasCollectionId() bool { + if o != nil && !isNil(o.CollectionId) { + return true + } + + return false +} + +// SetCollectionId gets a reference to the given int32 and assigns it to the CollectionId field. +func (o *KeyfactorApiModelsCertificateStoresAddCertificateRequest) SetCollectionId(v int32) { + o.CollectionId = &v +} + +func (o KeyfactorApiModelsCertificateStoresAddCertificateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsCertificateStoresAddCertificateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["CertificateId"] = o.CertificateId + toSerialize["CertificateStores"] = o.CertificateStores + toSerialize["Schedule"] = o.Schedule + if !isNil(o.CollectionId) { + toSerialize["CollectionId"] = o.CollectionId + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsCertificateStoresAddCertificateRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsCertificateStoresAddCertificateRequest := _KeyfactorApiModelsCertificateStoresAddCertificateRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsCertificateStoresAddCertificateRequest); err == nil { + *o = KeyfactorApiModelsCertificateStoresAddCertificateRequest(varKeyfactorApiModelsCertificateStoresAddCertificateRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "CertificateId") + delete(additionalProperties, "CertificateStores") + delete(additionalProperties, "Schedule") + delete(additionalProperties, "CollectionId") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsCertificateStoresAddCertificateRequest struct { + value *KeyfactorApiModelsCertificateStoresAddCertificateRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsCertificateStoresAddCertificateRequest) Get() *KeyfactorApiModelsCertificateStoresAddCertificateRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsCertificateStoresAddCertificateRequest) Set(val *KeyfactorApiModelsCertificateStoresAddCertificateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsCertificateStoresAddCertificateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsCertificateStoresAddCertificateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsCertificateStoresAddCertificateRequest(val *KeyfactorApiModelsCertificateStoresAddCertificateRequest) *NullableKeyfactorApiModelsCertificateStoresAddCertificateRequest { + return &NullableKeyfactorApiModelsCertificateStoresAddCertificateRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsCertificateStoresAddCertificateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsCertificateStoresAddCertificateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_certificate_stores_certificate_store_approve_request.go b/v1/api/keyfactor/model_keyfactor_api_models_certificate_stores_certificate_store_approve_request.go new file mode 100644 index 0000000..310858d --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_certificate_stores_certificate_store_approve_request.go @@ -0,0 +1,306 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest{} + +// KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest struct for KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest +type KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest struct { + Id *string `json:"Id,omitempty"` + ContainerId *int32 `json:"ContainerId,omitempty"` + CertStoreType *int32 `json:"CertStoreType,omitempty"` + Properties *string `json:"Properties,omitempty"` + Password *ModelsKeyfactorAPISecret `json:"Password,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest + +// NewKeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest instantiates a new KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest() *KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest { + this := KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest{} + return &this +} + +// NewKeyfactorApiModelsCertificateStoresCertificateStoreApproveRequestWithDefaults instantiates a new KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsCertificateStoresCertificateStoreApproveRequestWithDefaults() *KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest { + this := KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest) GetId() string { + if o == nil || isNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest) GetIdOk() (*string, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest) SetId(v string) { + o.Id = &v +} + +// GetContainerId returns the ContainerId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest) GetContainerId() int32 { + if o == nil || isNil(o.ContainerId) { + var ret int32 + return ret + } + return *o.ContainerId +} + +// GetContainerIdOk returns a tuple with the ContainerId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest) GetContainerIdOk() (*int32, bool) { + if o == nil || isNil(o.ContainerId) { + return nil, false + } + return o.ContainerId, true +} + +// HasContainerId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest) HasContainerId() bool { + if o != nil && !isNil(o.ContainerId) { + return true + } + + return false +} + +// SetContainerId gets a reference to the given int32 and assigns it to the ContainerId field. +func (o *KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest) SetContainerId(v int32) { + o.ContainerId = &v +} + +// GetCertStoreType returns the CertStoreType field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest) GetCertStoreType() int32 { + if o == nil || isNil(o.CertStoreType) { + var ret int32 + return ret + } + return *o.CertStoreType +} + +// GetCertStoreTypeOk returns a tuple with the CertStoreType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest) GetCertStoreTypeOk() (*int32, bool) { + if o == nil || isNil(o.CertStoreType) { + return nil, false + } + return o.CertStoreType, true +} + +// HasCertStoreType returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest) HasCertStoreType() bool { + if o != nil && !isNil(o.CertStoreType) { + return true + } + + return false +} + +// SetCertStoreType gets a reference to the given int32 and assigns it to the CertStoreType field. +func (o *KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest) SetCertStoreType(v int32) { + o.CertStoreType = &v +} + +// GetProperties returns the Properties field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest) GetProperties() string { + if o == nil || isNil(o.Properties) { + var ret string + return ret + } + return *o.Properties +} + +// GetPropertiesOk returns a tuple with the Properties field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest) GetPropertiesOk() (*string, bool) { + if o == nil || isNil(o.Properties) { + return nil, false + } + return o.Properties, true +} + +// HasProperties returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest) HasProperties() bool { + if o != nil && !isNil(o.Properties) { + return true + } + + return false +} + +// SetProperties gets a reference to the given string and assigns it to the Properties field. +func (o *KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest) SetProperties(v string) { + o.Properties = &v +} + +// GetPassword returns the Password field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest) GetPassword() ModelsKeyfactorAPISecret { + if o == nil || isNil(o.Password) { + var ret ModelsKeyfactorAPISecret + return ret + } + return *o.Password +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest) GetPasswordOk() (*ModelsKeyfactorAPISecret, bool) { + if o == nil || isNil(o.Password) { + return nil, false + } + return o.Password, true +} + +// HasPassword returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest) HasPassword() bool { + if o != nil && !isNil(o.Password) { + return true + } + + return false +} + +// SetPassword gets a reference to the given ModelsKeyfactorAPISecret and assigns it to the Password field. +func (o *KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest) SetPassword(v ModelsKeyfactorAPISecret) { + o.Password = &v +} + +func (o KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.ContainerId) { + toSerialize["ContainerId"] = o.ContainerId + } + if !isNil(o.CertStoreType) { + toSerialize["CertStoreType"] = o.CertStoreType + } + if !isNil(o.Properties) { + toSerialize["Properties"] = o.Properties + } + if !isNil(o.Password) { + toSerialize["Password"] = o.Password + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest := _KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest); err == nil { + *o = KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest(varKeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "ContainerId") + delete(additionalProperties, "CertStoreType") + delete(additionalProperties, "Properties") + delete(additionalProperties, "Password") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest struct { + value *KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest) Get() *KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest) Set(val *KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest(val *KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest) *NullableKeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest { + return &NullableKeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_certificate_stores_job_history_response.go b/v1/api/keyfactor/model_keyfactor_api_models_certificate_stores_job_history_response.go new file mode 100644 index 0000000..727c27f --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_certificate_stores_job_history_response.go @@ -0,0 +1,566 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" + "time" +) + +// checks if the KeyfactorApiModelsCertificateStoresJobHistoryResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsCertificateStoresJobHistoryResponse{} + +// KeyfactorApiModelsCertificateStoresJobHistoryResponse struct for KeyfactorApiModelsCertificateStoresJobHistoryResponse +type KeyfactorApiModelsCertificateStoresJobHistoryResponse struct { + JobHistoryId *int64 `json:"JobHistoryId,omitempty"` + AgentMachine *string `json:"AgentMachine,omitempty"` + JobId *string `json:"JobId,omitempty"` + Schedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"Schedule,omitempty"` + JobType *string `json:"JobType,omitempty"` + OperationStart *time.Time `json:"OperationStart,omitempty"` + OperationEnd *time.Time `json:"OperationEnd,omitempty"` + Message *string `json:"Message,omitempty"` + Result *int32 `json:"Result,omitempty"` + Status *int32 `json:"Status,omitempty"` + StorePath *string `json:"StorePath,omitempty"` + ClientMachine *string `json:"ClientMachine,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsCertificateStoresJobHistoryResponse KeyfactorApiModelsCertificateStoresJobHistoryResponse + +// NewKeyfactorApiModelsCertificateStoresJobHistoryResponse instantiates a new KeyfactorApiModelsCertificateStoresJobHistoryResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsCertificateStoresJobHistoryResponse() *KeyfactorApiModelsCertificateStoresJobHistoryResponse { + this := KeyfactorApiModelsCertificateStoresJobHistoryResponse{} + return &this +} + +// NewKeyfactorApiModelsCertificateStoresJobHistoryResponseWithDefaults instantiates a new KeyfactorApiModelsCertificateStoresJobHistoryResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsCertificateStoresJobHistoryResponseWithDefaults() *KeyfactorApiModelsCertificateStoresJobHistoryResponse { + this := KeyfactorApiModelsCertificateStoresJobHistoryResponse{} + return &this +} + +// GetJobHistoryId returns the JobHistoryId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) GetJobHistoryId() int64 { + if o == nil || isNil(o.JobHistoryId) { + var ret int64 + return ret + } + return *o.JobHistoryId +} + +// GetJobHistoryIdOk returns a tuple with the JobHistoryId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) GetJobHistoryIdOk() (*int64, bool) { + if o == nil || isNil(o.JobHistoryId) { + return nil, false + } + return o.JobHistoryId, true +} + +// HasJobHistoryId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) HasJobHistoryId() bool { + if o != nil && !isNil(o.JobHistoryId) { + return true + } + + return false +} + +// SetJobHistoryId gets a reference to the given int64 and assigns it to the JobHistoryId field. +func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) SetJobHistoryId(v int64) { + o.JobHistoryId = &v +} + +// GetAgentMachine returns the AgentMachine field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) GetAgentMachine() string { + if o == nil || isNil(o.AgentMachine) { + var ret string + return ret + } + return *o.AgentMachine +} + +// GetAgentMachineOk returns a tuple with the AgentMachine field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) GetAgentMachineOk() (*string, bool) { + if o == nil || isNil(o.AgentMachine) { + return nil, false + } + return o.AgentMachine, true +} + +// HasAgentMachine returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) HasAgentMachine() bool { + if o != nil && !isNil(o.AgentMachine) { + return true + } + + return false +} + +// SetAgentMachine gets a reference to the given string and assigns it to the AgentMachine field. +func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) SetAgentMachine(v string) { + o.AgentMachine = &v +} + +// GetJobId returns the JobId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) GetJobId() string { + if o == nil || isNil(o.JobId) { + var ret string + return ret + } + return *o.JobId +} + +// GetJobIdOk returns a tuple with the JobId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) GetJobIdOk() (*string, bool) { + if o == nil || isNil(o.JobId) { + return nil, false + } + return o.JobId, true +} + +// HasJobId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) HasJobId() bool { + if o != nil && !isNil(o.JobId) { + return true + } + + return false +} + +// SetJobId gets a reference to the given string and assigns it to the JobId field. +func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) SetJobId(v string) { + o.JobId = &v +} + +// GetSchedule returns the Schedule field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.Schedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.Schedule +} + +// GetScheduleOk returns a tuple with the Schedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.Schedule) { + return nil, false + } + return o.Schedule, true +} + +// HasSchedule returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) HasSchedule() bool { + if o != nil && !isNil(o.Schedule) { + return true + } + + return false +} + +// SetSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the Schedule field. +func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.Schedule = &v +} + +// GetJobType returns the JobType field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) GetJobType() string { + if o == nil || isNil(o.JobType) { + var ret string + return ret + } + return *o.JobType +} + +// GetJobTypeOk returns a tuple with the JobType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) GetJobTypeOk() (*string, bool) { + if o == nil || isNil(o.JobType) { + return nil, false + } + return o.JobType, true +} + +// HasJobType returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) HasJobType() bool { + if o != nil && !isNil(o.JobType) { + return true + } + + return false +} + +// SetJobType gets a reference to the given string and assigns it to the JobType field. +func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) SetJobType(v string) { + o.JobType = &v +} + +// GetOperationStart returns the OperationStart field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) GetOperationStart() time.Time { + if o == nil || isNil(o.OperationStart) { + var ret time.Time + return ret + } + return *o.OperationStart +} + +// GetOperationStartOk returns a tuple with the OperationStart field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) GetOperationStartOk() (*time.Time, bool) { + if o == nil || isNil(o.OperationStart) { + return nil, false + } + return o.OperationStart, true +} + +// HasOperationStart returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) HasOperationStart() bool { + if o != nil && !isNil(o.OperationStart) { + return true + } + + return false +} + +// SetOperationStart gets a reference to the given time.Time and assigns it to the OperationStart field. +func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) SetOperationStart(v time.Time) { + o.OperationStart = &v +} + +// GetOperationEnd returns the OperationEnd field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) GetOperationEnd() time.Time { + if o == nil || isNil(o.OperationEnd) { + var ret time.Time + return ret + } + return *o.OperationEnd +} + +// GetOperationEndOk returns a tuple with the OperationEnd field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) GetOperationEndOk() (*time.Time, bool) { + if o == nil || isNil(o.OperationEnd) { + return nil, false + } + return o.OperationEnd, true +} + +// HasOperationEnd returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) HasOperationEnd() bool { + if o != nil && !isNil(o.OperationEnd) { + return true + } + + return false +} + +// SetOperationEnd gets a reference to the given time.Time and assigns it to the OperationEnd field. +func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) SetOperationEnd(v time.Time) { + o.OperationEnd = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) GetMessage() string { + if o == nil || isNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) GetMessageOk() (*string, bool) { + if o == nil || isNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) HasMessage() bool { + if o != nil && !isNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) SetMessage(v string) { + o.Message = &v +} + +// GetResult returns the Result field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) GetResult() int32 { + if o == nil || isNil(o.Result) { + var ret int32 + return ret + } + return *o.Result +} + +// GetResultOk returns a tuple with the Result field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) GetResultOk() (*int32, bool) { + if o == nil || isNil(o.Result) { + return nil, false + } + return o.Result, true +} + +// HasResult returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) HasResult() bool { + if o != nil && !isNil(o.Result) { + return true + } + + return false +} + +// SetResult gets a reference to the given int32 and assigns it to the Result field. +func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) SetResult(v int32) { + o.Result = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) GetStatus() int32 { + if o == nil || isNil(o.Status) { + var ret int32 + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) GetStatusOk() (*int32, bool) { + if o == nil || isNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) HasStatus() bool { + if o != nil && !isNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given int32 and assigns it to the Status field. +func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) SetStatus(v int32) { + o.Status = &v +} + +// GetStorePath returns the StorePath field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) GetStorePath() string { + if o == nil || isNil(o.StorePath) { + var ret string + return ret + } + return *o.StorePath +} + +// GetStorePathOk returns a tuple with the StorePath field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) GetStorePathOk() (*string, bool) { + if o == nil || isNil(o.StorePath) { + return nil, false + } + return o.StorePath, true +} + +// HasStorePath returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) HasStorePath() bool { + if o != nil && !isNil(o.StorePath) { + return true + } + + return false +} + +// SetStorePath gets a reference to the given string and assigns it to the StorePath field. +func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) SetStorePath(v string) { + o.StorePath = &v +} + +// GetClientMachine returns the ClientMachine field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) GetClientMachine() string { + if o == nil || isNil(o.ClientMachine) { + var ret string + return ret + } + return *o.ClientMachine +} + +// GetClientMachineOk returns a tuple with the ClientMachine field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) GetClientMachineOk() (*string, bool) { + if o == nil || isNil(o.ClientMachine) { + return nil, false + } + return o.ClientMachine, true +} + +// HasClientMachine returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) HasClientMachine() bool { + if o != nil && !isNil(o.ClientMachine) { + return true + } + + return false +} + +// SetClientMachine gets a reference to the given string and assigns it to the ClientMachine field. +func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) SetClientMachine(v string) { + o.ClientMachine = &v +} + +func (o KeyfactorApiModelsCertificateStoresJobHistoryResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsCertificateStoresJobHistoryResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.JobHistoryId) { + toSerialize["JobHistoryId"] = o.JobHistoryId + } + if !isNil(o.AgentMachine) { + toSerialize["AgentMachine"] = o.AgentMachine + } + if !isNil(o.JobId) { + toSerialize["JobId"] = o.JobId + } + if !isNil(o.Schedule) { + toSerialize["Schedule"] = o.Schedule + } + if !isNil(o.JobType) { + toSerialize["JobType"] = o.JobType + } + if !isNil(o.OperationStart) { + toSerialize["OperationStart"] = o.OperationStart + } + if !isNil(o.OperationEnd) { + toSerialize["OperationEnd"] = o.OperationEnd + } + if !isNil(o.Message) { + toSerialize["Message"] = o.Message + } + if !isNil(o.Result) { + toSerialize["Result"] = o.Result + } + if !isNil(o.Status) { + toSerialize["Status"] = o.Status + } + if !isNil(o.StorePath) { + toSerialize["StorePath"] = o.StorePath + } + if !isNil(o.ClientMachine) { + toSerialize["ClientMachine"] = o.ClientMachine + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsCertificateStoresJobHistoryResponse := _KeyfactorApiModelsCertificateStoresJobHistoryResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsCertificateStoresJobHistoryResponse); err == nil { + *o = KeyfactorApiModelsCertificateStoresJobHistoryResponse(varKeyfactorApiModelsCertificateStoresJobHistoryResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "JobHistoryId") + delete(additionalProperties, "AgentMachine") + delete(additionalProperties, "JobId") + delete(additionalProperties, "Schedule") + delete(additionalProperties, "JobType") + delete(additionalProperties, "OperationStart") + delete(additionalProperties, "OperationEnd") + delete(additionalProperties, "Message") + delete(additionalProperties, "Result") + delete(additionalProperties, "Status") + delete(additionalProperties, "StorePath") + delete(additionalProperties, "ClientMachine") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsCertificateStoresJobHistoryResponse struct { + value *KeyfactorApiModelsCertificateStoresJobHistoryResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsCertificateStoresJobHistoryResponse) Get() *KeyfactorApiModelsCertificateStoresJobHistoryResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsCertificateStoresJobHistoryResponse) Set(val *KeyfactorApiModelsCertificateStoresJobHistoryResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsCertificateStoresJobHistoryResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsCertificateStoresJobHistoryResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsCertificateStoresJobHistoryResponse(val *KeyfactorApiModelsCertificateStoresJobHistoryResponse) *NullableKeyfactorApiModelsCertificateStoresJobHistoryResponse { + return &NullableKeyfactorApiModelsCertificateStoresJobHistoryResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsCertificateStoresJobHistoryResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsCertificateStoresJobHistoryResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_certificate_stores_reenrollment_request.go b/v1/api/keyfactor/model_keyfactor_api_models_certificate_stores_reenrollment_request.go new file mode 100644 index 0000000..a6bffc4 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_certificate_stores_reenrollment_request.go @@ -0,0 +1,380 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsCertificateStoresReenrollmentRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsCertificateStoresReenrollmentRequest{} + +// KeyfactorApiModelsCertificateStoresReenrollmentRequest struct for KeyfactorApiModelsCertificateStoresReenrollmentRequest +type KeyfactorApiModelsCertificateStoresReenrollmentRequest struct { + KeystoreId *string `json:"KeystoreId,omitempty"` + SubjectName *string `json:"SubjectName,omitempty"` + AgentGuid *string `json:"AgentGuid,omitempty"` + Alias *string `json:"Alias,omitempty"` + JobProperties map[string]map[string]interface{} `json:"JobProperties,omitempty"` + CertificateAuthority *string `json:"CertificateAuthority,omitempty"` + CertificateTemplate *string `json:"CertificateTemplate,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsCertificateStoresReenrollmentRequest KeyfactorApiModelsCertificateStoresReenrollmentRequest + +// NewKeyfactorApiModelsCertificateStoresReenrollmentRequest instantiates a new KeyfactorApiModelsCertificateStoresReenrollmentRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsCertificateStoresReenrollmentRequest() *KeyfactorApiModelsCertificateStoresReenrollmentRequest { + this := KeyfactorApiModelsCertificateStoresReenrollmentRequest{} + return &this +} + +// NewKeyfactorApiModelsCertificateStoresReenrollmentRequestWithDefaults instantiates a new KeyfactorApiModelsCertificateStoresReenrollmentRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsCertificateStoresReenrollmentRequestWithDefaults() *KeyfactorApiModelsCertificateStoresReenrollmentRequest { + this := KeyfactorApiModelsCertificateStoresReenrollmentRequest{} + return &this +} + +// GetKeystoreId returns the KeystoreId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) GetKeystoreId() string { + if o == nil || isNil(o.KeystoreId) { + var ret string + return ret + } + return *o.KeystoreId +} + +// GetKeystoreIdOk returns a tuple with the KeystoreId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) GetKeystoreIdOk() (*string, bool) { + if o == nil || isNil(o.KeystoreId) { + return nil, false + } + return o.KeystoreId, true +} + +// HasKeystoreId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) HasKeystoreId() bool { + if o != nil && !isNil(o.KeystoreId) { + return true + } + + return false +} + +// SetKeystoreId gets a reference to the given string and assigns it to the KeystoreId field. +func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) SetKeystoreId(v string) { + o.KeystoreId = &v +} + +// GetSubjectName returns the SubjectName field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) GetSubjectName() string { + if o == nil || isNil(o.SubjectName) { + var ret string + return ret + } + return *o.SubjectName +} + +// GetSubjectNameOk returns a tuple with the SubjectName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) GetSubjectNameOk() (*string, bool) { + if o == nil || isNil(o.SubjectName) { + return nil, false + } + return o.SubjectName, true +} + +// HasSubjectName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) HasSubjectName() bool { + if o != nil && !isNil(o.SubjectName) { + return true + } + + return false +} + +// SetSubjectName gets a reference to the given string and assigns it to the SubjectName field. +func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) SetSubjectName(v string) { + o.SubjectName = &v +} + +// GetAgentGuid returns the AgentGuid field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) GetAgentGuid() string { + if o == nil || isNil(o.AgentGuid) { + var ret string + return ret + } + return *o.AgentGuid +} + +// GetAgentGuidOk returns a tuple with the AgentGuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) GetAgentGuidOk() (*string, bool) { + if o == nil || isNil(o.AgentGuid) { + return nil, false + } + return o.AgentGuid, true +} + +// HasAgentGuid returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) HasAgentGuid() bool { + if o != nil && !isNil(o.AgentGuid) { + return true + } + + return false +} + +// SetAgentGuid gets a reference to the given string and assigns it to the AgentGuid field. +func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) SetAgentGuid(v string) { + o.AgentGuid = &v +} + +// GetAlias returns the Alias field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) GetAlias() string { + if o == nil || isNil(o.Alias) { + var ret string + return ret + } + return *o.Alias +} + +// GetAliasOk returns a tuple with the Alias field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) GetAliasOk() (*string, bool) { + if o == nil || isNil(o.Alias) { + return nil, false + } + return o.Alias, true +} + +// HasAlias returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) HasAlias() bool { + if o != nil && !isNil(o.Alias) { + return true + } + + return false +} + +// SetAlias gets a reference to the given string and assigns it to the Alias field. +func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) SetAlias(v string) { + o.Alias = &v +} + +// GetJobProperties returns the JobProperties field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) GetJobProperties() map[string]map[string]interface{} { + if o == nil || isNil(o.JobProperties) { + var ret map[string]map[string]interface{} + return ret + } + return o.JobProperties +} + +// GetJobPropertiesOk returns a tuple with the JobProperties field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) GetJobPropertiesOk() (map[string]map[string]interface{}, bool) { + if o == nil || isNil(o.JobProperties) { + return map[string]map[string]interface{}{}, false + } + return o.JobProperties, true +} + +// HasJobProperties returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) HasJobProperties() bool { + if o != nil && !isNil(o.JobProperties) { + return true + } + + return false +} + +// SetJobProperties gets a reference to the given map[string]map[string]interface{} and assigns it to the JobProperties field. +func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) SetJobProperties(v map[string]map[string]interface{}) { + o.JobProperties = v +} + +// GetCertificateAuthority returns the CertificateAuthority field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) GetCertificateAuthority() string { + if o == nil || isNil(o.CertificateAuthority) { + var ret string + return ret + } + return *o.CertificateAuthority +} + +// GetCertificateAuthorityOk returns a tuple with the CertificateAuthority field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) GetCertificateAuthorityOk() (*string, bool) { + if o == nil || isNil(o.CertificateAuthority) { + return nil, false + } + return o.CertificateAuthority, true +} + +// HasCertificateAuthority returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) HasCertificateAuthority() bool { + if o != nil && !isNil(o.CertificateAuthority) { + return true + } + + return false +} + +// SetCertificateAuthority gets a reference to the given string and assigns it to the CertificateAuthority field. +func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) SetCertificateAuthority(v string) { + o.CertificateAuthority = &v +} + +// GetCertificateTemplate returns the CertificateTemplate field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) GetCertificateTemplate() string { + if o == nil || isNil(o.CertificateTemplate) { + var ret string + return ret + } + return *o.CertificateTemplate +} + +// GetCertificateTemplateOk returns a tuple with the CertificateTemplate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) GetCertificateTemplateOk() (*string, bool) { + if o == nil || isNil(o.CertificateTemplate) { + return nil, false + } + return o.CertificateTemplate, true +} + +// HasCertificateTemplate returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) HasCertificateTemplate() bool { + if o != nil && !isNil(o.CertificateTemplate) { + return true + } + + return false +} + +// SetCertificateTemplate gets a reference to the given string and assigns it to the CertificateTemplate field. +func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) SetCertificateTemplate(v string) { + o.CertificateTemplate = &v +} + +func (o KeyfactorApiModelsCertificateStoresReenrollmentRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsCertificateStoresReenrollmentRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.KeystoreId) { + toSerialize["KeystoreId"] = o.KeystoreId + } + if !isNil(o.SubjectName) { + toSerialize["SubjectName"] = o.SubjectName + } + if !isNil(o.AgentGuid) { + toSerialize["AgentGuid"] = o.AgentGuid + } + if !isNil(o.Alias) { + toSerialize["Alias"] = o.Alias + } + if !isNil(o.JobProperties) { + toSerialize["JobProperties"] = o.JobProperties + } + if !isNil(o.CertificateAuthority) { + toSerialize["CertificateAuthority"] = o.CertificateAuthority + } + if !isNil(o.CertificateTemplate) { + toSerialize["CertificateTemplate"] = o.CertificateTemplate + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsCertificateStoresReenrollmentRequest := _KeyfactorApiModelsCertificateStoresReenrollmentRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsCertificateStoresReenrollmentRequest); err == nil { + *o = KeyfactorApiModelsCertificateStoresReenrollmentRequest(varKeyfactorApiModelsCertificateStoresReenrollmentRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "KeystoreId") + delete(additionalProperties, "SubjectName") + delete(additionalProperties, "AgentGuid") + delete(additionalProperties, "Alias") + delete(additionalProperties, "JobProperties") + delete(additionalProperties, "CertificateAuthority") + delete(additionalProperties, "CertificateTemplate") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsCertificateStoresReenrollmentRequest struct { + value *KeyfactorApiModelsCertificateStoresReenrollmentRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsCertificateStoresReenrollmentRequest) Get() *KeyfactorApiModelsCertificateStoresReenrollmentRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsCertificateStoresReenrollmentRequest) Set(val *KeyfactorApiModelsCertificateStoresReenrollmentRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsCertificateStoresReenrollmentRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsCertificateStoresReenrollmentRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsCertificateStoresReenrollmentRequest(val *KeyfactorApiModelsCertificateStoresReenrollmentRequest) *NullableKeyfactorApiModelsCertificateStoresReenrollmentRequest { + return &NullableKeyfactorApiModelsCertificateStoresReenrollmentRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsCertificateStoresReenrollmentRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsCertificateStoresReenrollmentRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_certificate_stores_remove_certificate_request.go b/v1/api/keyfactor/model_keyfactor_api_models_certificate_stores_remove_certificate_request.go new file mode 100644 index 0000000..5f7b017 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_certificate_stores_remove_certificate_request.go @@ -0,0 +1,214 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsCertificateStoresRemoveCertificateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsCertificateStoresRemoveCertificateRequest{} + +// KeyfactorApiModelsCertificateStoresRemoveCertificateRequest struct for KeyfactorApiModelsCertificateStoresRemoveCertificateRequest +type KeyfactorApiModelsCertificateStoresRemoveCertificateRequest struct { + CertificateStores []ModelsCertificateLocationSpecifier `json:"CertificateStores"` + Schedule KeyfactorCommonSchedulingKeyfactorSchedule `json:"Schedule"` + CollectionId *int32 `json:"CollectionId,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsCertificateStoresRemoveCertificateRequest KeyfactorApiModelsCertificateStoresRemoveCertificateRequest + +// NewKeyfactorApiModelsCertificateStoresRemoveCertificateRequest instantiates a new KeyfactorApiModelsCertificateStoresRemoveCertificateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsCertificateStoresRemoveCertificateRequest(certificateStores []ModelsCertificateLocationSpecifier, schedule KeyfactorCommonSchedulingKeyfactorSchedule) *KeyfactorApiModelsCertificateStoresRemoveCertificateRequest { + this := KeyfactorApiModelsCertificateStoresRemoveCertificateRequest{} + this.CertificateStores = certificateStores + this.Schedule = schedule + return &this +} + +// NewKeyfactorApiModelsCertificateStoresRemoveCertificateRequestWithDefaults instantiates a new KeyfactorApiModelsCertificateStoresRemoveCertificateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsCertificateStoresRemoveCertificateRequestWithDefaults() *KeyfactorApiModelsCertificateStoresRemoveCertificateRequest { + this := KeyfactorApiModelsCertificateStoresRemoveCertificateRequest{} + return &this +} + +// GetCertificateStores returns the CertificateStores field value +func (o *KeyfactorApiModelsCertificateStoresRemoveCertificateRequest) GetCertificateStores() []ModelsCertificateLocationSpecifier { + if o == nil { + var ret []ModelsCertificateLocationSpecifier + return ret + } + + return o.CertificateStores +} + +// GetCertificateStoresOk returns a tuple with the CertificateStores field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresRemoveCertificateRequest) GetCertificateStoresOk() ([]ModelsCertificateLocationSpecifier, bool) { + if o == nil { + return nil, false + } + return o.CertificateStores, true +} + +// SetCertificateStores sets field value +func (o *KeyfactorApiModelsCertificateStoresRemoveCertificateRequest) SetCertificateStores(v []ModelsCertificateLocationSpecifier) { + o.CertificateStores = v +} + +// GetSchedule returns the Schedule field value +func (o *KeyfactorApiModelsCertificateStoresRemoveCertificateRequest) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + + return o.Schedule +} + +// GetScheduleOk returns a tuple with the Schedule field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresRemoveCertificateRequest) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil { + return nil, false + } + return &o.Schedule, true +} + +// SetSchedule sets field value +func (o *KeyfactorApiModelsCertificateStoresRemoveCertificateRequest) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.Schedule = v +} + +// GetCollectionId returns the CollectionId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresRemoveCertificateRequest) GetCollectionId() int32 { + if o == nil || isNil(o.CollectionId) { + var ret int32 + return ret + } + return *o.CollectionId +} + +// GetCollectionIdOk returns a tuple with the CollectionId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresRemoveCertificateRequest) GetCollectionIdOk() (*int32, bool) { + if o == nil || isNil(o.CollectionId) { + return nil, false + } + return o.CollectionId, true +} + +// HasCollectionId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresRemoveCertificateRequest) HasCollectionId() bool { + if o != nil && !isNil(o.CollectionId) { + return true + } + + return false +} + +// SetCollectionId gets a reference to the given int32 and assigns it to the CollectionId field. +func (o *KeyfactorApiModelsCertificateStoresRemoveCertificateRequest) SetCollectionId(v int32) { + o.CollectionId = &v +} + +func (o KeyfactorApiModelsCertificateStoresRemoveCertificateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsCertificateStoresRemoveCertificateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["CertificateStores"] = o.CertificateStores + toSerialize["Schedule"] = o.Schedule + if !isNil(o.CollectionId) { + toSerialize["CollectionId"] = o.CollectionId + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsCertificateStoresRemoveCertificateRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsCertificateStoresRemoveCertificateRequest := _KeyfactorApiModelsCertificateStoresRemoveCertificateRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsCertificateStoresRemoveCertificateRequest); err == nil { + *o = KeyfactorApiModelsCertificateStoresRemoveCertificateRequest(varKeyfactorApiModelsCertificateStoresRemoveCertificateRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "CertificateStores") + delete(additionalProperties, "Schedule") + delete(additionalProperties, "CollectionId") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsCertificateStoresRemoveCertificateRequest struct { + value *KeyfactorApiModelsCertificateStoresRemoveCertificateRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsCertificateStoresRemoveCertificateRequest) Get() *KeyfactorApiModelsCertificateStoresRemoveCertificateRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsCertificateStoresRemoveCertificateRequest) Set(val *KeyfactorApiModelsCertificateStoresRemoveCertificateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsCertificateStoresRemoveCertificateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsCertificateStoresRemoveCertificateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsCertificateStoresRemoveCertificateRequest(val *KeyfactorApiModelsCertificateStoresRemoveCertificateRequest) *NullableKeyfactorApiModelsCertificateStoresRemoveCertificateRequest { + return &NullableKeyfactorApiModelsCertificateStoresRemoveCertificateRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsCertificateStoresRemoveCertificateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsCertificateStoresRemoveCertificateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_certificate_stores_types_certificate_store_type_creation_request.go b/v1/api/keyfactor/model_keyfactor_api_models_certificate_stores_types_certificate_store_type_creation_request.go new file mode 100644 index 0000000..ea4aab3 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_certificate_stores_types_certificate_store_type_creation_request.go @@ -0,0 +1,880 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest{} + +// KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest struct for KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest +type KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest struct { + Name string `json:"Name"` + ShortName string `json:"ShortName"` + Capability *string `json:"Capability,omitempty"` + LocalStore *bool `json:"LocalStore,omitempty"` + SupportedOperations *ModelsCertStoreTypeSupportedOperations `json:"SupportedOperations,omitempty"` + Properties []ModelsCertificateStoreTypeProperty `json:"Properties,omitempty"` + PasswordOptions *ModelsCertStoreTypePasswordOptions `json:"PasswordOptions,omitempty"` + StorePathType *string `json:"StorePathType,omitempty"` + StorePathValue *string `json:"StorePathValue,omitempty"` + PrivateKeyAllowed *string `json:"PrivateKeyAllowed,omitempty"` + ServerRequired *bool `json:"ServerRequired,omitempty"` + PowerShell *bool `json:"PowerShell,omitempty"` + BlueprintAllowed *bool `json:"BlueprintAllowed,omitempty"` + CustomAliasAllowed *string `json:"CustomAliasAllowed,omitempty"` + ServerRegistration *int32 `json:"ServerRegistration,omitempty"` + InventoryEndpoint *string `json:"InventoryEndpoint,omitempty"` + InventoryJobTypeId *string `json:"InventoryJobTypeId,omitempty"` + ManagementJobTypeId *string `json:"ManagementJobTypeId,omitempty"` + DiscoveryJobTypeId *string `json:"DiscoveryJobTypeId,omitempty"` + EnrollmentJobTypeId *string `json:"EnrollmentJobTypeId,omitempty"` + EntryParameters []ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter `json:"EntryParameters,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest + +// NewKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest instantiates a new KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest(name string, shortName string) *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest { + this := KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest{} + this.Name = name + this.ShortName = shortName + return &this +} + +// NewKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequestWithDefaults instantiates a new KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequestWithDefaults() *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest { + this := KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest{} + return &this +} + +// GetName returns the Name field value +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) SetName(v string) { + o.Name = v +} + +// GetShortName returns the ShortName field value +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetShortName() string { + if o == nil { + var ret string + return ret + } + + return o.ShortName +} + +// GetShortNameOk returns a tuple with the ShortName field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetShortNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ShortName, true +} + +// SetShortName sets field value +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) SetShortName(v string) { + o.ShortName = v +} + +// GetCapability returns the Capability field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetCapability() string { + if o == nil || isNil(o.Capability) { + var ret string + return ret + } + return *o.Capability +} + +// GetCapabilityOk returns a tuple with the Capability field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetCapabilityOk() (*string, bool) { + if o == nil || isNil(o.Capability) { + return nil, false + } + return o.Capability, true +} + +// HasCapability returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) HasCapability() bool { + if o != nil && !isNil(o.Capability) { + return true + } + + return false +} + +// SetCapability gets a reference to the given string and assigns it to the Capability field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) SetCapability(v string) { + o.Capability = &v +} + +// GetLocalStore returns the LocalStore field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetLocalStore() bool { + if o == nil || isNil(o.LocalStore) { + var ret bool + return ret + } + return *o.LocalStore +} + +// GetLocalStoreOk returns a tuple with the LocalStore field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetLocalStoreOk() (*bool, bool) { + if o == nil || isNil(o.LocalStore) { + return nil, false + } + return o.LocalStore, true +} + +// HasLocalStore returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) HasLocalStore() bool { + if o != nil && !isNil(o.LocalStore) { + return true + } + + return false +} + +// SetLocalStore gets a reference to the given bool and assigns it to the LocalStore field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) SetLocalStore(v bool) { + o.LocalStore = &v +} + +// GetSupportedOperations returns the SupportedOperations field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetSupportedOperations() ModelsCertStoreTypeSupportedOperations { + if o == nil || isNil(o.SupportedOperations) { + var ret ModelsCertStoreTypeSupportedOperations + return ret + } + return *o.SupportedOperations +} + +// GetSupportedOperationsOk returns a tuple with the SupportedOperations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetSupportedOperationsOk() (*ModelsCertStoreTypeSupportedOperations, bool) { + if o == nil || isNil(o.SupportedOperations) { + return nil, false + } + return o.SupportedOperations, true +} + +// HasSupportedOperations returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) HasSupportedOperations() bool { + if o != nil && !isNil(o.SupportedOperations) { + return true + } + + return false +} + +// SetSupportedOperations gets a reference to the given ModelsCertStoreTypeSupportedOperations and assigns it to the SupportedOperations field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) SetSupportedOperations(v ModelsCertStoreTypeSupportedOperations) { + o.SupportedOperations = &v +} + +// GetProperties returns the Properties field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetProperties() []ModelsCertificateStoreTypeProperty { + if o == nil || isNil(o.Properties) { + var ret []ModelsCertificateStoreTypeProperty + return ret + } + return o.Properties +} + +// GetPropertiesOk returns a tuple with the Properties field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetPropertiesOk() ([]ModelsCertificateStoreTypeProperty, bool) { + if o == nil || isNil(o.Properties) { + return nil, false + } + return o.Properties, true +} + +// HasProperties returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) HasProperties() bool { + if o != nil && !isNil(o.Properties) { + return true + } + + return false +} + +// SetProperties gets a reference to the given []ModelsCertificateStoreTypeProperty and assigns it to the Properties field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) SetProperties(v []ModelsCertificateStoreTypeProperty) { + o.Properties = v +} + +// GetPasswordOptions returns the PasswordOptions field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetPasswordOptions() ModelsCertStoreTypePasswordOptions { + if o == nil || isNil(o.PasswordOptions) { + var ret ModelsCertStoreTypePasswordOptions + return ret + } + return *o.PasswordOptions +} + +// GetPasswordOptionsOk returns a tuple with the PasswordOptions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetPasswordOptionsOk() (*ModelsCertStoreTypePasswordOptions, bool) { + if o == nil || isNil(o.PasswordOptions) { + return nil, false + } + return o.PasswordOptions, true +} + +// HasPasswordOptions returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) HasPasswordOptions() bool { + if o != nil && !isNil(o.PasswordOptions) { + return true + } + + return false +} + +// SetPasswordOptions gets a reference to the given ModelsCertStoreTypePasswordOptions and assigns it to the PasswordOptions field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) SetPasswordOptions(v ModelsCertStoreTypePasswordOptions) { + o.PasswordOptions = &v +} + +// GetStorePathType returns the StorePathType field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetStorePathType() string { + if o == nil || isNil(o.StorePathType) { + var ret string + return ret + } + return *o.StorePathType +} + +// GetStorePathTypeOk returns a tuple with the StorePathType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetStorePathTypeOk() (*string, bool) { + if o == nil || isNil(o.StorePathType) { + return nil, false + } + return o.StorePathType, true +} + +// HasStorePathType returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) HasStorePathType() bool { + if o != nil && !isNil(o.StorePathType) { + return true + } + + return false +} + +// SetStorePathType gets a reference to the given string and assigns it to the StorePathType field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) SetStorePathType(v string) { + o.StorePathType = &v +} + +// GetStorePathValue returns the StorePathValue field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetStorePathValue() string { + if o == nil || isNil(o.StorePathValue) { + var ret string + return ret + } + return *o.StorePathValue +} + +// GetStorePathValueOk returns a tuple with the StorePathValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetStorePathValueOk() (*string, bool) { + if o == nil || isNil(o.StorePathValue) { + return nil, false + } + return o.StorePathValue, true +} + +// HasStorePathValue returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) HasStorePathValue() bool { + if o != nil && !isNil(o.StorePathValue) { + return true + } + + return false +} + +// SetStorePathValue gets a reference to the given string and assigns it to the StorePathValue field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) SetStorePathValue(v string) { + o.StorePathValue = &v +} + +// GetPrivateKeyAllowed returns the PrivateKeyAllowed field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetPrivateKeyAllowed() string { + if o == nil || isNil(o.PrivateKeyAllowed) { + var ret string + return ret + } + return *o.PrivateKeyAllowed +} + +// GetPrivateKeyAllowedOk returns a tuple with the PrivateKeyAllowed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetPrivateKeyAllowedOk() (*string, bool) { + if o == nil || isNil(o.PrivateKeyAllowed) { + return nil, false + } + return o.PrivateKeyAllowed, true +} + +// HasPrivateKeyAllowed returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) HasPrivateKeyAllowed() bool { + if o != nil && !isNil(o.PrivateKeyAllowed) { + return true + } + + return false +} + +// SetPrivateKeyAllowed gets a reference to the given string and assigns it to the PrivateKeyAllowed field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) SetPrivateKeyAllowed(v string) { + o.PrivateKeyAllowed = &v +} + +// GetServerRequired returns the ServerRequired field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetServerRequired() bool { + if o == nil || isNil(o.ServerRequired) { + var ret bool + return ret + } + return *o.ServerRequired +} + +// GetServerRequiredOk returns a tuple with the ServerRequired field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetServerRequiredOk() (*bool, bool) { + if o == nil || isNil(o.ServerRequired) { + return nil, false + } + return o.ServerRequired, true +} + +// HasServerRequired returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) HasServerRequired() bool { + if o != nil && !isNil(o.ServerRequired) { + return true + } + + return false +} + +// SetServerRequired gets a reference to the given bool and assigns it to the ServerRequired field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) SetServerRequired(v bool) { + o.ServerRequired = &v +} + +// GetPowerShell returns the PowerShell field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetPowerShell() bool { + if o == nil || isNil(o.PowerShell) { + var ret bool + return ret + } + return *o.PowerShell +} + +// GetPowerShellOk returns a tuple with the PowerShell field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetPowerShellOk() (*bool, bool) { + if o == nil || isNil(o.PowerShell) { + return nil, false + } + return o.PowerShell, true +} + +// HasPowerShell returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) HasPowerShell() bool { + if o != nil && !isNil(o.PowerShell) { + return true + } + + return false +} + +// SetPowerShell gets a reference to the given bool and assigns it to the PowerShell field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) SetPowerShell(v bool) { + o.PowerShell = &v +} + +// GetBlueprintAllowed returns the BlueprintAllowed field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetBlueprintAllowed() bool { + if o == nil || isNil(o.BlueprintAllowed) { + var ret bool + return ret + } + return *o.BlueprintAllowed +} + +// GetBlueprintAllowedOk returns a tuple with the BlueprintAllowed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetBlueprintAllowedOk() (*bool, bool) { + if o == nil || isNil(o.BlueprintAllowed) { + return nil, false + } + return o.BlueprintAllowed, true +} + +// HasBlueprintAllowed returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) HasBlueprintAllowed() bool { + if o != nil && !isNil(o.BlueprintAllowed) { + return true + } + + return false +} + +// SetBlueprintAllowed gets a reference to the given bool and assigns it to the BlueprintAllowed field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) SetBlueprintAllowed(v bool) { + o.BlueprintAllowed = &v +} + +// GetCustomAliasAllowed returns the CustomAliasAllowed field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetCustomAliasAllowed() string { + if o == nil || isNil(o.CustomAliasAllowed) { + var ret string + return ret + } + return *o.CustomAliasAllowed +} + +// GetCustomAliasAllowedOk returns a tuple with the CustomAliasAllowed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetCustomAliasAllowedOk() (*string, bool) { + if o == nil || isNil(o.CustomAliasAllowed) { + return nil, false + } + return o.CustomAliasAllowed, true +} + +// HasCustomAliasAllowed returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) HasCustomAliasAllowed() bool { + if o != nil && !isNil(o.CustomAliasAllowed) { + return true + } + + return false +} + +// SetCustomAliasAllowed gets a reference to the given string and assigns it to the CustomAliasAllowed field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) SetCustomAliasAllowed(v string) { + o.CustomAliasAllowed = &v +} + +// GetServerRegistration returns the ServerRegistration field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetServerRegistration() int32 { + if o == nil || isNil(o.ServerRegistration) { + var ret int32 + return ret + } + return *o.ServerRegistration +} + +// GetServerRegistrationOk returns a tuple with the ServerRegistration field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetServerRegistrationOk() (*int32, bool) { + if o == nil || isNil(o.ServerRegistration) { + return nil, false + } + return o.ServerRegistration, true +} + +// HasServerRegistration returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) HasServerRegistration() bool { + if o != nil && !isNil(o.ServerRegistration) { + return true + } + + return false +} + +// SetServerRegistration gets a reference to the given int32 and assigns it to the ServerRegistration field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) SetServerRegistration(v int32) { + o.ServerRegistration = &v +} + +// GetInventoryEndpoint returns the InventoryEndpoint field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetInventoryEndpoint() string { + if o == nil || isNil(o.InventoryEndpoint) { + var ret string + return ret + } + return *o.InventoryEndpoint +} + +// GetInventoryEndpointOk returns a tuple with the InventoryEndpoint field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetInventoryEndpointOk() (*string, bool) { + if o == nil || isNil(o.InventoryEndpoint) { + return nil, false + } + return o.InventoryEndpoint, true +} + +// HasInventoryEndpoint returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) HasInventoryEndpoint() bool { + if o != nil && !isNil(o.InventoryEndpoint) { + return true + } + + return false +} + +// SetInventoryEndpoint gets a reference to the given string and assigns it to the InventoryEndpoint field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) SetInventoryEndpoint(v string) { + o.InventoryEndpoint = &v +} + +// GetInventoryJobTypeId returns the InventoryJobTypeId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetInventoryJobTypeId() string { + if o == nil || isNil(o.InventoryJobTypeId) { + var ret string + return ret + } + return *o.InventoryJobTypeId +} + +// GetInventoryJobTypeIdOk returns a tuple with the InventoryJobTypeId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetInventoryJobTypeIdOk() (*string, bool) { + if o == nil || isNil(o.InventoryJobTypeId) { + return nil, false + } + return o.InventoryJobTypeId, true +} + +// HasInventoryJobTypeId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) HasInventoryJobTypeId() bool { + if o != nil && !isNil(o.InventoryJobTypeId) { + return true + } + + return false +} + +// SetInventoryJobTypeId gets a reference to the given string and assigns it to the InventoryJobTypeId field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) SetInventoryJobTypeId(v string) { + o.InventoryJobTypeId = &v +} + +// GetManagementJobTypeId returns the ManagementJobTypeId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetManagementJobTypeId() string { + if o == nil || isNil(o.ManagementJobTypeId) { + var ret string + return ret + } + return *o.ManagementJobTypeId +} + +// GetManagementJobTypeIdOk returns a tuple with the ManagementJobTypeId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetManagementJobTypeIdOk() (*string, bool) { + if o == nil || isNil(o.ManagementJobTypeId) { + return nil, false + } + return o.ManagementJobTypeId, true +} + +// HasManagementJobTypeId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) HasManagementJobTypeId() bool { + if o != nil && !isNil(o.ManagementJobTypeId) { + return true + } + + return false +} + +// SetManagementJobTypeId gets a reference to the given string and assigns it to the ManagementJobTypeId field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) SetManagementJobTypeId(v string) { + o.ManagementJobTypeId = &v +} + +// GetDiscoveryJobTypeId returns the DiscoveryJobTypeId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetDiscoveryJobTypeId() string { + if o == nil || isNil(o.DiscoveryJobTypeId) { + var ret string + return ret + } + return *o.DiscoveryJobTypeId +} + +// GetDiscoveryJobTypeIdOk returns a tuple with the DiscoveryJobTypeId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetDiscoveryJobTypeIdOk() (*string, bool) { + if o == nil || isNil(o.DiscoveryJobTypeId) { + return nil, false + } + return o.DiscoveryJobTypeId, true +} + +// HasDiscoveryJobTypeId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) HasDiscoveryJobTypeId() bool { + if o != nil && !isNil(o.DiscoveryJobTypeId) { + return true + } + + return false +} + +// SetDiscoveryJobTypeId gets a reference to the given string and assigns it to the DiscoveryJobTypeId field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) SetDiscoveryJobTypeId(v string) { + o.DiscoveryJobTypeId = &v +} + +// GetEnrollmentJobTypeId returns the EnrollmentJobTypeId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetEnrollmentJobTypeId() string { + if o == nil || isNil(o.EnrollmentJobTypeId) { + var ret string + return ret + } + return *o.EnrollmentJobTypeId +} + +// GetEnrollmentJobTypeIdOk returns a tuple with the EnrollmentJobTypeId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetEnrollmentJobTypeIdOk() (*string, bool) { + if o == nil || isNil(o.EnrollmentJobTypeId) { + return nil, false + } + return o.EnrollmentJobTypeId, true +} + +// HasEnrollmentJobTypeId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) HasEnrollmentJobTypeId() bool { + if o != nil && !isNil(o.EnrollmentJobTypeId) { + return true + } + + return false +} + +// SetEnrollmentJobTypeId gets a reference to the given string and assigns it to the EnrollmentJobTypeId field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) SetEnrollmentJobTypeId(v string) { + o.EnrollmentJobTypeId = &v +} + +// GetEntryParameters returns the EntryParameters field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetEntryParameters() []ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter { + if o == nil || isNil(o.EntryParameters) { + var ret []ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter + return ret + } + return o.EntryParameters +} + +// GetEntryParametersOk returns a tuple with the EntryParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetEntryParametersOk() ([]ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter, bool) { + if o == nil || isNil(o.EntryParameters) { + return nil, false + } + return o.EntryParameters, true +} + +// HasEntryParameters returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) HasEntryParameters() bool { + if o != nil && !isNil(o.EntryParameters) { + return true + } + + return false +} + +// SetEntryParameters gets a reference to the given []ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter and assigns it to the EntryParameters field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) SetEntryParameters(v []ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) { + o.EntryParameters = v +} + +func (o KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Name"] = o.Name + toSerialize["ShortName"] = o.ShortName + if !isNil(o.Capability) { + toSerialize["Capability"] = o.Capability + } + if !isNil(o.LocalStore) { + toSerialize["LocalStore"] = o.LocalStore + } + if !isNil(o.SupportedOperations) { + toSerialize["SupportedOperations"] = o.SupportedOperations + } + if !isNil(o.Properties) { + toSerialize["Properties"] = o.Properties + } + if !isNil(o.PasswordOptions) { + toSerialize["PasswordOptions"] = o.PasswordOptions + } + if !isNil(o.StorePathType) { + toSerialize["StorePathType"] = o.StorePathType + } + if !isNil(o.StorePathValue) { + toSerialize["StorePathValue"] = o.StorePathValue + } + if !isNil(o.PrivateKeyAllowed) { + toSerialize["PrivateKeyAllowed"] = o.PrivateKeyAllowed + } + if !isNil(o.ServerRequired) { + toSerialize["ServerRequired"] = o.ServerRequired + } + if !isNil(o.PowerShell) { + toSerialize["PowerShell"] = o.PowerShell + } + if !isNil(o.BlueprintAllowed) { + toSerialize["BlueprintAllowed"] = o.BlueprintAllowed + } + if !isNil(o.CustomAliasAllowed) { + toSerialize["CustomAliasAllowed"] = o.CustomAliasAllowed + } + if !isNil(o.ServerRegistration) { + toSerialize["ServerRegistration"] = o.ServerRegistration + } + if !isNil(o.InventoryEndpoint) { + toSerialize["InventoryEndpoint"] = o.InventoryEndpoint + } + if !isNil(o.InventoryJobTypeId) { + toSerialize["InventoryJobTypeId"] = o.InventoryJobTypeId + } + if !isNil(o.ManagementJobTypeId) { + toSerialize["ManagementJobTypeId"] = o.ManagementJobTypeId + } + if !isNil(o.DiscoveryJobTypeId) { + toSerialize["DiscoveryJobTypeId"] = o.DiscoveryJobTypeId + } + if !isNil(o.EnrollmentJobTypeId) { + toSerialize["EnrollmentJobTypeId"] = o.EnrollmentJobTypeId + } + if !isNil(o.EntryParameters) { + toSerialize["EntryParameters"] = o.EntryParameters + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest := _KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest); err == nil { + *o = KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest(varKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Name") + delete(additionalProperties, "ShortName") + delete(additionalProperties, "Capability") + delete(additionalProperties, "LocalStore") + delete(additionalProperties, "SupportedOperations") + delete(additionalProperties, "Properties") + delete(additionalProperties, "PasswordOptions") + delete(additionalProperties, "StorePathType") + delete(additionalProperties, "StorePathValue") + delete(additionalProperties, "PrivateKeyAllowed") + delete(additionalProperties, "ServerRequired") + delete(additionalProperties, "PowerShell") + delete(additionalProperties, "BlueprintAllowed") + delete(additionalProperties, "CustomAliasAllowed") + delete(additionalProperties, "ServerRegistration") + delete(additionalProperties, "InventoryEndpoint") + delete(additionalProperties, "InventoryJobTypeId") + delete(additionalProperties, "ManagementJobTypeId") + delete(additionalProperties, "DiscoveryJobTypeId") + delete(additionalProperties, "EnrollmentJobTypeId") + delete(additionalProperties, "EntryParameters") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest struct { + value *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) Get() *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) Set(val *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest(val *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) *NullableKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest { + return &NullableKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_certificate_stores_types_certificate_store_type_response.go b/v1/api/keyfactor/model_keyfactor_api_models_certificate_stores_types_certificate_store_type_response.go new file mode 100644 index 0000000..2deaa8c --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_certificate_stores_types_certificate_store_type_response.go @@ -0,0 +1,1007 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse{} + +// KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse struct for KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse +type KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse struct { + Name *string `json:"Name,omitempty"` + ShortName *string `json:"ShortName,omitempty"` + Capability *string `json:"Capability,omitempty"` + StoreType *int32 `json:"StoreType,omitempty"` + ImportType *int32 `json:"ImportType,omitempty"` + LocalStore *bool `json:"LocalStore,omitempty"` + SupportedOperations *ModelsCertStoreTypeSupportedOperations `json:"SupportedOperations,omitempty"` + Properties []ModelsCertificateStoreTypeProperty `json:"Properties,omitempty"` + EntryParameters []ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter `json:"EntryParameters,omitempty"` + PasswordOptions *ModelsCertStoreTypePasswordOptions `json:"PasswordOptions,omitempty"` + StorePathType *string `json:"StorePathType,omitempty"` + StorePathValue *string `json:"StorePathValue,omitempty"` + PrivateKeyAllowed *string `json:"PrivateKeyAllowed,omitempty"` + JobProperties []string `json:"JobProperties,omitempty"` + ServerRequired *bool `json:"ServerRequired,omitempty"` + PowerShell *bool `json:"PowerShell,omitempty"` + BlueprintAllowed *bool `json:"BlueprintAllowed,omitempty"` + CustomAliasAllowed *string `json:"CustomAliasAllowed,omitempty"` + ServerRegistration *int32 `json:"ServerRegistration,omitempty"` + InventoryEndpoint *string `json:"InventoryEndpoint,omitempty"` + InventoryJobType *string `json:"InventoryJobType,omitempty"` + ManagementJobType *string `json:"ManagementJobType,omitempty"` + DiscoveryJobType *string `json:"DiscoveryJobType,omitempty"` + EnrollmentJobType *string `json:"EnrollmentJobType,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse + +// NewKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse instantiates a new KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse() *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse { + this := KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse{} + return &this +} + +// NewKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponseWithDefaults instantiates a new KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponseWithDefaults() *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse { + this := KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetName() string { + if o == nil || isNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetNameOk() (*string, bool) { + if o == nil || isNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) HasName() bool { + if o != nil && !isNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) SetName(v string) { + o.Name = &v +} + +// GetShortName returns the ShortName field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetShortName() string { + if o == nil || isNil(o.ShortName) { + var ret string + return ret + } + return *o.ShortName +} + +// GetShortNameOk returns a tuple with the ShortName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetShortNameOk() (*string, bool) { + if o == nil || isNil(o.ShortName) { + return nil, false + } + return o.ShortName, true +} + +// HasShortName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) HasShortName() bool { + if o != nil && !isNil(o.ShortName) { + return true + } + + return false +} + +// SetShortName gets a reference to the given string and assigns it to the ShortName field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) SetShortName(v string) { + o.ShortName = &v +} + +// GetCapability returns the Capability field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetCapability() string { + if o == nil || isNil(o.Capability) { + var ret string + return ret + } + return *o.Capability +} + +// GetCapabilityOk returns a tuple with the Capability field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetCapabilityOk() (*string, bool) { + if o == nil || isNil(o.Capability) { + return nil, false + } + return o.Capability, true +} + +// HasCapability returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) HasCapability() bool { + if o != nil && !isNil(o.Capability) { + return true + } + + return false +} + +// SetCapability gets a reference to the given string and assigns it to the Capability field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) SetCapability(v string) { + o.Capability = &v +} + +// GetStoreType returns the StoreType field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetStoreType() int32 { + if o == nil || isNil(o.StoreType) { + var ret int32 + return ret + } + return *o.StoreType +} + +// GetStoreTypeOk returns a tuple with the StoreType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetStoreTypeOk() (*int32, bool) { + if o == nil || isNil(o.StoreType) { + return nil, false + } + return o.StoreType, true +} + +// HasStoreType returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) HasStoreType() bool { + if o != nil && !isNil(o.StoreType) { + return true + } + + return false +} + +// SetStoreType gets a reference to the given int32 and assigns it to the StoreType field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) SetStoreType(v int32) { + o.StoreType = &v +} + +// GetImportType returns the ImportType field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetImportType() int32 { + if o == nil || isNil(o.ImportType) { + var ret int32 + return ret + } + return *o.ImportType +} + +// GetImportTypeOk returns a tuple with the ImportType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetImportTypeOk() (*int32, bool) { + if o == nil || isNil(o.ImportType) { + return nil, false + } + return o.ImportType, true +} + +// HasImportType returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) HasImportType() bool { + if o != nil && !isNil(o.ImportType) { + return true + } + + return false +} + +// SetImportType gets a reference to the given int32 and assigns it to the ImportType field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) SetImportType(v int32) { + o.ImportType = &v +} + +// GetLocalStore returns the LocalStore field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetLocalStore() bool { + if o == nil || isNil(o.LocalStore) { + var ret bool + return ret + } + return *o.LocalStore +} + +// GetLocalStoreOk returns a tuple with the LocalStore field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetLocalStoreOk() (*bool, bool) { + if o == nil || isNil(o.LocalStore) { + return nil, false + } + return o.LocalStore, true +} + +// HasLocalStore returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) HasLocalStore() bool { + if o != nil && !isNil(o.LocalStore) { + return true + } + + return false +} + +// SetLocalStore gets a reference to the given bool and assigns it to the LocalStore field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) SetLocalStore(v bool) { + o.LocalStore = &v +} + +// GetSupportedOperations returns the SupportedOperations field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetSupportedOperations() ModelsCertStoreTypeSupportedOperations { + if o == nil || isNil(o.SupportedOperations) { + var ret ModelsCertStoreTypeSupportedOperations + return ret + } + return *o.SupportedOperations +} + +// GetSupportedOperationsOk returns a tuple with the SupportedOperations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetSupportedOperationsOk() (*ModelsCertStoreTypeSupportedOperations, bool) { + if o == nil || isNil(o.SupportedOperations) { + return nil, false + } + return o.SupportedOperations, true +} + +// HasSupportedOperations returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) HasSupportedOperations() bool { + if o != nil && !isNil(o.SupportedOperations) { + return true + } + + return false +} + +// SetSupportedOperations gets a reference to the given ModelsCertStoreTypeSupportedOperations and assigns it to the SupportedOperations field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) SetSupportedOperations(v ModelsCertStoreTypeSupportedOperations) { + o.SupportedOperations = &v +} + +// GetProperties returns the Properties field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetProperties() []ModelsCertificateStoreTypeProperty { + if o == nil || isNil(o.Properties) { + var ret []ModelsCertificateStoreTypeProperty + return ret + } + return o.Properties +} + +// GetPropertiesOk returns a tuple with the Properties field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetPropertiesOk() ([]ModelsCertificateStoreTypeProperty, bool) { + if o == nil || isNil(o.Properties) { + return nil, false + } + return o.Properties, true +} + +// HasProperties returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) HasProperties() bool { + if o != nil && !isNil(o.Properties) { + return true + } + + return false +} + +// SetProperties gets a reference to the given []ModelsCertificateStoreTypeProperty and assigns it to the Properties field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) SetProperties(v []ModelsCertificateStoreTypeProperty) { + o.Properties = v +} + +// GetEntryParameters returns the EntryParameters field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetEntryParameters() []ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter { + if o == nil || isNil(o.EntryParameters) { + var ret []ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter + return ret + } + return o.EntryParameters +} + +// GetEntryParametersOk returns a tuple with the EntryParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetEntryParametersOk() ([]ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter, bool) { + if o == nil || isNil(o.EntryParameters) { + return nil, false + } + return o.EntryParameters, true +} + +// HasEntryParameters returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) HasEntryParameters() bool { + if o != nil && !isNil(o.EntryParameters) { + return true + } + + return false +} + +// SetEntryParameters gets a reference to the given []ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter and assigns it to the EntryParameters field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) SetEntryParameters(v []ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) { + o.EntryParameters = v +} + +// GetPasswordOptions returns the PasswordOptions field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetPasswordOptions() ModelsCertStoreTypePasswordOptions { + if o == nil || isNil(o.PasswordOptions) { + var ret ModelsCertStoreTypePasswordOptions + return ret + } + return *o.PasswordOptions +} + +// GetPasswordOptionsOk returns a tuple with the PasswordOptions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetPasswordOptionsOk() (*ModelsCertStoreTypePasswordOptions, bool) { + if o == nil || isNil(o.PasswordOptions) { + return nil, false + } + return o.PasswordOptions, true +} + +// HasPasswordOptions returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) HasPasswordOptions() bool { + if o != nil && !isNil(o.PasswordOptions) { + return true + } + + return false +} + +// SetPasswordOptions gets a reference to the given ModelsCertStoreTypePasswordOptions and assigns it to the PasswordOptions field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) SetPasswordOptions(v ModelsCertStoreTypePasswordOptions) { + o.PasswordOptions = &v +} + +// GetStorePathType returns the StorePathType field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetStorePathType() string { + if o == nil || isNil(o.StorePathType) { + var ret string + return ret + } + return *o.StorePathType +} + +// GetStorePathTypeOk returns a tuple with the StorePathType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetStorePathTypeOk() (*string, bool) { + if o == nil || isNil(o.StorePathType) { + return nil, false + } + return o.StorePathType, true +} + +// HasStorePathType returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) HasStorePathType() bool { + if o != nil && !isNil(o.StorePathType) { + return true + } + + return false +} + +// SetStorePathType gets a reference to the given string and assigns it to the StorePathType field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) SetStorePathType(v string) { + o.StorePathType = &v +} + +// GetStorePathValue returns the StorePathValue field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetStorePathValue() string { + if o == nil || isNil(o.StorePathValue) { + var ret string + return ret + } + return *o.StorePathValue +} + +// GetStorePathValueOk returns a tuple with the StorePathValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetStorePathValueOk() (*string, bool) { + if o == nil || isNil(o.StorePathValue) { + return nil, false + } + return o.StorePathValue, true +} + +// HasStorePathValue returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) HasStorePathValue() bool { + if o != nil && !isNil(o.StorePathValue) { + return true + } + + return false +} + +// SetStorePathValue gets a reference to the given string and assigns it to the StorePathValue field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) SetStorePathValue(v string) { + o.StorePathValue = &v +} + +// GetPrivateKeyAllowed returns the PrivateKeyAllowed field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetPrivateKeyAllowed() string { + if o == nil || isNil(o.PrivateKeyAllowed) { + var ret string + return ret + } + return *o.PrivateKeyAllowed +} + +// GetPrivateKeyAllowedOk returns a tuple with the PrivateKeyAllowed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetPrivateKeyAllowedOk() (*string, bool) { + if o == nil || isNil(o.PrivateKeyAllowed) { + return nil, false + } + return o.PrivateKeyAllowed, true +} + +// HasPrivateKeyAllowed returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) HasPrivateKeyAllowed() bool { + if o != nil && !isNil(o.PrivateKeyAllowed) { + return true + } + + return false +} + +// SetPrivateKeyAllowed gets a reference to the given string and assigns it to the PrivateKeyAllowed field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) SetPrivateKeyAllowed(v string) { + o.PrivateKeyAllowed = &v +} + +// GetJobProperties returns the JobProperties field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetJobProperties() []string { + if o == nil || isNil(o.JobProperties) { + var ret []string + return ret + } + return o.JobProperties +} + +// GetJobPropertiesOk returns a tuple with the JobProperties field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetJobPropertiesOk() ([]string, bool) { + if o == nil || isNil(o.JobProperties) { + return nil, false + } + return o.JobProperties, true +} + +// HasJobProperties returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) HasJobProperties() bool { + if o != nil && !isNil(o.JobProperties) { + return true + } + + return false +} + +// SetJobProperties gets a reference to the given []string and assigns it to the JobProperties field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) SetJobProperties(v []string) { + o.JobProperties = v +} + +// GetServerRequired returns the ServerRequired field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetServerRequired() bool { + if o == nil || isNil(o.ServerRequired) { + var ret bool + return ret + } + return *o.ServerRequired +} + +// GetServerRequiredOk returns a tuple with the ServerRequired field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetServerRequiredOk() (*bool, bool) { + if o == nil || isNil(o.ServerRequired) { + return nil, false + } + return o.ServerRequired, true +} + +// HasServerRequired returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) HasServerRequired() bool { + if o != nil && !isNil(o.ServerRequired) { + return true + } + + return false +} + +// SetServerRequired gets a reference to the given bool and assigns it to the ServerRequired field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) SetServerRequired(v bool) { + o.ServerRequired = &v +} + +// GetPowerShell returns the PowerShell field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetPowerShell() bool { + if o == nil || isNil(o.PowerShell) { + var ret bool + return ret + } + return *o.PowerShell +} + +// GetPowerShellOk returns a tuple with the PowerShell field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetPowerShellOk() (*bool, bool) { + if o == nil || isNil(o.PowerShell) { + return nil, false + } + return o.PowerShell, true +} + +// HasPowerShell returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) HasPowerShell() bool { + if o != nil && !isNil(o.PowerShell) { + return true + } + + return false +} + +// SetPowerShell gets a reference to the given bool and assigns it to the PowerShell field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) SetPowerShell(v bool) { + o.PowerShell = &v +} + +// GetBlueprintAllowed returns the BlueprintAllowed field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetBlueprintAllowed() bool { + if o == nil || isNil(o.BlueprintAllowed) { + var ret bool + return ret + } + return *o.BlueprintAllowed +} + +// GetBlueprintAllowedOk returns a tuple with the BlueprintAllowed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetBlueprintAllowedOk() (*bool, bool) { + if o == nil || isNil(o.BlueprintAllowed) { + return nil, false + } + return o.BlueprintAllowed, true +} + +// HasBlueprintAllowed returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) HasBlueprintAllowed() bool { + if o != nil && !isNil(o.BlueprintAllowed) { + return true + } + + return false +} + +// SetBlueprintAllowed gets a reference to the given bool and assigns it to the BlueprintAllowed field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) SetBlueprintAllowed(v bool) { + o.BlueprintAllowed = &v +} + +// GetCustomAliasAllowed returns the CustomAliasAllowed field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetCustomAliasAllowed() string { + if o == nil || isNil(o.CustomAliasAllowed) { + var ret string + return ret + } + return *o.CustomAliasAllowed +} + +// GetCustomAliasAllowedOk returns a tuple with the CustomAliasAllowed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetCustomAliasAllowedOk() (*string, bool) { + if o == nil || isNil(o.CustomAliasAllowed) { + return nil, false + } + return o.CustomAliasAllowed, true +} + +// HasCustomAliasAllowed returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) HasCustomAliasAllowed() bool { + if o != nil && !isNil(o.CustomAliasAllowed) { + return true + } + + return false +} + +// SetCustomAliasAllowed gets a reference to the given string and assigns it to the CustomAliasAllowed field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) SetCustomAliasAllowed(v string) { + o.CustomAliasAllowed = &v +} + +// GetServerRegistration returns the ServerRegistration field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetServerRegistration() int32 { + if o == nil || isNil(o.ServerRegistration) { + var ret int32 + return ret + } + return *o.ServerRegistration +} + +// GetServerRegistrationOk returns a tuple with the ServerRegistration field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetServerRegistrationOk() (*int32, bool) { + if o == nil || isNil(o.ServerRegistration) { + return nil, false + } + return o.ServerRegistration, true +} + +// HasServerRegistration returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) HasServerRegistration() bool { + if o != nil && !isNil(o.ServerRegistration) { + return true + } + + return false +} + +// SetServerRegistration gets a reference to the given int32 and assigns it to the ServerRegistration field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) SetServerRegistration(v int32) { + o.ServerRegistration = &v +} + +// GetInventoryEndpoint returns the InventoryEndpoint field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetInventoryEndpoint() string { + if o == nil || isNil(o.InventoryEndpoint) { + var ret string + return ret + } + return *o.InventoryEndpoint +} + +// GetInventoryEndpointOk returns a tuple with the InventoryEndpoint field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetInventoryEndpointOk() (*string, bool) { + if o == nil || isNil(o.InventoryEndpoint) { + return nil, false + } + return o.InventoryEndpoint, true +} + +// HasInventoryEndpoint returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) HasInventoryEndpoint() bool { + if o != nil && !isNil(o.InventoryEndpoint) { + return true + } + + return false +} + +// SetInventoryEndpoint gets a reference to the given string and assigns it to the InventoryEndpoint field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) SetInventoryEndpoint(v string) { + o.InventoryEndpoint = &v +} + +// GetInventoryJobType returns the InventoryJobType field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetInventoryJobType() string { + if o == nil || isNil(o.InventoryJobType) { + var ret string + return ret + } + return *o.InventoryJobType +} + +// GetInventoryJobTypeOk returns a tuple with the InventoryJobType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetInventoryJobTypeOk() (*string, bool) { + if o == nil || isNil(o.InventoryJobType) { + return nil, false + } + return o.InventoryJobType, true +} + +// HasInventoryJobType returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) HasInventoryJobType() bool { + if o != nil && !isNil(o.InventoryJobType) { + return true + } + + return false +} + +// SetInventoryJobType gets a reference to the given string and assigns it to the InventoryJobType field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) SetInventoryJobType(v string) { + o.InventoryJobType = &v +} + +// GetManagementJobType returns the ManagementJobType field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetManagementJobType() string { + if o == nil || isNil(o.ManagementJobType) { + var ret string + return ret + } + return *o.ManagementJobType +} + +// GetManagementJobTypeOk returns a tuple with the ManagementJobType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetManagementJobTypeOk() (*string, bool) { + if o == nil || isNil(o.ManagementJobType) { + return nil, false + } + return o.ManagementJobType, true +} + +// HasManagementJobType returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) HasManagementJobType() bool { + if o != nil && !isNil(o.ManagementJobType) { + return true + } + + return false +} + +// SetManagementJobType gets a reference to the given string and assigns it to the ManagementJobType field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) SetManagementJobType(v string) { + o.ManagementJobType = &v +} + +// GetDiscoveryJobType returns the DiscoveryJobType field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetDiscoveryJobType() string { + if o == nil || isNil(o.DiscoveryJobType) { + var ret string + return ret + } + return *o.DiscoveryJobType +} + +// GetDiscoveryJobTypeOk returns a tuple with the DiscoveryJobType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetDiscoveryJobTypeOk() (*string, bool) { + if o == nil || isNil(o.DiscoveryJobType) { + return nil, false + } + return o.DiscoveryJobType, true +} + +// HasDiscoveryJobType returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) HasDiscoveryJobType() bool { + if o != nil && !isNil(o.DiscoveryJobType) { + return true + } + + return false +} + +// SetDiscoveryJobType gets a reference to the given string and assigns it to the DiscoveryJobType field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) SetDiscoveryJobType(v string) { + o.DiscoveryJobType = &v +} + +// GetEnrollmentJobType returns the EnrollmentJobType field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetEnrollmentJobType() string { + if o == nil || isNil(o.EnrollmentJobType) { + var ret string + return ret + } + return *o.EnrollmentJobType +} + +// GetEnrollmentJobTypeOk returns a tuple with the EnrollmentJobType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetEnrollmentJobTypeOk() (*string, bool) { + if o == nil || isNil(o.EnrollmentJobType) { + return nil, false + } + return o.EnrollmentJobType, true +} + +// HasEnrollmentJobType returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) HasEnrollmentJobType() bool { + if o != nil && !isNil(o.EnrollmentJobType) { + return true + } + + return false +} + +// SetEnrollmentJobType gets a reference to the given string and assigns it to the EnrollmentJobType field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) SetEnrollmentJobType(v string) { + o.EnrollmentJobType = &v +} + +func (o KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Name) { + toSerialize["Name"] = o.Name + } + if !isNil(o.ShortName) { + toSerialize["ShortName"] = o.ShortName + } + if !isNil(o.Capability) { + toSerialize["Capability"] = o.Capability + } + if !isNil(o.StoreType) { + toSerialize["StoreType"] = o.StoreType + } + if !isNil(o.ImportType) { + toSerialize["ImportType"] = o.ImportType + } + if !isNil(o.LocalStore) { + toSerialize["LocalStore"] = o.LocalStore + } + if !isNil(o.SupportedOperations) { + toSerialize["SupportedOperations"] = o.SupportedOperations + } + if !isNil(o.Properties) { + toSerialize["Properties"] = o.Properties + } + if !isNil(o.EntryParameters) { + toSerialize["EntryParameters"] = o.EntryParameters + } + if !isNil(o.PasswordOptions) { + toSerialize["PasswordOptions"] = o.PasswordOptions + } + if !isNil(o.StorePathType) { + toSerialize["StorePathType"] = o.StorePathType + } + if !isNil(o.StorePathValue) { + toSerialize["StorePathValue"] = o.StorePathValue + } + if !isNil(o.PrivateKeyAllowed) { + toSerialize["PrivateKeyAllowed"] = o.PrivateKeyAllowed + } + // skip: JobProperties is readOnly + if !isNil(o.ServerRequired) { + toSerialize["ServerRequired"] = o.ServerRequired + } + if !isNil(o.PowerShell) { + toSerialize["PowerShell"] = o.PowerShell + } + if !isNil(o.BlueprintAllowed) { + toSerialize["BlueprintAllowed"] = o.BlueprintAllowed + } + if !isNil(o.CustomAliasAllowed) { + toSerialize["CustomAliasAllowed"] = o.CustomAliasAllowed + } + if !isNil(o.ServerRegistration) { + toSerialize["ServerRegistration"] = o.ServerRegistration + } + if !isNil(o.InventoryEndpoint) { + toSerialize["InventoryEndpoint"] = o.InventoryEndpoint + } + if !isNil(o.InventoryJobType) { + toSerialize["InventoryJobType"] = o.InventoryJobType + } + if !isNil(o.ManagementJobType) { + toSerialize["ManagementJobType"] = o.ManagementJobType + } + if !isNil(o.DiscoveryJobType) { + toSerialize["DiscoveryJobType"] = o.DiscoveryJobType + } + if !isNil(o.EnrollmentJobType) { + toSerialize["EnrollmentJobType"] = o.EnrollmentJobType + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse := _KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse); err == nil { + *o = KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse(varKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Name") + delete(additionalProperties, "ShortName") + delete(additionalProperties, "Capability") + delete(additionalProperties, "StoreType") + delete(additionalProperties, "ImportType") + delete(additionalProperties, "LocalStore") + delete(additionalProperties, "SupportedOperations") + delete(additionalProperties, "Properties") + delete(additionalProperties, "EntryParameters") + delete(additionalProperties, "PasswordOptions") + delete(additionalProperties, "StorePathType") + delete(additionalProperties, "StorePathValue") + delete(additionalProperties, "PrivateKeyAllowed") + delete(additionalProperties, "JobProperties") + delete(additionalProperties, "ServerRequired") + delete(additionalProperties, "PowerShell") + delete(additionalProperties, "BlueprintAllowed") + delete(additionalProperties, "CustomAliasAllowed") + delete(additionalProperties, "ServerRegistration") + delete(additionalProperties, "InventoryEndpoint") + delete(additionalProperties, "InventoryJobType") + delete(additionalProperties, "ManagementJobType") + delete(additionalProperties, "DiscoveryJobType") + delete(additionalProperties, "EnrollmentJobType") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse struct { + value *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) Get() *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) Set(val *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse(val *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) *NullableKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse { + return &NullableKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_certificate_stores_types_certificate_store_type_update_request.go b/v1/api/keyfactor/model_keyfactor_api_models_certificate_stores_types_certificate_store_type_update_request.go new file mode 100644 index 0000000..f8fd3ff --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_certificate_stores_types_certificate_store_type_update_request.go @@ -0,0 +1,686 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest{} + +// KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest struct for KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest +type KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest struct { + StoreType int32 `json:"StoreType"` + Name string `json:"Name"` + ShortName string `json:"ShortName"` + Capability *string `json:"Capability,omitempty"` + LocalStore *bool `json:"LocalStore,omitempty"` + SupportedOperations *ModelsCertStoreTypeSupportedOperations `json:"SupportedOperations,omitempty"` + Properties []ModelsCertificateStoreTypeProperty `json:"Properties,omitempty"` + PasswordOptions *ModelsCertStoreTypePasswordOptions `json:"PasswordOptions,omitempty"` + StorePathType *string `json:"StorePathType,omitempty"` + StorePathValue *string `json:"StorePathValue,omitempty"` + PrivateKeyAllowed *string `json:"PrivateKeyAllowed,omitempty"` + ServerRequired *bool `json:"ServerRequired,omitempty"` + PowerShell *bool `json:"PowerShell,omitempty"` + BlueprintAllowed *bool `json:"BlueprintAllowed,omitempty"` + CustomAliasAllowed *string `json:"CustomAliasAllowed,omitempty"` + EntryParameters []ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter `json:"EntryParameters,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest + +// NewKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest instantiates a new KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest(storeType int32, name string, shortName string) *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest { + this := KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest{} + this.StoreType = storeType + this.Name = name + this.ShortName = shortName + return &this +} + +// NewKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequestWithDefaults instantiates a new KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequestWithDefaults() *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest { + this := KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest{} + return &this +} + +// GetStoreType returns the StoreType field value +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetStoreType() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.StoreType +} + +// GetStoreTypeOk returns a tuple with the StoreType field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetStoreTypeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.StoreType, true +} + +// SetStoreType sets field value +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) SetStoreType(v int32) { + o.StoreType = v +} + +// GetName returns the Name field value +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) SetName(v string) { + o.Name = v +} + +// GetShortName returns the ShortName field value +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetShortName() string { + if o == nil { + var ret string + return ret + } + + return o.ShortName +} + +// GetShortNameOk returns a tuple with the ShortName field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetShortNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ShortName, true +} + +// SetShortName sets field value +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) SetShortName(v string) { + o.ShortName = v +} + +// GetCapability returns the Capability field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetCapability() string { + if o == nil || isNil(o.Capability) { + var ret string + return ret + } + return *o.Capability +} + +// GetCapabilityOk returns a tuple with the Capability field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetCapabilityOk() (*string, bool) { + if o == nil || isNil(o.Capability) { + return nil, false + } + return o.Capability, true +} + +// HasCapability returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) HasCapability() bool { + if o != nil && !isNil(o.Capability) { + return true + } + + return false +} + +// SetCapability gets a reference to the given string and assigns it to the Capability field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) SetCapability(v string) { + o.Capability = &v +} + +// GetLocalStore returns the LocalStore field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetLocalStore() bool { + if o == nil || isNil(o.LocalStore) { + var ret bool + return ret + } + return *o.LocalStore +} + +// GetLocalStoreOk returns a tuple with the LocalStore field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetLocalStoreOk() (*bool, bool) { + if o == nil || isNil(o.LocalStore) { + return nil, false + } + return o.LocalStore, true +} + +// HasLocalStore returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) HasLocalStore() bool { + if o != nil && !isNil(o.LocalStore) { + return true + } + + return false +} + +// SetLocalStore gets a reference to the given bool and assigns it to the LocalStore field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) SetLocalStore(v bool) { + o.LocalStore = &v +} + +// GetSupportedOperations returns the SupportedOperations field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetSupportedOperations() ModelsCertStoreTypeSupportedOperations { + if o == nil || isNil(o.SupportedOperations) { + var ret ModelsCertStoreTypeSupportedOperations + return ret + } + return *o.SupportedOperations +} + +// GetSupportedOperationsOk returns a tuple with the SupportedOperations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetSupportedOperationsOk() (*ModelsCertStoreTypeSupportedOperations, bool) { + if o == nil || isNil(o.SupportedOperations) { + return nil, false + } + return o.SupportedOperations, true +} + +// HasSupportedOperations returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) HasSupportedOperations() bool { + if o != nil && !isNil(o.SupportedOperations) { + return true + } + + return false +} + +// SetSupportedOperations gets a reference to the given ModelsCertStoreTypeSupportedOperations and assigns it to the SupportedOperations field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) SetSupportedOperations(v ModelsCertStoreTypeSupportedOperations) { + o.SupportedOperations = &v +} + +// GetProperties returns the Properties field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetProperties() []ModelsCertificateStoreTypeProperty { + if o == nil || isNil(o.Properties) { + var ret []ModelsCertificateStoreTypeProperty + return ret + } + return o.Properties +} + +// GetPropertiesOk returns a tuple with the Properties field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetPropertiesOk() ([]ModelsCertificateStoreTypeProperty, bool) { + if o == nil || isNil(o.Properties) { + return nil, false + } + return o.Properties, true +} + +// HasProperties returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) HasProperties() bool { + if o != nil && !isNil(o.Properties) { + return true + } + + return false +} + +// SetProperties gets a reference to the given []ModelsCertificateStoreTypeProperty and assigns it to the Properties field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) SetProperties(v []ModelsCertificateStoreTypeProperty) { + o.Properties = v +} + +// GetPasswordOptions returns the PasswordOptions field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetPasswordOptions() ModelsCertStoreTypePasswordOptions { + if o == nil || isNil(o.PasswordOptions) { + var ret ModelsCertStoreTypePasswordOptions + return ret + } + return *o.PasswordOptions +} + +// GetPasswordOptionsOk returns a tuple with the PasswordOptions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetPasswordOptionsOk() (*ModelsCertStoreTypePasswordOptions, bool) { + if o == nil || isNil(o.PasswordOptions) { + return nil, false + } + return o.PasswordOptions, true +} + +// HasPasswordOptions returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) HasPasswordOptions() bool { + if o != nil && !isNil(o.PasswordOptions) { + return true + } + + return false +} + +// SetPasswordOptions gets a reference to the given ModelsCertStoreTypePasswordOptions and assigns it to the PasswordOptions field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) SetPasswordOptions(v ModelsCertStoreTypePasswordOptions) { + o.PasswordOptions = &v +} + +// GetStorePathType returns the StorePathType field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetStorePathType() string { + if o == nil || isNil(o.StorePathType) { + var ret string + return ret + } + return *o.StorePathType +} + +// GetStorePathTypeOk returns a tuple with the StorePathType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetStorePathTypeOk() (*string, bool) { + if o == nil || isNil(o.StorePathType) { + return nil, false + } + return o.StorePathType, true +} + +// HasStorePathType returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) HasStorePathType() bool { + if o != nil && !isNil(o.StorePathType) { + return true + } + + return false +} + +// SetStorePathType gets a reference to the given string and assigns it to the StorePathType field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) SetStorePathType(v string) { + o.StorePathType = &v +} + +// GetStorePathValue returns the StorePathValue field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetStorePathValue() string { + if o == nil || isNil(o.StorePathValue) { + var ret string + return ret + } + return *o.StorePathValue +} + +// GetStorePathValueOk returns a tuple with the StorePathValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetStorePathValueOk() (*string, bool) { + if o == nil || isNil(o.StorePathValue) { + return nil, false + } + return o.StorePathValue, true +} + +// HasStorePathValue returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) HasStorePathValue() bool { + if o != nil && !isNil(o.StorePathValue) { + return true + } + + return false +} + +// SetStorePathValue gets a reference to the given string and assigns it to the StorePathValue field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) SetStorePathValue(v string) { + o.StorePathValue = &v +} + +// GetPrivateKeyAllowed returns the PrivateKeyAllowed field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetPrivateKeyAllowed() string { + if o == nil || isNil(o.PrivateKeyAllowed) { + var ret string + return ret + } + return *o.PrivateKeyAllowed +} + +// GetPrivateKeyAllowedOk returns a tuple with the PrivateKeyAllowed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetPrivateKeyAllowedOk() (*string, bool) { + if o == nil || isNil(o.PrivateKeyAllowed) { + return nil, false + } + return o.PrivateKeyAllowed, true +} + +// HasPrivateKeyAllowed returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) HasPrivateKeyAllowed() bool { + if o != nil && !isNil(o.PrivateKeyAllowed) { + return true + } + + return false +} + +// SetPrivateKeyAllowed gets a reference to the given string and assigns it to the PrivateKeyAllowed field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) SetPrivateKeyAllowed(v string) { + o.PrivateKeyAllowed = &v +} + +// GetServerRequired returns the ServerRequired field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetServerRequired() bool { + if o == nil || isNil(o.ServerRequired) { + var ret bool + return ret + } + return *o.ServerRequired +} + +// GetServerRequiredOk returns a tuple with the ServerRequired field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetServerRequiredOk() (*bool, bool) { + if o == nil || isNil(o.ServerRequired) { + return nil, false + } + return o.ServerRequired, true +} + +// HasServerRequired returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) HasServerRequired() bool { + if o != nil && !isNil(o.ServerRequired) { + return true + } + + return false +} + +// SetServerRequired gets a reference to the given bool and assigns it to the ServerRequired field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) SetServerRequired(v bool) { + o.ServerRequired = &v +} + +// GetPowerShell returns the PowerShell field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetPowerShell() bool { + if o == nil || isNil(o.PowerShell) { + var ret bool + return ret + } + return *o.PowerShell +} + +// GetPowerShellOk returns a tuple with the PowerShell field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetPowerShellOk() (*bool, bool) { + if o == nil || isNil(o.PowerShell) { + return nil, false + } + return o.PowerShell, true +} + +// HasPowerShell returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) HasPowerShell() bool { + if o != nil && !isNil(o.PowerShell) { + return true + } + + return false +} + +// SetPowerShell gets a reference to the given bool and assigns it to the PowerShell field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) SetPowerShell(v bool) { + o.PowerShell = &v +} + +// GetBlueprintAllowed returns the BlueprintAllowed field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetBlueprintAllowed() bool { + if o == nil || isNil(o.BlueprintAllowed) { + var ret bool + return ret + } + return *o.BlueprintAllowed +} + +// GetBlueprintAllowedOk returns a tuple with the BlueprintAllowed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetBlueprintAllowedOk() (*bool, bool) { + if o == nil || isNil(o.BlueprintAllowed) { + return nil, false + } + return o.BlueprintAllowed, true +} + +// HasBlueprintAllowed returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) HasBlueprintAllowed() bool { + if o != nil && !isNil(o.BlueprintAllowed) { + return true + } + + return false +} + +// SetBlueprintAllowed gets a reference to the given bool and assigns it to the BlueprintAllowed field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) SetBlueprintAllowed(v bool) { + o.BlueprintAllowed = &v +} + +// GetCustomAliasAllowed returns the CustomAliasAllowed field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetCustomAliasAllowed() string { + if o == nil || isNil(o.CustomAliasAllowed) { + var ret string + return ret + } + return *o.CustomAliasAllowed +} + +// GetCustomAliasAllowedOk returns a tuple with the CustomAliasAllowed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetCustomAliasAllowedOk() (*string, bool) { + if o == nil || isNil(o.CustomAliasAllowed) { + return nil, false + } + return o.CustomAliasAllowed, true +} + +// HasCustomAliasAllowed returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) HasCustomAliasAllowed() bool { + if o != nil && !isNil(o.CustomAliasAllowed) { + return true + } + + return false +} + +// SetCustomAliasAllowed gets a reference to the given string and assigns it to the CustomAliasAllowed field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) SetCustomAliasAllowed(v string) { + o.CustomAliasAllowed = &v +} + +// GetEntryParameters returns the EntryParameters field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetEntryParameters() []ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter { + if o == nil || isNil(o.EntryParameters) { + var ret []ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter + return ret + } + return o.EntryParameters +} + +// GetEntryParametersOk returns a tuple with the EntryParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetEntryParametersOk() ([]ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter, bool) { + if o == nil || isNil(o.EntryParameters) { + return nil, false + } + return o.EntryParameters, true +} + +// HasEntryParameters returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) HasEntryParameters() bool { + if o != nil && !isNil(o.EntryParameters) { + return true + } + + return false +} + +// SetEntryParameters gets a reference to the given []ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter and assigns it to the EntryParameters field. +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) SetEntryParameters(v []ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) { + o.EntryParameters = v +} + +func (o KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["StoreType"] = o.StoreType + toSerialize["Name"] = o.Name + toSerialize["ShortName"] = o.ShortName + if !isNil(o.Capability) { + toSerialize["Capability"] = o.Capability + } + if !isNil(o.LocalStore) { + toSerialize["LocalStore"] = o.LocalStore + } + if !isNil(o.SupportedOperations) { + toSerialize["SupportedOperations"] = o.SupportedOperations + } + if !isNil(o.Properties) { + toSerialize["Properties"] = o.Properties + } + if !isNil(o.PasswordOptions) { + toSerialize["PasswordOptions"] = o.PasswordOptions + } + if !isNil(o.StorePathType) { + toSerialize["StorePathType"] = o.StorePathType + } + if !isNil(o.StorePathValue) { + toSerialize["StorePathValue"] = o.StorePathValue + } + if !isNil(o.PrivateKeyAllowed) { + toSerialize["PrivateKeyAllowed"] = o.PrivateKeyAllowed + } + if !isNil(o.ServerRequired) { + toSerialize["ServerRequired"] = o.ServerRequired + } + if !isNil(o.PowerShell) { + toSerialize["PowerShell"] = o.PowerShell + } + if !isNil(o.BlueprintAllowed) { + toSerialize["BlueprintAllowed"] = o.BlueprintAllowed + } + if !isNil(o.CustomAliasAllowed) { + toSerialize["CustomAliasAllowed"] = o.CustomAliasAllowed + } + if !isNil(o.EntryParameters) { + toSerialize["EntryParameters"] = o.EntryParameters + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest := _KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest); err == nil { + *o = KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest(varKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "StoreType") + delete(additionalProperties, "Name") + delete(additionalProperties, "ShortName") + delete(additionalProperties, "Capability") + delete(additionalProperties, "LocalStore") + delete(additionalProperties, "SupportedOperations") + delete(additionalProperties, "Properties") + delete(additionalProperties, "PasswordOptions") + delete(additionalProperties, "StorePathType") + delete(additionalProperties, "StorePathValue") + delete(additionalProperties, "PrivateKeyAllowed") + delete(additionalProperties, "ServerRequired") + delete(additionalProperties, "PowerShell") + delete(additionalProperties, "BlueprintAllowed") + delete(additionalProperties, "CustomAliasAllowed") + delete(additionalProperties, "EntryParameters") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest struct { + value *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) Get() *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) Set(val *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest(val *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) *NullableKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest { + return &NullableKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_certificates_analyze_certificate_request.go b/v1/api/keyfactor/model_keyfactor_api_models_certificates_analyze_certificate_request.go new file mode 100644 index 0000000..06a8371 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_certificates_analyze_certificate_request.go @@ -0,0 +1,195 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsCertificatesAnalyzeCertificateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsCertificatesAnalyzeCertificateRequest{} + +// KeyfactorApiModelsCertificatesAnalyzeCertificateRequest struct for KeyfactorApiModelsCertificatesAnalyzeCertificateRequest +type KeyfactorApiModelsCertificatesAnalyzeCertificateRequest struct { + Certificate *string `json:"Certificate,omitempty"` + Password *string `json:"Password,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsCertificatesAnalyzeCertificateRequest KeyfactorApiModelsCertificatesAnalyzeCertificateRequest + +// NewKeyfactorApiModelsCertificatesAnalyzeCertificateRequest instantiates a new KeyfactorApiModelsCertificatesAnalyzeCertificateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsCertificatesAnalyzeCertificateRequest() *KeyfactorApiModelsCertificatesAnalyzeCertificateRequest { + this := KeyfactorApiModelsCertificatesAnalyzeCertificateRequest{} + return &this +} + +// NewKeyfactorApiModelsCertificatesAnalyzeCertificateRequestWithDefaults instantiates a new KeyfactorApiModelsCertificatesAnalyzeCertificateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsCertificatesAnalyzeCertificateRequestWithDefaults() *KeyfactorApiModelsCertificatesAnalyzeCertificateRequest { + this := KeyfactorApiModelsCertificatesAnalyzeCertificateRequest{} + return &this +} + +// GetCertificate returns the Certificate field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificatesAnalyzeCertificateRequest) GetCertificate() string { + if o == nil || isNil(o.Certificate) { + var ret string + return ret + } + return *o.Certificate +} + +// GetCertificateOk returns a tuple with the Certificate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificatesAnalyzeCertificateRequest) GetCertificateOk() (*string, bool) { + if o == nil || isNil(o.Certificate) { + return nil, false + } + return o.Certificate, true +} + +// HasCertificate returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificatesAnalyzeCertificateRequest) HasCertificate() bool { + if o != nil && !isNil(o.Certificate) { + return true + } + + return false +} + +// SetCertificate gets a reference to the given string and assigns it to the Certificate field. +func (o *KeyfactorApiModelsCertificatesAnalyzeCertificateRequest) SetCertificate(v string) { + o.Certificate = &v +} + +// GetPassword returns the Password field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificatesAnalyzeCertificateRequest) GetPassword() string { + if o == nil || isNil(o.Password) { + var ret string + return ret + } + return *o.Password +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificatesAnalyzeCertificateRequest) GetPasswordOk() (*string, bool) { + if o == nil || isNil(o.Password) { + return nil, false + } + return o.Password, true +} + +// HasPassword returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificatesAnalyzeCertificateRequest) HasPassword() bool { + if o != nil && !isNil(o.Password) { + return true + } + + return false +} + +// SetPassword gets a reference to the given string and assigns it to the Password field. +func (o *KeyfactorApiModelsCertificatesAnalyzeCertificateRequest) SetPassword(v string) { + o.Password = &v +} + +func (o KeyfactorApiModelsCertificatesAnalyzeCertificateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsCertificatesAnalyzeCertificateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Certificate) { + toSerialize["Certificate"] = o.Certificate + } + if !isNil(o.Password) { + toSerialize["Password"] = o.Password + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsCertificatesAnalyzeCertificateRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsCertificatesAnalyzeCertificateRequest := _KeyfactorApiModelsCertificatesAnalyzeCertificateRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsCertificatesAnalyzeCertificateRequest); err == nil { + *o = KeyfactorApiModelsCertificatesAnalyzeCertificateRequest(varKeyfactorApiModelsCertificatesAnalyzeCertificateRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Certificate") + delete(additionalProperties, "Password") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsCertificatesAnalyzeCertificateRequest struct { + value *KeyfactorApiModelsCertificatesAnalyzeCertificateRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsCertificatesAnalyzeCertificateRequest) Get() *KeyfactorApiModelsCertificatesAnalyzeCertificateRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsCertificatesAnalyzeCertificateRequest) Set(val *KeyfactorApiModelsCertificatesAnalyzeCertificateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsCertificatesAnalyzeCertificateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsCertificatesAnalyzeCertificateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsCertificatesAnalyzeCertificateRequest(val *KeyfactorApiModelsCertificatesAnalyzeCertificateRequest) *NullableKeyfactorApiModelsCertificatesAnalyzeCertificateRequest { + return &NullableKeyfactorApiModelsCertificatesAnalyzeCertificateRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsCertificatesAnalyzeCertificateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsCertificatesAnalyzeCertificateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_certificates_certificate_identity_audit_response.go b/v1/api/keyfactor/model_keyfactor_api_models_certificates_certificate_identity_audit_response.go new file mode 100644 index 0000000..5b8c069 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_certificates_certificate_identity_audit_response.go @@ -0,0 +1,309 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse{} + +// KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse Represents an account with a list of permission granted to it on a given certificate by either a role or collection +type KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse struct { + // Id of the account represented by the audit response + Id *int32 `json:"Id,omitempty"` + // Name of the account represented by the audit response + AccountName *string `json:"AccountName,omitempty"` + // The type of account represented by the audit response (User or Group) + IdentityType *string `json:"IdentityType,omitempty"` + // The SID of the account represented by the audit reponse + SID *string `json:"SID,omitempty"` + // Permissions granted to the account represented by the audit reponse on the specified certifcate + Permissions []KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission `json:"Permissions,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse + +// NewKeyfactorApiModelsCertificatesCertificateIdentityAuditResponse instantiates a new KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsCertificatesCertificateIdentityAuditResponse() *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse { + this := KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse{} + return &this +} + +// NewKeyfactorApiModelsCertificatesCertificateIdentityAuditResponseWithDefaults instantiates a new KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsCertificatesCertificateIdentityAuditResponseWithDefaults() *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse { + this := KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse) SetId(v int32) { + o.Id = &v +} + +// GetAccountName returns the AccountName field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse) GetAccountName() string { + if o == nil || isNil(o.AccountName) { + var ret string + return ret + } + return *o.AccountName +} + +// GetAccountNameOk returns a tuple with the AccountName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse) GetAccountNameOk() (*string, bool) { + if o == nil || isNil(o.AccountName) { + return nil, false + } + return o.AccountName, true +} + +// HasAccountName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse) HasAccountName() bool { + if o != nil && !isNil(o.AccountName) { + return true + } + + return false +} + +// SetAccountName gets a reference to the given string and assigns it to the AccountName field. +func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse) SetAccountName(v string) { + o.AccountName = &v +} + +// GetIdentityType returns the IdentityType field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse) GetIdentityType() string { + if o == nil || isNil(o.IdentityType) { + var ret string + return ret + } + return *o.IdentityType +} + +// GetIdentityTypeOk returns a tuple with the IdentityType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse) GetIdentityTypeOk() (*string, bool) { + if o == nil || isNil(o.IdentityType) { + return nil, false + } + return o.IdentityType, true +} + +// HasIdentityType returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse) HasIdentityType() bool { + if o != nil && !isNil(o.IdentityType) { + return true + } + + return false +} + +// SetIdentityType gets a reference to the given string and assigns it to the IdentityType field. +func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse) SetIdentityType(v string) { + o.IdentityType = &v +} + +// GetSID returns the SID field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse) GetSID() string { + if o == nil || isNil(o.SID) { + var ret string + return ret + } + return *o.SID +} + +// GetSIDOk returns a tuple with the SID field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse) GetSIDOk() (*string, bool) { + if o == nil || isNil(o.SID) { + return nil, false + } + return o.SID, true +} + +// HasSID returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse) HasSID() bool { + if o != nil && !isNil(o.SID) { + return true + } + + return false +} + +// SetSID gets a reference to the given string and assigns it to the SID field. +func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse) SetSID(v string) { + o.SID = &v +} + +// GetPermissions returns the Permissions field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse) GetPermissions() []KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission { + if o == nil || isNil(o.Permissions) { + var ret []KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission + return ret + } + return o.Permissions +} + +// GetPermissionsOk returns a tuple with the Permissions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse) GetPermissionsOk() ([]KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission, bool) { + if o == nil || isNil(o.Permissions) { + return nil, false + } + return o.Permissions, true +} + +// HasPermissions returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse) HasPermissions() bool { + if o != nil && !isNil(o.Permissions) { + return true + } + + return false +} + +// SetPermissions gets a reference to the given []KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission and assigns it to the Permissions field. +func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse) SetPermissions(v []KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission) { + o.Permissions = v +} + +func (o KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.AccountName) { + toSerialize["AccountName"] = o.AccountName + } + if !isNil(o.IdentityType) { + toSerialize["IdentityType"] = o.IdentityType + } + if !isNil(o.SID) { + toSerialize["SID"] = o.SID + } + // skip: Permissions is readOnly + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsCertificatesCertificateIdentityAuditResponse := _KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsCertificatesCertificateIdentityAuditResponse); err == nil { + *o = KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse(varKeyfactorApiModelsCertificatesCertificateIdentityAuditResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "AccountName") + delete(additionalProperties, "IdentityType") + delete(additionalProperties, "SID") + delete(additionalProperties, "Permissions") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsCertificatesCertificateIdentityAuditResponse struct { + value *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsCertificatesCertificateIdentityAuditResponse) Get() *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsCertificatesCertificateIdentityAuditResponse) Set(val *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsCertificatesCertificateIdentityAuditResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsCertificatesCertificateIdentityAuditResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsCertificatesCertificateIdentityAuditResponse(val *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse) *NullableKeyfactorApiModelsCertificatesCertificateIdentityAuditResponse { + return &NullableKeyfactorApiModelsCertificatesCertificateIdentityAuditResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsCertificatesCertificateIdentityAuditResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsCertificatesCertificateIdentityAuditResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_certificates_certificate_identity_audit_response_certificate_permission.go b/v1/api/keyfactor/model_keyfactor_api_models_certificates_certificate_identity_audit_response_certificate_permission.go new file mode 100644 index 0000000..3e171b1 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_certificates_certificate_identity_audit_response_certificate_permission.go @@ -0,0 +1,197 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission{} + +// KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission Represents a permission granted to an account for a certificate +type KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission struct { + // The name of the permission + Name *string `json:"Name,omitempty"` + // A list of roles or collections that grant the given permission + GrantedBy []string `json:"GrantedBy,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission + +// NewKeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission instantiates a new KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission() *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission { + this := KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission{} + return &this +} + +// NewKeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermissionWithDefaults instantiates a new KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermissionWithDefaults() *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission { + this := KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission) GetName() string { + if o == nil || isNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission) GetNameOk() (*string, bool) { + if o == nil || isNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission) HasName() bool { + if o != nil && !isNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission) SetName(v string) { + o.Name = &v +} + +// GetGrantedBy returns the GrantedBy field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission) GetGrantedBy() []string { + if o == nil || isNil(o.GrantedBy) { + var ret []string + return ret + } + return o.GrantedBy +} + +// GetGrantedByOk returns a tuple with the GrantedBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission) GetGrantedByOk() ([]string, bool) { + if o == nil || isNil(o.GrantedBy) { + return nil, false + } + return o.GrantedBy, true +} + +// HasGrantedBy returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission) HasGrantedBy() bool { + if o != nil && !isNil(o.GrantedBy) { + return true + } + + return false +} + +// SetGrantedBy gets a reference to the given []string and assigns it to the GrantedBy field. +func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission) SetGrantedBy(v []string) { + o.GrantedBy = v +} + +func (o KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Name) { + toSerialize["Name"] = o.Name + } + if !isNil(o.GrantedBy) { + toSerialize["GrantedBy"] = o.GrantedBy + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission := _KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission); err == nil { + *o = KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission(varKeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Name") + delete(additionalProperties, "GrantedBy") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission struct { + value *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission + isSet bool +} + +func (v NullableKeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission) Get() *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission { + return v.value +} + +func (v *NullableKeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission) Set(val *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission(val *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission) *NullableKeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission { + return &NullableKeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_certificates_certificate_locations_response.go b/v1/api/keyfactor/model_keyfactor_api_models_certificates_certificate_locations_response.go new file mode 100644 index 0000000..a1970a2 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_certificates_certificate_locations_response.go @@ -0,0 +1,158 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsCertificatesCertificateLocationsResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsCertificatesCertificateLocationsResponse{} + +// KeyfactorApiModelsCertificatesCertificateLocationsResponse struct for KeyfactorApiModelsCertificatesCertificateLocationsResponse +type KeyfactorApiModelsCertificatesCertificateLocationsResponse struct { + Details []ModelsCertStoreLocationsCertificateLocationsGroup `json:"Details,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsCertificatesCertificateLocationsResponse KeyfactorApiModelsCertificatesCertificateLocationsResponse + +// NewKeyfactorApiModelsCertificatesCertificateLocationsResponse instantiates a new KeyfactorApiModelsCertificatesCertificateLocationsResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsCertificatesCertificateLocationsResponse() *KeyfactorApiModelsCertificatesCertificateLocationsResponse { + this := KeyfactorApiModelsCertificatesCertificateLocationsResponse{} + return &this +} + +// NewKeyfactorApiModelsCertificatesCertificateLocationsResponseWithDefaults instantiates a new KeyfactorApiModelsCertificatesCertificateLocationsResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsCertificatesCertificateLocationsResponseWithDefaults() *KeyfactorApiModelsCertificatesCertificateLocationsResponse { + this := KeyfactorApiModelsCertificatesCertificateLocationsResponse{} + return &this +} + +// GetDetails returns the Details field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificatesCertificateLocationsResponse) GetDetails() []ModelsCertStoreLocationsCertificateLocationsGroup { + if o == nil || isNil(o.Details) { + var ret []ModelsCertStoreLocationsCertificateLocationsGroup + return ret + } + return o.Details +} + +// GetDetailsOk returns a tuple with the Details field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificatesCertificateLocationsResponse) GetDetailsOk() ([]ModelsCertStoreLocationsCertificateLocationsGroup, bool) { + if o == nil || isNil(o.Details) { + return nil, false + } + return o.Details, true +} + +// HasDetails returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificatesCertificateLocationsResponse) HasDetails() bool { + if o != nil && !isNil(o.Details) { + return true + } + + return false +} + +// SetDetails gets a reference to the given []ModelsCertStoreLocationsCertificateLocationsGroup and assigns it to the Details field. +func (o *KeyfactorApiModelsCertificatesCertificateLocationsResponse) SetDetails(v []ModelsCertStoreLocationsCertificateLocationsGroup) { + o.Details = v +} + +func (o KeyfactorApiModelsCertificatesCertificateLocationsResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsCertificatesCertificateLocationsResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Details) { + toSerialize["Details"] = o.Details + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsCertificatesCertificateLocationsResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsCertificatesCertificateLocationsResponse := _KeyfactorApiModelsCertificatesCertificateLocationsResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsCertificatesCertificateLocationsResponse); err == nil { + *o = KeyfactorApiModelsCertificatesCertificateLocationsResponse(varKeyfactorApiModelsCertificatesCertificateLocationsResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Details") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsCertificatesCertificateLocationsResponse struct { + value *KeyfactorApiModelsCertificatesCertificateLocationsResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsCertificatesCertificateLocationsResponse) Get() *KeyfactorApiModelsCertificatesCertificateLocationsResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsCertificatesCertificateLocationsResponse) Set(val *KeyfactorApiModelsCertificatesCertificateLocationsResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsCertificatesCertificateLocationsResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsCertificatesCertificateLocationsResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsCertificatesCertificateLocationsResponse(val *KeyfactorApiModelsCertificatesCertificateLocationsResponse) *NullableKeyfactorApiModelsCertificatesCertificateLocationsResponse { + return &NullableKeyfactorApiModelsCertificatesCertificateLocationsResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsCertificatesCertificateLocationsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsCertificatesCertificateLocationsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_certificates_certificate_query_request.go b/v1/api/keyfactor/model_keyfactor_api_models_certificates_certificate_query_request.go new file mode 100644 index 0000000..a04c103 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_certificates_certificate_query_request.go @@ -0,0 +1,387 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsCertificatesCertificateQueryRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsCertificatesCertificateQueryRequest{} + +// KeyfactorApiModelsCertificatesCertificateQueryRequest struct for KeyfactorApiModelsCertificatesCertificateQueryRequest +type KeyfactorApiModelsCertificatesCertificateQueryRequest struct { + // Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) + QueryString *string `json:"QueryString,omitempty"` + // The current page within the result set to be returned + PageReturned *int32 `json:"PageReturned,omitempty"` + // Maximum number of records to be returned in a single call + ReturnLimit *int32 `json:"ReturnLimit,omitempty"` + // Field by which the results should be sorted (view results via Management Portal for sortable columns) + SortField *string `json:"SortField,omitempty"` + // Field sort direction [0=ascending, 1=descending] + SortAscending *int32 `json:"SortAscending,omitempty"` + // Select 'true' to include revoked certificates in the results + IncludeRevoked *bool `json:"IncludeRevoked,omitempty"` + // Select 'true' to include expired certificates in the results + IncludeExpired *bool `json:"IncludeExpired,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsCertificatesCertificateQueryRequest KeyfactorApiModelsCertificatesCertificateQueryRequest + +// NewKeyfactorApiModelsCertificatesCertificateQueryRequest instantiates a new KeyfactorApiModelsCertificatesCertificateQueryRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsCertificatesCertificateQueryRequest() *KeyfactorApiModelsCertificatesCertificateQueryRequest { + this := KeyfactorApiModelsCertificatesCertificateQueryRequest{} + return &this +} + +// NewKeyfactorApiModelsCertificatesCertificateQueryRequestWithDefaults instantiates a new KeyfactorApiModelsCertificatesCertificateQueryRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsCertificatesCertificateQueryRequestWithDefaults() *KeyfactorApiModelsCertificatesCertificateQueryRequest { + this := KeyfactorApiModelsCertificatesCertificateQueryRequest{} + return &this +} + +// GetQueryString returns the QueryString field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) GetQueryString() string { + if o == nil || isNil(o.QueryString) { + var ret string + return ret + } + return *o.QueryString +} + +// GetQueryStringOk returns a tuple with the QueryString field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) GetQueryStringOk() (*string, bool) { + if o == nil || isNil(o.QueryString) { + return nil, false + } + return o.QueryString, true +} + +// HasQueryString returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) HasQueryString() bool { + if o != nil && !isNil(o.QueryString) { + return true + } + + return false +} + +// SetQueryString gets a reference to the given string and assigns it to the QueryString field. +func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) SetQueryString(v string) { + o.QueryString = &v +} + +// GetPageReturned returns the PageReturned field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) GetPageReturned() int32 { + if o == nil || isNil(o.PageReturned) { + var ret int32 + return ret + } + return *o.PageReturned +} + +// GetPageReturnedOk returns a tuple with the PageReturned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) GetPageReturnedOk() (*int32, bool) { + if o == nil || isNil(o.PageReturned) { + return nil, false + } + return o.PageReturned, true +} + +// HasPageReturned returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) HasPageReturned() bool { + if o != nil && !isNil(o.PageReturned) { + return true + } + + return false +} + +// SetPageReturned gets a reference to the given int32 and assigns it to the PageReturned field. +func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) SetPageReturned(v int32) { + o.PageReturned = &v +} + +// GetReturnLimit returns the ReturnLimit field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) GetReturnLimit() int32 { + if o == nil || isNil(o.ReturnLimit) { + var ret int32 + return ret + } + return *o.ReturnLimit +} + +// GetReturnLimitOk returns a tuple with the ReturnLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) GetReturnLimitOk() (*int32, bool) { + if o == nil || isNil(o.ReturnLimit) { + return nil, false + } + return o.ReturnLimit, true +} + +// HasReturnLimit returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) HasReturnLimit() bool { + if o != nil && !isNil(o.ReturnLimit) { + return true + } + + return false +} + +// SetReturnLimit gets a reference to the given int32 and assigns it to the ReturnLimit field. +func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) SetReturnLimit(v int32) { + o.ReturnLimit = &v +} + +// GetSortField returns the SortField field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) GetSortField() string { + if o == nil || isNil(o.SortField) { + var ret string + return ret + } + return *o.SortField +} + +// GetSortFieldOk returns a tuple with the SortField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) GetSortFieldOk() (*string, bool) { + if o == nil || isNil(o.SortField) { + return nil, false + } + return o.SortField, true +} + +// HasSortField returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) HasSortField() bool { + if o != nil && !isNil(o.SortField) { + return true + } + + return false +} + +// SetSortField gets a reference to the given string and assigns it to the SortField field. +func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) SetSortField(v string) { + o.SortField = &v +} + +// GetSortAscending returns the SortAscending field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) GetSortAscending() int32 { + if o == nil || isNil(o.SortAscending) { + var ret int32 + return ret + } + return *o.SortAscending +} + +// GetSortAscendingOk returns a tuple with the SortAscending field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) GetSortAscendingOk() (*int32, bool) { + if o == nil || isNil(o.SortAscending) { + return nil, false + } + return o.SortAscending, true +} + +// HasSortAscending returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) HasSortAscending() bool { + if o != nil && !isNil(o.SortAscending) { + return true + } + + return false +} + +// SetSortAscending gets a reference to the given int32 and assigns it to the SortAscending field. +func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) SetSortAscending(v int32) { + o.SortAscending = &v +} + +// GetIncludeRevoked returns the IncludeRevoked field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) GetIncludeRevoked() bool { + if o == nil || isNil(o.IncludeRevoked) { + var ret bool + return ret + } + return *o.IncludeRevoked +} + +// GetIncludeRevokedOk returns a tuple with the IncludeRevoked field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) GetIncludeRevokedOk() (*bool, bool) { + if o == nil || isNil(o.IncludeRevoked) { + return nil, false + } + return o.IncludeRevoked, true +} + +// HasIncludeRevoked returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) HasIncludeRevoked() bool { + if o != nil && !isNil(o.IncludeRevoked) { + return true + } + + return false +} + +// SetIncludeRevoked gets a reference to the given bool and assigns it to the IncludeRevoked field. +func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) SetIncludeRevoked(v bool) { + o.IncludeRevoked = &v +} + +// GetIncludeExpired returns the IncludeExpired field value if set, zero value otherwise. +func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) GetIncludeExpired() bool { + if o == nil || isNil(o.IncludeExpired) { + var ret bool + return ret + } + return *o.IncludeExpired +} + +// GetIncludeExpiredOk returns a tuple with the IncludeExpired field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) GetIncludeExpiredOk() (*bool, bool) { + if o == nil || isNil(o.IncludeExpired) { + return nil, false + } + return o.IncludeExpired, true +} + +// HasIncludeExpired returns a boolean if a field has been set. +func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) HasIncludeExpired() bool { + if o != nil && !isNil(o.IncludeExpired) { + return true + } + + return false +} + +// SetIncludeExpired gets a reference to the given bool and assigns it to the IncludeExpired field. +func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) SetIncludeExpired(v bool) { + o.IncludeExpired = &v +} + +func (o KeyfactorApiModelsCertificatesCertificateQueryRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsCertificatesCertificateQueryRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.QueryString) { + toSerialize["QueryString"] = o.QueryString + } + if !isNil(o.PageReturned) { + toSerialize["PageReturned"] = o.PageReturned + } + if !isNil(o.ReturnLimit) { + toSerialize["ReturnLimit"] = o.ReturnLimit + } + if !isNil(o.SortField) { + toSerialize["SortField"] = o.SortField + } + if !isNil(o.SortAscending) { + toSerialize["SortAscending"] = o.SortAscending + } + if !isNil(o.IncludeRevoked) { + toSerialize["IncludeRevoked"] = o.IncludeRevoked + } + if !isNil(o.IncludeExpired) { + toSerialize["IncludeExpired"] = o.IncludeExpired + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsCertificatesCertificateQueryRequest := _KeyfactorApiModelsCertificatesCertificateQueryRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsCertificatesCertificateQueryRequest); err == nil { + *o = KeyfactorApiModelsCertificatesCertificateQueryRequest(varKeyfactorApiModelsCertificatesCertificateQueryRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "QueryString") + delete(additionalProperties, "PageReturned") + delete(additionalProperties, "ReturnLimit") + delete(additionalProperties, "SortField") + delete(additionalProperties, "SortAscending") + delete(additionalProperties, "IncludeRevoked") + delete(additionalProperties, "IncludeExpired") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsCertificatesCertificateQueryRequest struct { + value *KeyfactorApiModelsCertificatesCertificateQueryRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsCertificatesCertificateQueryRequest) Get() *KeyfactorApiModelsCertificatesCertificateQueryRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsCertificatesCertificateQueryRequest) Set(val *KeyfactorApiModelsCertificatesCertificateQueryRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsCertificatesCertificateQueryRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsCertificatesCertificateQueryRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsCertificatesCertificateQueryRequest(val *KeyfactorApiModelsCertificatesCertificateQueryRequest) *NullableKeyfactorApiModelsCertificatesCertificateQueryRequest { + return &NullableKeyfactorApiModelsCertificatesCertificateQueryRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsCertificatesCertificateQueryRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsCertificatesCertificateQueryRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_configuration_tenant_configuration_tenant_request.go b/v1/api/keyfactor/model_keyfactor_api_models_configuration_tenant_configuration_tenant_request.go new file mode 100644 index 0000000..cd1f372 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_configuration_tenant_configuration_tenant_request.go @@ -0,0 +1,158 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsConfigurationTenantConfigurationTenantRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsConfigurationTenantConfigurationTenantRequest{} + +// KeyfactorApiModelsConfigurationTenantConfigurationTenantRequest struct for KeyfactorApiModelsConfigurationTenantConfigurationTenantRequest +type KeyfactorApiModelsConfigurationTenantConfigurationTenantRequest struct { + ConfigurationTenant *string `json:"ConfigurationTenant,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsConfigurationTenantConfigurationTenantRequest KeyfactorApiModelsConfigurationTenantConfigurationTenantRequest + +// NewKeyfactorApiModelsConfigurationTenantConfigurationTenantRequest instantiates a new KeyfactorApiModelsConfigurationTenantConfigurationTenantRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsConfigurationTenantConfigurationTenantRequest() *KeyfactorApiModelsConfigurationTenantConfigurationTenantRequest { + this := KeyfactorApiModelsConfigurationTenantConfigurationTenantRequest{} + return &this +} + +// NewKeyfactorApiModelsConfigurationTenantConfigurationTenantRequestWithDefaults instantiates a new KeyfactorApiModelsConfigurationTenantConfigurationTenantRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsConfigurationTenantConfigurationTenantRequestWithDefaults() *KeyfactorApiModelsConfigurationTenantConfigurationTenantRequest { + this := KeyfactorApiModelsConfigurationTenantConfigurationTenantRequest{} + return &this +} + +// GetConfigurationTenant returns the ConfigurationTenant field value if set, zero value otherwise. +func (o *KeyfactorApiModelsConfigurationTenantConfigurationTenantRequest) GetConfigurationTenant() string { + if o == nil || isNil(o.ConfigurationTenant) { + var ret string + return ret + } + return *o.ConfigurationTenant +} + +// GetConfigurationTenantOk returns a tuple with the ConfigurationTenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsConfigurationTenantConfigurationTenantRequest) GetConfigurationTenantOk() (*string, bool) { + if o == nil || isNil(o.ConfigurationTenant) { + return nil, false + } + return o.ConfigurationTenant, true +} + +// HasConfigurationTenant returns a boolean if a field has been set. +func (o *KeyfactorApiModelsConfigurationTenantConfigurationTenantRequest) HasConfigurationTenant() bool { + if o != nil && !isNil(o.ConfigurationTenant) { + return true + } + + return false +} + +// SetConfigurationTenant gets a reference to the given string and assigns it to the ConfigurationTenant field. +func (o *KeyfactorApiModelsConfigurationTenantConfigurationTenantRequest) SetConfigurationTenant(v string) { + o.ConfigurationTenant = &v +} + +func (o KeyfactorApiModelsConfigurationTenantConfigurationTenantRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsConfigurationTenantConfigurationTenantRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.ConfigurationTenant) { + toSerialize["ConfigurationTenant"] = o.ConfigurationTenant + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsConfigurationTenantConfigurationTenantRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsConfigurationTenantConfigurationTenantRequest := _KeyfactorApiModelsConfigurationTenantConfigurationTenantRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsConfigurationTenantConfigurationTenantRequest); err == nil { + *o = KeyfactorApiModelsConfigurationTenantConfigurationTenantRequest(varKeyfactorApiModelsConfigurationTenantConfigurationTenantRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "ConfigurationTenant") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsConfigurationTenantConfigurationTenantRequest struct { + value *KeyfactorApiModelsConfigurationTenantConfigurationTenantRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsConfigurationTenantConfigurationTenantRequest) Get() *KeyfactorApiModelsConfigurationTenantConfigurationTenantRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsConfigurationTenantConfigurationTenantRequest) Set(val *KeyfactorApiModelsConfigurationTenantConfigurationTenantRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsConfigurationTenantConfigurationTenantRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsConfigurationTenantConfigurationTenantRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsConfigurationTenantConfigurationTenantRequest(val *KeyfactorApiModelsConfigurationTenantConfigurationTenantRequest) *NullableKeyfactorApiModelsConfigurationTenantConfigurationTenantRequest { + return &NullableKeyfactorApiModelsConfigurationTenantConfigurationTenantRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsConfigurationTenantConfigurationTenantRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsConfigurationTenantConfigurationTenantRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_enrollment_enrollment_management_request.go b/v1/api/keyfactor/model_keyfactor_api_models_enrollment_enrollment_management_request.go new file mode 100644 index 0000000..ca60ca3 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_enrollment_enrollment_management_request.go @@ -0,0 +1,373 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" + "time" +) + +// checks if the KeyfactorApiModelsEnrollmentEnrollmentManagementRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsEnrollmentEnrollmentManagementRequest{} + +// KeyfactorApiModelsEnrollmentEnrollmentManagementRequest struct for KeyfactorApiModelsEnrollmentEnrollmentManagementRequest +type KeyfactorApiModelsEnrollmentEnrollmentManagementRequest struct { + // The stores to add the certificate to. Values in this collection will take precedence over values in {Models.Enrollment.SpecificEnrollmentManagementRequest.StoreTypes}. + Stores []KeyfactorApiModelsEnrollmentManagementStoreRequest `json:"Stores,omitempty"` + StoreIds []string `json:"StoreIds,omitempty"` + StoreTypes []KeyfactorApiModelsEnrollmentManagementStoreTypeRequest `json:"StoreTypes,omitempty"` + CertificateId *int32 `json:"CertificateId,omitempty"` + RequestId *int32 `json:"RequestId,omitempty"` + Password string `json:"Password"` + JobTime *time.Time `json:"JobTime,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsEnrollmentEnrollmentManagementRequest KeyfactorApiModelsEnrollmentEnrollmentManagementRequest + +// NewKeyfactorApiModelsEnrollmentEnrollmentManagementRequest instantiates a new KeyfactorApiModelsEnrollmentEnrollmentManagementRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsEnrollmentEnrollmentManagementRequest(password string) *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest { + this := KeyfactorApiModelsEnrollmentEnrollmentManagementRequest{} + this.Password = password + return &this +} + +// NewKeyfactorApiModelsEnrollmentEnrollmentManagementRequestWithDefaults instantiates a new KeyfactorApiModelsEnrollmentEnrollmentManagementRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsEnrollmentEnrollmentManagementRequestWithDefaults() *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest { + this := KeyfactorApiModelsEnrollmentEnrollmentManagementRequest{} + return &this +} + +// GetStores returns the Stores field value if set, zero value otherwise. +func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) GetStores() []KeyfactorApiModelsEnrollmentManagementStoreRequest { + if o == nil || isNil(o.Stores) { + var ret []KeyfactorApiModelsEnrollmentManagementStoreRequest + return ret + } + return o.Stores +} + +// GetStoresOk returns a tuple with the Stores field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) GetStoresOk() ([]KeyfactorApiModelsEnrollmentManagementStoreRequest, bool) { + if o == nil || isNil(o.Stores) { + return nil, false + } + return o.Stores, true +} + +// HasStores returns a boolean if a field has been set. +func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) HasStores() bool { + if o != nil && !isNil(o.Stores) { + return true + } + + return false +} + +// SetStores gets a reference to the given []KeyfactorApiModelsEnrollmentManagementStoreRequest and assigns it to the Stores field. +func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) SetStores(v []KeyfactorApiModelsEnrollmentManagementStoreRequest) { + o.Stores = v +} + +// GetStoreIds returns the StoreIds field value if set, zero value otherwise. +func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) GetStoreIds() []string { + if o == nil || isNil(o.StoreIds) { + var ret []string + return ret + } + return o.StoreIds +} + +// GetStoreIdsOk returns a tuple with the StoreIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) GetStoreIdsOk() ([]string, bool) { + if o == nil || isNil(o.StoreIds) { + return nil, false + } + return o.StoreIds, true +} + +// HasStoreIds returns a boolean if a field has been set. +func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) HasStoreIds() bool { + if o != nil && !isNil(o.StoreIds) { + return true + } + + return false +} + +// SetStoreIds gets a reference to the given []string and assigns it to the StoreIds field. +func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) SetStoreIds(v []string) { + o.StoreIds = v +} + +// GetStoreTypes returns the StoreTypes field value if set, zero value otherwise. +func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) GetStoreTypes() []KeyfactorApiModelsEnrollmentManagementStoreTypeRequest { + if o == nil || isNil(o.StoreTypes) { + var ret []KeyfactorApiModelsEnrollmentManagementStoreTypeRequest + return ret + } + return o.StoreTypes +} + +// GetStoreTypesOk returns a tuple with the StoreTypes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) GetStoreTypesOk() ([]KeyfactorApiModelsEnrollmentManagementStoreTypeRequest, bool) { + if o == nil || isNil(o.StoreTypes) { + return nil, false + } + return o.StoreTypes, true +} + +// HasStoreTypes returns a boolean if a field has been set. +func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) HasStoreTypes() bool { + if o != nil && !isNil(o.StoreTypes) { + return true + } + + return false +} + +// SetStoreTypes gets a reference to the given []KeyfactorApiModelsEnrollmentManagementStoreTypeRequest and assigns it to the StoreTypes field. +func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) SetStoreTypes(v []KeyfactorApiModelsEnrollmentManagementStoreTypeRequest) { + o.StoreTypes = v +} + +// GetCertificateId returns the CertificateId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) GetCertificateId() int32 { + if o == nil || isNil(o.CertificateId) { + var ret int32 + return ret + } + return *o.CertificateId +} + +// GetCertificateIdOk returns a tuple with the CertificateId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) GetCertificateIdOk() (*int32, bool) { + if o == nil || isNil(o.CertificateId) { + return nil, false + } + return o.CertificateId, true +} + +// HasCertificateId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) HasCertificateId() bool { + if o != nil && !isNil(o.CertificateId) { + return true + } + + return false +} + +// SetCertificateId gets a reference to the given int32 and assigns it to the CertificateId field. +func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) SetCertificateId(v int32) { + o.CertificateId = &v +} + +// GetRequestId returns the RequestId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) GetRequestId() int32 { + if o == nil || isNil(o.RequestId) { + var ret int32 + return ret + } + return *o.RequestId +} + +// GetRequestIdOk returns a tuple with the RequestId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) GetRequestIdOk() (*int32, bool) { + if o == nil || isNil(o.RequestId) { + return nil, false + } + return o.RequestId, true +} + +// HasRequestId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) HasRequestId() bool { + if o != nil && !isNil(o.RequestId) { + return true + } + + return false +} + +// SetRequestId gets a reference to the given int32 and assigns it to the RequestId field. +func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) SetRequestId(v int32) { + o.RequestId = &v +} + +// GetPassword returns the Password field value +func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) GetPassword() string { + if o == nil { + var ret string + return ret + } + + return o.Password +} + +// GetPasswordOk returns a tuple with the Password field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) GetPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Password, true +} + +// SetPassword sets field value +func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) SetPassword(v string) { + o.Password = v +} + +// GetJobTime returns the JobTime field value if set, zero value otherwise. +func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) GetJobTime() time.Time { + if o == nil || isNil(o.JobTime) { + var ret time.Time + return ret + } + return *o.JobTime +} + +// GetJobTimeOk returns a tuple with the JobTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) GetJobTimeOk() (*time.Time, bool) { + if o == nil || isNil(o.JobTime) { + return nil, false + } + return o.JobTime, true +} + +// HasJobTime returns a boolean if a field has been set. +func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) HasJobTime() bool { + if o != nil && !isNil(o.JobTime) { + return true + } + + return false +} + +// SetJobTime gets a reference to the given time.Time and assigns it to the JobTime field. +func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) SetJobTime(v time.Time) { + o.JobTime = &v +} + +func (o KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Stores) { + toSerialize["Stores"] = o.Stores + } + if !isNil(o.StoreIds) { + toSerialize["StoreIds"] = o.StoreIds + } + if !isNil(o.StoreTypes) { + toSerialize["StoreTypes"] = o.StoreTypes + } + if !isNil(o.CertificateId) { + toSerialize["CertificateId"] = o.CertificateId + } + if !isNil(o.RequestId) { + toSerialize["RequestId"] = o.RequestId + } + toSerialize["Password"] = o.Password + if !isNil(o.JobTime) { + toSerialize["JobTime"] = o.JobTime + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsEnrollmentEnrollmentManagementRequest := _KeyfactorApiModelsEnrollmentEnrollmentManagementRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsEnrollmentEnrollmentManagementRequest); err == nil { + *o = KeyfactorApiModelsEnrollmentEnrollmentManagementRequest(varKeyfactorApiModelsEnrollmentEnrollmentManagementRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Stores") + delete(additionalProperties, "StoreIds") + delete(additionalProperties, "StoreTypes") + delete(additionalProperties, "CertificateId") + delete(additionalProperties, "RequestId") + delete(additionalProperties, "Password") + delete(additionalProperties, "JobTime") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsEnrollmentEnrollmentManagementRequest struct { + value *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsEnrollmentEnrollmentManagementRequest) Get() *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsEnrollmentEnrollmentManagementRequest) Set(val *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsEnrollmentEnrollmentManagementRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsEnrollmentEnrollmentManagementRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsEnrollmentEnrollmentManagementRequest(val *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) *NullableKeyfactorApiModelsEnrollmentEnrollmentManagementRequest { + return &NullableKeyfactorApiModelsEnrollmentEnrollmentManagementRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsEnrollmentEnrollmentManagementRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsEnrollmentEnrollmentManagementRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_enrollment_enrollment_management_response.go b/v1/api/keyfactor/model_keyfactor_api_models_enrollment_enrollment_management_response.go new file mode 100644 index 0000000..58af73d --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_enrollment_enrollment_management_response.go @@ -0,0 +1,195 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse{} + +// KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse struct for KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse +type KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse struct { + SuccessfulStores []string `json:"SuccessfulStores,omitempty"` + FailedStores []string `json:"FailedStores,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse + +// NewKeyfactorAPIModelsEnrollmentEnrollmentManagementResponse instantiates a new KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorAPIModelsEnrollmentEnrollmentManagementResponse() *KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse { + this := KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse{} + return &this +} + +// NewKeyfactorAPIModelsEnrollmentEnrollmentManagementResponseWithDefaults instantiates a new KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorAPIModelsEnrollmentEnrollmentManagementResponseWithDefaults() *KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse { + this := KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse{} + return &this +} + +// GetSuccessfulStores returns the SuccessfulStores field value if set, zero value otherwise. +func (o *KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse) GetSuccessfulStores() []string { + if o == nil || isNil(o.SuccessfulStores) { + var ret []string + return ret + } + return o.SuccessfulStores +} + +// GetSuccessfulStoresOk returns a tuple with the SuccessfulStores field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse) GetSuccessfulStoresOk() ([]string, bool) { + if o == nil || isNil(o.SuccessfulStores) { + return nil, false + } + return o.SuccessfulStores, true +} + +// HasSuccessfulStores returns a boolean if a field has been set. +func (o *KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse) HasSuccessfulStores() bool { + if o != nil && !isNil(o.SuccessfulStores) { + return true + } + + return false +} + +// SetSuccessfulStores gets a reference to the given []string and assigns it to the SuccessfulStores field. +func (o *KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse) SetSuccessfulStores(v []string) { + o.SuccessfulStores = v +} + +// GetFailedStores returns the FailedStores field value if set, zero value otherwise. +func (o *KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse) GetFailedStores() []string { + if o == nil || isNil(o.FailedStores) { + var ret []string + return ret + } + return o.FailedStores +} + +// GetFailedStoresOk returns a tuple with the FailedStores field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse) GetFailedStoresOk() ([]string, bool) { + if o == nil || isNil(o.FailedStores) { + return nil, false + } + return o.FailedStores, true +} + +// HasFailedStores returns a boolean if a field has been set. +func (o *KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse) HasFailedStores() bool { + if o != nil && !isNil(o.FailedStores) { + return true + } + + return false +} + +// SetFailedStores gets a reference to the given []string and assigns it to the FailedStores field. +func (o *KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse) SetFailedStores(v []string) { + o.FailedStores = v +} + +func (o KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.SuccessfulStores) { + toSerialize["SuccessfulStores"] = o.SuccessfulStores + } + if !isNil(o.FailedStores) { + toSerialize["FailedStores"] = o.FailedStores + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorAPIModelsEnrollmentEnrollmentManagementResponse := _KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorAPIModelsEnrollmentEnrollmentManagementResponse); err == nil { + *o = KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse(varKeyfactorAPIModelsEnrollmentEnrollmentManagementResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "SuccessfulStores") + delete(additionalProperties, "FailedStores") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorAPIModelsEnrollmentEnrollmentManagementResponse struct { + value *KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse + isSet bool +} + +func (v NullableKeyfactorAPIModelsEnrollmentEnrollmentManagementResponse) Get() *KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse { + return v.value +} + +func (v *NullableKeyfactorAPIModelsEnrollmentEnrollmentManagementResponse) Set(val *KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorAPIModelsEnrollmentEnrollmentManagementResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorAPIModelsEnrollmentEnrollmentManagementResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorAPIModelsEnrollmentEnrollmentManagementResponse(val *KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse) *NullableKeyfactorAPIModelsEnrollmentEnrollmentManagementResponse { + return &NullableKeyfactorAPIModelsEnrollmentEnrollmentManagementResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorAPIModelsEnrollmentEnrollmentManagementResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorAPIModelsEnrollmentEnrollmentManagementResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_enrollment_management_store_request.go b/v1/api/keyfactor/model_keyfactor_api_models_enrollment_management_store_request.go new file mode 100644 index 0000000..d2f0a0e --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_enrollment_management_store_request.go @@ -0,0 +1,269 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsEnrollmentManagementStoreRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsEnrollmentManagementStoreRequest{} + +// KeyfactorApiModelsEnrollmentManagementStoreRequest struct for KeyfactorApiModelsEnrollmentManagementStoreRequest +type KeyfactorApiModelsEnrollmentManagementStoreRequest struct { + StoreId *string `json:"StoreId,omitempty"` + Alias *string `json:"Alias,omitempty"` + Overwrite *bool `json:"Overwrite,omitempty"` + Properties map[string]map[string]interface{} `json:"Properties,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsEnrollmentManagementStoreRequest KeyfactorApiModelsEnrollmentManagementStoreRequest + +// NewKeyfactorApiModelsEnrollmentManagementStoreRequest instantiates a new KeyfactorApiModelsEnrollmentManagementStoreRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsEnrollmentManagementStoreRequest() *KeyfactorApiModelsEnrollmentManagementStoreRequest { + this := KeyfactorApiModelsEnrollmentManagementStoreRequest{} + return &this +} + +// NewKeyfactorApiModelsEnrollmentManagementStoreRequestWithDefaults instantiates a new KeyfactorApiModelsEnrollmentManagementStoreRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsEnrollmentManagementStoreRequestWithDefaults() *KeyfactorApiModelsEnrollmentManagementStoreRequest { + this := KeyfactorApiModelsEnrollmentManagementStoreRequest{} + return &this +} + +// GetStoreId returns the StoreId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsEnrollmentManagementStoreRequest) GetStoreId() string { + if o == nil || isNil(o.StoreId) { + var ret string + return ret + } + return *o.StoreId +} + +// GetStoreIdOk returns a tuple with the StoreId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsEnrollmentManagementStoreRequest) GetStoreIdOk() (*string, bool) { + if o == nil || isNil(o.StoreId) { + return nil, false + } + return o.StoreId, true +} + +// HasStoreId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsEnrollmentManagementStoreRequest) HasStoreId() bool { + if o != nil && !isNil(o.StoreId) { + return true + } + + return false +} + +// SetStoreId gets a reference to the given string and assigns it to the StoreId field. +func (o *KeyfactorApiModelsEnrollmentManagementStoreRequest) SetStoreId(v string) { + o.StoreId = &v +} + +// GetAlias returns the Alias field value if set, zero value otherwise. +func (o *KeyfactorApiModelsEnrollmentManagementStoreRequest) GetAlias() string { + if o == nil || isNil(o.Alias) { + var ret string + return ret + } + return *o.Alias +} + +// GetAliasOk returns a tuple with the Alias field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsEnrollmentManagementStoreRequest) GetAliasOk() (*string, bool) { + if o == nil || isNil(o.Alias) { + return nil, false + } + return o.Alias, true +} + +// HasAlias returns a boolean if a field has been set. +func (o *KeyfactorApiModelsEnrollmentManagementStoreRequest) HasAlias() bool { + if o != nil && !isNil(o.Alias) { + return true + } + + return false +} + +// SetAlias gets a reference to the given string and assigns it to the Alias field. +func (o *KeyfactorApiModelsEnrollmentManagementStoreRequest) SetAlias(v string) { + o.Alias = &v +} + +// GetOverwrite returns the Overwrite field value if set, zero value otherwise. +func (o *KeyfactorApiModelsEnrollmentManagementStoreRequest) GetOverwrite() bool { + if o == nil || isNil(o.Overwrite) { + var ret bool + return ret + } + return *o.Overwrite +} + +// GetOverwriteOk returns a tuple with the Overwrite field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsEnrollmentManagementStoreRequest) GetOverwriteOk() (*bool, bool) { + if o == nil || isNil(o.Overwrite) { + return nil, false + } + return o.Overwrite, true +} + +// HasOverwrite returns a boolean if a field has been set. +func (o *KeyfactorApiModelsEnrollmentManagementStoreRequest) HasOverwrite() bool { + if o != nil && !isNil(o.Overwrite) { + return true + } + + return false +} + +// SetOverwrite gets a reference to the given bool and assigns it to the Overwrite field. +func (o *KeyfactorApiModelsEnrollmentManagementStoreRequest) SetOverwrite(v bool) { + o.Overwrite = &v +} + +// GetProperties returns the Properties field value if set, zero value otherwise. +func (o *KeyfactorApiModelsEnrollmentManagementStoreRequest) GetProperties() map[string]map[string]interface{} { + if o == nil || isNil(o.Properties) { + var ret map[string]map[string]interface{} + return ret + } + return o.Properties +} + +// GetPropertiesOk returns a tuple with the Properties field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsEnrollmentManagementStoreRequest) GetPropertiesOk() (map[string]map[string]interface{}, bool) { + if o == nil || isNil(o.Properties) { + return map[string]map[string]interface{}{}, false + } + return o.Properties, true +} + +// HasProperties returns a boolean if a field has been set. +func (o *KeyfactorApiModelsEnrollmentManagementStoreRequest) HasProperties() bool { + if o != nil && !isNil(o.Properties) { + return true + } + + return false +} + +// SetProperties gets a reference to the given map[string]map[string]interface{} and assigns it to the Properties field. +func (o *KeyfactorApiModelsEnrollmentManagementStoreRequest) SetProperties(v map[string]map[string]interface{}) { + o.Properties = v +} + +func (o KeyfactorApiModelsEnrollmentManagementStoreRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsEnrollmentManagementStoreRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.StoreId) { + toSerialize["StoreId"] = o.StoreId + } + if !isNil(o.Alias) { + toSerialize["Alias"] = o.Alias + } + if !isNil(o.Overwrite) { + toSerialize["Overwrite"] = o.Overwrite + } + if !isNil(o.Properties) { + toSerialize["Properties"] = o.Properties + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsEnrollmentManagementStoreRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsEnrollmentManagementStoreRequest := _KeyfactorApiModelsEnrollmentManagementStoreRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsEnrollmentManagementStoreRequest); err == nil { + *o = KeyfactorApiModelsEnrollmentManagementStoreRequest(varKeyfactorApiModelsEnrollmentManagementStoreRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "StoreId") + delete(additionalProperties, "Alias") + delete(additionalProperties, "Overwrite") + delete(additionalProperties, "Properties") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsEnrollmentManagementStoreRequest struct { + value *KeyfactorApiModelsEnrollmentManagementStoreRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsEnrollmentManagementStoreRequest) Get() *KeyfactorApiModelsEnrollmentManagementStoreRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsEnrollmentManagementStoreRequest) Set(val *KeyfactorApiModelsEnrollmentManagementStoreRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsEnrollmentManagementStoreRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsEnrollmentManagementStoreRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsEnrollmentManagementStoreRequest(val *KeyfactorApiModelsEnrollmentManagementStoreRequest) *NullableKeyfactorApiModelsEnrollmentManagementStoreRequest { + return &NullableKeyfactorApiModelsEnrollmentManagementStoreRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsEnrollmentManagementStoreRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsEnrollmentManagementStoreRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_enrollment_management_store_type_request.go b/v1/api/keyfactor/model_keyfactor_api_models_enrollment_management_store_type_request.go new file mode 100644 index 0000000..903e1a7 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_enrollment_management_store_type_request.go @@ -0,0 +1,269 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsEnrollmentManagementStoreTypeRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsEnrollmentManagementStoreTypeRequest{} + +// KeyfactorApiModelsEnrollmentManagementStoreTypeRequest struct for KeyfactorApiModelsEnrollmentManagementStoreTypeRequest +type KeyfactorApiModelsEnrollmentManagementStoreTypeRequest struct { + StoreTypeId *int32 `json:"StoreTypeId,omitempty"` + Alias *string `json:"Alias,omitempty"` + Overwrite *bool `json:"Overwrite,omitempty"` + Properties []map[string]interface{} `json:"Properties,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsEnrollmentManagementStoreTypeRequest KeyfactorApiModelsEnrollmentManagementStoreTypeRequest + +// NewKeyfactorApiModelsEnrollmentManagementStoreTypeRequest instantiates a new KeyfactorApiModelsEnrollmentManagementStoreTypeRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsEnrollmentManagementStoreTypeRequest() *KeyfactorApiModelsEnrollmentManagementStoreTypeRequest { + this := KeyfactorApiModelsEnrollmentManagementStoreTypeRequest{} + return &this +} + +// NewKeyfactorApiModelsEnrollmentManagementStoreTypeRequestWithDefaults instantiates a new KeyfactorApiModelsEnrollmentManagementStoreTypeRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsEnrollmentManagementStoreTypeRequestWithDefaults() *KeyfactorApiModelsEnrollmentManagementStoreTypeRequest { + this := KeyfactorApiModelsEnrollmentManagementStoreTypeRequest{} + return &this +} + +// GetStoreTypeId returns the StoreTypeId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsEnrollmentManagementStoreTypeRequest) GetStoreTypeId() int32 { + if o == nil || isNil(o.StoreTypeId) { + var ret int32 + return ret + } + return *o.StoreTypeId +} + +// GetStoreTypeIdOk returns a tuple with the StoreTypeId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsEnrollmentManagementStoreTypeRequest) GetStoreTypeIdOk() (*int32, bool) { + if o == nil || isNil(o.StoreTypeId) { + return nil, false + } + return o.StoreTypeId, true +} + +// HasStoreTypeId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsEnrollmentManagementStoreTypeRequest) HasStoreTypeId() bool { + if o != nil && !isNil(o.StoreTypeId) { + return true + } + + return false +} + +// SetStoreTypeId gets a reference to the given int32 and assigns it to the StoreTypeId field. +func (o *KeyfactorApiModelsEnrollmentManagementStoreTypeRequest) SetStoreTypeId(v int32) { + o.StoreTypeId = &v +} + +// GetAlias returns the Alias field value if set, zero value otherwise. +func (o *KeyfactorApiModelsEnrollmentManagementStoreTypeRequest) GetAlias() string { + if o == nil || isNil(o.Alias) { + var ret string + return ret + } + return *o.Alias +} + +// GetAliasOk returns a tuple with the Alias field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsEnrollmentManagementStoreTypeRequest) GetAliasOk() (*string, bool) { + if o == nil || isNil(o.Alias) { + return nil, false + } + return o.Alias, true +} + +// HasAlias returns a boolean if a field has been set. +func (o *KeyfactorApiModelsEnrollmentManagementStoreTypeRequest) HasAlias() bool { + if o != nil && !isNil(o.Alias) { + return true + } + + return false +} + +// SetAlias gets a reference to the given string and assigns it to the Alias field. +func (o *KeyfactorApiModelsEnrollmentManagementStoreTypeRequest) SetAlias(v string) { + o.Alias = &v +} + +// GetOverwrite returns the Overwrite field value if set, zero value otherwise. +func (o *KeyfactorApiModelsEnrollmentManagementStoreTypeRequest) GetOverwrite() bool { + if o == nil || isNil(o.Overwrite) { + var ret bool + return ret + } + return *o.Overwrite +} + +// GetOverwriteOk returns a tuple with the Overwrite field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsEnrollmentManagementStoreTypeRequest) GetOverwriteOk() (*bool, bool) { + if o == nil || isNil(o.Overwrite) { + return nil, false + } + return o.Overwrite, true +} + +// HasOverwrite returns a boolean if a field has been set. +func (o *KeyfactorApiModelsEnrollmentManagementStoreTypeRequest) HasOverwrite() bool { + if o != nil && !isNil(o.Overwrite) { + return true + } + + return false +} + +// SetOverwrite gets a reference to the given bool and assigns it to the Overwrite field. +func (o *KeyfactorApiModelsEnrollmentManagementStoreTypeRequest) SetOverwrite(v bool) { + o.Overwrite = &v +} + +// GetProperties returns the Properties field value if set, zero value otherwise. +func (o *KeyfactorApiModelsEnrollmentManagementStoreTypeRequest) GetProperties() []map[string]interface{} { + if o == nil || isNil(o.Properties) { + var ret []map[string]interface{} + return ret + } + return o.Properties +} + +// GetPropertiesOk returns a tuple with the Properties field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsEnrollmentManagementStoreTypeRequest) GetPropertiesOk() ([]map[string]interface{}, bool) { + if o == nil || isNil(o.Properties) { + return nil, false + } + return o.Properties, true +} + +// HasProperties returns a boolean if a field has been set. +func (o *KeyfactorApiModelsEnrollmentManagementStoreTypeRequest) HasProperties() bool { + if o != nil && !isNil(o.Properties) { + return true + } + + return false +} + +// SetProperties gets a reference to the given []map[string]interface{} and assigns it to the Properties field. +func (o *KeyfactorApiModelsEnrollmentManagementStoreTypeRequest) SetProperties(v []map[string]interface{}) { + o.Properties = v +} + +func (o KeyfactorApiModelsEnrollmentManagementStoreTypeRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsEnrollmentManagementStoreTypeRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.StoreTypeId) { + toSerialize["StoreTypeId"] = o.StoreTypeId + } + if !isNil(o.Alias) { + toSerialize["Alias"] = o.Alias + } + if !isNil(o.Overwrite) { + toSerialize["Overwrite"] = o.Overwrite + } + if !isNil(o.Properties) { + toSerialize["Properties"] = o.Properties + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsEnrollmentManagementStoreTypeRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsEnrollmentManagementStoreTypeRequest := _KeyfactorApiModelsEnrollmentManagementStoreTypeRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsEnrollmentManagementStoreTypeRequest); err == nil { + *o = KeyfactorApiModelsEnrollmentManagementStoreTypeRequest(varKeyfactorApiModelsEnrollmentManagementStoreTypeRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "StoreTypeId") + delete(additionalProperties, "Alias") + delete(additionalProperties, "Overwrite") + delete(additionalProperties, "Properties") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsEnrollmentManagementStoreTypeRequest struct { + value *KeyfactorApiModelsEnrollmentManagementStoreTypeRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsEnrollmentManagementStoreTypeRequest) Get() *KeyfactorApiModelsEnrollmentManagementStoreTypeRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsEnrollmentManagementStoreTypeRequest) Set(val *KeyfactorApiModelsEnrollmentManagementStoreTypeRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsEnrollmentManagementStoreTypeRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsEnrollmentManagementStoreTypeRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsEnrollmentManagementStoreTypeRequest(val *KeyfactorApiModelsEnrollmentManagementStoreTypeRequest) *NullableKeyfactorApiModelsEnrollmentManagementStoreTypeRequest { + return &NullableKeyfactorApiModelsEnrollmentManagementStoreTypeRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsEnrollmentManagementStoreTypeRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsEnrollmentManagementStoreTypeRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_event_handler_event_handler_parameter_request.go b/v1/api/keyfactor/model_keyfactor_api_models_event_handler_event_handler_parameter_request.go new file mode 100644 index 0000000..7fe7180 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_event_handler_event_handler_parameter_request.go @@ -0,0 +1,205 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsEventHandlerEventHandlerParameterRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsEventHandlerEventHandlerParameterRequest{} + +// KeyfactorApiModelsEventHandlerEventHandlerParameterRequest struct for KeyfactorApiModelsEventHandlerEventHandlerParameterRequest +type KeyfactorApiModelsEventHandlerEventHandlerParameterRequest struct { + Key string `json:"Key"` + DefaultValue string `json:"DefaultValue"` + ParameterType string `json:"ParameterType"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsEventHandlerEventHandlerParameterRequest KeyfactorApiModelsEventHandlerEventHandlerParameterRequest + +// NewKeyfactorApiModelsEventHandlerEventHandlerParameterRequest instantiates a new KeyfactorApiModelsEventHandlerEventHandlerParameterRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsEventHandlerEventHandlerParameterRequest(key string, defaultValue string, parameterType string) *KeyfactorApiModelsEventHandlerEventHandlerParameterRequest { + this := KeyfactorApiModelsEventHandlerEventHandlerParameterRequest{} + this.Key = key + this.DefaultValue = defaultValue + this.ParameterType = parameterType + return &this +} + +// NewKeyfactorApiModelsEventHandlerEventHandlerParameterRequestWithDefaults instantiates a new KeyfactorApiModelsEventHandlerEventHandlerParameterRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsEventHandlerEventHandlerParameterRequestWithDefaults() *KeyfactorApiModelsEventHandlerEventHandlerParameterRequest { + this := KeyfactorApiModelsEventHandlerEventHandlerParameterRequest{} + return &this +} + +// GetKey returns the Key field value +func (o *KeyfactorApiModelsEventHandlerEventHandlerParameterRequest) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsEventHandlerEventHandlerParameterRequest) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *KeyfactorApiModelsEventHandlerEventHandlerParameterRequest) SetKey(v string) { + o.Key = v +} + +// GetDefaultValue returns the DefaultValue field value +func (o *KeyfactorApiModelsEventHandlerEventHandlerParameterRequest) GetDefaultValue() string { + if o == nil { + var ret string + return ret + } + + return o.DefaultValue +} + +// GetDefaultValueOk returns a tuple with the DefaultValue field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsEventHandlerEventHandlerParameterRequest) GetDefaultValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DefaultValue, true +} + +// SetDefaultValue sets field value +func (o *KeyfactorApiModelsEventHandlerEventHandlerParameterRequest) SetDefaultValue(v string) { + o.DefaultValue = v +} + +// GetParameterType returns the ParameterType field value +func (o *KeyfactorApiModelsEventHandlerEventHandlerParameterRequest) GetParameterType() string { + if o == nil { + var ret string + return ret + } + + return o.ParameterType +} + +// GetParameterTypeOk returns a tuple with the ParameterType field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsEventHandlerEventHandlerParameterRequest) GetParameterTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ParameterType, true +} + +// SetParameterType sets field value +func (o *KeyfactorApiModelsEventHandlerEventHandlerParameterRequest) SetParameterType(v string) { + o.ParameterType = v +} + +func (o KeyfactorApiModelsEventHandlerEventHandlerParameterRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsEventHandlerEventHandlerParameterRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Key"] = o.Key + toSerialize["DefaultValue"] = o.DefaultValue + toSerialize["ParameterType"] = o.ParameterType + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsEventHandlerEventHandlerParameterRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsEventHandlerEventHandlerParameterRequest := _KeyfactorApiModelsEventHandlerEventHandlerParameterRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsEventHandlerEventHandlerParameterRequest); err == nil { + *o = KeyfactorApiModelsEventHandlerEventHandlerParameterRequest(varKeyfactorApiModelsEventHandlerEventHandlerParameterRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Key") + delete(additionalProperties, "DefaultValue") + delete(additionalProperties, "ParameterType") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsEventHandlerEventHandlerParameterRequest struct { + value *KeyfactorApiModelsEventHandlerEventHandlerParameterRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsEventHandlerEventHandlerParameterRequest) Get() *KeyfactorApiModelsEventHandlerEventHandlerParameterRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsEventHandlerEventHandlerParameterRequest) Set(val *KeyfactorApiModelsEventHandlerEventHandlerParameterRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsEventHandlerEventHandlerParameterRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsEventHandlerEventHandlerParameterRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsEventHandlerEventHandlerParameterRequest(val *KeyfactorApiModelsEventHandlerEventHandlerParameterRequest) *NullableKeyfactorApiModelsEventHandlerEventHandlerParameterRequest { + return &NullableKeyfactorApiModelsEventHandlerEventHandlerParameterRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsEventHandlerEventHandlerParameterRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsEventHandlerEventHandlerParameterRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_event_handler_event_handler_parameter_response.go b/v1/api/keyfactor/model_keyfactor_api_models_event_handler_event_handler_parameter_response.go new file mode 100644 index 0000000..3645b44 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_event_handler_event_handler_parameter_response.go @@ -0,0 +1,269 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsEventHandlerEventHandlerParameterResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsEventHandlerEventHandlerParameterResponse{} + +// KeyfactorApiModelsEventHandlerEventHandlerParameterResponse struct for KeyfactorApiModelsEventHandlerEventHandlerParameterResponse +type KeyfactorApiModelsEventHandlerEventHandlerParameterResponse struct { + Id *int32 `json:"Id,omitempty"` + Key *string `json:"Key,omitempty"` + DefaultValue *string `json:"DefaultValue,omitempty"` + ParameterType *string `json:"ParameterType,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsEventHandlerEventHandlerParameterResponse KeyfactorApiModelsEventHandlerEventHandlerParameterResponse + +// NewKeyfactorApiModelsEventHandlerEventHandlerParameterResponse instantiates a new KeyfactorApiModelsEventHandlerEventHandlerParameterResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsEventHandlerEventHandlerParameterResponse() *KeyfactorApiModelsEventHandlerEventHandlerParameterResponse { + this := KeyfactorApiModelsEventHandlerEventHandlerParameterResponse{} + return &this +} + +// NewKeyfactorApiModelsEventHandlerEventHandlerParameterResponseWithDefaults instantiates a new KeyfactorApiModelsEventHandlerEventHandlerParameterResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsEventHandlerEventHandlerParameterResponseWithDefaults() *KeyfactorApiModelsEventHandlerEventHandlerParameterResponse { + this := KeyfactorApiModelsEventHandlerEventHandlerParameterResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *KeyfactorApiModelsEventHandlerEventHandlerParameterResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsEventHandlerEventHandlerParameterResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsEventHandlerEventHandlerParameterResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *KeyfactorApiModelsEventHandlerEventHandlerParameterResponse) SetId(v int32) { + o.Id = &v +} + +// GetKey returns the Key field value if set, zero value otherwise. +func (o *KeyfactorApiModelsEventHandlerEventHandlerParameterResponse) GetKey() string { + if o == nil || isNil(o.Key) { + var ret string + return ret + } + return *o.Key +} + +// GetKeyOk returns a tuple with the Key field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsEventHandlerEventHandlerParameterResponse) GetKeyOk() (*string, bool) { + if o == nil || isNil(o.Key) { + return nil, false + } + return o.Key, true +} + +// HasKey returns a boolean if a field has been set. +func (o *KeyfactorApiModelsEventHandlerEventHandlerParameterResponse) HasKey() bool { + if o != nil && !isNil(o.Key) { + return true + } + + return false +} + +// SetKey gets a reference to the given string and assigns it to the Key field. +func (o *KeyfactorApiModelsEventHandlerEventHandlerParameterResponse) SetKey(v string) { + o.Key = &v +} + +// GetDefaultValue returns the DefaultValue field value if set, zero value otherwise. +func (o *KeyfactorApiModelsEventHandlerEventHandlerParameterResponse) GetDefaultValue() string { + if o == nil || isNil(o.DefaultValue) { + var ret string + return ret + } + return *o.DefaultValue +} + +// GetDefaultValueOk returns a tuple with the DefaultValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsEventHandlerEventHandlerParameterResponse) GetDefaultValueOk() (*string, bool) { + if o == nil || isNil(o.DefaultValue) { + return nil, false + } + return o.DefaultValue, true +} + +// HasDefaultValue returns a boolean if a field has been set. +func (o *KeyfactorApiModelsEventHandlerEventHandlerParameterResponse) HasDefaultValue() bool { + if o != nil && !isNil(o.DefaultValue) { + return true + } + + return false +} + +// SetDefaultValue gets a reference to the given string and assigns it to the DefaultValue field. +func (o *KeyfactorApiModelsEventHandlerEventHandlerParameterResponse) SetDefaultValue(v string) { + o.DefaultValue = &v +} + +// GetParameterType returns the ParameterType field value if set, zero value otherwise. +func (o *KeyfactorApiModelsEventHandlerEventHandlerParameterResponse) GetParameterType() string { + if o == nil || isNil(o.ParameterType) { + var ret string + return ret + } + return *o.ParameterType +} + +// GetParameterTypeOk returns a tuple with the ParameterType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsEventHandlerEventHandlerParameterResponse) GetParameterTypeOk() (*string, bool) { + if o == nil || isNil(o.ParameterType) { + return nil, false + } + return o.ParameterType, true +} + +// HasParameterType returns a boolean if a field has been set. +func (o *KeyfactorApiModelsEventHandlerEventHandlerParameterResponse) HasParameterType() bool { + if o != nil && !isNil(o.ParameterType) { + return true + } + + return false +} + +// SetParameterType gets a reference to the given string and assigns it to the ParameterType field. +func (o *KeyfactorApiModelsEventHandlerEventHandlerParameterResponse) SetParameterType(v string) { + o.ParameterType = &v +} + +func (o KeyfactorApiModelsEventHandlerEventHandlerParameterResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsEventHandlerEventHandlerParameterResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.Key) { + toSerialize["Key"] = o.Key + } + if !isNil(o.DefaultValue) { + toSerialize["DefaultValue"] = o.DefaultValue + } + if !isNil(o.ParameterType) { + toSerialize["ParameterType"] = o.ParameterType + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsEventHandlerEventHandlerParameterResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsEventHandlerEventHandlerParameterResponse := _KeyfactorApiModelsEventHandlerEventHandlerParameterResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsEventHandlerEventHandlerParameterResponse); err == nil { + *o = KeyfactorApiModelsEventHandlerEventHandlerParameterResponse(varKeyfactorApiModelsEventHandlerEventHandlerParameterResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "Key") + delete(additionalProperties, "DefaultValue") + delete(additionalProperties, "ParameterType") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsEventHandlerEventHandlerParameterResponse struct { + value *KeyfactorApiModelsEventHandlerEventHandlerParameterResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsEventHandlerEventHandlerParameterResponse) Get() *KeyfactorApiModelsEventHandlerEventHandlerParameterResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsEventHandlerEventHandlerParameterResponse) Set(val *KeyfactorApiModelsEventHandlerEventHandlerParameterResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsEventHandlerEventHandlerParameterResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsEventHandlerEventHandlerParameterResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsEventHandlerEventHandlerParameterResponse(val *KeyfactorApiModelsEventHandlerEventHandlerParameterResponse) *NullableKeyfactorApiModelsEventHandlerEventHandlerParameterResponse { + return &NullableKeyfactorApiModelsEventHandlerEventHandlerParameterResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsEventHandlerEventHandlerParameterResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsEventHandlerEventHandlerParameterResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_event_handler_registered_event_handler_request.go b/v1/api/keyfactor/model_keyfactor_api_models_event_handler_registered_event_handler_request.go new file mode 100644 index 0000000..87c2b1c --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_event_handler_registered_event_handler_request.go @@ -0,0 +1,177 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest{} + +// KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest struct for KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest +type KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest struct { + Id int32 `json:"Id"` + UseHandler bool `json:"UseHandler"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest + +// NewKeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest instantiates a new KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest(id int32, useHandler bool) *KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest { + this := KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest{} + this.Id = id + this.UseHandler = useHandler + return &this +} + +// NewKeyfactorApiModelsEventHandlerRegisteredEventHandlerRequestWithDefaults instantiates a new KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsEventHandlerRegisteredEventHandlerRequestWithDefaults() *KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest { + this := KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest{} + return &this +} + +// GetId returns the Id field value +func (o *KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest) SetId(v int32) { + o.Id = v +} + +// GetUseHandler returns the UseHandler field value +func (o *KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest) GetUseHandler() bool { + if o == nil { + var ret bool + return ret + } + + return o.UseHandler +} + +// GetUseHandlerOk returns a tuple with the UseHandler field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest) GetUseHandlerOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.UseHandler, true +} + +// SetUseHandler sets field value +func (o *KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest) SetUseHandler(v bool) { + o.UseHandler = v +} + +func (o KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Id"] = o.Id + toSerialize["UseHandler"] = o.UseHandler + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest := _KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest); err == nil { + *o = KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest(varKeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "UseHandler") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest struct { + value *KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest) Get() *KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest) Set(val *KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest(val *KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest) *NullableKeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest { + return &NullableKeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_event_handler_registered_event_handler_response.go b/v1/api/keyfactor/model_keyfactor_api_models_event_handler_registered_event_handler_response.go new file mode 100644 index 0000000..47f4faa --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_event_handler_registered_event_handler_response.go @@ -0,0 +1,232 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse{} + +// KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse struct for KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse +type KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse struct { + Id *int32 `json:"Id,omitempty"` + DisplayName *string `json:"DisplayName,omitempty"` + UseHandler *bool `json:"UseHandler,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse + +// NewKeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse instantiates a new KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse() *KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse { + this := KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse{} + return &this +} + +// NewKeyfactorApiModelsEventHandlerRegisteredEventHandlerResponseWithDefaults instantiates a new KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsEventHandlerRegisteredEventHandlerResponseWithDefaults() *KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse { + this := KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse) SetId(v int32) { + o.Id = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse) GetDisplayName() string { + if o == nil || isNil(o.DisplayName) { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse) GetDisplayNameOk() (*string, bool) { + if o == nil || isNil(o.DisplayName) { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse) HasDisplayName() bool { + if o != nil && !isNil(o.DisplayName) { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetUseHandler returns the UseHandler field value if set, zero value otherwise. +func (o *KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse) GetUseHandler() bool { + if o == nil || isNil(o.UseHandler) { + var ret bool + return ret + } + return *o.UseHandler +} + +// GetUseHandlerOk returns a tuple with the UseHandler field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse) GetUseHandlerOk() (*bool, bool) { + if o == nil || isNil(o.UseHandler) { + return nil, false + } + return o.UseHandler, true +} + +// HasUseHandler returns a boolean if a field has been set. +func (o *KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse) HasUseHandler() bool { + if o != nil && !isNil(o.UseHandler) { + return true + } + + return false +} + +// SetUseHandler gets a reference to the given bool and assigns it to the UseHandler field. +func (o *KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse) SetUseHandler(v bool) { + o.UseHandler = &v +} + +func (o KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.DisplayName) { + toSerialize["DisplayName"] = o.DisplayName + } + if !isNil(o.UseHandler) { + toSerialize["UseHandler"] = o.UseHandler + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse := _KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse); err == nil { + *o = KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse(varKeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "DisplayName") + delete(additionalProperties, "UseHandler") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse struct { + value *KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse) Get() *KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse) Set(val *KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse(val *KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse) *NullableKeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse { + return &NullableKeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_license_license_response.go b/v1/api/keyfactor/model_keyfactor_api_models_license_license_response.go new file mode 100644 index 0000000..7e0fc82 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_license_license_response.go @@ -0,0 +1,193 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsLicenseLicenseResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsLicenseLicenseResponse{} + +// KeyfactorApiModelsLicenseLicenseResponse struct for KeyfactorApiModelsLicenseLicenseResponse +type KeyfactorApiModelsLicenseLicenseResponse struct { + KeyfactorVersion *string `json:"KeyfactorVersion,omitempty"` + LicenseData *KeyfactorApiModelsLicenseLicenseResponseLicense `json:"LicenseData,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsLicenseLicenseResponse KeyfactorApiModelsLicenseLicenseResponse + +// NewKeyfactorApiModelsLicenseLicenseResponse instantiates a new KeyfactorApiModelsLicenseLicenseResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsLicenseLicenseResponse() *KeyfactorApiModelsLicenseLicenseResponse { + this := KeyfactorApiModelsLicenseLicenseResponse{} + return &this +} + +// NewKeyfactorApiModelsLicenseLicenseResponseWithDefaults instantiates a new KeyfactorApiModelsLicenseLicenseResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsLicenseLicenseResponseWithDefaults() *KeyfactorApiModelsLicenseLicenseResponse { + this := KeyfactorApiModelsLicenseLicenseResponse{} + return &this +} + +// GetKeyfactorVersion returns the KeyfactorVersion field value if set, zero value otherwise. +func (o *KeyfactorApiModelsLicenseLicenseResponse) GetKeyfactorVersion() string { + if o == nil || isNil(o.KeyfactorVersion) { + var ret string + return ret + } + return *o.KeyfactorVersion +} + +// GetKeyfactorVersionOk returns a tuple with the KeyfactorVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsLicenseLicenseResponse) GetKeyfactorVersionOk() (*string, bool) { + if o == nil || isNil(o.KeyfactorVersion) { + return nil, false + } + return o.KeyfactorVersion, true +} + +// HasKeyfactorVersion returns a boolean if a field has been set. +func (o *KeyfactorApiModelsLicenseLicenseResponse) HasKeyfactorVersion() bool { + if o != nil && !isNil(o.KeyfactorVersion) { + return true + } + + return false +} + +// SetKeyfactorVersion gets a reference to the given string and assigns it to the KeyfactorVersion field. +func (o *KeyfactorApiModelsLicenseLicenseResponse) SetKeyfactorVersion(v string) { + o.KeyfactorVersion = &v +} + +// GetLicenseData returns the LicenseData field value if set, zero value otherwise. +func (o *KeyfactorApiModelsLicenseLicenseResponse) GetLicenseData() KeyfactorApiModelsLicenseLicenseResponseLicense { + if o == nil || isNil(o.LicenseData) { + var ret KeyfactorApiModelsLicenseLicenseResponseLicense + return ret + } + return *o.LicenseData +} + +// GetLicenseDataOk returns a tuple with the LicenseData field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsLicenseLicenseResponse) GetLicenseDataOk() (*KeyfactorApiModelsLicenseLicenseResponseLicense, bool) { + if o == nil || isNil(o.LicenseData) { + return nil, false + } + return o.LicenseData, true +} + +// HasLicenseData returns a boolean if a field has been set. +func (o *KeyfactorApiModelsLicenseLicenseResponse) HasLicenseData() bool { + if o != nil && !isNil(o.LicenseData) { + return true + } + + return false +} + +// SetLicenseData gets a reference to the given KeyfactorApiModelsLicenseLicenseResponseLicense and assigns it to the LicenseData field. +func (o *KeyfactorApiModelsLicenseLicenseResponse) SetLicenseData(v KeyfactorApiModelsLicenseLicenseResponseLicense) { + o.LicenseData = &v +} + +func (o KeyfactorApiModelsLicenseLicenseResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsLicenseLicenseResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + // skip: KeyfactorVersion is readOnly + if !isNil(o.LicenseData) { + toSerialize["LicenseData"] = o.LicenseData + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsLicenseLicenseResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsLicenseLicenseResponse := _KeyfactorApiModelsLicenseLicenseResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsLicenseLicenseResponse); err == nil { + *o = KeyfactorApiModelsLicenseLicenseResponse(varKeyfactorApiModelsLicenseLicenseResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "KeyfactorVersion") + delete(additionalProperties, "LicenseData") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsLicenseLicenseResponse struct { + value *KeyfactorApiModelsLicenseLicenseResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsLicenseLicenseResponse) Get() *KeyfactorApiModelsLicenseLicenseResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsLicenseLicenseResponse) Set(val *KeyfactorApiModelsLicenseLicenseResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsLicenseLicenseResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsLicenseLicenseResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsLicenseLicenseResponse(val *KeyfactorApiModelsLicenseLicenseResponse) *NullableKeyfactorApiModelsLicenseLicenseResponse { + return &NullableKeyfactorApiModelsLicenseLicenseResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsLicenseLicenseResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsLicenseLicenseResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_license_license_response_license.go b/v1/api/keyfactor/model_keyfactor_api_models_license_license_response_license.go new file mode 100644 index 0000000..e78b2b8 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_license_license_response_license.go @@ -0,0 +1,307 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" + "time" +) + +// checks if the KeyfactorApiModelsLicenseLicenseResponseLicense type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsLicenseLicenseResponseLicense{} + +// KeyfactorApiModelsLicenseLicenseResponseLicense struct for KeyfactorApiModelsLicenseLicenseResponseLicense +type KeyfactorApiModelsLicenseLicenseResponseLicense struct { + LicenseId *string `json:"LicenseId,omitempty"` + Customer *KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer `json:"Customer,omitempty"` + IssuedDate *time.Time `json:"IssuedDate,omitempty"` + ExpirationDate *time.Time `json:"ExpirationDate,omitempty"` + LicensedProducts []KeyfactorApiModelsLicenseLicenseResponseLicensedProduct `json:"LicensedProducts,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsLicenseLicenseResponseLicense KeyfactorApiModelsLicenseLicenseResponseLicense + +// NewKeyfactorApiModelsLicenseLicenseResponseLicense instantiates a new KeyfactorApiModelsLicenseLicenseResponseLicense object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsLicenseLicenseResponseLicense() *KeyfactorApiModelsLicenseLicenseResponseLicense { + this := KeyfactorApiModelsLicenseLicenseResponseLicense{} + return &this +} + +// NewKeyfactorApiModelsLicenseLicenseResponseLicenseWithDefaults instantiates a new KeyfactorApiModelsLicenseLicenseResponseLicense object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsLicenseLicenseResponseLicenseWithDefaults() *KeyfactorApiModelsLicenseLicenseResponseLicense { + this := KeyfactorApiModelsLicenseLicenseResponseLicense{} + return &this +} + +// GetLicenseId returns the LicenseId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicense) GetLicenseId() string { + if o == nil || isNil(o.LicenseId) { + var ret string + return ret + } + return *o.LicenseId +} + +// GetLicenseIdOk returns a tuple with the LicenseId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicense) GetLicenseIdOk() (*string, bool) { + if o == nil || isNil(o.LicenseId) { + return nil, false + } + return o.LicenseId, true +} + +// HasLicenseId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicense) HasLicenseId() bool { + if o != nil && !isNil(o.LicenseId) { + return true + } + + return false +} + +// SetLicenseId gets a reference to the given string and assigns it to the LicenseId field. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicense) SetLicenseId(v string) { + o.LicenseId = &v +} + +// GetCustomer returns the Customer field value if set, zero value otherwise. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicense) GetCustomer() KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer { + if o == nil || isNil(o.Customer) { + var ret KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer + return ret + } + return *o.Customer +} + +// GetCustomerOk returns a tuple with the Customer field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicense) GetCustomerOk() (*KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer, bool) { + if o == nil || isNil(o.Customer) { + return nil, false + } + return o.Customer, true +} + +// HasCustomer returns a boolean if a field has been set. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicense) HasCustomer() bool { + if o != nil && !isNil(o.Customer) { + return true + } + + return false +} + +// SetCustomer gets a reference to the given KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer and assigns it to the Customer field. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicense) SetCustomer(v KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer) { + o.Customer = &v +} + +// GetIssuedDate returns the IssuedDate field value if set, zero value otherwise. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicense) GetIssuedDate() time.Time { + if o == nil || isNil(o.IssuedDate) { + var ret time.Time + return ret + } + return *o.IssuedDate +} + +// GetIssuedDateOk returns a tuple with the IssuedDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicense) GetIssuedDateOk() (*time.Time, bool) { + if o == nil || isNil(o.IssuedDate) { + return nil, false + } + return o.IssuedDate, true +} + +// HasIssuedDate returns a boolean if a field has been set. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicense) HasIssuedDate() bool { + if o != nil && !isNil(o.IssuedDate) { + return true + } + + return false +} + +// SetIssuedDate gets a reference to the given time.Time and assigns it to the IssuedDate field. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicense) SetIssuedDate(v time.Time) { + o.IssuedDate = &v +} + +// GetExpirationDate returns the ExpirationDate field value if set, zero value otherwise. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicense) GetExpirationDate() time.Time { + if o == nil || isNil(o.ExpirationDate) { + var ret time.Time + return ret + } + return *o.ExpirationDate +} + +// GetExpirationDateOk returns a tuple with the ExpirationDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicense) GetExpirationDateOk() (*time.Time, bool) { + if o == nil || isNil(o.ExpirationDate) { + return nil, false + } + return o.ExpirationDate, true +} + +// HasExpirationDate returns a boolean if a field has been set. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicense) HasExpirationDate() bool { + if o != nil && !isNil(o.ExpirationDate) { + return true + } + + return false +} + +// SetExpirationDate gets a reference to the given time.Time and assigns it to the ExpirationDate field. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicense) SetExpirationDate(v time.Time) { + o.ExpirationDate = &v +} + +// GetLicensedProducts returns the LicensedProducts field value if set, zero value otherwise. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicense) GetLicensedProducts() []KeyfactorApiModelsLicenseLicenseResponseLicensedProduct { + if o == nil || isNil(o.LicensedProducts) { + var ret []KeyfactorApiModelsLicenseLicenseResponseLicensedProduct + return ret + } + return o.LicensedProducts +} + +// GetLicensedProductsOk returns a tuple with the LicensedProducts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicense) GetLicensedProductsOk() ([]KeyfactorApiModelsLicenseLicenseResponseLicensedProduct, bool) { + if o == nil || isNil(o.LicensedProducts) { + return nil, false + } + return o.LicensedProducts, true +} + +// HasLicensedProducts returns a boolean if a field has been set. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicense) HasLicensedProducts() bool { + if o != nil && !isNil(o.LicensedProducts) { + return true + } + + return false +} + +// SetLicensedProducts gets a reference to the given []KeyfactorApiModelsLicenseLicenseResponseLicensedProduct and assigns it to the LicensedProducts field. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicense) SetLicensedProducts(v []KeyfactorApiModelsLicenseLicenseResponseLicensedProduct) { + o.LicensedProducts = v +} + +func (o KeyfactorApiModelsLicenseLicenseResponseLicense) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsLicenseLicenseResponseLicense) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.LicenseId) { + toSerialize["LicenseId"] = o.LicenseId + } + if !isNil(o.Customer) { + toSerialize["Customer"] = o.Customer + } + if !isNil(o.IssuedDate) { + toSerialize["IssuedDate"] = o.IssuedDate + } + if !isNil(o.ExpirationDate) { + toSerialize["ExpirationDate"] = o.ExpirationDate + } + if !isNil(o.LicensedProducts) { + toSerialize["LicensedProducts"] = o.LicensedProducts + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsLicenseLicenseResponseLicense) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsLicenseLicenseResponseLicense := _KeyfactorApiModelsLicenseLicenseResponseLicense{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsLicenseLicenseResponseLicense); err == nil { + *o = KeyfactorApiModelsLicenseLicenseResponseLicense(varKeyfactorApiModelsLicenseLicenseResponseLicense) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "LicenseId") + delete(additionalProperties, "Customer") + delete(additionalProperties, "IssuedDate") + delete(additionalProperties, "ExpirationDate") + delete(additionalProperties, "LicensedProducts") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsLicenseLicenseResponseLicense struct { + value *KeyfactorApiModelsLicenseLicenseResponseLicense + isSet bool +} + +func (v NullableKeyfactorApiModelsLicenseLicenseResponseLicense) Get() *KeyfactorApiModelsLicenseLicenseResponseLicense { + return v.value +} + +func (v *NullableKeyfactorApiModelsLicenseLicenseResponseLicense) Set(val *KeyfactorApiModelsLicenseLicenseResponseLicense) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsLicenseLicenseResponseLicense) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsLicenseLicenseResponseLicense) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsLicenseLicenseResponseLicense(val *KeyfactorApiModelsLicenseLicenseResponseLicense) *NullableKeyfactorApiModelsLicenseLicenseResponseLicense { + return &NullableKeyfactorApiModelsLicenseLicenseResponseLicense{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsLicenseLicenseResponseLicense) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsLicenseLicenseResponseLicense) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_license_license_response_licensed_customer.go b/v1/api/keyfactor/model_keyfactor_api_models_license_license_response_licensed_customer.go new file mode 100644 index 0000000..26f344e --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_license_license_response_licensed_customer.go @@ -0,0 +1,195 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer{} + +// KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer struct for KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer +type KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer struct { + Name *string `json:"Name,omitempty"` + Id *string `json:"Id,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer + +// NewKeyfactorApiModelsLicenseLicenseResponseLicensedCustomer instantiates a new KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsLicenseLicenseResponseLicensedCustomer() *KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer { + this := KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer{} + return &this +} + +// NewKeyfactorApiModelsLicenseLicenseResponseLicensedCustomerWithDefaults instantiates a new KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsLicenseLicenseResponseLicensedCustomerWithDefaults() *KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer { + this := KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer) GetName() string { + if o == nil || isNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer) GetNameOk() (*string, bool) { + if o == nil || isNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer) HasName() bool { + if o != nil && !isNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer) SetName(v string) { + o.Name = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer) GetId() string { + if o == nil || isNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer) GetIdOk() (*string, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer) SetId(v string) { + o.Id = &v +} + +func (o KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Name) { + toSerialize["Name"] = o.Name + } + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsLicenseLicenseResponseLicensedCustomer := _KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsLicenseLicenseResponseLicensedCustomer); err == nil { + *o = KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer(varKeyfactorApiModelsLicenseLicenseResponseLicensedCustomer) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Name") + delete(additionalProperties, "Id") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsLicenseLicenseResponseLicensedCustomer struct { + value *KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer + isSet bool +} + +func (v NullableKeyfactorApiModelsLicenseLicenseResponseLicensedCustomer) Get() *KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer { + return v.value +} + +func (v *NullableKeyfactorApiModelsLicenseLicenseResponseLicensedCustomer) Set(val *KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsLicenseLicenseResponseLicensedCustomer) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsLicenseLicenseResponseLicensedCustomer) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsLicenseLicenseResponseLicensedCustomer(val *KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer) *NullableKeyfactorApiModelsLicenseLicenseResponseLicensedCustomer { + return &NullableKeyfactorApiModelsLicenseLicenseResponseLicensedCustomer{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsLicenseLicenseResponseLicensedCustomer) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsLicenseLicenseResponseLicensedCustomer) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_license_license_response_licensed_feature.go b/v1/api/keyfactor/model_keyfactor_api_models_license_license_response_licensed_feature.go new file mode 100644 index 0000000..db1a6e2 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_license_license_response_licensed_feature.go @@ -0,0 +1,307 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" + "time" +) + +// checks if the KeyfactorApiModelsLicenseLicenseResponseLicensedFeature type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsLicenseLicenseResponseLicensedFeature{} + +// KeyfactorApiModelsLicenseLicenseResponseLicensedFeature struct for KeyfactorApiModelsLicenseLicenseResponseLicensedFeature +type KeyfactorApiModelsLicenseLicenseResponseLicensedFeature struct { + FeatureID *string `json:"FeatureID,omitempty"` + DisplayName *string `json:"DisplayName,omitempty"` + Enabled *bool `json:"Enabled,omitempty"` + Quantity *int32 `json:"Quantity,omitempty"` + ExpirationDate *time.Time `json:"ExpirationDate,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsLicenseLicenseResponseLicensedFeature KeyfactorApiModelsLicenseLicenseResponseLicensedFeature + +// NewKeyfactorApiModelsLicenseLicenseResponseLicensedFeature instantiates a new KeyfactorApiModelsLicenseLicenseResponseLicensedFeature object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsLicenseLicenseResponseLicensedFeature() *KeyfactorApiModelsLicenseLicenseResponseLicensedFeature { + this := KeyfactorApiModelsLicenseLicenseResponseLicensedFeature{} + return &this +} + +// NewKeyfactorApiModelsLicenseLicenseResponseLicensedFeatureWithDefaults instantiates a new KeyfactorApiModelsLicenseLicenseResponseLicensedFeature object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsLicenseLicenseResponseLicensedFeatureWithDefaults() *KeyfactorApiModelsLicenseLicenseResponseLicensedFeature { + this := KeyfactorApiModelsLicenseLicenseResponseLicensedFeature{} + return &this +} + +// GetFeatureID returns the FeatureID field value if set, zero value otherwise. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedFeature) GetFeatureID() string { + if o == nil || isNil(o.FeatureID) { + var ret string + return ret + } + return *o.FeatureID +} + +// GetFeatureIDOk returns a tuple with the FeatureID field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedFeature) GetFeatureIDOk() (*string, bool) { + if o == nil || isNil(o.FeatureID) { + return nil, false + } + return o.FeatureID, true +} + +// HasFeatureID returns a boolean if a field has been set. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedFeature) HasFeatureID() bool { + if o != nil && !isNil(o.FeatureID) { + return true + } + + return false +} + +// SetFeatureID gets a reference to the given string and assigns it to the FeatureID field. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedFeature) SetFeatureID(v string) { + o.FeatureID = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedFeature) GetDisplayName() string { + if o == nil || isNil(o.DisplayName) { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedFeature) GetDisplayNameOk() (*string, bool) { + if o == nil || isNil(o.DisplayName) { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedFeature) HasDisplayName() bool { + if o != nil && !isNil(o.DisplayName) { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedFeature) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedFeature) GetEnabled() bool { + if o == nil || isNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedFeature) GetEnabledOk() (*bool, bool) { + if o == nil || isNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedFeature) HasEnabled() bool { + if o != nil && !isNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedFeature) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetQuantity returns the Quantity field value if set, zero value otherwise. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedFeature) GetQuantity() int32 { + if o == nil || isNil(o.Quantity) { + var ret int32 + return ret + } + return *o.Quantity +} + +// GetQuantityOk returns a tuple with the Quantity field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedFeature) GetQuantityOk() (*int32, bool) { + if o == nil || isNil(o.Quantity) { + return nil, false + } + return o.Quantity, true +} + +// HasQuantity returns a boolean if a field has been set. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedFeature) HasQuantity() bool { + if o != nil && !isNil(o.Quantity) { + return true + } + + return false +} + +// SetQuantity gets a reference to the given int32 and assigns it to the Quantity field. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedFeature) SetQuantity(v int32) { + o.Quantity = &v +} + +// GetExpirationDate returns the ExpirationDate field value if set, zero value otherwise. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedFeature) GetExpirationDate() time.Time { + if o == nil || isNil(o.ExpirationDate) { + var ret time.Time + return ret + } + return *o.ExpirationDate +} + +// GetExpirationDateOk returns a tuple with the ExpirationDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedFeature) GetExpirationDateOk() (*time.Time, bool) { + if o == nil || isNil(o.ExpirationDate) { + return nil, false + } + return o.ExpirationDate, true +} + +// HasExpirationDate returns a boolean if a field has been set. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedFeature) HasExpirationDate() bool { + if o != nil && !isNil(o.ExpirationDate) { + return true + } + + return false +} + +// SetExpirationDate gets a reference to the given time.Time and assigns it to the ExpirationDate field. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedFeature) SetExpirationDate(v time.Time) { + o.ExpirationDate = &v +} + +func (o KeyfactorApiModelsLicenseLicenseResponseLicensedFeature) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsLicenseLicenseResponseLicensedFeature) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.FeatureID) { + toSerialize["FeatureID"] = o.FeatureID + } + if !isNil(o.DisplayName) { + toSerialize["DisplayName"] = o.DisplayName + } + if !isNil(o.Enabled) { + toSerialize["Enabled"] = o.Enabled + } + if !isNil(o.Quantity) { + toSerialize["Quantity"] = o.Quantity + } + if !isNil(o.ExpirationDate) { + toSerialize["ExpirationDate"] = o.ExpirationDate + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedFeature) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsLicenseLicenseResponseLicensedFeature := _KeyfactorApiModelsLicenseLicenseResponseLicensedFeature{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsLicenseLicenseResponseLicensedFeature); err == nil { + *o = KeyfactorApiModelsLicenseLicenseResponseLicensedFeature(varKeyfactorApiModelsLicenseLicenseResponseLicensedFeature) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "FeatureID") + delete(additionalProperties, "DisplayName") + delete(additionalProperties, "Enabled") + delete(additionalProperties, "Quantity") + delete(additionalProperties, "ExpirationDate") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsLicenseLicenseResponseLicensedFeature struct { + value *KeyfactorApiModelsLicenseLicenseResponseLicensedFeature + isSet bool +} + +func (v NullableKeyfactorApiModelsLicenseLicenseResponseLicensedFeature) Get() *KeyfactorApiModelsLicenseLicenseResponseLicensedFeature { + return v.value +} + +func (v *NullableKeyfactorApiModelsLicenseLicenseResponseLicensedFeature) Set(val *KeyfactorApiModelsLicenseLicenseResponseLicensedFeature) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsLicenseLicenseResponseLicensedFeature) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsLicenseLicenseResponseLicensedFeature) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsLicenseLicenseResponseLicensedFeature(val *KeyfactorApiModelsLicenseLicenseResponseLicensedFeature) *NullableKeyfactorApiModelsLicenseLicenseResponseLicensedFeature { + return &NullableKeyfactorApiModelsLicenseLicenseResponseLicensedFeature{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsLicenseLicenseResponseLicensedFeature) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsLicenseLicenseResponseLicensedFeature) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_license_license_response_licensed_product.go b/v1/api/keyfactor/model_keyfactor_api_models_license_license_response_licensed_product.go new file mode 100644 index 0000000..a3ef908 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_license_license_response_licensed_product.go @@ -0,0 +1,306 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsLicenseLicenseResponseLicensedProduct type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsLicenseLicenseResponseLicensedProduct{} + +// KeyfactorApiModelsLicenseLicenseResponseLicensedProduct struct for KeyfactorApiModelsLicenseLicenseResponseLicensedProduct +type KeyfactorApiModelsLicenseLicenseResponseLicensedProduct struct { + ProductId *string `json:"ProductId,omitempty"` + DisplayName *string `json:"DisplayName,omitempty"` + MajorRev *string `json:"MajorRev,omitempty"` + MinorRev *string `json:"MinorRev,omitempty"` + LicensedFeatures []KeyfactorApiModelsLicenseLicenseResponseLicensedFeature `json:"LicensedFeatures,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsLicenseLicenseResponseLicensedProduct KeyfactorApiModelsLicenseLicenseResponseLicensedProduct + +// NewKeyfactorApiModelsLicenseLicenseResponseLicensedProduct instantiates a new KeyfactorApiModelsLicenseLicenseResponseLicensedProduct object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsLicenseLicenseResponseLicensedProduct() *KeyfactorApiModelsLicenseLicenseResponseLicensedProduct { + this := KeyfactorApiModelsLicenseLicenseResponseLicensedProduct{} + return &this +} + +// NewKeyfactorApiModelsLicenseLicenseResponseLicensedProductWithDefaults instantiates a new KeyfactorApiModelsLicenseLicenseResponseLicensedProduct object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsLicenseLicenseResponseLicensedProductWithDefaults() *KeyfactorApiModelsLicenseLicenseResponseLicensedProduct { + this := KeyfactorApiModelsLicenseLicenseResponseLicensedProduct{} + return &this +} + +// GetProductId returns the ProductId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedProduct) GetProductId() string { + if o == nil || isNil(o.ProductId) { + var ret string + return ret + } + return *o.ProductId +} + +// GetProductIdOk returns a tuple with the ProductId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedProduct) GetProductIdOk() (*string, bool) { + if o == nil || isNil(o.ProductId) { + return nil, false + } + return o.ProductId, true +} + +// HasProductId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedProduct) HasProductId() bool { + if o != nil && !isNil(o.ProductId) { + return true + } + + return false +} + +// SetProductId gets a reference to the given string and assigns it to the ProductId field. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedProduct) SetProductId(v string) { + o.ProductId = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedProduct) GetDisplayName() string { + if o == nil || isNil(o.DisplayName) { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedProduct) GetDisplayNameOk() (*string, bool) { + if o == nil || isNil(o.DisplayName) { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedProduct) HasDisplayName() bool { + if o != nil && !isNil(o.DisplayName) { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedProduct) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetMajorRev returns the MajorRev field value if set, zero value otherwise. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedProduct) GetMajorRev() string { + if o == nil || isNil(o.MajorRev) { + var ret string + return ret + } + return *o.MajorRev +} + +// GetMajorRevOk returns a tuple with the MajorRev field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedProduct) GetMajorRevOk() (*string, bool) { + if o == nil || isNil(o.MajorRev) { + return nil, false + } + return o.MajorRev, true +} + +// HasMajorRev returns a boolean if a field has been set. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedProduct) HasMajorRev() bool { + if o != nil && !isNil(o.MajorRev) { + return true + } + + return false +} + +// SetMajorRev gets a reference to the given string and assigns it to the MajorRev field. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedProduct) SetMajorRev(v string) { + o.MajorRev = &v +} + +// GetMinorRev returns the MinorRev field value if set, zero value otherwise. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedProduct) GetMinorRev() string { + if o == nil || isNil(o.MinorRev) { + var ret string + return ret + } + return *o.MinorRev +} + +// GetMinorRevOk returns a tuple with the MinorRev field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedProduct) GetMinorRevOk() (*string, bool) { + if o == nil || isNil(o.MinorRev) { + return nil, false + } + return o.MinorRev, true +} + +// HasMinorRev returns a boolean if a field has been set. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedProduct) HasMinorRev() bool { + if o != nil && !isNil(o.MinorRev) { + return true + } + + return false +} + +// SetMinorRev gets a reference to the given string and assigns it to the MinorRev field. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedProduct) SetMinorRev(v string) { + o.MinorRev = &v +} + +// GetLicensedFeatures returns the LicensedFeatures field value if set, zero value otherwise. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedProduct) GetLicensedFeatures() []KeyfactorApiModelsLicenseLicenseResponseLicensedFeature { + if o == nil || isNil(o.LicensedFeatures) { + var ret []KeyfactorApiModelsLicenseLicenseResponseLicensedFeature + return ret + } + return o.LicensedFeatures +} + +// GetLicensedFeaturesOk returns a tuple with the LicensedFeatures field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedProduct) GetLicensedFeaturesOk() ([]KeyfactorApiModelsLicenseLicenseResponseLicensedFeature, bool) { + if o == nil || isNil(o.LicensedFeatures) { + return nil, false + } + return o.LicensedFeatures, true +} + +// HasLicensedFeatures returns a boolean if a field has been set. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedProduct) HasLicensedFeatures() bool { + if o != nil && !isNil(o.LicensedFeatures) { + return true + } + + return false +} + +// SetLicensedFeatures gets a reference to the given []KeyfactorApiModelsLicenseLicenseResponseLicensedFeature and assigns it to the LicensedFeatures field. +func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedProduct) SetLicensedFeatures(v []KeyfactorApiModelsLicenseLicenseResponseLicensedFeature) { + o.LicensedFeatures = v +} + +func (o KeyfactorApiModelsLicenseLicenseResponseLicensedProduct) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsLicenseLicenseResponseLicensedProduct) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.ProductId) { + toSerialize["ProductId"] = o.ProductId + } + if !isNil(o.DisplayName) { + toSerialize["DisplayName"] = o.DisplayName + } + if !isNil(o.MajorRev) { + toSerialize["MajorRev"] = o.MajorRev + } + if !isNil(o.MinorRev) { + toSerialize["MinorRev"] = o.MinorRev + } + if !isNil(o.LicensedFeatures) { + toSerialize["LicensedFeatures"] = o.LicensedFeatures + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedProduct) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsLicenseLicenseResponseLicensedProduct := _KeyfactorApiModelsLicenseLicenseResponseLicensedProduct{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsLicenseLicenseResponseLicensedProduct); err == nil { + *o = KeyfactorApiModelsLicenseLicenseResponseLicensedProduct(varKeyfactorApiModelsLicenseLicenseResponseLicensedProduct) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "ProductId") + delete(additionalProperties, "DisplayName") + delete(additionalProperties, "MajorRev") + delete(additionalProperties, "MinorRev") + delete(additionalProperties, "LicensedFeatures") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsLicenseLicenseResponseLicensedProduct struct { + value *KeyfactorApiModelsLicenseLicenseResponseLicensedProduct + isSet bool +} + +func (v NullableKeyfactorApiModelsLicenseLicenseResponseLicensedProduct) Get() *KeyfactorApiModelsLicenseLicenseResponseLicensedProduct { + return v.value +} + +func (v *NullableKeyfactorApiModelsLicenseLicenseResponseLicensedProduct) Set(val *KeyfactorApiModelsLicenseLicenseResponseLicensedProduct) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsLicenseLicenseResponseLicensedProduct) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsLicenseLicenseResponseLicensedProduct) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsLicenseLicenseResponseLicensedProduct(val *KeyfactorApiModelsLicenseLicenseResponseLicensedProduct) *NullableKeyfactorApiModelsLicenseLicenseResponseLicensedProduct { + return &NullableKeyfactorApiModelsLicenseLicenseResponseLicensedProduct{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsLicenseLicenseResponseLicensedProduct) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsLicenseLicenseResponseLicensedProduct) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_mac_enrollment_mac_enrollment_api_model.go b/v1/api/keyfactor/model_keyfactor_api_models_mac_enrollment_mac_enrollment_api_model.go new file mode 100644 index 0000000..01c67e7 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_mac_enrollment_mac_enrollment_api_model.go @@ -0,0 +1,343 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel{} + +// KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel struct for KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel +type KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel struct { + Id *int32 `json:"Id,omitempty"` + Enabled *bool `json:"Enabled,omitempty"` + Interval *int32 `json:"Interval,omitempty"` + UseMetadata *bool `json:"UseMetadata,omitempty"` + MetadataField *string `json:"MetadataField,omitempty"` + MetadataValue *string `json:"MetadataValue,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel + +// NewKeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel instantiates a new KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel() *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel { + this := KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel{} + return &this +} + +// NewKeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModelWithDefaults instantiates a new KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModelWithDefaults() *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel { + this := KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) SetId(v int32) { + o.Id = &v +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) GetEnabled() bool { + if o == nil || isNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) GetEnabledOk() (*bool, bool) { + if o == nil || isNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) HasEnabled() bool { + if o != nil && !isNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetInterval returns the Interval field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) GetInterval() int32 { + if o == nil || isNil(o.Interval) { + var ret int32 + return ret + } + return *o.Interval +} + +// GetIntervalOk returns a tuple with the Interval field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) GetIntervalOk() (*int32, bool) { + if o == nil || isNil(o.Interval) { + return nil, false + } + return o.Interval, true +} + +// HasInterval returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) HasInterval() bool { + if o != nil && !isNil(o.Interval) { + return true + } + + return false +} + +// SetInterval gets a reference to the given int32 and assigns it to the Interval field. +func (o *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) SetInterval(v int32) { + o.Interval = &v +} + +// GetUseMetadata returns the UseMetadata field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) GetUseMetadata() bool { + if o == nil || isNil(o.UseMetadata) { + var ret bool + return ret + } + return *o.UseMetadata +} + +// GetUseMetadataOk returns a tuple with the UseMetadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) GetUseMetadataOk() (*bool, bool) { + if o == nil || isNil(o.UseMetadata) { + return nil, false + } + return o.UseMetadata, true +} + +// HasUseMetadata returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) HasUseMetadata() bool { + if o != nil && !isNil(o.UseMetadata) { + return true + } + + return false +} + +// SetUseMetadata gets a reference to the given bool and assigns it to the UseMetadata field. +func (o *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) SetUseMetadata(v bool) { + o.UseMetadata = &v +} + +// GetMetadataField returns the MetadataField field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) GetMetadataField() string { + if o == nil || isNil(o.MetadataField) { + var ret string + return ret + } + return *o.MetadataField +} + +// GetMetadataFieldOk returns a tuple with the MetadataField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) GetMetadataFieldOk() (*string, bool) { + if o == nil || isNil(o.MetadataField) { + return nil, false + } + return o.MetadataField, true +} + +// HasMetadataField returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) HasMetadataField() bool { + if o != nil && !isNil(o.MetadataField) { + return true + } + + return false +} + +// SetMetadataField gets a reference to the given string and assigns it to the MetadataField field. +func (o *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) SetMetadataField(v string) { + o.MetadataField = &v +} + +// GetMetadataValue returns the MetadataValue field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) GetMetadataValue() string { + if o == nil || isNil(o.MetadataValue) { + var ret string + return ret + } + return *o.MetadataValue +} + +// GetMetadataValueOk returns a tuple with the MetadataValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) GetMetadataValueOk() (*string, bool) { + if o == nil || isNil(o.MetadataValue) { + return nil, false + } + return o.MetadataValue, true +} + +// HasMetadataValue returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) HasMetadataValue() bool { + if o != nil && !isNil(o.MetadataValue) { + return true + } + + return false +} + +// SetMetadataValue gets a reference to the given string and assigns it to the MetadataValue field. +func (o *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) SetMetadataValue(v string) { + o.MetadataValue = &v +} + +func (o KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.Enabled) { + toSerialize["Enabled"] = o.Enabled + } + if !isNil(o.Interval) { + toSerialize["Interval"] = o.Interval + } + if !isNil(o.UseMetadata) { + toSerialize["UseMetadata"] = o.UseMetadata + } + if !isNil(o.MetadataField) { + toSerialize["MetadataField"] = o.MetadataField + } + if !isNil(o.MetadataValue) { + toSerialize["MetadataValue"] = o.MetadataValue + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel := _KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel); err == nil { + *o = KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel(varKeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "Enabled") + delete(additionalProperties, "Interval") + delete(additionalProperties, "UseMetadata") + delete(additionalProperties, "MetadataField") + delete(additionalProperties, "MetadataValue") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel struct { + value *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel + isSet bool +} + +func (v NullableKeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) Get() *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel { + return v.value +} + +func (v *NullableKeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) Set(val *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel(val *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) *NullableKeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel { + return &NullableKeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_metadata_field_metadata_field_create_request.go b/v1/api/keyfactor/model_keyfactor_api_models_metadata_field_metadata_field_create_request.go new file mode 100644 index 0000000..cac95b1 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_metadata_field_metadata_field_create_request.go @@ -0,0 +1,464 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest{} + +// KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest struct for KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest +type KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest struct { + Name string `json:"Name"` + Description string `json:"Description"` + DataType int32 `json:"DataType"` + Hint *string `json:"Hint,omitempty"` + Validation *string `json:"Validation,omitempty"` + Enrollment *int32 `json:"Enrollment,omitempty"` + Message *string `json:"Message,omitempty"` + Options *string `json:"Options,omitempty"` + DefaultValue *string `json:"DefaultValue,omitempty"` + DisplayOrder *int32 `json:"DisplayOrder,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest + +// NewKeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest instantiates a new KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest(name string, description string, dataType int32) *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest { + this := KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest{} + this.Name = name + this.Description = description + this.DataType = dataType + return &this +} + +// NewKeyfactorApiModelsMetadataFieldMetadataFieldCreateRequestWithDefaults instantiates a new KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsMetadataFieldMetadataFieldCreateRequestWithDefaults() *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest { + this := KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest{} + return &this +} + +// GetName returns the Name field value +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) GetDescription() string { + if o == nil { + var ret string + return ret + } + + return o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Description, true +} + +// SetDescription sets field value +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) SetDescription(v string) { + o.Description = v +} + +// GetDataType returns the DataType field value +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) GetDataType() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.DataType +} + +// GetDataTypeOk returns a tuple with the DataType field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) GetDataTypeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.DataType, true +} + +// SetDataType sets field value +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) SetDataType(v int32) { + o.DataType = v +} + +// GetHint returns the Hint field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) GetHint() string { + if o == nil || isNil(o.Hint) { + var ret string + return ret + } + return *o.Hint +} + +// GetHintOk returns a tuple with the Hint field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) GetHintOk() (*string, bool) { + if o == nil || isNil(o.Hint) { + return nil, false + } + return o.Hint, true +} + +// HasHint returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) HasHint() bool { + if o != nil && !isNil(o.Hint) { + return true + } + + return false +} + +// SetHint gets a reference to the given string and assigns it to the Hint field. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) SetHint(v string) { + o.Hint = &v +} + +// GetValidation returns the Validation field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) GetValidation() string { + if o == nil || isNil(o.Validation) { + var ret string + return ret + } + return *o.Validation +} + +// GetValidationOk returns a tuple with the Validation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) GetValidationOk() (*string, bool) { + if o == nil || isNil(o.Validation) { + return nil, false + } + return o.Validation, true +} + +// HasValidation returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) HasValidation() bool { + if o != nil && !isNil(o.Validation) { + return true + } + + return false +} + +// SetValidation gets a reference to the given string and assigns it to the Validation field. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) SetValidation(v string) { + o.Validation = &v +} + +// GetEnrollment returns the Enrollment field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) GetEnrollment() int32 { + if o == nil || isNil(o.Enrollment) { + var ret int32 + return ret + } + return *o.Enrollment +} + +// GetEnrollmentOk returns a tuple with the Enrollment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) GetEnrollmentOk() (*int32, bool) { + if o == nil || isNil(o.Enrollment) { + return nil, false + } + return o.Enrollment, true +} + +// HasEnrollment returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) HasEnrollment() bool { + if o != nil && !isNil(o.Enrollment) { + return true + } + + return false +} + +// SetEnrollment gets a reference to the given int32 and assigns it to the Enrollment field. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) SetEnrollment(v int32) { + o.Enrollment = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) GetMessage() string { + if o == nil || isNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) GetMessageOk() (*string, bool) { + if o == nil || isNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) HasMessage() bool { + if o != nil && !isNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) SetMessage(v string) { + o.Message = &v +} + +// GetOptions returns the Options field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) GetOptions() string { + if o == nil || isNil(o.Options) { + var ret string + return ret + } + return *o.Options +} + +// GetOptionsOk returns a tuple with the Options field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) GetOptionsOk() (*string, bool) { + if o == nil || isNil(o.Options) { + return nil, false + } + return o.Options, true +} + +// HasOptions returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) HasOptions() bool { + if o != nil && !isNil(o.Options) { + return true + } + + return false +} + +// SetOptions gets a reference to the given string and assigns it to the Options field. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) SetOptions(v string) { + o.Options = &v +} + +// GetDefaultValue returns the DefaultValue field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) GetDefaultValue() string { + if o == nil || isNil(o.DefaultValue) { + var ret string + return ret + } + return *o.DefaultValue +} + +// GetDefaultValueOk returns a tuple with the DefaultValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) GetDefaultValueOk() (*string, bool) { + if o == nil || isNil(o.DefaultValue) { + return nil, false + } + return o.DefaultValue, true +} + +// HasDefaultValue returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) HasDefaultValue() bool { + if o != nil && !isNil(o.DefaultValue) { + return true + } + + return false +} + +// SetDefaultValue gets a reference to the given string and assigns it to the DefaultValue field. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) SetDefaultValue(v string) { + o.DefaultValue = &v +} + +// GetDisplayOrder returns the DisplayOrder field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) GetDisplayOrder() int32 { + if o == nil || isNil(o.DisplayOrder) { + var ret int32 + return ret + } + return *o.DisplayOrder +} + +// GetDisplayOrderOk returns a tuple with the DisplayOrder field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) GetDisplayOrderOk() (*int32, bool) { + if o == nil || isNil(o.DisplayOrder) { + return nil, false + } + return o.DisplayOrder, true +} + +// HasDisplayOrder returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) HasDisplayOrder() bool { + if o != nil && !isNil(o.DisplayOrder) { + return true + } + + return false +} + +// SetDisplayOrder gets a reference to the given int32 and assigns it to the DisplayOrder field. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) SetDisplayOrder(v int32) { + o.DisplayOrder = &v +} + +func (o KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Name"] = o.Name + toSerialize["Description"] = o.Description + toSerialize["DataType"] = o.DataType + if !isNil(o.Hint) { + toSerialize["Hint"] = o.Hint + } + if !isNil(o.Validation) { + toSerialize["Validation"] = o.Validation + } + if !isNil(o.Enrollment) { + toSerialize["Enrollment"] = o.Enrollment + } + if !isNil(o.Message) { + toSerialize["Message"] = o.Message + } + if !isNil(o.Options) { + toSerialize["Options"] = o.Options + } + if !isNil(o.DefaultValue) { + toSerialize["DefaultValue"] = o.DefaultValue + } + if !isNil(o.DisplayOrder) { + toSerialize["DisplayOrder"] = o.DisplayOrder + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest := _KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest); err == nil { + *o = KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest(varKeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Name") + delete(additionalProperties, "Description") + delete(additionalProperties, "DataType") + delete(additionalProperties, "Hint") + delete(additionalProperties, "Validation") + delete(additionalProperties, "Enrollment") + delete(additionalProperties, "Message") + delete(additionalProperties, "Options") + delete(additionalProperties, "DefaultValue") + delete(additionalProperties, "DisplayOrder") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest struct { + value *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) Get() *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) Set(val *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest(val *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) *NullableKeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest { + return &NullableKeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_metadata_field_metadata_field_response.go b/v1/api/keyfactor/model_keyfactor_api_models_metadata_field_metadata_field_response.go new file mode 100644 index 0000000..14e0efb --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_metadata_field_metadata_field_response.go @@ -0,0 +1,528 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsMetadataFieldMetadataFieldResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsMetadataFieldMetadataFieldResponse{} + +// KeyfactorApiModelsMetadataFieldMetadataFieldResponse struct for KeyfactorApiModelsMetadataFieldMetadataFieldResponse +type KeyfactorApiModelsMetadataFieldMetadataFieldResponse struct { + Id *int32 `json:"Id,omitempty"` + Name *string `json:"Name,omitempty"` + Description *string `json:"Description,omitempty"` + DataType *int32 `json:"DataType,omitempty"` + Hint *string `json:"Hint,omitempty"` + Validation *string `json:"Validation,omitempty"` + Enrollment *int32 `json:"Enrollment,omitempty"` + Message *string `json:"Message,omitempty"` + Options *string `json:"Options,omitempty"` + DefaultValue *string `json:"DefaultValue,omitempty"` + DisplayOrder *int32 `json:"DisplayOrder,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsMetadataFieldMetadataFieldResponse KeyfactorApiModelsMetadataFieldMetadataFieldResponse + +// NewKeyfactorApiModelsMetadataFieldMetadataFieldResponse instantiates a new KeyfactorApiModelsMetadataFieldMetadataFieldResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsMetadataFieldMetadataFieldResponse() *KeyfactorApiModelsMetadataFieldMetadataFieldResponse { + this := KeyfactorApiModelsMetadataFieldMetadataFieldResponse{} + return &this +} + +// NewKeyfactorApiModelsMetadataFieldMetadataFieldResponseWithDefaults instantiates a new KeyfactorApiModelsMetadataFieldMetadataFieldResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsMetadataFieldMetadataFieldResponseWithDefaults() *KeyfactorApiModelsMetadataFieldMetadataFieldResponse { + this := KeyfactorApiModelsMetadataFieldMetadataFieldResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) SetId(v int32) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) GetName() string { + if o == nil || isNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) GetNameOk() (*string, bool) { + if o == nil || isNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) HasName() bool { + if o != nil && !isNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) SetName(v string) { + o.Name = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) GetDescription() string { + if o == nil || isNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) GetDescriptionOk() (*string, bool) { + if o == nil || isNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) HasDescription() bool { + if o != nil && !isNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) SetDescription(v string) { + o.Description = &v +} + +// GetDataType returns the DataType field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) GetDataType() int32 { + if o == nil || isNil(o.DataType) { + var ret int32 + return ret + } + return *o.DataType +} + +// GetDataTypeOk returns a tuple with the DataType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) GetDataTypeOk() (*int32, bool) { + if o == nil || isNil(o.DataType) { + return nil, false + } + return o.DataType, true +} + +// HasDataType returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) HasDataType() bool { + if o != nil && !isNil(o.DataType) { + return true + } + + return false +} + +// SetDataType gets a reference to the given int32 and assigns it to the DataType field. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) SetDataType(v int32) { + o.DataType = &v +} + +// GetHint returns the Hint field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) GetHint() string { + if o == nil || isNil(o.Hint) { + var ret string + return ret + } + return *o.Hint +} + +// GetHintOk returns a tuple with the Hint field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) GetHintOk() (*string, bool) { + if o == nil || isNil(o.Hint) { + return nil, false + } + return o.Hint, true +} + +// HasHint returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) HasHint() bool { + if o != nil && !isNil(o.Hint) { + return true + } + + return false +} + +// SetHint gets a reference to the given string and assigns it to the Hint field. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) SetHint(v string) { + o.Hint = &v +} + +// GetValidation returns the Validation field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) GetValidation() string { + if o == nil || isNil(o.Validation) { + var ret string + return ret + } + return *o.Validation +} + +// GetValidationOk returns a tuple with the Validation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) GetValidationOk() (*string, bool) { + if o == nil || isNil(o.Validation) { + return nil, false + } + return o.Validation, true +} + +// HasValidation returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) HasValidation() bool { + if o != nil && !isNil(o.Validation) { + return true + } + + return false +} + +// SetValidation gets a reference to the given string and assigns it to the Validation field. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) SetValidation(v string) { + o.Validation = &v +} + +// GetEnrollment returns the Enrollment field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) GetEnrollment() int32 { + if o == nil || isNil(o.Enrollment) { + var ret int32 + return ret + } + return *o.Enrollment +} + +// GetEnrollmentOk returns a tuple with the Enrollment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) GetEnrollmentOk() (*int32, bool) { + if o == nil || isNil(o.Enrollment) { + return nil, false + } + return o.Enrollment, true +} + +// HasEnrollment returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) HasEnrollment() bool { + if o != nil && !isNil(o.Enrollment) { + return true + } + + return false +} + +// SetEnrollment gets a reference to the given int32 and assigns it to the Enrollment field. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) SetEnrollment(v int32) { + o.Enrollment = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) GetMessage() string { + if o == nil || isNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) GetMessageOk() (*string, bool) { + if o == nil || isNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) HasMessage() bool { + if o != nil && !isNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) SetMessage(v string) { + o.Message = &v +} + +// GetOptions returns the Options field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) GetOptions() string { + if o == nil || isNil(o.Options) { + var ret string + return ret + } + return *o.Options +} + +// GetOptionsOk returns a tuple with the Options field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) GetOptionsOk() (*string, bool) { + if o == nil || isNil(o.Options) { + return nil, false + } + return o.Options, true +} + +// HasOptions returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) HasOptions() bool { + if o != nil && !isNil(o.Options) { + return true + } + + return false +} + +// SetOptions gets a reference to the given string and assigns it to the Options field. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) SetOptions(v string) { + o.Options = &v +} + +// GetDefaultValue returns the DefaultValue field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) GetDefaultValue() string { + if o == nil || isNil(o.DefaultValue) { + var ret string + return ret + } + return *o.DefaultValue +} + +// GetDefaultValueOk returns a tuple with the DefaultValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) GetDefaultValueOk() (*string, bool) { + if o == nil || isNil(o.DefaultValue) { + return nil, false + } + return o.DefaultValue, true +} + +// HasDefaultValue returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) HasDefaultValue() bool { + if o != nil && !isNil(o.DefaultValue) { + return true + } + + return false +} + +// SetDefaultValue gets a reference to the given string and assigns it to the DefaultValue field. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) SetDefaultValue(v string) { + o.DefaultValue = &v +} + +// GetDisplayOrder returns the DisplayOrder field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) GetDisplayOrder() int32 { + if o == nil || isNil(o.DisplayOrder) { + var ret int32 + return ret + } + return *o.DisplayOrder +} + +// GetDisplayOrderOk returns a tuple with the DisplayOrder field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) GetDisplayOrderOk() (*int32, bool) { + if o == nil || isNil(o.DisplayOrder) { + return nil, false + } + return o.DisplayOrder, true +} + +// HasDisplayOrder returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) HasDisplayOrder() bool { + if o != nil && !isNil(o.DisplayOrder) { + return true + } + + return false +} + +// SetDisplayOrder gets a reference to the given int32 and assigns it to the DisplayOrder field. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) SetDisplayOrder(v int32) { + o.DisplayOrder = &v +} + +func (o KeyfactorApiModelsMetadataFieldMetadataFieldResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsMetadataFieldMetadataFieldResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.Name) { + toSerialize["Name"] = o.Name + } + if !isNil(o.Description) { + toSerialize["Description"] = o.Description + } + if !isNil(o.DataType) { + toSerialize["DataType"] = o.DataType + } + if !isNil(o.Hint) { + toSerialize["Hint"] = o.Hint + } + if !isNil(o.Validation) { + toSerialize["Validation"] = o.Validation + } + if !isNil(o.Enrollment) { + toSerialize["Enrollment"] = o.Enrollment + } + if !isNil(o.Message) { + toSerialize["Message"] = o.Message + } + if !isNil(o.Options) { + toSerialize["Options"] = o.Options + } + if !isNil(o.DefaultValue) { + toSerialize["DefaultValue"] = o.DefaultValue + } + if !isNil(o.DisplayOrder) { + toSerialize["DisplayOrder"] = o.DisplayOrder + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsMetadataFieldMetadataFieldResponse := _KeyfactorApiModelsMetadataFieldMetadataFieldResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsMetadataFieldMetadataFieldResponse); err == nil { + *o = KeyfactorApiModelsMetadataFieldMetadataFieldResponse(varKeyfactorApiModelsMetadataFieldMetadataFieldResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "Name") + delete(additionalProperties, "Description") + delete(additionalProperties, "DataType") + delete(additionalProperties, "Hint") + delete(additionalProperties, "Validation") + delete(additionalProperties, "Enrollment") + delete(additionalProperties, "Message") + delete(additionalProperties, "Options") + delete(additionalProperties, "DefaultValue") + delete(additionalProperties, "DisplayOrder") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsMetadataFieldMetadataFieldResponse struct { + value *KeyfactorApiModelsMetadataFieldMetadataFieldResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsMetadataFieldMetadataFieldResponse) Get() *KeyfactorApiModelsMetadataFieldMetadataFieldResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsMetadataFieldMetadataFieldResponse) Set(val *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsMetadataFieldMetadataFieldResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsMetadataFieldMetadataFieldResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsMetadataFieldMetadataFieldResponse(val *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) *NullableKeyfactorApiModelsMetadataFieldMetadataFieldResponse { + return &NullableKeyfactorApiModelsMetadataFieldMetadataFieldResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsMetadataFieldMetadataFieldResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsMetadataFieldMetadataFieldResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_metadata_field_metadata_field_update_request.go b/v1/api/keyfactor/model_keyfactor_api_models_metadata_field_metadata_field_update_request.go new file mode 100644 index 0000000..a038e4c --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_metadata_field_metadata_field_update_request.go @@ -0,0 +1,492 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest{} + +// KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest struct for KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest +type KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest struct { + Id int32 `json:"Id"` + Name string `json:"Name"` + Description string `json:"Description"` + DataType int32 `json:"DataType"` + Hint *string `json:"Hint,omitempty"` + Validation *string `json:"Validation,omitempty"` + Enrollment *int32 `json:"Enrollment,omitempty"` + Message *string `json:"Message,omitempty"` + Options *string `json:"Options,omitempty"` + DefaultValue *string `json:"DefaultValue,omitempty"` + DisplayOrder *int32 `json:"DisplayOrder,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest + +// NewKeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest instantiates a new KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest(id int32, name string, description string, dataType int32) *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest { + this := KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest{} + this.Id = id + this.Name = name + this.Description = description + this.DataType = dataType + return &this +} + +// NewKeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequestWithDefaults instantiates a new KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequestWithDefaults() *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest { + this := KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest{} + return &this +} + +// GetId returns the Id field value +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) SetId(v int32) { + o.Id = v +} + +// GetName returns the Name field value +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) GetDescription() string { + if o == nil { + var ret string + return ret + } + + return o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Description, true +} + +// SetDescription sets field value +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) SetDescription(v string) { + o.Description = v +} + +// GetDataType returns the DataType field value +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) GetDataType() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.DataType +} + +// GetDataTypeOk returns a tuple with the DataType field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) GetDataTypeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.DataType, true +} + +// SetDataType sets field value +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) SetDataType(v int32) { + o.DataType = v +} + +// GetHint returns the Hint field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) GetHint() string { + if o == nil || isNil(o.Hint) { + var ret string + return ret + } + return *o.Hint +} + +// GetHintOk returns a tuple with the Hint field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) GetHintOk() (*string, bool) { + if o == nil || isNil(o.Hint) { + return nil, false + } + return o.Hint, true +} + +// HasHint returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) HasHint() bool { + if o != nil && !isNil(o.Hint) { + return true + } + + return false +} + +// SetHint gets a reference to the given string and assigns it to the Hint field. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) SetHint(v string) { + o.Hint = &v +} + +// GetValidation returns the Validation field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) GetValidation() string { + if o == nil || isNil(o.Validation) { + var ret string + return ret + } + return *o.Validation +} + +// GetValidationOk returns a tuple with the Validation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) GetValidationOk() (*string, bool) { + if o == nil || isNil(o.Validation) { + return nil, false + } + return o.Validation, true +} + +// HasValidation returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) HasValidation() bool { + if o != nil && !isNil(o.Validation) { + return true + } + + return false +} + +// SetValidation gets a reference to the given string and assigns it to the Validation field. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) SetValidation(v string) { + o.Validation = &v +} + +// GetEnrollment returns the Enrollment field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) GetEnrollment() int32 { + if o == nil || isNil(o.Enrollment) { + var ret int32 + return ret + } + return *o.Enrollment +} + +// GetEnrollmentOk returns a tuple with the Enrollment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) GetEnrollmentOk() (*int32, bool) { + if o == nil || isNil(o.Enrollment) { + return nil, false + } + return o.Enrollment, true +} + +// HasEnrollment returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) HasEnrollment() bool { + if o != nil && !isNil(o.Enrollment) { + return true + } + + return false +} + +// SetEnrollment gets a reference to the given int32 and assigns it to the Enrollment field. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) SetEnrollment(v int32) { + o.Enrollment = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) GetMessage() string { + if o == nil || isNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) GetMessageOk() (*string, bool) { + if o == nil || isNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) HasMessage() bool { + if o != nil && !isNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) SetMessage(v string) { + o.Message = &v +} + +// GetOptions returns the Options field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) GetOptions() string { + if o == nil || isNil(o.Options) { + var ret string + return ret + } + return *o.Options +} + +// GetOptionsOk returns a tuple with the Options field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) GetOptionsOk() (*string, bool) { + if o == nil || isNil(o.Options) { + return nil, false + } + return o.Options, true +} + +// HasOptions returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) HasOptions() bool { + if o != nil && !isNil(o.Options) { + return true + } + + return false +} + +// SetOptions gets a reference to the given string and assigns it to the Options field. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) SetOptions(v string) { + o.Options = &v +} + +// GetDefaultValue returns the DefaultValue field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) GetDefaultValue() string { + if o == nil || isNil(o.DefaultValue) { + var ret string + return ret + } + return *o.DefaultValue +} + +// GetDefaultValueOk returns a tuple with the DefaultValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) GetDefaultValueOk() (*string, bool) { + if o == nil || isNil(o.DefaultValue) { + return nil, false + } + return o.DefaultValue, true +} + +// HasDefaultValue returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) HasDefaultValue() bool { + if o != nil && !isNil(o.DefaultValue) { + return true + } + + return false +} + +// SetDefaultValue gets a reference to the given string and assigns it to the DefaultValue field. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) SetDefaultValue(v string) { + o.DefaultValue = &v +} + +// GetDisplayOrder returns the DisplayOrder field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) GetDisplayOrder() int32 { + if o == nil || isNil(o.DisplayOrder) { + var ret int32 + return ret + } + return *o.DisplayOrder +} + +// GetDisplayOrderOk returns a tuple with the DisplayOrder field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) GetDisplayOrderOk() (*int32, bool) { + if o == nil || isNil(o.DisplayOrder) { + return nil, false + } + return o.DisplayOrder, true +} + +// HasDisplayOrder returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) HasDisplayOrder() bool { + if o != nil && !isNil(o.DisplayOrder) { + return true + } + + return false +} + +// SetDisplayOrder gets a reference to the given int32 and assigns it to the DisplayOrder field. +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) SetDisplayOrder(v int32) { + o.DisplayOrder = &v +} + +func (o KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Id"] = o.Id + toSerialize["Name"] = o.Name + toSerialize["Description"] = o.Description + toSerialize["DataType"] = o.DataType + if !isNil(o.Hint) { + toSerialize["Hint"] = o.Hint + } + if !isNil(o.Validation) { + toSerialize["Validation"] = o.Validation + } + if !isNil(o.Enrollment) { + toSerialize["Enrollment"] = o.Enrollment + } + if !isNil(o.Message) { + toSerialize["Message"] = o.Message + } + if !isNil(o.Options) { + toSerialize["Options"] = o.Options + } + if !isNil(o.DefaultValue) { + toSerialize["DefaultValue"] = o.DefaultValue + } + if !isNil(o.DisplayOrder) { + toSerialize["DisplayOrder"] = o.DisplayOrder + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest := _KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest); err == nil { + *o = KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest(varKeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "Name") + delete(additionalProperties, "Description") + delete(additionalProperties, "DataType") + delete(additionalProperties, "Hint") + delete(additionalProperties, "Validation") + delete(additionalProperties, "Enrollment") + delete(additionalProperties, "Message") + delete(additionalProperties, "Options") + delete(additionalProperties, "DefaultValue") + delete(additionalProperties, "DisplayOrder") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest struct { + value *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) Get() *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) Set(val *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest(val *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) *NullableKeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest { + return &NullableKeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_monitoring_dashboard_request.go b/v1/api/keyfactor/model_keyfactor_api_models_monitoring_dashboard_request.go new file mode 100644 index 0000000..6b27d1f --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_monitoring_dashboard_request.go @@ -0,0 +1,186 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsMonitoringDashboardRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsMonitoringDashboardRequest{} + +// KeyfactorApiModelsMonitoringDashboardRequest struct for KeyfactorApiModelsMonitoringDashboardRequest +type KeyfactorApiModelsMonitoringDashboardRequest struct { + Show bool `json:"Show"` + WarningHours *int32 `json:"WarningHours,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsMonitoringDashboardRequest KeyfactorApiModelsMonitoringDashboardRequest + +// NewKeyfactorApiModelsMonitoringDashboardRequest instantiates a new KeyfactorApiModelsMonitoringDashboardRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsMonitoringDashboardRequest(show bool) *KeyfactorApiModelsMonitoringDashboardRequest { + this := KeyfactorApiModelsMonitoringDashboardRequest{} + this.Show = show + return &this +} + +// NewKeyfactorApiModelsMonitoringDashboardRequestWithDefaults instantiates a new KeyfactorApiModelsMonitoringDashboardRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsMonitoringDashboardRequestWithDefaults() *KeyfactorApiModelsMonitoringDashboardRequest { + this := KeyfactorApiModelsMonitoringDashboardRequest{} + return &this +} + +// GetShow returns the Show field value +func (o *KeyfactorApiModelsMonitoringDashboardRequest) GetShow() bool { + if o == nil { + var ret bool + return ret + } + + return o.Show +} + +// GetShowOk returns a tuple with the Show field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMonitoringDashboardRequest) GetShowOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Show, true +} + +// SetShow sets field value +func (o *KeyfactorApiModelsMonitoringDashboardRequest) SetShow(v bool) { + o.Show = v +} + +// GetWarningHours returns the WarningHours field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMonitoringDashboardRequest) GetWarningHours() int32 { + if o == nil || isNil(o.WarningHours) { + var ret int32 + return ret + } + return *o.WarningHours +} + +// GetWarningHoursOk returns a tuple with the WarningHours field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMonitoringDashboardRequest) GetWarningHoursOk() (*int32, bool) { + if o == nil || isNil(o.WarningHours) { + return nil, false + } + return o.WarningHours, true +} + +// HasWarningHours returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMonitoringDashboardRequest) HasWarningHours() bool { + if o != nil && !isNil(o.WarningHours) { + return true + } + + return false +} + +// SetWarningHours gets a reference to the given int32 and assigns it to the WarningHours field. +func (o *KeyfactorApiModelsMonitoringDashboardRequest) SetWarningHours(v int32) { + o.WarningHours = &v +} + +func (o KeyfactorApiModelsMonitoringDashboardRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsMonitoringDashboardRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Show"] = o.Show + if !isNil(o.WarningHours) { + toSerialize["WarningHours"] = o.WarningHours + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsMonitoringDashboardRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsMonitoringDashboardRequest := _KeyfactorApiModelsMonitoringDashboardRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsMonitoringDashboardRequest); err == nil { + *o = KeyfactorApiModelsMonitoringDashboardRequest(varKeyfactorApiModelsMonitoringDashboardRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Show") + delete(additionalProperties, "WarningHours") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsMonitoringDashboardRequest struct { + value *KeyfactorApiModelsMonitoringDashboardRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsMonitoringDashboardRequest) Get() *KeyfactorApiModelsMonitoringDashboardRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsMonitoringDashboardRequest) Set(val *KeyfactorApiModelsMonitoringDashboardRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsMonitoringDashboardRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsMonitoringDashboardRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsMonitoringDashboardRequest(val *KeyfactorApiModelsMonitoringDashboardRequest) *NullableKeyfactorApiModelsMonitoringDashboardRequest { + return &NullableKeyfactorApiModelsMonitoringDashboardRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsMonitoringDashboardRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsMonitoringDashboardRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_monitoring_dashboard_response.go b/v1/api/keyfactor/model_keyfactor_api_models_monitoring_dashboard_response.go new file mode 100644 index 0000000..f62ff9e --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_monitoring_dashboard_response.go @@ -0,0 +1,195 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsMonitoringDashboardResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsMonitoringDashboardResponse{} + +// KeyfactorApiModelsMonitoringDashboardResponse struct for KeyfactorApiModelsMonitoringDashboardResponse +type KeyfactorApiModelsMonitoringDashboardResponse struct { + Show *bool `json:"Show,omitempty"` + WarningHours *int32 `json:"WarningHours,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsMonitoringDashboardResponse KeyfactorApiModelsMonitoringDashboardResponse + +// NewKeyfactorApiModelsMonitoringDashboardResponse instantiates a new KeyfactorApiModelsMonitoringDashboardResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsMonitoringDashboardResponse() *KeyfactorApiModelsMonitoringDashboardResponse { + this := KeyfactorApiModelsMonitoringDashboardResponse{} + return &this +} + +// NewKeyfactorApiModelsMonitoringDashboardResponseWithDefaults instantiates a new KeyfactorApiModelsMonitoringDashboardResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsMonitoringDashboardResponseWithDefaults() *KeyfactorApiModelsMonitoringDashboardResponse { + this := KeyfactorApiModelsMonitoringDashboardResponse{} + return &this +} + +// GetShow returns the Show field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMonitoringDashboardResponse) GetShow() bool { + if o == nil || isNil(o.Show) { + var ret bool + return ret + } + return *o.Show +} + +// GetShowOk returns a tuple with the Show field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMonitoringDashboardResponse) GetShowOk() (*bool, bool) { + if o == nil || isNil(o.Show) { + return nil, false + } + return o.Show, true +} + +// HasShow returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMonitoringDashboardResponse) HasShow() bool { + if o != nil && !isNil(o.Show) { + return true + } + + return false +} + +// SetShow gets a reference to the given bool and assigns it to the Show field. +func (o *KeyfactorApiModelsMonitoringDashboardResponse) SetShow(v bool) { + o.Show = &v +} + +// GetWarningHours returns the WarningHours field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMonitoringDashboardResponse) GetWarningHours() int32 { + if o == nil || isNil(o.WarningHours) { + var ret int32 + return ret + } + return *o.WarningHours +} + +// GetWarningHoursOk returns a tuple with the WarningHours field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMonitoringDashboardResponse) GetWarningHoursOk() (*int32, bool) { + if o == nil || isNil(o.WarningHours) { + return nil, false + } + return o.WarningHours, true +} + +// HasWarningHours returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMonitoringDashboardResponse) HasWarningHours() bool { + if o != nil && !isNil(o.WarningHours) { + return true + } + + return false +} + +// SetWarningHours gets a reference to the given int32 and assigns it to the WarningHours field. +func (o *KeyfactorApiModelsMonitoringDashboardResponse) SetWarningHours(v int32) { + o.WarningHours = &v +} + +func (o KeyfactorApiModelsMonitoringDashboardResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsMonitoringDashboardResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Show) { + toSerialize["Show"] = o.Show + } + if !isNil(o.WarningHours) { + toSerialize["WarningHours"] = o.WarningHours + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsMonitoringDashboardResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsMonitoringDashboardResponse := _KeyfactorApiModelsMonitoringDashboardResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsMonitoringDashboardResponse); err == nil { + *o = KeyfactorApiModelsMonitoringDashboardResponse(varKeyfactorApiModelsMonitoringDashboardResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Show") + delete(additionalProperties, "WarningHours") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsMonitoringDashboardResponse struct { + value *KeyfactorApiModelsMonitoringDashboardResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsMonitoringDashboardResponse) Get() *KeyfactorApiModelsMonitoringDashboardResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsMonitoringDashboardResponse) Set(val *KeyfactorApiModelsMonitoringDashboardResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsMonitoringDashboardResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsMonitoringDashboardResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsMonitoringDashboardResponse(val *KeyfactorApiModelsMonitoringDashboardResponse) *NullableKeyfactorApiModelsMonitoringDashboardResponse { + return &NullableKeyfactorApiModelsMonitoringDashboardResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsMonitoringDashboardResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsMonitoringDashboardResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_monitoring_email_request.go b/v1/api/keyfactor/model_keyfactor_api_models_monitoring_email_request.go new file mode 100644 index 0000000..0329e46 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_monitoring_email_request.go @@ -0,0 +1,232 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsMonitoringEmailRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsMonitoringEmailRequest{} + +// KeyfactorApiModelsMonitoringEmailRequest struct for KeyfactorApiModelsMonitoringEmailRequest +type KeyfactorApiModelsMonitoringEmailRequest struct { + EnableReminder *bool `json:"EnableReminder,omitempty"` + WarningDays *int32 `json:"WarningDays,omitempty"` + Recipients []string `json:"Recipients,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsMonitoringEmailRequest KeyfactorApiModelsMonitoringEmailRequest + +// NewKeyfactorApiModelsMonitoringEmailRequest instantiates a new KeyfactorApiModelsMonitoringEmailRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsMonitoringEmailRequest() *KeyfactorApiModelsMonitoringEmailRequest { + this := KeyfactorApiModelsMonitoringEmailRequest{} + return &this +} + +// NewKeyfactorApiModelsMonitoringEmailRequestWithDefaults instantiates a new KeyfactorApiModelsMonitoringEmailRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsMonitoringEmailRequestWithDefaults() *KeyfactorApiModelsMonitoringEmailRequest { + this := KeyfactorApiModelsMonitoringEmailRequest{} + return &this +} + +// GetEnableReminder returns the EnableReminder field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMonitoringEmailRequest) GetEnableReminder() bool { + if o == nil || isNil(o.EnableReminder) { + var ret bool + return ret + } + return *o.EnableReminder +} + +// GetEnableReminderOk returns a tuple with the EnableReminder field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMonitoringEmailRequest) GetEnableReminderOk() (*bool, bool) { + if o == nil || isNil(o.EnableReminder) { + return nil, false + } + return o.EnableReminder, true +} + +// HasEnableReminder returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMonitoringEmailRequest) HasEnableReminder() bool { + if o != nil && !isNil(o.EnableReminder) { + return true + } + + return false +} + +// SetEnableReminder gets a reference to the given bool and assigns it to the EnableReminder field. +func (o *KeyfactorApiModelsMonitoringEmailRequest) SetEnableReminder(v bool) { + o.EnableReminder = &v +} + +// GetWarningDays returns the WarningDays field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMonitoringEmailRequest) GetWarningDays() int32 { + if o == nil || isNil(o.WarningDays) { + var ret int32 + return ret + } + return *o.WarningDays +} + +// GetWarningDaysOk returns a tuple with the WarningDays field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMonitoringEmailRequest) GetWarningDaysOk() (*int32, bool) { + if o == nil || isNil(o.WarningDays) { + return nil, false + } + return o.WarningDays, true +} + +// HasWarningDays returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMonitoringEmailRequest) HasWarningDays() bool { + if o != nil && !isNil(o.WarningDays) { + return true + } + + return false +} + +// SetWarningDays gets a reference to the given int32 and assigns it to the WarningDays field. +func (o *KeyfactorApiModelsMonitoringEmailRequest) SetWarningDays(v int32) { + o.WarningDays = &v +} + +// GetRecipients returns the Recipients field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMonitoringEmailRequest) GetRecipients() []string { + if o == nil || isNil(o.Recipients) { + var ret []string + return ret + } + return o.Recipients +} + +// GetRecipientsOk returns a tuple with the Recipients field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMonitoringEmailRequest) GetRecipientsOk() ([]string, bool) { + if o == nil || isNil(o.Recipients) { + return nil, false + } + return o.Recipients, true +} + +// HasRecipients returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMonitoringEmailRequest) HasRecipients() bool { + if o != nil && !isNil(o.Recipients) { + return true + } + + return false +} + +// SetRecipients gets a reference to the given []string and assigns it to the Recipients field. +func (o *KeyfactorApiModelsMonitoringEmailRequest) SetRecipients(v []string) { + o.Recipients = v +} + +func (o KeyfactorApiModelsMonitoringEmailRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsMonitoringEmailRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.EnableReminder) { + toSerialize["EnableReminder"] = o.EnableReminder + } + if !isNil(o.WarningDays) { + toSerialize["WarningDays"] = o.WarningDays + } + if !isNil(o.Recipients) { + toSerialize["Recipients"] = o.Recipients + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsMonitoringEmailRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsMonitoringEmailRequest := _KeyfactorApiModelsMonitoringEmailRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsMonitoringEmailRequest); err == nil { + *o = KeyfactorApiModelsMonitoringEmailRequest(varKeyfactorApiModelsMonitoringEmailRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "EnableReminder") + delete(additionalProperties, "WarningDays") + delete(additionalProperties, "Recipients") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsMonitoringEmailRequest struct { + value *KeyfactorApiModelsMonitoringEmailRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsMonitoringEmailRequest) Get() *KeyfactorApiModelsMonitoringEmailRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsMonitoringEmailRequest) Set(val *KeyfactorApiModelsMonitoringEmailRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsMonitoringEmailRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsMonitoringEmailRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsMonitoringEmailRequest(val *KeyfactorApiModelsMonitoringEmailRequest) *NullableKeyfactorApiModelsMonitoringEmailRequest { + return &NullableKeyfactorApiModelsMonitoringEmailRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsMonitoringEmailRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsMonitoringEmailRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_monitoring_email_response.go b/v1/api/keyfactor/model_keyfactor_api_models_monitoring_email_response.go new file mode 100644 index 0000000..e32ef21 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_monitoring_email_response.go @@ -0,0 +1,232 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsMonitoringEmailResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsMonitoringEmailResponse{} + +// KeyfactorApiModelsMonitoringEmailResponse struct for KeyfactorApiModelsMonitoringEmailResponse +type KeyfactorApiModelsMonitoringEmailResponse struct { + EnableReminder *bool `json:"EnableReminder,omitempty"` + WarningDays *int32 `json:"WarningDays,omitempty"` + Recipients []string `json:"Recipients,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsMonitoringEmailResponse KeyfactorApiModelsMonitoringEmailResponse + +// NewKeyfactorApiModelsMonitoringEmailResponse instantiates a new KeyfactorApiModelsMonitoringEmailResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsMonitoringEmailResponse() *KeyfactorApiModelsMonitoringEmailResponse { + this := KeyfactorApiModelsMonitoringEmailResponse{} + return &this +} + +// NewKeyfactorApiModelsMonitoringEmailResponseWithDefaults instantiates a new KeyfactorApiModelsMonitoringEmailResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsMonitoringEmailResponseWithDefaults() *KeyfactorApiModelsMonitoringEmailResponse { + this := KeyfactorApiModelsMonitoringEmailResponse{} + return &this +} + +// GetEnableReminder returns the EnableReminder field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMonitoringEmailResponse) GetEnableReminder() bool { + if o == nil || isNil(o.EnableReminder) { + var ret bool + return ret + } + return *o.EnableReminder +} + +// GetEnableReminderOk returns a tuple with the EnableReminder field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMonitoringEmailResponse) GetEnableReminderOk() (*bool, bool) { + if o == nil || isNil(o.EnableReminder) { + return nil, false + } + return o.EnableReminder, true +} + +// HasEnableReminder returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMonitoringEmailResponse) HasEnableReminder() bool { + if o != nil && !isNil(o.EnableReminder) { + return true + } + + return false +} + +// SetEnableReminder gets a reference to the given bool and assigns it to the EnableReminder field. +func (o *KeyfactorApiModelsMonitoringEmailResponse) SetEnableReminder(v bool) { + o.EnableReminder = &v +} + +// GetWarningDays returns the WarningDays field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMonitoringEmailResponse) GetWarningDays() int32 { + if o == nil || isNil(o.WarningDays) { + var ret int32 + return ret + } + return *o.WarningDays +} + +// GetWarningDaysOk returns a tuple with the WarningDays field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMonitoringEmailResponse) GetWarningDaysOk() (*int32, bool) { + if o == nil || isNil(o.WarningDays) { + return nil, false + } + return o.WarningDays, true +} + +// HasWarningDays returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMonitoringEmailResponse) HasWarningDays() bool { + if o != nil && !isNil(o.WarningDays) { + return true + } + + return false +} + +// SetWarningDays gets a reference to the given int32 and assigns it to the WarningDays field. +func (o *KeyfactorApiModelsMonitoringEmailResponse) SetWarningDays(v int32) { + o.WarningDays = &v +} + +// GetRecipients returns the Recipients field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMonitoringEmailResponse) GetRecipients() []string { + if o == nil || isNil(o.Recipients) { + var ret []string + return ret + } + return o.Recipients +} + +// GetRecipientsOk returns a tuple with the Recipients field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMonitoringEmailResponse) GetRecipientsOk() ([]string, bool) { + if o == nil || isNil(o.Recipients) { + return nil, false + } + return o.Recipients, true +} + +// HasRecipients returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMonitoringEmailResponse) HasRecipients() bool { + if o != nil && !isNil(o.Recipients) { + return true + } + + return false +} + +// SetRecipients gets a reference to the given []string and assigns it to the Recipients field. +func (o *KeyfactorApiModelsMonitoringEmailResponse) SetRecipients(v []string) { + o.Recipients = v +} + +func (o KeyfactorApiModelsMonitoringEmailResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsMonitoringEmailResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.EnableReminder) { + toSerialize["EnableReminder"] = o.EnableReminder + } + if !isNil(o.WarningDays) { + toSerialize["WarningDays"] = o.WarningDays + } + if !isNil(o.Recipients) { + toSerialize["Recipients"] = o.Recipients + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsMonitoringEmailResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsMonitoringEmailResponse := _KeyfactorApiModelsMonitoringEmailResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsMonitoringEmailResponse); err == nil { + *o = KeyfactorApiModelsMonitoringEmailResponse(varKeyfactorApiModelsMonitoringEmailResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "EnableReminder") + delete(additionalProperties, "WarningDays") + delete(additionalProperties, "Recipients") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsMonitoringEmailResponse struct { + value *KeyfactorApiModelsMonitoringEmailResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsMonitoringEmailResponse) Get() *KeyfactorApiModelsMonitoringEmailResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsMonitoringEmailResponse) Set(val *KeyfactorApiModelsMonitoringEmailResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsMonitoringEmailResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsMonitoringEmailResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsMonitoringEmailResponse(val *KeyfactorApiModelsMonitoringEmailResponse) *NullableKeyfactorApiModelsMonitoringEmailResponse { + return &NullableKeyfactorApiModelsMonitoringEmailResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsMonitoringEmailResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsMonitoringEmailResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_monitoring_ocsp_parameters_request.go b/v1/api/keyfactor/model_keyfactor_api_models_monitoring_ocsp_parameters_request.go new file mode 100644 index 0000000..19dcb43 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_monitoring_ocsp_parameters_request.go @@ -0,0 +1,343 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsMonitoringOCSPParametersRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsMonitoringOCSPParametersRequest{} + +// KeyfactorApiModelsMonitoringOCSPParametersRequest struct for KeyfactorApiModelsMonitoringOCSPParametersRequest +type KeyfactorApiModelsMonitoringOCSPParametersRequest struct { + CertificateContents *string `json:"CertificateContents,omitempty"` + CertificateAuthorityId *int32 `json:"CertificateAuthorityId,omitempty"` + AuthorityName *string `json:"AuthorityName,omitempty"` + AuthorityNameId *string `json:"AuthorityNameId,omitempty"` + AuthorityKeyId *string `json:"AuthorityKeyId,omitempty"` + SampleSerialNumber *string `json:"SampleSerialNumber,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsMonitoringOCSPParametersRequest KeyfactorApiModelsMonitoringOCSPParametersRequest + +// NewKeyfactorApiModelsMonitoringOCSPParametersRequest instantiates a new KeyfactorApiModelsMonitoringOCSPParametersRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsMonitoringOCSPParametersRequest() *KeyfactorApiModelsMonitoringOCSPParametersRequest { + this := KeyfactorApiModelsMonitoringOCSPParametersRequest{} + return &this +} + +// NewKeyfactorApiModelsMonitoringOCSPParametersRequestWithDefaults instantiates a new KeyfactorApiModelsMonitoringOCSPParametersRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsMonitoringOCSPParametersRequestWithDefaults() *KeyfactorApiModelsMonitoringOCSPParametersRequest { + this := KeyfactorApiModelsMonitoringOCSPParametersRequest{} + return &this +} + +// GetCertificateContents returns the CertificateContents field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMonitoringOCSPParametersRequest) GetCertificateContents() string { + if o == nil || isNil(o.CertificateContents) { + var ret string + return ret + } + return *o.CertificateContents +} + +// GetCertificateContentsOk returns a tuple with the CertificateContents field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMonitoringOCSPParametersRequest) GetCertificateContentsOk() (*string, bool) { + if o == nil || isNil(o.CertificateContents) { + return nil, false + } + return o.CertificateContents, true +} + +// HasCertificateContents returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMonitoringOCSPParametersRequest) HasCertificateContents() bool { + if o != nil && !isNil(o.CertificateContents) { + return true + } + + return false +} + +// SetCertificateContents gets a reference to the given string and assigns it to the CertificateContents field. +func (o *KeyfactorApiModelsMonitoringOCSPParametersRequest) SetCertificateContents(v string) { + o.CertificateContents = &v +} + +// GetCertificateAuthorityId returns the CertificateAuthorityId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMonitoringOCSPParametersRequest) GetCertificateAuthorityId() int32 { + if o == nil || isNil(o.CertificateAuthorityId) { + var ret int32 + return ret + } + return *o.CertificateAuthorityId +} + +// GetCertificateAuthorityIdOk returns a tuple with the CertificateAuthorityId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMonitoringOCSPParametersRequest) GetCertificateAuthorityIdOk() (*int32, bool) { + if o == nil || isNil(o.CertificateAuthorityId) { + return nil, false + } + return o.CertificateAuthorityId, true +} + +// HasCertificateAuthorityId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMonitoringOCSPParametersRequest) HasCertificateAuthorityId() bool { + if o != nil && !isNil(o.CertificateAuthorityId) { + return true + } + + return false +} + +// SetCertificateAuthorityId gets a reference to the given int32 and assigns it to the CertificateAuthorityId field. +func (o *KeyfactorApiModelsMonitoringOCSPParametersRequest) SetCertificateAuthorityId(v int32) { + o.CertificateAuthorityId = &v +} + +// GetAuthorityName returns the AuthorityName field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMonitoringOCSPParametersRequest) GetAuthorityName() string { + if o == nil || isNil(o.AuthorityName) { + var ret string + return ret + } + return *o.AuthorityName +} + +// GetAuthorityNameOk returns a tuple with the AuthorityName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMonitoringOCSPParametersRequest) GetAuthorityNameOk() (*string, bool) { + if o == nil || isNil(o.AuthorityName) { + return nil, false + } + return o.AuthorityName, true +} + +// HasAuthorityName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMonitoringOCSPParametersRequest) HasAuthorityName() bool { + if o != nil && !isNil(o.AuthorityName) { + return true + } + + return false +} + +// SetAuthorityName gets a reference to the given string and assigns it to the AuthorityName field. +func (o *KeyfactorApiModelsMonitoringOCSPParametersRequest) SetAuthorityName(v string) { + o.AuthorityName = &v +} + +// GetAuthorityNameId returns the AuthorityNameId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMonitoringOCSPParametersRequest) GetAuthorityNameId() string { + if o == nil || isNil(o.AuthorityNameId) { + var ret string + return ret + } + return *o.AuthorityNameId +} + +// GetAuthorityNameIdOk returns a tuple with the AuthorityNameId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMonitoringOCSPParametersRequest) GetAuthorityNameIdOk() (*string, bool) { + if o == nil || isNil(o.AuthorityNameId) { + return nil, false + } + return o.AuthorityNameId, true +} + +// HasAuthorityNameId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMonitoringOCSPParametersRequest) HasAuthorityNameId() bool { + if o != nil && !isNil(o.AuthorityNameId) { + return true + } + + return false +} + +// SetAuthorityNameId gets a reference to the given string and assigns it to the AuthorityNameId field. +func (o *KeyfactorApiModelsMonitoringOCSPParametersRequest) SetAuthorityNameId(v string) { + o.AuthorityNameId = &v +} + +// GetAuthorityKeyId returns the AuthorityKeyId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMonitoringOCSPParametersRequest) GetAuthorityKeyId() string { + if o == nil || isNil(o.AuthorityKeyId) { + var ret string + return ret + } + return *o.AuthorityKeyId +} + +// GetAuthorityKeyIdOk returns a tuple with the AuthorityKeyId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMonitoringOCSPParametersRequest) GetAuthorityKeyIdOk() (*string, bool) { + if o == nil || isNil(o.AuthorityKeyId) { + return nil, false + } + return o.AuthorityKeyId, true +} + +// HasAuthorityKeyId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMonitoringOCSPParametersRequest) HasAuthorityKeyId() bool { + if o != nil && !isNil(o.AuthorityKeyId) { + return true + } + + return false +} + +// SetAuthorityKeyId gets a reference to the given string and assigns it to the AuthorityKeyId field. +func (o *KeyfactorApiModelsMonitoringOCSPParametersRequest) SetAuthorityKeyId(v string) { + o.AuthorityKeyId = &v +} + +// GetSampleSerialNumber returns the SampleSerialNumber field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMonitoringOCSPParametersRequest) GetSampleSerialNumber() string { + if o == nil || isNil(o.SampleSerialNumber) { + var ret string + return ret + } + return *o.SampleSerialNumber +} + +// GetSampleSerialNumberOk returns a tuple with the SampleSerialNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMonitoringOCSPParametersRequest) GetSampleSerialNumberOk() (*string, bool) { + if o == nil || isNil(o.SampleSerialNumber) { + return nil, false + } + return o.SampleSerialNumber, true +} + +// HasSampleSerialNumber returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMonitoringOCSPParametersRequest) HasSampleSerialNumber() bool { + if o != nil && !isNil(o.SampleSerialNumber) { + return true + } + + return false +} + +// SetSampleSerialNumber gets a reference to the given string and assigns it to the SampleSerialNumber field. +func (o *KeyfactorApiModelsMonitoringOCSPParametersRequest) SetSampleSerialNumber(v string) { + o.SampleSerialNumber = &v +} + +func (o KeyfactorApiModelsMonitoringOCSPParametersRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsMonitoringOCSPParametersRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.CertificateContents) { + toSerialize["CertificateContents"] = o.CertificateContents + } + if !isNil(o.CertificateAuthorityId) { + toSerialize["CertificateAuthorityId"] = o.CertificateAuthorityId + } + if !isNil(o.AuthorityName) { + toSerialize["AuthorityName"] = o.AuthorityName + } + if !isNil(o.AuthorityNameId) { + toSerialize["AuthorityNameId"] = o.AuthorityNameId + } + if !isNil(o.AuthorityKeyId) { + toSerialize["AuthorityKeyId"] = o.AuthorityKeyId + } + if !isNil(o.SampleSerialNumber) { + toSerialize["SampleSerialNumber"] = o.SampleSerialNumber + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsMonitoringOCSPParametersRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsMonitoringOCSPParametersRequest := _KeyfactorApiModelsMonitoringOCSPParametersRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsMonitoringOCSPParametersRequest); err == nil { + *o = KeyfactorApiModelsMonitoringOCSPParametersRequest(varKeyfactorApiModelsMonitoringOCSPParametersRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "CertificateContents") + delete(additionalProperties, "CertificateAuthorityId") + delete(additionalProperties, "AuthorityName") + delete(additionalProperties, "AuthorityNameId") + delete(additionalProperties, "AuthorityKeyId") + delete(additionalProperties, "SampleSerialNumber") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsMonitoringOCSPParametersRequest struct { + value *KeyfactorApiModelsMonitoringOCSPParametersRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsMonitoringOCSPParametersRequest) Get() *KeyfactorApiModelsMonitoringOCSPParametersRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsMonitoringOCSPParametersRequest) Set(val *KeyfactorApiModelsMonitoringOCSPParametersRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsMonitoringOCSPParametersRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsMonitoringOCSPParametersRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsMonitoringOCSPParametersRequest(val *KeyfactorApiModelsMonitoringOCSPParametersRequest) *NullableKeyfactorApiModelsMonitoringOCSPParametersRequest { + return &NullableKeyfactorApiModelsMonitoringOCSPParametersRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsMonitoringOCSPParametersRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsMonitoringOCSPParametersRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_monitoring_ocsp_parameters_response.go b/v1/api/keyfactor/model_keyfactor_api_models_monitoring_ocsp_parameters_response.go new file mode 100644 index 0000000..cd7ea6a --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_monitoring_ocsp_parameters_response.go @@ -0,0 +1,306 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsMonitoringOCSPParametersResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsMonitoringOCSPParametersResponse{} + +// KeyfactorApiModelsMonitoringOCSPParametersResponse struct for KeyfactorApiModelsMonitoringOCSPParametersResponse +type KeyfactorApiModelsMonitoringOCSPParametersResponse struct { + CertificateAuthorityId *int32 `json:"CertificateAuthorityId,omitempty"` + AuthorityName *string `json:"AuthorityName,omitempty"` + AuthorityNameId *string `json:"AuthorityNameId,omitempty"` + AuthorityKeyId *string `json:"AuthorityKeyId,omitempty"` + SampleSerialNumber *string `json:"SampleSerialNumber,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsMonitoringOCSPParametersResponse KeyfactorApiModelsMonitoringOCSPParametersResponse + +// NewKeyfactorApiModelsMonitoringOCSPParametersResponse instantiates a new KeyfactorApiModelsMonitoringOCSPParametersResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsMonitoringOCSPParametersResponse() *KeyfactorApiModelsMonitoringOCSPParametersResponse { + this := KeyfactorApiModelsMonitoringOCSPParametersResponse{} + return &this +} + +// NewKeyfactorApiModelsMonitoringOCSPParametersResponseWithDefaults instantiates a new KeyfactorApiModelsMonitoringOCSPParametersResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsMonitoringOCSPParametersResponseWithDefaults() *KeyfactorApiModelsMonitoringOCSPParametersResponse { + this := KeyfactorApiModelsMonitoringOCSPParametersResponse{} + return &this +} + +// GetCertificateAuthorityId returns the CertificateAuthorityId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMonitoringOCSPParametersResponse) GetCertificateAuthorityId() int32 { + if o == nil || isNil(o.CertificateAuthorityId) { + var ret int32 + return ret + } + return *o.CertificateAuthorityId +} + +// GetCertificateAuthorityIdOk returns a tuple with the CertificateAuthorityId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMonitoringOCSPParametersResponse) GetCertificateAuthorityIdOk() (*int32, bool) { + if o == nil || isNil(o.CertificateAuthorityId) { + return nil, false + } + return o.CertificateAuthorityId, true +} + +// HasCertificateAuthorityId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMonitoringOCSPParametersResponse) HasCertificateAuthorityId() bool { + if o != nil && !isNil(o.CertificateAuthorityId) { + return true + } + + return false +} + +// SetCertificateAuthorityId gets a reference to the given int32 and assigns it to the CertificateAuthorityId field. +func (o *KeyfactorApiModelsMonitoringOCSPParametersResponse) SetCertificateAuthorityId(v int32) { + o.CertificateAuthorityId = &v +} + +// GetAuthorityName returns the AuthorityName field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMonitoringOCSPParametersResponse) GetAuthorityName() string { + if o == nil || isNil(o.AuthorityName) { + var ret string + return ret + } + return *o.AuthorityName +} + +// GetAuthorityNameOk returns a tuple with the AuthorityName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMonitoringOCSPParametersResponse) GetAuthorityNameOk() (*string, bool) { + if o == nil || isNil(o.AuthorityName) { + return nil, false + } + return o.AuthorityName, true +} + +// HasAuthorityName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMonitoringOCSPParametersResponse) HasAuthorityName() bool { + if o != nil && !isNil(o.AuthorityName) { + return true + } + + return false +} + +// SetAuthorityName gets a reference to the given string and assigns it to the AuthorityName field. +func (o *KeyfactorApiModelsMonitoringOCSPParametersResponse) SetAuthorityName(v string) { + o.AuthorityName = &v +} + +// GetAuthorityNameId returns the AuthorityNameId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMonitoringOCSPParametersResponse) GetAuthorityNameId() string { + if o == nil || isNil(o.AuthorityNameId) { + var ret string + return ret + } + return *o.AuthorityNameId +} + +// GetAuthorityNameIdOk returns a tuple with the AuthorityNameId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMonitoringOCSPParametersResponse) GetAuthorityNameIdOk() (*string, bool) { + if o == nil || isNil(o.AuthorityNameId) { + return nil, false + } + return o.AuthorityNameId, true +} + +// HasAuthorityNameId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMonitoringOCSPParametersResponse) HasAuthorityNameId() bool { + if o != nil && !isNil(o.AuthorityNameId) { + return true + } + + return false +} + +// SetAuthorityNameId gets a reference to the given string and assigns it to the AuthorityNameId field. +func (o *KeyfactorApiModelsMonitoringOCSPParametersResponse) SetAuthorityNameId(v string) { + o.AuthorityNameId = &v +} + +// GetAuthorityKeyId returns the AuthorityKeyId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMonitoringOCSPParametersResponse) GetAuthorityKeyId() string { + if o == nil || isNil(o.AuthorityKeyId) { + var ret string + return ret + } + return *o.AuthorityKeyId +} + +// GetAuthorityKeyIdOk returns a tuple with the AuthorityKeyId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMonitoringOCSPParametersResponse) GetAuthorityKeyIdOk() (*string, bool) { + if o == nil || isNil(o.AuthorityKeyId) { + return nil, false + } + return o.AuthorityKeyId, true +} + +// HasAuthorityKeyId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMonitoringOCSPParametersResponse) HasAuthorityKeyId() bool { + if o != nil && !isNil(o.AuthorityKeyId) { + return true + } + + return false +} + +// SetAuthorityKeyId gets a reference to the given string and assigns it to the AuthorityKeyId field. +func (o *KeyfactorApiModelsMonitoringOCSPParametersResponse) SetAuthorityKeyId(v string) { + o.AuthorityKeyId = &v +} + +// GetSampleSerialNumber returns the SampleSerialNumber field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMonitoringOCSPParametersResponse) GetSampleSerialNumber() string { + if o == nil || isNil(o.SampleSerialNumber) { + var ret string + return ret + } + return *o.SampleSerialNumber +} + +// GetSampleSerialNumberOk returns a tuple with the SampleSerialNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMonitoringOCSPParametersResponse) GetSampleSerialNumberOk() (*string, bool) { + if o == nil || isNil(o.SampleSerialNumber) { + return nil, false + } + return o.SampleSerialNumber, true +} + +// HasSampleSerialNumber returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMonitoringOCSPParametersResponse) HasSampleSerialNumber() bool { + if o != nil && !isNil(o.SampleSerialNumber) { + return true + } + + return false +} + +// SetSampleSerialNumber gets a reference to the given string and assigns it to the SampleSerialNumber field. +func (o *KeyfactorApiModelsMonitoringOCSPParametersResponse) SetSampleSerialNumber(v string) { + o.SampleSerialNumber = &v +} + +func (o KeyfactorApiModelsMonitoringOCSPParametersResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsMonitoringOCSPParametersResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.CertificateAuthorityId) { + toSerialize["CertificateAuthorityId"] = o.CertificateAuthorityId + } + if !isNil(o.AuthorityName) { + toSerialize["AuthorityName"] = o.AuthorityName + } + if !isNil(o.AuthorityNameId) { + toSerialize["AuthorityNameId"] = o.AuthorityNameId + } + if !isNil(o.AuthorityKeyId) { + toSerialize["AuthorityKeyId"] = o.AuthorityKeyId + } + if !isNil(o.SampleSerialNumber) { + toSerialize["SampleSerialNumber"] = o.SampleSerialNumber + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsMonitoringOCSPParametersResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsMonitoringOCSPParametersResponse := _KeyfactorApiModelsMonitoringOCSPParametersResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsMonitoringOCSPParametersResponse); err == nil { + *o = KeyfactorApiModelsMonitoringOCSPParametersResponse(varKeyfactorApiModelsMonitoringOCSPParametersResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "CertificateAuthorityId") + delete(additionalProperties, "AuthorityName") + delete(additionalProperties, "AuthorityNameId") + delete(additionalProperties, "AuthorityKeyId") + delete(additionalProperties, "SampleSerialNumber") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsMonitoringOCSPParametersResponse struct { + value *KeyfactorApiModelsMonitoringOCSPParametersResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsMonitoringOCSPParametersResponse) Get() *KeyfactorApiModelsMonitoringOCSPParametersResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsMonitoringOCSPParametersResponse) Set(val *KeyfactorApiModelsMonitoringOCSPParametersResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsMonitoringOCSPParametersResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsMonitoringOCSPParametersResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsMonitoringOCSPParametersResponse(val *KeyfactorApiModelsMonitoringOCSPParametersResponse) *NullableKeyfactorApiModelsMonitoringOCSPParametersResponse { + return &NullableKeyfactorApiModelsMonitoringOCSPParametersResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsMonitoringOCSPParametersResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsMonitoringOCSPParametersResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_monitoring_revocation_monitoring_alert_test_all_request.go b/v1/api/keyfactor/model_keyfactor_api_models_monitoring_revocation_monitoring_alert_test_all_request.go new file mode 100644 index 0000000..dd55b26 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_monitoring_revocation_monitoring_alert_test_all_request.go @@ -0,0 +1,196 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" + "time" +) + +// checks if the KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest{} + +// KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest struct for KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest +type KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest struct { + EvaluationDate *time.Time `json:"EvaluationDate,omitempty"` + SendAlerts *bool `json:"SendAlerts,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest + +// NewKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest instantiates a new KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest() *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest { + this := KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest{} + return &this +} + +// NewKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequestWithDefaults instantiates a new KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequestWithDefaults() *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest { + this := KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest{} + return &this +} + +// GetEvaluationDate returns the EvaluationDate field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest) GetEvaluationDate() time.Time { + if o == nil || isNil(o.EvaluationDate) { + var ret time.Time + return ret + } + return *o.EvaluationDate +} + +// GetEvaluationDateOk returns a tuple with the EvaluationDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest) GetEvaluationDateOk() (*time.Time, bool) { + if o == nil || isNil(o.EvaluationDate) { + return nil, false + } + return o.EvaluationDate, true +} + +// HasEvaluationDate returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest) HasEvaluationDate() bool { + if o != nil && !isNil(o.EvaluationDate) { + return true + } + + return false +} + +// SetEvaluationDate gets a reference to the given time.Time and assigns it to the EvaluationDate field. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest) SetEvaluationDate(v time.Time) { + o.EvaluationDate = &v +} + +// GetSendAlerts returns the SendAlerts field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest) GetSendAlerts() bool { + if o == nil || isNil(o.SendAlerts) { + var ret bool + return ret + } + return *o.SendAlerts +} + +// GetSendAlertsOk returns a tuple with the SendAlerts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest) GetSendAlertsOk() (*bool, bool) { + if o == nil || isNil(o.SendAlerts) { + return nil, false + } + return o.SendAlerts, true +} + +// HasSendAlerts returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest) HasSendAlerts() bool { + if o != nil && !isNil(o.SendAlerts) { + return true + } + + return false +} + +// SetSendAlerts gets a reference to the given bool and assigns it to the SendAlerts field. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest) SetSendAlerts(v bool) { + o.SendAlerts = &v +} + +func (o KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.EvaluationDate) { + toSerialize["EvaluationDate"] = o.EvaluationDate + } + if !isNil(o.SendAlerts) { + toSerialize["SendAlerts"] = o.SendAlerts + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest := _KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest); err == nil { + *o = KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest(varKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "EvaluationDate") + delete(additionalProperties, "SendAlerts") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest struct { + value *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest) Get() *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest) Set(val *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest(val *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest) *NullableKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest { + return &NullableKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_monitoring_revocation_monitoring_alert_test_request.go b/v1/api/keyfactor/model_keyfactor_api_models_monitoring_revocation_monitoring_alert_test_request.go new file mode 100644 index 0000000..dafa5a5 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_monitoring_revocation_monitoring_alert_test_request.go @@ -0,0 +1,233 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" + "time" +) + +// checks if the KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest{} + +// KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest struct for KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest +type KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest struct { + AlertId *int32 `json:"AlertId,omitempty"` + EvaluationDate *time.Time `json:"EvaluationDate,omitempty"` + SendAlerts *bool `json:"SendAlerts,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest + +// NewKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest instantiates a new KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest() *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest { + this := KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest{} + return &this +} + +// NewKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequestWithDefaults instantiates a new KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequestWithDefaults() *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest { + this := KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest{} + return &this +} + +// GetAlertId returns the AlertId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest) GetAlertId() int32 { + if o == nil || isNil(o.AlertId) { + var ret int32 + return ret + } + return *o.AlertId +} + +// GetAlertIdOk returns a tuple with the AlertId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest) GetAlertIdOk() (*int32, bool) { + if o == nil || isNil(o.AlertId) { + return nil, false + } + return o.AlertId, true +} + +// HasAlertId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest) HasAlertId() bool { + if o != nil && !isNil(o.AlertId) { + return true + } + + return false +} + +// SetAlertId gets a reference to the given int32 and assigns it to the AlertId field. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest) SetAlertId(v int32) { + o.AlertId = &v +} + +// GetEvaluationDate returns the EvaluationDate field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest) GetEvaluationDate() time.Time { + if o == nil || isNil(o.EvaluationDate) { + var ret time.Time + return ret + } + return *o.EvaluationDate +} + +// GetEvaluationDateOk returns a tuple with the EvaluationDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest) GetEvaluationDateOk() (*time.Time, bool) { + if o == nil || isNil(o.EvaluationDate) { + return nil, false + } + return o.EvaluationDate, true +} + +// HasEvaluationDate returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest) HasEvaluationDate() bool { + if o != nil && !isNil(o.EvaluationDate) { + return true + } + + return false +} + +// SetEvaluationDate gets a reference to the given time.Time and assigns it to the EvaluationDate field. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest) SetEvaluationDate(v time.Time) { + o.EvaluationDate = &v +} + +// GetSendAlerts returns the SendAlerts field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest) GetSendAlerts() bool { + if o == nil || isNil(o.SendAlerts) { + var ret bool + return ret + } + return *o.SendAlerts +} + +// GetSendAlertsOk returns a tuple with the SendAlerts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest) GetSendAlertsOk() (*bool, bool) { + if o == nil || isNil(o.SendAlerts) { + return nil, false + } + return o.SendAlerts, true +} + +// HasSendAlerts returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest) HasSendAlerts() bool { + if o != nil && !isNil(o.SendAlerts) { + return true + } + + return false +} + +// SetSendAlerts gets a reference to the given bool and assigns it to the SendAlerts field. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest) SetSendAlerts(v bool) { + o.SendAlerts = &v +} + +func (o KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.AlertId) { + toSerialize["AlertId"] = o.AlertId + } + if !isNil(o.EvaluationDate) { + toSerialize["EvaluationDate"] = o.EvaluationDate + } + if !isNil(o.SendAlerts) { + toSerialize["SendAlerts"] = o.SendAlerts + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest := _KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest); err == nil { + *o = KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest(varKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "AlertId") + delete(additionalProperties, "EvaluationDate") + delete(additionalProperties, "SendAlerts") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest struct { + value *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest) Get() *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest) Set(val *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest(val *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest) *NullableKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest { + return &NullableKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_monitoring_revocation_monitoring_alert_test_response.go b/v1/api/keyfactor/model_keyfactor_api_models_monitoring_revocation_monitoring_alert_test_response.go new file mode 100644 index 0000000..2b5b8bb --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_monitoring_revocation_monitoring_alert_test_response.go @@ -0,0 +1,195 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse{} + +// KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse struct for KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse +type KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse struct { + RevocationMonitoringAlerts []ModelsMonitoringRevocationMonitoringAlertResponse `json:"RevocationMonitoringAlerts,omitempty"` + AlertBuildResult *int32 `json:"AlertBuildResult,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse + +// NewKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse instantiates a new KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse() *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse { + this := KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse{} + return &this +} + +// NewKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponseWithDefaults instantiates a new KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponseWithDefaults() *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse { + this := KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse{} + return &this +} + +// GetRevocationMonitoringAlerts returns the RevocationMonitoringAlerts field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse) GetRevocationMonitoringAlerts() []ModelsMonitoringRevocationMonitoringAlertResponse { + if o == nil || isNil(o.RevocationMonitoringAlerts) { + var ret []ModelsMonitoringRevocationMonitoringAlertResponse + return ret + } + return o.RevocationMonitoringAlerts +} + +// GetRevocationMonitoringAlertsOk returns a tuple with the RevocationMonitoringAlerts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse) GetRevocationMonitoringAlertsOk() ([]ModelsMonitoringRevocationMonitoringAlertResponse, bool) { + if o == nil || isNil(o.RevocationMonitoringAlerts) { + return nil, false + } + return o.RevocationMonitoringAlerts, true +} + +// HasRevocationMonitoringAlerts returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse) HasRevocationMonitoringAlerts() bool { + if o != nil && !isNil(o.RevocationMonitoringAlerts) { + return true + } + + return false +} + +// SetRevocationMonitoringAlerts gets a reference to the given []ModelsMonitoringRevocationMonitoringAlertResponse and assigns it to the RevocationMonitoringAlerts field. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse) SetRevocationMonitoringAlerts(v []ModelsMonitoringRevocationMonitoringAlertResponse) { + o.RevocationMonitoringAlerts = v +} + +// GetAlertBuildResult returns the AlertBuildResult field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse) GetAlertBuildResult() int32 { + if o == nil || isNil(o.AlertBuildResult) { + var ret int32 + return ret + } + return *o.AlertBuildResult +} + +// GetAlertBuildResultOk returns a tuple with the AlertBuildResult field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse) GetAlertBuildResultOk() (*int32, bool) { + if o == nil || isNil(o.AlertBuildResult) { + return nil, false + } + return o.AlertBuildResult, true +} + +// HasAlertBuildResult returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse) HasAlertBuildResult() bool { + if o != nil && !isNil(o.AlertBuildResult) { + return true + } + + return false +} + +// SetAlertBuildResult gets a reference to the given int32 and assigns it to the AlertBuildResult field. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse) SetAlertBuildResult(v int32) { + o.AlertBuildResult = &v +} + +func (o KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.RevocationMonitoringAlerts) { + toSerialize["RevocationMonitoringAlerts"] = o.RevocationMonitoringAlerts + } + if !isNil(o.AlertBuildResult) { + toSerialize["AlertBuildResult"] = o.AlertBuildResult + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse := _KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse); err == nil { + *o = KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse(varKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "RevocationMonitoringAlerts") + delete(additionalProperties, "AlertBuildResult") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse struct { + value *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse) Get() *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse) Set(val *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse(val *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse) *NullableKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse { + return &NullableKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_monitoring_revocation_monitoring_creation_request.go b/v1/api/keyfactor/model_keyfactor_api_models_monitoring_revocation_monitoring_creation_request.go new file mode 100644 index 0000000..8f3421b --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_monitoring_revocation_monitoring_creation_request.go @@ -0,0 +1,344 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest{} + +// KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest struct for KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest +type KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest struct { + Name string `json:"Name"` + EndpointType string `json:"EndpointType"` + Location string `json:"Location"` + Email *KeyfactorApiModelsMonitoringEmailRequest `json:"Email,omitempty"` + Dashboard KeyfactorApiModelsMonitoringDashboardRequest `json:"Dashboard"` + Schedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"Schedule,omitempty"` + OCSPParameters *KeyfactorApiModelsMonitoringOCSPParametersRequest `json:"OCSPParameters,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest + +// NewKeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest instantiates a new KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest(name string, endpointType string, location string, dashboard KeyfactorApiModelsMonitoringDashboardRequest) *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest { + this := KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest{} + this.Name = name + this.EndpointType = endpointType + this.Location = location + this.Dashboard = dashboard + return &this +} + +// NewKeyfactorApiModelsMonitoringRevocationMonitoringCreationRequestWithDefaults instantiates a new KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsMonitoringRevocationMonitoringCreationRequestWithDefaults() *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest { + this := KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest{} + return &this +} + +// GetName returns the Name field value +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) SetName(v string) { + o.Name = v +} + +// GetEndpointType returns the EndpointType field value +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) GetEndpointType() string { + if o == nil { + var ret string + return ret + } + + return o.EndpointType +} + +// GetEndpointTypeOk returns a tuple with the EndpointType field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) GetEndpointTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.EndpointType, true +} + +// SetEndpointType sets field value +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) SetEndpointType(v string) { + o.EndpointType = v +} + +// GetLocation returns the Location field value +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) GetLocation() string { + if o == nil { + var ret string + return ret + } + + return o.Location +} + +// GetLocationOk returns a tuple with the Location field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) GetLocationOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Location, true +} + +// SetLocation sets field value +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) SetLocation(v string) { + o.Location = v +} + +// GetEmail returns the Email field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) GetEmail() KeyfactorApiModelsMonitoringEmailRequest { + if o == nil || isNil(o.Email) { + var ret KeyfactorApiModelsMonitoringEmailRequest + return ret + } + return *o.Email +} + +// GetEmailOk returns a tuple with the Email field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) GetEmailOk() (*KeyfactorApiModelsMonitoringEmailRequest, bool) { + if o == nil || isNil(o.Email) { + return nil, false + } + return o.Email, true +} + +// HasEmail returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) HasEmail() bool { + if o != nil && !isNil(o.Email) { + return true + } + + return false +} + +// SetEmail gets a reference to the given KeyfactorApiModelsMonitoringEmailRequest and assigns it to the Email field. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) SetEmail(v KeyfactorApiModelsMonitoringEmailRequest) { + o.Email = &v +} + +// GetDashboard returns the Dashboard field value +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) GetDashboard() KeyfactorApiModelsMonitoringDashboardRequest { + if o == nil { + var ret KeyfactorApiModelsMonitoringDashboardRequest + return ret + } + + return o.Dashboard +} + +// GetDashboardOk returns a tuple with the Dashboard field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) GetDashboardOk() (*KeyfactorApiModelsMonitoringDashboardRequest, bool) { + if o == nil { + return nil, false + } + return &o.Dashboard, true +} + +// SetDashboard sets field value +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) SetDashboard(v KeyfactorApiModelsMonitoringDashboardRequest) { + o.Dashboard = v +} + +// GetSchedule returns the Schedule field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.Schedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.Schedule +} + +// GetScheduleOk returns a tuple with the Schedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.Schedule) { + return nil, false + } + return o.Schedule, true +} + +// HasSchedule returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) HasSchedule() bool { + if o != nil && !isNil(o.Schedule) { + return true + } + + return false +} + +// SetSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the Schedule field. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.Schedule = &v +} + +// GetOCSPParameters returns the OCSPParameters field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) GetOCSPParameters() KeyfactorApiModelsMonitoringOCSPParametersRequest { + if o == nil || isNil(o.OCSPParameters) { + var ret KeyfactorApiModelsMonitoringOCSPParametersRequest + return ret + } + return *o.OCSPParameters +} + +// GetOCSPParametersOk returns a tuple with the OCSPParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) GetOCSPParametersOk() (*KeyfactorApiModelsMonitoringOCSPParametersRequest, bool) { + if o == nil || isNil(o.OCSPParameters) { + return nil, false + } + return o.OCSPParameters, true +} + +// HasOCSPParameters returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) HasOCSPParameters() bool { + if o != nil && !isNil(o.OCSPParameters) { + return true + } + + return false +} + +// SetOCSPParameters gets a reference to the given KeyfactorApiModelsMonitoringOCSPParametersRequest and assigns it to the OCSPParameters field. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) SetOCSPParameters(v KeyfactorApiModelsMonitoringOCSPParametersRequest) { + o.OCSPParameters = &v +} + +func (o KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Name"] = o.Name + toSerialize["EndpointType"] = o.EndpointType + toSerialize["Location"] = o.Location + if !isNil(o.Email) { + toSerialize["Email"] = o.Email + } + toSerialize["Dashboard"] = o.Dashboard + if !isNil(o.Schedule) { + toSerialize["Schedule"] = o.Schedule + } + if !isNil(o.OCSPParameters) { + toSerialize["OCSPParameters"] = o.OCSPParameters + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest := _KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest); err == nil { + *o = KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest(varKeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Name") + delete(additionalProperties, "EndpointType") + delete(additionalProperties, "Location") + delete(additionalProperties, "Email") + delete(additionalProperties, "Dashboard") + delete(additionalProperties, "Schedule") + delete(additionalProperties, "OCSPParameters") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest struct { + value *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) Get() *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) Set(val *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest(val *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) *NullableKeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest { + return &NullableKeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_monitoring_revocation_monitoring_definition_response.go b/v1/api/keyfactor/model_keyfactor_api_models_monitoring_revocation_monitoring_definition_response.go new file mode 100644 index 0000000..2ea09d9 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_monitoring_revocation_monitoring_definition_response.go @@ -0,0 +1,417 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse{} + +// KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse struct for KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse +type KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse struct { + Id *int32 `json:"Id,omitempty"` + Name *string `json:"Name,omitempty"` + EndpointType *string `json:"EndpointType,omitempty"` + Location *string `json:"Location,omitempty"` + Email *KeyfactorApiModelsMonitoringEmailResponse `json:"Email,omitempty"` + Dashboard *KeyfactorApiModelsMonitoringDashboardResponse `json:"Dashboard,omitempty"` + Schedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"Schedule,omitempty"` + OCSPParameters *KeyfactorApiModelsMonitoringOCSPParametersResponse `json:"OCSPParameters,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse + +// NewKeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse instantiates a new KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse() *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse { + this := KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse{} + return &this +} + +// NewKeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponseWithDefaults instantiates a new KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponseWithDefaults() *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse { + this := KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) SetId(v int32) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) GetName() string { + if o == nil || isNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) GetNameOk() (*string, bool) { + if o == nil || isNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) HasName() bool { + if o != nil && !isNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) SetName(v string) { + o.Name = &v +} + +// GetEndpointType returns the EndpointType field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) GetEndpointType() string { + if o == nil || isNil(o.EndpointType) { + var ret string + return ret + } + return *o.EndpointType +} + +// GetEndpointTypeOk returns a tuple with the EndpointType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) GetEndpointTypeOk() (*string, bool) { + if o == nil || isNil(o.EndpointType) { + return nil, false + } + return o.EndpointType, true +} + +// HasEndpointType returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) HasEndpointType() bool { + if o != nil && !isNil(o.EndpointType) { + return true + } + + return false +} + +// SetEndpointType gets a reference to the given string and assigns it to the EndpointType field. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) SetEndpointType(v string) { + o.EndpointType = &v +} + +// GetLocation returns the Location field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) GetLocation() string { + if o == nil || isNil(o.Location) { + var ret string + return ret + } + return *o.Location +} + +// GetLocationOk returns a tuple with the Location field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) GetLocationOk() (*string, bool) { + if o == nil || isNil(o.Location) { + return nil, false + } + return o.Location, true +} + +// HasLocation returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) HasLocation() bool { + if o != nil && !isNil(o.Location) { + return true + } + + return false +} + +// SetLocation gets a reference to the given string and assigns it to the Location field. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) SetLocation(v string) { + o.Location = &v +} + +// GetEmail returns the Email field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) GetEmail() KeyfactorApiModelsMonitoringEmailResponse { + if o == nil || isNil(o.Email) { + var ret KeyfactorApiModelsMonitoringEmailResponse + return ret + } + return *o.Email +} + +// GetEmailOk returns a tuple with the Email field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) GetEmailOk() (*KeyfactorApiModelsMonitoringEmailResponse, bool) { + if o == nil || isNil(o.Email) { + return nil, false + } + return o.Email, true +} + +// HasEmail returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) HasEmail() bool { + if o != nil && !isNil(o.Email) { + return true + } + + return false +} + +// SetEmail gets a reference to the given KeyfactorApiModelsMonitoringEmailResponse and assigns it to the Email field. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) SetEmail(v KeyfactorApiModelsMonitoringEmailResponse) { + o.Email = &v +} + +// GetDashboard returns the Dashboard field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) GetDashboard() KeyfactorApiModelsMonitoringDashboardResponse { + if o == nil || isNil(o.Dashboard) { + var ret KeyfactorApiModelsMonitoringDashboardResponse + return ret + } + return *o.Dashboard +} + +// GetDashboardOk returns a tuple with the Dashboard field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) GetDashboardOk() (*KeyfactorApiModelsMonitoringDashboardResponse, bool) { + if o == nil || isNil(o.Dashboard) { + return nil, false + } + return o.Dashboard, true +} + +// HasDashboard returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) HasDashboard() bool { + if o != nil && !isNil(o.Dashboard) { + return true + } + + return false +} + +// SetDashboard gets a reference to the given KeyfactorApiModelsMonitoringDashboardResponse and assigns it to the Dashboard field. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) SetDashboard(v KeyfactorApiModelsMonitoringDashboardResponse) { + o.Dashboard = &v +} + +// GetSchedule returns the Schedule field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.Schedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.Schedule +} + +// GetScheduleOk returns a tuple with the Schedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.Schedule) { + return nil, false + } + return o.Schedule, true +} + +// HasSchedule returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) HasSchedule() bool { + if o != nil && !isNil(o.Schedule) { + return true + } + + return false +} + +// SetSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the Schedule field. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.Schedule = &v +} + +// GetOCSPParameters returns the OCSPParameters field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) GetOCSPParameters() KeyfactorApiModelsMonitoringOCSPParametersResponse { + if o == nil || isNil(o.OCSPParameters) { + var ret KeyfactorApiModelsMonitoringOCSPParametersResponse + return ret + } + return *o.OCSPParameters +} + +// GetOCSPParametersOk returns a tuple with the OCSPParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) GetOCSPParametersOk() (*KeyfactorApiModelsMonitoringOCSPParametersResponse, bool) { + if o == nil || isNil(o.OCSPParameters) { + return nil, false + } + return o.OCSPParameters, true +} + +// HasOCSPParameters returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) HasOCSPParameters() bool { + if o != nil && !isNil(o.OCSPParameters) { + return true + } + + return false +} + +// SetOCSPParameters gets a reference to the given KeyfactorApiModelsMonitoringOCSPParametersResponse and assigns it to the OCSPParameters field. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) SetOCSPParameters(v KeyfactorApiModelsMonitoringOCSPParametersResponse) { + o.OCSPParameters = &v +} + +func (o KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.Name) { + toSerialize["Name"] = o.Name + } + if !isNil(o.EndpointType) { + toSerialize["EndpointType"] = o.EndpointType + } + if !isNil(o.Location) { + toSerialize["Location"] = o.Location + } + if !isNil(o.Email) { + toSerialize["Email"] = o.Email + } + if !isNil(o.Dashboard) { + toSerialize["Dashboard"] = o.Dashboard + } + if !isNil(o.Schedule) { + toSerialize["Schedule"] = o.Schedule + } + if !isNil(o.OCSPParameters) { + toSerialize["OCSPParameters"] = o.OCSPParameters + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse := _KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse); err == nil { + *o = KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse(varKeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "Name") + delete(additionalProperties, "EndpointType") + delete(additionalProperties, "Location") + delete(additionalProperties, "Email") + delete(additionalProperties, "Dashboard") + delete(additionalProperties, "Schedule") + delete(additionalProperties, "OCSPParameters") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse struct { + value *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) Get() *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) Set(val *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse(val *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) *NullableKeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse { + return &NullableKeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_monitoring_revocation_monitoring_update_request.go b/v1/api/keyfactor/model_keyfactor_api_models_monitoring_revocation_monitoring_update_request.go new file mode 100644 index 0000000..66de237 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_monitoring_revocation_monitoring_update_request.go @@ -0,0 +1,381 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest{} + +// KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest struct for KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest +type KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest struct { + Id *int32 `json:"Id,omitempty"` + Name string `json:"Name"` + EndpointType string `json:"EndpointType"` + Location string `json:"Location"` + Email *KeyfactorApiModelsMonitoringEmailRequest `json:"Email,omitempty"` + Dashboard KeyfactorApiModelsMonitoringDashboardRequest `json:"Dashboard"` + Schedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"Schedule,omitempty"` + OCSPParameters *KeyfactorApiModelsMonitoringOCSPParametersRequest `json:"OCSPParameters,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest + +// NewKeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest instantiates a new KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest(name string, endpointType string, location string, dashboard KeyfactorApiModelsMonitoringDashboardRequest) *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest { + this := KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest{} + this.Name = name + this.EndpointType = endpointType + this.Location = location + this.Dashboard = dashboard + return &this +} + +// NewKeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequestWithDefaults instantiates a new KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequestWithDefaults() *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest { + this := KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) SetId(v int32) { + o.Id = &v +} + +// GetName returns the Name field value +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) SetName(v string) { + o.Name = v +} + +// GetEndpointType returns the EndpointType field value +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) GetEndpointType() string { + if o == nil { + var ret string + return ret + } + + return o.EndpointType +} + +// GetEndpointTypeOk returns a tuple with the EndpointType field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) GetEndpointTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.EndpointType, true +} + +// SetEndpointType sets field value +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) SetEndpointType(v string) { + o.EndpointType = v +} + +// GetLocation returns the Location field value +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) GetLocation() string { + if o == nil { + var ret string + return ret + } + + return o.Location +} + +// GetLocationOk returns a tuple with the Location field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) GetLocationOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Location, true +} + +// SetLocation sets field value +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) SetLocation(v string) { + o.Location = v +} + +// GetEmail returns the Email field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) GetEmail() KeyfactorApiModelsMonitoringEmailRequest { + if o == nil || isNil(o.Email) { + var ret KeyfactorApiModelsMonitoringEmailRequest + return ret + } + return *o.Email +} + +// GetEmailOk returns a tuple with the Email field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) GetEmailOk() (*KeyfactorApiModelsMonitoringEmailRequest, bool) { + if o == nil || isNil(o.Email) { + return nil, false + } + return o.Email, true +} + +// HasEmail returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) HasEmail() bool { + if o != nil && !isNil(o.Email) { + return true + } + + return false +} + +// SetEmail gets a reference to the given KeyfactorApiModelsMonitoringEmailRequest and assigns it to the Email field. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) SetEmail(v KeyfactorApiModelsMonitoringEmailRequest) { + o.Email = &v +} + +// GetDashboard returns the Dashboard field value +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) GetDashboard() KeyfactorApiModelsMonitoringDashboardRequest { + if o == nil { + var ret KeyfactorApiModelsMonitoringDashboardRequest + return ret + } + + return o.Dashboard +} + +// GetDashboardOk returns a tuple with the Dashboard field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) GetDashboardOk() (*KeyfactorApiModelsMonitoringDashboardRequest, bool) { + if o == nil { + return nil, false + } + return &o.Dashboard, true +} + +// SetDashboard sets field value +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) SetDashboard(v KeyfactorApiModelsMonitoringDashboardRequest) { + o.Dashboard = v +} + +// GetSchedule returns the Schedule field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.Schedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.Schedule +} + +// GetScheduleOk returns a tuple with the Schedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.Schedule) { + return nil, false + } + return o.Schedule, true +} + +// HasSchedule returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) HasSchedule() bool { + if o != nil && !isNil(o.Schedule) { + return true + } + + return false +} + +// SetSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the Schedule field. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.Schedule = &v +} + +// GetOCSPParameters returns the OCSPParameters field value if set, zero value otherwise. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) GetOCSPParameters() KeyfactorApiModelsMonitoringOCSPParametersRequest { + if o == nil || isNil(o.OCSPParameters) { + var ret KeyfactorApiModelsMonitoringOCSPParametersRequest + return ret + } + return *o.OCSPParameters +} + +// GetOCSPParametersOk returns a tuple with the OCSPParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) GetOCSPParametersOk() (*KeyfactorApiModelsMonitoringOCSPParametersRequest, bool) { + if o == nil || isNil(o.OCSPParameters) { + return nil, false + } + return o.OCSPParameters, true +} + +// HasOCSPParameters returns a boolean if a field has been set. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) HasOCSPParameters() bool { + if o != nil && !isNil(o.OCSPParameters) { + return true + } + + return false +} + +// SetOCSPParameters gets a reference to the given KeyfactorApiModelsMonitoringOCSPParametersRequest and assigns it to the OCSPParameters field. +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) SetOCSPParameters(v KeyfactorApiModelsMonitoringOCSPParametersRequest) { + o.OCSPParameters = &v +} + +func (o KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + toSerialize["Name"] = o.Name + toSerialize["EndpointType"] = o.EndpointType + toSerialize["Location"] = o.Location + if !isNil(o.Email) { + toSerialize["Email"] = o.Email + } + toSerialize["Dashboard"] = o.Dashboard + if !isNil(o.Schedule) { + toSerialize["Schedule"] = o.Schedule + } + if !isNil(o.OCSPParameters) { + toSerialize["OCSPParameters"] = o.OCSPParameters + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest := _KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest); err == nil { + *o = KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest(varKeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "Name") + delete(additionalProperties, "EndpointType") + delete(additionalProperties, "Location") + delete(additionalProperties, "Email") + delete(additionalProperties, "Dashboard") + delete(additionalProperties, "Schedule") + delete(additionalProperties, "OCSPParameters") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest struct { + value *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) Get() *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) Set(val *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest(val *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) *NullableKeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest { + return &NullableKeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_orchestrator_jobs_acknowledge_job_request.go b/v1/api/keyfactor/model_keyfactor_api_models_orchestrator_jobs_acknowledge_job_request.go new file mode 100644 index 0000000..5f43f1b --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_orchestrator_jobs_acknowledge_job_request.go @@ -0,0 +1,197 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest{} + +// KeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest struct for KeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest +type KeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest struct { + // List of orchestrator job audit ids to be acknowledged + JobAuditIds []int64 `json:"JobAuditIds,omitempty"` + // Query identifying orchestrator jobs to be acknowledged + Query *string `json:"Query,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest KeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest + +// NewKeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest instantiates a new KeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest() *KeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest { + this := KeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest{} + return &this +} + +// NewKeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequestWithDefaults instantiates a new KeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequestWithDefaults() *KeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest { + this := KeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest{} + return &this +} + +// GetJobAuditIds returns the JobAuditIds field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest) GetJobAuditIds() []int64 { + if o == nil || isNil(o.JobAuditIds) { + var ret []int64 + return ret + } + return o.JobAuditIds +} + +// GetJobAuditIdsOk returns a tuple with the JobAuditIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest) GetJobAuditIdsOk() ([]int64, bool) { + if o == nil || isNil(o.JobAuditIds) { + return nil, false + } + return o.JobAuditIds, true +} + +// HasJobAuditIds returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest) HasJobAuditIds() bool { + if o != nil && !isNil(o.JobAuditIds) { + return true + } + + return false +} + +// SetJobAuditIds gets a reference to the given []int64 and assigns it to the JobAuditIds field. +func (o *KeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest) SetJobAuditIds(v []int64) { + o.JobAuditIds = v +} + +// GetQuery returns the Query field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest) GetQuery() string { + if o == nil || isNil(o.Query) { + var ret string + return ret + } + return *o.Query +} + +// GetQueryOk returns a tuple with the Query field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest) GetQueryOk() (*string, bool) { + if o == nil || isNil(o.Query) { + return nil, false + } + return o.Query, true +} + +// HasQuery returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest) HasQuery() bool { + if o != nil && !isNil(o.Query) { + return true + } + + return false +} + +// SetQuery gets a reference to the given string and assigns it to the Query field. +func (o *KeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest) SetQuery(v string) { + o.Query = &v +} + +func (o KeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.JobAuditIds) { + toSerialize["JobAuditIds"] = o.JobAuditIds + } + if !isNil(o.Query) { + toSerialize["Query"] = o.Query + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest := _KeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest); err == nil { + *o = KeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest(varKeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "JobAuditIds") + delete(additionalProperties, "Query") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest struct { + value *KeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest) Get() *KeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest) Set(val *KeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest(val *KeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest) *NullableKeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest { + return &NullableKeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_orchestrator_jobs_bulk_job_response.go b/v1/api/keyfactor/model_keyfactor_api_models_orchestrator_jobs_bulk_job_response.go new file mode 100644 index 0000000..077f89f --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_orchestrator_jobs_bulk_job_response.go @@ -0,0 +1,344 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" + "time" +) + +// checks if the KeyfactorApiModelsOrchestratorJobsBulkJobResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsOrchestratorJobsBulkJobResponse{} + +// KeyfactorApiModelsOrchestratorJobsBulkJobResponse struct for KeyfactorApiModelsOrchestratorJobsBulkJobResponse +type KeyfactorApiModelsOrchestratorJobsBulkJobResponse struct { + OrchestratorJobPairs []ModelsOrchestratorJobsBulkOrchestratorJobPair `json:"OrchestratorJobPairs,omitempty"` + FailedOrchestratorIds []string `json:"FailedOrchestratorIds,omitempty"` + JobTypeName *string `json:"JobTypeName,omitempty"` + Schedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"Schedule,omitempty"` + JobFields []KeyfactorApiModelsOrchestratorJobsJobFieldResponse `json:"JobFields,omitempty"` + RequestTimestamp *time.Time `json:"RequestTimestamp,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsOrchestratorJobsBulkJobResponse KeyfactorApiModelsOrchestratorJobsBulkJobResponse + +// NewKeyfactorApiModelsOrchestratorJobsBulkJobResponse instantiates a new KeyfactorApiModelsOrchestratorJobsBulkJobResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsOrchestratorJobsBulkJobResponse() *KeyfactorApiModelsOrchestratorJobsBulkJobResponse { + this := KeyfactorApiModelsOrchestratorJobsBulkJobResponse{} + return &this +} + +// NewKeyfactorApiModelsOrchestratorJobsBulkJobResponseWithDefaults instantiates a new KeyfactorApiModelsOrchestratorJobsBulkJobResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsOrchestratorJobsBulkJobResponseWithDefaults() *KeyfactorApiModelsOrchestratorJobsBulkJobResponse { + this := KeyfactorApiModelsOrchestratorJobsBulkJobResponse{} + return &this +} + +// GetOrchestratorJobPairs returns the OrchestratorJobPairs field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorJobsBulkJobResponse) GetOrchestratorJobPairs() []ModelsOrchestratorJobsBulkOrchestratorJobPair { + if o == nil || isNil(o.OrchestratorJobPairs) { + var ret []ModelsOrchestratorJobsBulkOrchestratorJobPair + return ret + } + return o.OrchestratorJobPairs +} + +// GetOrchestratorJobPairsOk returns a tuple with the OrchestratorJobPairs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorJobsBulkJobResponse) GetOrchestratorJobPairsOk() ([]ModelsOrchestratorJobsBulkOrchestratorJobPair, bool) { + if o == nil || isNil(o.OrchestratorJobPairs) { + return nil, false + } + return o.OrchestratorJobPairs, true +} + +// HasOrchestratorJobPairs returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorJobsBulkJobResponse) HasOrchestratorJobPairs() bool { + if o != nil && !isNil(o.OrchestratorJobPairs) { + return true + } + + return false +} + +// SetOrchestratorJobPairs gets a reference to the given []ModelsOrchestratorJobsBulkOrchestratorJobPair and assigns it to the OrchestratorJobPairs field. +func (o *KeyfactorApiModelsOrchestratorJobsBulkJobResponse) SetOrchestratorJobPairs(v []ModelsOrchestratorJobsBulkOrchestratorJobPair) { + o.OrchestratorJobPairs = v +} + +// GetFailedOrchestratorIds returns the FailedOrchestratorIds field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorJobsBulkJobResponse) GetFailedOrchestratorIds() []string { + if o == nil || isNil(o.FailedOrchestratorIds) { + var ret []string + return ret + } + return o.FailedOrchestratorIds +} + +// GetFailedOrchestratorIdsOk returns a tuple with the FailedOrchestratorIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorJobsBulkJobResponse) GetFailedOrchestratorIdsOk() ([]string, bool) { + if o == nil || isNil(o.FailedOrchestratorIds) { + return nil, false + } + return o.FailedOrchestratorIds, true +} + +// HasFailedOrchestratorIds returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorJobsBulkJobResponse) HasFailedOrchestratorIds() bool { + if o != nil && !isNil(o.FailedOrchestratorIds) { + return true + } + + return false +} + +// SetFailedOrchestratorIds gets a reference to the given []string and assigns it to the FailedOrchestratorIds field. +func (o *KeyfactorApiModelsOrchestratorJobsBulkJobResponse) SetFailedOrchestratorIds(v []string) { + o.FailedOrchestratorIds = v +} + +// GetJobTypeName returns the JobTypeName field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorJobsBulkJobResponse) GetJobTypeName() string { + if o == nil || isNil(o.JobTypeName) { + var ret string + return ret + } + return *o.JobTypeName +} + +// GetJobTypeNameOk returns a tuple with the JobTypeName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorJobsBulkJobResponse) GetJobTypeNameOk() (*string, bool) { + if o == nil || isNil(o.JobTypeName) { + return nil, false + } + return o.JobTypeName, true +} + +// HasJobTypeName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorJobsBulkJobResponse) HasJobTypeName() bool { + if o != nil && !isNil(o.JobTypeName) { + return true + } + + return false +} + +// SetJobTypeName gets a reference to the given string and assigns it to the JobTypeName field. +func (o *KeyfactorApiModelsOrchestratorJobsBulkJobResponse) SetJobTypeName(v string) { + o.JobTypeName = &v +} + +// GetSchedule returns the Schedule field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorJobsBulkJobResponse) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.Schedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.Schedule +} + +// GetScheduleOk returns a tuple with the Schedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorJobsBulkJobResponse) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.Schedule) { + return nil, false + } + return o.Schedule, true +} + +// HasSchedule returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorJobsBulkJobResponse) HasSchedule() bool { + if o != nil && !isNil(o.Schedule) { + return true + } + + return false +} + +// SetSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the Schedule field. +func (o *KeyfactorApiModelsOrchestratorJobsBulkJobResponse) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.Schedule = &v +} + +// GetJobFields returns the JobFields field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorJobsBulkJobResponse) GetJobFields() []KeyfactorApiModelsOrchestratorJobsJobFieldResponse { + if o == nil || isNil(o.JobFields) { + var ret []KeyfactorApiModelsOrchestratorJobsJobFieldResponse + return ret + } + return o.JobFields +} + +// GetJobFieldsOk returns a tuple with the JobFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorJobsBulkJobResponse) GetJobFieldsOk() ([]KeyfactorApiModelsOrchestratorJobsJobFieldResponse, bool) { + if o == nil || isNil(o.JobFields) { + return nil, false + } + return o.JobFields, true +} + +// HasJobFields returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorJobsBulkJobResponse) HasJobFields() bool { + if o != nil && !isNil(o.JobFields) { + return true + } + + return false +} + +// SetJobFields gets a reference to the given []KeyfactorApiModelsOrchestratorJobsJobFieldResponse and assigns it to the JobFields field. +func (o *KeyfactorApiModelsOrchestratorJobsBulkJobResponse) SetJobFields(v []KeyfactorApiModelsOrchestratorJobsJobFieldResponse) { + o.JobFields = v +} + +// GetRequestTimestamp returns the RequestTimestamp field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorJobsBulkJobResponse) GetRequestTimestamp() time.Time { + if o == nil || isNil(o.RequestTimestamp) { + var ret time.Time + return ret + } + return *o.RequestTimestamp +} + +// GetRequestTimestampOk returns a tuple with the RequestTimestamp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorJobsBulkJobResponse) GetRequestTimestampOk() (*time.Time, bool) { + if o == nil || isNil(o.RequestTimestamp) { + return nil, false + } + return o.RequestTimestamp, true +} + +// HasRequestTimestamp returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorJobsBulkJobResponse) HasRequestTimestamp() bool { + if o != nil && !isNil(o.RequestTimestamp) { + return true + } + + return false +} + +// SetRequestTimestamp gets a reference to the given time.Time and assigns it to the RequestTimestamp field. +func (o *KeyfactorApiModelsOrchestratorJobsBulkJobResponse) SetRequestTimestamp(v time.Time) { + o.RequestTimestamp = &v +} + +func (o KeyfactorApiModelsOrchestratorJobsBulkJobResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsOrchestratorJobsBulkJobResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.OrchestratorJobPairs) { + toSerialize["OrchestratorJobPairs"] = o.OrchestratorJobPairs + } + if !isNil(o.FailedOrchestratorIds) { + toSerialize["FailedOrchestratorIds"] = o.FailedOrchestratorIds + } + if !isNil(o.JobTypeName) { + toSerialize["JobTypeName"] = o.JobTypeName + } + if !isNil(o.Schedule) { + toSerialize["Schedule"] = o.Schedule + } + if !isNil(o.JobFields) { + toSerialize["JobFields"] = o.JobFields + } + if !isNil(o.RequestTimestamp) { + toSerialize["RequestTimestamp"] = o.RequestTimestamp + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsOrchestratorJobsBulkJobResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsOrchestratorJobsBulkJobResponse := _KeyfactorApiModelsOrchestratorJobsBulkJobResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsOrchestratorJobsBulkJobResponse); err == nil { + *o = KeyfactorApiModelsOrchestratorJobsBulkJobResponse(varKeyfactorApiModelsOrchestratorJobsBulkJobResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "OrchestratorJobPairs") + delete(additionalProperties, "FailedOrchestratorIds") + delete(additionalProperties, "JobTypeName") + delete(additionalProperties, "Schedule") + delete(additionalProperties, "JobFields") + delete(additionalProperties, "RequestTimestamp") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsOrchestratorJobsBulkJobResponse struct { + value *KeyfactorApiModelsOrchestratorJobsBulkJobResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsOrchestratorJobsBulkJobResponse) Get() *KeyfactorApiModelsOrchestratorJobsBulkJobResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsOrchestratorJobsBulkJobResponse) Set(val *KeyfactorApiModelsOrchestratorJobsBulkJobResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsOrchestratorJobsBulkJobResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsOrchestratorJobsBulkJobResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsOrchestratorJobsBulkJobResponse(val *KeyfactorApiModelsOrchestratorJobsBulkJobResponse) *NullableKeyfactorApiModelsOrchestratorJobsBulkJobResponse { + return &NullableKeyfactorApiModelsOrchestratorJobsBulkJobResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsOrchestratorJobsBulkJobResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsOrchestratorJobsBulkJobResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_orchestrator_jobs_custom_job_result_data_response.go b/v1/api/keyfactor/model_keyfactor_api_models_orchestrator_jobs_custom_job_result_data_response.go new file mode 100644 index 0000000..759dda4 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_orchestrator_jobs_custom_job_result_data_response.go @@ -0,0 +1,195 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse{} + +// KeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse struct for KeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse +type KeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse struct { + JobHistoryId *int64 `json:"JobHistoryId,omitempty"` + Data *string `json:"Data,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse KeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse + +// NewKeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse instantiates a new KeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse() *KeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse { + this := KeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse{} + return &this +} + +// NewKeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponseWithDefaults instantiates a new KeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponseWithDefaults() *KeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse { + this := KeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse{} + return &this +} + +// GetJobHistoryId returns the JobHistoryId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse) GetJobHistoryId() int64 { + if o == nil || isNil(o.JobHistoryId) { + var ret int64 + return ret + } + return *o.JobHistoryId +} + +// GetJobHistoryIdOk returns a tuple with the JobHistoryId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse) GetJobHistoryIdOk() (*int64, bool) { + if o == nil || isNil(o.JobHistoryId) { + return nil, false + } + return o.JobHistoryId, true +} + +// HasJobHistoryId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse) HasJobHistoryId() bool { + if o != nil && !isNil(o.JobHistoryId) { + return true + } + + return false +} + +// SetJobHistoryId gets a reference to the given int64 and assigns it to the JobHistoryId field. +func (o *KeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse) SetJobHistoryId(v int64) { + o.JobHistoryId = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse) GetData() string { + if o == nil || isNil(o.Data) { + var ret string + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse) GetDataOk() (*string, bool) { + if o == nil || isNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse) HasData() bool { + if o != nil && !isNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given string and assigns it to the Data field. +func (o *KeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse) SetData(v string) { + o.Data = &v +} + +func (o KeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.JobHistoryId) { + toSerialize["JobHistoryId"] = o.JobHistoryId + } + if !isNil(o.Data) { + toSerialize["Data"] = o.Data + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse := _KeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse); err == nil { + *o = KeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse(varKeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "JobHistoryId") + delete(additionalProperties, "Data") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse struct { + value *KeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse) Get() *KeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse) Set(val *KeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse(val *KeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse) *NullableKeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse { + return &NullableKeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_orchestrator_jobs_job_field_response.go b/v1/api/keyfactor/model_keyfactor_api_models_orchestrator_jobs_job_field_response.go new file mode 100644 index 0000000..895f9e4 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_orchestrator_jobs_job_field_response.go @@ -0,0 +1,195 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsOrchestratorJobsJobFieldResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsOrchestratorJobsJobFieldResponse{} + +// KeyfactorApiModelsOrchestratorJobsJobFieldResponse struct for KeyfactorApiModelsOrchestratorJobsJobFieldResponse +type KeyfactorApiModelsOrchestratorJobsJobFieldResponse struct { + JobTypeField *string `json:"JobTypeField,omitempty"` + Value *string `json:"Value,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsOrchestratorJobsJobFieldResponse KeyfactorApiModelsOrchestratorJobsJobFieldResponse + +// NewKeyfactorApiModelsOrchestratorJobsJobFieldResponse instantiates a new KeyfactorApiModelsOrchestratorJobsJobFieldResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsOrchestratorJobsJobFieldResponse() *KeyfactorApiModelsOrchestratorJobsJobFieldResponse { + this := KeyfactorApiModelsOrchestratorJobsJobFieldResponse{} + return &this +} + +// NewKeyfactorApiModelsOrchestratorJobsJobFieldResponseWithDefaults instantiates a new KeyfactorApiModelsOrchestratorJobsJobFieldResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsOrchestratorJobsJobFieldResponseWithDefaults() *KeyfactorApiModelsOrchestratorJobsJobFieldResponse { + this := KeyfactorApiModelsOrchestratorJobsJobFieldResponse{} + return &this +} + +// GetJobTypeField returns the JobTypeField field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorJobsJobFieldResponse) GetJobTypeField() string { + if o == nil || isNil(o.JobTypeField) { + var ret string + return ret + } + return *o.JobTypeField +} + +// GetJobTypeFieldOk returns a tuple with the JobTypeField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorJobsJobFieldResponse) GetJobTypeFieldOk() (*string, bool) { + if o == nil || isNil(o.JobTypeField) { + return nil, false + } + return o.JobTypeField, true +} + +// HasJobTypeField returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorJobsJobFieldResponse) HasJobTypeField() bool { + if o != nil && !isNil(o.JobTypeField) { + return true + } + + return false +} + +// SetJobTypeField gets a reference to the given string and assigns it to the JobTypeField field. +func (o *KeyfactorApiModelsOrchestratorJobsJobFieldResponse) SetJobTypeField(v string) { + o.JobTypeField = &v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorJobsJobFieldResponse) GetValue() string { + if o == nil || isNil(o.Value) { + var ret string + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorJobsJobFieldResponse) GetValueOk() (*string, bool) { + if o == nil || isNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorJobsJobFieldResponse) HasValue() bool { + if o != nil && !isNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given string and assigns it to the Value field. +func (o *KeyfactorApiModelsOrchestratorJobsJobFieldResponse) SetValue(v string) { + o.Value = &v +} + +func (o KeyfactorApiModelsOrchestratorJobsJobFieldResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsOrchestratorJobsJobFieldResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.JobTypeField) { + toSerialize["JobTypeField"] = o.JobTypeField + } + if !isNil(o.Value) { + toSerialize["Value"] = o.Value + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsOrchestratorJobsJobFieldResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsOrchestratorJobsJobFieldResponse := _KeyfactorApiModelsOrchestratorJobsJobFieldResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsOrchestratorJobsJobFieldResponse); err == nil { + *o = KeyfactorApiModelsOrchestratorJobsJobFieldResponse(varKeyfactorApiModelsOrchestratorJobsJobFieldResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "JobTypeField") + delete(additionalProperties, "Value") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsOrchestratorJobsJobFieldResponse struct { + value *KeyfactorApiModelsOrchestratorJobsJobFieldResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsOrchestratorJobsJobFieldResponse) Get() *KeyfactorApiModelsOrchestratorJobsJobFieldResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsOrchestratorJobsJobFieldResponse) Set(val *KeyfactorApiModelsOrchestratorJobsJobFieldResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsOrchestratorJobsJobFieldResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsOrchestratorJobsJobFieldResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsOrchestratorJobsJobFieldResponse(val *KeyfactorApiModelsOrchestratorJobsJobFieldResponse) *NullableKeyfactorApiModelsOrchestratorJobsJobFieldResponse { + return &NullableKeyfactorApiModelsOrchestratorJobsJobFieldResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsOrchestratorJobsJobFieldResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsOrchestratorJobsJobFieldResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_orchestrator_jobs_job_response.go b/v1/api/keyfactor/model_keyfactor_api_models_orchestrator_jobs_job_response.go new file mode 100644 index 0000000..9626f3a --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_orchestrator_jobs_job_response.go @@ -0,0 +1,344 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" + "time" +) + +// checks if the KeyfactorApiModelsOrchestratorJobsJobResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsOrchestratorJobsJobResponse{} + +// KeyfactorApiModelsOrchestratorJobsJobResponse struct for KeyfactorApiModelsOrchestratorJobsJobResponse +type KeyfactorApiModelsOrchestratorJobsJobResponse struct { + JobId *string `json:"JobId,omitempty"` + OrchestratorId *string `json:"OrchestratorId,omitempty"` + JobTypeName *string `json:"JobTypeName,omitempty"` + Schedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"Schedule,omitempty"` + JobFields []KeyfactorApiModelsOrchestratorJobsJobFieldResponse `json:"JobFields,omitempty"` + RequestTimestamp *time.Time `json:"RequestTimestamp,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsOrchestratorJobsJobResponse KeyfactorApiModelsOrchestratorJobsJobResponse + +// NewKeyfactorApiModelsOrchestratorJobsJobResponse instantiates a new KeyfactorApiModelsOrchestratorJobsJobResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsOrchestratorJobsJobResponse() *KeyfactorApiModelsOrchestratorJobsJobResponse { + this := KeyfactorApiModelsOrchestratorJobsJobResponse{} + return &this +} + +// NewKeyfactorApiModelsOrchestratorJobsJobResponseWithDefaults instantiates a new KeyfactorApiModelsOrchestratorJobsJobResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsOrchestratorJobsJobResponseWithDefaults() *KeyfactorApiModelsOrchestratorJobsJobResponse { + this := KeyfactorApiModelsOrchestratorJobsJobResponse{} + return &this +} + +// GetJobId returns the JobId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorJobsJobResponse) GetJobId() string { + if o == nil || isNil(o.JobId) { + var ret string + return ret + } + return *o.JobId +} + +// GetJobIdOk returns a tuple with the JobId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorJobsJobResponse) GetJobIdOk() (*string, bool) { + if o == nil || isNil(o.JobId) { + return nil, false + } + return o.JobId, true +} + +// HasJobId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorJobsJobResponse) HasJobId() bool { + if o != nil && !isNil(o.JobId) { + return true + } + + return false +} + +// SetJobId gets a reference to the given string and assigns it to the JobId field. +func (o *KeyfactorApiModelsOrchestratorJobsJobResponse) SetJobId(v string) { + o.JobId = &v +} + +// GetOrchestratorId returns the OrchestratorId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorJobsJobResponse) GetOrchestratorId() string { + if o == nil || isNil(o.OrchestratorId) { + var ret string + return ret + } + return *o.OrchestratorId +} + +// GetOrchestratorIdOk returns a tuple with the OrchestratorId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorJobsJobResponse) GetOrchestratorIdOk() (*string, bool) { + if o == nil || isNil(o.OrchestratorId) { + return nil, false + } + return o.OrchestratorId, true +} + +// HasOrchestratorId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorJobsJobResponse) HasOrchestratorId() bool { + if o != nil && !isNil(o.OrchestratorId) { + return true + } + + return false +} + +// SetOrchestratorId gets a reference to the given string and assigns it to the OrchestratorId field. +func (o *KeyfactorApiModelsOrchestratorJobsJobResponse) SetOrchestratorId(v string) { + o.OrchestratorId = &v +} + +// GetJobTypeName returns the JobTypeName field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorJobsJobResponse) GetJobTypeName() string { + if o == nil || isNil(o.JobTypeName) { + var ret string + return ret + } + return *o.JobTypeName +} + +// GetJobTypeNameOk returns a tuple with the JobTypeName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorJobsJobResponse) GetJobTypeNameOk() (*string, bool) { + if o == nil || isNil(o.JobTypeName) { + return nil, false + } + return o.JobTypeName, true +} + +// HasJobTypeName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorJobsJobResponse) HasJobTypeName() bool { + if o != nil && !isNil(o.JobTypeName) { + return true + } + + return false +} + +// SetJobTypeName gets a reference to the given string and assigns it to the JobTypeName field. +func (o *KeyfactorApiModelsOrchestratorJobsJobResponse) SetJobTypeName(v string) { + o.JobTypeName = &v +} + +// GetSchedule returns the Schedule field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorJobsJobResponse) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.Schedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.Schedule +} + +// GetScheduleOk returns a tuple with the Schedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorJobsJobResponse) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.Schedule) { + return nil, false + } + return o.Schedule, true +} + +// HasSchedule returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorJobsJobResponse) HasSchedule() bool { + if o != nil && !isNil(o.Schedule) { + return true + } + + return false +} + +// SetSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the Schedule field. +func (o *KeyfactorApiModelsOrchestratorJobsJobResponse) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.Schedule = &v +} + +// GetJobFields returns the JobFields field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorJobsJobResponse) GetJobFields() []KeyfactorApiModelsOrchestratorJobsJobFieldResponse { + if o == nil || isNil(o.JobFields) { + var ret []KeyfactorApiModelsOrchestratorJobsJobFieldResponse + return ret + } + return o.JobFields +} + +// GetJobFieldsOk returns a tuple with the JobFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorJobsJobResponse) GetJobFieldsOk() ([]KeyfactorApiModelsOrchestratorJobsJobFieldResponse, bool) { + if o == nil || isNil(o.JobFields) { + return nil, false + } + return o.JobFields, true +} + +// HasJobFields returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorJobsJobResponse) HasJobFields() bool { + if o != nil && !isNil(o.JobFields) { + return true + } + + return false +} + +// SetJobFields gets a reference to the given []KeyfactorApiModelsOrchestratorJobsJobFieldResponse and assigns it to the JobFields field. +func (o *KeyfactorApiModelsOrchestratorJobsJobResponse) SetJobFields(v []KeyfactorApiModelsOrchestratorJobsJobFieldResponse) { + o.JobFields = v +} + +// GetRequestTimestamp returns the RequestTimestamp field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorJobsJobResponse) GetRequestTimestamp() time.Time { + if o == nil || isNil(o.RequestTimestamp) { + var ret time.Time + return ret + } + return *o.RequestTimestamp +} + +// GetRequestTimestampOk returns a tuple with the RequestTimestamp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorJobsJobResponse) GetRequestTimestampOk() (*time.Time, bool) { + if o == nil || isNil(o.RequestTimestamp) { + return nil, false + } + return o.RequestTimestamp, true +} + +// HasRequestTimestamp returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorJobsJobResponse) HasRequestTimestamp() bool { + if o != nil && !isNil(o.RequestTimestamp) { + return true + } + + return false +} + +// SetRequestTimestamp gets a reference to the given time.Time and assigns it to the RequestTimestamp field. +func (o *KeyfactorApiModelsOrchestratorJobsJobResponse) SetRequestTimestamp(v time.Time) { + o.RequestTimestamp = &v +} + +func (o KeyfactorApiModelsOrchestratorJobsJobResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsOrchestratorJobsJobResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.JobId) { + toSerialize["JobId"] = o.JobId + } + if !isNil(o.OrchestratorId) { + toSerialize["OrchestratorId"] = o.OrchestratorId + } + if !isNil(o.JobTypeName) { + toSerialize["JobTypeName"] = o.JobTypeName + } + if !isNil(o.Schedule) { + toSerialize["Schedule"] = o.Schedule + } + if !isNil(o.JobFields) { + toSerialize["JobFields"] = o.JobFields + } + if !isNil(o.RequestTimestamp) { + toSerialize["RequestTimestamp"] = o.RequestTimestamp + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsOrchestratorJobsJobResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsOrchestratorJobsJobResponse := _KeyfactorApiModelsOrchestratorJobsJobResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsOrchestratorJobsJobResponse); err == nil { + *o = KeyfactorApiModelsOrchestratorJobsJobResponse(varKeyfactorApiModelsOrchestratorJobsJobResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "JobId") + delete(additionalProperties, "OrchestratorId") + delete(additionalProperties, "JobTypeName") + delete(additionalProperties, "Schedule") + delete(additionalProperties, "JobFields") + delete(additionalProperties, "RequestTimestamp") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsOrchestratorJobsJobResponse struct { + value *KeyfactorApiModelsOrchestratorJobsJobResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsOrchestratorJobsJobResponse) Get() *KeyfactorApiModelsOrchestratorJobsJobResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsOrchestratorJobsJobResponse) Set(val *KeyfactorApiModelsOrchestratorJobsJobResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsOrchestratorJobsJobResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsOrchestratorJobsJobResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsOrchestratorJobsJobResponse(val *KeyfactorApiModelsOrchestratorJobsJobResponse) *NullableKeyfactorApiModelsOrchestratorJobsJobResponse { + return &NullableKeyfactorApiModelsOrchestratorJobsJobResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsOrchestratorJobsJobResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsOrchestratorJobsJobResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_orchestrator_jobs_job_type_field_response.go b/v1/api/keyfactor/model_keyfactor_api_models_orchestrator_jobs_job_type_field_response.go new file mode 100644 index 0000000..d4fcbd2 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_orchestrator_jobs_job_type_field_response.go @@ -0,0 +1,269 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse{} + +// KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse struct for KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse +type KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse struct { + Name *string `json:"Name,omitempty"` + Type *int32 `json:"Type,omitempty"` + DefaultValue *string `json:"DefaultValue,omitempty"` + Required *bool `json:"Required,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse + +// NewKeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse instantiates a new KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse() *KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse { + this := KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse{} + return &this +} + +// NewKeyfactorApiModelsOrchestratorJobsJobTypeFieldResponseWithDefaults instantiates a new KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsOrchestratorJobsJobTypeFieldResponseWithDefaults() *KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse { + this := KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse) GetName() string { + if o == nil || isNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse) GetNameOk() (*string, bool) { + if o == nil || isNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse) HasName() bool { + if o != nil && !isNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse) SetName(v string) { + o.Name = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse) GetType() int32 { + if o == nil || isNil(o.Type) { + var ret int32 + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse) GetTypeOk() (*int32, bool) { + if o == nil || isNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse) HasType() bool { + if o != nil && !isNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given int32 and assigns it to the Type field. +func (o *KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse) SetType(v int32) { + o.Type = &v +} + +// GetDefaultValue returns the DefaultValue field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse) GetDefaultValue() string { + if o == nil || isNil(o.DefaultValue) { + var ret string + return ret + } + return *o.DefaultValue +} + +// GetDefaultValueOk returns a tuple with the DefaultValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse) GetDefaultValueOk() (*string, bool) { + if o == nil || isNil(o.DefaultValue) { + return nil, false + } + return o.DefaultValue, true +} + +// HasDefaultValue returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse) HasDefaultValue() bool { + if o != nil && !isNil(o.DefaultValue) { + return true + } + + return false +} + +// SetDefaultValue gets a reference to the given string and assigns it to the DefaultValue field. +func (o *KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse) SetDefaultValue(v string) { + o.DefaultValue = &v +} + +// GetRequired returns the Required field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse) GetRequired() bool { + if o == nil || isNil(o.Required) { + var ret bool + return ret + } + return *o.Required +} + +// GetRequiredOk returns a tuple with the Required field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse) GetRequiredOk() (*bool, bool) { + if o == nil || isNil(o.Required) { + return nil, false + } + return o.Required, true +} + +// HasRequired returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse) HasRequired() bool { + if o != nil && !isNil(o.Required) { + return true + } + + return false +} + +// SetRequired gets a reference to the given bool and assigns it to the Required field. +func (o *KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse) SetRequired(v bool) { + o.Required = &v +} + +func (o KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Name) { + toSerialize["Name"] = o.Name + } + if !isNil(o.Type) { + toSerialize["Type"] = o.Type + } + if !isNil(o.DefaultValue) { + toSerialize["DefaultValue"] = o.DefaultValue + } + if !isNil(o.Required) { + toSerialize["Required"] = o.Required + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse := _KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse); err == nil { + *o = KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse(varKeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Name") + delete(additionalProperties, "Type") + delete(additionalProperties, "DefaultValue") + delete(additionalProperties, "Required") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse struct { + value *KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse) Get() *KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse) Set(val *KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse(val *KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse) *NullableKeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse { + return &NullableKeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_orchestrator_jobs_job_type_response.go b/v1/api/keyfactor/model_keyfactor_api_models_orchestrator_jobs_job_type_response.go new file mode 100644 index 0000000..54d782b --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_orchestrator_jobs_job_type_response.go @@ -0,0 +1,269 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsOrchestratorJobsJobTypeResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsOrchestratorJobsJobTypeResponse{} + +// KeyfactorApiModelsOrchestratorJobsJobTypeResponse struct for KeyfactorApiModelsOrchestratorJobsJobTypeResponse +type KeyfactorApiModelsOrchestratorJobsJobTypeResponse struct { + Id *string `json:"Id,omitempty"` + JobTypeName *string `json:"JobTypeName,omitempty"` + Description *string `json:"Description,omitempty"` + JobTypeFields []KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse `json:"JobTypeFields,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsOrchestratorJobsJobTypeResponse KeyfactorApiModelsOrchestratorJobsJobTypeResponse + +// NewKeyfactorApiModelsOrchestratorJobsJobTypeResponse instantiates a new KeyfactorApiModelsOrchestratorJobsJobTypeResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsOrchestratorJobsJobTypeResponse() *KeyfactorApiModelsOrchestratorJobsJobTypeResponse { + this := KeyfactorApiModelsOrchestratorJobsJobTypeResponse{} + return &this +} + +// NewKeyfactorApiModelsOrchestratorJobsJobTypeResponseWithDefaults instantiates a new KeyfactorApiModelsOrchestratorJobsJobTypeResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsOrchestratorJobsJobTypeResponseWithDefaults() *KeyfactorApiModelsOrchestratorJobsJobTypeResponse { + this := KeyfactorApiModelsOrchestratorJobsJobTypeResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorJobsJobTypeResponse) GetId() string { + if o == nil || isNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorJobsJobTypeResponse) GetIdOk() (*string, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorJobsJobTypeResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *KeyfactorApiModelsOrchestratorJobsJobTypeResponse) SetId(v string) { + o.Id = &v +} + +// GetJobTypeName returns the JobTypeName field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorJobsJobTypeResponse) GetJobTypeName() string { + if o == nil || isNil(o.JobTypeName) { + var ret string + return ret + } + return *o.JobTypeName +} + +// GetJobTypeNameOk returns a tuple with the JobTypeName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorJobsJobTypeResponse) GetJobTypeNameOk() (*string, bool) { + if o == nil || isNil(o.JobTypeName) { + return nil, false + } + return o.JobTypeName, true +} + +// HasJobTypeName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorJobsJobTypeResponse) HasJobTypeName() bool { + if o != nil && !isNil(o.JobTypeName) { + return true + } + + return false +} + +// SetJobTypeName gets a reference to the given string and assigns it to the JobTypeName field. +func (o *KeyfactorApiModelsOrchestratorJobsJobTypeResponse) SetJobTypeName(v string) { + o.JobTypeName = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorJobsJobTypeResponse) GetDescription() string { + if o == nil || isNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorJobsJobTypeResponse) GetDescriptionOk() (*string, bool) { + if o == nil || isNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorJobsJobTypeResponse) HasDescription() bool { + if o != nil && !isNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *KeyfactorApiModelsOrchestratorJobsJobTypeResponse) SetDescription(v string) { + o.Description = &v +} + +// GetJobTypeFields returns the JobTypeFields field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorJobsJobTypeResponse) GetJobTypeFields() []KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse { + if o == nil || isNil(o.JobTypeFields) { + var ret []KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse + return ret + } + return o.JobTypeFields +} + +// GetJobTypeFieldsOk returns a tuple with the JobTypeFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorJobsJobTypeResponse) GetJobTypeFieldsOk() ([]KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse, bool) { + if o == nil || isNil(o.JobTypeFields) { + return nil, false + } + return o.JobTypeFields, true +} + +// HasJobTypeFields returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorJobsJobTypeResponse) HasJobTypeFields() bool { + if o != nil && !isNil(o.JobTypeFields) { + return true + } + + return false +} + +// SetJobTypeFields gets a reference to the given []KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse and assigns it to the JobTypeFields field. +func (o *KeyfactorApiModelsOrchestratorJobsJobTypeResponse) SetJobTypeFields(v []KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse) { + o.JobTypeFields = v +} + +func (o KeyfactorApiModelsOrchestratorJobsJobTypeResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsOrchestratorJobsJobTypeResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.JobTypeName) { + toSerialize["JobTypeName"] = o.JobTypeName + } + if !isNil(o.Description) { + toSerialize["Description"] = o.Description + } + if !isNil(o.JobTypeFields) { + toSerialize["JobTypeFields"] = o.JobTypeFields + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsOrchestratorJobsJobTypeResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsOrchestratorJobsJobTypeResponse := _KeyfactorApiModelsOrchestratorJobsJobTypeResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsOrchestratorJobsJobTypeResponse); err == nil { + *o = KeyfactorApiModelsOrchestratorJobsJobTypeResponse(varKeyfactorApiModelsOrchestratorJobsJobTypeResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "JobTypeName") + delete(additionalProperties, "Description") + delete(additionalProperties, "JobTypeFields") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsOrchestratorJobsJobTypeResponse struct { + value *KeyfactorApiModelsOrchestratorJobsJobTypeResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsOrchestratorJobsJobTypeResponse) Get() *KeyfactorApiModelsOrchestratorJobsJobTypeResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsOrchestratorJobsJobTypeResponse) Set(val *KeyfactorApiModelsOrchestratorJobsJobTypeResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsOrchestratorJobsJobTypeResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsOrchestratorJobsJobTypeResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsOrchestratorJobsJobTypeResponse(val *KeyfactorApiModelsOrchestratorJobsJobTypeResponse) *NullableKeyfactorApiModelsOrchestratorJobsJobTypeResponse { + return &NullableKeyfactorApiModelsOrchestratorJobsJobTypeResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsOrchestratorJobsJobTypeResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsOrchestratorJobsJobTypeResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_orchestrator_jobs_reschedule_job_request.go b/v1/api/keyfactor/model_keyfactor_api_models_orchestrator_jobs_reschedule_job_request.go new file mode 100644 index 0000000..c4b6296 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_orchestrator_jobs_reschedule_job_request.go @@ -0,0 +1,197 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsOrchestratorJobsRescheduleJobRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsOrchestratorJobsRescheduleJobRequest{} + +// KeyfactorApiModelsOrchestratorJobsRescheduleJobRequest Class representing orchestrator jobs to be rescheduled +type KeyfactorApiModelsOrchestratorJobsRescheduleJobRequest struct { + // List of orchestrator job audit ids to be rescheduled + JobAuditIds []int64 `json:"JobAuditIds,omitempty"` + // Query identifying orchestrator jobs to be rescheduled + Query *string `json:"Query,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsOrchestratorJobsRescheduleJobRequest KeyfactorApiModelsOrchestratorJobsRescheduleJobRequest + +// NewKeyfactorApiModelsOrchestratorJobsRescheduleJobRequest instantiates a new KeyfactorApiModelsOrchestratorJobsRescheduleJobRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsOrchestratorJobsRescheduleJobRequest() *KeyfactorApiModelsOrchestratorJobsRescheduleJobRequest { + this := KeyfactorApiModelsOrchestratorJobsRescheduleJobRequest{} + return &this +} + +// NewKeyfactorApiModelsOrchestratorJobsRescheduleJobRequestWithDefaults instantiates a new KeyfactorApiModelsOrchestratorJobsRescheduleJobRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsOrchestratorJobsRescheduleJobRequestWithDefaults() *KeyfactorApiModelsOrchestratorJobsRescheduleJobRequest { + this := KeyfactorApiModelsOrchestratorJobsRescheduleJobRequest{} + return &this +} + +// GetJobAuditIds returns the JobAuditIds field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorJobsRescheduleJobRequest) GetJobAuditIds() []int64 { + if o == nil || isNil(o.JobAuditIds) { + var ret []int64 + return ret + } + return o.JobAuditIds +} + +// GetJobAuditIdsOk returns a tuple with the JobAuditIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorJobsRescheduleJobRequest) GetJobAuditIdsOk() ([]int64, bool) { + if o == nil || isNil(o.JobAuditIds) { + return nil, false + } + return o.JobAuditIds, true +} + +// HasJobAuditIds returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorJobsRescheduleJobRequest) HasJobAuditIds() bool { + if o != nil && !isNil(o.JobAuditIds) { + return true + } + + return false +} + +// SetJobAuditIds gets a reference to the given []int64 and assigns it to the JobAuditIds field. +func (o *KeyfactorApiModelsOrchestratorJobsRescheduleJobRequest) SetJobAuditIds(v []int64) { + o.JobAuditIds = v +} + +// GetQuery returns the Query field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorJobsRescheduleJobRequest) GetQuery() string { + if o == nil || isNil(o.Query) { + var ret string + return ret + } + return *o.Query +} + +// GetQueryOk returns a tuple with the Query field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorJobsRescheduleJobRequest) GetQueryOk() (*string, bool) { + if o == nil || isNil(o.Query) { + return nil, false + } + return o.Query, true +} + +// HasQuery returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorJobsRescheduleJobRequest) HasQuery() bool { + if o != nil && !isNil(o.Query) { + return true + } + + return false +} + +// SetQuery gets a reference to the given string and assigns it to the Query field. +func (o *KeyfactorApiModelsOrchestratorJobsRescheduleJobRequest) SetQuery(v string) { + o.Query = &v +} + +func (o KeyfactorApiModelsOrchestratorJobsRescheduleJobRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsOrchestratorJobsRescheduleJobRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.JobAuditIds) { + toSerialize["JobAuditIds"] = o.JobAuditIds + } + if !isNil(o.Query) { + toSerialize["Query"] = o.Query + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsOrchestratorJobsRescheduleJobRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsOrchestratorJobsRescheduleJobRequest := _KeyfactorApiModelsOrchestratorJobsRescheduleJobRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsOrchestratorJobsRescheduleJobRequest); err == nil { + *o = KeyfactorApiModelsOrchestratorJobsRescheduleJobRequest(varKeyfactorApiModelsOrchestratorJobsRescheduleJobRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "JobAuditIds") + delete(additionalProperties, "Query") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsOrchestratorJobsRescheduleJobRequest struct { + value *KeyfactorApiModelsOrchestratorJobsRescheduleJobRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsOrchestratorJobsRescheduleJobRequest) Get() *KeyfactorApiModelsOrchestratorJobsRescheduleJobRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsOrchestratorJobsRescheduleJobRequest) Set(val *KeyfactorApiModelsOrchestratorJobsRescheduleJobRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsOrchestratorJobsRescheduleJobRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsOrchestratorJobsRescheduleJobRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsOrchestratorJobsRescheduleJobRequest(val *KeyfactorApiModelsOrchestratorJobsRescheduleJobRequest) *NullableKeyfactorApiModelsOrchestratorJobsRescheduleJobRequest { + return &NullableKeyfactorApiModelsOrchestratorJobsRescheduleJobRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsOrchestratorJobsRescheduleJobRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsOrchestratorJobsRescheduleJobRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_orchestrator_jobs_unschedule_job_request.go b/v1/api/keyfactor/model_keyfactor_api_models_orchestrator_jobs_unschedule_job_request.go new file mode 100644 index 0000000..1a97138 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_orchestrator_jobs_unschedule_job_request.go @@ -0,0 +1,197 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest{} + +// KeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest Class representing orchestrator jobs to be unscheduled +type KeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest struct { + // List of orchestrator job ids to be unscheduled + JobIds []string `json:"JobIds,omitempty"` + // Query identifying orchestrator jobs to be unscheduled + Query *string `json:"Query,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest KeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest + +// NewKeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest instantiates a new KeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest() *KeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest { + this := KeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest{} + return &this +} + +// NewKeyfactorApiModelsOrchestratorJobsUnscheduleJobRequestWithDefaults instantiates a new KeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsOrchestratorJobsUnscheduleJobRequestWithDefaults() *KeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest { + this := KeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest{} + return &this +} + +// GetJobIds returns the JobIds field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest) GetJobIds() []string { + if o == nil || isNil(o.JobIds) { + var ret []string + return ret + } + return o.JobIds +} + +// GetJobIdsOk returns a tuple with the JobIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest) GetJobIdsOk() ([]string, bool) { + if o == nil || isNil(o.JobIds) { + return nil, false + } + return o.JobIds, true +} + +// HasJobIds returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest) HasJobIds() bool { + if o != nil && !isNil(o.JobIds) { + return true + } + + return false +} + +// SetJobIds gets a reference to the given []string and assigns it to the JobIds field. +func (o *KeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest) SetJobIds(v []string) { + o.JobIds = v +} + +// GetQuery returns the Query field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest) GetQuery() string { + if o == nil || isNil(o.Query) { + var ret string + return ret + } + return *o.Query +} + +// GetQueryOk returns a tuple with the Query field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest) GetQueryOk() (*string, bool) { + if o == nil || isNil(o.Query) { + return nil, false + } + return o.Query, true +} + +// HasQuery returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest) HasQuery() bool { + if o != nil && !isNil(o.Query) { + return true + } + + return false +} + +// SetQuery gets a reference to the given string and assigns it to the Query field. +func (o *KeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest) SetQuery(v string) { + o.Query = &v +} + +func (o KeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.JobIds) { + toSerialize["JobIds"] = o.JobIds + } + if !isNil(o.Query) { + toSerialize["Query"] = o.Query + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest := _KeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest); err == nil { + *o = KeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest(varKeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "JobIds") + delete(additionalProperties, "Query") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest struct { + value *KeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest) Get() *KeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest) Set(val *KeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest(val *KeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest) *NullableKeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest { + return &NullableKeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_orchestrators_agent_blueprint_jobs_response.go b/v1/api/keyfactor/model_keyfactor_api_models_orchestrators_agent_blueprint_jobs_response.go new file mode 100644 index 0000000..a61820d --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_orchestrators_agent_blueprint_jobs_response.go @@ -0,0 +1,973 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" + "time" +) + +// checks if the KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse{} + +// KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse struct for KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse +type KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse struct { + AgentBlueprintJobId *string `json:"AgentBlueprintJobId,omitempty"` + AgentBlueprintStoreId *string `json:"AgentBlueprintStoreId,omitempty"` + AgentBlueprintId *string `json:"AgentBlueprintId,omitempty"` + JobType *string `json:"JobType,omitempty"` + JobTypeName *string `json:"JobTypeName,omitempty"` + OperationType *int32 `json:"OperationType,omitempty"` + Thumbprint *string `json:"Thumbprint,omitempty"` + Contents *string `json:"Contents,omitempty"` + Alias *string `json:"Alias,omitempty"` + PrivateKeyEntry *bool `json:"PrivateKeyEntry,omitempty"` + Overwrite *bool `json:"Overwrite,omitempty"` + HasEntryPassword *bool `json:"HasEntryPassword,omitempty"` + HasPfxPassword *bool `json:"HasPfxPassword,omitempty"` + RequestTimestamp *time.Time `json:"RequestTimestamp,omitempty"` + KeyfactorSchedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"KeyfactorSchedule,omitempty"` + Subject *string `json:"Subject,omitempty"` + Directories *string `json:"Directories,omitempty"` + IgnoredDirectories *string `json:"IgnoredDirectories,omitempty"` + SymLinks *bool `json:"SymLinks,omitempty"` + Compatibility *bool `json:"Compatibility,omitempty"` + FileExtensions *string `json:"FileExtensions,omitempty"` + FileNamePatterns *string `json:"FileNamePatterns,omitempty"` + AgentBlueprintStores *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse `json:"AgentBlueprintStores,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse + +// NewKeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse instantiates a new KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse() *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse { + this := KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse{} + return &this +} + +// NewKeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponseWithDefaults instantiates a new KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponseWithDefaults() *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse { + this := KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse{} + return &this +} + +// GetAgentBlueprintJobId returns the AgentBlueprintJobId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetAgentBlueprintJobId() string { + if o == nil || isNil(o.AgentBlueprintJobId) { + var ret string + return ret + } + return *o.AgentBlueprintJobId +} + +// GetAgentBlueprintJobIdOk returns a tuple with the AgentBlueprintJobId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetAgentBlueprintJobIdOk() (*string, bool) { + if o == nil || isNil(o.AgentBlueprintJobId) { + return nil, false + } + return o.AgentBlueprintJobId, true +} + +// HasAgentBlueprintJobId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) HasAgentBlueprintJobId() bool { + if o != nil && !isNil(o.AgentBlueprintJobId) { + return true + } + + return false +} + +// SetAgentBlueprintJobId gets a reference to the given string and assigns it to the AgentBlueprintJobId field. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) SetAgentBlueprintJobId(v string) { + o.AgentBlueprintJobId = &v +} + +// GetAgentBlueprintStoreId returns the AgentBlueprintStoreId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetAgentBlueprintStoreId() string { + if o == nil || isNil(o.AgentBlueprintStoreId) { + var ret string + return ret + } + return *o.AgentBlueprintStoreId +} + +// GetAgentBlueprintStoreIdOk returns a tuple with the AgentBlueprintStoreId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetAgentBlueprintStoreIdOk() (*string, bool) { + if o == nil || isNil(o.AgentBlueprintStoreId) { + return nil, false + } + return o.AgentBlueprintStoreId, true +} + +// HasAgentBlueprintStoreId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) HasAgentBlueprintStoreId() bool { + if o != nil && !isNil(o.AgentBlueprintStoreId) { + return true + } + + return false +} + +// SetAgentBlueprintStoreId gets a reference to the given string and assigns it to the AgentBlueprintStoreId field. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) SetAgentBlueprintStoreId(v string) { + o.AgentBlueprintStoreId = &v +} + +// GetAgentBlueprintId returns the AgentBlueprintId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetAgentBlueprintId() string { + if o == nil || isNil(o.AgentBlueprintId) { + var ret string + return ret + } + return *o.AgentBlueprintId +} + +// GetAgentBlueprintIdOk returns a tuple with the AgentBlueprintId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetAgentBlueprintIdOk() (*string, bool) { + if o == nil || isNil(o.AgentBlueprintId) { + return nil, false + } + return o.AgentBlueprintId, true +} + +// HasAgentBlueprintId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) HasAgentBlueprintId() bool { + if o != nil && !isNil(o.AgentBlueprintId) { + return true + } + + return false +} + +// SetAgentBlueprintId gets a reference to the given string and assigns it to the AgentBlueprintId field. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) SetAgentBlueprintId(v string) { + o.AgentBlueprintId = &v +} + +// GetJobType returns the JobType field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetJobType() string { + if o == nil || isNil(o.JobType) { + var ret string + return ret + } + return *o.JobType +} + +// GetJobTypeOk returns a tuple with the JobType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetJobTypeOk() (*string, bool) { + if o == nil || isNil(o.JobType) { + return nil, false + } + return o.JobType, true +} + +// HasJobType returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) HasJobType() bool { + if o != nil && !isNil(o.JobType) { + return true + } + + return false +} + +// SetJobType gets a reference to the given string and assigns it to the JobType field. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) SetJobType(v string) { + o.JobType = &v +} + +// GetJobTypeName returns the JobTypeName field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetJobTypeName() string { + if o == nil || isNil(o.JobTypeName) { + var ret string + return ret + } + return *o.JobTypeName +} + +// GetJobTypeNameOk returns a tuple with the JobTypeName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetJobTypeNameOk() (*string, bool) { + if o == nil || isNil(o.JobTypeName) { + return nil, false + } + return o.JobTypeName, true +} + +// HasJobTypeName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) HasJobTypeName() bool { + if o != nil && !isNil(o.JobTypeName) { + return true + } + + return false +} + +// SetJobTypeName gets a reference to the given string and assigns it to the JobTypeName field. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) SetJobTypeName(v string) { + o.JobTypeName = &v +} + +// GetOperationType returns the OperationType field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetOperationType() int32 { + if o == nil || isNil(o.OperationType) { + var ret int32 + return ret + } + return *o.OperationType +} + +// GetOperationTypeOk returns a tuple with the OperationType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetOperationTypeOk() (*int32, bool) { + if o == nil || isNil(o.OperationType) { + return nil, false + } + return o.OperationType, true +} + +// HasOperationType returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) HasOperationType() bool { + if o != nil && !isNil(o.OperationType) { + return true + } + + return false +} + +// SetOperationType gets a reference to the given int32 and assigns it to the OperationType field. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) SetOperationType(v int32) { + o.OperationType = &v +} + +// GetThumbprint returns the Thumbprint field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetThumbprint() string { + if o == nil || isNil(o.Thumbprint) { + var ret string + return ret + } + return *o.Thumbprint +} + +// GetThumbprintOk returns a tuple with the Thumbprint field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetThumbprintOk() (*string, bool) { + if o == nil || isNil(o.Thumbprint) { + return nil, false + } + return o.Thumbprint, true +} + +// HasThumbprint returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) HasThumbprint() bool { + if o != nil && !isNil(o.Thumbprint) { + return true + } + + return false +} + +// SetThumbprint gets a reference to the given string and assigns it to the Thumbprint field. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) SetThumbprint(v string) { + o.Thumbprint = &v +} + +// GetContents returns the Contents field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetContents() string { + if o == nil || isNil(o.Contents) { + var ret string + return ret + } + return *o.Contents +} + +// GetContentsOk returns a tuple with the Contents field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetContentsOk() (*string, bool) { + if o == nil || isNil(o.Contents) { + return nil, false + } + return o.Contents, true +} + +// HasContents returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) HasContents() bool { + if o != nil && !isNil(o.Contents) { + return true + } + + return false +} + +// SetContents gets a reference to the given string and assigns it to the Contents field. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) SetContents(v string) { + o.Contents = &v +} + +// GetAlias returns the Alias field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetAlias() string { + if o == nil || isNil(o.Alias) { + var ret string + return ret + } + return *o.Alias +} + +// GetAliasOk returns a tuple with the Alias field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetAliasOk() (*string, bool) { + if o == nil || isNil(o.Alias) { + return nil, false + } + return o.Alias, true +} + +// HasAlias returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) HasAlias() bool { + if o != nil && !isNil(o.Alias) { + return true + } + + return false +} + +// SetAlias gets a reference to the given string and assigns it to the Alias field. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) SetAlias(v string) { + o.Alias = &v +} + +// GetPrivateKeyEntry returns the PrivateKeyEntry field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetPrivateKeyEntry() bool { + if o == nil || isNil(o.PrivateKeyEntry) { + var ret bool + return ret + } + return *o.PrivateKeyEntry +} + +// GetPrivateKeyEntryOk returns a tuple with the PrivateKeyEntry field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetPrivateKeyEntryOk() (*bool, bool) { + if o == nil || isNil(o.PrivateKeyEntry) { + return nil, false + } + return o.PrivateKeyEntry, true +} + +// HasPrivateKeyEntry returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) HasPrivateKeyEntry() bool { + if o != nil && !isNil(o.PrivateKeyEntry) { + return true + } + + return false +} + +// SetPrivateKeyEntry gets a reference to the given bool and assigns it to the PrivateKeyEntry field. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) SetPrivateKeyEntry(v bool) { + o.PrivateKeyEntry = &v +} + +// GetOverwrite returns the Overwrite field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetOverwrite() bool { + if o == nil || isNil(o.Overwrite) { + var ret bool + return ret + } + return *o.Overwrite +} + +// GetOverwriteOk returns a tuple with the Overwrite field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetOverwriteOk() (*bool, bool) { + if o == nil || isNil(o.Overwrite) { + return nil, false + } + return o.Overwrite, true +} + +// HasOverwrite returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) HasOverwrite() bool { + if o != nil && !isNil(o.Overwrite) { + return true + } + + return false +} + +// SetOverwrite gets a reference to the given bool and assigns it to the Overwrite field. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) SetOverwrite(v bool) { + o.Overwrite = &v +} + +// GetHasEntryPassword returns the HasEntryPassword field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetHasEntryPassword() bool { + if o == nil || isNil(o.HasEntryPassword) { + var ret bool + return ret + } + return *o.HasEntryPassword +} + +// GetHasEntryPasswordOk returns a tuple with the HasEntryPassword field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetHasEntryPasswordOk() (*bool, bool) { + if o == nil || isNil(o.HasEntryPassword) { + return nil, false + } + return o.HasEntryPassword, true +} + +// HasHasEntryPassword returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) HasHasEntryPassword() bool { + if o != nil && !isNil(o.HasEntryPassword) { + return true + } + + return false +} + +// SetHasEntryPassword gets a reference to the given bool and assigns it to the HasEntryPassword field. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) SetHasEntryPassword(v bool) { + o.HasEntryPassword = &v +} + +// GetHasPfxPassword returns the HasPfxPassword field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetHasPfxPassword() bool { + if o == nil || isNil(o.HasPfxPassword) { + var ret bool + return ret + } + return *o.HasPfxPassword +} + +// GetHasPfxPasswordOk returns a tuple with the HasPfxPassword field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetHasPfxPasswordOk() (*bool, bool) { + if o == nil || isNil(o.HasPfxPassword) { + return nil, false + } + return o.HasPfxPassword, true +} + +// HasHasPfxPassword returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) HasHasPfxPassword() bool { + if o != nil && !isNil(o.HasPfxPassword) { + return true + } + + return false +} + +// SetHasPfxPassword gets a reference to the given bool and assigns it to the HasPfxPassword field. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) SetHasPfxPassword(v bool) { + o.HasPfxPassword = &v +} + +// GetRequestTimestamp returns the RequestTimestamp field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetRequestTimestamp() time.Time { + if o == nil || isNil(o.RequestTimestamp) { + var ret time.Time + return ret + } + return *o.RequestTimestamp +} + +// GetRequestTimestampOk returns a tuple with the RequestTimestamp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetRequestTimestampOk() (*time.Time, bool) { + if o == nil || isNil(o.RequestTimestamp) { + return nil, false + } + return o.RequestTimestamp, true +} + +// HasRequestTimestamp returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) HasRequestTimestamp() bool { + if o != nil && !isNil(o.RequestTimestamp) { + return true + } + + return false +} + +// SetRequestTimestamp gets a reference to the given time.Time and assigns it to the RequestTimestamp field. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) SetRequestTimestamp(v time.Time) { + o.RequestTimestamp = &v +} + +// GetKeyfactorSchedule returns the KeyfactorSchedule field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetKeyfactorSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.KeyfactorSchedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.KeyfactorSchedule +} + +// GetKeyfactorScheduleOk returns a tuple with the KeyfactorSchedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetKeyfactorScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.KeyfactorSchedule) { + return nil, false + } + return o.KeyfactorSchedule, true +} + +// HasKeyfactorSchedule returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) HasKeyfactorSchedule() bool { + if o != nil && !isNil(o.KeyfactorSchedule) { + return true + } + + return false +} + +// SetKeyfactorSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the KeyfactorSchedule field. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) SetKeyfactorSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.KeyfactorSchedule = &v +} + +// GetSubject returns the Subject field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetSubject() string { + if o == nil || isNil(o.Subject) { + var ret string + return ret + } + return *o.Subject +} + +// GetSubjectOk returns a tuple with the Subject field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetSubjectOk() (*string, bool) { + if o == nil || isNil(o.Subject) { + return nil, false + } + return o.Subject, true +} + +// HasSubject returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) HasSubject() bool { + if o != nil && !isNil(o.Subject) { + return true + } + + return false +} + +// SetSubject gets a reference to the given string and assigns it to the Subject field. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) SetSubject(v string) { + o.Subject = &v +} + +// GetDirectories returns the Directories field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetDirectories() string { + if o == nil || isNil(o.Directories) { + var ret string + return ret + } + return *o.Directories +} + +// GetDirectoriesOk returns a tuple with the Directories field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetDirectoriesOk() (*string, bool) { + if o == nil || isNil(o.Directories) { + return nil, false + } + return o.Directories, true +} + +// HasDirectories returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) HasDirectories() bool { + if o != nil && !isNil(o.Directories) { + return true + } + + return false +} + +// SetDirectories gets a reference to the given string and assigns it to the Directories field. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) SetDirectories(v string) { + o.Directories = &v +} + +// GetIgnoredDirectories returns the IgnoredDirectories field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetIgnoredDirectories() string { + if o == nil || isNil(o.IgnoredDirectories) { + var ret string + return ret + } + return *o.IgnoredDirectories +} + +// GetIgnoredDirectoriesOk returns a tuple with the IgnoredDirectories field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetIgnoredDirectoriesOk() (*string, bool) { + if o == nil || isNil(o.IgnoredDirectories) { + return nil, false + } + return o.IgnoredDirectories, true +} + +// HasIgnoredDirectories returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) HasIgnoredDirectories() bool { + if o != nil && !isNil(o.IgnoredDirectories) { + return true + } + + return false +} + +// SetIgnoredDirectories gets a reference to the given string and assigns it to the IgnoredDirectories field. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) SetIgnoredDirectories(v string) { + o.IgnoredDirectories = &v +} + +// GetSymLinks returns the SymLinks field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetSymLinks() bool { + if o == nil || isNil(o.SymLinks) { + var ret bool + return ret + } + return *o.SymLinks +} + +// GetSymLinksOk returns a tuple with the SymLinks field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetSymLinksOk() (*bool, bool) { + if o == nil || isNil(o.SymLinks) { + return nil, false + } + return o.SymLinks, true +} + +// HasSymLinks returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) HasSymLinks() bool { + if o != nil && !isNil(o.SymLinks) { + return true + } + + return false +} + +// SetSymLinks gets a reference to the given bool and assigns it to the SymLinks field. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) SetSymLinks(v bool) { + o.SymLinks = &v +} + +// GetCompatibility returns the Compatibility field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetCompatibility() bool { + if o == nil || isNil(o.Compatibility) { + var ret bool + return ret + } + return *o.Compatibility +} + +// GetCompatibilityOk returns a tuple with the Compatibility field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetCompatibilityOk() (*bool, bool) { + if o == nil || isNil(o.Compatibility) { + return nil, false + } + return o.Compatibility, true +} + +// HasCompatibility returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) HasCompatibility() bool { + if o != nil && !isNil(o.Compatibility) { + return true + } + + return false +} + +// SetCompatibility gets a reference to the given bool and assigns it to the Compatibility field. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) SetCompatibility(v bool) { + o.Compatibility = &v +} + +// GetFileExtensions returns the FileExtensions field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetFileExtensions() string { + if o == nil || isNil(o.FileExtensions) { + var ret string + return ret + } + return *o.FileExtensions +} + +// GetFileExtensionsOk returns a tuple with the FileExtensions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetFileExtensionsOk() (*string, bool) { + if o == nil || isNil(o.FileExtensions) { + return nil, false + } + return o.FileExtensions, true +} + +// HasFileExtensions returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) HasFileExtensions() bool { + if o != nil && !isNil(o.FileExtensions) { + return true + } + + return false +} + +// SetFileExtensions gets a reference to the given string and assigns it to the FileExtensions field. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) SetFileExtensions(v string) { + o.FileExtensions = &v +} + +// GetFileNamePatterns returns the FileNamePatterns field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetFileNamePatterns() string { + if o == nil || isNil(o.FileNamePatterns) { + var ret string + return ret + } + return *o.FileNamePatterns +} + +// GetFileNamePatternsOk returns a tuple with the FileNamePatterns field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetFileNamePatternsOk() (*string, bool) { + if o == nil || isNil(o.FileNamePatterns) { + return nil, false + } + return o.FileNamePatterns, true +} + +// HasFileNamePatterns returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) HasFileNamePatterns() bool { + if o != nil && !isNil(o.FileNamePatterns) { + return true + } + + return false +} + +// SetFileNamePatterns gets a reference to the given string and assigns it to the FileNamePatterns field. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) SetFileNamePatterns(v string) { + o.FileNamePatterns = &v +} + +// GetAgentBlueprintStores returns the AgentBlueprintStores field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetAgentBlueprintStores() KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse { + if o == nil || isNil(o.AgentBlueprintStores) { + var ret KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse + return ret + } + return *o.AgentBlueprintStores +} + +// GetAgentBlueprintStoresOk returns a tuple with the AgentBlueprintStores field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetAgentBlueprintStoresOk() (*KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse, bool) { + if o == nil || isNil(o.AgentBlueprintStores) { + return nil, false + } + return o.AgentBlueprintStores, true +} + +// HasAgentBlueprintStores returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) HasAgentBlueprintStores() bool { + if o != nil && !isNil(o.AgentBlueprintStores) { + return true + } + + return false +} + +// SetAgentBlueprintStores gets a reference to the given KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse and assigns it to the AgentBlueprintStores field. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) SetAgentBlueprintStores(v KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) { + o.AgentBlueprintStores = &v +} + +func (o KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.AgentBlueprintJobId) { + toSerialize["AgentBlueprintJobId"] = o.AgentBlueprintJobId + } + if !isNil(o.AgentBlueprintStoreId) { + toSerialize["AgentBlueprintStoreId"] = o.AgentBlueprintStoreId + } + if !isNil(o.AgentBlueprintId) { + toSerialize["AgentBlueprintId"] = o.AgentBlueprintId + } + if !isNil(o.JobType) { + toSerialize["JobType"] = o.JobType + } + if !isNil(o.JobTypeName) { + toSerialize["JobTypeName"] = o.JobTypeName + } + if !isNil(o.OperationType) { + toSerialize["OperationType"] = o.OperationType + } + if !isNil(o.Thumbprint) { + toSerialize["Thumbprint"] = o.Thumbprint + } + if !isNil(o.Contents) { + toSerialize["Contents"] = o.Contents + } + if !isNil(o.Alias) { + toSerialize["Alias"] = o.Alias + } + if !isNil(o.PrivateKeyEntry) { + toSerialize["PrivateKeyEntry"] = o.PrivateKeyEntry + } + if !isNil(o.Overwrite) { + toSerialize["Overwrite"] = o.Overwrite + } + if !isNil(o.HasEntryPassword) { + toSerialize["HasEntryPassword"] = o.HasEntryPassword + } + if !isNil(o.HasPfxPassword) { + toSerialize["HasPfxPassword"] = o.HasPfxPassword + } + if !isNil(o.RequestTimestamp) { + toSerialize["RequestTimestamp"] = o.RequestTimestamp + } + if !isNil(o.KeyfactorSchedule) { + toSerialize["KeyfactorSchedule"] = o.KeyfactorSchedule + } + if !isNil(o.Subject) { + toSerialize["Subject"] = o.Subject + } + if !isNil(o.Directories) { + toSerialize["Directories"] = o.Directories + } + if !isNil(o.IgnoredDirectories) { + toSerialize["IgnoredDirectories"] = o.IgnoredDirectories + } + if !isNil(o.SymLinks) { + toSerialize["SymLinks"] = o.SymLinks + } + if !isNil(o.Compatibility) { + toSerialize["Compatibility"] = o.Compatibility + } + if !isNil(o.FileExtensions) { + toSerialize["FileExtensions"] = o.FileExtensions + } + if !isNil(o.FileNamePatterns) { + toSerialize["FileNamePatterns"] = o.FileNamePatterns + } + if !isNil(o.AgentBlueprintStores) { + toSerialize["AgentBlueprintStores"] = o.AgentBlueprintStores + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse := _KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse); err == nil { + *o = KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse(varKeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "AgentBlueprintJobId") + delete(additionalProperties, "AgentBlueprintStoreId") + delete(additionalProperties, "AgentBlueprintId") + delete(additionalProperties, "JobType") + delete(additionalProperties, "JobTypeName") + delete(additionalProperties, "OperationType") + delete(additionalProperties, "Thumbprint") + delete(additionalProperties, "Contents") + delete(additionalProperties, "Alias") + delete(additionalProperties, "PrivateKeyEntry") + delete(additionalProperties, "Overwrite") + delete(additionalProperties, "HasEntryPassword") + delete(additionalProperties, "HasPfxPassword") + delete(additionalProperties, "RequestTimestamp") + delete(additionalProperties, "KeyfactorSchedule") + delete(additionalProperties, "Subject") + delete(additionalProperties, "Directories") + delete(additionalProperties, "IgnoredDirectories") + delete(additionalProperties, "SymLinks") + delete(additionalProperties, "Compatibility") + delete(additionalProperties, "FileExtensions") + delete(additionalProperties, "FileNamePatterns") + delete(additionalProperties, "AgentBlueprintStores") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse struct { + value *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) Get() *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) Set(val *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse(val *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) *NullableKeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse { + return &NullableKeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_orchestrators_agent_blueprint_response.go b/v1/api/keyfactor/model_keyfactor_api_models_orchestrators_agent_blueprint_response.go new file mode 100644 index 0000000..2bb15f0 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_orchestrators_agent_blueprint_response.go @@ -0,0 +1,270 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" + "time" +) + +// checks if the KeyfactorApiModelsOrchestratorsAgentBlueprintResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsOrchestratorsAgentBlueprintResponse{} + +// KeyfactorApiModelsOrchestratorsAgentBlueprintResponse struct for KeyfactorApiModelsOrchestratorsAgentBlueprintResponse +type KeyfactorApiModelsOrchestratorsAgentBlueprintResponse struct { + AgentBlueprintId *string `json:"AgentBlueprintId,omitempty"` + Name *string `json:"Name,omitempty"` + RequiredCapabilities []string `json:"RequiredCapabilities,omitempty"` + LastModified *time.Time `json:"LastModified,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsOrchestratorsAgentBlueprintResponse KeyfactorApiModelsOrchestratorsAgentBlueprintResponse + +// NewKeyfactorApiModelsOrchestratorsAgentBlueprintResponse instantiates a new KeyfactorApiModelsOrchestratorsAgentBlueprintResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsOrchestratorsAgentBlueprintResponse() *KeyfactorApiModelsOrchestratorsAgentBlueprintResponse { + this := KeyfactorApiModelsOrchestratorsAgentBlueprintResponse{} + return &this +} + +// NewKeyfactorApiModelsOrchestratorsAgentBlueprintResponseWithDefaults instantiates a new KeyfactorApiModelsOrchestratorsAgentBlueprintResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsOrchestratorsAgentBlueprintResponseWithDefaults() *KeyfactorApiModelsOrchestratorsAgentBlueprintResponse { + this := KeyfactorApiModelsOrchestratorsAgentBlueprintResponse{} + return &this +} + +// GetAgentBlueprintId returns the AgentBlueprintId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintResponse) GetAgentBlueprintId() string { + if o == nil || isNil(o.AgentBlueprintId) { + var ret string + return ret + } + return *o.AgentBlueprintId +} + +// GetAgentBlueprintIdOk returns a tuple with the AgentBlueprintId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintResponse) GetAgentBlueprintIdOk() (*string, bool) { + if o == nil || isNil(o.AgentBlueprintId) { + return nil, false + } + return o.AgentBlueprintId, true +} + +// HasAgentBlueprintId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintResponse) HasAgentBlueprintId() bool { + if o != nil && !isNil(o.AgentBlueprintId) { + return true + } + + return false +} + +// SetAgentBlueprintId gets a reference to the given string and assigns it to the AgentBlueprintId field. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintResponse) SetAgentBlueprintId(v string) { + o.AgentBlueprintId = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintResponse) GetName() string { + if o == nil || isNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintResponse) GetNameOk() (*string, bool) { + if o == nil || isNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintResponse) HasName() bool { + if o != nil && !isNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintResponse) SetName(v string) { + o.Name = &v +} + +// GetRequiredCapabilities returns the RequiredCapabilities field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintResponse) GetRequiredCapabilities() []string { + if o == nil || isNil(o.RequiredCapabilities) { + var ret []string + return ret + } + return o.RequiredCapabilities +} + +// GetRequiredCapabilitiesOk returns a tuple with the RequiredCapabilities field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintResponse) GetRequiredCapabilitiesOk() ([]string, bool) { + if o == nil || isNil(o.RequiredCapabilities) { + return nil, false + } + return o.RequiredCapabilities, true +} + +// HasRequiredCapabilities returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintResponse) HasRequiredCapabilities() bool { + if o != nil && !isNil(o.RequiredCapabilities) { + return true + } + + return false +} + +// SetRequiredCapabilities gets a reference to the given []string and assigns it to the RequiredCapabilities field. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintResponse) SetRequiredCapabilities(v []string) { + o.RequiredCapabilities = v +} + +// GetLastModified returns the LastModified field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintResponse) GetLastModified() time.Time { + if o == nil || isNil(o.LastModified) { + var ret time.Time + return ret + } + return *o.LastModified +} + +// GetLastModifiedOk returns a tuple with the LastModified field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintResponse) GetLastModifiedOk() (*time.Time, bool) { + if o == nil || isNil(o.LastModified) { + return nil, false + } + return o.LastModified, true +} + +// HasLastModified returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintResponse) HasLastModified() bool { + if o != nil && !isNil(o.LastModified) { + return true + } + + return false +} + +// SetLastModified gets a reference to the given time.Time and assigns it to the LastModified field. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintResponse) SetLastModified(v time.Time) { + o.LastModified = &v +} + +func (o KeyfactorApiModelsOrchestratorsAgentBlueprintResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsOrchestratorsAgentBlueprintResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.AgentBlueprintId) { + toSerialize["AgentBlueprintId"] = o.AgentBlueprintId + } + if !isNil(o.Name) { + toSerialize["Name"] = o.Name + } + if !isNil(o.RequiredCapabilities) { + toSerialize["RequiredCapabilities"] = o.RequiredCapabilities + } + if !isNil(o.LastModified) { + toSerialize["LastModified"] = o.LastModified + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsOrchestratorsAgentBlueprintResponse := _KeyfactorApiModelsOrchestratorsAgentBlueprintResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsOrchestratorsAgentBlueprintResponse); err == nil { + *o = KeyfactorApiModelsOrchestratorsAgentBlueprintResponse(varKeyfactorApiModelsOrchestratorsAgentBlueprintResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "AgentBlueprintId") + delete(additionalProperties, "Name") + delete(additionalProperties, "RequiredCapabilities") + delete(additionalProperties, "LastModified") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsOrchestratorsAgentBlueprintResponse struct { + value *KeyfactorApiModelsOrchestratorsAgentBlueprintResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsOrchestratorsAgentBlueprintResponse) Get() *KeyfactorApiModelsOrchestratorsAgentBlueprintResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsOrchestratorsAgentBlueprintResponse) Set(val *KeyfactorApiModelsOrchestratorsAgentBlueprintResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsOrchestratorsAgentBlueprintResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsOrchestratorsAgentBlueprintResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsOrchestratorsAgentBlueprintResponse(val *KeyfactorApiModelsOrchestratorsAgentBlueprintResponse) *NullableKeyfactorApiModelsOrchestratorsAgentBlueprintResponse { + return &NullableKeyfactorApiModelsOrchestratorsAgentBlueprintResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsOrchestratorsAgentBlueprintResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsOrchestratorsAgentBlueprintResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_orchestrators_agent_blueprint_stores_response.go b/v1/api/keyfactor/model_keyfactor_api_models_orchestrators_agent_blueprint_stores_response.go new file mode 100644 index 0000000..f561d2a --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_orchestrators_agent_blueprint_stores_response.go @@ -0,0 +1,454 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse{} + +// KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse struct for KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse +type KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse struct { + AgentBlueprintStoreId *string `json:"AgentBlueprintStoreId,omitempty"` + AgentBlueprintId *string `json:"AgentBlueprintId,omitempty"` + StorePath *string `json:"StorePath,omitempty"` + ContainerId *int32 `json:"ContainerId,omitempty"` + CertStoreType *int32 `json:"CertStoreType,omitempty"` + CertStoreTypeName *string `json:"CertStoreTypeName,omitempty"` + Approved *bool `json:"Approved,omitempty"` + CreateIfMissing *bool `json:"CreateIfMissing,omitempty"` + Properties *string `json:"Properties,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse + +// NewKeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse instantiates a new KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse() *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse { + this := KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse{} + return &this +} + +// NewKeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponseWithDefaults instantiates a new KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponseWithDefaults() *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse { + this := KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse{} + return &this +} + +// GetAgentBlueprintStoreId returns the AgentBlueprintStoreId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) GetAgentBlueprintStoreId() string { + if o == nil || isNil(o.AgentBlueprintStoreId) { + var ret string + return ret + } + return *o.AgentBlueprintStoreId +} + +// GetAgentBlueprintStoreIdOk returns a tuple with the AgentBlueprintStoreId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) GetAgentBlueprintStoreIdOk() (*string, bool) { + if o == nil || isNil(o.AgentBlueprintStoreId) { + return nil, false + } + return o.AgentBlueprintStoreId, true +} + +// HasAgentBlueprintStoreId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) HasAgentBlueprintStoreId() bool { + if o != nil && !isNil(o.AgentBlueprintStoreId) { + return true + } + + return false +} + +// SetAgentBlueprintStoreId gets a reference to the given string and assigns it to the AgentBlueprintStoreId field. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) SetAgentBlueprintStoreId(v string) { + o.AgentBlueprintStoreId = &v +} + +// GetAgentBlueprintId returns the AgentBlueprintId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) GetAgentBlueprintId() string { + if o == nil || isNil(o.AgentBlueprintId) { + var ret string + return ret + } + return *o.AgentBlueprintId +} + +// GetAgentBlueprintIdOk returns a tuple with the AgentBlueprintId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) GetAgentBlueprintIdOk() (*string, bool) { + if o == nil || isNil(o.AgentBlueprintId) { + return nil, false + } + return o.AgentBlueprintId, true +} + +// HasAgentBlueprintId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) HasAgentBlueprintId() bool { + if o != nil && !isNil(o.AgentBlueprintId) { + return true + } + + return false +} + +// SetAgentBlueprintId gets a reference to the given string and assigns it to the AgentBlueprintId field. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) SetAgentBlueprintId(v string) { + o.AgentBlueprintId = &v +} + +// GetStorePath returns the StorePath field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) GetStorePath() string { + if o == nil || isNil(o.StorePath) { + var ret string + return ret + } + return *o.StorePath +} + +// GetStorePathOk returns a tuple with the StorePath field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) GetStorePathOk() (*string, bool) { + if o == nil || isNil(o.StorePath) { + return nil, false + } + return o.StorePath, true +} + +// HasStorePath returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) HasStorePath() bool { + if o != nil && !isNil(o.StorePath) { + return true + } + + return false +} + +// SetStorePath gets a reference to the given string and assigns it to the StorePath field. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) SetStorePath(v string) { + o.StorePath = &v +} + +// GetContainerId returns the ContainerId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) GetContainerId() int32 { + if o == nil || isNil(o.ContainerId) { + var ret int32 + return ret + } + return *o.ContainerId +} + +// GetContainerIdOk returns a tuple with the ContainerId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) GetContainerIdOk() (*int32, bool) { + if o == nil || isNil(o.ContainerId) { + return nil, false + } + return o.ContainerId, true +} + +// HasContainerId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) HasContainerId() bool { + if o != nil && !isNil(o.ContainerId) { + return true + } + + return false +} + +// SetContainerId gets a reference to the given int32 and assigns it to the ContainerId field. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) SetContainerId(v int32) { + o.ContainerId = &v +} + +// GetCertStoreType returns the CertStoreType field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) GetCertStoreType() int32 { + if o == nil || isNil(o.CertStoreType) { + var ret int32 + return ret + } + return *o.CertStoreType +} + +// GetCertStoreTypeOk returns a tuple with the CertStoreType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) GetCertStoreTypeOk() (*int32, bool) { + if o == nil || isNil(o.CertStoreType) { + return nil, false + } + return o.CertStoreType, true +} + +// HasCertStoreType returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) HasCertStoreType() bool { + if o != nil && !isNil(o.CertStoreType) { + return true + } + + return false +} + +// SetCertStoreType gets a reference to the given int32 and assigns it to the CertStoreType field. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) SetCertStoreType(v int32) { + o.CertStoreType = &v +} + +// GetCertStoreTypeName returns the CertStoreTypeName field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) GetCertStoreTypeName() string { + if o == nil || isNil(o.CertStoreTypeName) { + var ret string + return ret + } + return *o.CertStoreTypeName +} + +// GetCertStoreTypeNameOk returns a tuple with the CertStoreTypeName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) GetCertStoreTypeNameOk() (*string, bool) { + if o == nil || isNil(o.CertStoreTypeName) { + return nil, false + } + return o.CertStoreTypeName, true +} + +// HasCertStoreTypeName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) HasCertStoreTypeName() bool { + if o != nil && !isNil(o.CertStoreTypeName) { + return true + } + + return false +} + +// SetCertStoreTypeName gets a reference to the given string and assigns it to the CertStoreTypeName field. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) SetCertStoreTypeName(v string) { + o.CertStoreTypeName = &v +} + +// GetApproved returns the Approved field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) GetApproved() bool { + if o == nil || isNil(o.Approved) { + var ret bool + return ret + } + return *o.Approved +} + +// GetApprovedOk returns a tuple with the Approved field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) GetApprovedOk() (*bool, bool) { + if o == nil || isNil(o.Approved) { + return nil, false + } + return o.Approved, true +} + +// HasApproved returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) HasApproved() bool { + if o != nil && !isNil(o.Approved) { + return true + } + + return false +} + +// SetApproved gets a reference to the given bool and assigns it to the Approved field. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) SetApproved(v bool) { + o.Approved = &v +} + +// GetCreateIfMissing returns the CreateIfMissing field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) GetCreateIfMissing() bool { + if o == nil || isNil(o.CreateIfMissing) { + var ret bool + return ret + } + return *o.CreateIfMissing +} + +// GetCreateIfMissingOk returns a tuple with the CreateIfMissing field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) GetCreateIfMissingOk() (*bool, bool) { + if o == nil || isNil(o.CreateIfMissing) { + return nil, false + } + return o.CreateIfMissing, true +} + +// HasCreateIfMissing returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) HasCreateIfMissing() bool { + if o != nil && !isNil(o.CreateIfMissing) { + return true + } + + return false +} + +// SetCreateIfMissing gets a reference to the given bool and assigns it to the CreateIfMissing field. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) SetCreateIfMissing(v bool) { + o.CreateIfMissing = &v +} + +// GetProperties returns the Properties field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) GetProperties() string { + if o == nil || isNil(o.Properties) { + var ret string + return ret + } + return *o.Properties +} + +// GetPropertiesOk returns a tuple with the Properties field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) GetPropertiesOk() (*string, bool) { + if o == nil || isNil(o.Properties) { + return nil, false + } + return o.Properties, true +} + +// HasProperties returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) HasProperties() bool { + if o != nil && !isNil(o.Properties) { + return true + } + + return false +} + +// SetProperties gets a reference to the given string and assigns it to the Properties field. +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) SetProperties(v string) { + o.Properties = &v +} + +func (o KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.AgentBlueprintStoreId) { + toSerialize["AgentBlueprintStoreId"] = o.AgentBlueprintStoreId + } + if !isNil(o.AgentBlueprintId) { + toSerialize["AgentBlueprintId"] = o.AgentBlueprintId + } + if !isNil(o.StorePath) { + toSerialize["StorePath"] = o.StorePath + } + if !isNil(o.ContainerId) { + toSerialize["ContainerId"] = o.ContainerId + } + if !isNil(o.CertStoreType) { + toSerialize["CertStoreType"] = o.CertStoreType + } + if !isNil(o.CertStoreTypeName) { + toSerialize["CertStoreTypeName"] = o.CertStoreTypeName + } + if !isNil(o.Approved) { + toSerialize["Approved"] = o.Approved + } + if !isNil(o.CreateIfMissing) { + toSerialize["CreateIfMissing"] = o.CreateIfMissing + } + if !isNil(o.Properties) { + toSerialize["Properties"] = o.Properties + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse := _KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse); err == nil { + *o = KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse(varKeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "AgentBlueprintStoreId") + delete(additionalProperties, "AgentBlueprintId") + delete(additionalProperties, "StorePath") + delete(additionalProperties, "ContainerId") + delete(additionalProperties, "CertStoreType") + delete(additionalProperties, "CertStoreTypeName") + delete(additionalProperties, "Approved") + delete(additionalProperties, "CreateIfMissing") + delete(additionalProperties, "Properties") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse struct { + value *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) Get() *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) Set(val *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse(val *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) *NullableKeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse { + return &NullableKeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_orchestrators_agent_response.go b/v1/api/keyfactor/model_keyfactor_api_models_orchestrators_agent_response.go new file mode 100644 index 0000000..7f02ff0 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_orchestrators_agent_response.go @@ -0,0 +1,677 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" + "time" +) + +// checks if the KeyfactorApiModelsOrchestratorsAgentResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsOrchestratorsAgentResponse{} + +// KeyfactorApiModelsOrchestratorsAgentResponse struct for KeyfactorApiModelsOrchestratorsAgentResponse +type KeyfactorApiModelsOrchestratorsAgentResponse struct { + AgentId *string `json:"AgentId,omitempty"` + ClientMachine *string `json:"ClientMachine,omitempty"` + Username *string `json:"Username,omitempty"` + AgentPlatform *int32 `json:"AgentPlatform,omitempty"` + Version *string `json:"Version,omitempty"` + Status *int32 `json:"Status,omitempty"` + LastSeen *time.Time `json:"LastSeen,omitempty"` + Capabilities []string `json:"Capabilities,omitempty"` + Blueprint *string `json:"Blueprint,omitempty"` + Thumbprint *string `json:"Thumbprint,omitempty"` + LegacyThumbprint *string `json:"LegacyThumbprint,omitempty"` + AuthCertificateReenrollment *string `json:"AuthCertificateReenrollment,omitempty"` + LastThumbprintUsed *string `json:"LastThumbprintUsed,omitempty"` + LastErrorCode *int64 `json:"LastErrorCode,omitempty"` + LastErrorMessage *string `json:"LastErrorMessage,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsOrchestratorsAgentResponse KeyfactorApiModelsOrchestratorsAgentResponse + +// NewKeyfactorApiModelsOrchestratorsAgentResponse instantiates a new KeyfactorApiModelsOrchestratorsAgentResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsOrchestratorsAgentResponse() *KeyfactorApiModelsOrchestratorsAgentResponse { + this := KeyfactorApiModelsOrchestratorsAgentResponse{} + return &this +} + +// NewKeyfactorApiModelsOrchestratorsAgentResponseWithDefaults instantiates a new KeyfactorApiModelsOrchestratorsAgentResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsOrchestratorsAgentResponseWithDefaults() *KeyfactorApiModelsOrchestratorsAgentResponse { + this := KeyfactorApiModelsOrchestratorsAgentResponse{} + return &this +} + +// GetAgentId returns the AgentId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetAgentId() string { + if o == nil || isNil(o.AgentId) { + var ret string + return ret + } + return *o.AgentId +} + +// GetAgentIdOk returns a tuple with the AgentId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetAgentIdOk() (*string, bool) { + if o == nil || isNil(o.AgentId) { + return nil, false + } + return o.AgentId, true +} + +// HasAgentId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) HasAgentId() bool { + if o != nil && !isNil(o.AgentId) { + return true + } + + return false +} + +// SetAgentId gets a reference to the given string and assigns it to the AgentId field. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) SetAgentId(v string) { + o.AgentId = &v +} + +// GetClientMachine returns the ClientMachine field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetClientMachine() string { + if o == nil || isNil(o.ClientMachine) { + var ret string + return ret + } + return *o.ClientMachine +} + +// GetClientMachineOk returns a tuple with the ClientMachine field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetClientMachineOk() (*string, bool) { + if o == nil || isNil(o.ClientMachine) { + return nil, false + } + return o.ClientMachine, true +} + +// HasClientMachine returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) HasClientMachine() bool { + if o != nil && !isNil(o.ClientMachine) { + return true + } + + return false +} + +// SetClientMachine gets a reference to the given string and assigns it to the ClientMachine field. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) SetClientMachine(v string) { + o.ClientMachine = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetUsername() string { + if o == nil || isNil(o.Username) { + var ret string + return ret + } + return *o.Username +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetUsernameOk() (*string, bool) { + if o == nil || isNil(o.Username) { + return nil, false + } + return o.Username, true +} + +// HasUsername returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) HasUsername() bool { + if o != nil && !isNil(o.Username) { + return true + } + + return false +} + +// SetUsername gets a reference to the given string and assigns it to the Username field. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) SetUsername(v string) { + o.Username = &v +} + +// GetAgentPlatform returns the AgentPlatform field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetAgentPlatform() int32 { + if o == nil || isNil(o.AgentPlatform) { + var ret int32 + return ret + } + return *o.AgentPlatform +} + +// GetAgentPlatformOk returns a tuple with the AgentPlatform field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetAgentPlatformOk() (*int32, bool) { + if o == nil || isNil(o.AgentPlatform) { + return nil, false + } + return o.AgentPlatform, true +} + +// HasAgentPlatform returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) HasAgentPlatform() bool { + if o != nil && !isNil(o.AgentPlatform) { + return true + } + + return false +} + +// SetAgentPlatform gets a reference to the given int32 and assigns it to the AgentPlatform field. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) SetAgentPlatform(v int32) { + o.AgentPlatform = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetVersion() string { + if o == nil || isNil(o.Version) { + var ret string + return ret + } + return *o.Version +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetVersionOk() (*string, bool) { + if o == nil || isNil(o.Version) { + return nil, false + } + return o.Version, true +} + +// HasVersion returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) HasVersion() bool { + if o != nil && !isNil(o.Version) { + return true + } + + return false +} + +// SetVersion gets a reference to the given string and assigns it to the Version field. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) SetVersion(v string) { + o.Version = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetStatus() int32 { + if o == nil || isNil(o.Status) { + var ret int32 + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetStatusOk() (*int32, bool) { + if o == nil || isNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) HasStatus() bool { + if o != nil && !isNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given int32 and assigns it to the Status field. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) SetStatus(v int32) { + o.Status = &v +} + +// GetLastSeen returns the LastSeen field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetLastSeen() time.Time { + if o == nil || isNil(o.LastSeen) { + var ret time.Time + return ret + } + return *o.LastSeen +} + +// GetLastSeenOk returns a tuple with the LastSeen field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetLastSeenOk() (*time.Time, bool) { + if o == nil || isNil(o.LastSeen) { + return nil, false + } + return o.LastSeen, true +} + +// HasLastSeen returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) HasLastSeen() bool { + if o != nil && !isNil(o.LastSeen) { + return true + } + + return false +} + +// SetLastSeen gets a reference to the given time.Time and assigns it to the LastSeen field. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) SetLastSeen(v time.Time) { + o.LastSeen = &v +} + +// GetCapabilities returns the Capabilities field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetCapabilities() []string { + if o == nil || isNil(o.Capabilities) { + var ret []string + return ret + } + return o.Capabilities +} + +// GetCapabilitiesOk returns a tuple with the Capabilities field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetCapabilitiesOk() ([]string, bool) { + if o == nil || isNil(o.Capabilities) { + return nil, false + } + return o.Capabilities, true +} + +// HasCapabilities returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) HasCapabilities() bool { + if o != nil && !isNil(o.Capabilities) { + return true + } + + return false +} + +// SetCapabilities gets a reference to the given []string and assigns it to the Capabilities field. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) SetCapabilities(v []string) { + o.Capabilities = v +} + +// GetBlueprint returns the Blueprint field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetBlueprint() string { + if o == nil || isNil(o.Blueprint) { + var ret string + return ret + } + return *o.Blueprint +} + +// GetBlueprintOk returns a tuple with the Blueprint field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetBlueprintOk() (*string, bool) { + if o == nil || isNil(o.Blueprint) { + return nil, false + } + return o.Blueprint, true +} + +// HasBlueprint returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) HasBlueprint() bool { + if o != nil && !isNil(o.Blueprint) { + return true + } + + return false +} + +// SetBlueprint gets a reference to the given string and assigns it to the Blueprint field. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) SetBlueprint(v string) { + o.Blueprint = &v +} + +// GetThumbprint returns the Thumbprint field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetThumbprint() string { + if o == nil || isNil(o.Thumbprint) { + var ret string + return ret + } + return *o.Thumbprint +} + +// GetThumbprintOk returns a tuple with the Thumbprint field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetThumbprintOk() (*string, bool) { + if o == nil || isNil(o.Thumbprint) { + return nil, false + } + return o.Thumbprint, true +} + +// HasThumbprint returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) HasThumbprint() bool { + if o != nil && !isNil(o.Thumbprint) { + return true + } + + return false +} + +// SetThumbprint gets a reference to the given string and assigns it to the Thumbprint field. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) SetThumbprint(v string) { + o.Thumbprint = &v +} + +// GetLegacyThumbprint returns the LegacyThumbprint field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetLegacyThumbprint() string { + if o == nil || isNil(o.LegacyThumbprint) { + var ret string + return ret + } + return *o.LegacyThumbprint +} + +// GetLegacyThumbprintOk returns a tuple with the LegacyThumbprint field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetLegacyThumbprintOk() (*string, bool) { + if o == nil || isNil(o.LegacyThumbprint) { + return nil, false + } + return o.LegacyThumbprint, true +} + +// HasLegacyThumbprint returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) HasLegacyThumbprint() bool { + if o != nil && !isNil(o.LegacyThumbprint) { + return true + } + + return false +} + +// SetLegacyThumbprint gets a reference to the given string and assigns it to the LegacyThumbprint field. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) SetLegacyThumbprint(v string) { + o.LegacyThumbprint = &v +} + +// GetAuthCertificateReenrollment returns the AuthCertificateReenrollment field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetAuthCertificateReenrollment() string { + if o == nil || isNil(o.AuthCertificateReenrollment) { + var ret string + return ret + } + return *o.AuthCertificateReenrollment +} + +// GetAuthCertificateReenrollmentOk returns a tuple with the AuthCertificateReenrollment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetAuthCertificateReenrollmentOk() (*string, bool) { + if o == nil || isNil(o.AuthCertificateReenrollment) { + return nil, false + } + return o.AuthCertificateReenrollment, true +} + +// HasAuthCertificateReenrollment returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) HasAuthCertificateReenrollment() bool { + if o != nil && !isNil(o.AuthCertificateReenrollment) { + return true + } + + return false +} + +// SetAuthCertificateReenrollment gets a reference to the given string and assigns it to the AuthCertificateReenrollment field. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) SetAuthCertificateReenrollment(v string) { + o.AuthCertificateReenrollment = &v +} + +// GetLastThumbprintUsed returns the LastThumbprintUsed field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetLastThumbprintUsed() string { + if o == nil || isNil(o.LastThumbprintUsed) { + var ret string + return ret + } + return *o.LastThumbprintUsed +} + +// GetLastThumbprintUsedOk returns a tuple with the LastThumbprintUsed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetLastThumbprintUsedOk() (*string, bool) { + if o == nil || isNil(o.LastThumbprintUsed) { + return nil, false + } + return o.LastThumbprintUsed, true +} + +// HasLastThumbprintUsed returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) HasLastThumbprintUsed() bool { + if o != nil && !isNil(o.LastThumbprintUsed) { + return true + } + + return false +} + +// SetLastThumbprintUsed gets a reference to the given string and assigns it to the LastThumbprintUsed field. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) SetLastThumbprintUsed(v string) { + o.LastThumbprintUsed = &v +} + +// GetLastErrorCode returns the LastErrorCode field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetLastErrorCode() int64 { + if o == nil || isNil(o.LastErrorCode) { + var ret int64 + return ret + } + return *o.LastErrorCode +} + +// GetLastErrorCodeOk returns a tuple with the LastErrorCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetLastErrorCodeOk() (*int64, bool) { + if o == nil || isNil(o.LastErrorCode) { + return nil, false + } + return o.LastErrorCode, true +} + +// HasLastErrorCode returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) HasLastErrorCode() bool { + if o != nil && !isNil(o.LastErrorCode) { + return true + } + + return false +} + +// SetLastErrorCode gets a reference to the given int64 and assigns it to the LastErrorCode field. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) SetLastErrorCode(v int64) { + o.LastErrorCode = &v +} + +// GetLastErrorMessage returns the LastErrorMessage field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetLastErrorMessage() string { + if o == nil || isNil(o.LastErrorMessage) { + var ret string + return ret + } + return *o.LastErrorMessage +} + +// GetLastErrorMessageOk returns a tuple with the LastErrorMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetLastErrorMessageOk() (*string, bool) { + if o == nil || isNil(o.LastErrorMessage) { + return nil, false + } + return o.LastErrorMessage, true +} + +// HasLastErrorMessage returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) HasLastErrorMessage() bool { + if o != nil && !isNil(o.LastErrorMessage) { + return true + } + + return false +} + +// SetLastErrorMessage gets a reference to the given string and assigns it to the LastErrorMessage field. +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) SetLastErrorMessage(v string) { + o.LastErrorMessage = &v +} + +func (o KeyfactorApiModelsOrchestratorsAgentResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsOrchestratorsAgentResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.AgentId) { + toSerialize["AgentId"] = o.AgentId + } + if !isNil(o.ClientMachine) { + toSerialize["ClientMachine"] = o.ClientMachine + } + if !isNil(o.Username) { + toSerialize["Username"] = o.Username + } + if !isNil(o.AgentPlatform) { + toSerialize["AgentPlatform"] = o.AgentPlatform + } + if !isNil(o.Version) { + toSerialize["Version"] = o.Version + } + if !isNil(o.Status) { + toSerialize["Status"] = o.Status + } + if !isNil(o.LastSeen) { + toSerialize["LastSeen"] = o.LastSeen + } + if !isNil(o.Capabilities) { + toSerialize["Capabilities"] = o.Capabilities + } + if !isNil(o.Blueprint) { + toSerialize["Blueprint"] = o.Blueprint + } + if !isNil(o.Thumbprint) { + toSerialize["Thumbprint"] = o.Thumbprint + } + if !isNil(o.LegacyThumbprint) { + toSerialize["LegacyThumbprint"] = o.LegacyThumbprint + } + if !isNil(o.AuthCertificateReenrollment) { + toSerialize["AuthCertificateReenrollment"] = o.AuthCertificateReenrollment + } + if !isNil(o.LastThumbprintUsed) { + toSerialize["LastThumbprintUsed"] = o.LastThumbprintUsed + } + if !isNil(o.LastErrorCode) { + toSerialize["LastErrorCode"] = o.LastErrorCode + } + if !isNil(o.LastErrorMessage) { + toSerialize["LastErrorMessage"] = o.LastErrorMessage + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsOrchestratorsAgentResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsOrchestratorsAgentResponse := _KeyfactorApiModelsOrchestratorsAgentResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsOrchestratorsAgentResponse); err == nil { + *o = KeyfactorApiModelsOrchestratorsAgentResponse(varKeyfactorApiModelsOrchestratorsAgentResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "AgentId") + delete(additionalProperties, "ClientMachine") + delete(additionalProperties, "Username") + delete(additionalProperties, "AgentPlatform") + delete(additionalProperties, "Version") + delete(additionalProperties, "Status") + delete(additionalProperties, "LastSeen") + delete(additionalProperties, "Capabilities") + delete(additionalProperties, "Blueprint") + delete(additionalProperties, "Thumbprint") + delete(additionalProperties, "LegacyThumbprint") + delete(additionalProperties, "AuthCertificateReenrollment") + delete(additionalProperties, "LastThumbprintUsed") + delete(additionalProperties, "LastErrorCode") + delete(additionalProperties, "LastErrorMessage") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsOrchestratorsAgentResponse struct { + value *KeyfactorApiModelsOrchestratorsAgentResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsOrchestratorsAgentResponse) Get() *KeyfactorApiModelsOrchestratorsAgentResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsOrchestratorsAgentResponse) Set(val *KeyfactorApiModelsOrchestratorsAgentResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsOrchestratorsAgentResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsOrchestratorsAgentResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsOrchestratorsAgentResponse(val *KeyfactorApiModelsOrchestratorsAgentResponse) *NullableKeyfactorApiModelsOrchestratorsAgentResponse { + return &NullableKeyfactorApiModelsOrchestratorsAgentResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsOrchestratorsAgentResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsOrchestratorsAgentResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_orchestrators_update_orchestrator_auth_certificate_reenrollment_request.go b/v1/api/keyfactor/model_keyfactor_api_models_orchestrators_update_orchestrator_auth_certificate_reenrollment_request.go new file mode 100644 index 0000000..344070a --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_orchestrators_update_orchestrator_auth_certificate_reenrollment_request.go @@ -0,0 +1,186 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest{} + +// KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest struct for KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest +type KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest struct { + OrchestratorIds []string `json:"OrchestratorIds,omitempty"` + Status string `json:"Status"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest + +// NewKeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest instantiates a new KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest(status string) *KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest { + this := KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest{} + this.Status = status + return &this +} + +// NewKeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequestWithDefaults instantiates a new KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequestWithDefaults() *KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest { + this := KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest{} + return &this +} + +// GetOrchestratorIds returns the OrchestratorIds field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) GetOrchestratorIds() []string { + if o == nil || isNil(o.OrchestratorIds) { + var ret []string + return ret + } + return o.OrchestratorIds +} + +// GetOrchestratorIdsOk returns a tuple with the OrchestratorIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) GetOrchestratorIdsOk() ([]string, bool) { + if o == nil || isNil(o.OrchestratorIds) { + return nil, false + } + return o.OrchestratorIds, true +} + +// HasOrchestratorIds returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) HasOrchestratorIds() bool { + if o != nil && !isNil(o.OrchestratorIds) { + return true + } + + return false +} + +// SetOrchestratorIds gets a reference to the given []string and assigns it to the OrchestratorIds field. +func (o *KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) SetOrchestratorIds(v []string) { + o.OrchestratorIds = v +} + +// GetStatus returns the Status field value +func (o *KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) GetStatus() string { + if o == nil { + var ret string + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) GetStatusOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) SetStatus(v string) { + o.Status = v +} + +func (o KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.OrchestratorIds) { + toSerialize["OrchestratorIds"] = o.OrchestratorIds + } + toSerialize["Status"] = o.Status + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest := _KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest); err == nil { + *o = KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest(varKeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "OrchestratorIds") + delete(additionalProperties, "Status") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest struct { + value *KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) Get() *KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) Set(val *KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest(val *KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) *NullableKeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest { + return &NullableKeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_orchestrators_update_orchestrator_auth_certificate_reenrollment_response.go b/v1/api/keyfactor/model_keyfactor_api_models_orchestrators_update_orchestrator_auth_certificate_reenrollment_response.go new file mode 100644 index 0000000..9e6f326 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_orchestrators_update_orchestrator_auth_certificate_reenrollment_response.go @@ -0,0 +1,195 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse{} + +// KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse struct for KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse +type KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse struct { + FailedOrchestratorIds []string `json:"FailedOrchestratorIds,omitempty"` + Status *int32 `json:"Status,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse + +// NewKeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse instantiates a new KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse() *KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse { + this := KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse{} + return &this +} + +// NewKeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponseWithDefaults instantiates a new KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponseWithDefaults() *KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse { + this := KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse{} + return &this +} + +// GetFailedOrchestratorIds returns the FailedOrchestratorIds field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) GetFailedOrchestratorIds() []string { + if o == nil || isNil(o.FailedOrchestratorIds) { + var ret []string + return ret + } + return o.FailedOrchestratorIds +} + +// GetFailedOrchestratorIdsOk returns a tuple with the FailedOrchestratorIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) GetFailedOrchestratorIdsOk() ([]string, bool) { + if o == nil || isNil(o.FailedOrchestratorIds) { + return nil, false + } + return o.FailedOrchestratorIds, true +} + +// HasFailedOrchestratorIds returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) HasFailedOrchestratorIds() bool { + if o != nil && !isNil(o.FailedOrchestratorIds) { + return true + } + + return false +} + +// SetFailedOrchestratorIds gets a reference to the given []string and assigns it to the FailedOrchestratorIds field. +func (o *KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) SetFailedOrchestratorIds(v []string) { + o.FailedOrchestratorIds = v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) GetStatus() int32 { + if o == nil || isNil(o.Status) { + var ret int32 + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) GetStatusOk() (*int32, bool) { + if o == nil || isNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) HasStatus() bool { + if o != nil && !isNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given int32 and assigns it to the Status field. +func (o *KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) SetStatus(v int32) { + o.Status = &v +} + +func (o KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.FailedOrchestratorIds) { + toSerialize["FailedOrchestratorIds"] = o.FailedOrchestratorIds + } + if !isNil(o.Status) { + toSerialize["Status"] = o.Status + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse := _KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse); err == nil { + *o = KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse(varKeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "FailedOrchestratorIds") + delete(additionalProperties, "Status") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse struct { + value *KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) Get() *KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) Set(val *KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse(val *KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) *NullableKeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse { + return &NullableKeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_security_roles_area_permission_response.go b/v1/api/keyfactor/model_keyfactor_api_models_security_roles_area_permission_response.go new file mode 100644 index 0000000..4303db4 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_security_roles_area_permission_response.go @@ -0,0 +1,232 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsSecurityRolesAreaPermissionResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsSecurityRolesAreaPermissionResponse{} + +// KeyfactorApiModelsSecurityRolesAreaPermissionResponse struct for KeyfactorApiModelsSecurityRolesAreaPermissionResponse +type KeyfactorApiModelsSecurityRolesAreaPermissionResponse struct { + Type *string `json:"Type,omitempty"` + Area *string `json:"Area,omitempty"` + Permission *string `json:"Permission,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsSecurityRolesAreaPermissionResponse KeyfactorApiModelsSecurityRolesAreaPermissionResponse + +// NewKeyfactorApiModelsSecurityRolesAreaPermissionResponse instantiates a new KeyfactorApiModelsSecurityRolesAreaPermissionResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsSecurityRolesAreaPermissionResponse() *KeyfactorApiModelsSecurityRolesAreaPermissionResponse { + this := KeyfactorApiModelsSecurityRolesAreaPermissionResponse{} + return &this +} + +// NewKeyfactorApiModelsSecurityRolesAreaPermissionResponseWithDefaults instantiates a new KeyfactorApiModelsSecurityRolesAreaPermissionResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsSecurityRolesAreaPermissionResponseWithDefaults() *KeyfactorApiModelsSecurityRolesAreaPermissionResponse { + this := KeyfactorApiModelsSecurityRolesAreaPermissionResponse{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSecurityRolesAreaPermissionResponse) GetType() string { + if o == nil || isNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSecurityRolesAreaPermissionResponse) GetTypeOk() (*string, bool) { + if o == nil || isNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSecurityRolesAreaPermissionResponse) HasType() bool { + if o != nil && !isNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *KeyfactorApiModelsSecurityRolesAreaPermissionResponse) SetType(v string) { + o.Type = &v +} + +// GetArea returns the Area field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSecurityRolesAreaPermissionResponse) GetArea() string { + if o == nil || isNil(o.Area) { + var ret string + return ret + } + return *o.Area +} + +// GetAreaOk returns a tuple with the Area field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSecurityRolesAreaPermissionResponse) GetAreaOk() (*string, bool) { + if o == nil || isNil(o.Area) { + return nil, false + } + return o.Area, true +} + +// HasArea returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSecurityRolesAreaPermissionResponse) HasArea() bool { + if o != nil && !isNil(o.Area) { + return true + } + + return false +} + +// SetArea gets a reference to the given string and assigns it to the Area field. +func (o *KeyfactorApiModelsSecurityRolesAreaPermissionResponse) SetArea(v string) { + o.Area = &v +} + +// GetPermission returns the Permission field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSecurityRolesAreaPermissionResponse) GetPermission() string { + if o == nil || isNil(o.Permission) { + var ret string + return ret + } + return *o.Permission +} + +// GetPermissionOk returns a tuple with the Permission field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSecurityRolesAreaPermissionResponse) GetPermissionOk() (*string, bool) { + if o == nil || isNil(o.Permission) { + return nil, false + } + return o.Permission, true +} + +// HasPermission returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSecurityRolesAreaPermissionResponse) HasPermission() bool { + if o != nil && !isNil(o.Permission) { + return true + } + + return false +} + +// SetPermission gets a reference to the given string and assigns it to the Permission field. +func (o *KeyfactorApiModelsSecurityRolesAreaPermissionResponse) SetPermission(v string) { + o.Permission = &v +} + +func (o KeyfactorApiModelsSecurityRolesAreaPermissionResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsSecurityRolesAreaPermissionResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Type) { + toSerialize["Type"] = o.Type + } + if !isNil(o.Area) { + toSerialize["Area"] = o.Area + } + if !isNil(o.Permission) { + toSerialize["Permission"] = o.Permission + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsSecurityRolesAreaPermissionResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsSecurityRolesAreaPermissionResponse := _KeyfactorApiModelsSecurityRolesAreaPermissionResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsSecurityRolesAreaPermissionResponse); err == nil { + *o = KeyfactorApiModelsSecurityRolesAreaPermissionResponse(varKeyfactorApiModelsSecurityRolesAreaPermissionResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Type") + delete(additionalProperties, "Area") + delete(additionalProperties, "Permission") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsSecurityRolesAreaPermissionResponse struct { + value *KeyfactorApiModelsSecurityRolesAreaPermissionResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsSecurityRolesAreaPermissionResponse) Get() *KeyfactorApiModelsSecurityRolesAreaPermissionResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsSecurityRolesAreaPermissionResponse) Set(val *KeyfactorApiModelsSecurityRolesAreaPermissionResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsSecurityRolesAreaPermissionResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsSecurityRolesAreaPermissionResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsSecurityRolesAreaPermissionResponse(val *KeyfactorApiModelsSecurityRolesAreaPermissionResponse) *NullableKeyfactorApiModelsSecurityRolesAreaPermissionResponse { + return &NullableKeyfactorApiModelsSecurityRolesAreaPermissionResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsSecurityRolesAreaPermissionResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsSecurityRolesAreaPermissionResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_security_roles_container_permission_request.go b/v1/api/keyfactor/model_keyfactor_api_models_security_roles_container_permission_request.go new file mode 100644 index 0000000..004a08e --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_security_roles_container_permission_request.go @@ -0,0 +1,195 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsSecurityRolesContainerPermissionRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsSecurityRolesContainerPermissionRequest{} + +// KeyfactorApiModelsSecurityRolesContainerPermissionRequest struct for KeyfactorApiModelsSecurityRolesContainerPermissionRequest +type KeyfactorApiModelsSecurityRolesContainerPermissionRequest struct { + ContainerId *int32 `json:"ContainerId,omitempty"` + Permission *string `json:"Permission,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsSecurityRolesContainerPermissionRequest KeyfactorApiModelsSecurityRolesContainerPermissionRequest + +// NewKeyfactorApiModelsSecurityRolesContainerPermissionRequest instantiates a new KeyfactorApiModelsSecurityRolesContainerPermissionRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsSecurityRolesContainerPermissionRequest() *KeyfactorApiModelsSecurityRolesContainerPermissionRequest { + this := KeyfactorApiModelsSecurityRolesContainerPermissionRequest{} + return &this +} + +// NewKeyfactorApiModelsSecurityRolesContainerPermissionRequestWithDefaults instantiates a new KeyfactorApiModelsSecurityRolesContainerPermissionRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsSecurityRolesContainerPermissionRequestWithDefaults() *KeyfactorApiModelsSecurityRolesContainerPermissionRequest { + this := KeyfactorApiModelsSecurityRolesContainerPermissionRequest{} + return &this +} + +// GetContainerId returns the ContainerId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSecurityRolesContainerPermissionRequest) GetContainerId() int32 { + if o == nil || isNil(o.ContainerId) { + var ret int32 + return ret + } + return *o.ContainerId +} + +// GetContainerIdOk returns a tuple with the ContainerId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSecurityRolesContainerPermissionRequest) GetContainerIdOk() (*int32, bool) { + if o == nil || isNil(o.ContainerId) { + return nil, false + } + return o.ContainerId, true +} + +// HasContainerId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSecurityRolesContainerPermissionRequest) HasContainerId() bool { + if o != nil && !isNil(o.ContainerId) { + return true + } + + return false +} + +// SetContainerId gets a reference to the given int32 and assigns it to the ContainerId field. +func (o *KeyfactorApiModelsSecurityRolesContainerPermissionRequest) SetContainerId(v int32) { + o.ContainerId = &v +} + +// GetPermission returns the Permission field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSecurityRolesContainerPermissionRequest) GetPermission() string { + if o == nil || isNil(o.Permission) { + var ret string + return ret + } + return *o.Permission +} + +// GetPermissionOk returns a tuple with the Permission field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSecurityRolesContainerPermissionRequest) GetPermissionOk() (*string, bool) { + if o == nil || isNil(o.Permission) { + return nil, false + } + return o.Permission, true +} + +// HasPermission returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSecurityRolesContainerPermissionRequest) HasPermission() bool { + if o != nil && !isNil(o.Permission) { + return true + } + + return false +} + +// SetPermission gets a reference to the given string and assigns it to the Permission field. +func (o *KeyfactorApiModelsSecurityRolesContainerPermissionRequest) SetPermission(v string) { + o.Permission = &v +} + +func (o KeyfactorApiModelsSecurityRolesContainerPermissionRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsSecurityRolesContainerPermissionRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.ContainerId) { + toSerialize["ContainerId"] = o.ContainerId + } + if !isNil(o.Permission) { + toSerialize["Permission"] = o.Permission + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsSecurityRolesContainerPermissionRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsSecurityRolesContainerPermissionRequest := _KeyfactorApiModelsSecurityRolesContainerPermissionRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsSecurityRolesContainerPermissionRequest); err == nil { + *o = KeyfactorApiModelsSecurityRolesContainerPermissionRequest(varKeyfactorApiModelsSecurityRolesContainerPermissionRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "ContainerId") + delete(additionalProperties, "Permission") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsSecurityRolesContainerPermissionRequest struct { + value *KeyfactorApiModelsSecurityRolesContainerPermissionRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsSecurityRolesContainerPermissionRequest) Get() *KeyfactorApiModelsSecurityRolesContainerPermissionRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsSecurityRolesContainerPermissionRequest) Set(val *KeyfactorApiModelsSecurityRolesContainerPermissionRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsSecurityRolesContainerPermissionRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsSecurityRolesContainerPermissionRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsSecurityRolesContainerPermissionRequest(val *KeyfactorApiModelsSecurityRolesContainerPermissionRequest) *NullableKeyfactorApiModelsSecurityRolesContainerPermissionRequest { + return &NullableKeyfactorApiModelsSecurityRolesContainerPermissionRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsSecurityRolesContainerPermissionRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsSecurityRolesContainerPermissionRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_security_roles_container_permission_response.go b/v1/api/keyfactor/model_keyfactor_api_models_security_roles_container_permission_response.go new file mode 100644 index 0000000..aa5cea2 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_security_roles_container_permission_response.go @@ -0,0 +1,232 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsSecurityRolesContainerPermissionResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsSecurityRolesContainerPermissionResponse{} + +// KeyfactorApiModelsSecurityRolesContainerPermissionResponse struct for KeyfactorApiModelsSecurityRolesContainerPermissionResponse +type KeyfactorApiModelsSecurityRolesContainerPermissionResponse struct { + ContainerId *int32 `json:"ContainerId,omitempty"` + Name *string `json:"Name,omitempty"` + Permission *string `json:"Permission,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsSecurityRolesContainerPermissionResponse KeyfactorApiModelsSecurityRolesContainerPermissionResponse + +// NewKeyfactorApiModelsSecurityRolesContainerPermissionResponse instantiates a new KeyfactorApiModelsSecurityRolesContainerPermissionResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsSecurityRolesContainerPermissionResponse() *KeyfactorApiModelsSecurityRolesContainerPermissionResponse { + this := KeyfactorApiModelsSecurityRolesContainerPermissionResponse{} + return &this +} + +// NewKeyfactorApiModelsSecurityRolesContainerPermissionResponseWithDefaults instantiates a new KeyfactorApiModelsSecurityRolesContainerPermissionResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsSecurityRolesContainerPermissionResponseWithDefaults() *KeyfactorApiModelsSecurityRolesContainerPermissionResponse { + this := KeyfactorApiModelsSecurityRolesContainerPermissionResponse{} + return &this +} + +// GetContainerId returns the ContainerId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSecurityRolesContainerPermissionResponse) GetContainerId() int32 { + if o == nil || isNil(o.ContainerId) { + var ret int32 + return ret + } + return *o.ContainerId +} + +// GetContainerIdOk returns a tuple with the ContainerId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSecurityRolesContainerPermissionResponse) GetContainerIdOk() (*int32, bool) { + if o == nil || isNil(o.ContainerId) { + return nil, false + } + return o.ContainerId, true +} + +// HasContainerId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSecurityRolesContainerPermissionResponse) HasContainerId() bool { + if o != nil && !isNil(o.ContainerId) { + return true + } + + return false +} + +// SetContainerId gets a reference to the given int32 and assigns it to the ContainerId field. +func (o *KeyfactorApiModelsSecurityRolesContainerPermissionResponse) SetContainerId(v int32) { + o.ContainerId = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSecurityRolesContainerPermissionResponse) GetName() string { + if o == nil || isNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSecurityRolesContainerPermissionResponse) GetNameOk() (*string, bool) { + if o == nil || isNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSecurityRolesContainerPermissionResponse) HasName() bool { + if o != nil && !isNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *KeyfactorApiModelsSecurityRolesContainerPermissionResponse) SetName(v string) { + o.Name = &v +} + +// GetPermission returns the Permission field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSecurityRolesContainerPermissionResponse) GetPermission() string { + if o == nil || isNil(o.Permission) { + var ret string + return ret + } + return *o.Permission +} + +// GetPermissionOk returns a tuple with the Permission field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSecurityRolesContainerPermissionResponse) GetPermissionOk() (*string, bool) { + if o == nil || isNil(o.Permission) { + return nil, false + } + return o.Permission, true +} + +// HasPermission returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSecurityRolesContainerPermissionResponse) HasPermission() bool { + if o != nil && !isNil(o.Permission) { + return true + } + + return false +} + +// SetPermission gets a reference to the given string and assigns it to the Permission field. +func (o *KeyfactorApiModelsSecurityRolesContainerPermissionResponse) SetPermission(v string) { + o.Permission = &v +} + +func (o KeyfactorApiModelsSecurityRolesContainerPermissionResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsSecurityRolesContainerPermissionResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.ContainerId) { + toSerialize["ContainerId"] = o.ContainerId + } + if !isNil(o.Name) { + toSerialize["Name"] = o.Name + } + if !isNil(o.Permission) { + toSerialize["Permission"] = o.Permission + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsSecurityRolesContainerPermissionResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsSecurityRolesContainerPermissionResponse := _KeyfactorApiModelsSecurityRolesContainerPermissionResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsSecurityRolesContainerPermissionResponse); err == nil { + *o = KeyfactorApiModelsSecurityRolesContainerPermissionResponse(varKeyfactorApiModelsSecurityRolesContainerPermissionResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "ContainerId") + delete(additionalProperties, "Name") + delete(additionalProperties, "Permission") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsSecurityRolesContainerPermissionResponse struct { + value *KeyfactorApiModelsSecurityRolesContainerPermissionResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsSecurityRolesContainerPermissionResponse) Get() *KeyfactorApiModelsSecurityRolesContainerPermissionResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsSecurityRolesContainerPermissionResponse) Set(val *KeyfactorApiModelsSecurityRolesContainerPermissionResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsSecurityRolesContainerPermissionResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsSecurityRolesContainerPermissionResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsSecurityRolesContainerPermissionResponse(val *KeyfactorApiModelsSecurityRolesContainerPermissionResponse) *NullableKeyfactorApiModelsSecurityRolesContainerPermissionResponse { + return &NullableKeyfactorApiModelsSecurityRolesContainerPermissionResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsSecurityRolesContainerPermissionResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsSecurityRolesContainerPermissionResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_security_roles_identities_security_roles_collection_permission_request.go b/v1/api/keyfactor/model_keyfactor_api_models_security_roles_identities_security_roles_collection_permission_request.go new file mode 100644 index 0000000..dcbd64b --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_security_roles_identities_security_roles_collection_permission_request.go @@ -0,0 +1,195 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest{} + +// KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest struct for KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest +type KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest struct { + CollectionId *int32 `json:"CollectionId,omitempty"` + Permission *string `json:"Permission,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest + +// NewKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest instantiates a new KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest() *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest { + this := KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest{} + return &this +} + +// NewKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequestWithDefaults instantiates a new KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequestWithDefaults() *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest { + this := KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest{} + return &this +} + +// GetCollectionId returns the CollectionId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest) GetCollectionId() int32 { + if o == nil || isNil(o.CollectionId) { + var ret int32 + return ret + } + return *o.CollectionId +} + +// GetCollectionIdOk returns a tuple with the CollectionId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest) GetCollectionIdOk() (*int32, bool) { + if o == nil || isNil(o.CollectionId) { + return nil, false + } + return o.CollectionId, true +} + +// HasCollectionId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest) HasCollectionId() bool { + if o != nil && !isNil(o.CollectionId) { + return true + } + + return false +} + +// SetCollectionId gets a reference to the given int32 and assigns it to the CollectionId field. +func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest) SetCollectionId(v int32) { + o.CollectionId = &v +} + +// GetPermission returns the Permission field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest) GetPermission() string { + if o == nil || isNil(o.Permission) { + var ret string + return ret + } + return *o.Permission +} + +// GetPermissionOk returns a tuple with the Permission field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest) GetPermissionOk() (*string, bool) { + if o == nil || isNil(o.Permission) { + return nil, false + } + return o.Permission, true +} + +// HasPermission returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest) HasPermission() bool { + if o != nil && !isNil(o.Permission) { + return true + } + + return false +} + +// SetPermission gets a reference to the given string and assigns it to the Permission field. +func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest) SetPermission(v string) { + o.Permission = &v +} + +func (o KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.CollectionId) { + toSerialize["CollectionId"] = o.CollectionId + } + if !isNil(o.Permission) { + toSerialize["Permission"] = o.Permission + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest := _KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest); err == nil { + *o = KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest(varKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "CollectionId") + delete(additionalProperties, "Permission") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest struct { + value *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest) Get() *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest) Set(val *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest(val *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest) *NullableKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest { + return &NullableKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_security_roles_identities_security_roles_collection_permission_response.go b/v1/api/keyfactor/model_keyfactor_api_models_security_roles_identities_security_roles_collection_permission_response.go new file mode 100644 index 0000000..10a467e --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_security_roles_identities_security_roles_collection_permission_response.go @@ -0,0 +1,232 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse{} + +// KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse struct for KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse +type KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse struct { + CollectionId *int32 `json:"CollectionId,omitempty"` + Name *string `json:"Name,omitempty"` + Permission *string `json:"Permission,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse + +// NewKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse instantiates a new KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse() *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse { + this := KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse{} + return &this +} + +// NewKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponseWithDefaults instantiates a new KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponseWithDefaults() *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse { + this := KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse{} + return &this +} + +// GetCollectionId returns the CollectionId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse) GetCollectionId() int32 { + if o == nil || isNil(o.CollectionId) { + var ret int32 + return ret + } + return *o.CollectionId +} + +// GetCollectionIdOk returns a tuple with the CollectionId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse) GetCollectionIdOk() (*int32, bool) { + if o == nil || isNil(o.CollectionId) { + return nil, false + } + return o.CollectionId, true +} + +// HasCollectionId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse) HasCollectionId() bool { + if o != nil && !isNil(o.CollectionId) { + return true + } + + return false +} + +// SetCollectionId gets a reference to the given int32 and assigns it to the CollectionId field. +func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse) SetCollectionId(v int32) { + o.CollectionId = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse) GetName() string { + if o == nil || isNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse) GetNameOk() (*string, bool) { + if o == nil || isNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse) HasName() bool { + if o != nil && !isNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse) SetName(v string) { + o.Name = &v +} + +// GetPermission returns the Permission field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse) GetPermission() string { + if o == nil || isNil(o.Permission) { + var ret string + return ret + } + return *o.Permission +} + +// GetPermissionOk returns a tuple with the Permission field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse) GetPermissionOk() (*string, bool) { + if o == nil || isNil(o.Permission) { + return nil, false + } + return o.Permission, true +} + +// HasPermission returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse) HasPermission() bool { + if o != nil && !isNil(o.Permission) { + return true + } + + return false +} + +// SetPermission gets a reference to the given string and assigns it to the Permission field. +func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse) SetPermission(v string) { + o.Permission = &v +} + +func (o KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.CollectionId) { + toSerialize["CollectionId"] = o.CollectionId + } + if !isNil(o.Name) { + toSerialize["Name"] = o.Name + } + if !isNil(o.Permission) { + toSerialize["Permission"] = o.Permission + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse := _KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse); err == nil { + *o = KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse(varKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "CollectionId") + delete(additionalProperties, "Name") + delete(additionalProperties, "Permission") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse struct { + value *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse) Get() *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse) Set(val *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse(val *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse) *NullableKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse { + return &NullableKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_security_roles_identities_security_roles_global_permission_request.go b/v1/api/keyfactor/model_keyfactor_api_models_security_roles_identities_security_roles_global_permission_request.go new file mode 100644 index 0000000..efd61c6 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_security_roles_identities_security_roles_global_permission_request.go @@ -0,0 +1,195 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest{} + +// KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest struct for KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest +type KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest struct { + Area *string `json:"Area,omitempty"` + Permission *string `json:"Permission,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest + +// NewKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest instantiates a new KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest() *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest { + this := KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest{} + return &this +} + +// NewKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequestWithDefaults instantiates a new KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequestWithDefaults() *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest { + this := KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest{} + return &this +} + +// GetArea returns the Area field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest) GetArea() string { + if o == nil || isNil(o.Area) { + var ret string + return ret + } + return *o.Area +} + +// GetAreaOk returns a tuple with the Area field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest) GetAreaOk() (*string, bool) { + if o == nil || isNil(o.Area) { + return nil, false + } + return o.Area, true +} + +// HasArea returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest) HasArea() bool { + if o != nil && !isNil(o.Area) { + return true + } + + return false +} + +// SetArea gets a reference to the given string and assigns it to the Area field. +func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest) SetArea(v string) { + o.Area = &v +} + +// GetPermission returns the Permission field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest) GetPermission() string { + if o == nil || isNil(o.Permission) { + var ret string + return ret + } + return *o.Permission +} + +// GetPermissionOk returns a tuple with the Permission field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest) GetPermissionOk() (*string, bool) { + if o == nil || isNil(o.Permission) { + return nil, false + } + return o.Permission, true +} + +// HasPermission returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest) HasPermission() bool { + if o != nil && !isNil(o.Permission) { + return true + } + + return false +} + +// SetPermission gets a reference to the given string and assigns it to the Permission field. +func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest) SetPermission(v string) { + o.Permission = &v +} + +func (o KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Area) { + toSerialize["Area"] = o.Area + } + if !isNil(o.Permission) { + toSerialize["Permission"] = o.Permission + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest := _KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest); err == nil { + *o = KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest(varKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Area") + delete(additionalProperties, "Permission") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest struct { + value *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest) Get() *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest) Set(val *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest(val *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest) *NullableKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest { + return &NullableKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_security_roles_identities_security_roles_global_permission_response.go b/v1/api/keyfactor/model_keyfactor_api_models_security_roles_identities_security_roles_global_permission_response.go new file mode 100644 index 0000000..e12f4c7 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_security_roles_identities_security_roles_global_permission_response.go @@ -0,0 +1,195 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse{} + +// KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse struct for KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse +type KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse struct { + Area *string `json:"Area,omitempty"` + Permission *string `json:"Permission,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse + +// NewKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse instantiates a new KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse() *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse { + this := KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse{} + return &this +} + +// NewKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponseWithDefaults instantiates a new KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponseWithDefaults() *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse { + this := KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse{} + return &this +} + +// GetArea returns the Area field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse) GetArea() string { + if o == nil || isNil(o.Area) { + var ret string + return ret + } + return *o.Area +} + +// GetAreaOk returns a tuple with the Area field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse) GetAreaOk() (*string, bool) { + if o == nil || isNil(o.Area) { + return nil, false + } + return o.Area, true +} + +// HasArea returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse) HasArea() bool { + if o != nil && !isNil(o.Area) { + return true + } + + return false +} + +// SetArea gets a reference to the given string and assigns it to the Area field. +func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse) SetArea(v string) { + o.Area = &v +} + +// GetPermission returns the Permission field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse) GetPermission() string { + if o == nil || isNil(o.Permission) { + var ret string + return ret + } + return *o.Permission +} + +// GetPermissionOk returns a tuple with the Permission field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse) GetPermissionOk() (*string, bool) { + if o == nil || isNil(o.Permission) { + return nil, false + } + return o.Permission, true +} + +// HasPermission returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse) HasPermission() bool { + if o != nil && !isNil(o.Permission) { + return true + } + + return false +} + +// SetPermission gets a reference to the given string and assigns it to the Permission field. +func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse) SetPermission(v string) { + o.Permission = &v +} + +func (o KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Area) { + toSerialize["Area"] = o.Area + } + if !isNil(o.Permission) { + toSerialize["Permission"] = o.Permission + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse := _KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse); err == nil { + *o = KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse(varKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Area") + delete(additionalProperties, "Permission") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse struct { + value *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse) Get() *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse) Set(val *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse(val *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse) *NullableKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse { + return &NullableKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_security_roles_role_identities_request.go b/v1/api/keyfactor/model_keyfactor_api_models_security_roles_role_identities_request.go new file mode 100644 index 0000000..aa59128 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_security_roles_role_identities_request.go @@ -0,0 +1,158 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsSecurityRolesRoleIdentitiesRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsSecurityRolesRoleIdentitiesRequest{} + +// KeyfactorApiModelsSecurityRolesRoleIdentitiesRequest struct for KeyfactorApiModelsSecurityRolesRoleIdentitiesRequest +type KeyfactorApiModelsSecurityRolesRoleIdentitiesRequest struct { + Ids []int32 `json:"Ids,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsSecurityRolesRoleIdentitiesRequest KeyfactorApiModelsSecurityRolesRoleIdentitiesRequest + +// NewKeyfactorApiModelsSecurityRolesRoleIdentitiesRequest instantiates a new KeyfactorApiModelsSecurityRolesRoleIdentitiesRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsSecurityRolesRoleIdentitiesRequest() *KeyfactorApiModelsSecurityRolesRoleIdentitiesRequest { + this := KeyfactorApiModelsSecurityRolesRoleIdentitiesRequest{} + return &this +} + +// NewKeyfactorApiModelsSecurityRolesRoleIdentitiesRequestWithDefaults instantiates a new KeyfactorApiModelsSecurityRolesRoleIdentitiesRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsSecurityRolesRoleIdentitiesRequestWithDefaults() *KeyfactorApiModelsSecurityRolesRoleIdentitiesRequest { + this := KeyfactorApiModelsSecurityRolesRoleIdentitiesRequest{} + return &this +} + +// GetIds returns the Ids field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSecurityRolesRoleIdentitiesRequest) GetIds() []int32 { + if o == nil || isNil(o.Ids) { + var ret []int32 + return ret + } + return o.Ids +} + +// GetIdsOk returns a tuple with the Ids field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSecurityRolesRoleIdentitiesRequest) GetIdsOk() ([]int32, bool) { + if o == nil || isNil(o.Ids) { + return nil, false + } + return o.Ids, true +} + +// HasIds returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSecurityRolesRoleIdentitiesRequest) HasIds() bool { + if o != nil && !isNil(o.Ids) { + return true + } + + return false +} + +// SetIds gets a reference to the given []int32 and assigns it to the Ids field. +func (o *KeyfactorApiModelsSecurityRolesRoleIdentitiesRequest) SetIds(v []int32) { + o.Ids = v +} + +func (o KeyfactorApiModelsSecurityRolesRoleIdentitiesRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsSecurityRolesRoleIdentitiesRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Ids) { + toSerialize["Ids"] = o.Ids + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsSecurityRolesRoleIdentitiesRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsSecurityRolesRoleIdentitiesRequest := _KeyfactorApiModelsSecurityRolesRoleIdentitiesRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsSecurityRolesRoleIdentitiesRequest); err == nil { + *o = KeyfactorApiModelsSecurityRolesRoleIdentitiesRequest(varKeyfactorApiModelsSecurityRolesRoleIdentitiesRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Ids") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsSecurityRolesRoleIdentitiesRequest struct { + value *KeyfactorApiModelsSecurityRolesRoleIdentitiesRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsSecurityRolesRoleIdentitiesRequest) Get() *KeyfactorApiModelsSecurityRolesRoleIdentitiesRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsSecurityRolesRoleIdentitiesRequest) Set(val *KeyfactorApiModelsSecurityRolesRoleIdentitiesRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsSecurityRolesRoleIdentitiesRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsSecurityRolesRoleIdentitiesRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsSecurityRolesRoleIdentitiesRequest(val *KeyfactorApiModelsSecurityRolesRoleIdentitiesRequest) *NullableKeyfactorApiModelsSecurityRolesRoleIdentitiesRequest { + return &NullableKeyfactorApiModelsSecurityRolesRoleIdentitiesRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsSecurityRolesRoleIdentitiesRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsSecurityRolesRoleIdentitiesRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_security_roles_role_identities_response.go b/v1/api/keyfactor/model_keyfactor_api_models_security_roles_role_identities_response.go new file mode 100644 index 0000000..8d07e26 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_security_roles_role_identities_response.go @@ -0,0 +1,195 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse{} + +// KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse struct for KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse +type KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse struct { + Id *int32 `json:"Id,omitempty"` + Name *string `json:"Name,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse + +// NewKeyfactorApiModelsSecurityRolesRoleIdentitiesResponse instantiates a new KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsSecurityRolesRoleIdentitiesResponse() *KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse { + this := KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse{} + return &this +} + +// NewKeyfactorApiModelsSecurityRolesRoleIdentitiesResponseWithDefaults instantiates a new KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsSecurityRolesRoleIdentitiesResponseWithDefaults() *KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse { + this := KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse) SetId(v int32) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse) GetName() string { + if o == nil || isNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse) GetNameOk() (*string, bool) { + if o == nil || isNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse) HasName() bool { + if o != nil && !isNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse) SetName(v string) { + o.Name = &v +} + +func (o KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.Name) { + toSerialize["Name"] = o.Name + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsSecurityRolesRoleIdentitiesResponse := _KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsSecurityRolesRoleIdentitiesResponse); err == nil { + *o = KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse(varKeyfactorApiModelsSecurityRolesRoleIdentitiesResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "Name") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsSecurityRolesRoleIdentitiesResponse struct { + value *KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsSecurityRolesRoleIdentitiesResponse) Get() *KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsSecurityRolesRoleIdentitiesResponse) Set(val *KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsSecurityRolesRoleIdentitiesResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsSecurityRolesRoleIdentitiesResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsSecurityRolesRoleIdentitiesResponse(val *KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse) *NullableKeyfactorApiModelsSecurityRolesRoleIdentitiesResponse { + return &NullableKeyfactorApiModelsSecurityRolesRoleIdentitiesResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsSecurityRolesRoleIdentitiesResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsSecurityRolesRoleIdentitiesResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_security_roles_security_role_copy_request.go b/v1/api/keyfactor/model_keyfactor_api_models_security_roles_security_role_copy_request.go new file mode 100644 index 0000000..cae6d14 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_security_roles_security_role_copy_request.go @@ -0,0 +1,195 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest{} + +// KeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest struct for KeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest +type KeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest struct { + Name *string `json:"Name,omitempty"` + Description *string `json:"Description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest KeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest + +// NewKeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest instantiates a new KeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest() *KeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest { + this := KeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest{} + return &this +} + +// NewKeyfactorApiModelsSecurityRolesSecurityRoleCopyRequestWithDefaults instantiates a new KeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsSecurityRolesSecurityRoleCopyRequestWithDefaults() *KeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest { + this := KeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest) GetName() string { + if o == nil || isNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest) GetNameOk() (*string, bool) { + if o == nil || isNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest) HasName() bool { + if o != nil && !isNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *KeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest) SetName(v string) { + o.Name = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest) GetDescription() string { + if o == nil || isNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest) GetDescriptionOk() (*string, bool) { + if o == nil || isNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest) HasDescription() bool { + if o != nil && !isNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *KeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest) SetDescription(v string) { + o.Description = &v +} + +func (o KeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Name) { + toSerialize["Name"] = o.Name + } + if !isNil(o.Description) { + toSerialize["Description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest := _KeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest); err == nil { + *o = KeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest(varKeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Name") + delete(additionalProperties, "Description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest struct { + value *KeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest) Get() *KeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest) Set(val *KeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest(val *KeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest) *NullableKeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest { + return &NullableKeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_smtp_smtp_request.go b/v1/api/keyfactor/model_keyfactor_api_models_smtp_smtp_request.go new file mode 100644 index 0000000..1db8ada --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_smtp_smtp_request.go @@ -0,0 +1,454 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorAPIModelsSMTPSMTPRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorAPIModelsSMTPSMTPRequest{} + +// KeyfactorAPIModelsSMTPSMTPRequest struct for KeyfactorAPIModelsSMTPSMTPRequest +type KeyfactorAPIModelsSMTPSMTPRequest struct { + Host *string `json:"Host,omitempty"` + Id *int32 `json:"Id,omitempty"` + Port *int32 `json:"Port,omitempty"` + RelayAuthenticationType *int32 `json:"RelayAuthenticationType,omitempty"` + RelayPassword *string `json:"RelayPassword,omitempty"` + RelayUsername *string `json:"RelayUsername,omitempty"` + SenderAccount *string `json:"SenderAccount,omitempty"` + SenderName *string `json:"SenderName,omitempty"` + UseSSL *bool `json:"UseSSL,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorAPIModelsSMTPSMTPRequest KeyfactorAPIModelsSMTPSMTPRequest + +// NewKeyfactorAPIModelsSMTPSMTPRequest instantiates a new KeyfactorAPIModelsSMTPSMTPRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorAPIModelsSMTPSMTPRequest() *KeyfactorAPIModelsSMTPSMTPRequest { + this := KeyfactorAPIModelsSMTPSMTPRequest{} + return &this +} + +// NewKeyfactorAPIModelsSMTPSMTPRequestWithDefaults instantiates a new KeyfactorAPIModelsSMTPSMTPRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorAPIModelsSMTPSMTPRequestWithDefaults() *KeyfactorAPIModelsSMTPSMTPRequest { + this := KeyfactorAPIModelsSMTPSMTPRequest{} + return &this +} + +// GetHost returns the Host field value if set, zero value otherwise. +func (o *KeyfactorAPIModelsSMTPSMTPRequest) GetHost() string { + if o == nil || isNil(o.Host) { + var ret string + return ret + } + return *o.Host +} + +// GetHostOk returns a tuple with the Host field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorAPIModelsSMTPSMTPRequest) GetHostOk() (*string, bool) { + if o == nil || isNil(o.Host) { + return nil, false + } + return o.Host, true +} + +// HasHost returns a boolean if a field has been set. +func (o *KeyfactorAPIModelsSMTPSMTPRequest) HasHost() bool { + if o != nil && !isNil(o.Host) { + return true + } + + return false +} + +// SetHost gets a reference to the given string and assigns it to the Host field. +func (o *KeyfactorAPIModelsSMTPSMTPRequest) SetHost(v string) { + o.Host = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *KeyfactorAPIModelsSMTPSMTPRequest) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorAPIModelsSMTPSMTPRequest) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *KeyfactorAPIModelsSMTPSMTPRequest) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *KeyfactorAPIModelsSMTPSMTPRequest) SetId(v int32) { + o.Id = &v +} + +// GetPort returns the Port field value if set, zero value otherwise. +func (o *KeyfactorAPIModelsSMTPSMTPRequest) GetPort() int32 { + if o == nil || isNil(o.Port) { + var ret int32 + return ret + } + return *o.Port +} + +// GetPortOk returns a tuple with the Port field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorAPIModelsSMTPSMTPRequest) GetPortOk() (*int32, bool) { + if o == nil || isNil(o.Port) { + return nil, false + } + return o.Port, true +} + +// HasPort returns a boolean if a field has been set. +func (o *KeyfactorAPIModelsSMTPSMTPRequest) HasPort() bool { + if o != nil && !isNil(o.Port) { + return true + } + + return false +} + +// SetPort gets a reference to the given int32 and assigns it to the Port field. +func (o *KeyfactorAPIModelsSMTPSMTPRequest) SetPort(v int32) { + o.Port = &v +} + +// GetRelayAuthenticationType returns the RelayAuthenticationType field value if set, zero value otherwise. +func (o *KeyfactorAPIModelsSMTPSMTPRequest) GetRelayAuthenticationType() int32 { + if o == nil || isNil(o.RelayAuthenticationType) { + var ret int32 + return ret + } + return *o.RelayAuthenticationType +} + +// GetRelayAuthenticationTypeOk returns a tuple with the RelayAuthenticationType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorAPIModelsSMTPSMTPRequest) GetRelayAuthenticationTypeOk() (*int32, bool) { + if o == nil || isNil(o.RelayAuthenticationType) { + return nil, false + } + return o.RelayAuthenticationType, true +} + +// HasRelayAuthenticationType returns a boolean if a field has been set. +func (o *KeyfactorAPIModelsSMTPSMTPRequest) HasRelayAuthenticationType() bool { + if o != nil && !isNil(o.RelayAuthenticationType) { + return true + } + + return false +} + +// SetRelayAuthenticationType gets a reference to the given int32 and assigns it to the RelayAuthenticationType field. +func (o *KeyfactorAPIModelsSMTPSMTPRequest) SetRelayAuthenticationType(v int32) { + o.RelayAuthenticationType = &v +} + +// GetRelayPassword returns the RelayPassword field value if set, zero value otherwise. +func (o *KeyfactorAPIModelsSMTPSMTPRequest) GetRelayPassword() string { + if o == nil || isNil(o.RelayPassword) { + var ret string + return ret + } + return *o.RelayPassword +} + +// GetRelayPasswordOk returns a tuple with the RelayPassword field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorAPIModelsSMTPSMTPRequest) GetRelayPasswordOk() (*string, bool) { + if o == nil || isNil(o.RelayPassword) { + return nil, false + } + return o.RelayPassword, true +} + +// HasRelayPassword returns a boolean if a field has been set. +func (o *KeyfactorAPIModelsSMTPSMTPRequest) HasRelayPassword() bool { + if o != nil && !isNil(o.RelayPassword) { + return true + } + + return false +} + +// SetRelayPassword gets a reference to the given string and assigns it to the RelayPassword field. +func (o *KeyfactorAPIModelsSMTPSMTPRequest) SetRelayPassword(v string) { + o.RelayPassword = &v +} + +// GetRelayUsername returns the RelayUsername field value if set, zero value otherwise. +func (o *KeyfactorAPIModelsSMTPSMTPRequest) GetRelayUsername() string { + if o == nil || isNil(o.RelayUsername) { + var ret string + return ret + } + return *o.RelayUsername +} + +// GetRelayUsernameOk returns a tuple with the RelayUsername field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorAPIModelsSMTPSMTPRequest) GetRelayUsernameOk() (*string, bool) { + if o == nil || isNil(o.RelayUsername) { + return nil, false + } + return o.RelayUsername, true +} + +// HasRelayUsername returns a boolean if a field has been set. +func (o *KeyfactorAPIModelsSMTPSMTPRequest) HasRelayUsername() bool { + if o != nil && !isNil(o.RelayUsername) { + return true + } + + return false +} + +// SetRelayUsername gets a reference to the given string and assigns it to the RelayUsername field. +func (o *KeyfactorAPIModelsSMTPSMTPRequest) SetRelayUsername(v string) { + o.RelayUsername = &v +} + +// GetSenderAccount returns the SenderAccount field value if set, zero value otherwise. +func (o *KeyfactorAPIModelsSMTPSMTPRequest) GetSenderAccount() string { + if o == nil || isNil(o.SenderAccount) { + var ret string + return ret + } + return *o.SenderAccount +} + +// GetSenderAccountOk returns a tuple with the SenderAccount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorAPIModelsSMTPSMTPRequest) GetSenderAccountOk() (*string, bool) { + if o == nil || isNil(o.SenderAccount) { + return nil, false + } + return o.SenderAccount, true +} + +// HasSenderAccount returns a boolean if a field has been set. +func (o *KeyfactorAPIModelsSMTPSMTPRequest) HasSenderAccount() bool { + if o != nil && !isNil(o.SenderAccount) { + return true + } + + return false +} + +// SetSenderAccount gets a reference to the given string and assigns it to the SenderAccount field. +func (o *KeyfactorAPIModelsSMTPSMTPRequest) SetSenderAccount(v string) { + o.SenderAccount = &v +} + +// GetSenderName returns the SenderName field value if set, zero value otherwise. +func (o *KeyfactorAPIModelsSMTPSMTPRequest) GetSenderName() string { + if o == nil || isNil(o.SenderName) { + var ret string + return ret + } + return *o.SenderName +} + +// GetSenderNameOk returns a tuple with the SenderName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorAPIModelsSMTPSMTPRequest) GetSenderNameOk() (*string, bool) { + if o == nil || isNil(o.SenderName) { + return nil, false + } + return o.SenderName, true +} + +// HasSenderName returns a boolean if a field has been set. +func (o *KeyfactorAPIModelsSMTPSMTPRequest) HasSenderName() bool { + if o != nil && !isNil(o.SenderName) { + return true + } + + return false +} + +// SetSenderName gets a reference to the given string and assigns it to the SenderName field. +func (o *KeyfactorAPIModelsSMTPSMTPRequest) SetSenderName(v string) { + o.SenderName = &v +} + +// GetUseSSL returns the UseSSL field value if set, zero value otherwise. +func (o *KeyfactorAPIModelsSMTPSMTPRequest) GetUseSSL() bool { + if o == nil || isNil(o.UseSSL) { + var ret bool + return ret + } + return *o.UseSSL +} + +// GetUseSSLOk returns a tuple with the UseSSL field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorAPIModelsSMTPSMTPRequest) GetUseSSLOk() (*bool, bool) { + if o == nil || isNil(o.UseSSL) { + return nil, false + } + return o.UseSSL, true +} + +// HasUseSSL returns a boolean if a field has been set. +func (o *KeyfactorAPIModelsSMTPSMTPRequest) HasUseSSL() bool { + if o != nil && !isNil(o.UseSSL) { + return true + } + + return false +} + +// SetUseSSL gets a reference to the given bool and assigns it to the UseSSL field. +func (o *KeyfactorAPIModelsSMTPSMTPRequest) SetUseSSL(v bool) { + o.UseSSL = &v +} + +func (o KeyfactorAPIModelsSMTPSMTPRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorAPIModelsSMTPSMTPRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Host) { + toSerialize["Host"] = o.Host + } + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.Port) { + toSerialize["Port"] = o.Port + } + if !isNil(o.RelayAuthenticationType) { + toSerialize["RelayAuthenticationType"] = o.RelayAuthenticationType + } + if !isNil(o.RelayPassword) { + toSerialize["RelayPassword"] = o.RelayPassword + } + if !isNil(o.RelayUsername) { + toSerialize["RelayUsername"] = o.RelayUsername + } + if !isNil(o.SenderAccount) { + toSerialize["SenderAccount"] = o.SenderAccount + } + if !isNil(o.SenderName) { + toSerialize["SenderName"] = o.SenderName + } + if !isNil(o.UseSSL) { + toSerialize["UseSSL"] = o.UseSSL + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorAPIModelsSMTPSMTPRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorAPIModelsSMTPSMTPRequest := _KeyfactorAPIModelsSMTPSMTPRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorAPIModelsSMTPSMTPRequest); err == nil { + *o = KeyfactorAPIModelsSMTPSMTPRequest(varKeyfactorAPIModelsSMTPSMTPRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Host") + delete(additionalProperties, "Id") + delete(additionalProperties, "Port") + delete(additionalProperties, "RelayAuthenticationType") + delete(additionalProperties, "RelayPassword") + delete(additionalProperties, "RelayUsername") + delete(additionalProperties, "SenderAccount") + delete(additionalProperties, "SenderName") + delete(additionalProperties, "UseSSL") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorAPIModelsSMTPSMTPRequest struct { + value *KeyfactorAPIModelsSMTPSMTPRequest + isSet bool +} + +func (v NullableKeyfactorAPIModelsSMTPSMTPRequest) Get() *KeyfactorAPIModelsSMTPSMTPRequest { + return v.value +} + +func (v *NullableKeyfactorAPIModelsSMTPSMTPRequest) Set(val *KeyfactorAPIModelsSMTPSMTPRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorAPIModelsSMTPSMTPRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorAPIModelsSMTPSMTPRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorAPIModelsSMTPSMTPRequest(val *KeyfactorAPIModelsSMTPSMTPRequest) *NullableKeyfactorAPIModelsSMTPSMTPRequest { + return &NullableKeyfactorAPIModelsSMTPSMTPRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorAPIModelsSMTPSMTPRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorAPIModelsSMTPSMTPRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_smtp_smtp_response.go b/v1/api/keyfactor/model_keyfactor_api_models_smtp_smtp_response.go new file mode 100644 index 0000000..489d911 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_smtp_smtp_response.go @@ -0,0 +1,417 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorAPIModelsSMTPSMTPResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorAPIModelsSMTPSMTPResponse{} + +// KeyfactorAPIModelsSMTPSMTPResponse struct for KeyfactorAPIModelsSMTPSMTPResponse +type KeyfactorAPIModelsSMTPSMTPResponse struct { + Host *string `json:"Host,omitempty"` + Id *int32 `json:"Id,omitempty"` + Port *int32 `json:"Port,omitempty"` + RelayAuthenticationType *int32 `json:"RelayAuthenticationType,omitempty"` + RelayUsername *string `json:"RelayUsername,omitempty"` + SenderAccount *string `json:"SenderAccount,omitempty"` + SenderName *string `json:"SenderName,omitempty"` + UseSSL *bool `json:"UseSSL,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorAPIModelsSMTPSMTPResponse KeyfactorAPIModelsSMTPSMTPResponse + +// NewKeyfactorAPIModelsSMTPSMTPResponse instantiates a new KeyfactorAPIModelsSMTPSMTPResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorAPIModelsSMTPSMTPResponse() *KeyfactorAPIModelsSMTPSMTPResponse { + this := KeyfactorAPIModelsSMTPSMTPResponse{} + return &this +} + +// NewKeyfactorAPIModelsSMTPSMTPResponseWithDefaults instantiates a new KeyfactorAPIModelsSMTPSMTPResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorAPIModelsSMTPSMTPResponseWithDefaults() *KeyfactorAPIModelsSMTPSMTPResponse { + this := KeyfactorAPIModelsSMTPSMTPResponse{} + return &this +} + +// GetHost returns the Host field value if set, zero value otherwise. +func (o *KeyfactorAPIModelsSMTPSMTPResponse) GetHost() string { + if o == nil || isNil(o.Host) { + var ret string + return ret + } + return *o.Host +} + +// GetHostOk returns a tuple with the Host field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorAPIModelsSMTPSMTPResponse) GetHostOk() (*string, bool) { + if o == nil || isNil(o.Host) { + return nil, false + } + return o.Host, true +} + +// HasHost returns a boolean if a field has been set. +func (o *KeyfactorAPIModelsSMTPSMTPResponse) HasHost() bool { + if o != nil && !isNil(o.Host) { + return true + } + + return false +} + +// SetHost gets a reference to the given string and assigns it to the Host field. +func (o *KeyfactorAPIModelsSMTPSMTPResponse) SetHost(v string) { + o.Host = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *KeyfactorAPIModelsSMTPSMTPResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorAPIModelsSMTPSMTPResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *KeyfactorAPIModelsSMTPSMTPResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *KeyfactorAPIModelsSMTPSMTPResponse) SetId(v int32) { + o.Id = &v +} + +// GetPort returns the Port field value if set, zero value otherwise. +func (o *KeyfactorAPIModelsSMTPSMTPResponse) GetPort() int32 { + if o == nil || isNil(o.Port) { + var ret int32 + return ret + } + return *o.Port +} + +// GetPortOk returns a tuple with the Port field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorAPIModelsSMTPSMTPResponse) GetPortOk() (*int32, bool) { + if o == nil || isNil(o.Port) { + return nil, false + } + return o.Port, true +} + +// HasPort returns a boolean if a field has been set. +func (o *KeyfactorAPIModelsSMTPSMTPResponse) HasPort() bool { + if o != nil && !isNil(o.Port) { + return true + } + + return false +} + +// SetPort gets a reference to the given int32 and assigns it to the Port field. +func (o *KeyfactorAPIModelsSMTPSMTPResponse) SetPort(v int32) { + o.Port = &v +} + +// GetRelayAuthenticationType returns the RelayAuthenticationType field value if set, zero value otherwise. +func (o *KeyfactorAPIModelsSMTPSMTPResponse) GetRelayAuthenticationType() int32 { + if o == nil || isNil(o.RelayAuthenticationType) { + var ret int32 + return ret + } + return *o.RelayAuthenticationType +} + +// GetRelayAuthenticationTypeOk returns a tuple with the RelayAuthenticationType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorAPIModelsSMTPSMTPResponse) GetRelayAuthenticationTypeOk() (*int32, bool) { + if o == nil || isNil(o.RelayAuthenticationType) { + return nil, false + } + return o.RelayAuthenticationType, true +} + +// HasRelayAuthenticationType returns a boolean if a field has been set. +func (o *KeyfactorAPIModelsSMTPSMTPResponse) HasRelayAuthenticationType() bool { + if o != nil && !isNil(o.RelayAuthenticationType) { + return true + } + + return false +} + +// SetRelayAuthenticationType gets a reference to the given int32 and assigns it to the RelayAuthenticationType field. +func (o *KeyfactorAPIModelsSMTPSMTPResponse) SetRelayAuthenticationType(v int32) { + o.RelayAuthenticationType = &v +} + +// GetRelayUsername returns the RelayUsername field value if set, zero value otherwise. +func (o *KeyfactorAPIModelsSMTPSMTPResponse) GetRelayUsername() string { + if o == nil || isNil(o.RelayUsername) { + var ret string + return ret + } + return *o.RelayUsername +} + +// GetRelayUsernameOk returns a tuple with the RelayUsername field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorAPIModelsSMTPSMTPResponse) GetRelayUsernameOk() (*string, bool) { + if o == nil || isNil(o.RelayUsername) { + return nil, false + } + return o.RelayUsername, true +} + +// HasRelayUsername returns a boolean if a field has been set. +func (o *KeyfactorAPIModelsSMTPSMTPResponse) HasRelayUsername() bool { + if o != nil && !isNil(o.RelayUsername) { + return true + } + + return false +} + +// SetRelayUsername gets a reference to the given string and assigns it to the RelayUsername field. +func (o *KeyfactorAPIModelsSMTPSMTPResponse) SetRelayUsername(v string) { + o.RelayUsername = &v +} + +// GetSenderAccount returns the SenderAccount field value if set, zero value otherwise. +func (o *KeyfactorAPIModelsSMTPSMTPResponse) GetSenderAccount() string { + if o == nil || isNil(o.SenderAccount) { + var ret string + return ret + } + return *o.SenderAccount +} + +// GetSenderAccountOk returns a tuple with the SenderAccount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorAPIModelsSMTPSMTPResponse) GetSenderAccountOk() (*string, bool) { + if o == nil || isNil(o.SenderAccount) { + return nil, false + } + return o.SenderAccount, true +} + +// HasSenderAccount returns a boolean if a field has been set. +func (o *KeyfactorAPIModelsSMTPSMTPResponse) HasSenderAccount() bool { + if o != nil && !isNil(o.SenderAccount) { + return true + } + + return false +} + +// SetSenderAccount gets a reference to the given string and assigns it to the SenderAccount field. +func (o *KeyfactorAPIModelsSMTPSMTPResponse) SetSenderAccount(v string) { + o.SenderAccount = &v +} + +// GetSenderName returns the SenderName field value if set, zero value otherwise. +func (o *KeyfactorAPIModelsSMTPSMTPResponse) GetSenderName() string { + if o == nil || isNil(o.SenderName) { + var ret string + return ret + } + return *o.SenderName +} + +// GetSenderNameOk returns a tuple with the SenderName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorAPIModelsSMTPSMTPResponse) GetSenderNameOk() (*string, bool) { + if o == nil || isNil(o.SenderName) { + return nil, false + } + return o.SenderName, true +} + +// HasSenderName returns a boolean if a field has been set. +func (o *KeyfactorAPIModelsSMTPSMTPResponse) HasSenderName() bool { + if o != nil && !isNil(o.SenderName) { + return true + } + + return false +} + +// SetSenderName gets a reference to the given string and assigns it to the SenderName field. +func (o *KeyfactorAPIModelsSMTPSMTPResponse) SetSenderName(v string) { + o.SenderName = &v +} + +// GetUseSSL returns the UseSSL field value if set, zero value otherwise. +func (o *KeyfactorAPIModelsSMTPSMTPResponse) GetUseSSL() bool { + if o == nil || isNil(o.UseSSL) { + var ret bool + return ret + } + return *o.UseSSL +} + +// GetUseSSLOk returns a tuple with the UseSSL field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorAPIModelsSMTPSMTPResponse) GetUseSSLOk() (*bool, bool) { + if o == nil || isNil(o.UseSSL) { + return nil, false + } + return o.UseSSL, true +} + +// HasUseSSL returns a boolean if a field has been set. +func (o *KeyfactorAPIModelsSMTPSMTPResponse) HasUseSSL() bool { + if o != nil && !isNil(o.UseSSL) { + return true + } + + return false +} + +// SetUseSSL gets a reference to the given bool and assigns it to the UseSSL field. +func (o *KeyfactorAPIModelsSMTPSMTPResponse) SetUseSSL(v bool) { + o.UseSSL = &v +} + +func (o KeyfactorAPIModelsSMTPSMTPResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorAPIModelsSMTPSMTPResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Host) { + toSerialize["Host"] = o.Host + } + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.Port) { + toSerialize["Port"] = o.Port + } + if !isNil(o.RelayAuthenticationType) { + toSerialize["RelayAuthenticationType"] = o.RelayAuthenticationType + } + if !isNil(o.RelayUsername) { + toSerialize["RelayUsername"] = o.RelayUsername + } + if !isNil(o.SenderAccount) { + toSerialize["SenderAccount"] = o.SenderAccount + } + if !isNil(o.SenderName) { + toSerialize["SenderName"] = o.SenderName + } + if !isNil(o.UseSSL) { + toSerialize["UseSSL"] = o.UseSSL + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorAPIModelsSMTPSMTPResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorAPIModelsSMTPSMTPResponse := _KeyfactorAPIModelsSMTPSMTPResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorAPIModelsSMTPSMTPResponse); err == nil { + *o = KeyfactorAPIModelsSMTPSMTPResponse(varKeyfactorAPIModelsSMTPSMTPResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Host") + delete(additionalProperties, "Id") + delete(additionalProperties, "Port") + delete(additionalProperties, "RelayAuthenticationType") + delete(additionalProperties, "RelayUsername") + delete(additionalProperties, "SenderAccount") + delete(additionalProperties, "SenderName") + delete(additionalProperties, "UseSSL") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorAPIModelsSMTPSMTPResponse struct { + value *KeyfactorAPIModelsSMTPSMTPResponse + isSet bool +} + +func (v NullableKeyfactorAPIModelsSMTPSMTPResponse) Get() *KeyfactorAPIModelsSMTPSMTPResponse { + return v.value +} + +func (v *NullableKeyfactorAPIModelsSMTPSMTPResponse) Set(val *KeyfactorAPIModelsSMTPSMTPResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorAPIModelsSMTPSMTPResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorAPIModelsSMTPSMTPResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorAPIModelsSMTPSMTPResponse(val *KeyfactorAPIModelsSMTPSMTPResponse) *NullableKeyfactorAPIModelsSMTPSMTPResponse { + return &NullableKeyfactorAPIModelsSMTPSMTPResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorAPIModelsSMTPSMTPResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorAPIModelsSMTPSMTPResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_smtp_smtp_test_request.go b/v1/api/keyfactor/model_keyfactor_api_models_smtp_smtp_test_request.go new file mode 100644 index 0000000..7d54cfe --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_smtp_smtp_test_request.go @@ -0,0 +1,491 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorAPIModelsSMTPSMTPTestRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorAPIModelsSMTPSMTPTestRequest{} + +// KeyfactorAPIModelsSMTPSMTPTestRequest struct for KeyfactorAPIModelsSMTPSMTPTestRequest +type KeyfactorAPIModelsSMTPSMTPTestRequest struct { + Host *string `json:"Host,omitempty"` + Id *int32 `json:"Id,omitempty"` + Port *int32 `json:"Port,omitempty"` + RelayAuthenticationType *int32 `json:"RelayAuthenticationType,omitempty"` + RelayPassword *string `json:"RelayPassword,omitempty"` + RelayUsername *string `json:"RelayUsername,omitempty"` + SenderAccount *string `json:"SenderAccount,omitempty"` + SenderName *string `json:"SenderName,omitempty"` + TestRecipient *string `json:"TestRecipient,omitempty"` + UseSSL *bool `json:"UseSSL,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorAPIModelsSMTPSMTPTestRequest KeyfactorAPIModelsSMTPSMTPTestRequest + +// NewKeyfactorAPIModelsSMTPSMTPTestRequest instantiates a new KeyfactorAPIModelsSMTPSMTPTestRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorAPIModelsSMTPSMTPTestRequest() *KeyfactorAPIModelsSMTPSMTPTestRequest { + this := KeyfactorAPIModelsSMTPSMTPTestRequest{} + return &this +} + +// NewKeyfactorAPIModelsSMTPSMTPTestRequestWithDefaults instantiates a new KeyfactorAPIModelsSMTPSMTPTestRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorAPIModelsSMTPSMTPTestRequestWithDefaults() *KeyfactorAPIModelsSMTPSMTPTestRequest { + this := KeyfactorAPIModelsSMTPSMTPTestRequest{} + return &this +} + +// GetHost returns the Host field value if set, zero value otherwise. +func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) GetHost() string { + if o == nil || isNil(o.Host) { + var ret string + return ret + } + return *o.Host +} + +// GetHostOk returns a tuple with the Host field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) GetHostOk() (*string, bool) { + if o == nil || isNil(o.Host) { + return nil, false + } + return o.Host, true +} + +// HasHost returns a boolean if a field has been set. +func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) HasHost() bool { + if o != nil && !isNil(o.Host) { + return true + } + + return false +} + +// SetHost gets a reference to the given string and assigns it to the Host field. +func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) SetHost(v string) { + o.Host = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) SetId(v int32) { + o.Id = &v +} + +// GetPort returns the Port field value if set, zero value otherwise. +func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) GetPort() int32 { + if o == nil || isNil(o.Port) { + var ret int32 + return ret + } + return *o.Port +} + +// GetPortOk returns a tuple with the Port field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) GetPortOk() (*int32, bool) { + if o == nil || isNil(o.Port) { + return nil, false + } + return o.Port, true +} + +// HasPort returns a boolean if a field has been set. +func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) HasPort() bool { + if o != nil && !isNil(o.Port) { + return true + } + + return false +} + +// SetPort gets a reference to the given int32 and assigns it to the Port field. +func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) SetPort(v int32) { + o.Port = &v +} + +// GetRelayAuthenticationType returns the RelayAuthenticationType field value if set, zero value otherwise. +func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) GetRelayAuthenticationType() int32 { + if o == nil || isNil(o.RelayAuthenticationType) { + var ret int32 + return ret + } + return *o.RelayAuthenticationType +} + +// GetRelayAuthenticationTypeOk returns a tuple with the RelayAuthenticationType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) GetRelayAuthenticationTypeOk() (*int32, bool) { + if o == nil || isNil(o.RelayAuthenticationType) { + return nil, false + } + return o.RelayAuthenticationType, true +} + +// HasRelayAuthenticationType returns a boolean if a field has been set. +func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) HasRelayAuthenticationType() bool { + if o != nil && !isNil(o.RelayAuthenticationType) { + return true + } + + return false +} + +// SetRelayAuthenticationType gets a reference to the given int32 and assigns it to the RelayAuthenticationType field. +func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) SetRelayAuthenticationType(v int32) { + o.RelayAuthenticationType = &v +} + +// GetRelayPassword returns the RelayPassword field value if set, zero value otherwise. +func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) GetRelayPassword() string { + if o == nil || isNil(o.RelayPassword) { + var ret string + return ret + } + return *o.RelayPassword +} + +// GetRelayPasswordOk returns a tuple with the RelayPassword field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) GetRelayPasswordOk() (*string, bool) { + if o == nil || isNil(o.RelayPassword) { + return nil, false + } + return o.RelayPassword, true +} + +// HasRelayPassword returns a boolean if a field has been set. +func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) HasRelayPassword() bool { + if o != nil && !isNil(o.RelayPassword) { + return true + } + + return false +} + +// SetRelayPassword gets a reference to the given string and assigns it to the RelayPassword field. +func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) SetRelayPassword(v string) { + o.RelayPassword = &v +} + +// GetRelayUsername returns the RelayUsername field value if set, zero value otherwise. +func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) GetRelayUsername() string { + if o == nil || isNil(o.RelayUsername) { + var ret string + return ret + } + return *o.RelayUsername +} + +// GetRelayUsernameOk returns a tuple with the RelayUsername field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) GetRelayUsernameOk() (*string, bool) { + if o == nil || isNil(o.RelayUsername) { + return nil, false + } + return o.RelayUsername, true +} + +// HasRelayUsername returns a boolean if a field has been set. +func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) HasRelayUsername() bool { + if o != nil && !isNil(o.RelayUsername) { + return true + } + + return false +} + +// SetRelayUsername gets a reference to the given string and assigns it to the RelayUsername field. +func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) SetRelayUsername(v string) { + o.RelayUsername = &v +} + +// GetSenderAccount returns the SenderAccount field value if set, zero value otherwise. +func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) GetSenderAccount() string { + if o == nil || isNil(o.SenderAccount) { + var ret string + return ret + } + return *o.SenderAccount +} + +// GetSenderAccountOk returns a tuple with the SenderAccount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) GetSenderAccountOk() (*string, bool) { + if o == nil || isNil(o.SenderAccount) { + return nil, false + } + return o.SenderAccount, true +} + +// HasSenderAccount returns a boolean if a field has been set. +func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) HasSenderAccount() bool { + if o != nil && !isNil(o.SenderAccount) { + return true + } + + return false +} + +// SetSenderAccount gets a reference to the given string and assigns it to the SenderAccount field. +func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) SetSenderAccount(v string) { + o.SenderAccount = &v +} + +// GetSenderName returns the SenderName field value if set, zero value otherwise. +func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) GetSenderName() string { + if o == nil || isNil(o.SenderName) { + var ret string + return ret + } + return *o.SenderName +} + +// GetSenderNameOk returns a tuple with the SenderName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) GetSenderNameOk() (*string, bool) { + if o == nil || isNil(o.SenderName) { + return nil, false + } + return o.SenderName, true +} + +// HasSenderName returns a boolean if a field has been set. +func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) HasSenderName() bool { + if o != nil && !isNil(o.SenderName) { + return true + } + + return false +} + +// SetSenderName gets a reference to the given string and assigns it to the SenderName field. +func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) SetSenderName(v string) { + o.SenderName = &v +} + +// GetTestRecipient returns the TestRecipient field value if set, zero value otherwise. +func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) GetTestRecipient() string { + if o == nil || isNil(o.TestRecipient) { + var ret string + return ret + } + return *o.TestRecipient +} + +// GetTestRecipientOk returns a tuple with the TestRecipient field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) GetTestRecipientOk() (*string, bool) { + if o == nil || isNil(o.TestRecipient) { + return nil, false + } + return o.TestRecipient, true +} + +// HasTestRecipient returns a boolean if a field has been set. +func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) HasTestRecipient() bool { + if o != nil && !isNil(o.TestRecipient) { + return true + } + + return false +} + +// SetTestRecipient gets a reference to the given string and assigns it to the TestRecipient field. +func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) SetTestRecipient(v string) { + o.TestRecipient = &v +} + +// GetUseSSL returns the UseSSL field value if set, zero value otherwise. +func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) GetUseSSL() bool { + if o == nil || isNil(o.UseSSL) { + var ret bool + return ret + } + return *o.UseSSL +} + +// GetUseSSLOk returns a tuple with the UseSSL field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) GetUseSSLOk() (*bool, bool) { + if o == nil || isNil(o.UseSSL) { + return nil, false + } + return o.UseSSL, true +} + +// HasUseSSL returns a boolean if a field has been set. +func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) HasUseSSL() bool { + if o != nil && !isNil(o.UseSSL) { + return true + } + + return false +} + +// SetUseSSL gets a reference to the given bool and assigns it to the UseSSL field. +func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) SetUseSSL(v bool) { + o.UseSSL = &v +} + +func (o KeyfactorAPIModelsSMTPSMTPTestRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorAPIModelsSMTPSMTPTestRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Host) { + toSerialize["Host"] = o.Host + } + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.Port) { + toSerialize["Port"] = o.Port + } + if !isNil(o.RelayAuthenticationType) { + toSerialize["RelayAuthenticationType"] = o.RelayAuthenticationType + } + if !isNil(o.RelayPassword) { + toSerialize["RelayPassword"] = o.RelayPassword + } + if !isNil(o.RelayUsername) { + toSerialize["RelayUsername"] = o.RelayUsername + } + if !isNil(o.SenderAccount) { + toSerialize["SenderAccount"] = o.SenderAccount + } + if !isNil(o.SenderName) { + toSerialize["SenderName"] = o.SenderName + } + if !isNil(o.TestRecipient) { + toSerialize["TestRecipient"] = o.TestRecipient + } + if !isNil(o.UseSSL) { + toSerialize["UseSSL"] = o.UseSSL + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorAPIModelsSMTPSMTPTestRequest := _KeyfactorAPIModelsSMTPSMTPTestRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorAPIModelsSMTPSMTPTestRequest); err == nil { + *o = KeyfactorAPIModelsSMTPSMTPTestRequest(varKeyfactorAPIModelsSMTPSMTPTestRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Host") + delete(additionalProperties, "Id") + delete(additionalProperties, "Port") + delete(additionalProperties, "RelayAuthenticationType") + delete(additionalProperties, "RelayPassword") + delete(additionalProperties, "RelayUsername") + delete(additionalProperties, "SenderAccount") + delete(additionalProperties, "SenderName") + delete(additionalProperties, "TestRecipient") + delete(additionalProperties, "UseSSL") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorAPIModelsSMTPSMTPTestRequest struct { + value *KeyfactorAPIModelsSMTPSMTPTestRequest + isSet bool +} + +func (v NullableKeyfactorAPIModelsSMTPSMTPTestRequest) Get() *KeyfactorAPIModelsSMTPSMTPTestRequest { + return v.value +} + +func (v *NullableKeyfactorAPIModelsSMTPSMTPTestRequest) Set(val *KeyfactorAPIModelsSMTPSMTPTestRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorAPIModelsSMTPSMTPTestRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorAPIModelsSMTPSMTPTestRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorAPIModelsSMTPSMTPTestRequest(val *KeyfactorAPIModelsSMTPSMTPTestRequest) *NullableKeyfactorAPIModelsSMTPSMTPTestRequest { + return &NullableKeyfactorAPIModelsSMTPSMTPTestRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorAPIModelsSMTPSMTPTestRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorAPIModelsSMTPSMTPTestRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_smtp_smtp_test_response.go b/v1/api/keyfactor/model_keyfactor_api_models_smtp_smtp_test_response.go new file mode 100644 index 0000000..238a187 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_smtp_smtp_test_response.go @@ -0,0 +1,454 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorAPIModelsSMTPSMTPTestResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorAPIModelsSMTPSMTPTestResponse{} + +// KeyfactorAPIModelsSMTPSMTPTestResponse struct for KeyfactorAPIModelsSMTPSMTPTestResponse +type KeyfactorAPIModelsSMTPSMTPTestResponse struct { + Host *string `json:"Host,omitempty"` + Id *int32 `json:"Id,omitempty"` + Port *int32 `json:"Port,omitempty"` + RelayAuthenticationType *int32 `json:"RelayAuthenticationType,omitempty"` + RelayUsername *string `json:"RelayUsername,omitempty"` + SenderAccount *string `json:"SenderAccount,omitempty"` + SenderName *string `json:"SenderName,omitempty"` + TestRecipient *string `json:"TestRecipient,omitempty"` + UseSSL *bool `json:"UseSSL,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorAPIModelsSMTPSMTPTestResponse KeyfactorAPIModelsSMTPSMTPTestResponse + +// NewKeyfactorAPIModelsSMTPSMTPTestResponse instantiates a new KeyfactorAPIModelsSMTPSMTPTestResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorAPIModelsSMTPSMTPTestResponse() *KeyfactorAPIModelsSMTPSMTPTestResponse { + this := KeyfactorAPIModelsSMTPSMTPTestResponse{} + return &this +} + +// NewKeyfactorAPIModelsSMTPSMTPTestResponseWithDefaults instantiates a new KeyfactorAPIModelsSMTPSMTPTestResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorAPIModelsSMTPSMTPTestResponseWithDefaults() *KeyfactorAPIModelsSMTPSMTPTestResponse { + this := KeyfactorAPIModelsSMTPSMTPTestResponse{} + return &this +} + +// GetHost returns the Host field value if set, zero value otherwise. +func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) GetHost() string { + if o == nil || isNil(o.Host) { + var ret string + return ret + } + return *o.Host +} + +// GetHostOk returns a tuple with the Host field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) GetHostOk() (*string, bool) { + if o == nil || isNil(o.Host) { + return nil, false + } + return o.Host, true +} + +// HasHost returns a boolean if a field has been set. +func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) HasHost() bool { + if o != nil && !isNil(o.Host) { + return true + } + + return false +} + +// SetHost gets a reference to the given string and assigns it to the Host field. +func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) SetHost(v string) { + o.Host = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) SetId(v int32) { + o.Id = &v +} + +// GetPort returns the Port field value if set, zero value otherwise. +func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) GetPort() int32 { + if o == nil || isNil(o.Port) { + var ret int32 + return ret + } + return *o.Port +} + +// GetPortOk returns a tuple with the Port field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) GetPortOk() (*int32, bool) { + if o == nil || isNil(o.Port) { + return nil, false + } + return o.Port, true +} + +// HasPort returns a boolean if a field has been set. +func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) HasPort() bool { + if o != nil && !isNil(o.Port) { + return true + } + + return false +} + +// SetPort gets a reference to the given int32 and assigns it to the Port field. +func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) SetPort(v int32) { + o.Port = &v +} + +// GetRelayAuthenticationType returns the RelayAuthenticationType field value if set, zero value otherwise. +func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) GetRelayAuthenticationType() int32 { + if o == nil || isNil(o.RelayAuthenticationType) { + var ret int32 + return ret + } + return *o.RelayAuthenticationType +} + +// GetRelayAuthenticationTypeOk returns a tuple with the RelayAuthenticationType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) GetRelayAuthenticationTypeOk() (*int32, bool) { + if o == nil || isNil(o.RelayAuthenticationType) { + return nil, false + } + return o.RelayAuthenticationType, true +} + +// HasRelayAuthenticationType returns a boolean if a field has been set. +func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) HasRelayAuthenticationType() bool { + if o != nil && !isNil(o.RelayAuthenticationType) { + return true + } + + return false +} + +// SetRelayAuthenticationType gets a reference to the given int32 and assigns it to the RelayAuthenticationType field. +func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) SetRelayAuthenticationType(v int32) { + o.RelayAuthenticationType = &v +} + +// GetRelayUsername returns the RelayUsername field value if set, zero value otherwise. +func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) GetRelayUsername() string { + if o == nil || isNil(o.RelayUsername) { + var ret string + return ret + } + return *o.RelayUsername +} + +// GetRelayUsernameOk returns a tuple with the RelayUsername field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) GetRelayUsernameOk() (*string, bool) { + if o == nil || isNil(o.RelayUsername) { + return nil, false + } + return o.RelayUsername, true +} + +// HasRelayUsername returns a boolean if a field has been set. +func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) HasRelayUsername() bool { + if o != nil && !isNil(o.RelayUsername) { + return true + } + + return false +} + +// SetRelayUsername gets a reference to the given string and assigns it to the RelayUsername field. +func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) SetRelayUsername(v string) { + o.RelayUsername = &v +} + +// GetSenderAccount returns the SenderAccount field value if set, zero value otherwise. +func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) GetSenderAccount() string { + if o == nil || isNil(o.SenderAccount) { + var ret string + return ret + } + return *o.SenderAccount +} + +// GetSenderAccountOk returns a tuple with the SenderAccount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) GetSenderAccountOk() (*string, bool) { + if o == nil || isNil(o.SenderAccount) { + return nil, false + } + return o.SenderAccount, true +} + +// HasSenderAccount returns a boolean if a field has been set. +func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) HasSenderAccount() bool { + if o != nil && !isNil(o.SenderAccount) { + return true + } + + return false +} + +// SetSenderAccount gets a reference to the given string and assigns it to the SenderAccount field. +func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) SetSenderAccount(v string) { + o.SenderAccount = &v +} + +// GetSenderName returns the SenderName field value if set, zero value otherwise. +func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) GetSenderName() string { + if o == nil || isNil(o.SenderName) { + var ret string + return ret + } + return *o.SenderName +} + +// GetSenderNameOk returns a tuple with the SenderName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) GetSenderNameOk() (*string, bool) { + if o == nil || isNil(o.SenderName) { + return nil, false + } + return o.SenderName, true +} + +// HasSenderName returns a boolean if a field has been set. +func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) HasSenderName() bool { + if o != nil && !isNil(o.SenderName) { + return true + } + + return false +} + +// SetSenderName gets a reference to the given string and assigns it to the SenderName field. +func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) SetSenderName(v string) { + o.SenderName = &v +} + +// GetTestRecipient returns the TestRecipient field value if set, zero value otherwise. +func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) GetTestRecipient() string { + if o == nil || isNil(o.TestRecipient) { + var ret string + return ret + } + return *o.TestRecipient +} + +// GetTestRecipientOk returns a tuple with the TestRecipient field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) GetTestRecipientOk() (*string, bool) { + if o == nil || isNil(o.TestRecipient) { + return nil, false + } + return o.TestRecipient, true +} + +// HasTestRecipient returns a boolean if a field has been set. +func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) HasTestRecipient() bool { + if o != nil && !isNil(o.TestRecipient) { + return true + } + + return false +} + +// SetTestRecipient gets a reference to the given string and assigns it to the TestRecipient field. +func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) SetTestRecipient(v string) { + o.TestRecipient = &v +} + +// GetUseSSL returns the UseSSL field value if set, zero value otherwise. +func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) GetUseSSL() bool { + if o == nil || isNil(o.UseSSL) { + var ret bool + return ret + } + return *o.UseSSL +} + +// GetUseSSLOk returns a tuple with the UseSSL field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) GetUseSSLOk() (*bool, bool) { + if o == nil || isNil(o.UseSSL) { + return nil, false + } + return o.UseSSL, true +} + +// HasUseSSL returns a boolean if a field has been set. +func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) HasUseSSL() bool { + if o != nil && !isNil(o.UseSSL) { + return true + } + + return false +} + +// SetUseSSL gets a reference to the given bool and assigns it to the UseSSL field. +func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) SetUseSSL(v bool) { + o.UseSSL = &v +} + +func (o KeyfactorAPIModelsSMTPSMTPTestResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorAPIModelsSMTPSMTPTestResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Host) { + toSerialize["Host"] = o.Host + } + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.Port) { + toSerialize["Port"] = o.Port + } + if !isNil(o.RelayAuthenticationType) { + toSerialize["RelayAuthenticationType"] = o.RelayAuthenticationType + } + if !isNil(o.RelayUsername) { + toSerialize["RelayUsername"] = o.RelayUsername + } + if !isNil(o.SenderAccount) { + toSerialize["SenderAccount"] = o.SenderAccount + } + if !isNil(o.SenderName) { + toSerialize["SenderName"] = o.SenderName + } + if !isNil(o.TestRecipient) { + toSerialize["TestRecipient"] = o.TestRecipient + } + if !isNil(o.UseSSL) { + toSerialize["UseSSL"] = o.UseSSL + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorAPIModelsSMTPSMTPTestResponse := _KeyfactorAPIModelsSMTPSMTPTestResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorAPIModelsSMTPSMTPTestResponse); err == nil { + *o = KeyfactorAPIModelsSMTPSMTPTestResponse(varKeyfactorAPIModelsSMTPSMTPTestResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Host") + delete(additionalProperties, "Id") + delete(additionalProperties, "Port") + delete(additionalProperties, "RelayAuthenticationType") + delete(additionalProperties, "RelayUsername") + delete(additionalProperties, "SenderAccount") + delete(additionalProperties, "SenderName") + delete(additionalProperties, "TestRecipient") + delete(additionalProperties, "UseSSL") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorAPIModelsSMTPSMTPTestResponse struct { + value *KeyfactorAPIModelsSMTPSMTPTestResponse + isSet bool +} + +func (v NullableKeyfactorAPIModelsSMTPSMTPTestResponse) Get() *KeyfactorAPIModelsSMTPSMTPTestResponse { + return v.value +} + +func (v *NullableKeyfactorAPIModelsSMTPSMTPTestResponse) Set(val *KeyfactorAPIModelsSMTPSMTPTestResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorAPIModelsSMTPSMTPTestResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorAPIModelsSMTPSMTPTestResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorAPIModelsSMTPSMTPTestResponse(val *KeyfactorAPIModelsSMTPSMTPTestResponse) *NullableKeyfactorAPIModelsSMTPSMTPTestResponse { + return &NullableKeyfactorAPIModelsSMTPSMTPTestResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorAPIModelsSMTPSMTPTestResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorAPIModelsSMTPSMTPTestResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_ssl_create_network_request.go b/v1/api/keyfactor/model_keyfactor_api_models_ssl_create_network_request.go new file mode 100644 index 0000000..2aefc11 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_ssl_create_network_request.go @@ -0,0 +1,575 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsSslCreateNetworkRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsSslCreateNetworkRequest{} + +// KeyfactorApiModelsSslCreateNetworkRequest struct for KeyfactorApiModelsSslCreateNetworkRequest +type KeyfactorApiModelsSslCreateNetworkRequest struct { + Name string `json:"Name"` + AgentPoolName string `json:"AgentPoolName"` + Description string `json:"Description"` + Enabled *bool `json:"Enabled,omitempty"` + DiscoverSchedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"DiscoverSchedule,omitempty"` + MonitorSchedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"MonitorSchedule,omitempty"` + SslAlertRecipients []string `json:"SslAlertRecipients,omitempty"` + AutoMonitor *bool `json:"AutoMonitor,omitempty"` + GetRobots *bool `json:"GetRobots,omitempty"` + DiscoverTimeoutMs *float64 `json:"DiscoverTimeoutMs,omitempty"` + MonitorTimeoutMs *float64 `json:"MonitorTimeoutMs,omitempty"` + ExpirationAlertDays *float64 `json:"ExpirationAlertDays,omitempty"` + QuietHours []KeyfactorApiModelsSslQuietHourRequest `json:"QuietHours,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsSslCreateNetworkRequest KeyfactorApiModelsSslCreateNetworkRequest + +// NewKeyfactorApiModelsSslCreateNetworkRequest instantiates a new KeyfactorApiModelsSslCreateNetworkRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsSslCreateNetworkRequest(name string, agentPoolName string, description string) *KeyfactorApiModelsSslCreateNetworkRequest { + this := KeyfactorApiModelsSslCreateNetworkRequest{} + this.Name = name + this.AgentPoolName = agentPoolName + this.Description = description + return &this +} + +// NewKeyfactorApiModelsSslCreateNetworkRequestWithDefaults instantiates a new KeyfactorApiModelsSslCreateNetworkRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsSslCreateNetworkRequestWithDefaults() *KeyfactorApiModelsSslCreateNetworkRequest { + this := KeyfactorApiModelsSslCreateNetworkRequest{} + return &this +} + +// GetName returns the Name field value +func (o *KeyfactorApiModelsSslCreateNetworkRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslCreateNetworkRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *KeyfactorApiModelsSslCreateNetworkRequest) SetName(v string) { + o.Name = v +} + +// GetAgentPoolName returns the AgentPoolName field value +func (o *KeyfactorApiModelsSslCreateNetworkRequest) GetAgentPoolName() string { + if o == nil { + var ret string + return ret + } + + return o.AgentPoolName +} + +// GetAgentPoolNameOk returns a tuple with the AgentPoolName field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslCreateNetworkRequest) GetAgentPoolNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AgentPoolName, true +} + +// SetAgentPoolName sets field value +func (o *KeyfactorApiModelsSslCreateNetworkRequest) SetAgentPoolName(v string) { + o.AgentPoolName = v +} + +// GetDescription returns the Description field value +func (o *KeyfactorApiModelsSslCreateNetworkRequest) GetDescription() string { + if o == nil { + var ret string + return ret + } + + return o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslCreateNetworkRequest) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Description, true +} + +// SetDescription sets field value +func (o *KeyfactorApiModelsSslCreateNetworkRequest) SetDescription(v string) { + o.Description = v +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslCreateNetworkRequest) GetEnabled() bool { + if o == nil || isNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslCreateNetworkRequest) GetEnabledOk() (*bool, bool) { + if o == nil || isNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslCreateNetworkRequest) HasEnabled() bool { + if o != nil && !isNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *KeyfactorApiModelsSslCreateNetworkRequest) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetDiscoverSchedule returns the DiscoverSchedule field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslCreateNetworkRequest) GetDiscoverSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.DiscoverSchedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.DiscoverSchedule +} + +// GetDiscoverScheduleOk returns a tuple with the DiscoverSchedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslCreateNetworkRequest) GetDiscoverScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.DiscoverSchedule) { + return nil, false + } + return o.DiscoverSchedule, true +} + +// HasDiscoverSchedule returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslCreateNetworkRequest) HasDiscoverSchedule() bool { + if o != nil && !isNil(o.DiscoverSchedule) { + return true + } + + return false +} + +// SetDiscoverSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the DiscoverSchedule field. +func (o *KeyfactorApiModelsSslCreateNetworkRequest) SetDiscoverSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.DiscoverSchedule = &v +} + +// GetMonitorSchedule returns the MonitorSchedule field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslCreateNetworkRequest) GetMonitorSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.MonitorSchedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.MonitorSchedule +} + +// GetMonitorScheduleOk returns a tuple with the MonitorSchedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslCreateNetworkRequest) GetMonitorScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.MonitorSchedule) { + return nil, false + } + return o.MonitorSchedule, true +} + +// HasMonitorSchedule returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslCreateNetworkRequest) HasMonitorSchedule() bool { + if o != nil && !isNil(o.MonitorSchedule) { + return true + } + + return false +} + +// SetMonitorSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the MonitorSchedule field. +func (o *KeyfactorApiModelsSslCreateNetworkRequest) SetMonitorSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.MonitorSchedule = &v +} + +// GetSslAlertRecipients returns the SslAlertRecipients field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslCreateNetworkRequest) GetSslAlertRecipients() []string { + if o == nil || isNil(o.SslAlertRecipients) { + var ret []string + return ret + } + return o.SslAlertRecipients +} + +// GetSslAlertRecipientsOk returns a tuple with the SslAlertRecipients field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslCreateNetworkRequest) GetSslAlertRecipientsOk() ([]string, bool) { + if o == nil || isNil(o.SslAlertRecipients) { + return nil, false + } + return o.SslAlertRecipients, true +} + +// HasSslAlertRecipients returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslCreateNetworkRequest) HasSslAlertRecipients() bool { + if o != nil && !isNil(o.SslAlertRecipients) { + return true + } + + return false +} + +// SetSslAlertRecipients gets a reference to the given []string and assigns it to the SslAlertRecipients field. +func (o *KeyfactorApiModelsSslCreateNetworkRequest) SetSslAlertRecipients(v []string) { + o.SslAlertRecipients = v +} + +// GetAutoMonitor returns the AutoMonitor field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslCreateNetworkRequest) GetAutoMonitor() bool { + if o == nil || isNil(o.AutoMonitor) { + var ret bool + return ret + } + return *o.AutoMonitor +} + +// GetAutoMonitorOk returns a tuple with the AutoMonitor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslCreateNetworkRequest) GetAutoMonitorOk() (*bool, bool) { + if o == nil || isNil(o.AutoMonitor) { + return nil, false + } + return o.AutoMonitor, true +} + +// HasAutoMonitor returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslCreateNetworkRequest) HasAutoMonitor() bool { + if o != nil && !isNil(o.AutoMonitor) { + return true + } + + return false +} + +// SetAutoMonitor gets a reference to the given bool and assigns it to the AutoMonitor field. +func (o *KeyfactorApiModelsSslCreateNetworkRequest) SetAutoMonitor(v bool) { + o.AutoMonitor = &v +} + +// GetGetRobots returns the GetRobots field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslCreateNetworkRequest) GetGetRobots() bool { + if o == nil || isNil(o.GetRobots) { + var ret bool + return ret + } + return *o.GetRobots +} + +// GetGetRobotsOk returns a tuple with the GetRobots field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslCreateNetworkRequest) GetGetRobotsOk() (*bool, bool) { + if o == nil || isNil(o.GetRobots) { + return nil, false + } + return o.GetRobots, true +} + +// HasGetRobots returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslCreateNetworkRequest) HasGetRobots() bool { + if o != nil && !isNil(o.GetRobots) { + return true + } + + return false +} + +// SetGetRobots gets a reference to the given bool and assigns it to the GetRobots field. +func (o *KeyfactorApiModelsSslCreateNetworkRequest) SetGetRobots(v bool) { + o.GetRobots = &v +} + +// GetDiscoverTimeoutMs returns the DiscoverTimeoutMs field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslCreateNetworkRequest) GetDiscoverTimeoutMs() float64 { + if o == nil || isNil(o.DiscoverTimeoutMs) { + var ret float64 + return ret + } + return *o.DiscoverTimeoutMs +} + +// GetDiscoverTimeoutMsOk returns a tuple with the DiscoverTimeoutMs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslCreateNetworkRequest) GetDiscoverTimeoutMsOk() (*float64, bool) { + if o == nil || isNil(o.DiscoverTimeoutMs) { + return nil, false + } + return o.DiscoverTimeoutMs, true +} + +// HasDiscoverTimeoutMs returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslCreateNetworkRequest) HasDiscoverTimeoutMs() bool { + if o != nil && !isNil(o.DiscoverTimeoutMs) { + return true + } + + return false +} + +// SetDiscoverTimeoutMs gets a reference to the given float64 and assigns it to the DiscoverTimeoutMs field. +func (o *KeyfactorApiModelsSslCreateNetworkRequest) SetDiscoverTimeoutMs(v float64) { + o.DiscoverTimeoutMs = &v +} + +// GetMonitorTimeoutMs returns the MonitorTimeoutMs field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslCreateNetworkRequest) GetMonitorTimeoutMs() float64 { + if o == nil || isNil(o.MonitorTimeoutMs) { + var ret float64 + return ret + } + return *o.MonitorTimeoutMs +} + +// GetMonitorTimeoutMsOk returns a tuple with the MonitorTimeoutMs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslCreateNetworkRequest) GetMonitorTimeoutMsOk() (*float64, bool) { + if o == nil || isNil(o.MonitorTimeoutMs) { + return nil, false + } + return o.MonitorTimeoutMs, true +} + +// HasMonitorTimeoutMs returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslCreateNetworkRequest) HasMonitorTimeoutMs() bool { + if o != nil && !isNil(o.MonitorTimeoutMs) { + return true + } + + return false +} + +// SetMonitorTimeoutMs gets a reference to the given float64 and assigns it to the MonitorTimeoutMs field. +func (o *KeyfactorApiModelsSslCreateNetworkRequest) SetMonitorTimeoutMs(v float64) { + o.MonitorTimeoutMs = &v +} + +// GetExpirationAlertDays returns the ExpirationAlertDays field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslCreateNetworkRequest) GetExpirationAlertDays() float64 { + if o == nil || isNil(o.ExpirationAlertDays) { + var ret float64 + return ret + } + return *o.ExpirationAlertDays +} + +// GetExpirationAlertDaysOk returns a tuple with the ExpirationAlertDays field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslCreateNetworkRequest) GetExpirationAlertDaysOk() (*float64, bool) { + if o == nil || isNil(o.ExpirationAlertDays) { + return nil, false + } + return o.ExpirationAlertDays, true +} + +// HasExpirationAlertDays returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslCreateNetworkRequest) HasExpirationAlertDays() bool { + if o != nil && !isNil(o.ExpirationAlertDays) { + return true + } + + return false +} + +// SetExpirationAlertDays gets a reference to the given float64 and assigns it to the ExpirationAlertDays field. +func (o *KeyfactorApiModelsSslCreateNetworkRequest) SetExpirationAlertDays(v float64) { + o.ExpirationAlertDays = &v +} + +// GetQuietHours returns the QuietHours field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslCreateNetworkRequest) GetQuietHours() []KeyfactorApiModelsSslQuietHourRequest { + if o == nil || isNil(o.QuietHours) { + var ret []KeyfactorApiModelsSslQuietHourRequest + return ret + } + return o.QuietHours +} + +// GetQuietHoursOk returns a tuple with the QuietHours field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslCreateNetworkRequest) GetQuietHoursOk() ([]KeyfactorApiModelsSslQuietHourRequest, bool) { + if o == nil || isNil(o.QuietHours) { + return nil, false + } + return o.QuietHours, true +} + +// HasQuietHours returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslCreateNetworkRequest) HasQuietHours() bool { + if o != nil && !isNil(o.QuietHours) { + return true + } + + return false +} + +// SetQuietHours gets a reference to the given []KeyfactorApiModelsSslQuietHourRequest and assigns it to the QuietHours field. +func (o *KeyfactorApiModelsSslCreateNetworkRequest) SetQuietHours(v []KeyfactorApiModelsSslQuietHourRequest) { + o.QuietHours = v +} + +func (o KeyfactorApiModelsSslCreateNetworkRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsSslCreateNetworkRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Name"] = o.Name + toSerialize["AgentPoolName"] = o.AgentPoolName + toSerialize["Description"] = o.Description + if !isNil(o.Enabled) { + toSerialize["Enabled"] = o.Enabled + } + if !isNil(o.DiscoverSchedule) { + toSerialize["DiscoverSchedule"] = o.DiscoverSchedule + } + if !isNil(o.MonitorSchedule) { + toSerialize["MonitorSchedule"] = o.MonitorSchedule + } + if !isNil(o.SslAlertRecipients) { + toSerialize["SslAlertRecipients"] = o.SslAlertRecipients + } + if !isNil(o.AutoMonitor) { + toSerialize["AutoMonitor"] = o.AutoMonitor + } + if !isNil(o.GetRobots) { + toSerialize["GetRobots"] = o.GetRobots + } + if !isNil(o.DiscoverTimeoutMs) { + toSerialize["DiscoverTimeoutMs"] = o.DiscoverTimeoutMs + } + if !isNil(o.MonitorTimeoutMs) { + toSerialize["MonitorTimeoutMs"] = o.MonitorTimeoutMs + } + if !isNil(o.ExpirationAlertDays) { + toSerialize["ExpirationAlertDays"] = o.ExpirationAlertDays + } + if !isNil(o.QuietHours) { + toSerialize["QuietHours"] = o.QuietHours + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsSslCreateNetworkRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsSslCreateNetworkRequest := _KeyfactorApiModelsSslCreateNetworkRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsSslCreateNetworkRequest); err == nil { + *o = KeyfactorApiModelsSslCreateNetworkRequest(varKeyfactorApiModelsSslCreateNetworkRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Name") + delete(additionalProperties, "AgentPoolName") + delete(additionalProperties, "Description") + delete(additionalProperties, "Enabled") + delete(additionalProperties, "DiscoverSchedule") + delete(additionalProperties, "MonitorSchedule") + delete(additionalProperties, "SslAlertRecipients") + delete(additionalProperties, "AutoMonitor") + delete(additionalProperties, "GetRobots") + delete(additionalProperties, "DiscoverTimeoutMs") + delete(additionalProperties, "MonitorTimeoutMs") + delete(additionalProperties, "ExpirationAlertDays") + delete(additionalProperties, "QuietHours") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsSslCreateNetworkRequest struct { + value *KeyfactorApiModelsSslCreateNetworkRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsSslCreateNetworkRequest) Get() *KeyfactorApiModelsSslCreateNetworkRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsSslCreateNetworkRequest) Set(val *KeyfactorApiModelsSslCreateNetworkRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsSslCreateNetworkRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsSslCreateNetworkRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsSslCreateNetworkRequest(val *KeyfactorApiModelsSslCreateNetworkRequest) *NullableKeyfactorApiModelsSslCreateNetworkRequest { + return &NullableKeyfactorApiModelsSslCreateNetworkRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsSslCreateNetworkRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsSslCreateNetworkRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_ssl_network_query_response.go b/v1/api/keyfactor/model_keyfactor_api_models_ssl_network_query_response.go new file mode 100644 index 0000000..7725f9a --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_ssl_network_query_response.go @@ -0,0 +1,973 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" + "time" +) + +// checks if the KeyfactorApiModelsSslNetworkQueryResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsSslNetworkQueryResponse{} + +// KeyfactorApiModelsSslNetworkQueryResponse struct for KeyfactorApiModelsSslNetworkQueryResponse +type KeyfactorApiModelsSslNetworkQueryResponse struct { + NetworkId *string `json:"NetworkId,omitempty"` + Name *string `json:"Name,omitempty"` + AgentPoolName *string `json:"AgentPoolName,omitempty"` + AgentPoolId *string `json:"AgentPoolId,omitempty"` + Description *string `json:"Description,omitempty"` + Enabled *bool `json:"Enabled,omitempty"` + DiscoverSchedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"DiscoverSchedule,omitempty"` + MonitorSchedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"MonitorSchedule,omitempty"` + DiscoverPercentComplete *float64 `json:"DiscoverPercentComplete,omitempty"` + MonitorPercentComplete *float64 `json:"MonitorPercentComplete,omitempty"` + DiscoverStatus *int32 `json:"DiscoverStatus,omitempty"` + MonitorStatus *int32 `json:"MonitorStatus,omitempty"` + DiscoverLastScanned *time.Time `json:"DiscoverLastScanned,omitempty"` + MonitorLastScanned *time.Time `json:"MonitorLastScanned,omitempty"` + SslAlertRecipients []string `json:"SslAlertRecipients,omitempty"` + AutoMonitor *bool `json:"AutoMonitor,omitempty"` + GetRobots *bool `json:"GetRobots,omitempty"` + DiscoverTimeoutMs *float64 `json:"DiscoverTimeoutMs,omitempty"` + MonitorTimeoutMs *float64 `json:"MonitorTimeoutMs,omitempty"` + ExpirationAlertDays *float64 `json:"ExpirationAlertDays,omitempty"` + DiscoverJobParts *int32 `json:"DiscoverJobParts,omitempty"` + MonitorJobParts *int32 `json:"MonitorJobParts,omitempty"` + QuietHours []KeyfactorApiModelsSslQuietHourResponse `json:"QuietHours,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsSslNetworkQueryResponse KeyfactorApiModelsSslNetworkQueryResponse + +// NewKeyfactorApiModelsSslNetworkQueryResponse instantiates a new KeyfactorApiModelsSslNetworkQueryResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsSslNetworkQueryResponse() *KeyfactorApiModelsSslNetworkQueryResponse { + this := KeyfactorApiModelsSslNetworkQueryResponse{} + return &this +} + +// NewKeyfactorApiModelsSslNetworkQueryResponseWithDefaults instantiates a new KeyfactorApiModelsSslNetworkQueryResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsSslNetworkQueryResponseWithDefaults() *KeyfactorApiModelsSslNetworkQueryResponse { + this := KeyfactorApiModelsSslNetworkQueryResponse{} + return &this +} + +// GetNetworkId returns the NetworkId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetNetworkId() string { + if o == nil || isNil(o.NetworkId) { + var ret string + return ret + } + return *o.NetworkId +} + +// GetNetworkIdOk returns a tuple with the NetworkId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetNetworkIdOk() (*string, bool) { + if o == nil || isNil(o.NetworkId) { + return nil, false + } + return o.NetworkId, true +} + +// HasNetworkId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) HasNetworkId() bool { + if o != nil && !isNil(o.NetworkId) { + return true + } + + return false +} + +// SetNetworkId gets a reference to the given string and assigns it to the NetworkId field. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) SetNetworkId(v string) { + o.NetworkId = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetName() string { + if o == nil || isNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetNameOk() (*string, bool) { + if o == nil || isNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) HasName() bool { + if o != nil && !isNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) SetName(v string) { + o.Name = &v +} + +// GetAgentPoolName returns the AgentPoolName field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetAgentPoolName() string { + if o == nil || isNil(o.AgentPoolName) { + var ret string + return ret + } + return *o.AgentPoolName +} + +// GetAgentPoolNameOk returns a tuple with the AgentPoolName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetAgentPoolNameOk() (*string, bool) { + if o == nil || isNil(o.AgentPoolName) { + return nil, false + } + return o.AgentPoolName, true +} + +// HasAgentPoolName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) HasAgentPoolName() bool { + if o != nil && !isNil(o.AgentPoolName) { + return true + } + + return false +} + +// SetAgentPoolName gets a reference to the given string and assigns it to the AgentPoolName field. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) SetAgentPoolName(v string) { + o.AgentPoolName = &v +} + +// GetAgentPoolId returns the AgentPoolId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetAgentPoolId() string { + if o == nil || isNil(o.AgentPoolId) { + var ret string + return ret + } + return *o.AgentPoolId +} + +// GetAgentPoolIdOk returns a tuple with the AgentPoolId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetAgentPoolIdOk() (*string, bool) { + if o == nil || isNil(o.AgentPoolId) { + return nil, false + } + return o.AgentPoolId, true +} + +// HasAgentPoolId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) HasAgentPoolId() bool { + if o != nil && !isNil(o.AgentPoolId) { + return true + } + + return false +} + +// SetAgentPoolId gets a reference to the given string and assigns it to the AgentPoolId field. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) SetAgentPoolId(v string) { + o.AgentPoolId = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetDescription() string { + if o == nil || isNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetDescriptionOk() (*string, bool) { + if o == nil || isNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) HasDescription() bool { + if o != nil && !isNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) SetDescription(v string) { + o.Description = &v +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetEnabled() bool { + if o == nil || isNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetEnabledOk() (*bool, bool) { + if o == nil || isNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) HasEnabled() bool { + if o != nil && !isNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetDiscoverSchedule returns the DiscoverSchedule field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetDiscoverSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.DiscoverSchedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.DiscoverSchedule +} + +// GetDiscoverScheduleOk returns a tuple with the DiscoverSchedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetDiscoverScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.DiscoverSchedule) { + return nil, false + } + return o.DiscoverSchedule, true +} + +// HasDiscoverSchedule returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) HasDiscoverSchedule() bool { + if o != nil && !isNil(o.DiscoverSchedule) { + return true + } + + return false +} + +// SetDiscoverSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the DiscoverSchedule field. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) SetDiscoverSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.DiscoverSchedule = &v +} + +// GetMonitorSchedule returns the MonitorSchedule field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetMonitorSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.MonitorSchedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.MonitorSchedule +} + +// GetMonitorScheduleOk returns a tuple with the MonitorSchedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetMonitorScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.MonitorSchedule) { + return nil, false + } + return o.MonitorSchedule, true +} + +// HasMonitorSchedule returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) HasMonitorSchedule() bool { + if o != nil && !isNil(o.MonitorSchedule) { + return true + } + + return false +} + +// SetMonitorSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the MonitorSchedule field. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) SetMonitorSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.MonitorSchedule = &v +} + +// GetDiscoverPercentComplete returns the DiscoverPercentComplete field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetDiscoverPercentComplete() float64 { + if o == nil || isNil(o.DiscoverPercentComplete) { + var ret float64 + return ret + } + return *o.DiscoverPercentComplete +} + +// GetDiscoverPercentCompleteOk returns a tuple with the DiscoverPercentComplete field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetDiscoverPercentCompleteOk() (*float64, bool) { + if o == nil || isNil(o.DiscoverPercentComplete) { + return nil, false + } + return o.DiscoverPercentComplete, true +} + +// HasDiscoverPercentComplete returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) HasDiscoverPercentComplete() bool { + if o != nil && !isNil(o.DiscoverPercentComplete) { + return true + } + + return false +} + +// SetDiscoverPercentComplete gets a reference to the given float64 and assigns it to the DiscoverPercentComplete field. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) SetDiscoverPercentComplete(v float64) { + o.DiscoverPercentComplete = &v +} + +// GetMonitorPercentComplete returns the MonitorPercentComplete field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetMonitorPercentComplete() float64 { + if o == nil || isNil(o.MonitorPercentComplete) { + var ret float64 + return ret + } + return *o.MonitorPercentComplete +} + +// GetMonitorPercentCompleteOk returns a tuple with the MonitorPercentComplete field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetMonitorPercentCompleteOk() (*float64, bool) { + if o == nil || isNil(o.MonitorPercentComplete) { + return nil, false + } + return o.MonitorPercentComplete, true +} + +// HasMonitorPercentComplete returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) HasMonitorPercentComplete() bool { + if o != nil && !isNil(o.MonitorPercentComplete) { + return true + } + + return false +} + +// SetMonitorPercentComplete gets a reference to the given float64 and assigns it to the MonitorPercentComplete field. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) SetMonitorPercentComplete(v float64) { + o.MonitorPercentComplete = &v +} + +// GetDiscoverStatus returns the DiscoverStatus field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetDiscoverStatus() int32 { + if o == nil || isNil(o.DiscoverStatus) { + var ret int32 + return ret + } + return *o.DiscoverStatus +} + +// GetDiscoverStatusOk returns a tuple with the DiscoverStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetDiscoverStatusOk() (*int32, bool) { + if o == nil || isNil(o.DiscoverStatus) { + return nil, false + } + return o.DiscoverStatus, true +} + +// HasDiscoverStatus returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) HasDiscoverStatus() bool { + if o != nil && !isNil(o.DiscoverStatus) { + return true + } + + return false +} + +// SetDiscoverStatus gets a reference to the given int32 and assigns it to the DiscoverStatus field. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) SetDiscoverStatus(v int32) { + o.DiscoverStatus = &v +} + +// GetMonitorStatus returns the MonitorStatus field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetMonitorStatus() int32 { + if o == nil || isNil(o.MonitorStatus) { + var ret int32 + return ret + } + return *o.MonitorStatus +} + +// GetMonitorStatusOk returns a tuple with the MonitorStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetMonitorStatusOk() (*int32, bool) { + if o == nil || isNil(o.MonitorStatus) { + return nil, false + } + return o.MonitorStatus, true +} + +// HasMonitorStatus returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) HasMonitorStatus() bool { + if o != nil && !isNil(o.MonitorStatus) { + return true + } + + return false +} + +// SetMonitorStatus gets a reference to the given int32 and assigns it to the MonitorStatus field. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) SetMonitorStatus(v int32) { + o.MonitorStatus = &v +} + +// GetDiscoverLastScanned returns the DiscoverLastScanned field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetDiscoverLastScanned() time.Time { + if o == nil || isNil(o.DiscoverLastScanned) { + var ret time.Time + return ret + } + return *o.DiscoverLastScanned +} + +// GetDiscoverLastScannedOk returns a tuple with the DiscoverLastScanned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetDiscoverLastScannedOk() (*time.Time, bool) { + if o == nil || isNil(o.DiscoverLastScanned) { + return nil, false + } + return o.DiscoverLastScanned, true +} + +// HasDiscoverLastScanned returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) HasDiscoverLastScanned() bool { + if o != nil && !isNil(o.DiscoverLastScanned) { + return true + } + + return false +} + +// SetDiscoverLastScanned gets a reference to the given time.Time and assigns it to the DiscoverLastScanned field. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) SetDiscoverLastScanned(v time.Time) { + o.DiscoverLastScanned = &v +} + +// GetMonitorLastScanned returns the MonitorLastScanned field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetMonitorLastScanned() time.Time { + if o == nil || isNil(o.MonitorLastScanned) { + var ret time.Time + return ret + } + return *o.MonitorLastScanned +} + +// GetMonitorLastScannedOk returns a tuple with the MonitorLastScanned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetMonitorLastScannedOk() (*time.Time, bool) { + if o == nil || isNil(o.MonitorLastScanned) { + return nil, false + } + return o.MonitorLastScanned, true +} + +// HasMonitorLastScanned returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) HasMonitorLastScanned() bool { + if o != nil && !isNil(o.MonitorLastScanned) { + return true + } + + return false +} + +// SetMonitorLastScanned gets a reference to the given time.Time and assigns it to the MonitorLastScanned field. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) SetMonitorLastScanned(v time.Time) { + o.MonitorLastScanned = &v +} + +// GetSslAlertRecipients returns the SslAlertRecipients field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetSslAlertRecipients() []string { + if o == nil || isNil(o.SslAlertRecipients) { + var ret []string + return ret + } + return o.SslAlertRecipients +} + +// GetSslAlertRecipientsOk returns a tuple with the SslAlertRecipients field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetSslAlertRecipientsOk() ([]string, bool) { + if o == nil || isNil(o.SslAlertRecipients) { + return nil, false + } + return o.SslAlertRecipients, true +} + +// HasSslAlertRecipients returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) HasSslAlertRecipients() bool { + if o != nil && !isNil(o.SslAlertRecipients) { + return true + } + + return false +} + +// SetSslAlertRecipients gets a reference to the given []string and assigns it to the SslAlertRecipients field. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) SetSslAlertRecipients(v []string) { + o.SslAlertRecipients = v +} + +// GetAutoMonitor returns the AutoMonitor field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetAutoMonitor() bool { + if o == nil || isNil(o.AutoMonitor) { + var ret bool + return ret + } + return *o.AutoMonitor +} + +// GetAutoMonitorOk returns a tuple with the AutoMonitor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetAutoMonitorOk() (*bool, bool) { + if o == nil || isNil(o.AutoMonitor) { + return nil, false + } + return o.AutoMonitor, true +} + +// HasAutoMonitor returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) HasAutoMonitor() bool { + if o != nil && !isNil(o.AutoMonitor) { + return true + } + + return false +} + +// SetAutoMonitor gets a reference to the given bool and assigns it to the AutoMonitor field. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) SetAutoMonitor(v bool) { + o.AutoMonitor = &v +} + +// GetGetRobots returns the GetRobots field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetGetRobots() bool { + if o == nil || isNil(o.GetRobots) { + var ret bool + return ret + } + return *o.GetRobots +} + +// GetGetRobotsOk returns a tuple with the GetRobots field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetGetRobotsOk() (*bool, bool) { + if o == nil || isNil(o.GetRobots) { + return nil, false + } + return o.GetRobots, true +} + +// HasGetRobots returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) HasGetRobots() bool { + if o != nil && !isNil(o.GetRobots) { + return true + } + + return false +} + +// SetGetRobots gets a reference to the given bool and assigns it to the GetRobots field. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) SetGetRobots(v bool) { + o.GetRobots = &v +} + +// GetDiscoverTimeoutMs returns the DiscoverTimeoutMs field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetDiscoverTimeoutMs() float64 { + if o == nil || isNil(o.DiscoverTimeoutMs) { + var ret float64 + return ret + } + return *o.DiscoverTimeoutMs +} + +// GetDiscoverTimeoutMsOk returns a tuple with the DiscoverTimeoutMs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetDiscoverTimeoutMsOk() (*float64, bool) { + if o == nil || isNil(o.DiscoverTimeoutMs) { + return nil, false + } + return o.DiscoverTimeoutMs, true +} + +// HasDiscoverTimeoutMs returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) HasDiscoverTimeoutMs() bool { + if o != nil && !isNil(o.DiscoverTimeoutMs) { + return true + } + + return false +} + +// SetDiscoverTimeoutMs gets a reference to the given float64 and assigns it to the DiscoverTimeoutMs field. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) SetDiscoverTimeoutMs(v float64) { + o.DiscoverTimeoutMs = &v +} + +// GetMonitorTimeoutMs returns the MonitorTimeoutMs field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetMonitorTimeoutMs() float64 { + if o == nil || isNil(o.MonitorTimeoutMs) { + var ret float64 + return ret + } + return *o.MonitorTimeoutMs +} + +// GetMonitorTimeoutMsOk returns a tuple with the MonitorTimeoutMs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetMonitorTimeoutMsOk() (*float64, bool) { + if o == nil || isNil(o.MonitorTimeoutMs) { + return nil, false + } + return o.MonitorTimeoutMs, true +} + +// HasMonitorTimeoutMs returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) HasMonitorTimeoutMs() bool { + if o != nil && !isNil(o.MonitorTimeoutMs) { + return true + } + + return false +} + +// SetMonitorTimeoutMs gets a reference to the given float64 and assigns it to the MonitorTimeoutMs field. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) SetMonitorTimeoutMs(v float64) { + o.MonitorTimeoutMs = &v +} + +// GetExpirationAlertDays returns the ExpirationAlertDays field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetExpirationAlertDays() float64 { + if o == nil || isNil(o.ExpirationAlertDays) { + var ret float64 + return ret + } + return *o.ExpirationAlertDays +} + +// GetExpirationAlertDaysOk returns a tuple with the ExpirationAlertDays field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetExpirationAlertDaysOk() (*float64, bool) { + if o == nil || isNil(o.ExpirationAlertDays) { + return nil, false + } + return o.ExpirationAlertDays, true +} + +// HasExpirationAlertDays returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) HasExpirationAlertDays() bool { + if o != nil && !isNil(o.ExpirationAlertDays) { + return true + } + + return false +} + +// SetExpirationAlertDays gets a reference to the given float64 and assigns it to the ExpirationAlertDays field. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) SetExpirationAlertDays(v float64) { + o.ExpirationAlertDays = &v +} + +// GetDiscoverJobParts returns the DiscoverJobParts field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetDiscoverJobParts() int32 { + if o == nil || isNil(o.DiscoverJobParts) { + var ret int32 + return ret + } + return *o.DiscoverJobParts +} + +// GetDiscoverJobPartsOk returns a tuple with the DiscoverJobParts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetDiscoverJobPartsOk() (*int32, bool) { + if o == nil || isNil(o.DiscoverJobParts) { + return nil, false + } + return o.DiscoverJobParts, true +} + +// HasDiscoverJobParts returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) HasDiscoverJobParts() bool { + if o != nil && !isNil(o.DiscoverJobParts) { + return true + } + + return false +} + +// SetDiscoverJobParts gets a reference to the given int32 and assigns it to the DiscoverJobParts field. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) SetDiscoverJobParts(v int32) { + o.DiscoverJobParts = &v +} + +// GetMonitorJobParts returns the MonitorJobParts field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetMonitorJobParts() int32 { + if o == nil || isNil(o.MonitorJobParts) { + var ret int32 + return ret + } + return *o.MonitorJobParts +} + +// GetMonitorJobPartsOk returns a tuple with the MonitorJobParts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetMonitorJobPartsOk() (*int32, bool) { + if o == nil || isNil(o.MonitorJobParts) { + return nil, false + } + return o.MonitorJobParts, true +} + +// HasMonitorJobParts returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) HasMonitorJobParts() bool { + if o != nil && !isNil(o.MonitorJobParts) { + return true + } + + return false +} + +// SetMonitorJobParts gets a reference to the given int32 and assigns it to the MonitorJobParts field. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) SetMonitorJobParts(v int32) { + o.MonitorJobParts = &v +} + +// GetQuietHours returns the QuietHours field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetQuietHours() []KeyfactorApiModelsSslQuietHourResponse { + if o == nil || isNil(o.QuietHours) { + var ret []KeyfactorApiModelsSslQuietHourResponse + return ret + } + return o.QuietHours +} + +// GetQuietHoursOk returns a tuple with the QuietHours field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetQuietHoursOk() ([]KeyfactorApiModelsSslQuietHourResponse, bool) { + if o == nil || isNil(o.QuietHours) { + return nil, false + } + return o.QuietHours, true +} + +// HasQuietHours returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) HasQuietHours() bool { + if o != nil && !isNil(o.QuietHours) { + return true + } + + return false +} + +// SetQuietHours gets a reference to the given []KeyfactorApiModelsSslQuietHourResponse and assigns it to the QuietHours field. +func (o *KeyfactorApiModelsSslNetworkQueryResponse) SetQuietHours(v []KeyfactorApiModelsSslQuietHourResponse) { + o.QuietHours = v +} + +func (o KeyfactorApiModelsSslNetworkQueryResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsSslNetworkQueryResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.NetworkId) { + toSerialize["NetworkId"] = o.NetworkId + } + if !isNil(o.Name) { + toSerialize["Name"] = o.Name + } + if !isNil(o.AgentPoolName) { + toSerialize["AgentPoolName"] = o.AgentPoolName + } + if !isNil(o.AgentPoolId) { + toSerialize["AgentPoolId"] = o.AgentPoolId + } + if !isNil(o.Description) { + toSerialize["Description"] = o.Description + } + if !isNil(o.Enabled) { + toSerialize["Enabled"] = o.Enabled + } + if !isNil(o.DiscoverSchedule) { + toSerialize["DiscoverSchedule"] = o.DiscoverSchedule + } + if !isNil(o.MonitorSchedule) { + toSerialize["MonitorSchedule"] = o.MonitorSchedule + } + if !isNil(o.DiscoverPercentComplete) { + toSerialize["DiscoverPercentComplete"] = o.DiscoverPercentComplete + } + if !isNil(o.MonitorPercentComplete) { + toSerialize["MonitorPercentComplete"] = o.MonitorPercentComplete + } + if !isNil(o.DiscoverStatus) { + toSerialize["DiscoverStatus"] = o.DiscoverStatus + } + if !isNil(o.MonitorStatus) { + toSerialize["MonitorStatus"] = o.MonitorStatus + } + if !isNil(o.DiscoverLastScanned) { + toSerialize["DiscoverLastScanned"] = o.DiscoverLastScanned + } + if !isNil(o.MonitorLastScanned) { + toSerialize["MonitorLastScanned"] = o.MonitorLastScanned + } + if !isNil(o.SslAlertRecipients) { + toSerialize["SslAlertRecipients"] = o.SslAlertRecipients + } + if !isNil(o.AutoMonitor) { + toSerialize["AutoMonitor"] = o.AutoMonitor + } + if !isNil(o.GetRobots) { + toSerialize["GetRobots"] = o.GetRobots + } + if !isNil(o.DiscoverTimeoutMs) { + toSerialize["DiscoverTimeoutMs"] = o.DiscoverTimeoutMs + } + if !isNil(o.MonitorTimeoutMs) { + toSerialize["MonitorTimeoutMs"] = o.MonitorTimeoutMs + } + if !isNil(o.ExpirationAlertDays) { + toSerialize["ExpirationAlertDays"] = o.ExpirationAlertDays + } + if !isNil(o.DiscoverJobParts) { + toSerialize["DiscoverJobParts"] = o.DiscoverJobParts + } + if !isNil(o.MonitorJobParts) { + toSerialize["MonitorJobParts"] = o.MonitorJobParts + } + if !isNil(o.QuietHours) { + toSerialize["QuietHours"] = o.QuietHours + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsSslNetworkQueryResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsSslNetworkQueryResponse := _KeyfactorApiModelsSslNetworkQueryResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsSslNetworkQueryResponse); err == nil { + *o = KeyfactorApiModelsSslNetworkQueryResponse(varKeyfactorApiModelsSslNetworkQueryResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "NetworkId") + delete(additionalProperties, "Name") + delete(additionalProperties, "AgentPoolName") + delete(additionalProperties, "AgentPoolId") + delete(additionalProperties, "Description") + delete(additionalProperties, "Enabled") + delete(additionalProperties, "DiscoverSchedule") + delete(additionalProperties, "MonitorSchedule") + delete(additionalProperties, "DiscoverPercentComplete") + delete(additionalProperties, "MonitorPercentComplete") + delete(additionalProperties, "DiscoverStatus") + delete(additionalProperties, "MonitorStatus") + delete(additionalProperties, "DiscoverLastScanned") + delete(additionalProperties, "MonitorLastScanned") + delete(additionalProperties, "SslAlertRecipients") + delete(additionalProperties, "AutoMonitor") + delete(additionalProperties, "GetRobots") + delete(additionalProperties, "DiscoverTimeoutMs") + delete(additionalProperties, "MonitorTimeoutMs") + delete(additionalProperties, "ExpirationAlertDays") + delete(additionalProperties, "DiscoverJobParts") + delete(additionalProperties, "MonitorJobParts") + delete(additionalProperties, "QuietHours") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsSslNetworkQueryResponse struct { + value *KeyfactorApiModelsSslNetworkQueryResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsSslNetworkQueryResponse) Get() *KeyfactorApiModelsSslNetworkQueryResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsSslNetworkQueryResponse) Set(val *KeyfactorApiModelsSslNetworkQueryResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsSslNetworkQueryResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsSslNetworkQueryResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsSslNetworkQueryResponse(val *KeyfactorApiModelsSslNetworkQueryResponse) *NullableKeyfactorApiModelsSslNetworkQueryResponse { + return &NullableKeyfactorApiModelsSslNetworkQueryResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsSslNetworkQueryResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsSslNetworkQueryResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_ssl_network_response.go b/v1/api/keyfactor/model_keyfactor_api_models_ssl_network_response.go new file mode 100644 index 0000000..ba78737 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_ssl_network_response.go @@ -0,0 +1,973 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" + "time" +) + +// checks if the KeyfactorApiModelsSslNetworkResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsSslNetworkResponse{} + +// KeyfactorApiModelsSslNetworkResponse struct for KeyfactorApiModelsSslNetworkResponse +type KeyfactorApiModelsSslNetworkResponse struct { + NetworkId *string `json:"NetworkId,omitempty"` + Name *string `json:"Name,omitempty"` + AgentPoolName *string `json:"AgentPoolName,omitempty"` + AgentPoolId *string `json:"AgentPoolId,omitempty"` + Description *string `json:"Description,omitempty"` + Enabled *bool `json:"Enabled,omitempty"` + DiscoverSchedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"DiscoverSchedule,omitempty"` + MonitorSchedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"MonitorSchedule,omitempty"` + DiscoverPercentComplete *float64 `json:"DiscoverPercentComplete,omitempty"` + MonitorPercentComplete *float64 `json:"MonitorPercentComplete,omitempty"` + DiscoverStatus *int32 `json:"DiscoverStatus,omitempty"` + MonitorStatus *int32 `json:"MonitorStatus,omitempty"` + DiscoverLastScanned *time.Time `json:"DiscoverLastScanned,omitempty"` + MonitorLastScanned *time.Time `json:"MonitorLastScanned,omitempty"` + SslAlertRecipients []string `json:"SslAlertRecipients,omitempty"` + AutoMonitor *bool `json:"AutoMonitor,omitempty"` + GetRobots *bool `json:"GetRobots,omitempty"` + DiscoverTimeoutMs *float64 `json:"DiscoverTimeoutMs,omitempty"` + MonitorTimeoutMs *float64 `json:"MonitorTimeoutMs,omitempty"` + ExpirationAlertDays *float64 `json:"ExpirationAlertDays,omitempty"` + DiscoverJobParts *int32 `json:"DiscoverJobParts,omitempty"` + MonitorJobParts *int32 `json:"MonitorJobParts,omitempty"` + QuietHours []KeyfactorApiModelsSslQuietHourResponse `json:"QuietHours,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsSslNetworkResponse KeyfactorApiModelsSslNetworkResponse + +// NewKeyfactorApiModelsSslNetworkResponse instantiates a new KeyfactorApiModelsSslNetworkResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsSslNetworkResponse() *KeyfactorApiModelsSslNetworkResponse { + this := KeyfactorApiModelsSslNetworkResponse{} + return &this +} + +// NewKeyfactorApiModelsSslNetworkResponseWithDefaults instantiates a new KeyfactorApiModelsSslNetworkResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsSslNetworkResponseWithDefaults() *KeyfactorApiModelsSslNetworkResponse { + this := KeyfactorApiModelsSslNetworkResponse{} + return &this +} + +// GetNetworkId returns the NetworkId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslNetworkResponse) GetNetworkId() string { + if o == nil || isNil(o.NetworkId) { + var ret string + return ret + } + return *o.NetworkId +} + +// GetNetworkIdOk returns a tuple with the NetworkId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslNetworkResponse) GetNetworkIdOk() (*string, bool) { + if o == nil || isNil(o.NetworkId) { + return nil, false + } + return o.NetworkId, true +} + +// HasNetworkId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslNetworkResponse) HasNetworkId() bool { + if o != nil && !isNil(o.NetworkId) { + return true + } + + return false +} + +// SetNetworkId gets a reference to the given string and assigns it to the NetworkId field. +func (o *KeyfactorApiModelsSslNetworkResponse) SetNetworkId(v string) { + o.NetworkId = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslNetworkResponse) GetName() string { + if o == nil || isNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslNetworkResponse) GetNameOk() (*string, bool) { + if o == nil || isNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslNetworkResponse) HasName() bool { + if o != nil && !isNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *KeyfactorApiModelsSslNetworkResponse) SetName(v string) { + o.Name = &v +} + +// GetAgentPoolName returns the AgentPoolName field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslNetworkResponse) GetAgentPoolName() string { + if o == nil || isNil(o.AgentPoolName) { + var ret string + return ret + } + return *o.AgentPoolName +} + +// GetAgentPoolNameOk returns a tuple with the AgentPoolName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslNetworkResponse) GetAgentPoolNameOk() (*string, bool) { + if o == nil || isNil(o.AgentPoolName) { + return nil, false + } + return o.AgentPoolName, true +} + +// HasAgentPoolName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslNetworkResponse) HasAgentPoolName() bool { + if o != nil && !isNil(o.AgentPoolName) { + return true + } + + return false +} + +// SetAgentPoolName gets a reference to the given string and assigns it to the AgentPoolName field. +func (o *KeyfactorApiModelsSslNetworkResponse) SetAgentPoolName(v string) { + o.AgentPoolName = &v +} + +// GetAgentPoolId returns the AgentPoolId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslNetworkResponse) GetAgentPoolId() string { + if o == nil || isNil(o.AgentPoolId) { + var ret string + return ret + } + return *o.AgentPoolId +} + +// GetAgentPoolIdOk returns a tuple with the AgentPoolId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslNetworkResponse) GetAgentPoolIdOk() (*string, bool) { + if o == nil || isNil(o.AgentPoolId) { + return nil, false + } + return o.AgentPoolId, true +} + +// HasAgentPoolId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslNetworkResponse) HasAgentPoolId() bool { + if o != nil && !isNil(o.AgentPoolId) { + return true + } + + return false +} + +// SetAgentPoolId gets a reference to the given string and assigns it to the AgentPoolId field. +func (o *KeyfactorApiModelsSslNetworkResponse) SetAgentPoolId(v string) { + o.AgentPoolId = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslNetworkResponse) GetDescription() string { + if o == nil || isNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslNetworkResponse) GetDescriptionOk() (*string, bool) { + if o == nil || isNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslNetworkResponse) HasDescription() bool { + if o != nil && !isNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *KeyfactorApiModelsSslNetworkResponse) SetDescription(v string) { + o.Description = &v +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslNetworkResponse) GetEnabled() bool { + if o == nil || isNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslNetworkResponse) GetEnabledOk() (*bool, bool) { + if o == nil || isNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslNetworkResponse) HasEnabled() bool { + if o != nil && !isNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *KeyfactorApiModelsSslNetworkResponse) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetDiscoverSchedule returns the DiscoverSchedule field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslNetworkResponse) GetDiscoverSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.DiscoverSchedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.DiscoverSchedule +} + +// GetDiscoverScheduleOk returns a tuple with the DiscoverSchedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslNetworkResponse) GetDiscoverScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.DiscoverSchedule) { + return nil, false + } + return o.DiscoverSchedule, true +} + +// HasDiscoverSchedule returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslNetworkResponse) HasDiscoverSchedule() bool { + if o != nil && !isNil(o.DiscoverSchedule) { + return true + } + + return false +} + +// SetDiscoverSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the DiscoverSchedule field. +func (o *KeyfactorApiModelsSslNetworkResponse) SetDiscoverSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.DiscoverSchedule = &v +} + +// GetMonitorSchedule returns the MonitorSchedule field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslNetworkResponse) GetMonitorSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.MonitorSchedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.MonitorSchedule +} + +// GetMonitorScheduleOk returns a tuple with the MonitorSchedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslNetworkResponse) GetMonitorScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.MonitorSchedule) { + return nil, false + } + return o.MonitorSchedule, true +} + +// HasMonitorSchedule returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslNetworkResponse) HasMonitorSchedule() bool { + if o != nil && !isNil(o.MonitorSchedule) { + return true + } + + return false +} + +// SetMonitorSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the MonitorSchedule field. +func (o *KeyfactorApiModelsSslNetworkResponse) SetMonitorSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.MonitorSchedule = &v +} + +// GetDiscoverPercentComplete returns the DiscoverPercentComplete field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslNetworkResponse) GetDiscoverPercentComplete() float64 { + if o == nil || isNil(o.DiscoverPercentComplete) { + var ret float64 + return ret + } + return *o.DiscoverPercentComplete +} + +// GetDiscoverPercentCompleteOk returns a tuple with the DiscoverPercentComplete field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslNetworkResponse) GetDiscoverPercentCompleteOk() (*float64, bool) { + if o == nil || isNil(o.DiscoverPercentComplete) { + return nil, false + } + return o.DiscoverPercentComplete, true +} + +// HasDiscoverPercentComplete returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslNetworkResponse) HasDiscoverPercentComplete() bool { + if o != nil && !isNil(o.DiscoverPercentComplete) { + return true + } + + return false +} + +// SetDiscoverPercentComplete gets a reference to the given float64 and assigns it to the DiscoverPercentComplete field. +func (o *KeyfactorApiModelsSslNetworkResponse) SetDiscoverPercentComplete(v float64) { + o.DiscoverPercentComplete = &v +} + +// GetMonitorPercentComplete returns the MonitorPercentComplete field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslNetworkResponse) GetMonitorPercentComplete() float64 { + if o == nil || isNil(o.MonitorPercentComplete) { + var ret float64 + return ret + } + return *o.MonitorPercentComplete +} + +// GetMonitorPercentCompleteOk returns a tuple with the MonitorPercentComplete field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslNetworkResponse) GetMonitorPercentCompleteOk() (*float64, bool) { + if o == nil || isNil(o.MonitorPercentComplete) { + return nil, false + } + return o.MonitorPercentComplete, true +} + +// HasMonitorPercentComplete returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslNetworkResponse) HasMonitorPercentComplete() bool { + if o != nil && !isNil(o.MonitorPercentComplete) { + return true + } + + return false +} + +// SetMonitorPercentComplete gets a reference to the given float64 and assigns it to the MonitorPercentComplete field. +func (o *KeyfactorApiModelsSslNetworkResponse) SetMonitorPercentComplete(v float64) { + o.MonitorPercentComplete = &v +} + +// GetDiscoverStatus returns the DiscoverStatus field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslNetworkResponse) GetDiscoverStatus() int32 { + if o == nil || isNil(o.DiscoverStatus) { + var ret int32 + return ret + } + return *o.DiscoverStatus +} + +// GetDiscoverStatusOk returns a tuple with the DiscoverStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslNetworkResponse) GetDiscoverStatusOk() (*int32, bool) { + if o == nil || isNil(o.DiscoverStatus) { + return nil, false + } + return o.DiscoverStatus, true +} + +// HasDiscoverStatus returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslNetworkResponse) HasDiscoverStatus() bool { + if o != nil && !isNil(o.DiscoverStatus) { + return true + } + + return false +} + +// SetDiscoverStatus gets a reference to the given int32 and assigns it to the DiscoverStatus field. +func (o *KeyfactorApiModelsSslNetworkResponse) SetDiscoverStatus(v int32) { + o.DiscoverStatus = &v +} + +// GetMonitorStatus returns the MonitorStatus field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslNetworkResponse) GetMonitorStatus() int32 { + if o == nil || isNil(o.MonitorStatus) { + var ret int32 + return ret + } + return *o.MonitorStatus +} + +// GetMonitorStatusOk returns a tuple with the MonitorStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslNetworkResponse) GetMonitorStatusOk() (*int32, bool) { + if o == nil || isNil(o.MonitorStatus) { + return nil, false + } + return o.MonitorStatus, true +} + +// HasMonitorStatus returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslNetworkResponse) HasMonitorStatus() bool { + if o != nil && !isNil(o.MonitorStatus) { + return true + } + + return false +} + +// SetMonitorStatus gets a reference to the given int32 and assigns it to the MonitorStatus field. +func (o *KeyfactorApiModelsSslNetworkResponse) SetMonitorStatus(v int32) { + o.MonitorStatus = &v +} + +// GetDiscoverLastScanned returns the DiscoverLastScanned field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslNetworkResponse) GetDiscoverLastScanned() time.Time { + if o == nil || isNil(o.DiscoverLastScanned) { + var ret time.Time + return ret + } + return *o.DiscoverLastScanned +} + +// GetDiscoverLastScannedOk returns a tuple with the DiscoverLastScanned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslNetworkResponse) GetDiscoverLastScannedOk() (*time.Time, bool) { + if o == nil || isNil(o.DiscoverLastScanned) { + return nil, false + } + return o.DiscoverLastScanned, true +} + +// HasDiscoverLastScanned returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslNetworkResponse) HasDiscoverLastScanned() bool { + if o != nil && !isNil(o.DiscoverLastScanned) { + return true + } + + return false +} + +// SetDiscoverLastScanned gets a reference to the given time.Time and assigns it to the DiscoverLastScanned field. +func (o *KeyfactorApiModelsSslNetworkResponse) SetDiscoverLastScanned(v time.Time) { + o.DiscoverLastScanned = &v +} + +// GetMonitorLastScanned returns the MonitorLastScanned field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslNetworkResponse) GetMonitorLastScanned() time.Time { + if o == nil || isNil(o.MonitorLastScanned) { + var ret time.Time + return ret + } + return *o.MonitorLastScanned +} + +// GetMonitorLastScannedOk returns a tuple with the MonitorLastScanned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslNetworkResponse) GetMonitorLastScannedOk() (*time.Time, bool) { + if o == nil || isNil(o.MonitorLastScanned) { + return nil, false + } + return o.MonitorLastScanned, true +} + +// HasMonitorLastScanned returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslNetworkResponse) HasMonitorLastScanned() bool { + if o != nil && !isNil(o.MonitorLastScanned) { + return true + } + + return false +} + +// SetMonitorLastScanned gets a reference to the given time.Time and assigns it to the MonitorLastScanned field. +func (o *KeyfactorApiModelsSslNetworkResponse) SetMonitorLastScanned(v time.Time) { + o.MonitorLastScanned = &v +} + +// GetSslAlertRecipients returns the SslAlertRecipients field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslNetworkResponse) GetSslAlertRecipients() []string { + if o == nil || isNil(o.SslAlertRecipients) { + var ret []string + return ret + } + return o.SslAlertRecipients +} + +// GetSslAlertRecipientsOk returns a tuple with the SslAlertRecipients field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslNetworkResponse) GetSslAlertRecipientsOk() ([]string, bool) { + if o == nil || isNil(o.SslAlertRecipients) { + return nil, false + } + return o.SslAlertRecipients, true +} + +// HasSslAlertRecipients returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslNetworkResponse) HasSslAlertRecipients() bool { + if o != nil && !isNil(o.SslAlertRecipients) { + return true + } + + return false +} + +// SetSslAlertRecipients gets a reference to the given []string and assigns it to the SslAlertRecipients field. +func (o *KeyfactorApiModelsSslNetworkResponse) SetSslAlertRecipients(v []string) { + o.SslAlertRecipients = v +} + +// GetAutoMonitor returns the AutoMonitor field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslNetworkResponse) GetAutoMonitor() bool { + if o == nil || isNil(o.AutoMonitor) { + var ret bool + return ret + } + return *o.AutoMonitor +} + +// GetAutoMonitorOk returns a tuple with the AutoMonitor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslNetworkResponse) GetAutoMonitorOk() (*bool, bool) { + if o == nil || isNil(o.AutoMonitor) { + return nil, false + } + return o.AutoMonitor, true +} + +// HasAutoMonitor returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslNetworkResponse) HasAutoMonitor() bool { + if o != nil && !isNil(o.AutoMonitor) { + return true + } + + return false +} + +// SetAutoMonitor gets a reference to the given bool and assigns it to the AutoMonitor field. +func (o *KeyfactorApiModelsSslNetworkResponse) SetAutoMonitor(v bool) { + o.AutoMonitor = &v +} + +// GetGetRobots returns the GetRobots field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslNetworkResponse) GetGetRobots() bool { + if o == nil || isNil(o.GetRobots) { + var ret bool + return ret + } + return *o.GetRobots +} + +// GetGetRobotsOk returns a tuple with the GetRobots field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslNetworkResponse) GetGetRobotsOk() (*bool, bool) { + if o == nil || isNil(o.GetRobots) { + return nil, false + } + return o.GetRobots, true +} + +// HasGetRobots returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslNetworkResponse) HasGetRobots() bool { + if o != nil && !isNil(o.GetRobots) { + return true + } + + return false +} + +// SetGetRobots gets a reference to the given bool and assigns it to the GetRobots field. +func (o *KeyfactorApiModelsSslNetworkResponse) SetGetRobots(v bool) { + o.GetRobots = &v +} + +// GetDiscoverTimeoutMs returns the DiscoverTimeoutMs field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslNetworkResponse) GetDiscoverTimeoutMs() float64 { + if o == nil || isNil(o.DiscoverTimeoutMs) { + var ret float64 + return ret + } + return *o.DiscoverTimeoutMs +} + +// GetDiscoverTimeoutMsOk returns a tuple with the DiscoverTimeoutMs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslNetworkResponse) GetDiscoverTimeoutMsOk() (*float64, bool) { + if o == nil || isNil(o.DiscoverTimeoutMs) { + return nil, false + } + return o.DiscoverTimeoutMs, true +} + +// HasDiscoverTimeoutMs returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslNetworkResponse) HasDiscoverTimeoutMs() bool { + if o != nil && !isNil(o.DiscoverTimeoutMs) { + return true + } + + return false +} + +// SetDiscoverTimeoutMs gets a reference to the given float64 and assigns it to the DiscoverTimeoutMs field. +func (o *KeyfactorApiModelsSslNetworkResponse) SetDiscoverTimeoutMs(v float64) { + o.DiscoverTimeoutMs = &v +} + +// GetMonitorTimeoutMs returns the MonitorTimeoutMs field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslNetworkResponse) GetMonitorTimeoutMs() float64 { + if o == nil || isNil(o.MonitorTimeoutMs) { + var ret float64 + return ret + } + return *o.MonitorTimeoutMs +} + +// GetMonitorTimeoutMsOk returns a tuple with the MonitorTimeoutMs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslNetworkResponse) GetMonitorTimeoutMsOk() (*float64, bool) { + if o == nil || isNil(o.MonitorTimeoutMs) { + return nil, false + } + return o.MonitorTimeoutMs, true +} + +// HasMonitorTimeoutMs returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslNetworkResponse) HasMonitorTimeoutMs() bool { + if o != nil && !isNil(o.MonitorTimeoutMs) { + return true + } + + return false +} + +// SetMonitorTimeoutMs gets a reference to the given float64 and assigns it to the MonitorTimeoutMs field. +func (o *KeyfactorApiModelsSslNetworkResponse) SetMonitorTimeoutMs(v float64) { + o.MonitorTimeoutMs = &v +} + +// GetExpirationAlertDays returns the ExpirationAlertDays field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslNetworkResponse) GetExpirationAlertDays() float64 { + if o == nil || isNil(o.ExpirationAlertDays) { + var ret float64 + return ret + } + return *o.ExpirationAlertDays +} + +// GetExpirationAlertDaysOk returns a tuple with the ExpirationAlertDays field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslNetworkResponse) GetExpirationAlertDaysOk() (*float64, bool) { + if o == nil || isNil(o.ExpirationAlertDays) { + return nil, false + } + return o.ExpirationAlertDays, true +} + +// HasExpirationAlertDays returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslNetworkResponse) HasExpirationAlertDays() bool { + if o != nil && !isNil(o.ExpirationAlertDays) { + return true + } + + return false +} + +// SetExpirationAlertDays gets a reference to the given float64 and assigns it to the ExpirationAlertDays field. +func (o *KeyfactorApiModelsSslNetworkResponse) SetExpirationAlertDays(v float64) { + o.ExpirationAlertDays = &v +} + +// GetDiscoverJobParts returns the DiscoverJobParts field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslNetworkResponse) GetDiscoverJobParts() int32 { + if o == nil || isNil(o.DiscoverJobParts) { + var ret int32 + return ret + } + return *o.DiscoverJobParts +} + +// GetDiscoverJobPartsOk returns a tuple with the DiscoverJobParts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslNetworkResponse) GetDiscoverJobPartsOk() (*int32, bool) { + if o == nil || isNil(o.DiscoverJobParts) { + return nil, false + } + return o.DiscoverJobParts, true +} + +// HasDiscoverJobParts returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslNetworkResponse) HasDiscoverJobParts() bool { + if o != nil && !isNil(o.DiscoverJobParts) { + return true + } + + return false +} + +// SetDiscoverJobParts gets a reference to the given int32 and assigns it to the DiscoverJobParts field. +func (o *KeyfactorApiModelsSslNetworkResponse) SetDiscoverJobParts(v int32) { + o.DiscoverJobParts = &v +} + +// GetMonitorJobParts returns the MonitorJobParts field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslNetworkResponse) GetMonitorJobParts() int32 { + if o == nil || isNil(o.MonitorJobParts) { + var ret int32 + return ret + } + return *o.MonitorJobParts +} + +// GetMonitorJobPartsOk returns a tuple with the MonitorJobParts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslNetworkResponse) GetMonitorJobPartsOk() (*int32, bool) { + if o == nil || isNil(o.MonitorJobParts) { + return nil, false + } + return o.MonitorJobParts, true +} + +// HasMonitorJobParts returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslNetworkResponse) HasMonitorJobParts() bool { + if o != nil && !isNil(o.MonitorJobParts) { + return true + } + + return false +} + +// SetMonitorJobParts gets a reference to the given int32 and assigns it to the MonitorJobParts field. +func (o *KeyfactorApiModelsSslNetworkResponse) SetMonitorJobParts(v int32) { + o.MonitorJobParts = &v +} + +// GetQuietHours returns the QuietHours field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslNetworkResponse) GetQuietHours() []KeyfactorApiModelsSslQuietHourResponse { + if o == nil || isNil(o.QuietHours) { + var ret []KeyfactorApiModelsSslQuietHourResponse + return ret + } + return o.QuietHours +} + +// GetQuietHoursOk returns a tuple with the QuietHours field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslNetworkResponse) GetQuietHoursOk() ([]KeyfactorApiModelsSslQuietHourResponse, bool) { + if o == nil || isNil(o.QuietHours) { + return nil, false + } + return o.QuietHours, true +} + +// HasQuietHours returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslNetworkResponse) HasQuietHours() bool { + if o != nil && !isNil(o.QuietHours) { + return true + } + + return false +} + +// SetQuietHours gets a reference to the given []KeyfactorApiModelsSslQuietHourResponse and assigns it to the QuietHours field. +func (o *KeyfactorApiModelsSslNetworkResponse) SetQuietHours(v []KeyfactorApiModelsSslQuietHourResponse) { + o.QuietHours = v +} + +func (o KeyfactorApiModelsSslNetworkResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsSslNetworkResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.NetworkId) { + toSerialize["NetworkId"] = o.NetworkId + } + if !isNil(o.Name) { + toSerialize["Name"] = o.Name + } + if !isNil(o.AgentPoolName) { + toSerialize["AgentPoolName"] = o.AgentPoolName + } + if !isNil(o.AgentPoolId) { + toSerialize["AgentPoolId"] = o.AgentPoolId + } + if !isNil(o.Description) { + toSerialize["Description"] = o.Description + } + if !isNil(o.Enabled) { + toSerialize["Enabled"] = o.Enabled + } + if !isNil(o.DiscoverSchedule) { + toSerialize["DiscoverSchedule"] = o.DiscoverSchedule + } + if !isNil(o.MonitorSchedule) { + toSerialize["MonitorSchedule"] = o.MonitorSchedule + } + if !isNil(o.DiscoverPercentComplete) { + toSerialize["DiscoverPercentComplete"] = o.DiscoverPercentComplete + } + if !isNil(o.MonitorPercentComplete) { + toSerialize["MonitorPercentComplete"] = o.MonitorPercentComplete + } + if !isNil(o.DiscoverStatus) { + toSerialize["DiscoverStatus"] = o.DiscoverStatus + } + if !isNil(o.MonitorStatus) { + toSerialize["MonitorStatus"] = o.MonitorStatus + } + if !isNil(o.DiscoverLastScanned) { + toSerialize["DiscoverLastScanned"] = o.DiscoverLastScanned + } + if !isNil(o.MonitorLastScanned) { + toSerialize["MonitorLastScanned"] = o.MonitorLastScanned + } + if !isNil(o.SslAlertRecipients) { + toSerialize["SslAlertRecipients"] = o.SslAlertRecipients + } + if !isNil(o.AutoMonitor) { + toSerialize["AutoMonitor"] = o.AutoMonitor + } + if !isNil(o.GetRobots) { + toSerialize["GetRobots"] = o.GetRobots + } + if !isNil(o.DiscoverTimeoutMs) { + toSerialize["DiscoverTimeoutMs"] = o.DiscoverTimeoutMs + } + if !isNil(o.MonitorTimeoutMs) { + toSerialize["MonitorTimeoutMs"] = o.MonitorTimeoutMs + } + if !isNil(o.ExpirationAlertDays) { + toSerialize["ExpirationAlertDays"] = o.ExpirationAlertDays + } + if !isNil(o.DiscoverJobParts) { + toSerialize["DiscoverJobParts"] = o.DiscoverJobParts + } + if !isNil(o.MonitorJobParts) { + toSerialize["MonitorJobParts"] = o.MonitorJobParts + } + if !isNil(o.QuietHours) { + toSerialize["QuietHours"] = o.QuietHours + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsSslNetworkResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsSslNetworkResponse := _KeyfactorApiModelsSslNetworkResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsSslNetworkResponse); err == nil { + *o = KeyfactorApiModelsSslNetworkResponse(varKeyfactorApiModelsSslNetworkResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "NetworkId") + delete(additionalProperties, "Name") + delete(additionalProperties, "AgentPoolName") + delete(additionalProperties, "AgentPoolId") + delete(additionalProperties, "Description") + delete(additionalProperties, "Enabled") + delete(additionalProperties, "DiscoverSchedule") + delete(additionalProperties, "MonitorSchedule") + delete(additionalProperties, "DiscoverPercentComplete") + delete(additionalProperties, "MonitorPercentComplete") + delete(additionalProperties, "DiscoverStatus") + delete(additionalProperties, "MonitorStatus") + delete(additionalProperties, "DiscoverLastScanned") + delete(additionalProperties, "MonitorLastScanned") + delete(additionalProperties, "SslAlertRecipients") + delete(additionalProperties, "AutoMonitor") + delete(additionalProperties, "GetRobots") + delete(additionalProperties, "DiscoverTimeoutMs") + delete(additionalProperties, "MonitorTimeoutMs") + delete(additionalProperties, "ExpirationAlertDays") + delete(additionalProperties, "DiscoverJobParts") + delete(additionalProperties, "MonitorJobParts") + delete(additionalProperties, "QuietHours") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsSslNetworkResponse struct { + value *KeyfactorApiModelsSslNetworkResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsSslNetworkResponse) Get() *KeyfactorApiModelsSslNetworkResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsSslNetworkResponse) Set(val *KeyfactorApiModelsSslNetworkResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsSslNetworkResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsSslNetworkResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsSslNetworkResponse(val *KeyfactorApiModelsSslNetworkResponse) *NullableKeyfactorApiModelsSslNetworkResponse { + return &NullableKeyfactorApiModelsSslNetworkResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsSslNetworkResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsSslNetworkResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_ssl_quiet_hour_request.go b/v1/api/keyfactor/model_keyfactor_api_models_ssl_quiet_hour_request.go new file mode 100644 index 0000000..06d7c90 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_ssl_quiet_hour_request.go @@ -0,0 +1,270 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" + "time" +) + +// checks if the KeyfactorApiModelsSslQuietHourRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsSslQuietHourRequest{} + +// KeyfactorApiModelsSslQuietHourRequest struct for KeyfactorApiModelsSslQuietHourRequest +type KeyfactorApiModelsSslQuietHourRequest struct { + StartDay *int32 `json:"StartDay,omitempty"` + StartTime *time.Time `json:"StartTime,omitempty"` + EndDay *int32 `json:"EndDay,omitempty"` + EndTime *time.Time `json:"EndTime,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsSslQuietHourRequest KeyfactorApiModelsSslQuietHourRequest + +// NewKeyfactorApiModelsSslQuietHourRequest instantiates a new KeyfactorApiModelsSslQuietHourRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsSslQuietHourRequest() *KeyfactorApiModelsSslQuietHourRequest { + this := KeyfactorApiModelsSslQuietHourRequest{} + return &this +} + +// NewKeyfactorApiModelsSslQuietHourRequestWithDefaults instantiates a new KeyfactorApiModelsSslQuietHourRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsSslQuietHourRequestWithDefaults() *KeyfactorApiModelsSslQuietHourRequest { + this := KeyfactorApiModelsSslQuietHourRequest{} + return &this +} + +// GetStartDay returns the StartDay field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslQuietHourRequest) GetStartDay() int32 { + if o == nil || isNil(o.StartDay) { + var ret int32 + return ret + } + return *o.StartDay +} + +// GetStartDayOk returns a tuple with the StartDay field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslQuietHourRequest) GetStartDayOk() (*int32, bool) { + if o == nil || isNil(o.StartDay) { + return nil, false + } + return o.StartDay, true +} + +// HasStartDay returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslQuietHourRequest) HasStartDay() bool { + if o != nil && !isNil(o.StartDay) { + return true + } + + return false +} + +// SetStartDay gets a reference to the given int32 and assigns it to the StartDay field. +func (o *KeyfactorApiModelsSslQuietHourRequest) SetStartDay(v int32) { + o.StartDay = &v +} + +// GetStartTime returns the StartTime field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslQuietHourRequest) GetStartTime() time.Time { + if o == nil || isNil(o.StartTime) { + var ret time.Time + return ret + } + return *o.StartTime +} + +// GetStartTimeOk returns a tuple with the StartTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslQuietHourRequest) GetStartTimeOk() (*time.Time, bool) { + if o == nil || isNil(o.StartTime) { + return nil, false + } + return o.StartTime, true +} + +// HasStartTime returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslQuietHourRequest) HasStartTime() bool { + if o != nil && !isNil(o.StartTime) { + return true + } + + return false +} + +// SetStartTime gets a reference to the given time.Time and assigns it to the StartTime field. +func (o *KeyfactorApiModelsSslQuietHourRequest) SetStartTime(v time.Time) { + o.StartTime = &v +} + +// GetEndDay returns the EndDay field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslQuietHourRequest) GetEndDay() int32 { + if o == nil || isNil(o.EndDay) { + var ret int32 + return ret + } + return *o.EndDay +} + +// GetEndDayOk returns a tuple with the EndDay field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslQuietHourRequest) GetEndDayOk() (*int32, bool) { + if o == nil || isNil(o.EndDay) { + return nil, false + } + return o.EndDay, true +} + +// HasEndDay returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslQuietHourRequest) HasEndDay() bool { + if o != nil && !isNil(o.EndDay) { + return true + } + + return false +} + +// SetEndDay gets a reference to the given int32 and assigns it to the EndDay field. +func (o *KeyfactorApiModelsSslQuietHourRequest) SetEndDay(v int32) { + o.EndDay = &v +} + +// GetEndTime returns the EndTime field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslQuietHourRequest) GetEndTime() time.Time { + if o == nil || isNil(o.EndTime) { + var ret time.Time + return ret + } + return *o.EndTime +} + +// GetEndTimeOk returns a tuple with the EndTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslQuietHourRequest) GetEndTimeOk() (*time.Time, bool) { + if o == nil || isNil(o.EndTime) { + return nil, false + } + return o.EndTime, true +} + +// HasEndTime returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslQuietHourRequest) HasEndTime() bool { + if o != nil && !isNil(o.EndTime) { + return true + } + + return false +} + +// SetEndTime gets a reference to the given time.Time and assigns it to the EndTime field. +func (o *KeyfactorApiModelsSslQuietHourRequest) SetEndTime(v time.Time) { + o.EndTime = &v +} + +func (o KeyfactorApiModelsSslQuietHourRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsSslQuietHourRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.StartDay) { + toSerialize["StartDay"] = o.StartDay + } + if !isNil(o.StartTime) { + toSerialize["StartTime"] = o.StartTime + } + if !isNil(o.EndDay) { + toSerialize["EndDay"] = o.EndDay + } + if !isNil(o.EndTime) { + toSerialize["EndTime"] = o.EndTime + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsSslQuietHourRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsSslQuietHourRequest := _KeyfactorApiModelsSslQuietHourRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsSslQuietHourRequest); err == nil { + *o = KeyfactorApiModelsSslQuietHourRequest(varKeyfactorApiModelsSslQuietHourRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "StartDay") + delete(additionalProperties, "StartTime") + delete(additionalProperties, "EndDay") + delete(additionalProperties, "EndTime") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsSslQuietHourRequest struct { + value *KeyfactorApiModelsSslQuietHourRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsSslQuietHourRequest) Get() *KeyfactorApiModelsSslQuietHourRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsSslQuietHourRequest) Set(val *KeyfactorApiModelsSslQuietHourRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsSslQuietHourRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsSslQuietHourRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsSslQuietHourRequest(val *KeyfactorApiModelsSslQuietHourRequest) *NullableKeyfactorApiModelsSslQuietHourRequest { + return &NullableKeyfactorApiModelsSslQuietHourRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsSslQuietHourRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsSslQuietHourRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_ssl_quiet_hour_response.go b/v1/api/keyfactor/model_keyfactor_api_models_ssl_quiet_hour_response.go new file mode 100644 index 0000000..48c306f --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_ssl_quiet_hour_response.go @@ -0,0 +1,270 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" + "time" +) + +// checks if the KeyfactorApiModelsSslQuietHourResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsSslQuietHourResponse{} + +// KeyfactorApiModelsSslQuietHourResponse struct for KeyfactorApiModelsSslQuietHourResponse +type KeyfactorApiModelsSslQuietHourResponse struct { + StartDay *int32 `json:"StartDay,omitempty"` + StartTime *time.Time `json:"StartTime,omitempty"` + EndDay *int32 `json:"EndDay,omitempty"` + EndTime *time.Time `json:"EndTime,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsSslQuietHourResponse KeyfactorApiModelsSslQuietHourResponse + +// NewKeyfactorApiModelsSslQuietHourResponse instantiates a new KeyfactorApiModelsSslQuietHourResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsSslQuietHourResponse() *KeyfactorApiModelsSslQuietHourResponse { + this := KeyfactorApiModelsSslQuietHourResponse{} + return &this +} + +// NewKeyfactorApiModelsSslQuietHourResponseWithDefaults instantiates a new KeyfactorApiModelsSslQuietHourResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsSslQuietHourResponseWithDefaults() *KeyfactorApiModelsSslQuietHourResponse { + this := KeyfactorApiModelsSslQuietHourResponse{} + return &this +} + +// GetStartDay returns the StartDay field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslQuietHourResponse) GetStartDay() int32 { + if o == nil || isNil(o.StartDay) { + var ret int32 + return ret + } + return *o.StartDay +} + +// GetStartDayOk returns a tuple with the StartDay field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslQuietHourResponse) GetStartDayOk() (*int32, bool) { + if o == nil || isNil(o.StartDay) { + return nil, false + } + return o.StartDay, true +} + +// HasStartDay returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslQuietHourResponse) HasStartDay() bool { + if o != nil && !isNil(o.StartDay) { + return true + } + + return false +} + +// SetStartDay gets a reference to the given int32 and assigns it to the StartDay field. +func (o *KeyfactorApiModelsSslQuietHourResponse) SetStartDay(v int32) { + o.StartDay = &v +} + +// GetStartTime returns the StartTime field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslQuietHourResponse) GetStartTime() time.Time { + if o == nil || isNil(o.StartTime) { + var ret time.Time + return ret + } + return *o.StartTime +} + +// GetStartTimeOk returns a tuple with the StartTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslQuietHourResponse) GetStartTimeOk() (*time.Time, bool) { + if o == nil || isNil(o.StartTime) { + return nil, false + } + return o.StartTime, true +} + +// HasStartTime returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslQuietHourResponse) HasStartTime() bool { + if o != nil && !isNil(o.StartTime) { + return true + } + + return false +} + +// SetStartTime gets a reference to the given time.Time and assigns it to the StartTime field. +func (o *KeyfactorApiModelsSslQuietHourResponse) SetStartTime(v time.Time) { + o.StartTime = &v +} + +// GetEndDay returns the EndDay field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslQuietHourResponse) GetEndDay() int32 { + if o == nil || isNil(o.EndDay) { + var ret int32 + return ret + } + return *o.EndDay +} + +// GetEndDayOk returns a tuple with the EndDay field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslQuietHourResponse) GetEndDayOk() (*int32, bool) { + if o == nil || isNil(o.EndDay) { + return nil, false + } + return o.EndDay, true +} + +// HasEndDay returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslQuietHourResponse) HasEndDay() bool { + if o != nil && !isNil(o.EndDay) { + return true + } + + return false +} + +// SetEndDay gets a reference to the given int32 and assigns it to the EndDay field. +func (o *KeyfactorApiModelsSslQuietHourResponse) SetEndDay(v int32) { + o.EndDay = &v +} + +// GetEndTime returns the EndTime field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslQuietHourResponse) GetEndTime() time.Time { + if o == nil || isNil(o.EndTime) { + var ret time.Time + return ret + } + return *o.EndTime +} + +// GetEndTimeOk returns a tuple with the EndTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslQuietHourResponse) GetEndTimeOk() (*time.Time, bool) { + if o == nil || isNil(o.EndTime) { + return nil, false + } + return o.EndTime, true +} + +// HasEndTime returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslQuietHourResponse) HasEndTime() bool { + if o != nil && !isNil(o.EndTime) { + return true + } + + return false +} + +// SetEndTime gets a reference to the given time.Time and assigns it to the EndTime field. +func (o *KeyfactorApiModelsSslQuietHourResponse) SetEndTime(v time.Time) { + o.EndTime = &v +} + +func (o KeyfactorApiModelsSslQuietHourResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsSslQuietHourResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.StartDay) { + toSerialize["StartDay"] = o.StartDay + } + if !isNil(o.StartTime) { + toSerialize["StartTime"] = o.StartTime + } + if !isNil(o.EndDay) { + toSerialize["EndDay"] = o.EndDay + } + if !isNil(o.EndTime) { + toSerialize["EndTime"] = o.EndTime + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsSslQuietHourResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsSslQuietHourResponse := _KeyfactorApiModelsSslQuietHourResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsSslQuietHourResponse); err == nil { + *o = KeyfactorApiModelsSslQuietHourResponse(varKeyfactorApiModelsSslQuietHourResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "StartDay") + delete(additionalProperties, "StartTime") + delete(additionalProperties, "EndDay") + delete(additionalProperties, "EndTime") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsSslQuietHourResponse struct { + value *KeyfactorApiModelsSslQuietHourResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsSslQuietHourResponse) Get() *KeyfactorApiModelsSslQuietHourResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsSslQuietHourResponse) Set(val *KeyfactorApiModelsSslQuietHourResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsSslQuietHourResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsSslQuietHourResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsSslQuietHourResponse(val *KeyfactorApiModelsSslQuietHourResponse) *NullableKeyfactorApiModelsSslQuietHourResponse { + return &NullableKeyfactorApiModelsSslQuietHourResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsSslQuietHourResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsSslQuietHourResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_ssl_update_network_request.go b/v1/api/keyfactor/model_keyfactor_api_models_ssl_update_network_request.go new file mode 100644 index 0000000..1a16477 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_ssl_update_network_request.go @@ -0,0 +1,603 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsSslUpdateNetworkRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsSslUpdateNetworkRequest{} + +// KeyfactorApiModelsSslUpdateNetworkRequest struct for KeyfactorApiModelsSslUpdateNetworkRequest +type KeyfactorApiModelsSslUpdateNetworkRequest struct { + NetworkId string `json:"NetworkId"` + Name string `json:"Name"` + AgentPoolName string `json:"AgentPoolName"` + Description string `json:"Description"` + Enabled *bool `json:"Enabled,omitempty"` + DiscoverSchedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"DiscoverSchedule,omitempty"` + MonitorSchedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"MonitorSchedule,omitempty"` + SslAlertRecipients []string `json:"SslAlertRecipients,omitempty"` + AutoMonitor *bool `json:"AutoMonitor,omitempty"` + GetRobots *bool `json:"GetRobots,omitempty"` + DiscoverTimeoutMs *float64 `json:"DiscoverTimeoutMs,omitempty"` + MonitorTimeoutMs *float64 `json:"MonitorTimeoutMs,omitempty"` + ExpirationAlertDays *float64 `json:"ExpirationAlertDays,omitempty"` + QuietHours []KeyfactorApiModelsSslQuietHourRequest `json:"QuietHours,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsSslUpdateNetworkRequest KeyfactorApiModelsSslUpdateNetworkRequest + +// NewKeyfactorApiModelsSslUpdateNetworkRequest instantiates a new KeyfactorApiModelsSslUpdateNetworkRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsSslUpdateNetworkRequest(networkId string, name string, agentPoolName string, description string) *KeyfactorApiModelsSslUpdateNetworkRequest { + this := KeyfactorApiModelsSslUpdateNetworkRequest{} + this.NetworkId = networkId + this.Name = name + this.AgentPoolName = agentPoolName + this.Description = description + return &this +} + +// NewKeyfactorApiModelsSslUpdateNetworkRequestWithDefaults instantiates a new KeyfactorApiModelsSslUpdateNetworkRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsSslUpdateNetworkRequestWithDefaults() *KeyfactorApiModelsSslUpdateNetworkRequest { + this := KeyfactorApiModelsSslUpdateNetworkRequest{} + return &this +} + +// GetNetworkId returns the NetworkId field value +func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetNetworkId() string { + if o == nil { + var ret string + return ret + } + + return o.NetworkId +} + +// GetNetworkIdOk returns a tuple with the NetworkId field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetNetworkIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.NetworkId, true +} + +// SetNetworkId sets field value +func (o *KeyfactorApiModelsSslUpdateNetworkRequest) SetNetworkId(v string) { + o.NetworkId = v +} + +// GetName returns the Name field value +func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *KeyfactorApiModelsSslUpdateNetworkRequest) SetName(v string) { + o.Name = v +} + +// GetAgentPoolName returns the AgentPoolName field value +func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetAgentPoolName() string { + if o == nil { + var ret string + return ret + } + + return o.AgentPoolName +} + +// GetAgentPoolNameOk returns a tuple with the AgentPoolName field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetAgentPoolNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AgentPoolName, true +} + +// SetAgentPoolName sets field value +func (o *KeyfactorApiModelsSslUpdateNetworkRequest) SetAgentPoolName(v string) { + o.AgentPoolName = v +} + +// GetDescription returns the Description field value +func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetDescription() string { + if o == nil { + var ret string + return ret + } + + return o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Description, true +} + +// SetDescription sets field value +func (o *KeyfactorApiModelsSslUpdateNetworkRequest) SetDescription(v string) { + o.Description = v +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetEnabled() bool { + if o == nil || isNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetEnabledOk() (*bool, bool) { + if o == nil || isNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslUpdateNetworkRequest) HasEnabled() bool { + if o != nil && !isNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *KeyfactorApiModelsSslUpdateNetworkRequest) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetDiscoverSchedule returns the DiscoverSchedule field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetDiscoverSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.DiscoverSchedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.DiscoverSchedule +} + +// GetDiscoverScheduleOk returns a tuple with the DiscoverSchedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetDiscoverScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.DiscoverSchedule) { + return nil, false + } + return o.DiscoverSchedule, true +} + +// HasDiscoverSchedule returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslUpdateNetworkRequest) HasDiscoverSchedule() bool { + if o != nil && !isNil(o.DiscoverSchedule) { + return true + } + + return false +} + +// SetDiscoverSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the DiscoverSchedule field. +func (o *KeyfactorApiModelsSslUpdateNetworkRequest) SetDiscoverSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.DiscoverSchedule = &v +} + +// GetMonitorSchedule returns the MonitorSchedule field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetMonitorSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.MonitorSchedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.MonitorSchedule +} + +// GetMonitorScheduleOk returns a tuple with the MonitorSchedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetMonitorScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.MonitorSchedule) { + return nil, false + } + return o.MonitorSchedule, true +} + +// HasMonitorSchedule returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslUpdateNetworkRequest) HasMonitorSchedule() bool { + if o != nil && !isNil(o.MonitorSchedule) { + return true + } + + return false +} + +// SetMonitorSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the MonitorSchedule field. +func (o *KeyfactorApiModelsSslUpdateNetworkRequest) SetMonitorSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.MonitorSchedule = &v +} + +// GetSslAlertRecipients returns the SslAlertRecipients field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetSslAlertRecipients() []string { + if o == nil || isNil(o.SslAlertRecipients) { + var ret []string + return ret + } + return o.SslAlertRecipients +} + +// GetSslAlertRecipientsOk returns a tuple with the SslAlertRecipients field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetSslAlertRecipientsOk() ([]string, bool) { + if o == nil || isNil(o.SslAlertRecipients) { + return nil, false + } + return o.SslAlertRecipients, true +} + +// HasSslAlertRecipients returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslUpdateNetworkRequest) HasSslAlertRecipients() bool { + if o != nil && !isNil(o.SslAlertRecipients) { + return true + } + + return false +} + +// SetSslAlertRecipients gets a reference to the given []string and assigns it to the SslAlertRecipients field. +func (o *KeyfactorApiModelsSslUpdateNetworkRequest) SetSslAlertRecipients(v []string) { + o.SslAlertRecipients = v +} + +// GetAutoMonitor returns the AutoMonitor field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetAutoMonitor() bool { + if o == nil || isNil(o.AutoMonitor) { + var ret bool + return ret + } + return *o.AutoMonitor +} + +// GetAutoMonitorOk returns a tuple with the AutoMonitor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetAutoMonitorOk() (*bool, bool) { + if o == nil || isNil(o.AutoMonitor) { + return nil, false + } + return o.AutoMonitor, true +} + +// HasAutoMonitor returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslUpdateNetworkRequest) HasAutoMonitor() bool { + if o != nil && !isNil(o.AutoMonitor) { + return true + } + + return false +} + +// SetAutoMonitor gets a reference to the given bool and assigns it to the AutoMonitor field. +func (o *KeyfactorApiModelsSslUpdateNetworkRequest) SetAutoMonitor(v bool) { + o.AutoMonitor = &v +} + +// GetGetRobots returns the GetRobots field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetGetRobots() bool { + if o == nil || isNil(o.GetRobots) { + var ret bool + return ret + } + return *o.GetRobots +} + +// GetGetRobotsOk returns a tuple with the GetRobots field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetGetRobotsOk() (*bool, bool) { + if o == nil || isNil(o.GetRobots) { + return nil, false + } + return o.GetRobots, true +} + +// HasGetRobots returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslUpdateNetworkRequest) HasGetRobots() bool { + if o != nil && !isNil(o.GetRobots) { + return true + } + + return false +} + +// SetGetRobots gets a reference to the given bool and assigns it to the GetRobots field. +func (o *KeyfactorApiModelsSslUpdateNetworkRequest) SetGetRobots(v bool) { + o.GetRobots = &v +} + +// GetDiscoverTimeoutMs returns the DiscoverTimeoutMs field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetDiscoverTimeoutMs() float64 { + if o == nil || isNil(o.DiscoverTimeoutMs) { + var ret float64 + return ret + } + return *o.DiscoverTimeoutMs +} + +// GetDiscoverTimeoutMsOk returns a tuple with the DiscoverTimeoutMs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetDiscoverTimeoutMsOk() (*float64, bool) { + if o == nil || isNil(o.DiscoverTimeoutMs) { + return nil, false + } + return o.DiscoverTimeoutMs, true +} + +// HasDiscoverTimeoutMs returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslUpdateNetworkRequest) HasDiscoverTimeoutMs() bool { + if o != nil && !isNil(o.DiscoverTimeoutMs) { + return true + } + + return false +} + +// SetDiscoverTimeoutMs gets a reference to the given float64 and assigns it to the DiscoverTimeoutMs field. +func (o *KeyfactorApiModelsSslUpdateNetworkRequest) SetDiscoverTimeoutMs(v float64) { + o.DiscoverTimeoutMs = &v +} + +// GetMonitorTimeoutMs returns the MonitorTimeoutMs field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetMonitorTimeoutMs() float64 { + if o == nil || isNil(o.MonitorTimeoutMs) { + var ret float64 + return ret + } + return *o.MonitorTimeoutMs +} + +// GetMonitorTimeoutMsOk returns a tuple with the MonitorTimeoutMs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetMonitorTimeoutMsOk() (*float64, bool) { + if o == nil || isNil(o.MonitorTimeoutMs) { + return nil, false + } + return o.MonitorTimeoutMs, true +} + +// HasMonitorTimeoutMs returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslUpdateNetworkRequest) HasMonitorTimeoutMs() bool { + if o != nil && !isNil(o.MonitorTimeoutMs) { + return true + } + + return false +} + +// SetMonitorTimeoutMs gets a reference to the given float64 and assigns it to the MonitorTimeoutMs field. +func (o *KeyfactorApiModelsSslUpdateNetworkRequest) SetMonitorTimeoutMs(v float64) { + o.MonitorTimeoutMs = &v +} + +// GetExpirationAlertDays returns the ExpirationAlertDays field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetExpirationAlertDays() float64 { + if o == nil || isNil(o.ExpirationAlertDays) { + var ret float64 + return ret + } + return *o.ExpirationAlertDays +} + +// GetExpirationAlertDaysOk returns a tuple with the ExpirationAlertDays field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetExpirationAlertDaysOk() (*float64, bool) { + if o == nil || isNil(o.ExpirationAlertDays) { + return nil, false + } + return o.ExpirationAlertDays, true +} + +// HasExpirationAlertDays returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslUpdateNetworkRequest) HasExpirationAlertDays() bool { + if o != nil && !isNil(o.ExpirationAlertDays) { + return true + } + + return false +} + +// SetExpirationAlertDays gets a reference to the given float64 and assigns it to the ExpirationAlertDays field. +func (o *KeyfactorApiModelsSslUpdateNetworkRequest) SetExpirationAlertDays(v float64) { + o.ExpirationAlertDays = &v +} + +// GetQuietHours returns the QuietHours field value if set, zero value otherwise. +func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetQuietHours() []KeyfactorApiModelsSslQuietHourRequest { + if o == nil || isNil(o.QuietHours) { + var ret []KeyfactorApiModelsSslQuietHourRequest + return ret + } + return o.QuietHours +} + +// GetQuietHoursOk returns a tuple with the QuietHours field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetQuietHoursOk() ([]KeyfactorApiModelsSslQuietHourRequest, bool) { + if o == nil || isNil(o.QuietHours) { + return nil, false + } + return o.QuietHours, true +} + +// HasQuietHours returns a boolean if a field has been set. +func (o *KeyfactorApiModelsSslUpdateNetworkRequest) HasQuietHours() bool { + if o != nil && !isNil(o.QuietHours) { + return true + } + + return false +} + +// SetQuietHours gets a reference to the given []KeyfactorApiModelsSslQuietHourRequest and assigns it to the QuietHours field. +func (o *KeyfactorApiModelsSslUpdateNetworkRequest) SetQuietHours(v []KeyfactorApiModelsSslQuietHourRequest) { + o.QuietHours = v +} + +func (o KeyfactorApiModelsSslUpdateNetworkRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsSslUpdateNetworkRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["NetworkId"] = o.NetworkId + toSerialize["Name"] = o.Name + toSerialize["AgentPoolName"] = o.AgentPoolName + toSerialize["Description"] = o.Description + if !isNil(o.Enabled) { + toSerialize["Enabled"] = o.Enabled + } + if !isNil(o.DiscoverSchedule) { + toSerialize["DiscoverSchedule"] = o.DiscoverSchedule + } + if !isNil(o.MonitorSchedule) { + toSerialize["MonitorSchedule"] = o.MonitorSchedule + } + if !isNil(o.SslAlertRecipients) { + toSerialize["SslAlertRecipients"] = o.SslAlertRecipients + } + if !isNil(o.AutoMonitor) { + toSerialize["AutoMonitor"] = o.AutoMonitor + } + if !isNil(o.GetRobots) { + toSerialize["GetRobots"] = o.GetRobots + } + if !isNil(o.DiscoverTimeoutMs) { + toSerialize["DiscoverTimeoutMs"] = o.DiscoverTimeoutMs + } + if !isNil(o.MonitorTimeoutMs) { + toSerialize["MonitorTimeoutMs"] = o.MonitorTimeoutMs + } + if !isNil(o.ExpirationAlertDays) { + toSerialize["ExpirationAlertDays"] = o.ExpirationAlertDays + } + if !isNil(o.QuietHours) { + toSerialize["QuietHours"] = o.QuietHours + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsSslUpdateNetworkRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsSslUpdateNetworkRequest := _KeyfactorApiModelsSslUpdateNetworkRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsSslUpdateNetworkRequest); err == nil { + *o = KeyfactorApiModelsSslUpdateNetworkRequest(varKeyfactorApiModelsSslUpdateNetworkRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "NetworkId") + delete(additionalProperties, "Name") + delete(additionalProperties, "AgentPoolName") + delete(additionalProperties, "Description") + delete(additionalProperties, "Enabled") + delete(additionalProperties, "DiscoverSchedule") + delete(additionalProperties, "MonitorSchedule") + delete(additionalProperties, "SslAlertRecipients") + delete(additionalProperties, "AutoMonitor") + delete(additionalProperties, "GetRobots") + delete(additionalProperties, "DiscoverTimeoutMs") + delete(additionalProperties, "MonitorTimeoutMs") + delete(additionalProperties, "ExpirationAlertDays") + delete(additionalProperties, "QuietHours") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsSslUpdateNetworkRequest struct { + value *KeyfactorApiModelsSslUpdateNetworkRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsSslUpdateNetworkRequest) Get() *KeyfactorApiModelsSslUpdateNetworkRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsSslUpdateNetworkRequest) Set(val *KeyfactorApiModelsSslUpdateNetworkRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsSslUpdateNetworkRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsSslUpdateNetworkRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsSslUpdateNetworkRequest(val *KeyfactorApiModelsSslUpdateNetworkRequest) *NullableKeyfactorApiModelsSslUpdateNetworkRequest { + return &NullableKeyfactorApiModelsSslUpdateNetworkRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsSslUpdateNetworkRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsSslUpdateNetworkRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_templates_global_template_default_request.go b/v1/api/keyfactor/model_keyfactor_api_models_templates_global_template_default_request.go new file mode 100644 index 0000000..37dafc6 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_templates_global_template_default_request.go @@ -0,0 +1,188 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest{} + +// KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest struct for KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest +type KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest struct { + // The subject part to apply the default to. + SubjectPart string `json:"SubjectPart"` + // The value to apply by default. + Value *string `json:"Value,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest + +// NewKeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest instantiates a new KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest(subjectPart string) *KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest { + this := KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest{} + this.SubjectPart = subjectPart + return &this +} + +// NewKeyfactorApiModelsTemplatesGlobalTemplateDefaultRequestWithDefaults instantiates a new KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsTemplatesGlobalTemplateDefaultRequestWithDefaults() *KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest { + this := KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest{} + return &this +} + +// GetSubjectPart returns the SubjectPart field value +func (o *KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest) GetSubjectPart() string { + if o == nil { + var ret string + return ret + } + + return o.SubjectPart +} + +// GetSubjectPartOk returns a tuple with the SubjectPart field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest) GetSubjectPartOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SubjectPart, true +} + +// SetSubjectPart sets field value +func (o *KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest) SetSubjectPart(v string) { + o.SubjectPart = v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest) GetValue() string { + if o == nil || isNil(o.Value) { + var ret string + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest) GetValueOk() (*string, bool) { + if o == nil || isNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest) HasValue() bool { + if o != nil && !isNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given string and assigns it to the Value field. +func (o *KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest) SetValue(v string) { + o.Value = &v +} + +func (o KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["SubjectPart"] = o.SubjectPart + if !isNil(o.Value) { + toSerialize["Value"] = o.Value + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest := _KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest); err == nil { + *o = KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest(varKeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "SubjectPart") + delete(additionalProperties, "Value") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest struct { + value *KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest) Get() *KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest) Set(val *KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest(val *KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest) *NullableKeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest { + return &NullableKeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_templates_global_template_default_response.go b/v1/api/keyfactor/model_keyfactor_api_models_templates_global_template_default_response.go new file mode 100644 index 0000000..c58a753 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_templates_global_template_default_response.go @@ -0,0 +1,197 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse{} + +// KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse struct for KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse +type KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse struct { + // The subject part to apply the default to. + SubjectPart *string `json:"SubjectPart,omitempty"` + // The value to apply by default. + Value *string `json:"Value,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse + +// NewKeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse instantiates a new KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse() *KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse { + this := KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse{} + return &this +} + +// NewKeyfactorApiModelsTemplatesGlobalTemplateDefaultResponseWithDefaults instantiates a new KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsTemplatesGlobalTemplateDefaultResponseWithDefaults() *KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse { + this := KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse{} + return &this +} + +// GetSubjectPart returns the SubjectPart field value if set, zero value otherwise. +func (o *KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse) GetSubjectPart() string { + if o == nil || isNil(o.SubjectPart) { + var ret string + return ret + } + return *o.SubjectPart +} + +// GetSubjectPartOk returns a tuple with the SubjectPart field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse) GetSubjectPartOk() (*string, bool) { + if o == nil || isNil(o.SubjectPart) { + return nil, false + } + return o.SubjectPart, true +} + +// HasSubjectPart returns a boolean if a field has been set. +func (o *KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse) HasSubjectPart() bool { + if o != nil && !isNil(o.SubjectPart) { + return true + } + + return false +} + +// SetSubjectPart gets a reference to the given string and assigns it to the SubjectPart field. +func (o *KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse) SetSubjectPart(v string) { + o.SubjectPart = &v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse) GetValue() string { + if o == nil || isNil(o.Value) { + var ret string + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse) GetValueOk() (*string, bool) { + if o == nil || isNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse) HasValue() bool { + if o != nil && !isNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given string and assigns it to the Value field. +func (o *KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse) SetValue(v string) { + o.Value = &v +} + +func (o KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.SubjectPart) { + toSerialize["SubjectPart"] = o.SubjectPart + } + if !isNil(o.Value) { + toSerialize["Value"] = o.Value + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse := _KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse); err == nil { + *o = KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse(varKeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "SubjectPart") + delete(additionalProperties, "Value") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse struct { + value *KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse) Get() *KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse) Set(val *KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse(val *KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse) *NullableKeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse { + return &NullableKeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_templates_global_template_policy_request.go b/v1/api/keyfactor/model_keyfactor_api_models_templates_global_template_policy_request.go new file mode 100644 index 0000000..3c30883 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_templates_global_template_policy_request.go @@ -0,0 +1,266 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest{} + +// KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest struct for KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest +type KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest struct { + // The allowed RSA key sizes. + RSAValidKeySizes []int32 `json:"RSAValidKeySizes"` + // The allowed ECC curves. + ECCValidCurves []string `json:"ECCValidCurves"` + // Whether or not keys can be reused. + AllowKeyReuse bool `json:"AllowKeyReuse"` + // Whether or not wildcards can be used. + AllowWildcards bool `json:"AllowWildcards"` + // Whether or not RFC 2818 compliance should be enforced. + RFCEnforcement bool `json:"RFCEnforcement"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest + +// NewKeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest instantiates a new KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest(rSAValidKeySizes []int32, eCCValidCurves []string, allowKeyReuse bool, allowWildcards bool, rFCEnforcement bool) *KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest { + this := KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest{} + this.RSAValidKeySizes = rSAValidKeySizes + this.ECCValidCurves = eCCValidCurves + this.AllowKeyReuse = allowKeyReuse + this.AllowWildcards = allowWildcards + this.RFCEnforcement = rFCEnforcement + return &this +} + +// NewKeyfactorApiModelsTemplatesGlobalTemplatePolicyRequestWithDefaults instantiates a new KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsTemplatesGlobalTemplatePolicyRequestWithDefaults() *KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest { + this := KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest{} + return &this +} + +// GetRSAValidKeySizes returns the RSAValidKeySizes field value +func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest) GetRSAValidKeySizes() []int32 { + if o == nil { + var ret []int32 + return ret + } + + return o.RSAValidKeySizes +} + +// GetRSAValidKeySizesOk returns a tuple with the RSAValidKeySizes field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest) GetRSAValidKeySizesOk() ([]int32, bool) { + if o == nil { + return nil, false + } + return o.RSAValidKeySizes, true +} + +// SetRSAValidKeySizes sets field value +func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest) SetRSAValidKeySizes(v []int32) { + o.RSAValidKeySizes = v +} + +// GetECCValidCurves returns the ECCValidCurves field value +func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest) GetECCValidCurves() []string { + if o == nil { + var ret []string + return ret + } + + return o.ECCValidCurves +} + +// GetECCValidCurvesOk returns a tuple with the ECCValidCurves field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest) GetECCValidCurvesOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.ECCValidCurves, true +} + +// SetECCValidCurves sets field value +func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest) SetECCValidCurves(v []string) { + o.ECCValidCurves = v +} + +// GetAllowKeyReuse returns the AllowKeyReuse field value +func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest) GetAllowKeyReuse() bool { + if o == nil { + var ret bool + return ret + } + + return o.AllowKeyReuse +} + +// GetAllowKeyReuseOk returns a tuple with the AllowKeyReuse field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest) GetAllowKeyReuseOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.AllowKeyReuse, true +} + +// SetAllowKeyReuse sets field value +func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest) SetAllowKeyReuse(v bool) { + o.AllowKeyReuse = v +} + +// GetAllowWildcards returns the AllowWildcards field value +func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest) GetAllowWildcards() bool { + if o == nil { + var ret bool + return ret + } + + return o.AllowWildcards +} + +// GetAllowWildcardsOk returns a tuple with the AllowWildcards field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest) GetAllowWildcardsOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.AllowWildcards, true +} + +// SetAllowWildcards sets field value +func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest) SetAllowWildcards(v bool) { + o.AllowWildcards = v +} + +// GetRFCEnforcement returns the RFCEnforcement field value +func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest) GetRFCEnforcement() bool { + if o == nil { + var ret bool + return ret + } + + return o.RFCEnforcement +} + +// GetRFCEnforcementOk returns a tuple with the RFCEnforcement field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest) GetRFCEnforcementOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.RFCEnforcement, true +} + +// SetRFCEnforcement sets field value +func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest) SetRFCEnforcement(v bool) { + o.RFCEnforcement = v +} + +func (o KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["RSAValidKeySizes"] = o.RSAValidKeySizes + toSerialize["ECCValidCurves"] = o.ECCValidCurves + toSerialize["AllowKeyReuse"] = o.AllowKeyReuse + toSerialize["AllowWildcards"] = o.AllowWildcards + toSerialize["RFCEnforcement"] = o.RFCEnforcement + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest := _KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest); err == nil { + *o = KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest(varKeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "RSAValidKeySizes") + delete(additionalProperties, "ECCValidCurves") + delete(additionalProperties, "AllowKeyReuse") + delete(additionalProperties, "AllowWildcards") + delete(additionalProperties, "RFCEnforcement") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest struct { + value *KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest) Get() *KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest) Set(val *KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest(val *KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest) *NullableKeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest { + return &NullableKeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_templates_global_template_policy_response.go b/v1/api/keyfactor/model_keyfactor_api_models_templates_global_template_policy_response.go new file mode 100644 index 0000000..b0202fa --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_templates_global_template_policy_response.go @@ -0,0 +1,311 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse{} + +// KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse struct for KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse +type KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse struct { + // The allowed RSA key sizes. + RSAValidKeySizes []int32 `json:"RSAValidKeySizes,omitempty"` + // The allowed ECC curves. + ECCValidCurves []string `json:"ECCValidCurves,omitempty"` + // Whether or not keys can be reused. + AllowKeyReuse *bool `json:"AllowKeyReuse,omitempty"` + // Whether or not wildcards can be used. + AllowWildcards *bool `json:"AllowWildcards,omitempty"` + // Whether or not RFC 2818 compliance should be enforced. + RFCEnforcement *bool `json:"RFCEnforcement,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse + +// NewKeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse instantiates a new KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse() *KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse { + this := KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse{} + return &this +} + +// NewKeyfactorApiModelsTemplatesGlobalTemplatePolicyResponseWithDefaults instantiates a new KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsTemplatesGlobalTemplatePolicyResponseWithDefaults() *KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse { + this := KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse{} + return &this +} + +// GetRSAValidKeySizes returns the RSAValidKeySizes field value if set, zero value otherwise. +func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse) GetRSAValidKeySizes() []int32 { + if o == nil || isNil(o.RSAValidKeySizes) { + var ret []int32 + return ret + } + return o.RSAValidKeySizes +} + +// GetRSAValidKeySizesOk returns a tuple with the RSAValidKeySizes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse) GetRSAValidKeySizesOk() ([]int32, bool) { + if o == nil || isNil(o.RSAValidKeySizes) { + return nil, false + } + return o.RSAValidKeySizes, true +} + +// HasRSAValidKeySizes returns a boolean if a field has been set. +func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse) HasRSAValidKeySizes() bool { + if o != nil && !isNil(o.RSAValidKeySizes) { + return true + } + + return false +} + +// SetRSAValidKeySizes gets a reference to the given []int32 and assigns it to the RSAValidKeySizes field. +func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse) SetRSAValidKeySizes(v []int32) { + o.RSAValidKeySizes = v +} + +// GetECCValidCurves returns the ECCValidCurves field value if set, zero value otherwise. +func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse) GetECCValidCurves() []string { + if o == nil || isNil(o.ECCValidCurves) { + var ret []string + return ret + } + return o.ECCValidCurves +} + +// GetECCValidCurvesOk returns a tuple with the ECCValidCurves field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse) GetECCValidCurvesOk() ([]string, bool) { + if o == nil || isNil(o.ECCValidCurves) { + return nil, false + } + return o.ECCValidCurves, true +} + +// HasECCValidCurves returns a boolean if a field has been set. +func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse) HasECCValidCurves() bool { + if o != nil && !isNil(o.ECCValidCurves) { + return true + } + + return false +} + +// SetECCValidCurves gets a reference to the given []string and assigns it to the ECCValidCurves field. +func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse) SetECCValidCurves(v []string) { + o.ECCValidCurves = v +} + +// GetAllowKeyReuse returns the AllowKeyReuse field value if set, zero value otherwise. +func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse) GetAllowKeyReuse() bool { + if o == nil || isNil(o.AllowKeyReuse) { + var ret bool + return ret + } + return *o.AllowKeyReuse +} + +// GetAllowKeyReuseOk returns a tuple with the AllowKeyReuse field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse) GetAllowKeyReuseOk() (*bool, bool) { + if o == nil || isNil(o.AllowKeyReuse) { + return nil, false + } + return o.AllowKeyReuse, true +} + +// HasAllowKeyReuse returns a boolean if a field has been set. +func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse) HasAllowKeyReuse() bool { + if o != nil && !isNil(o.AllowKeyReuse) { + return true + } + + return false +} + +// SetAllowKeyReuse gets a reference to the given bool and assigns it to the AllowKeyReuse field. +func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse) SetAllowKeyReuse(v bool) { + o.AllowKeyReuse = &v +} + +// GetAllowWildcards returns the AllowWildcards field value if set, zero value otherwise. +func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse) GetAllowWildcards() bool { + if o == nil || isNil(o.AllowWildcards) { + var ret bool + return ret + } + return *o.AllowWildcards +} + +// GetAllowWildcardsOk returns a tuple with the AllowWildcards field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse) GetAllowWildcardsOk() (*bool, bool) { + if o == nil || isNil(o.AllowWildcards) { + return nil, false + } + return o.AllowWildcards, true +} + +// HasAllowWildcards returns a boolean if a field has been set. +func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse) HasAllowWildcards() bool { + if o != nil && !isNil(o.AllowWildcards) { + return true + } + + return false +} + +// SetAllowWildcards gets a reference to the given bool and assigns it to the AllowWildcards field. +func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse) SetAllowWildcards(v bool) { + o.AllowWildcards = &v +} + +// GetRFCEnforcement returns the RFCEnforcement field value if set, zero value otherwise. +func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse) GetRFCEnforcement() bool { + if o == nil || isNil(o.RFCEnforcement) { + var ret bool + return ret + } + return *o.RFCEnforcement +} + +// GetRFCEnforcementOk returns a tuple with the RFCEnforcement field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse) GetRFCEnforcementOk() (*bool, bool) { + if o == nil || isNil(o.RFCEnforcement) { + return nil, false + } + return o.RFCEnforcement, true +} + +// HasRFCEnforcement returns a boolean if a field has been set. +func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse) HasRFCEnforcement() bool { + if o != nil && !isNil(o.RFCEnforcement) { + return true + } + + return false +} + +// SetRFCEnforcement gets a reference to the given bool and assigns it to the RFCEnforcement field. +func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse) SetRFCEnforcement(v bool) { + o.RFCEnforcement = &v +} + +func (o KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.RSAValidKeySizes) { + toSerialize["RSAValidKeySizes"] = o.RSAValidKeySizes + } + if !isNil(o.ECCValidCurves) { + toSerialize["ECCValidCurves"] = o.ECCValidCurves + } + if !isNil(o.AllowKeyReuse) { + toSerialize["AllowKeyReuse"] = o.AllowKeyReuse + } + if !isNil(o.AllowWildcards) { + toSerialize["AllowWildcards"] = o.AllowWildcards + } + if !isNil(o.RFCEnforcement) { + toSerialize["RFCEnforcement"] = o.RFCEnforcement + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse := _KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse); err == nil { + *o = KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse(varKeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "RSAValidKeySizes") + delete(additionalProperties, "ECCValidCurves") + delete(additionalProperties, "AllowKeyReuse") + delete(additionalProperties, "AllowWildcards") + delete(additionalProperties, "RFCEnforcement") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse struct { + value *KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse) Get() *KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse) Set(val *KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse(val *KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse) *NullableKeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse { + return &NullableKeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_templates_global_template_regex_request.go b/v1/api/keyfactor/model_keyfactor_api_models_templates_global_template_regex_request.go new file mode 100644 index 0000000..1d9f241 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_templates_global_template_regex_request.go @@ -0,0 +1,226 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest{} + +// KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest struct for KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest +type KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest struct { + // The subject part to apply the regular expression to. + SubjectPart string `json:"SubjectPart"` + // The regular expression to apply to the subject part. + Regex *string `json:"Regex,omitempty"` + // The error message to show when the regex validation fails. + Error *string `json:"Error,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest + +// NewKeyfactorApiModelsTemplatesGlobalTemplateRegexRequest instantiates a new KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsTemplatesGlobalTemplateRegexRequest(subjectPart string) *KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest { + this := KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest{} + this.SubjectPart = subjectPart + return &this +} + +// NewKeyfactorApiModelsTemplatesGlobalTemplateRegexRequestWithDefaults instantiates a new KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsTemplatesGlobalTemplateRegexRequestWithDefaults() *KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest { + this := KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest{} + return &this +} + +// GetSubjectPart returns the SubjectPart field value +func (o *KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest) GetSubjectPart() string { + if o == nil { + var ret string + return ret + } + + return o.SubjectPart +} + +// GetSubjectPartOk returns a tuple with the SubjectPart field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest) GetSubjectPartOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SubjectPart, true +} + +// SetSubjectPart sets field value +func (o *KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest) SetSubjectPart(v string) { + o.SubjectPart = v +} + +// GetRegex returns the Regex field value if set, zero value otherwise. +func (o *KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest) GetRegex() string { + if o == nil || isNil(o.Regex) { + var ret string + return ret + } + return *o.Regex +} + +// GetRegexOk returns a tuple with the Regex field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest) GetRegexOk() (*string, bool) { + if o == nil || isNil(o.Regex) { + return nil, false + } + return o.Regex, true +} + +// HasRegex returns a boolean if a field has been set. +func (o *KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest) HasRegex() bool { + if o != nil && !isNil(o.Regex) { + return true + } + + return false +} + +// SetRegex gets a reference to the given string and assigns it to the Regex field. +func (o *KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest) SetRegex(v string) { + o.Regex = &v +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest) GetError() string { + if o == nil || isNil(o.Error) { + var ret string + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest) GetErrorOk() (*string, bool) { + if o == nil || isNil(o.Error) { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest) HasError() bool { + if o != nil && !isNil(o.Error) { + return true + } + + return false +} + +// SetError gets a reference to the given string and assigns it to the Error field. +func (o *KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest) SetError(v string) { + o.Error = &v +} + +func (o KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["SubjectPart"] = o.SubjectPart + if !isNil(o.Regex) { + toSerialize["Regex"] = o.Regex + } + if !isNil(o.Error) { + toSerialize["Error"] = o.Error + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsTemplatesGlobalTemplateRegexRequest := _KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsTemplatesGlobalTemplateRegexRequest); err == nil { + *o = KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest(varKeyfactorApiModelsTemplatesGlobalTemplateRegexRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "SubjectPart") + delete(additionalProperties, "Regex") + delete(additionalProperties, "Error") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsTemplatesGlobalTemplateRegexRequest struct { + value *KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsTemplatesGlobalTemplateRegexRequest) Get() *KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsTemplatesGlobalTemplateRegexRequest) Set(val *KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsTemplatesGlobalTemplateRegexRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsTemplatesGlobalTemplateRegexRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsTemplatesGlobalTemplateRegexRequest(val *KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest) *NullableKeyfactorApiModelsTemplatesGlobalTemplateRegexRequest { + return &NullableKeyfactorApiModelsTemplatesGlobalTemplateRegexRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsTemplatesGlobalTemplateRegexRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsTemplatesGlobalTemplateRegexRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_templates_global_template_regex_response.go b/v1/api/keyfactor/model_keyfactor_api_models_templates_global_template_regex_response.go new file mode 100644 index 0000000..4b51576 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_templates_global_template_regex_response.go @@ -0,0 +1,235 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse{} + +// KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse struct for KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse +type KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse struct { + // The subject part to apply the regular expression to. + SubjectPart *string `json:"SubjectPart,omitempty"` + // The regular expression to apply to the subject part. + Regex *string `json:"Regex,omitempty"` + // The error message to show when the regex validation fails. + Error *string `json:"Error,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse + +// NewKeyfactorApiModelsTemplatesGlobalTemplateRegexResponse instantiates a new KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsTemplatesGlobalTemplateRegexResponse() *KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse { + this := KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse{} + return &this +} + +// NewKeyfactorApiModelsTemplatesGlobalTemplateRegexResponseWithDefaults instantiates a new KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsTemplatesGlobalTemplateRegexResponseWithDefaults() *KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse { + this := KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse{} + return &this +} + +// GetSubjectPart returns the SubjectPart field value if set, zero value otherwise. +func (o *KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse) GetSubjectPart() string { + if o == nil || isNil(o.SubjectPart) { + var ret string + return ret + } + return *o.SubjectPart +} + +// GetSubjectPartOk returns a tuple with the SubjectPart field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse) GetSubjectPartOk() (*string, bool) { + if o == nil || isNil(o.SubjectPart) { + return nil, false + } + return o.SubjectPart, true +} + +// HasSubjectPart returns a boolean if a field has been set. +func (o *KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse) HasSubjectPart() bool { + if o != nil && !isNil(o.SubjectPart) { + return true + } + + return false +} + +// SetSubjectPart gets a reference to the given string and assigns it to the SubjectPart field. +func (o *KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse) SetSubjectPart(v string) { + o.SubjectPart = &v +} + +// GetRegex returns the Regex field value if set, zero value otherwise. +func (o *KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse) GetRegex() string { + if o == nil || isNil(o.Regex) { + var ret string + return ret + } + return *o.Regex +} + +// GetRegexOk returns a tuple with the Regex field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse) GetRegexOk() (*string, bool) { + if o == nil || isNil(o.Regex) { + return nil, false + } + return o.Regex, true +} + +// HasRegex returns a boolean if a field has been set. +func (o *KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse) HasRegex() bool { + if o != nil && !isNil(o.Regex) { + return true + } + + return false +} + +// SetRegex gets a reference to the given string and assigns it to the Regex field. +func (o *KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse) SetRegex(v string) { + o.Regex = &v +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse) GetError() string { + if o == nil || isNil(o.Error) { + var ret string + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse) GetErrorOk() (*string, bool) { + if o == nil || isNil(o.Error) { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse) HasError() bool { + if o != nil && !isNil(o.Error) { + return true + } + + return false +} + +// SetError gets a reference to the given string and assigns it to the Error field. +func (o *KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse) SetError(v string) { + o.Error = &v +} + +func (o KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.SubjectPart) { + toSerialize["SubjectPart"] = o.SubjectPart + } + if !isNil(o.Regex) { + toSerialize["Regex"] = o.Regex + } + if !isNil(o.Error) { + toSerialize["Error"] = o.Error + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsTemplatesGlobalTemplateRegexResponse := _KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsTemplatesGlobalTemplateRegexResponse); err == nil { + *o = KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse(varKeyfactorApiModelsTemplatesGlobalTemplateRegexResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "SubjectPart") + delete(additionalProperties, "Regex") + delete(additionalProperties, "Error") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsTemplatesGlobalTemplateRegexResponse struct { + value *KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsTemplatesGlobalTemplateRegexResponse) Get() *KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsTemplatesGlobalTemplateRegexResponse) Set(val *KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsTemplatesGlobalTemplateRegexResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsTemplatesGlobalTemplateRegexResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsTemplatesGlobalTemplateRegexResponse(val *KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse) *NullableKeyfactorApiModelsTemplatesGlobalTemplateRegexResponse { + return &NullableKeyfactorApiModelsTemplatesGlobalTemplateRegexResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsTemplatesGlobalTemplateRegexResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsTemplatesGlobalTemplateRegexResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_templates_global_template_settings_request.go b/v1/api/keyfactor/model_keyfactor_api_models_templates_global_template_settings_request.go new file mode 100644 index 0000000..4919028 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_templates_global_template_settings_request.go @@ -0,0 +1,207 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest{} + +// KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest struct for KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest +type KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest struct { + // The regular expressions to use for validation during enrollment. + TemplateRegexes []KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest `json:"TemplateRegexes"` + // The default values to use during enrollment. + TemplateDefaults []KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest `json:"TemplateDefaults"` + TemplatePolicy KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest `json:"TemplatePolicy"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest + +// NewKeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest instantiates a new KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest(templateRegexes []KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest, templateDefaults []KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest, templatePolicy KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest) *KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest { + this := KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest{} + this.TemplateRegexes = templateRegexes + this.TemplateDefaults = templateDefaults + this.TemplatePolicy = templatePolicy + return &this +} + +// NewKeyfactorApiModelsTemplatesGlobalTemplateSettingsRequestWithDefaults instantiates a new KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsTemplatesGlobalTemplateSettingsRequestWithDefaults() *KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest { + this := KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest{} + return &this +} + +// GetTemplateRegexes returns the TemplateRegexes field value +func (o *KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest) GetTemplateRegexes() []KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest { + if o == nil { + var ret []KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest + return ret + } + + return o.TemplateRegexes +} + +// GetTemplateRegexesOk returns a tuple with the TemplateRegexes field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest) GetTemplateRegexesOk() ([]KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest, bool) { + if o == nil { + return nil, false + } + return o.TemplateRegexes, true +} + +// SetTemplateRegexes sets field value +func (o *KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest) SetTemplateRegexes(v []KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest) { + o.TemplateRegexes = v +} + +// GetTemplateDefaults returns the TemplateDefaults field value +func (o *KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest) GetTemplateDefaults() []KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest { + if o == nil { + var ret []KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest + return ret + } + + return o.TemplateDefaults +} + +// GetTemplateDefaultsOk returns a tuple with the TemplateDefaults field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest) GetTemplateDefaultsOk() ([]KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest, bool) { + if o == nil { + return nil, false + } + return o.TemplateDefaults, true +} + +// SetTemplateDefaults sets field value +func (o *KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest) SetTemplateDefaults(v []KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest) { + o.TemplateDefaults = v +} + +// GetTemplatePolicy returns the TemplatePolicy field value +func (o *KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest) GetTemplatePolicy() KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest { + if o == nil { + var ret KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest + return ret + } + + return o.TemplatePolicy +} + +// GetTemplatePolicyOk returns a tuple with the TemplatePolicy field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest) GetTemplatePolicyOk() (*KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest, bool) { + if o == nil { + return nil, false + } + return &o.TemplatePolicy, true +} + +// SetTemplatePolicy sets field value +func (o *KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest) SetTemplatePolicy(v KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest) { + o.TemplatePolicy = v +} + +func (o KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["TemplateRegexes"] = o.TemplateRegexes + toSerialize["TemplateDefaults"] = o.TemplateDefaults + toSerialize["TemplatePolicy"] = o.TemplatePolicy + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest := _KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest); err == nil { + *o = KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest(varKeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "TemplateRegexes") + delete(additionalProperties, "TemplateDefaults") + delete(additionalProperties, "TemplatePolicy") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest struct { + value *KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest) Get() *KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest) Set(val *KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest(val *KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest) *NullableKeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest { + return &NullableKeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_templates_global_template_settings_response.go b/v1/api/keyfactor/model_keyfactor_api_models_templates_global_template_settings_response.go new file mode 100644 index 0000000..0ef6b6d --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_templates_global_template_settings_response.go @@ -0,0 +1,234 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse{} + +// KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse struct for KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse +type KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse struct { + // The regular expressions to use for validation during enrollment. + TemplateRegexes []KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse `json:"TemplateRegexes,omitempty"` + // The default values to use during enrollment. + TemplateDefaults []KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse `json:"TemplateDefaults,omitempty"` + TemplatePolicy *KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse `json:"TemplatePolicy,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse + +// NewKeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse instantiates a new KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse() *KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse { + this := KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse{} + return &this +} + +// NewKeyfactorApiModelsTemplatesGlobalTemplateSettingsResponseWithDefaults instantiates a new KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsTemplatesGlobalTemplateSettingsResponseWithDefaults() *KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse { + this := KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse{} + return &this +} + +// GetTemplateRegexes returns the TemplateRegexes field value if set, zero value otherwise. +func (o *KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse) GetTemplateRegexes() []KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse { + if o == nil || isNil(o.TemplateRegexes) { + var ret []KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse + return ret + } + return o.TemplateRegexes +} + +// GetTemplateRegexesOk returns a tuple with the TemplateRegexes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse) GetTemplateRegexesOk() ([]KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse, bool) { + if o == nil || isNil(o.TemplateRegexes) { + return nil, false + } + return o.TemplateRegexes, true +} + +// HasTemplateRegexes returns a boolean if a field has been set. +func (o *KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse) HasTemplateRegexes() bool { + if o != nil && !isNil(o.TemplateRegexes) { + return true + } + + return false +} + +// SetTemplateRegexes gets a reference to the given []KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse and assigns it to the TemplateRegexes field. +func (o *KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse) SetTemplateRegexes(v []KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse) { + o.TemplateRegexes = v +} + +// GetTemplateDefaults returns the TemplateDefaults field value if set, zero value otherwise. +func (o *KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse) GetTemplateDefaults() []KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse { + if o == nil || isNil(o.TemplateDefaults) { + var ret []KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse + return ret + } + return o.TemplateDefaults +} + +// GetTemplateDefaultsOk returns a tuple with the TemplateDefaults field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse) GetTemplateDefaultsOk() ([]KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse, bool) { + if o == nil || isNil(o.TemplateDefaults) { + return nil, false + } + return o.TemplateDefaults, true +} + +// HasTemplateDefaults returns a boolean if a field has been set. +func (o *KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse) HasTemplateDefaults() bool { + if o != nil && !isNil(o.TemplateDefaults) { + return true + } + + return false +} + +// SetTemplateDefaults gets a reference to the given []KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse and assigns it to the TemplateDefaults field. +func (o *KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse) SetTemplateDefaults(v []KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse) { + o.TemplateDefaults = v +} + +// GetTemplatePolicy returns the TemplatePolicy field value if set, zero value otherwise. +func (o *KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse) GetTemplatePolicy() KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse { + if o == nil || isNil(o.TemplatePolicy) { + var ret KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse + return ret + } + return *o.TemplatePolicy +} + +// GetTemplatePolicyOk returns a tuple with the TemplatePolicy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse) GetTemplatePolicyOk() (*KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse, bool) { + if o == nil || isNil(o.TemplatePolicy) { + return nil, false + } + return o.TemplatePolicy, true +} + +// HasTemplatePolicy returns a boolean if a field has been set. +func (o *KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse) HasTemplatePolicy() bool { + if o != nil && !isNil(o.TemplatePolicy) { + return true + } + + return false +} + +// SetTemplatePolicy gets a reference to the given KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse and assigns it to the TemplatePolicy field. +func (o *KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse) SetTemplatePolicy(v KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse) { + o.TemplatePolicy = &v +} + +func (o KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.TemplateRegexes) { + toSerialize["TemplateRegexes"] = o.TemplateRegexes + } + if !isNil(o.TemplateDefaults) { + toSerialize["TemplateDefaults"] = o.TemplateDefaults + } + if !isNil(o.TemplatePolicy) { + toSerialize["TemplatePolicy"] = o.TemplatePolicy + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse := _KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse); err == nil { + *o = KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse(varKeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "TemplateRegexes") + delete(additionalProperties, "TemplateDefaults") + delete(additionalProperties, "TemplatePolicy") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse struct { + value *KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse) Get() *KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse) Set(val *KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse(val *KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse) *NullableKeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse { + return &NullableKeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_templates_template_enrollment_default_response.go b/v1/api/keyfactor/model_keyfactor_api_models_templates_template_enrollment_default_response.go new file mode 100644 index 0000000..f328349 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_templates_template_enrollment_default_response.go @@ -0,0 +1,197 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse{} + +// KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse struct for KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse +type KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse struct { + // The subject part to apply the default to. + SubjectPart *string `json:"SubjectPart,omitempty"` + // The value to apply by default. + Value *string `json:"Value,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse + +// NewKeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse instantiates a new KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse() *KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse { + this := KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse{} + return &this +} + +// NewKeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponseWithDefaults instantiates a new KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponseWithDefaults() *KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse { + this := KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse{} + return &this +} + +// GetSubjectPart returns the SubjectPart field value if set, zero value otherwise. +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse) GetSubjectPart() string { + if o == nil || isNil(o.SubjectPart) { + var ret string + return ret + } + return *o.SubjectPart +} + +// GetSubjectPartOk returns a tuple with the SubjectPart field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse) GetSubjectPartOk() (*string, bool) { + if o == nil || isNil(o.SubjectPart) { + return nil, false + } + return o.SubjectPart, true +} + +// HasSubjectPart returns a boolean if a field has been set. +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse) HasSubjectPart() bool { + if o != nil && !isNil(o.SubjectPart) { + return true + } + + return false +} + +// SetSubjectPart gets a reference to the given string and assigns it to the SubjectPart field. +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse) SetSubjectPart(v string) { + o.SubjectPart = &v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse) GetValue() string { + if o == nil || isNil(o.Value) { + var ret string + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse) GetValueOk() (*string, bool) { + if o == nil || isNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse) HasValue() bool { + if o != nil && !isNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given string and assigns it to the Value field. +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse) SetValue(v string) { + o.Value = &v +} + +func (o KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.SubjectPart) { + toSerialize["SubjectPart"] = o.SubjectPart + } + if !isNil(o.Value) { + toSerialize["Value"] = o.Value + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse := _KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse); err == nil { + *o = KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse(varKeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "SubjectPart") + delete(additionalProperties, "Value") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse struct { + value *KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse) Get() *KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse) Set(val *KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse(val *KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse) *NullableKeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse { + return &NullableKeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_templates_template_enrollment_policy_response.go b/v1/api/keyfactor/model_keyfactor_api_models_templates_template_enrollment_policy_response.go new file mode 100644 index 0000000..f170ebb --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_templates_template_enrollment_policy_response.go @@ -0,0 +1,311 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse{} + +// KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse struct for KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse +type KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse struct { + // The allowed RSA key sizes. + RSAValidKeySizes []int32 `json:"RSAValidKeySizes,omitempty"` + // The allowed ECC curves. + ECCValidCurves []string `json:"ECCValidCurves,omitempty"` + // Whether or not keys can be reused. + AllowKeyReuse *bool `json:"AllowKeyReuse,omitempty"` + // Whether or not wildcards can be used. + AllowWildcards *bool `json:"AllowWildcards,omitempty"` + // Whether or not RFC 2818 compliance should be enforced. + RFCEnforcement *bool `json:"RFCEnforcement,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse + +// NewKeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse instantiates a new KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse() *KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse { + this := KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse{} + return &this +} + +// NewKeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponseWithDefaults instantiates a new KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponseWithDefaults() *KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse { + this := KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse{} + return &this +} + +// GetRSAValidKeySizes returns the RSAValidKeySizes field value if set, zero value otherwise. +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse) GetRSAValidKeySizes() []int32 { + if o == nil || isNil(o.RSAValidKeySizes) { + var ret []int32 + return ret + } + return o.RSAValidKeySizes +} + +// GetRSAValidKeySizesOk returns a tuple with the RSAValidKeySizes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse) GetRSAValidKeySizesOk() ([]int32, bool) { + if o == nil || isNil(o.RSAValidKeySizes) { + return nil, false + } + return o.RSAValidKeySizes, true +} + +// HasRSAValidKeySizes returns a boolean if a field has been set. +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse) HasRSAValidKeySizes() bool { + if o != nil && !isNil(o.RSAValidKeySizes) { + return true + } + + return false +} + +// SetRSAValidKeySizes gets a reference to the given []int32 and assigns it to the RSAValidKeySizes field. +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse) SetRSAValidKeySizes(v []int32) { + o.RSAValidKeySizes = v +} + +// GetECCValidCurves returns the ECCValidCurves field value if set, zero value otherwise. +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse) GetECCValidCurves() []string { + if o == nil || isNil(o.ECCValidCurves) { + var ret []string + return ret + } + return o.ECCValidCurves +} + +// GetECCValidCurvesOk returns a tuple with the ECCValidCurves field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse) GetECCValidCurvesOk() ([]string, bool) { + if o == nil || isNil(o.ECCValidCurves) { + return nil, false + } + return o.ECCValidCurves, true +} + +// HasECCValidCurves returns a boolean if a field has been set. +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse) HasECCValidCurves() bool { + if o != nil && !isNil(o.ECCValidCurves) { + return true + } + + return false +} + +// SetECCValidCurves gets a reference to the given []string and assigns it to the ECCValidCurves field. +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse) SetECCValidCurves(v []string) { + o.ECCValidCurves = v +} + +// GetAllowKeyReuse returns the AllowKeyReuse field value if set, zero value otherwise. +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse) GetAllowKeyReuse() bool { + if o == nil || isNil(o.AllowKeyReuse) { + var ret bool + return ret + } + return *o.AllowKeyReuse +} + +// GetAllowKeyReuseOk returns a tuple with the AllowKeyReuse field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse) GetAllowKeyReuseOk() (*bool, bool) { + if o == nil || isNil(o.AllowKeyReuse) { + return nil, false + } + return o.AllowKeyReuse, true +} + +// HasAllowKeyReuse returns a boolean if a field has been set. +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse) HasAllowKeyReuse() bool { + if o != nil && !isNil(o.AllowKeyReuse) { + return true + } + + return false +} + +// SetAllowKeyReuse gets a reference to the given bool and assigns it to the AllowKeyReuse field. +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse) SetAllowKeyReuse(v bool) { + o.AllowKeyReuse = &v +} + +// GetAllowWildcards returns the AllowWildcards field value if set, zero value otherwise. +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse) GetAllowWildcards() bool { + if o == nil || isNil(o.AllowWildcards) { + var ret bool + return ret + } + return *o.AllowWildcards +} + +// GetAllowWildcardsOk returns a tuple with the AllowWildcards field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse) GetAllowWildcardsOk() (*bool, bool) { + if o == nil || isNil(o.AllowWildcards) { + return nil, false + } + return o.AllowWildcards, true +} + +// HasAllowWildcards returns a boolean if a field has been set. +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse) HasAllowWildcards() bool { + if o != nil && !isNil(o.AllowWildcards) { + return true + } + + return false +} + +// SetAllowWildcards gets a reference to the given bool and assigns it to the AllowWildcards field. +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse) SetAllowWildcards(v bool) { + o.AllowWildcards = &v +} + +// GetRFCEnforcement returns the RFCEnforcement field value if set, zero value otherwise. +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse) GetRFCEnforcement() bool { + if o == nil || isNil(o.RFCEnforcement) { + var ret bool + return ret + } + return *o.RFCEnforcement +} + +// GetRFCEnforcementOk returns a tuple with the RFCEnforcement field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse) GetRFCEnforcementOk() (*bool, bool) { + if o == nil || isNil(o.RFCEnforcement) { + return nil, false + } + return o.RFCEnforcement, true +} + +// HasRFCEnforcement returns a boolean if a field has been set. +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse) HasRFCEnforcement() bool { + if o != nil && !isNil(o.RFCEnforcement) { + return true + } + + return false +} + +// SetRFCEnforcement gets a reference to the given bool and assigns it to the RFCEnforcement field. +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse) SetRFCEnforcement(v bool) { + o.RFCEnforcement = &v +} + +func (o KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.RSAValidKeySizes) { + toSerialize["RSAValidKeySizes"] = o.RSAValidKeySizes + } + if !isNil(o.ECCValidCurves) { + toSerialize["ECCValidCurves"] = o.ECCValidCurves + } + if !isNil(o.AllowKeyReuse) { + toSerialize["AllowKeyReuse"] = o.AllowKeyReuse + } + if !isNil(o.AllowWildcards) { + toSerialize["AllowWildcards"] = o.AllowWildcards + } + if !isNil(o.RFCEnforcement) { + toSerialize["RFCEnforcement"] = o.RFCEnforcement + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse := _KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse); err == nil { + *o = KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse(varKeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "RSAValidKeySizes") + delete(additionalProperties, "ECCValidCurves") + delete(additionalProperties, "AllowKeyReuse") + delete(additionalProperties, "AllowWildcards") + delete(additionalProperties, "RFCEnforcement") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse struct { + value *KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse) Get() *KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse) Set(val *KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse(val *KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse) *NullableKeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse { + return &NullableKeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_templates_template_enrollment_regex_response.go b/v1/api/keyfactor/model_keyfactor_api_models_templates_template_enrollment_regex_response.go new file mode 100644 index 0000000..687e5a3 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_templates_template_enrollment_regex_response.go @@ -0,0 +1,235 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse{} + +// KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse struct for KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse +type KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse struct { + // The subject part to apply the regular expression to. + SubjectPart *string `json:"SubjectPart,omitempty"` + // The regular expression to apply to the subject part. + Regex *string `json:"Regex,omitempty"` + // The error message to show when the regex validation fails. + Error *string `json:"Error,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse + +// NewKeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse instantiates a new KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse() *KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse { + this := KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse{} + return &this +} + +// NewKeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponseWithDefaults instantiates a new KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponseWithDefaults() *KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse { + this := KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse{} + return &this +} + +// GetSubjectPart returns the SubjectPart field value if set, zero value otherwise. +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse) GetSubjectPart() string { + if o == nil || isNil(o.SubjectPart) { + var ret string + return ret + } + return *o.SubjectPart +} + +// GetSubjectPartOk returns a tuple with the SubjectPart field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse) GetSubjectPartOk() (*string, bool) { + if o == nil || isNil(o.SubjectPart) { + return nil, false + } + return o.SubjectPart, true +} + +// HasSubjectPart returns a boolean if a field has been set. +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse) HasSubjectPart() bool { + if o != nil && !isNil(o.SubjectPart) { + return true + } + + return false +} + +// SetSubjectPart gets a reference to the given string and assigns it to the SubjectPart field. +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse) SetSubjectPart(v string) { + o.SubjectPart = &v +} + +// GetRegex returns the Regex field value if set, zero value otherwise. +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse) GetRegex() string { + if o == nil || isNil(o.Regex) { + var ret string + return ret + } + return *o.Regex +} + +// GetRegexOk returns a tuple with the Regex field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse) GetRegexOk() (*string, bool) { + if o == nil || isNil(o.Regex) { + return nil, false + } + return o.Regex, true +} + +// HasRegex returns a boolean if a field has been set. +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse) HasRegex() bool { + if o != nil && !isNil(o.Regex) { + return true + } + + return false +} + +// SetRegex gets a reference to the given string and assigns it to the Regex field. +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse) SetRegex(v string) { + o.Regex = &v +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse) GetError() string { + if o == nil || isNil(o.Error) { + var ret string + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse) GetErrorOk() (*string, bool) { + if o == nil || isNil(o.Error) { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse) HasError() bool { + if o != nil && !isNil(o.Error) { + return true + } + + return false +} + +// SetError gets a reference to the given string and assigns it to the Error field. +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse) SetError(v string) { + o.Error = &v +} + +func (o KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.SubjectPart) { + toSerialize["SubjectPart"] = o.SubjectPart + } + if !isNil(o.Regex) { + toSerialize["Regex"] = o.Regex + } + if !isNil(o.Error) { + toSerialize["Error"] = o.Error + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse := _KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse); err == nil { + *o = KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse(varKeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "SubjectPart") + delete(additionalProperties, "Regex") + delete(additionalProperties, "Error") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse struct { + value *KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse) Get() *KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse) Set(val *KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse(val *KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse) *NullableKeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse { + return &NullableKeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_templates_template_enrollment_settings_response.go b/v1/api/keyfactor/model_keyfactor_api_models_templates_template_enrollment_settings_response.go new file mode 100644 index 0000000..716a321 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_templates_template_enrollment_settings_response.go @@ -0,0 +1,234 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse{} + +// KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse struct for KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse +type KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse struct { + // The regular expressions to use for validation during enrollment. + TemplateRegexes []KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse `json:"TemplateRegexes,omitempty"` + // The default values to use during enrollment. + TemplateDefaults []KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse `json:"TemplateDefaults,omitempty"` + TemplatePolicy *KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse `json:"TemplatePolicy,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse + +// NewKeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse instantiates a new KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse() *KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse { + this := KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse{} + return &this +} + +// NewKeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponseWithDefaults instantiates a new KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponseWithDefaults() *KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse { + this := KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse{} + return &this +} + +// GetTemplateRegexes returns the TemplateRegexes field value if set, zero value otherwise. +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse) GetTemplateRegexes() []KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse { + if o == nil || isNil(o.TemplateRegexes) { + var ret []KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse + return ret + } + return o.TemplateRegexes +} + +// GetTemplateRegexesOk returns a tuple with the TemplateRegexes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse) GetTemplateRegexesOk() ([]KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse, bool) { + if o == nil || isNil(o.TemplateRegexes) { + return nil, false + } + return o.TemplateRegexes, true +} + +// HasTemplateRegexes returns a boolean if a field has been set. +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse) HasTemplateRegexes() bool { + if o != nil && !isNil(o.TemplateRegexes) { + return true + } + + return false +} + +// SetTemplateRegexes gets a reference to the given []KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse and assigns it to the TemplateRegexes field. +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse) SetTemplateRegexes(v []KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse) { + o.TemplateRegexes = v +} + +// GetTemplateDefaults returns the TemplateDefaults field value if set, zero value otherwise. +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse) GetTemplateDefaults() []KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse { + if o == nil || isNil(o.TemplateDefaults) { + var ret []KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse + return ret + } + return o.TemplateDefaults +} + +// GetTemplateDefaultsOk returns a tuple with the TemplateDefaults field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse) GetTemplateDefaultsOk() ([]KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse, bool) { + if o == nil || isNil(o.TemplateDefaults) { + return nil, false + } + return o.TemplateDefaults, true +} + +// HasTemplateDefaults returns a boolean if a field has been set. +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse) HasTemplateDefaults() bool { + if o != nil && !isNil(o.TemplateDefaults) { + return true + } + + return false +} + +// SetTemplateDefaults gets a reference to the given []KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse and assigns it to the TemplateDefaults field. +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse) SetTemplateDefaults(v []KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse) { + o.TemplateDefaults = v +} + +// GetTemplatePolicy returns the TemplatePolicy field value if set, zero value otherwise. +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse) GetTemplatePolicy() KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse { + if o == nil || isNil(o.TemplatePolicy) { + var ret KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse + return ret + } + return *o.TemplatePolicy +} + +// GetTemplatePolicyOk returns a tuple with the TemplatePolicy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse) GetTemplatePolicyOk() (*KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse, bool) { + if o == nil || isNil(o.TemplatePolicy) { + return nil, false + } + return o.TemplatePolicy, true +} + +// HasTemplatePolicy returns a boolean if a field has been set. +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse) HasTemplatePolicy() bool { + if o != nil && !isNil(o.TemplatePolicy) { + return true + } + + return false +} + +// SetTemplatePolicy gets a reference to the given KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse and assigns it to the TemplatePolicy field. +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse) SetTemplatePolicy(v KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse) { + o.TemplatePolicy = &v +} + +func (o KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.TemplateRegexes) { + toSerialize["TemplateRegexes"] = o.TemplateRegexes + } + if !isNil(o.TemplateDefaults) { + toSerialize["TemplateDefaults"] = o.TemplateDefaults + } + if !isNil(o.TemplatePolicy) { + toSerialize["TemplatePolicy"] = o.TemplatePolicy + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse := _KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse); err == nil { + *o = KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse(varKeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "TemplateRegexes") + delete(additionalProperties, "TemplateDefaults") + delete(additionalProperties, "TemplatePolicy") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse struct { + value *KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse) Get() *KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse) Set(val *KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse(val *KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse) *NullableKeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse { + return &NullableKeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_templates_valid_subject_part_response.go b/v1/api/keyfactor/model_keyfactor_api_models_templates_valid_subject_part_response.go new file mode 100644 index 0000000..01afd72 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_templates_valid_subject_part_response.go @@ -0,0 +1,195 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsTemplatesValidSubjectPartResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsTemplatesValidSubjectPartResponse{} + +// KeyfactorApiModelsTemplatesValidSubjectPartResponse struct for KeyfactorApiModelsTemplatesValidSubjectPartResponse +type KeyfactorApiModelsTemplatesValidSubjectPartResponse struct { + SubjectPart *string `json:"SubjectPart,omitempty"` + SubjectPartName *string `json:"SubjectPartName,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsTemplatesValidSubjectPartResponse KeyfactorApiModelsTemplatesValidSubjectPartResponse + +// NewKeyfactorApiModelsTemplatesValidSubjectPartResponse instantiates a new KeyfactorApiModelsTemplatesValidSubjectPartResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsTemplatesValidSubjectPartResponse() *KeyfactorApiModelsTemplatesValidSubjectPartResponse { + this := KeyfactorApiModelsTemplatesValidSubjectPartResponse{} + return &this +} + +// NewKeyfactorApiModelsTemplatesValidSubjectPartResponseWithDefaults instantiates a new KeyfactorApiModelsTemplatesValidSubjectPartResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsTemplatesValidSubjectPartResponseWithDefaults() *KeyfactorApiModelsTemplatesValidSubjectPartResponse { + this := KeyfactorApiModelsTemplatesValidSubjectPartResponse{} + return &this +} + +// GetSubjectPart returns the SubjectPart field value if set, zero value otherwise. +func (o *KeyfactorApiModelsTemplatesValidSubjectPartResponse) GetSubjectPart() string { + if o == nil || isNil(o.SubjectPart) { + var ret string + return ret + } + return *o.SubjectPart +} + +// GetSubjectPartOk returns a tuple with the SubjectPart field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsTemplatesValidSubjectPartResponse) GetSubjectPartOk() (*string, bool) { + if o == nil || isNil(o.SubjectPart) { + return nil, false + } + return o.SubjectPart, true +} + +// HasSubjectPart returns a boolean if a field has been set. +func (o *KeyfactorApiModelsTemplatesValidSubjectPartResponse) HasSubjectPart() bool { + if o != nil && !isNil(o.SubjectPart) { + return true + } + + return false +} + +// SetSubjectPart gets a reference to the given string and assigns it to the SubjectPart field. +func (o *KeyfactorApiModelsTemplatesValidSubjectPartResponse) SetSubjectPart(v string) { + o.SubjectPart = &v +} + +// GetSubjectPartName returns the SubjectPartName field value if set, zero value otherwise. +func (o *KeyfactorApiModelsTemplatesValidSubjectPartResponse) GetSubjectPartName() string { + if o == nil || isNil(o.SubjectPartName) { + var ret string + return ret + } + return *o.SubjectPartName +} + +// GetSubjectPartNameOk returns a tuple with the SubjectPartName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsTemplatesValidSubjectPartResponse) GetSubjectPartNameOk() (*string, bool) { + if o == nil || isNil(o.SubjectPartName) { + return nil, false + } + return o.SubjectPartName, true +} + +// HasSubjectPartName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsTemplatesValidSubjectPartResponse) HasSubjectPartName() bool { + if o != nil && !isNil(o.SubjectPartName) { + return true + } + + return false +} + +// SetSubjectPartName gets a reference to the given string and assigns it to the SubjectPartName field. +func (o *KeyfactorApiModelsTemplatesValidSubjectPartResponse) SetSubjectPartName(v string) { + o.SubjectPartName = &v +} + +func (o KeyfactorApiModelsTemplatesValidSubjectPartResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsTemplatesValidSubjectPartResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.SubjectPart) { + toSerialize["SubjectPart"] = o.SubjectPart + } + if !isNil(o.SubjectPartName) { + toSerialize["SubjectPartName"] = o.SubjectPartName + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsTemplatesValidSubjectPartResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsTemplatesValidSubjectPartResponse := _KeyfactorApiModelsTemplatesValidSubjectPartResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsTemplatesValidSubjectPartResponse); err == nil { + *o = KeyfactorApiModelsTemplatesValidSubjectPartResponse(varKeyfactorApiModelsTemplatesValidSubjectPartResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "SubjectPart") + delete(additionalProperties, "SubjectPartName") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsTemplatesValidSubjectPartResponse struct { + value *KeyfactorApiModelsTemplatesValidSubjectPartResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsTemplatesValidSubjectPartResponse) Get() *KeyfactorApiModelsTemplatesValidSubjectPartResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsTemplatesValidSubjectPartResponse) Set(val *KeyfactorApiModelsTemplatesValidSubjectPartResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsTemplatesValidSubjectPartResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsTemplatesValidSubjectPartResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsTemplatesValidSubjectPartResponse(val *KeyfactorApiModelsTemplatesValidSubjectPartResponse) *NullableKeyfactorApiModelsTemplatesValidSubjectPartResponse { + return &NullableKeyfactorApiModelsTemplatesValidSubjectPartResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsTemplatesValidSubjectPartResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsTemplatesValidSubjectPartResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_workflows_available_signal_response.go b/v1/api/keyfactor/model_keyfactor_api_models_workflows_available_signal_response.go new file mode 100644 index 0000000..e2164d2 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_workflows_available_signal_response.go @@ -0,0 +1,235 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsWorkflowsAvailableSignalResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsWorkflowsAvailableSignalResponse{} + +// KeyfactorApiModelsWorkflowsAvailableSignalResponse struct for KeyfactorApiModelsWorkflowsAvailableSignalResponse +type KeyfactorApiModelsWorkflowsAvailableSignalResponse struct { + // The name of the signal. + SignalName *string `json:"SignalName,omitempty"` + // The signal Id. + StepSignalId *string `json:"StepSignalId,omitempty"` + // Whether or not the signal has been received. + SignalReceived *bool `json:"SignalReceived,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsWorkflowsAvailableSignalResponse KeyfactorApiModelsWorkflowsAvailableSignalResponse + +// NewKeyfactorApiModelsWorkflowsAvailableSignalResponse instantiates a new KeyfactorApiModelsWorkflowsAvailableSignalResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsWorkflowsAvailableSignalResponse() *KeyfactorApiModelsWorkflowsAvailableSignalResponse { + this := KeyfactorApiModelsWorkflowsAvailableSignalResponse{} + return &this +} + +// NewKeyfactorApiModelsWorkflowsAvailableSignalResponseWithDefaults instantiates a new KeyfactorApiModelsWorkflowsAvailableSignalResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsWorkflowsAvailableSignalResponseWithDefaults() *KeyfactorApiModelsWorkflowsAvailableSignalResponse { + this := KeyfactorApiModelsWorkflowsAvailableSignalResponse{} + return &this +} + +// GetSignalName returns the SignalName field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsAvailableSignalResponse) GetSignalName() string { + if o == nil || isNil(o.SignalName) { + var ret string + return ret + } + return *o.SignalName +} + +// GetSignalNameOk returns a tuple with the SignalName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsAvailableSignalResponse) GetSignalNameOk() (*string, bool) { + if o == nil || isNil(o.SignalName) { + return nil, false + } + return o.SignalName, true +} + +// HasSignalName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsAvailableSignalResponse) HasSignalName() bool { + if o != nil && !isNil(o.SignalName) { + return true + } + + return false +} + +// SetSignalName gets a reference to the given string and assigns it to the SignalName field. +func (o *KeyfactorApiModelsWorkflowsAvailableSignalResponse) SetSignalName(v string) { + o.SignalName = &v +} + +// GetStepSignalId returns the StepSignalId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsAvailableSignalResponse) GetStepSignalId() string { + if o == nil || isNil(o.StepSignalId) { + var ret string + return ret + } + return *o.StepSignalId +} + +// GetStepSignalIdOk returns a tuple with the StepSignalId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsAvailableSignalResponse) GetStepSignalIdOk() (*string, bool) { + if o == nil || isNil(o.StepSignalId) { + return nil, false + } + return o.StepSignalId, true +} + +// HasStepSignalId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsAvailableSignalResponse) HasStepSignalId() bool { + if o != nil && !isNil(o.StepSignalId) { + return true + } + + return false +} + +// SetStepSignalId gets a reference to the given string and assigns it to the StepSignalId field. +func (o *KeyfactorApiModelsWorkflowsAvailableSignalResponse) SetStepSignalId(v string) { + o.StepSignalId = &v +} + +// GetSignalReceived returns the SignalReceived field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsAvailableSignalResponse) GetSignalReceived() bool { + if o == nil || isNil(o.SignalReceived) { + var ret bool + return ret + } + return *o.SignalReceived +} + +// GetSignalReceivedOk returns a tuple with the SignalReceived field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsAvailableSignalResponse) GetSignalReceivedOk() (*bool, bool) { + if o == nil || isNil(o.SignalReceived) { + return nil, false + } + return o.SignalReceived, true +} + +// HasSignalReceived returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsAvailableSignalResponse) HasSignalReceived() bool { + if o != nil && !isNil(o.SignalReceived) { + return true + } + + return false +} + +// SetSignalReceived gets a reference to the given bool and assigns it to the SignalReceived field. +func (o *KeyfactorApiModelsWorkflowsAvailableSignalResponse) SetSignalReceived(v bool) { + o.SignalReceived = &v +} + +func (o KeyfactorApiModelsWorkflowsAvailableSignalResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsWorkflowsAvailableSignalResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.SignalName) { + toSerialize["SignalName"] = o.SignalName + } + if !isNil(o.StepSignalId) { + toSerialize["StepSignalId"] = o.StepSignalId + } + if !isNil(o.SignalReceived) { + toSerialize["SignalReceived"] = o.SignalReceived + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsWorkflowsAvailableSignalResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsWorkflowsAvailableSignalResponse := _KeyfactorApiModelsWorkflowsAvailableSignalResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsWorkflowsAvailableSignalResponse); err == nil { + *o = KeyfactorApiModelsWorkflowsAvailableSignalResponse(varKeyfactorApiModelsWorkflowsAvailableSignalResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "SignalName") + delete(additionalProperties, "StepSignalId") + delete(additionalProperties, "SignalReceived") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsWorkflowsAvailableSignalResponse struct { + value *KeyfactorApiModelsWorkflowsAvailableSignalResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsWorkflowsAvailableSignalResponse) Get() *KeyfactorApiModelsWorkflowsAvailableSignalResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsWorkflowsAvailableSignalResponse) Set(val *KeyfactorApiModelsWorkflowsAvailableSignalResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsWorkflowsAvailableSignalResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsWorkflowsAvailableSignalResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsWorkflowsAvailableSignalResponse(val *KeyfactorApiModelsWorkflowsAvailableSignalResponse) *NullableKeyfactorApiModelsWorkflowsAvailableSignalResponse { + return &NullableKeyfactorApiModelsWorkflowsAvailableSignalResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsWorkflowsAvailableSignalResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsWorkflowsAvailableSignalResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_workflows_available_step_query_response.go b/v1/api/keyfactor/model_keyfactor_api_models_workflows_available_step_query_response.go new file mode 100644 index 0000000..301ab4f --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_workflows_available_step_query_response.go @@ -0,0 +1,309 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsWorkflowsAvailableStepQueryResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsWorkflowsAvailableStepQueryResponse{} + +// KeyfactorApiModelsWorkflowsAvailableStepQueryResponse struct for KeyfactorApiModelsWorkflowsAvailableStepQueryResponse +type KeyfactorApiModelsWorkflowsAvailableStepQueryResponse struct { + // The display name of the step. + DisplayName *string `json:"DisplayName,omitempty"` + // The extension name of the step. + ExtensionName *string `json:"ExtensionName,omitempty"` + // The workflow types which this step can be a part of. + SupportedWorkflowTypes []string `json:"SupportedWorkflowTypes,omitempty"` + ConfigurationParametersDefinition *map[string]KeyfactorApiModelsWorkflowsParameterDefinitionResponse `json:"ConfigurationParametersDefinition,omitempty"` + SignalsDefinition *map[string]KeyfactorApiModelsWorkflowsSignalDefinitionResponse `json:"SignalsDefinition,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsWorkflowsAvailableStepQueryResponse KeyfactorApiModelsWorkflowsAvailableStepQueryResponse + +// NewKeyfactorApiModelsWorkflowsAvailableStepQueryResponse instantiates a new KeyfactorApiModelsWorkflowsAvailableStepQueryResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsWorkflowsAvailableStepQueryResponse() *KeyfactorApiModelsWorkflowsAvailableStepQueryResponse { + this := KeyfactorApiModelsWorkflowsAvailableStepQueryResponse{} + return &this +} + +// NewKeyfactorApiModelsWorkflowsAvailableStepQueryResponseWithDefaults instantiates a new KeyfactorApiModelsWorkflowsAvailableStepQueryResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsWorkflowsAvailableStepQueryResponseWithDefaults() *KeyfactorApiModelsWorkflowsAvailableStepQueryResponse { + this := KeyfactorApiModelsWorkflowsAvailableStepQueryResponse{} + return &this +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsAvailableStepQueryResponse) GetDisplayName() string { + if o == nil || isNil(o.DisplayName) { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsAvailableStepQueryResponse) GetDisplayNameOk() (*string, bool) { + if o == nil || isNil(o.DisplayName) { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsAvailableStepQueryResponse) HasDisplayName() bool { + if o != nil && !isNil(o.DisplayName) { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *KeyfactorApiModelsWorkflowsAvailableStepQueryResponse) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetExtensionName returns the ExtensionName field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsAvailableStepQueryResponse) GetExtensionName() string { + if o == nil || isNil(o.ExtensionName) { + var ret string + return ret + } + return *o.ExtensionName +} + +// GetExtensionNameOk returns a tuple with the ExtensionName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsAvailableStepQueryResponse) GetExtensionNameOk() (*string, bool) { + if o == nil || isNil(o.ExtensionName) { + return nil, false + } + return o.ExtensionName, true +} + +// HasExtensionName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsAvailableStepQueryResponse) HasExtensionName() bool { + if o != nil && !isNil(o.ExtensionName) { + return true + } + + return false +} + +// SetExtensionName gets a reference to the given string and assigns it to the ExtensionName field. +func (o *KeyfactorApiModelsWorkflowsAvailableStepQueryResponse) SetExtensionName(v string) { + o.ExtensionName = &v +} + +// GetSupportedWorkflowTypes returns the SupportedWorkflowTypes field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsAvailableStepQueryResponse) GetSupportedWorkflowTypes() []string { + if o == nil || isNil(o.SupportedWorkflowTypes) { + var ret []string + return ret + } + return o.SupportedWorkflowTypes +} + +// GetSupportedWorkflowTypesOk returns a tuple with the SupportedWorkflowTypes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsAvailableStepQueryResponse) GetSupportedWorkflowTypesOk() ([]string, bool) { + if o == nil || isNil(o.SupportedWorkflowTypes) { + return nil, false + } + return o.SupportedWorkflowTypes, true +} + +// HasSupportedWorkflowTypes returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsAvailableStepQueryResponse) HasSupportedWorkflowTypes() bool { + if o != nil && !isNil(o.SupportedWorkflowTypes) { + return true + } + + return false +} + +// SetSupportedWorkflowTypes gets a reference to the given []string and assigns it to the SupportedWorkflowTypes field. +func (o *KeyfactorApiModelsWorkflowsAvailableStepQueryResponse) SetSupportedWorkflowTypes(v []string) { + o.SupportedWorkflowTypes = v +} + +// GetConfigurationParametersDefinition returns the ConfigurationParametersDefinition field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsAvailableStepQueryResponse) GetConfigurationParametersDefinition() map[string]KeyfactorApiModelsWorkflowsParameterDefinitionResponse { + if o == nil || isNil(o.ConfigurationParametersDefinition) { + var ret map[string]KeyfactorApiModelsWorkflowsParameterDefinitionResponse + return ret + } + return *o.ConfigurationParametersDefinition +} + +// GetConfigurationParametersDefinitionOk returns a tuple with the ConfigurationParametersDefinition field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsAvailableStepQueryResponse) GetConfigurationParametersDefinitionOk() (*map[string]KeyfactorApiModelsWorkflowsParameterDefinitionResponse, bool) { + if o == nil || isNil(o.ConfigurationParametersDefinition) { + return nil, false + } + return o.ConfigurationParametersDefinition, true +} + +// HasConfigurationParametersDefinition returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsAvailableStepQueryResponse) HasConfigurationParametersDefinition() bool { + if o != nil && !isNil(o.ConfigurationParametersDefinition) { + return true + } + + return false +} + +// SetConfigurationParametersDefinition gets a reference to the given map[string]KeyfactorApiModelsWorkflowsParameterDefinitionResponse and assigns it to the ConfigurationParametersDefinition field. +func (o *KeyfactorApiModelsWorkflowsAvailableStepQueryResponse) SetConfigurationParametersDefinition(v map[string]KeyfactorApiModelsWorkflowsParameterDefinitionResponse) { + o.ConfigurationParametersDefinition = &v +} + +// GetSignalsDefinition returns the SignalsDefinition field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsAvailableStepQueryResponse) GetSignalsDefinition() map[string]KeyfactorApiModelsWorkflowsSignalDefinitionResponse { + if o == nil || isNil(o.SignalsDefinition) { + var ret map[string]KeyfactorApiModelsWorkflowsSignalDefinitionResponse + return ret + } + return *o.SignalsDefinition +} + +// GetSignalsDefinitionOk returns a tuple with the SignalsDefinition field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsAvailableStepQueryResponse) GetSignalsDefinitionOk() (*map[string]KeyfactorApiModelsWorkflowsSignalDefinitionResponse, bool) { + if o == nil || isNil(o.SignalsDefinition) { + return nil, false + } + return o.SignalsDefinition, true +} + +// HasSignalsDefinition returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsAvailableStepQueryResponse) HasSignalsDefinition() bool { + if o != nil && !isNil(o.SignalsDefinition) { + return true + } + + return false +} + +// SetSignalsDefinition gets a reference to the given map[string]KeyfactorApiModelsWorkflowsSignalDefinitionResponse and assigns it to the SignalsDefinition field. +func (o *KeyfactorApiModelsWorkflowsAvailableStepQueryResponse) SetSignalsDefinition(v map[string]KeyfactorApiModelsWorkflowsSignalDefinitionResponse) { + o.SignalsDefinition = &v +} + +func (o KeyfactorApiModelsWorkflowsAvailableStepQueryResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsWorkflowsAvailableStepQueryResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.DisplayName) { + toSerialize["DisplayName"] = o.DisplayName + } + if !isNil(o.ExtensionName) { + toSerialize["ExtensionName"] = o.ExtensionName + } + if !isNil(o.SupportedWorkflowTypes) { + toSerialize["SupportedWorkflowTypes"] = o.SupportedWorkflowTypes + } + if !isNil(o.ConfigurationParametersDefinition) { + toSerialize["ConfigurationParametersDefinition"] = o.ConfigurationParametersDefinition + } + if !isNil(o.SignalsDefinition) { + toSerialize["SignalsDefinition"] = o.SignalsDefinition + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsWorkflowsAvailableStepQueryResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsWorkflowsAvailableStepQueryResponse := _KeyfactorApiModelsWorkflowsAvailableStepQueryResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsWorkflowsAvailableStepQueryResponse); err == nil { + *o = KeyfactorApiModelsWorkflowsAvailableStepQueryResponse(varKeyfactorApiModelsWorkflowsAvailableStepQueryResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "DisplayName") + delete(additionalProperties, "ExtensionName") + delete(additionalProperties, "SupportedWorkflowTypes") + delete(additionalProperties, "ConfigurationParametersDefinition") + delete(additionalProperties, "SignalsDefinition") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsWorkflowsAvailableStepQueryResponse struct { + value *KeyfactorApiModelsWorkflowsAvailableStepQueryResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsWorkflowsAvailableStepQueryResponse) Get() *KeyfactorApiModelsWorkflowsAvailableStepQueryResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsWorkflowsAvailableStepQueryResponse) Set(val *KeyfactorApiModelsWorkflowsAvailableStepQueryResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsWorkflowsAvailableStepQueryResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsWorkflowsAvailableStepQueryResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsWorkflowsAvailableStepQueryResponse(val *KeyfactorApiModelsWorkflowsAvailableStepQueryResponse) *NullableKeyfactorApiModelsWorkflowsAvailableStepQueryResponse { + return &NullableKeyfactorApiModelsWorkflowsAvailableStepQueryResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsWorkflowsAvailableStepQueryResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsWorkflowsAvailableStepQueryResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_workflows_available_step_response.go b/v1/api/keyfactor/model_keyfactor_api_models_workflows_available_step_response.go new file mode 100644 index 0000000..9c9e51d --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_workflows_available_step_response.go @@ -0,0 +1,309 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsWorkflowsAvailableStepResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsWorkflowsAvailableStepResponse{} + +// KeyfactorApiModelsWorkflowsAvailableStepResponse struct for KeyfactorApiModelsWorkflowsAvailableStepResponse +type KeyfactorApiModelsWorkflowsAvailableStepResponse struct { + // The display name of the step. + DisplayName *string `json:"DisplayName,omitempty"` + // The name of the extension. + ExtensionName *string `json:"ExtensionName,omitempty"` + // The possible outputs of the step. + Outputs []string `json:"Outputs,omitempty"` + ConfigurationParametersDefinition *map[string]KeyfactorApiModelsWorkflowsParameterDefinitionResponse `json:"ConfigurationParametersDefinition,omitempty"` + SignalsDefinition *map[string]KeyfactorApiModelsWorkflowsSignalDefinitionResponse `json:"SignalsDefinition,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsWorkflowsAvailableStepResponse KeyfactorApiModelsWorkflowsAvailableStepResponse + +// NewKeyfactorApiModelsWorkflowsAvailableStepResponse instantiates a new KeyfactorApiModelsWorkflowsAvailableStepResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsWorkflowsAvailableStepResponse() *KeyfactorApiModelsWorkflowsAvailableStepResponse { + this := KeyfactorApiModelsWorkflowsAvailableStepResponse{} + return &this +} + +// NewKeyfactorApiModelsWorkflowsAvailableStepResponseWithDefaults instantiates a new KeyfactorApiModelsWorkflowsAvailableStepResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsWorkflowsAvailableStepResponseWithDefaults() *KeyfactorApiModelsWorkflowsAvailableStepResponse { + this := KeyfactorApiModelsWorkflowsAvailableStepResponse{} + return &this +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsAvailableStepResponse) GetDisplayName() string { + if o == nil || isNil(o.DisplayName) { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsAvailableStepResponse) GetDisplayNameOk() (*string, bool) { + if o == nil || isNil(o.DisplayName) { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsAvailableStepResponse) HasDisplayName() bool { + if o != nil && !isNil(o.DisplayName) { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *KeyfactorApiModelsWorkflowsAvailableStepResponse) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetExtensionName returns the ExtensionName field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsAvailableStepResponse) GetExtensionName() string { + if o == nil || isNil(o.ExtensionName) { + var ret string + return ret + } + return *o.ExtensionName +} + +// GetExtensionNameOk returns a tuple with the ExtensionName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsAvailableStepResponse) GetExtensionNameOk() (*string, bool) { + if o == nil || isNil(o.ExtensionName) { + return nil, false + } + return o.ExtensionName, true +} + +// HasExtensionName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsAvailableStepResponse) HasExtensionName() bool { + if o != nil && !isNil(o.ExtensionName) { + return true + } + + return false +} + +// SetExtensionName gets a reference to the given string and assigns it to the ExtensionName field. +func (o *KeyfactorApiModelsWorkflowsAvailableStepResponse) SetExtensionName(v string) { + o.ExtensionName = &v +} + +// GetOutputs returns the Outputs field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsAvailableStepResponse) GetOutputs() []string { + if o == nil || isNil(o.Outputs) { + var ret []string + return ret + } + return o.Outputs +} + +// GetOutputsOk returns a tuple with the Outputs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsAvailableStepResponse) GetOutputsOk() ([]string, bool) { + if o == nil || isNil(o.Outputs) { + return nil, false + } + return o.Outputs, true +} + +// HasOutputs returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsAvailableStepResponse) HasOutputs() bool { + if o != nil && !isNil(o.Outputs) { + return true + } + + return false +} + +// SetOutputs gets a reference to the given []string and assigns it to the Outputs field. +func (o *KeyfactorApiModelsWorkflowsAvailableStepResponse) SetOutputs(v []string) { + o.Outputs = v +} + +// GetConfigurationParametersDefinition returns the ConfigurationParametersDefinition field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsAvailableStepResponse) GetConfigurationParametersDefinition() map[string]KeyfactorApiModelsWorkflowsParameterDefinitionResponse { + if o == nil || isNil(o.ConfigurationParametersDefinition) { + var ret map[string]KeyfactorApiModelsWorkflowsParameterDefinitionResponse + return ret + } + return *o.ConfigurationParametersDefinition +} + +// GetConfigurationParametersDefinitionOk returns a tuple with the ConfigurationParametersDefinition field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsAvailableStepResponse) GetConfigurationParametersDefinitionOk() (*map[string]KeyfactorApiModelsWorkflowsParameterDefinitionResponse, bool) { + if o == nil || isNil(o.ConfigurationParametersDefinition) { + return nil, false + } + return o.ConfigurationParametersDefinition, true +} + +// HasConfigurationParametersDefinition returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsAvailableStepResponse) HasConfigurationParametersDefinition() bool { + if o != nil && !isNil(o.ConfigurationParametersDefinition) { + return true + } + + return false +} + +// SetConfigurationParametersDefinition gets a reference to the given map[string]KeyfactorApiModelsWorkflowsParameterDefinitionResponse and assigns it to the ConfigurationParametersDefinition field. +func (o *KeyfactorApiModelsWorkflowsAvailableStepResponse) SetConfigurationParametersDefinition(v map[string]KeyfactorApiModelsWorkflowsParameterDefinitionResponse) { + o.ConfigurationParametersDefinition = &v +} + +// GetSignalsDefinition returns the SignalsDefinition field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsAvailableStepResponse) GetSignalsDefinition() map[string]KeyfactorApiModelsWorkflowsSignalDefinitionResponse { + if o == nil || isNil(o.SignalsDefinition) { + var ret map[string]KeyfactorApiModelsWorkflowsSignalDefinitionResponse + return ret + } + return *o.SignalsDefinition +} + +// GetSignalsDefinitionOk returns a tuple with the SignalsDefinition field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsAvailableStepResponse) GetSignalsDefinitionOk() (*map[string]KeyfactorApiModelsWorkflowsSignalDefinitionResponse, bool) { + if o == nil || isNil(o.SignalsDefinition) { + return nil, false + } + return o.SignalsDefinition, true +} + +// HasSignalsDefinition returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsAvailableStepResponse) HasSignalsDefinition() bool { + if o != nil && !isNil(o.SignalsDefinition) { + return true + } + + return false +} + +// SetSignalsDefinition gets a reference to the given map[string]KeyfactorApiModelsWorkflowsSignalDefinitionResponse and assigns it to the SignalsDefinition field. +func (o *KeyfactorApiModelsWorkflowsAvailableStepResponse) SetSignalsDefinition(v map[string]KeyfactorApiModelsWorkflowsSignalDefinitionResponse) { + o.SignalsDefinition = &v +} + +func (o KeyfactorApiModelsWorkflowsAvailableStepResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsWorkflowsAvailableStepResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.DisplayName) { + toSerialize["DisplayName"] = o.DisplayName + } + if !isNil(o.ExtensionName) { + toSerialize["ExtensionName"] = o.ExtensionName + } + if !isNil(o.Outputs) { + toSerialize["Outputs"] = o.Outputs + } + if !isNil(o.ConfigurationParametersDefinition) { + toSerialize["ConfigurationParametersDefinition"] = o.ConfigurationParametersDefinition + } + if !isNil(o.SignalsDefinition) { + toSerialize["SignalsDefinition"] = o.SignalsDefinition + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsWorkflowsAvailableStepResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsWorkflowsAvailableStepResponse := _KeyfactorApiModelsWorkflowsAvailableStepResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsWorkflowsAvailableStepResponse); err == nil { + *o = KeyfactorApiModelsWorkflowsAvailableStepResponse(varKeyfactorApiModelsWorkflowsAvailableStepResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "DisplayName") + delete(additionalProperties, "ExtensionName") + delete(additionalProperties, "Outputs") + delete(additionalProperties, "ConfigurationParametersDefinition") + delete(additionalProperties, "SignalsDefinition") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsWorkflowsAvailableStepResponse struct { + value *KeyfactorApiModelsWorkflowsAvailableStepResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsWorkflowsAvailableStepResponse) Get() *KeyfactorApiModelsWorkflowsAvailableStepResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsWorkflowsAvailableStepResponse) Set(val *KeyfactorApiModelsWorkflowsAvailableStepResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsWorkflowsAvailableStepResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsWorkflowsAvailableStepResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsWorkflowsAvailableStepResponse(val *KeyfactorApiModelsWorkflowsAvailableStepResponse) *NullableKeyfactorApiModelsWorkflowsAvailableStepResponse { + return &NullableKeyfactorApiModelsWorkflowsAvailableStepResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsWorkflowsAvailableStepResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsWorkflowsAvailableStepResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_workflows_condition_configuration_request.go b/v1/api/keyfactor/model_keyfactor_api_models_workflows_condition_configuration_request.go new file mode 100644 index 0000000..bc844bf --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_workflows_condition_configuration_request.go @@ -0,0 +1,159 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsWorkflowsConditionConfigurationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsWorkflowsConditionConfigurationRequest{} + +// KeyfactorApiModelsWorkflowsConditionConfigurationRequest Information about the configuration of a workflow condition. +type KeyfactorApiModelsWorkflowsConditionConfigurationRequest struct { + // The value to compare to true when evaluating conditions. + Value *string `json:"Value,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsWorkflowsConditionConfigurationRequest KeyfactorApiModelsWorkflowsConditionConfigurationRequest + +// NewKeyfactorApiModelsWorkflowsConditionConfigurationRequest instantiates a new KeyfactorApiModelsWorkflowsConditionConfigurationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsWorkflowsConditionConfigurationRequest() *KeyfactorApiModelsWorkflowsConditionConfigurationRequest { + this := KeyfactorApiModelsWorkflowsConditionConfigurationRequest{} + return &this +} + +// NewKeyfactorApiModelsWorkflowsConditionConfigurationRequestWithDefaults instantiates a new KeyfactorApiModelsWorkflowsConditionConfigurationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsWorkflowsConditionConfigurationRequestWithDefaults() *KeyfactorApiModelsWorkflowsConditionConfigurationRequest { + this := KeyfactorApiModelsWorkflowsConditionConfigurationRequest{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsConditionConfigurationRequest) GetValue() string { + if o == nil || isNil(o.Value) { + var ret string + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsConditionConfigurationRequest) GetValueOk() (*string, bool) { + if o == nil || isNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsConditionConfigurationRequest) HasValue() bool { + if o != nil && !isNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given string and assigns it to the Value field. +func (o *KeyfactorApiModelsWorkflowsConditionConfigurationRequest) SetValue(v string) { + o.Value = &v +} + +func (o KeyfactorApiModelsWorkflowsConditionConfigurationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsWorkflowsConditionConfigurationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Value) { + toSerialize["Value"] = o.Value + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsWorkflowsConditionConfigurationRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsWorkflowsConditionConfigurationRequest := _KeyfactorApiModelsWorkflowsConditionConfigurationRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsWorkflowsConditionConfigurationRequest); err == nil { + *o = KeyfactorApiModelsWorkflowsConditionConfigurationRequest(varKeyfactorApiModelsWorkflowsConditionConfigurationRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Value") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsWorkflowsConditionConfigurationRequest struct { + value *KeyfactorApiModelsWorkflowsConditionConfigurationRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsWorkflowsConditionConfigurationRequest) Get() *KeyfactorApiModelsWorkflowsConditionConfigurationRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsWorkflowsConditionConfigurationRequest) Set(val *KeyfactorApiModelsWorkflowsConditionConfigurationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsWorkflowsConditionConfigurationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsWorkflowsConditionConfigurationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsWorkflowsConditionConfigurationRequest(val *KeyfactorApiModelsWorkflowsConditionConfigurationRequest) *NullableKeyfactorApiModelsWorkflowsConditionConfigurationRequest { + return &NullableKeyfactorApiModelsWorkflowsConditionConfigurationRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsWorkflowsConditionConfigurationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsWorkflowsConditionConfigurationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_workflows_condition_configuration_response.go b/v1/api/keyfactor/model_keyfactor_api_models_workflows_condition_configuration_response.go new file mode 100644 index 0000000..6de342e --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_workflows_condition_configuration_response.go @@ -0,0 +1,197 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsWorkflowsConditionConfigurationResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsWorkflowsConditionConfigurationResponse{} + +// KeyfactorApiModelsWorkflowsConditionConfigurationResponse Information about the configuration of a workflow condition. +type KeyfactorApiModelsWorkflowsConditionConfigurationResponse struct { + // The Id of the condition. + Id *string `json:"Id,omitempty"` + // The value to compare to. This value will be compared to a true value. + Value *string `json:"Value,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsWorkflowsConditionConfigurationResponse KeyfactorApiModelsWorkflowsConditionConfigurationResponse + +// NewKeyfactorApiModelsWorkflowsConditionConfigurationResponse instantiates a new KeyfactorApiModelsWorkflowsConditionConfigurationResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsWorkflowsConditionConfigurationResponse() *KeyfactorApiModelsWorkflowsConditionConfigurationResponse { + this := KeyfactorApiModelsWorkflowsConditionConfigurationResponse{} + return &this +} + +// NewKeyfactorApiModelsWorkflowsConditionConfigurationResponseWithDefaults instantiates a new KeyfactorApiModelsWorkflowsConditionConfigurationResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsWorkflowsConditionConfigurationResponseWithDefaults() *KeyfactorApiModelsWorkflowsConditionConfigurationResponse { + this := KeyfactorApiModelsWorkflowsConditionConfigurationResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsConditionConfigurationResponse) GetId() string { + if o == nil || isNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsConditionConfigurationResponse) GetIdOk() (*string, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsConditionConfigurationResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *KeyfactorApiModelsWorkflowsConditionConfigurationResponse) SetId(v string) { + o.Id = &v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsConditionConfigurationResponse) GetValue() string { + if o == nil || isNil(o.Value) { + var ret string + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsConditionConfigurationResponse) GetValueOk() (*string, bool) { + if o == nil || isNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsConditionConfigurationResponse) HasValue() bool { + if o != nil && !isNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given string and assigns it to the Value field. +func (o *KeyfactorApiModelsWorkflowsConditionConfigurationResponse) SetValue(v string) { + o.Value = &v +} + +func (o KeyfactorApiModelsWorkflowsConditionConfigurationResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsWorkflowsConditionConfigurationResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.Value) { + toSerialize["Value"] = o.Value + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsWorkflowsConditionConfigurationResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsWorkflowsConditionConfigurationResponse := _KeyfactorApiModelsWorkflowsConditionConfigurationResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsWorkflowsConditionConfigurationResponse); err == nil { + *o = KeyfactorApiModelsWorkflowsConditionConfigurationResponse(varKeyfactorApiModelsWorkflowsConditionConfigurationResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "Value") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsWorkflowsConditionConfigurationResponse struct { + value *KeyfactorApiModelsWorkflowsConditionConfigurationResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsWorkflowsConditionConfigurationResponse) Get() *KeyfactorApiModelsWorkflowsConditionConfigurationResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsWorkflowsConditionConfigurationResponse) Set(val *KeyfactorApiModelsWorkflowsConditionConfigurationResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsWorkflowsConditionConfigurationResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsWorkflowsConditionConfigurationResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsWorkflowsConditionConfigurationResponse(val *KeyfactorApiModelsWorkflowsConditionConfigurationResponse) *NullableKeyfactorApiModelsWorkflowsConditionConfigurationResponse { + return &NullableKeyfactorApiModelsWorkflowsConditionConfigurationResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsWorkflowsConditionConfigurationResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsWorkflowsConditionConfigurationResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_workflows_definition_create_request.go b/v1/api/keyfactor/model_keyfactor_api_models_workflows_definition_create_request.go new file mode 100644 index 0000000..88dc0e0 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_workflows_definition_create_request.go @@ -0,0 +1,273 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsWorkflowsDefinitionCreateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsWorkflowsDefinitionCreateRequest{} + +// KeyfactorApiModelsWorkflowsDefinitionCreateRequest struct for KeyfactorApiModelsWorkflowsDefinitionCreateRequest +type KeyfactorApiModelsWorkflowsDefinitionCreateRequest struct { + // Display name of the Definition + DisplayName *string `json:"DisplayName,omitempty"` + // Description of the Definition + Description *string `json:"Description,omitempty"` + // Key to be used to look up definition when starting a new workflow. For enrollment workflowTypes, this should be a template + Key *string `json:"Key,omitempty"` + // The Type of Workflow + WorkflowType *string `json:"WorkflowType,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsWorkflowsDefinitionCreateRequest KeyfactorApiModelsWorkflowsDefinitionCreateRequest + +// NewKeyfactorApiModelsWorkflowsDefinitionCreateRequest instantiates a new KeyfactorApiModelsWorkflowsDefinitionCreateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsWorkflowsDefinitionCreateRequest() *KeyfactorApiModelsWorkflowsDefinitionCreateRequest { + this := KeyfactorApiModelsWorkflowsDefinitionCreateRequest{} + return &this +} + +// NewKeyfactorApiModelsWorkflowsDefinitionCreateRequestWithDefaults instantiates a new KeyfactorApiModelsWorkflowsDefinitionCreateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsWorkflowsDefinitionCreateRequestWithDefaults() *KeyfactorApiModelsWorkflowsDefinitionCreateRequest { + this := KeyfactorApiModelsWorkflowsDefinitionCreateRequest{} + return &this +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsDefinitionCreateRequest) GetDisplayName() string { + if o == nil || isNil(o.DisplayName) { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionCreateRequest) GetDisplayNameOk() (*string, bool) { + if o == nil || isNil(o.DisplayName) { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionCreateRequest) HasDisplayName() bool { + if o != nil && !isNil(o.DisplayName) { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *KeyfactorApiModelsWorkflowsDefinitionCreateRequest) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsDefinitionCreateRequest) GetDescription() string { + if o == nil || isNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionCreateRequest) GetDescriptionOk() (*string, bool) { + if o == nil || isNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionCreateRequest) HasDescription() bool { + if o != nil && !isNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *KeyfactorApiModelsWorkflowsDefinitionCreateRequest) SetDescription(v string) { + o.Description = &v +} + +// GetKey returns the Key field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsDefinitionCreateRequest) GetKey() string { + if o == nil || isNil(o.Key) { + var ret string + return ret + } + return *o.Key +} + +// GetKeyOk returns a tuple with the Key field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionCreateRequest) GetKeyOk() (*string, bool) { + if o == nil || isNil(o.Key) { + return nil, false + } + return o.Key, true +} + +// HasKey returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionCreateRequest) HasKey() bool { + if o != nil && !isNil(o.Key) { + return true + } + + return false +} + +// SetKey gets a reference to the given string and assigns it to the Key field. +func (o *KeyfactorApiModelsWorkflowsDefinitionCreateRequest) SetKey(v string) { + o.Key = &v +} + +// GetWorkflowType returns the WorkflowType field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsDefinitionCreateRequest) GetWorkflowType() string { + if o == nil || isNil(o.WorkflowType) { + var ret string + return ret + } + return *o.WorkflowType +} + +// GetWorkflowTypeOk returns a tuple with the WorkflowType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionCreateRequest) GetWorkflowTypeOk() (*string, bool) { + if o == nil || isNil(o.WorkflowType) { + return nil, false + } + return o.WorkflowType, true +} + +// HasWorkflowType returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionCreateRequest) HasWorkflowType() bool { + if o != nil && !isNil(o.WorkflowType) { + return true + } + + return false +} + +// SetWorkflowType gets a reference to the given string and assigns it to the WorkflowType field. +func (o *KeyfactorApiModelsWorkflowsDefinitionCreateRequest) SetWorkflowType(v string) { + o.WorkflowType = &v +} + +func (o KeyfactorApiModelsWorkflowsDefinitionCreateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsWorkflowsDefinitionCreateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.DisplayName) { + toSerialize["DisplayName"] = o.DisplayName + } + if !isNil(o.Description) { + toSerialize["Description"] = o.Description + } + if !isNil(o.Key) { + toSerialize["Key"] = o.Key + } + if !isNil(o.WorkflowType) { + toSerialize["WorkflowType"] = o.WorkflowType + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsWorkflowsDefinitionCreateRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsWorkflowsDefinitionCreateRequest := _KeyfactorApiModelsWorkflowsDefinitionCreateRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsWorkflowsDefinitionCreateRequest); err == nil { + *o = KeyfactorApiModelsWorkflowsDefinitionCreateRequest(varKeyfactorApiModelsWorkflowsDefinitionCreateRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "DisplayName") + delete(additionalProperties, "Description") + delete(additionalProperties, "Key") + delete(additionalProperties, "WorkflowType") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsWorkflowsDefinitionCreateRequest struct { + value *KeyfactorApiModelsWorkflowsDefinitionCreateRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsWorkflowsDefinitionCreateRequest) Get() *KeyfactorApiModelsWorkflowsDefinitionCreateRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsWorkflowsDefinitionCreateRequest) Set(val *KeyfactorApiModelsWorkflowsDefinitionCreateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsWorkflowsDefinitionCreateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsWorkflowsDefinitionCreateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsWorkflowsDefinitionCreateRequest(val *KeyfactorApiModelsWorkflowsDefinitionCreateRequest) *NullableKeyfactorApiModelsWorkflowsDefinitionCreateRequest { + return &NullableKeyfactorApiModelsWorkflowsDefinitionCreateRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsWorkflowsDefinitionCreateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsWorkflowsDefinitionCreateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_workflows_definition_query_response.go b/v1/api/keyfactor/model_keyfactor_api_models_workflows_definition_query_response.go new file mode 100644 index 0000000..fdeeb7e --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_workflows_definition_query_response.go @@ -0,0 +1,380 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsWorkflowsDefinitionQueryResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsWorkflowsDefinitionQueryResponse{} + +// KeyfactorApiModelsWorkflowsDefinitionQueryResponse struct for KeyfactorApiModelsWorkflowsDefinitionQueryResponse +type KeyfactorApiModelsWorkflowsDefinitionQueryResponse struct { + Id *string `json:"Id,omitempty"` + DisplayName *string `json:"DisplayName,omitempty"` + Key *string `json:"Key,omitempty"` + KeyDisplayName *string `json:"KeyDisplayName,omitempty"` + WorkflowType *string `json:"WorkflowType,omitempty"` + DraftVersion *int32 `json:"DraftVersion,omitempty"` + PublishedVersion *int32 `json:"PublishedVersion,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsWorkflowsDefinitionQueryResponse KeyfactorApiModelsWorkflowsDefinitionQueryResponse + +// NewKeyfactorApiModelsWorkflowsDefinitionQueryResponse instantiates a new KeyfactorApiModelsWorkflowsDefinitionQueryResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsWorkflowsDefinitionQueryResponse() *KeyfactorApiModelsWorkflowsDefinitionQueryResponse { + this := KeyfactorApiModelsWorkflowsDefinitionQueryResponse{} + return &this +} + +// NewKeyfactorApiModelsWorkflowsDefinitionQueryResponseWithDefaults instantiates a new KeyfactorApiModelsWorkflowsDefinitionQueryResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsWorkflowsDefinitionQueryResponseWithDefaults() *KeyfactorApiModelsWorkflowsDefinitionQueryResponse { + this := KeyfactorApiModelsWorkflowsDefinitionQueryResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) GetId() string { + if o == nil || isNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) GetIdOk() (*string, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) SetId(v string) { + o.Id = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) GetDisplayName() string { + if o == nil || isNil(o.DisplayName) { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) GetDisplayNameOk() (*string, bool) { + if o == nil || isNil(o.DisplayName) { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) HasDisplayName() bool { + if o != nil && !isNil(o.DisplayName) { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetKey returns the Key field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) GetKey() string { + if o == nil || isNil(o.Key) { + var ret string + return ret + } + return *o.Key +} + +// GetKeyOk returns a tuple with the Key field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) GetKeyOk() (*string, bool) { + if o == nil || isNil(o.Key) { + return nil, false + } + return o.Key, true +} + +// HasKey returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) HasKey() bool { + if o != nil && !isNil(o.Key) { + return true + } + + return false +} + +// SetKey gets a reference to the given string and assigns it to the Key field. +func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) SetKey(v string) { + o.Key = &v +} + +// GetKeyDisplayName returns the KeyDisplayName field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) GetKeyDisplayName() string { + if o == nil || isNil(o.KeyDisplayName) { + var ret string + return ret + } + return *o.KeyDisplayName +} + +// GetKeyDisplayNameOk returns a tuple with the KeyDisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) GetKeyDisplayNameOk() (*string, bool) { + if o == nil || isNil(o.KeyDisplayName) { + return nil, false + } + return o.KeyDisplayName, true +} + +// HasKeyDisplayName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) HasKeyDisplayName() bool { + if o != nil && !isNil(o.KeyDisplayName) { + return true + } + + return false +} + +// SetKeyDisplayName gets a reference to the given string and assigns it to the KeyDisplayName field. +func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) SetKeyDisplayName(v string) { + o.KeyDisplayName = &v +} + +// GetWorkflowType returns the WorkflowType field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) GetWorkflowType() string { + if o == nil || isNil(o.WorkflowType) { + var ret string + return ret + } + return *o.WorkflowType +} + +// GetWorkflowTypeOk returns a tuple with the WorkflowType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) GetWorkflowTypeOk() (*string, bool) { + if o == nil || isNil(o.WorkflowType) { + return nil, false + } + return o.WorkflowType, true +} + +// HasWorkflowType returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) HasWorkflowType() bool { + if o != nil && !isNil(o.WorkflowType) { + return true + } + + return false +} + +// SetWorkflowType gets a reference to the given string and assigns it to the WorkflowType field. +func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) SetWorkflowType(v string) { + o.WorkflowType = &v +} + +// GetDraftVersion returns the DraftVersion field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) GetDraftVersion() int32 { + if o == nil || isNil(o.DraftVersion) { + var ret int32 + return ret + } + return *o.DraftVersion +} + +// GetDraftVersionOk returns a tuple with the DraftVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) GetDraftVersionOk() (*int32, bool) { + if o == nil || isNil(o.DraftVersion) { + return nil, false + } + return o.DraftVersion, true +} + +// HasDraftVersion returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) HasDraftVersion() bool { + if o != nil && !isNil(o.DraftVersion) { + return true + } + + return false +} + +// SetDraftVersion gets a reference to the given int32 and assigns it to the DraftVersion field. +func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) SetDraftVersion(v int32) { + o.DraftVersion = &v +} + +// GetPublishedVersion returns the PublishedVersion field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) GetPublishedVersion() int32 { + if o == nil || isNil(o.PublishedVersion) { + var ret int32 + return ret + } + return *o.PublishedVersion +} + +// GetPublishedVersionOk returns a tuple with the PublishedVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) GetPublishedVersionOk() (*int32, bool) { + if o == nil || isNil(o.PublishedVersion) { + return nil, false + } + return o.PublishedVersion, true +} + +// HasPublishedVersion returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) HasPublishedVersion() bool { + if o != nil && !isNil(o.PublishedVersion) { + return true + } + + return false +} + +// SetPublishedVersion gets a reference to the given int32 and assigns it to the PublishedVersion field. +func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) SetPublishedVersion(v int32) { + o.PublishedVersion = &v +} + +func (o KeyfactorApiModelsWorkflowsDefinitionQueryResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsWorkflowsDefinitionQueryResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.DisplayName) { + toSerialize["DisplayName"] = o.DisplayName + } + if !isNil(o.Key) { + toSerialize["Key"] = o.Key + } + if !isNil(o.KeyDisplayName) { + toSerialize["KeyDisplayName"] = o.KeyDisplayName + } + if !isNil(o.WorkflowType) { + toSerialize["WorkflowType"] = o.WorkflowType + } + if !isNil(o.DraftVersion) { + toSerialize["DraftVersion"] = o.DraftVersion + } + if !isNil(o.PublishedVersion) { + toSerialize["PublishedVersion"] = o.PublishedVersion + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsWorkflowsDefinitionQueryResponse := _KeyfactorApiModelsWorkflowsDefinitionQueryResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsWorkflowsDefinitionQueryResponse); err == nil { + *o = KeyfactorApiModelsWorkflowsDefinitionQueryResponse(varKeyfactorApiModelsWorkflowsDefinitionQueryResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "DisplayName") + delete(additionalProperties, "Key") + delete(additionalProperties, "KeyDisplayName") + delete(additionalProperties, "WorkflowType") + delete(additionalProperties, "DraftVersion") + delete(additionalProperties, "PublishedVersion") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsWorkflowsDefinitionQueryResponse struct { + value *KeyfactorApiModelsWorkflowsDefinitionQueryResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsWorkflowsDefinitionQueryResponse) Get() *KeyfactorApiModelsWorkflowsDefinitionQueryResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsWorkflowsDefinitionQueryResponse) Set(val *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsWorkflowsDefinitionQueryResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsWorkflowsDefinitionQueryResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsWorkflowsDefinitionQueryResponse(val *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) *NullableKeyfactorApiModelsWorkflowsDefinitionQueryResponse { + return &NullableKeyfactorApiModelsWorkflowsDefinitionQueryResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsWorkflowsDefinitionQueryResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsWorkflowsDefinitionQueryResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_workflows_definition_response.go b/v1/api/keyfactor/model_keyfactor_api_models_workflows_definition_response.go new file mode 100644 index 0000000..39779a0 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_workflows_definition_response.go @@ -0,0 +1,491 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsWorkflowsDefinitionResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsWorkflowsDefinitionResponse{} + +// KeyfactorApiModelsWorkflowsDefinitionResponse struct for KeyfactorApiModelsWorkflowsDefinitionResponse +type KeyfactorApiModelsWorkflowsDefinitionResponse struct { + Id *string `json:"Id,omitempty"` + DisplayName *string `json:"DisplayName,omitempty"` + Description *string `json:"Description,omitempty"` + Key *string `json:"Key,omitempty"` + KeyDisplayName *string `json:"KeyDisplayName,omitempty"` + IsPublished *bool `json:"IsPublished,omitempty"` + WorkflowType *string `json:"WorkflowType,omitempty"` + Steps []KeyfactorApiModelsWorkflowsDefinitionStepResponse `json:"Steps,omitempty"` + DraftVersion *int32 `json:"DraftVersion,omitempty"` + PublishedVersion *int32 `json:"PublishedVersion,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsWorkflowsDefinitionResponse KeyfactorApiModelsWorkflowsDefinitionResponse + +// NewKeyfactorApiModelsWorkflowsDefinitionResponse instantiates a new KeyfactorApiModelsWorkflowsDefinitionResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsWorkflowsDefinitionResponse() *KeyfactorApiModelsWorkflowsDefinitionResponse { + this := KeyfactorApiModelsWorkflowsDefinitionResponse{} + return &this +} + +// NewKeyfactorApiModelsWorkflowsDefinitionResponseWithDefaults instantiates a new KeyfactorApiModelsWorkflowsDefinitionResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsWorkflowsDefinitionResponseWithDefaults() *KeyfactorApiModelsWorkflowsDefinitionResponse { + this := KeyfactorApiModelsWorkflowsDefinitionResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) GetId() string { + if o == nil || isNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) GetIdOk() (*string, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) SetId(v string) { + o.Id = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) GetDisplayName() string { + if o == nil || isNil(o.DisplayName) { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) GetDisplayNameOk() (*string, bool) { + if o == nil || isNil(o.DisplayName) { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) HasDisplayName() bool { + if o != nil && !isNil(o.DisplayName) { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) GetDescription() string { + if o == nil || isNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) GetDescriptionOk() (*string, bool) { + if o == nil || isNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) HasDescription() bool { + if o != nil && !isNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) SetDescription(v string) { + o.Description = &v +} + +// GetKey returns the Key field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) GetKey() string { + if o == nil || isNil(o.Key) { + var ret string + return ret + } + return *o.Key +} + +// GetKeyOk returns a tuple with the Key field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) GetKeyOk() (*string, bool) { + if o == nil || isNil(o.Key) { + return nil, false + } + return o.Key, true +} + +// HasKey returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) HasKey() bool { + if o != nil && !isNil(o.Key) { + return true + } + + return false +} + +// SetKey gets a reference to the given string and assigns it to the Key field. +func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) SetKey(v string) { + o.Key = &v +} + +// GetKeyDisplayName returns the KeyDisplayName field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) GetKeyDisplayName() string { + if o == nil || isNil(o.KeyDisplayName) { + var ret string + return ret + } + return *o.KeyDisplayName +} + +// GetKeyDisplayNameOk returns a tuple with the KeyDisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) GetKeyDisplayNameOk() (*string, bool) { + if o == nil || isNil(o.KeyDisplayName) { + return nil, false + } + return o.KeyDisplayName, true +} + +// HasKeyDisplayName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) HasKeyDisplayName() bool { + if o != nil && !isNil(o.KeyDisplayName) { + return true + } + + return false +} + +// SetKeyDisplayName gets a reference to the given string and assigns it to the KeyDisplayName field. +func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) SetKeyDisplayName(v string) { + o.KeyDisplayName = &v +} + +// GetIsPublished returns the IsPublished field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) GetIsPublished() bool { + if o == nil || isNil(o.IsPublished) { + var ret bool + return ret + } + return *o.IsPublished +} + +// GetIsPublishedOk returns a tuple with the IsPublished field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) GetIsPublishedOk() (*bool, bool) { + if o == nil || isNil(o.IsPublished) { + return nil, false + } + return o.IsPublished, true +} + +// HasIsPublished returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) HasIsPublished() bool { + if o != nil && !isNil(o.IsPublished) { + return true + } + + return false +} + +// SetIsPublished gets a reference to the given bool and assigns it to the IsPublished field. +func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) SetIsPublished(v bool) { + o.IsPublished = &v +} + +// GetWorkflowType returns the WorkflowType field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) GetWorkflowType() string { + if o == nil || isNil(o.WorkflowType) { + var ret string + return ret + } + return *o.WorkflowType +} + +// GetWorkflowTypeOk returns a tuple with the WorkflowType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) GetWorkflowTypeOk() (*string, bool) { + if o == nil || isNil(o.WorkflowType) { + return nil, false + } + return o.WorkflowType, true +} + +// HasWorkflowType returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) HasWorkflowType() bool { + if o != nil && !isNil(o.WorkflowType) { + return true + } + + return false +} + +// SetWorkflowType gets a reference to the given string and assigns it to the WorkflowType field. +func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) SetWorkflowType(v string) { + o.WorkflowType = &v +} + +// GetSteps returns the Steps field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) GetSteps() []KeyfactorApiModelsWorkflowsDefinitionStepResponse { + if o == nil || isNil(o.Steps) { + var ret []KeyfactorApiModelsWorkflowsDefinitionStepResponse + return ret + } + return o.Steps +} + +// GetStepsOk returns a tuple with the Steps field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) GetStepsOk() ([]KeyfactorApiModelsWorkflowsDefinitionStepResponse, bool) { + if o == nil || isNil(o.Steps) { + return nil, false + } + return o.Steps, true +} + +// HasSteps returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) HasSteps() bool { + if o != nil && !isNil(o.Steps) { + return true + } + + return false +} + +// SetSteps gets a reference to the given []KeyfactorApiModelsWorkflowsDefinitionStepResponse and assigns it to the Steps field. +func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) SetSteps(v []KeyfactorApiModelsWorkflowsDefinitionStepResponse) { + o.Steps = v +} + +// GetDraftVersion returns the DraftVersion field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) GetDraftVersion() int32 { + if o == nil || isNil(o.DraftVersion) { + var ret int32 + return ret + } + return *o.DraftVersion +} + +// GetDraftVersionOk returns a tuple with the DraftVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) GetDraftVersionOk() (*int32, bool) { + if o == nil || isNil(o.DraftVersion) { + return nil, false + } + return o.DraftVersion, true +} + +// HasDraftVersion returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) HasDraftVersion() bool { + if o != nil && !isNil(o.DraftVersion) { + return true + } + + return false +} + +// SetDraftVersion gets a reference to the given int32 and assigns it to the DraftVersion field. +func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) SetDraftVersion(v int32) { + o.DraftVersion = &v +} + +// GetPublishedVersion returns the PublishedVersion field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) GetPublishedVersion() int32 { + if o == nil || isNil(o.PublishedVersion) { + var ret int32 + return ret + } + return *o.PublishedVersion +} + +// GetPublishedVersionOk returns a tuple with the PublishedVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) GetPublishedVersionOk() (*int32, bool) { + if o == nil || isNil(o.PublishedVersion) { + return nil, false + } + return o.PublishedVersion, true +} + +// HasPublishedVersion returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) HasPublishedVersion() bool { + if o != nil && !isNil(o.PublishedVersion) { + return true + } + + return false +} + +// SetPublishedVersion gets a reference to the given int32 and assigns it to the PublishedVersion field. +func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) SetPublishedVersion(v int32) { + o.PublishedVersion = &v +} + +func (o KeyfactorApiModelsWorkflowsDefinitionResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsWorkflowsDefinitionResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.DisplayName) { + toSerialize["DisplayName"] = o.DisplayName + } + if !isNil(o.Description) { + toSerialize["Description"] = o.Description + } + if !isNil(o.Key) { + toSerialize["Key"] = o.Key + } + if !isNil(o.KeyDisplayName) { + toSerialize["KeyDisplayName"] = o.KeyDisplayName + } + if !isNil(o.IsPublished) { + toSerialize["IsPublished"] = o.IsPublished + } + if !isNil(o.WorkflowType) { + toSerialize["WorkflowType"] = o.WorkflowType + } + if !isNil(o.Steps) { + toSerialize["Steps"] = o.Steps + } + if !isNil(o.DraftVersion) { + toSerialize["DraftVersion"] = o.DraftVersion + } + if !isNil(o.PublishedVersion) { + toSerialize["PublishedVersion"] = o.PublishedVersion + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsWorkflowsDefinitionResponse := _KeyfactorApiModelsWorkflowsDefinitionResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsWorkflowsDefinitionResponse); err == nil { + *o = KeyfactorApiModelsWorkflowsDefinitionResponse(varKeyfactorApiModelsWorkflowsDefinitionResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "DisplayName") + delete(additionalProperties, "Description") + delete(additionalProperties, "Key") + delete(additionalProperties, "KeyDisplayName") + delete(additionalProperties, "IsPublished") + delete(additionalProperties, "WorkflowType") + delete(additionalProperties, "Steps") + delete(additionalProperties, "DraftVersion") + delete(additionalProperties, "PublishedVersion") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsWorkflowsDefinitionResponse struct { + value *KeyfactorApiModelsWorkflowsDefinitionResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsWorkflowsDefinitionResponse) Get() *KeyfactorApiModelsWorkflowsDefinitionResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsWorkflowsDefinitionResponse) Set(val *KeyfactorApiModelsWorkflowsDefinitionResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsWorkflowsDefinitionResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsWorkflowsDefinitionResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsWorkflowsDefinitionResponse(val *KeyfactorApiModelsWorkflowsDefinitionResponse) *NullableKeyfactorApiModelsWorkflowsDefinitionResponse { + return &NullableKeyfactorApiModelsWorkflowsDefinitionResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsWorkflowsDefinitionResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsWorkflowsDefinitionResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_workflows_definition_step_request.go b/v1/api/keyfactor/model_keyfactor_api_models_workflows_definition_step_request.go new file mode 100644 index 0000000..0678338 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_workflows_definition_step_request.go @@ -0,0 +1,417 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsWorkflowsDefinitionStepRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsWorkflowsDefinitionStepRequest{} + +// KeyfactorApiModelsWorkflowsDefinitionStepRequest struct for KeyfactorApiModelsWorkflowsDefinitionStepRequest +type KeyfactorApiModelsWorkflowsDefinitionStepRequest struct { + ExtensionName *string `json:"ExtensionName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` + DisplayName *string `json:"DisplayName,omitempty"` + Enabled *bool `json:"Enabled,omitempty"` + ConfigurationParameters map[string]map[string]interface{} `json:"ConfigurationParameters,omitempty"` + Signals []KeyfactorApiModelsWorkflowsSignalConfigurationRequest `json:"Signals,omitempty"` + Conditions []KeyfactorApiModelsWorkflowsConditionConfigurationRequest `json:"Conditions,omitempty"` + Outputs *map[string]string `json:"Outputs,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsWorkflowsDefinitionStepRequest KeyfactorApiModelsWorkflowsDefinitionStepRequest + +// NewKeyfactorApiModelsWorkflowsDefinitionStepRequest instantiates a new KeyfactorApiModelsWorkflowsDefinitionStepRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsWorkflowsDefinitionStepRequest() *KeyfactorApiModelsWorkflowsDefinitionStepRequest { + this := KeyfactorApiModelsWorkflowsDefinitionStepRequest{} + return &this +} + +// NewKeyfactorApiModelsWorkflowsDefinitionStepRequestWithDefaults instantiates a new KeyfactorApiModelsWorkflowsDefinitionStepRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsWorkflowsDefinitionStepRequestWithDefaults() *KeyfactorApiModelsWorkflowsDefinitionStepRequest { + this := KeyfactorApiModelsWorkflowsDefinitionStepRequest{} + return &this +} + +// GetExtensionName returns the ExtensionName field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) GetExtensionName() string { + if o == nil || isNil(o.ExtensionName) { + var ret string + return ret + } + return *o.ExtensionName +} + +// GetExtensionNameOk returns a tuple with the ExtensionName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) GetExtensionNameOk() (*string, bool) { + if o == nil || isNil(o.ExtensionName) { + return nil, false + } + return o.ExtensionName, true +} + +// HasExtensionName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) HasExtensionName() bool { + if o != nil && !isNil(o.ExtensionName) { + return true + } + + return false +} + +// SetExtensionName gets a reference to the given string and assigns it to the ExtensionName field. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) SetExtensionName(v string) { + o.ExtensionName = &v +} + +// GetUniqueName returns the UniqueName field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) GetUniqueName() string { + if o == nil || isNil(o.UniqueName) { + var ret string + return ret + } + return *o.UniqueName +} + +// GetUniqueNameOk returns a tuple with the UniqueName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) GetUniqueNameOk() (*string, bool) { + if o == nil || isNil(o.UniqueName) { + return nil, false + } + return o.UniqueName, true +} + +// HasUniqueName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) HasUniqueName() bool { + if o != nil && !isNil(o.UniqueName) { + return true + } + + return false +} + +// SetUniqueName gets a reference to the given string and assigns it to the UniqueName field. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) SetUniqueName(v string) { + o.UniqueName = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) GetDisplayName() string { + if o == nil || isNil(o.DisplayName) { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) GetDisplayNameOk() (*string, bool) { + if o == nil || isNil(o.DisplayName) { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) HasDisplayName() bool { + if o != nil && !isNil(o.DisplayName) { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) GetEnabled() bool { + if o == nil || isNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) GetEnabledOk() (*bool, bool) { + if o == nil || isNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) HasEnabled() bool { + if o != nil && !isNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetConfigurationParameters returns the ConfigurationParameters field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) GetConfigurationParameters() map[string]map[string]interface{} { + if o == nil || isNil(o.ConfigurationParameters) { + var ret map[string]map[string]interface{} + return ret + } + return o.ConfigurationParameters +} + +// GetConfigurationParametersOk returns a tuple with the ConfigurationParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) GetConfigurationParametersOk() (map[string]map[string]interface{}, bool) { + if o == nil || isNil(o.ConfigurationParameters) { + return map[string]map[string]interface{}{}, false + } + return o.ConfigurationParameters, true +} + +// HasConfigurationParameters returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) HasConfigurationParameters() bool { + if o != nil && !isNil(o.ConfigurationParameters) { + return true + } + + return false +} + +// SetConfigurationParameters gets a reference to the given map[string]map[string]interface{} and assigns it to the ConfigurationParameters field. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) SetConfigurationParameters(v map[string]map[string]interface{}) { + o.ConfigurationParameters = v +} + +// GetSignals returns the Signals field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) GetSignals() []KeyfactorApiModelsWorkflowsSignalConfigurationRequest { + if o == nil || isNil(o.Signals) { + var ret []KeyfactorApiModelsWorkflowsSignalConfigurationRequest + return ret + } + return o.Signals +} + +// GetSignalsOk returns a tuple with the Signals field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) GetSignalsOk() ([]KeyfactorApiModelsWorkflowsSignalConfigurationRequest, bool) { + if o == nil || isNil(o.Signals) { + return nil, false + } + return o.Signals, true +} + +// HasSignals returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) HasSignals() bool { + if o != nil && !isNil(o.Signals) { + return true + } + + return false +} + +// SetSignals gets a reference to the given []KeyfactorApiModelsWorkflowsSignalConfigurationRequest and assigns it to the Signals field. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) SetSignals(v []KeyfactorApiModelsWorkflowsSignalConfigurationRequest) { + o.Signals = v +} + +// GetConditions returns the Conditions field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) GetConditions() []KeyfactorApiModelsWorkflowsConditionConfigurationRequest { + if o == nil || isNil(o.Conditions) { + var ret []KeyfactorApiModelsWorkflowsConditionConfigurationRequest + return ret + } + return o.Conditions +} + +// GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) GetConditionsOk() ([]KeyfactorApiModelsWorkflowsConditionConfigurationRequest, bool) { + if o == nil || isNil(o.Conditions) { + return nil, false + } + return o.Conditions, true +} + +// HasConditions returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) HasConditions() bool { + if o != nil && !isNil(o.Conditions) { + return true + } + + return false +} + +// SetConditions gets a reference to the given []KeyfactorApiModelsWorkflowsConditionConfigurationRequest and assigns it to the Conditions field. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) SetConditions(v []KeyfactorApiModelsWorkflowsConditionConfigurationRequest) { + o.Conditions = v +} + +// GetOutputs returns the Outputs field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) GetOutputs() map[string]string { + if o == nil || isNil(o.Outputs) { + var ret map[string]string + return ret + } + return *o.Outputs +} + +// GetOutputsOk returns a tuple with the Outputs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) GetOutputsOk() (*map[string]string, bool) { + if o == nil || isNil(o.Outputs) { + return nil, false + } + return o.Outputs, true +} + +// HasOutputs returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) HasOutputs() bool { + if o != nil && !isNil(o.Outputs) { + return true + } + + return false +} + +// SetOutputs gets a reference to the given map[string]string and assigns it to the Outputs field. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) SetOutputs(v map[string]string) { + o.Outputs = &v +} + +func (o KeyfactorApiModelsWorkflowsDefinitionStepRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsWorkflowsDefinitionStepRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.ExtensionName) { + toSerialize["ExtensionName"] = o.ExtensionName + } + if !isNil(o.UniqueName) { + toSerialize["UniqueName"] = o.UniqueName + } + if !isNil(o.DisplayName) { + toSerialize["DisplayName"] = o.DisplayName + } + if !isNil(o.Enabled) { + toSerialize["Enabled"] = o.Enabled + } + if !isNil(o.ConfigurationParameters) { + toSerialize["ConfigurationParameters"] = o.ConfigurationParameters + } + if !isNil(o.Signals) { + toSerialize["Signals"] = o.Signals + } + if !isNil(o.Conditions) { + toSerialize["Conditions"] = o.Conditions + } + if !isNil(o.Outputs) { + toSerialize["Outputs"] = o.Outputs + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsWorkflowsDefinitionStepRequest := _KeyfactorApiModelsWorkflowsDefinitionStepRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsWorkflowsDefinitionStepRequest); err == nil { + *o = KeyfactorApiModelsWorkflowsDefinitionStepRequest(varKeyfactorApiModelsWorkflowsDefinitionStepRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "ExtensionName") + delete(additionalProperties, "UniqueName") + delete(additionalProperties, "DisplayName") + delete(additionalProperties, "Enabled") + delete(additionalProperties, "ConfigurationParameters") + delete(additionalProperties, "Signals") + delete(additionalProperties, "Conditions") + delete(additionalProperties, "Outputs") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsWorkflowsDefinitionStepRequest struct { + value *KeyfactorApiModelsWorkflowsDefinitionStepRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsWorkflowsDefinitionStepRequest) Get() *KeyfactorApiModelsWorkflowsDefinitionStepRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsWorkflowsDefinitionStepRequest) Set(val *KeyfactorApiModelsWorkflowsDefinitionStepRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsWorkflowsDefinitionStepRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsWorkflowsDefinitionStepRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsWorkflowsDefinitionStepRequest(val *KeyfactorApiModelsWorkflowsDefinitionStepRequest) *NullableKeyfactorApiModelsWorkflowsDefinitionStepRequest { + return &NullableKeyfactorApiModelsWorkflowsDefinitionStepRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsWorkflowsDefinitionStepRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsWorkflowsDefinitionStepRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_workflows_definition_step_response.go b/v1/api/keyfactor/model_keyfactor_api_models_workflows_definition_step_response.go new file mode 100644 index 0000000..a41df45 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_workflows_definition_step_response.go @@ -0,0 +1,454 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsWorkflowsDefinitionStepResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsWorkflowsDefinitionStepResponse{} + +// KeyfactorApiModelsWorkflowsDefinitionStepResponse struct for KeyfactorApiModelsWorkflowsDefinitionStepResponse +type KeyfactorApiModelsWorkflowsDefinitionStepResponse struct { + Id *string `json:"Id,omitempty"` + DisplayName *string `json:"DisplayName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` + ExtensionName *string `json:"ExtensionName,omitempty"` + Enabled *bool `json:"Enabled,omitempty"` + ConfigurationParameters map[string]map[string]interface{} `json:"ConfigurationParameters,omitempty"` + Signals []KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse `json:"Signals,omitempty"` + Conditions []KeyfactorApiModelsWorkflowsConditionConfigurationResponse `json:"Conditions,omitempty"` + Outputs *map[string]string `json:"Outputs,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsWorkflowsDefinitionStepResponse KeyfactorApiModelsWorkflowsDefinitionStepResponse + +// NewKeyfactorApiModelsWorkflowsDefinitionStepResponse instantiates a new KeyfactorApiModelsWorkflowsDefinitionStepResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsWorkflowsDefinitionStepResponse() *KeyfactorApiModelsWorkflowsDefinitionStepResponse { + this := KeyfactorApiModelsWorkflowsDefinitionStepResponse{} + return &this +} + +// NewKeyfactorApiModelsWorkflowsDefinitionStepResponseWithDefaults instantiates a new KeyfactorApiModelsWorkflowsDefinitionStepResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsWorkflowsDefinitionStepResponseWithDefaults() *KeyfactorApiModelsWorkflowsDefinitionStepResponse { + this := KeyfactorApiModelsWorkflowsDefinitionStepResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) GetId() string { + if o == nil || isNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) GetIdOk() (*string, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) SetId(v string) { + o.Id = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) GetDisplayName() string { + if o == nil || isNil(o.DisplayName) { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) GetDisplayNameOk() (*string, bool) { + if o == nil || isNil(o.DisplayName) { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) HasDisplayName() bool { + if o != nil && !isNil(o.DisplayName) { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetUniqueName returns the UniqueName field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) GetUniqueName() string { + if o == nil || isNil(o.UniqueName) { + var ret string + return ret + } + return *o.UniqueName +} + +// GetUniqueNameOk returns a tuple with the UniqueName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) GetUniqueNameOk() (*string, bool) { + if o == nil || isNil(o.UniqueName) { + return nil, false + } + return o.UniqueName, true +} + +// HasUniqueName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) HasUniqueName() bool { + if o != nil && !isNil(o.UniqueName) { + return true + } + + return false +} + +// SetUniqueName gets a reference to the given string and assigns it to the UniqueName field. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) SetUniqueName(v string) { + o.UniqueName = &v +} + +// GetExtensionName returns the ExtensionName field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) GetExtensionName() string { + if o == nil || isNil(o.ExtensionName) { + var ret string + return ret + } + return *o.ExtensionName +} + +// GetExtensionNameOk returns a tuple with the ExtensionName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) GetExtensionNameOk() (*string, bool) { + if o == nil || isNil(o.ExtensionName) { + return nil, false + } + return o.ExtensionName, true +} + +// HasExtensionName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) HasExtensionName() bool { + if o != nil && !isNil(o.ExtensionName) { + return true + } + + return false +} + +// SetExtensionName gets a reference to the given string and assigns it to the ExtensionName field. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) SetExtensionName(v string) { + o.ExtensionName = &v +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) GetEnabled() bool { + if o == nil || isNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) GetEnabledOk() (*bool, bool) { + if o == nil || isNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) HasEnabled() bool { + if o != nil && !isNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetConfigurationParameters returns the ConfigurationParameters field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) GetConfigurationParameters() map[string]map[string]interface{} { + if o == nil || isNil(o.ConfigurationParameters) { + var ret map[string]map[string]interface{} + return ret + } + return o.ConfigurationParameters +} + +// GetConfigurationParametersOk returns a tuple with the ConfigurationParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) GetConfigurationParametersOk() (map[string]map[string]interface{}, bool) { + if o == nil || isNil(o.ConfigurationParameters) { + return map[string]map[string]interface{}{}, false + } + return o.ConfigurationParameters, true +} + +// HasConfigurationParameters returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) HasConfigurationParameters() bool { + if o != nil && !isNil(o.ConfigurationParameters) { + return true + } + + return false +} + +// SetConfigurationParameters gets a reference to the given map[string]map[string]interface{} and assigns it to the ConfigurationParameters field. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) SetConfigurationParameters(v map[string]map[string]interface{}) { + o.ConfigurationParameters = v +} + +// GetSignals returns the Signals field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) GetSignals() []KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse { + if o == nil || isNil(o.Signals) { + var ret []KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse + return ret + } + return o.Signals +} + +// GetSignalsOk returns a tuple with the Signals field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) GetSignalsOk() ([]KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse, bool) { + if o == nil || isNil(o.Signals) { + return nil, false + } + return o.Signals, true +} + +// HasSignals returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) HasSignals() bool { + if o != nil && !isNil(o.Signals) { + return true + } + + return false +} + +// SetSignals gets a reference to the given []KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse and assigns it to the Signals field. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) SetSignals(v []KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse) { + o.Signals = v +} + +// GetConditions returns the Conditions field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) GetConditions() []KeyfactorApiModelsWorkflowsConditionConfigurationResponse { + if o == nil || isNil(o.Conditions) { + var ret []KeyfactorApiModelsWorkflowsConditionConfigurationResponse + return ret + } + return o.Conditions +} + +// GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) GetConditionsOk() ([]KeyfactorApiModelsWorkflowsConditionConfigurationResponse, bool) { + if o == nil || isNil(o.Conditions) { + return nil, false + } + return o.Conditions, true +} + +// HasConditions returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) HasConditions() bool { + if o != nil && !isNil(o.Conditions) { + return true + } + + return false +} + +// SetConditions gets a reference to the given []KeyfactorApiModelsWorkflowsConditionConfigurationResponse and assigns it to the Conditions field. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) SetConditions(v []KeyfactorApiModelsWorkflowsConditionConfigurationResponse) { + o.Conditions = v +} + +// GetOutputs returns the Outputs field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) GetOutputs() map[string]string { + if o == nil || isNil(o.Outputs) { + var ret map[string]string + return ret + } + return *o.Outputs +} + +// GetOutputsOk returns a tuple with the Outputs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) GetOutputsOk() (*map[string]string, bool) { + if o == nil || isNil(o.Outputs) { + return nil, false + } + return o.Outputs, true +} + +// HasOutputs returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) HasOutputs() bool { + if o != nil && !isNil(o.Outputs) { + return true + } + + return false +} + +// SetOutputs gets a reference to the given map[string]string and assigns it to the Outputs field. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) SetOutputs(v map[string]string) { + o.Outputs = &v +} + +func (o KeyfactorApiModelsWorkflowsDefinitionStepResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsWorkflowsDefinitionStepResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.DisplayName) { + toSerialize["DisplayName"] = o.DisplayName + } + if !isNil(o.UniqueName) { + toSerialize["UniqueName"] = o.UniqueName + } + if !isNil(o.ExtensionName) { + toSerialize["ExtensionName"] = o.ExtensionName + } + if !isNil(o.Enabled) { + toSerialize["Enabled"] = o.Enabled + } + if !isNil(o.ConfigurationParameters) { + toSerialize["ConfigurationParameters"] = o.ConfigurationParameters + } + if !isNil(o.Signals) { + toSerialize["Signals"] = o.Signals + } + if !isNil(o.Conditions) { + toSerialize["Conditions"] = o.Conditions + } + if !isNil(o.Outputs) { + toSerialize["Outputs"] = o.Outputs + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsWorkflowsDefinitionStepResponse := _KeyfactorApiModelsWorkflowsDefinitionStepResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsWorkflowsDefinitionStepResponse); err == nil { + *o = KeyfactorApiModelsWorkflowsDefinitionStepResponse(varKeyfactorApiModelsWorkflowsDefinitionStepResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "DisplayName") + delete(additionalProperties, "UniqueName") + delete(additionalProperties, "ExtensionName") + delete(additionalProperties, "Enabled") + delete(additionalProperties, "ConfigurationParameters") + delete(additionalProperties, "Signals") + delete(additionalProperties, "Conditions") + delete(additionalProperties, "Outputs") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsWorkflowsDefinitionStepResponse struct { + value *KeyfactorApiModelsWorkflowsDefinitionStepResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsWorkflowsDefinitionStepResponse) Get() *KeyfactorApiModelsWorkflowsDefinitionStepResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsWorkflowsDefinitionStepResponse) Set(val *KeyfactorApiModelsWorkflowsDefinitionStepResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsWorkflowsDefinitionStepResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsWorkflowsDefinitionStepResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsWorkflowsDefinitionStepResponse(val *KeyfactorApiModelsWorkflowsDefinitionStepResponse) *NullableKeyfactorApiModelsWorkflowsDefinitionStepResponse { + return &NullableKeyfactorApiModelsWorkflowsDefinitionStepResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsWorkflowsDefinitionStepResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsWorkflowsDefinitionStepResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_workflows_definition_step_signal_response.go b/v1/api/keyfactor/model_keyfactor_api_models_workflows_definition_step_signal_response.go new file mode 100644 index 0000000..308059f --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_workflows_definition_step_signal_response.go @@ -0,0 +1,196 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse{} + +// KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse struct for KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse +type KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse struct { + // The roles that are allowed to send this signal. + RoleIds []int32 `json:"RoleIds,omitempty"` + SignalName *string `json:"SignalName,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse + +// NewKeyfactorApiModelsWorkflowsDefinitionStepSignalResponse instantiates a new KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsWorkflowsDefinitionStepSignalResponse() *KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse { + this := KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse{} + return &this +} + +// NewKeyfactorApiModelsWorkflowsDefinitionStepSignalResponseWithDefaults instantiates a new KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsWorkflowsDefinitionStepSignalResponseWithDefaults() *KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse { + this := KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse{} + return &this +} + +// GetRoleIds returns the RoleIds field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse) GetRoleIds() []int32 { + if o == nil || isNil(o.RoleIds) { + var ret []int32 + return ret + } + return o.RoleIds +} + +// GetRoleIdsOk returns a tuple with the RoleIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse) GetRoleIdsOk() ([]int32, bool) { + if o == nil || isNil(o.RoleIds) { + return nil, false + } + return o.RoleIds, true +} + +// HasRoleIds returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse) HasRoleIds() bool { + if o != nil && !isNil(o.RoleIds) { + return true + } + + return false +} + +// SetRoleIds gets a reference to the given []int32 and assigns it to the RoleIds field. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse) SetRoleIds(v []int32) { + o.RoleIds = v +} + +// GetSignalName returns the SignalName field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse) GetSignalName() string { + if o == nil || isNil(o.SignalName) { + var ret string + return ret + } + return *o.SignalName +} + +// GetSignalNameOk returns a tuple with the SignalName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse) GetSignalNameOk() (*string, bool) { + if o == nil || isNil(o.SignalName) { + return nil, false + } + return o.SignalName, true +} + +// HasSignalName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse) HasSignalName() bool { + if o != nil && !isNil(o.SignalName) { + return true + } + + return false +} + +// SetSignalName gets a reference to the given string and assigns it to the SignalName field. +func (o *KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse) SetSignalName(v string) { + o.SignalName = &v +} + +func (o KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.RoleIds) { + toSerialize["RoleIds"] = o.RoleIds + } + if !isNil(o.SignalName) { + toSerialize["SignalName"] = o.SignalName + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsWorkflowsDefinitionStepSignalResponse := _KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsWorkflowsDefinitionStepSignalResponse); err == nil { + *o = KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse(varKeyfactorApiModelsWorkflowsDefinitionStepSignalResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "RoleIds") + delete(additionalProperties, "SignalName") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsWorkflowsDefinitionStepSignalResponse struct { + value *KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsWorkflowsDefinitionStepSignalResponse) Get() *KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsWorkflowsDefinitionStepSignalResponse) Set(val *KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsWorkflowsDefinitionStepSignalResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsWorkflowsDefinitionStepSignalResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsWorkflowsDefinitionStepSignalResponse(val *KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse) *NullableKeyfactorApiModelsWorkflowsDefinitionStepSignalResponse { + return &NullableKeyfactorApiModelsWorkflowsDefinitionStepSignalResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsWorkflowsDefinitionStepSignalResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsWorkflowsDefinitionStepSignalResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_workflows_definition_update_request.go b/v1/api/keyfactor/model_keyfactor_api_models_workflows_definition_update_request.go new file mode 100644 index 0000000..c527aa5 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_workflows_definition_update_request.go @@ -0,0 +1,195 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsWorkflowsDefinitionUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsWorkflowsDefinitionUpdateRequest{} + +// KeyfactorApiModelsWorkflowsDefinitionUpdateRequest struct for KeyfactorApiModelsWorkflowsDefinitionUpdateRequest +type KeyfactorApiModelsWorkflowsDefinitionUpdateRequest struct { + DisplayName *string `json:"DisplayName,omitempty"` + Description *string `json:"Description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsWorkflowsDefinitionUpdateRequest KeyfactorApiModelsWorkflowsDefinitionUpdateRequest + +// NewKeyfactorApiModelsWorkflowsDefinitionUpdateRequest instantiates a new KeyfactorApiModelsWorkflowsDefinitionUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsWorkflowsDefinitionUpdateRequest() *KeyfactorApiModelsWorkflowsDefinitionUpdateRequest { + this := KeyfactorApiModelsWorkflowsDefinitionUpdateRequest{} + return &this +} + +// NewKeyfactorApiModelsWorkflowsDefinitionUpdateRequestWithDefaults instantiates a new KeyfactorApiModelsWorkflowsDefinitionUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsWorkflowsDefinitionUpdateRequestWithDefaults() *KeyfactorApiModelsWorkflowsDefinitionUpdateRequest { + this := KeyfactorApiModelsWorkflowsDefinitionUpdateRequest{} + return &this +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsDefinitionUpdateRequest) GetDisplayName() string { + if o == nil || isNil(o.DisplayName) { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionUpdateRequest) GetDisplayNameOk() (*string, bool) { + if o == nil || isNil(o.DisplayName) { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionUpdateRequest) HasDisplayName() bool { + if o != nil && !isNil(o.DisplayName) { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *KeyfactorApiModelsWorkflowsDefinitionUpdateRequest) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsDefinitionUpdateRequest) GetDescription() string { + if o == nil || isNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionUpdateRequest) GetDescriptionOk() (*string, bool) { + if o == nil || isNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsDefinitionUpdateRequest) HasDescription() bool { + if o != nil && !isNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *KeyfactorApiModelsWorkflowsDefinitionUpdateRequest) SetDescription(v string) { + o.Description = &v +} + +func (o KeyfactorApiModelsWorkflowsDefinitionUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsWorkflowsDefinitionUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.DisplayName) { + toSerialize["DisplayName"] = o.DisplayName + } + if !isNil(o.Description) { + toSerialize["Description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsWorkflowsDefinitionUpdateRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsWorkflowsDefinitionUpdateRequest := _KeyfactorApiModelsWorkflowsDefinitionUpdateRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsWorkflowsDefinitionUpdateRequest); err == nil { + *o = KeyfactorApiModelsWorkflowsDefinitionUpdateRequest(varKeyfactorApiModelsWorkflowsDefinitionUpdateRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "DisplayName") + delete(additionalProperties, "Description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsWorkflowsDefinitionUpdateRequest struct { + value *KeyfactorApiModelsWorkflowsDefinitionUpdateRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsWorkflowsDefinitionUpdateRequest) Get() *KeyfactorApiModelsWorkflowsDefinitionUpdateRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsWorkflowsDefinitionUpdateRequest) Set(val *KeyfactorApiModelsWorkflowsDefinitionUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsWorkflowsDefinitionUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsWorkflowsDefinitionUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsWorkflowsDefinitionUpdateRequest(val *KeyfactorApiModelsWorkflowsDefinitionUpdateRequest) *NullableKeyfactorApiModelsWorkflowsDefinitionUpdateRequest { + return &NullableKeyfactorApiModelsWorkflowsDefinitionUpdateRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsWorkflowsDefinitionUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsWorkflowsDefinitionUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_workflows_instance_definition_response.go b/v1/api/keyfactor/model_keyfactor_api_models_workflows_instance_definition_response.go new file mode 100644 index 0000000..4932289 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_workflows_instance_definition_response.go @@ -0,0 +1,269 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsWorkflowsInstanceDefinitionResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsWorkflowsInstanceDefinitionResponse{} + +// KeyfactorApiModelsWorkflowsInstanceDefinitionResponse struct for KeyfactorApiModelsWorkflowsInstanceDefinitionResponse +type KeyfactorApiModelsWorkflowsInstanceDefinitionResponse struct { + Id *string `json:"Id,omitempty"` + DisplayName *string `json:"DisplayName,omitempty"` + Version *int32 `json:"Version,omitempty"` + WorkflowType *string `json:"WorkflowType,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsWorkflowsInstanceDefinitionResponse KeyfactorApiModelsWorkflowsInstanceDefinitionResponse + +// NewKeyfactorApiModelsWorkflowsInstanceDefinitionResponse instantiates a new KeyfactorApiModelsWorkflowsInstanceDefinitionResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsWorkflowsInstanceDefinitionResponse() *KeyfactorApiModelsWorkflowsInstanceDefinitionResponse { + this := KeyfactorApiModelsWorkflowsInstanceDefinitionResponse{} + return &this +} + +// NewKeyfactorApiModelsWorkflowsInstanceDefinitionResponseWithDefaults instantiates a new KeyfactorApiModelsWorkflowsInstanceDefinitionResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsWorkflowsInstanceDefinitionResponseWithDefaults() *KeyfactorApiModelsWorkflowsInstanceDefinitionResponse { + this := KeyfactorApiModelsWorkflowsInstanceDefinitionResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsInstanceDefinitionResponse) GetId() string { + if o == nil || isNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceDefinitionResponse) GetIdOk() (*string, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceDefinitionResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *KeyfactorApiModelsWorkflowsInstanceDefinitionResponse) SetId(v string) { + o.Id = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsInstanceDefinitionResponse) GetDisplayName() string { + if o == nil || isNil(o.DisplayName) { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceDefinitionResponse) GetDisplayNameOk() (*string, bool) { + if o == nil || isNil(o.DisplayName) { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceDefinitionResponse) HasDisplayName() bool { + if o != nil && !isNil(o.DisplayName) { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *KeyfactorApiModelsWorkflowsInstanceDefinitionResponse) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsInstanceDefinitionResponse) GetVersion() int32 { + if o == nil || isNil(o.Version) { + var ret int32 + return ret + } + return *o.Version +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceDefinitionResponse) GetVersionOk() (*int32, bool) { + if o == nil || isNil(o.Version) { + return nil, false + } + return o.Version, true +} + +// HasVersion returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceDefinitionResponse) HasVersion() bool { + if o != nil && !isNil(o.Version) { + return true + } + + return false +} + +// SetVersion gets a reference to the given int32 and assigns it to the Version field. +func (o *KeyfactorApiModelsWorkflowsInstanceDefinitionResponse) SetVersion(v int32) { + o.Version = &v +} + +// GetWorkflowType returns the WorkflowType field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsInstanceDefinitionResponse) GetWorkflowType() string { + if o == nil || isNil(o.WorkflowType) { + var ret string + return ret + } + return *o.WorkflowType +} + +// GetWorkflowTypeOk returns a tuple with the WorkflowType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceDefinitionResponse) GetWorkflowTypeOk() (*string, bool) { + if o == nil || isNil(o.WorkflowType) { + return nil, false + } + return o.WorkflowType, true +} + +// HasWorkflowType returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceDefinitionResponse) HasWorkflowType() bool { + if o != nil && !isNil(o.WorkflowType) { + return true + } + + return false +} + +// SetWorkflowType gets a reference to the given string and assigns it to the WorkflowType field. +func (o *KeyfactorApiModelsWorkflowsInstanceDefinitionResponse) SetWorkflowType(v string) { + o.WorkflowType = &v +} + +func (o KeyfactorApiModelsWorkflowsInstanceDefinitionResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsWorkflowsInstanceDefinitionResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.DisplayName) { + toSerialize["DisplayName"] = o.DisplayName + } + if !isNil(o.Version) { + toSerialize["Version"] = o.Version + } + if !isNil(o.WorkflowType) { + toSerialize["WorkflowType"] = o.WorkflowType + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsWorkflowsInstanceDefinitionResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsWorkflowsInstanceDefinitionResponse := _KeyfactorApiModelsWorkflowsInstanceDefinitionResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsWorkflowsInstanceDefinitionResponse); err == nil { + *o = KeyfactorApiModelsWorkflowsInstanceDefinitionResponse(varKeyfactorApiModelsWorkflowsInstanceDefinitionResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "DisplayName") + delete(additionalProperties, "Version") + delete(additionalProperties, "WorkflowType") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsWorkflowsInstanceDefinitionResponse struct { + value *KeyfactorApiModelsWorkflowsInstanceDefinitionResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsWorkflowsInstanceDefinitionResponse) Get() *KeyfactorApiModelsWorkflowsInstanceDefinitionResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsWorkflowsInstanceDefinitionResponse) Set(val *KeyfactorApiModelsWorkflowsInstanceDefinitionResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsWorkflowsInstanceDefinitionResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsWorkflowsInstanceDefinitionResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsWorkflowsInstanceDefinitionResponse(val *KeyfactorApiModelsWorkflowsInstanceDefinitionResponse) *NullableKeyfactorApiModelsWorkflowsInstanceDefinitionResponse { + return &NullableKeyfactorApiModelsWorkflowsInstanceDefinitionResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsWorkflowsInstanceDefinitionResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsWorkflowsInstanceDefinitionResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_workflows_instance_query_response.go b/v1/api/keyfactor/model_keyfactor_api_models_workflows_instance_query_response.go new file mode 100644 index 0000000..9ebb8af --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_workflows_instance_query_response.go @@ -0,0 +1,529 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" + "time" +) + +// checks if the KeyfactorApiModelsWorkflowsInstanceQueryResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsWorkflowsInstanceQueryResponse{} + +// KeyfactorApiModelsWorkflowsInstanceQueryResponse struct for KeyfactorApiModelsWorkflowsInstanceQueryResponse +type KeyfactorApiModelsWorkflowsInstanceQueryResponse struct { + Id *string `json:"Id,omitempty"` + Status *int32 `json:"Status,omitempty"` + CurrentStepId *string `json:"CurrentStepId,omitempty"` + StatusMessage *string `json:"StatusMessage,omitempty"` + Definition *KeyfactorApiModelsWorkflowsInstanceDefinitionResponse `json:"Definition,omitempty"` + CurrentStepDisplayName *string `json:"CurrentStepDisplayName,omitempty"` + CurrentStepUniqueName *string `json:"CurrentStepUniqueName,omitempty"` + Title *string `json:"Title,omitempty"` + LastModified *time.Time `json:"LastModified,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + ReferenceId *int64 `json:"ReferenceId,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsWorkflowsInstanceQueryResponse KeyfactorApiModelsWorkflowsInstanceQueryResponse + +// NewKeyfactorApiModelsWorkflowsInstanceQueryResponse instantiates a new KeyfactorApiModelsWorkflowsInstanceQueryResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsWorkflowsInstanceQueryResponse() *KeyfactorApiModelsWorkflowsInstanceQueryResponse { + this := KeyfactorApiModelsWorkflowsInstanceQueryResponse{} + return &this +} + +// NewKeyfactorApiModelsWorkflowsInstanceQueryResponseWithDefaults instantiates a new KeyfactorApiModelsWorkflowsInstanceQueryResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsWorkflowsInstanceQueryResponseWithDefaults() *KeyfactorApiModelsWorkflowsInstanceQueryResponse { + this := KeyfactorApiModelsWorkflowsInstanceQueryResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) GetId() string { + if o == nil || isNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) GetIdOk() (*string, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) SetId(v string) { + o.Id = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) GetStatus() int32 { + if o == nil || isNil(o.Status) { + var ret int32 + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) GetStatusOk() (*int32, bool) { + if o == nil || isNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) HasStatus() bool { + if o != nil && !isNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given int32 and assigns it to the Status field. +func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) SetStatus(v int32) { + o.Status = &v +} + +// GetCurrentStepId returns the CurrentStepId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) GetCurrentStepId() string { + if o == nil || isNil(o.CurrentStepId) { + var ret string + return ret + } + return *o.CurrentStepId +} + +// GetCurrentStepIdOk returns a tuple with the CurrentStepId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) GetCurrentStepIdOk() (*string, bool) { + if o == nil || isNil(o.CurrentStepId) { + return nil, false + } + return o.CurrentStepId, true +} + +// HasCurrentStepId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) HasCurrentStepId() bool { + if o != nil && !isNil(o.CurrentStepId) { + return true + } + + return false +} + +// SetCurrentStepId gets a reference to the given string and assigns it to the CurrentStepId field. +func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) SetCurrentStepId(v string) { + o.CurrentStepId = &v +} + +// GetStatusMessage returns the StatusMessage field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) GetStatusMessage() string { + if o == nil || isNil(o.StatusMessage) { + var ret string + return ret + } + return *o.StatusMessage +} + +// GetStatusMessageOk returns a tuple with the StatusMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) GetStatusMessageOk() (*string, bool) { + if o == nil || isNil(o.StatusMessage) { + return nil, false + } + return o.StatusMessage, true +} + +// HasStatusMessage returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) HasStatusMessage() bool { + if o != nil && !isNil(o.StatusMessage) { + return true + } + + return false +} + +// SetStatusMessage gets a reference to the given string and assigns it to the StatusMessage field. +func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) SetStatusMessage(v string) { + o.StatusMessage = &v +} + +// GetDefinition returns the Definition field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) GetDefinition() KeyfactorApiModelsWorkflowsInstanceDefinitionResponse { + if o == nil || isNil(o.Definition) { + var ret KeyfactorApiModelsWorkflowsInstanceDefinitionResponse + return ret + } + return *o.Definition +} + +// GetDefinitionOk returns a tuple with the Definition field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) GetDefinitionOk() (*KeyfactorApiModelsWorkflowsInstanceDefinitionResponse, bool) { + if o == nil || isNil(o.Definition) { + return nil, false + } + return o.Definition, true +} + +// HasDefinition returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) HasDefinition() bool { + if o != nil && !isNil(o.Definition) { + return true + } + + return false +} + +// SetDefinition gets a reference to the given KeyfactorApiModelsWorkflowsInstanceDefinitionResponse and assigns it to the Definition field. +func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) SetDefinition(v KeyfactorApiModelsWorkflowsInstanceDefinitionResponse) { + o.Definition = &v +} + +// GetCurrentStepDisplayName returns the CurrentStepDisplayName field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) GetCurrentStepDisplayName() string { + if o == nil || isNil(o.CurrentStepDisplayName) { + var ret string + return ret + } + return *o.CurrentStepDisplayName +} + +// GetCurrentStepDisplayNameOk returns a tuple with the CurrentStepDisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) GetCurrentStepDisplayNameOk() (*string, bool) { + if o == nil || isNil(o.CurrentStepDisplayName) { + return nil, false + } + return o.CurrentStepDisplayName, true +} + +// HasCurrentStepDisplayName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) HasCurrentStepDisplayName() bool { + if o != nil && !isNil(o.CurrentStepDisplayName) { + return true + } + + return false +} + +// SetCurrentStepDisplayName gets a reference to the given string and assigns it to the CurrentStepDisplayName field. +func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) SetCurrentStepDisplayName(v string) { + o.CurrentStepDisplayName = &v +} + +// GetCurrentStepUniqueName returns the CurrentStepUniqueName field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) GetCurrentStepUniqueName() string { + if o == nil || isNil(o.CurrentStepUniqueName) { + var ret string + return ret + } + return *o.CurrentStepUniqueName +} + +// GetCurrentStepUniqueNameOk returns a tuple with the CurrentStepUniqueName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) GetCurrentStepUniqueNameOk() (*string, bool) { + if o == nil || isNil(o.CurrentStepUniqueName) { + return nil, false + } + return o.CurrentStepUniqueName, true +} + +// HasCurrentStepUniqueName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) HasCurrentStepUniqueName() bool { + if o != nil && !isNil(o.CurrentStepUniqueName) { + return true + } + + return false +} + +// SetCurrentStepUniqueName gets a reference to the given string and assigns it to the CurrentStepUniqueName field. +func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) SetCurrentStepUniqueName(v string) { + o.CurrentStepUniqueName = &v +} + +// GetTitle returns the Title field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) GetTitle() string { + if o == nil || isNil(o.Title) { + var ret string + return ret + } + return *o.Title +} + +// GetTitleOk returns a tuple with the Title field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) GetTitleOk() (*string, bool) { + if o == nil || isNil(o.Title) { + return nil, false + } + return o.Title, true +} + +// HasTitle returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) HasTitle() bool { + if o != nil && !isNil(o.Title) { + return true + } + + return false +} + +// SetTitle gets a reference to the given string and assigns it to the Title field. +func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) SetTitle(v string) { + o.Title = &v +} + +// GetLastModified returns the LastModified field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) GetLastModified() time.Time { + if o == nil || isNil(o.LastModified) { + var ret time.Time + return ret + } + return *o.LastModified +} + +// GetLastModifiedOk returns a tuple with the LastModified field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) GetLastModifiedOk() (*time.Time, bool) { + if o == nil || isNil(o.LastModified) { + return nil, false + } + return o.LastModified, true +} + +// HasLastModified returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) HasLastModified() bool { + if o != nil && !isNil(o.LastModified) { + return true + } + + return false +} + +// SetLastModified gets a reference to the given time.Time and assigns it to the LastModified field. +func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) SetLastModified(v time.Time) { + o.LastModified = &v +} + +// GetStartDate returns the StartDate field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) GetStartDate() time.Time { + if o == nil || isNil(o.StartDate) { + var ret time.Time + return ret + } + return *o.StartDate +} + +// GetStartDateOk returns a tuple with the StartDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) GetStartDateOk() (*time.Time, bool) { + if o == nil || isNil(o.StartDate) { + return nil, false + } + return o.StartDate, true +} + +// HasStartDate returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) HasStartDate() bool { + if o != nil && !isNil(o.StartDate) { + return true + } + + return false +} + +// SetStartDate gets a reference to the given time.Time and assigns it to the StartDate field. +func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) SetStartDate(v time.Time) { + o.StartDate = &v +} + +// GetReferenceId returns the ReferenceId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) GetReferenceId() int64 { + if o == nil || isNil(o.ReferenceId) { + var ret int64 + return ret + } + return *o.ReferenceId +} + +// GetReferenceIdOk returns a tuple with the ReferenceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) GetReferenceIdOk() (*int64, bool) { + if o == nil || isNil(o.ReferenceId) { + return nil, false + } + return o.ReferenceId, true +} + +// HasReferenceId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) HasReferenceId() bool { + if o != nil && !isNil(o.ReferenceId) { + return true + } + + return false +} + +// SetReferenceId gets a reference to the given int64 and assigns it to the ReferenceId field. +func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) SetReferenceId(v int64) { + o.ReferenceId = &v +} + +func (o KeyfactorApiModelsWorkflowsInstanceQueryResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsWorkflowsInstanceQueryResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.Status) { + toSerialize["Status"] = o.Status + } + if !isNil(o.CurrentStepId) { + toSerialize["CurrentStepId"] = o.CurrentStepId + } + if !isNil(o.StatusMessage) { + toSerialize["StatusMessage"] = o.StatusMessage + } + if !isNil(o.Definition) { + toSerialize["Definition"] = o.Definition + } + if !isNil(o.CurrentStepDisplayName) { + toSerialize["CurrentStepDisplayName"] = o.CurrentStepDisplayName + } + if !isNil(o.CurrentStepUniqueName) { + toSerialize["CurrentStepUniqueName"] = o.CurrentStepUniqueName + } + if !isNil(o.Title) { + toSerialize["Title"] = o.Title + } + if !isNil(o.LastModified) { + toSerialize["LastModified"] = o.LastModified + } + if !isNil(o.StartDate) { + toSerialize["StartDate"] = o.StartDate + } + if !isNil(o.ReferenceId) { + toSerialize["ReferenceId"] = o.ReferenceId + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsWorkflowsInstanceQueryResponse := _KeyfactorApiModelsWorkflowsInstanceQueryResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsWorkflowsInstanceQueryResponse); err == nil { + *o = KeyfactorApiModelsWorkflowsInstanceQueryResponse(varKeyfactorApiModelsWorkflowsInstanceQueryResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "Status") + delete(additionalProperties, "CurrentStepId") + delete(additionalProperties, "StatusMessage") + delete(additionalProperties, "Definition") + delete(additionalProperties, "CurrentStepDisplayName") + delete(additionalProperties, "CurrentStepUniqueName") + delete(additionalProperties, "Title") + delete(additionalProperties, "LastModified") + delete(additionalProperties, "StartDate") + delete(additionalProperties, "ReferenceId") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsWorkflowsInstanceQueryResponse struct { + value *KeyfactorApiModelsWorkflowsInstanceQueryResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsWorkflowsInstanceQueryResponse) Get() *KeyfactorApiModelsWorkflowsInstanceQueryResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsWorkflowsInstanceQueryResponse) Set(val *KeyfactorApiModelsWorkflowsInstanceQueryResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsWorkflowsInstanceQueryResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsWorkflowsInstanceQueryResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsWorkflowsInstanceQueryResponse(val *KeyfactorApiModelsWorkflowsInstanceQueryResponse) *NullableKeyfactorApiModelsWorkflowsInstanceQueryResponse { + return &NullableKeyfactorApiModelsWorkflowsInstanceQueryResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsWorkflowsInstanceQueryResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsWorkflowsInstanceQueryResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_workflows_instance_response.go b/v1/api/keyfactor/model_keyfactor_api_models_workflows_instance_response.go new file mode 100644 index 0000000..fd16d46 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_workflows_instance_response.go @@ -0,0 +1,640 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" + "time" +) + +// checks if the KeyfactorApiModelsWorkflowsInstanceResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsWorkflowsInstanceResponse{} + +// KeyfactorApiModelsWorkflowsInstanceResponse struct for KeyfactorApiModelsWorkflowsInstanceResponse +type KeyfactorApiModelsWorkflowsInstanceResponse struct { + Id *string `json:"Id,omitempty"` + Status *int32 `json:"Status,omitempty"` + CurrentStepId *string `json:"CurrentStepId,omitempty"` + StatusMessage *string `json:"StatusMessage,omitempty"` + Signals []KeyfactorApiModelsWorkflowsAvailableSignalResponse `json:"Signals,omitempty"` + Definition *KeyfactorApiModelsWorkflowsInstanceDefinitionResponse `json:"Definition,omitempty"` + CurrentStepDisplayName *string `json:"CurrentStepDisplayName,omitempty"` + CurrentStepUniqueName *string `json:"CurrentStepUniqueName,omitempty"` + Title *string `json:"Title,omitempty"` + LastModified *time.Time `json:"LastModified,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + InitialData map[string]map[string]interface{} `json:"InitialData,omitempty"` + CurrentStateData map[string]map[string]interface{} `json:"CurrentStateData,omitempty"` + ReferenceId *int64 `json:"ReferenceId,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsWorkflowsInstanceResponse KeyfactorApiModelsWorkflowsInstanceResponse + +// NewKeyfactorApiModelsWorkflowsInstanceResponse instantiates a new KeyfactorApiModelsWorkflowsInstanceResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsWorkflowsInstanceResponse() *KeyfactorApiModelsWorkflowsInstanceResponse { + this := KeyfactorApiModelsWorkflowsInstanceResponse{} + return &this +} + +// NewKeyfactorApiModelsWorkflowsInstanceResponseWithDefaults instantiates a new KeyfactorApiModelsWorkflowsInstanceResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsWorkflowsInstanceResponseWithDefaults() *KeyfactorApiModelsWorkflowsInstanceResponse { + this := KeyfactorApiModelsWorkflowsInstanceResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetId() string { + if o == nil || isNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetIdOk() (*string, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) SetId(v string) { + o.Id = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetStatus() int32 { + if o == nil || isNil(o.Status) { + var ret int32 + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetStatusOk() (*int32, bool) { + if o == nil || isNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) HasStatus() bool { + if o != nil && !isNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given int32 and assigns it to the Status field. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) SetStatus(v int32) { + o.Status = &v +} + +// GetCurrentStepId returns the CurrentStepId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetCurrentStepId() string { + if o == nil || isNil(o.CurrentStepId) { + var ret string + return ret + } + return *o.CurrentStepId +} + +// GetCurrentStepIdOk returns a tuple with the CurrentStepId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetCurrentStepIdOk() (*string, bool) { + if o == nil || isNil(o.CurrentStepId) { + return nil, false + } + return o.CurrentStepId, true +} + +// HasCurrentStepId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) HasCurrentStepId() bool { + if o != nil && !isNil(o.CurrentStepId) { + return true + } + + return false +} + +// SetCurrentStepId gets a reference to the given string and assigns it to the CurrentStepId field. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) SetCurrentStepId(v string) { + o.CurrentStepId = &v +} + +// GetStatusMessage returns the StatusMessage field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetStatusMessage() string { + if o == nil || isNil(o.StatusMessage) { + var ret string + return ret + } + return *o.StatusMessage +} + +// GetStatusMessageOk returns a tuple with the StatusMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetStatusMessageOk() (*string, bool) { + if o == nil || isNil(o.StatusMessage) { + return nil, false + } + return o.StatusMessage, true +} + +// HasStatusMessage returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) HasStatusMessage() bool { + if o != nil && !isNil(o.StatusMessage) { + return true + } + + return false +} + +// SetStatusMessage gets a reference to the given string and assigns it to the StatusMessage field. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) SetStatusMessage(v string) { + o.StatusMessage = &v +} + +// GetSignals returns the Signals field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetSignals() []KeyfactorApiModelsWorkflowsAvailableSignalResponse { + if o == nil || isNil(o.Signals) { + var ret []KeyfactorApiModelsWorkflowsAvailableSignalResponse + return ret + } + return o.Signals +} + +// GetSignalsOk returns a tuple with the Signals field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetSignalsOk() ([]KeyfactorApiModelsWorkflowsAvailableSignalResponse, bool) { + if o == nil || isNil(o.Signals) { + return nil, false + } + return o.Signals, true +} + +// HasSignals returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) HasSignals() bool { + if o != nil && !isNil(o.Signals) { + return true + } + + return false +} + +// SetSignals gets a reference to the given []KeyfactorApiModelsWorkflowsAvailableSignalResponse and assigns it to the Signals field. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) SetSignals(v []KeyfactorApiModelsWorkflowsAvailableSignalResponse) { + o.Signals = v +} + +// GetDefinition returns the Definition field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetDefinition() KeyfactorApiModelsWorkflowsInstanceDefinitionResponse { + if o == nil || isNil(o.Definition) { + var ret KeyfactorApiModelsWorkflowsInstanceDefinitionResponse + return ret + } + return *o.Definition +} + +// GetDefinitionOk returns a tuple with the Definition field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetDefinitionOk() (*KeyfactorApiModelsWorkflowsInstanceDefinitionResponse, bool) { + if o == nil || isNil(o.Definition) { + return nil, false + } + return o.Definition, true +} + +// HasDefinition returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) HasDefinition() bool { + if o != nil && !isNil(o.Definition) { + return true + } + + return false +} + +// SetDefinition gets a reference to the given KeyfactorApiModelsWorkflowsInstanceDefinitionResponse and assigns it to the Definition field. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) SetDefinition(v KeyfactorApiModelsWorkflowsInstanceDefinitionResponse) { + o.Definition = &v +} + +// GetCurrentStepDisplayName returns the CurrentStepDisplayName field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetCurrentStepDisplayName() string { + if o == nil || isNil(o.CurrentStepDisplayName) { + var ret string + return ret + } + return *o.CurrentStepDisplayName +} + +// GetCurrentStepDisplayNameOk returns a tuple with the CurrentStepDisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetCurrentStepDisplayNameOk() (*string, bool) { + if o == nil || isNil(o.CurrentStepDisplayName) { + return nil, false + } + return o.CurrentStepDisplayName, true +} + +// HasCurrentStepDisplayName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) HasCurrentStepDisplayName() bool { + if o != nil && !isNil(o.CurrentStepDisplayName) { + return true + } + + return false +} + +// SetCurrentStepDisplayName gets a reference to the given string and assigns it to the CurrentStepDisplayName field. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) SetCurrentStepDisplayName(v string) { + o.CurrentStepDisplayName = &v +} + +// GetCurrentStepUniqueName returns the CurrentStepUniqueName field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetCurrentStepUniqueName() string { + if o == nil || isNil(o.CurrentStepUniqueName) { + var ret string + return ret + } + return *o.CurrentStepUniqueName +} + +// GetCurrentStepUniqueNameOk returns a tuple with the CurrentStepUniqueName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetCurrentStepUniqueNameOk() (*string, bool) { + if o == nil || isNil(o.CurrentStepUniqueName) { + return nil, false + } + return o.CurrentStepUniqueName, true +} + +// HasCurrentStepUniqueName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) HasCurrentStepUniqueName() bool { + if o != nil && !isNil(o.CurrentStepUniqueName) { + return true + } + + return false +} + +// SetCurrentStepUniqueName gets a reference to the given string and assigns it to the CurrentStepUniqueName field. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) SetCurrentStepUniqueName(v string) { + o.CurrentStepUniqueName = &v +} + +// GetTitle returns the Title field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetTitle() string { + if o == nil || isNil(o.Title) { + var ret string + return ret + } + return *o.Title +} + +// GetTitleOk returns a tuple with the Title field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetTitleOk() (*string, bool) { + if o == nil || isNil(o.Title) { + return nil, false + } + return o.Title, true +} + +// HasTitle returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) HasTitle() bool { + if o != nil && !isNil(o.Title) { + return true + } + + return false +} + +// SetTitle gets a reference to the given string and assigns it to the Title field. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) SetTitle(v string) { + o.Title = &v +} + +// GetLastModified returns the LastModified field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetLastModified() time.Time { + if o == nil || isNil(o.LastModified) { + var ret time.Time + return ret + } + return *o.LastModified +} + +// GetLastModifiedOk returns a tuple with the LastModified field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetLastModifiedOk() (*time.Time, bool) { + if o == nil || isNil(o.LastModified) { + return nil, false + } + return o.LastModified, true +} + +// HasLastModified returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) HasLastModified() bool { + if o != nil && !isNil(o.LastModified) { + return true + } + + return false +} + +// SetLastModified gets a reference to the given time.Time and assigns it to the LastModified field. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) SetLastModified(v time.Time) { + o.LastModified = &v +} + +// GetStartDate returns the StartDate field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetStartDate() time.Time { + if o == nil || isNil(o.StartDate) { + var ret time.Time + return ret + } + return *o.StartDate +} + +// GetStartDateOk returns a tuple with the StartDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetStartDateOk() (*time.Time, bool) { + if o == nil || isNil(o.StartDate) { + return nil, false + } + return o.StartDate, true +} + +// HasStartDate returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) HasStartDate() bool { + if o != nil && !isNil(o.StartDate) { + return true + } + + return false +} + +// SetStartDate gets a reference to the given time.Time and assigns it to the StartDate field. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) SetStartDate(v time.Time) { + o.StartDate = &v +} + +// GetInitialData returns the InitialData field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetInitialData() map[string]map[string]interface{} { + if o == nil || isNil(o.InitialData) { + var ret map[string]map[string]interface{} + return ret + } + return o.InitialData +} + +// GetInitialDataOk returns a tuple with the InitialData field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetInitialDataOk() (map[string]map[string]interface{}, bool) { + if o == nil || isNil(o.InitialData) { + return map[string]map[string]interface{}{}, false + } + return o.InitialData, true +} + +// HasInitialData returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) HasInitialData() bool { + if o != nil && !isNil(o.InitialData) { + return true + } + + return false +} + +// SetInitialData gets a reference to the given map[string]map[string]interface{} and assigns it to the InitialData field. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) SetInitialData(v map[string]map[string]interface{}) { + o.InitialData = v +} + +// GetCurrentStateData returns the CurrentStateData field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetCurrentStateData() map[string]map[string]interface{} { + if o == nil || isNil(o.CurrentStateData) { + var ret map[string]map[string]interface{} + return ret + } + return o.CurrentStateData +} + +// GetCurrentStateDataOk returns a tuple with the CurrentStateData field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetCurrentStateDataOk() (map[string]map[string]interface{}, bool) { + if o == nil || isNil(o.CurrentStateData) { + return map[string]map[string]interface{}{}, false + } + return o.CurrentStateData, true +} + +// HasCurrentStateData returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) HasCurrentStateData() bool { + if o != nil && !isNil(o.CurrentStateData) { + return true + } + + return false +} + +// SetCurrentStateData gets a reference to the given map[string]map[string]interface{} and assigns it to the CurrentStateData field. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) SetCurrentStateData(v map[string]map[string]interface{}) { + o.CurrentStateData = v +} + +// GetReferenceId returns the ReferenceId field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetReferenceId() int64 { + if o == nil || isNil(o.ReferenceId) { + var ret int64 + return ret + } + return *o.ReferenceId +} + +// GetReferenceIdOk returns a tuple with the ReferenceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetReferenceIdOk() (*int64, bool) { + if o == nil || isNil(o.ReferenceId) { + return nil, false + } + return o.ReferenceId, true +} + +// HasReferenceId returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) HasReferenceId() bool { + if o != nil && !isNil(o.ReferenceId) { + return true + } + + return false +} + +// SetReferenceId gets a reference to the given int64 and assigns it to the ReferenceId field. +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) SetReferenceId(v int64) { + o.ReferenceId = &v +} + +func (o KeyfactorApiModelsWorkflowsInstanceResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsWorkflowsInstanceResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.Status) { + toSerialize["Status"] = o.Status + } + if !isNil(o.CurrentStepId) { + toSerialize["CurrentStepId"] = o.CurrentStepId + } + if !isNil(o.StatusMessage) { + toSerialize["StatusMessage"] = o.StatusMessage + } + if !isNil(o.Signals) { + toSerialize["Signals"] = o.Signals + } + if !isNil(o.Definition) { + toSerialize["Definition"] = o.Definition + } + if !isNil(o.CurrentStepDisplayName) { + toSerialize["CurrentStepDisplayName"] = o.CurrentStepDisplayName + } + if !isNil(o.CurrentStepUniqueName) { + toSerialize["CurrentStepUniqueName"] = o.CurrentStepUniqueName + } + if !isNil(o.Title) { + toSerialize["Title"] = o.Title + } + if !isNil(o.LastModified) { + toSerialize["LastModified"] = o.LastModified + } + if !isNil(o.StartDate) { + toSerialize["StartDate"] = o.StartDate + } + if !isNil(o.InitialData) { + toSerialize["InitialData"] = o.InitialData + } + if !isNil(o.CurrentStateData) { + toSerialize["CurrentStateData"] = o.CurrentStateData + } + if !isNil(o.ReferenceId) { + toSerialize["ReferenceId"] = o.ReferenceId + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsWorkflowsInstanceResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsWorkflowsInstanceResponse := _KeyfactorApiModelsWorkflowsInstanceResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsWorkflowsInstanceResponse); err == nil { + *o = KeyfactorApiModelsWorkflowsInstanceResponse(varKeyfactorApiModelsWorkflowsInstanceResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "Status") + delete(additionalProperties, "CurrentStepId") + delete(additionalProperties, "StatusMessage") + delete(additionalProperties, "Signals") + delete(additionalProperties, "Definition") + delete(additionalProperties, "CurrentStepDisplayName") + delete(additionalProperties, "CurrentStepUniqueName") + delete(additionalProperties, "Title") + delete(additionalProperties, "LastModified") + delete(additionalProperties, "StartDate") + delete(additionalProperties, "InitialData") + delete(additionalProperties, "CurrentStateData") + delete(additionalProperties, "ReferenceId") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsWorkflowsInstanceResponse struct { + value *KeyfactorApiModelsWorkflowsInstanceResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsWorkflowsInstanceResponse) Get() *KeyfactorApiModelsWorkflowsInstanceResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsWorkflowsInstanceResponse) Set(val *KeyfactorApiModelsWorkflowsInstanceResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsWorkflowsInstanceResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsWorkflowsInstanceResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsWorkflowsInstanceResponse(val *KeyfactorApiModelsWorkflowsInstanceResponse) *NullableKeyfactorApiModelsWorkflowsInstanceResponse { + return &NullableKeyfactorApiModelsWorkflowsInstanceResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsWorkflowsInstanceResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsWorkflowsInstanceResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_workflows_parameter_definition_response.go b/v1/api/keyfactor/model_keyfactor_api_models_workflows_parameter_definition_response.go new file mode 100644 index 0000000..ae41666 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_workflows_parameter_definition_response.go @@ -0,0 +1,417 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsWorkflowsParameterDefinitionResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsWorkflowsParameterDefinitionResponse{} + +// KeyfactorApiModelsWorkflowsParameterDefinitionResponse struct for KeyfactorApiModelsWorkflowsParameterDefinitionResponse +type KeyfactorApiModelsWorkflowsParameterDefinitionResponse struct { + DisplayName *string `json:"DisplayName,omitempty"` + ParameterType *int32 `json:"ParameterType,omitempty"` + Required *bool `json:"Required,omitempty"` + DefaultValue *string `json:"DefaultValue,omitempty"` + ControlType *int32 `json:"ControlType,omitempty"` + PotentialValues *map[string]string `json:"PotentialValues,omitempty"` + SupportTokenReplacement *bool `json:"SupportTokenReplacement,omitempty"` + DependsOn *map[string]string `json:"DependsOn,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsWorkflowsParameterDefinitionResponse KeyfactorApiModelsWorkflowsParameterDefinitionResponse + +// NewKeyfactorApiModelsWorkflowsParameterDefinitionResponse instantiates a new KeyfactorApiModelsWorkflowsParameterDefinitionResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsWorkflowsParameterDefinitionResponse() *KeyfactorApiModelsWorkflowsParameterDefinitionResponse { + this := KeyfactorApiModelsWorkflowsParameterDefinitionResponse{} + return &this +} + +// NewKeyfactorApiModelsWorkflowsParameterDefinitionResponseWithDefaults instantiates a new KeyfactorApiModelsWorkflowsParameterDefinitionResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsWorkflowsParameterDefinitionResponseWithDefaults() *KeyfactorApiModelsWorkflowsParameterDefinitionResponse { + this := KeyfactorApiModelsWorkflowsParameterDefinitionResponse{} + return &this +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) GetDisplayName() string { + if o == nil || isNil(o.DisplayName) { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) GetDisplayNameOk() (*string, bool) { + if o == nil || isNil(o.DisplayName) { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) HasDisplayName() bool { + if o != nil && !isNil(o.DisplayName) { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetParameterType returns the ParameterType field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) GetParameterType() int32 { + if o == nil || isNil(o.ParameterType) { + var ret int32 + return ret + } + return *o.ParameterType +} + +// GetParameterTypeOk returns a tuple with the ParameterType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) GetParameterTypeOk() (*int32, bool) { + if o == nil || isNil(o.ParameterType) { + return nil, false + } + return o.ParameterType, true +} + +// HasParameterType returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) HasParameterType() bool { + if o != nil && !isNil(o.ParameterType) { + return true + } + + return false +} + +// SetParameterType gets a reference to the given int32 and assigns it to the ParameterType field. +func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) SetParameterType(v int32) { + o.ParameterType = &v +} + +// GetRequired returns the Required field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) GetRequired() bool { + if o == nil || isNil(o.Required) { + var ret bool + return ret + } + return *o.Required +} + +// GetRequiredOk returns a tuple with the Required field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) GetRequiredOk() (*bool, bool) { + if o == nil || isNil(o.Required) { + return nil, false + } + return o.Required, true +} + +// HasRequired returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) HasRequired() bool { + if o != nil && !isNil(o.Required) { + return true + } + + return false +} + +// SetRequired gets a reference to the given bool and assigns it to the Required field. +func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) SetRequired(v bool) { + o.Required = &v +} + +// GetDefaultValue returns the DefaultValue field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) GetDefaultValue() string { + if o == nil || isNil(o.DefaultValue) { + var ret string + return ret + } + return *o.DefaultValue +} + +// GetDefaultValueOk returns a tuple with the DefaultValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) GetDefaultValueOk() (*string, bool) { + if o == nil || isNil(o.DefaultValue) { + return nil, false + } + return o.DefaultValue, true +} + +// HasDefaultValue returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) HasDefaultValue() bool { + if o != nil && !isNil(o.DefaultValue) { + return true + } + + return false +} + +// SetDefaultValue gets a reference to the given string and assigns it to the DefaultValue field. +func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) SetDefaultValue(v string) { + o.DefaultValue = &v +} + +// GetControlType returns the ControlType field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) GetControlType() int32 { + if o == nil || isNil(o.ControlType) { + var ret int32 + return ret + } + return *o.ControlType +} + +// GetControlTypeOk returns a tuple with the ControlType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) GetControlTypeOk() (*int32, bool) { + if o == nil || isNil(o.ControlType) { + return nil, false + } + return o.ControlType, true +} + +// HasControlType returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) HasControlType() bool { + if o != nil && !isNil(o.ControlType) { + return true + } + + return false +} + +// SetControlType gets a reference to the given int32 and assigns it to the ControlType field. +func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) SetControlType(v int32) { + o.ControlType = &v +} + +// GetPotentialValues returns the PotentialValues field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) GetPotentialValues() map[string]string { + if o == nil || isNil(o.PotentialValues) { + var ret map[string]string + return ret + } + return *o.PotentialValues +} + +// GetPotentialValuesOk returns a tuple with the PotentialValues field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) GetPotentialValuesOk() (*map[string]string, bool) { + if o == nil || isNil(o.PotentialValues) { + return nil, false + } + return o.PotentialValues, true +} + +// HasPotentialValues returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) HasPotentialValues() bool { + if o != nil && !isNil(o.PotentialValues) { + return true + } + + return false +} + +// SetPotentialValues gets a reference to the given map[string]string and assigns it to the PotentialValues field. +func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) SetPotentialValues(v map[string]string) { + o.PotentialValues = &v +} + +// GetSupportTokenReplacement returns the SupportTokenReplacement field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) GetSupportTokenReplacement() bool { + if o == nil || isNil(o.SupportTokenReplacement) { + var ret bool + return ret + } + return *o.SupportTokenReplacement +} + +// GetSupportTokenReplacementOk returns a tuple with the SupportTokenReplacement field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) GetSupportTokenReplacementOk() (*bool, bool) { + if o == nil || isNil(o.SupportTokenReplacement) { + return nil, false + } + return o.SupportTokenReplacement, true +} + +// HasSupportTokenReplacement returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) HasSupportTokenReplacement() bool { + if o != nil && !isNil(o.SupportTokenReplacement) { + return true + } + + return false +} + +// SetSupportTokenReplacement gets a reference to the given bool and assigns it to the SupportTokenReplacement field. +func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) SetSupportTokenReplacement(v bool) { + o.SupportTokenReplacement = &v +} + +// GetDependsOn returns the DependsOn field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) GetDependsOn() map[string]string { + if o == nil || isNil(o.DependsOn) { + var ret map[string]string + return ret + } + return *o.DependsOn +} + +// GetDependsOnOk returns a tuple with the DependsOn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) GetDependsOnOk() (*map[string]string, bool) { + if o == nil || isNil(o.DependsOn) { + return nil, false + } + return o.DependsOn, true +} + +// HasDependsOn returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) HasDependsOn() bool { + if o != nil && !isNil(o.DependsOn) { + return true + } + + return false +} + +// SetDependsOn gets a reference to the given map[string]string and assigns it to the DependsOn field. +func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) SetDependsOn(v map[string]string) { + o.DependsOn = &v +} + +func (o KeyfactorApiModelsWorkflowsParameterDefinitionResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsWorkflowsParameterDefinitionResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.DisplayName) { + toSerialize["DisplayName"] = o.DisplayName + } + if !isNil(o.ParameterType) { + toSerialize["ParameterType"] = o.ParameterType + } + if !isNil(o.Required) { + toSerialize["Required"] = o.Required + } + if !isNil(o.DefaultValue) { + toSerialize["DefaultValue"] = o.DefaultValue + } + if !isNil(o.ControlType) { + toSerialize["ControlType"] = o.ControlType + } + if !isNil(o.PotentialValues) { + toSerialize["PotentialValues"] = o.PotentialValues + } + if !isNil(o.SupportTokenReplacement) { + toSerialize["SupportTokenReplacement"] = o.SupportTokenReplacement + } + if !isNil(o.DependsOn) { + toSerialize["DependsOn"] = o.DependsOn + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsWorkflowsParameterDefinitionResponse := _KeyfactorApiModelsWorkflowsParameterDefinitionResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsWorkflowsParameterDefinitionResponse); err == nil { + *o = KeyfactorApiModelsWorkflowsParameterDefinitionResponse(varKeyfactorApiModelsWorkflowsParameterDefinitionResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "DisplayName") + delete(additionalProperties, "ParameterType") + delete(additionalProperties, "Required") + delete(additionalProperties, "DefaultValue") + delete(additionalProperties, "ControlType") + delete(additionalProperties, "PotentialValues") + delete(additionalProperties, "SupportTokenReplacement") + delete(additionalProperties, "DependsOn") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsWorkflowsParameterDefinitionResponse struct { + value *KeyfactorApiModelsWorkflowsParameterDefinitionResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsWorkflowsParameterDefinitionResponse) Get() *KeyfactorApiModelsWorkflowsParameterDefinitionResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsWorkflowsParameterDefinitionResponse) Set(val *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsWorkflowsParameterDefinitionResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsWorkflowsParameterDefinitionResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsWorkflowsParameterDefinitionResponse(val *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) *NullableKeyfactorApiModelsWorkflowsParameterDefinitionResponse { + return &NullableKeyfactorApiModelsWorkflowsParameterDefinitionResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsWorkflowsParameterDefinitionResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsWorkflowsParameterDefinitionResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_workflows_signal_configuration_request.go b/v1/api/keyfactor/model_keyfactor_api_models_workflows_signal_configuration_request.go new file mode 100644 index 0000000..8f2ae35 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_workflows_signal_configuration_request.go @@ -0,0 +1,197 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsWorkflowsSignalConfigurationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsWorkflowsSignalConfigurationRequest{} + +// KeyfactorApiModelsWorkflowsSignalConfigurationRequest struct for KeyfactorApiModelsWorkflowsSignalConfigurationRequest +type KeyfactorApiModelsWorkflowsSignalConfigurationRequest struct { + // The name of the signal. + SignalName *string `json:"SignalName,omitempty"` + // The roles that are allowed to send the signal. + RoleIds []int32 `json:"RoleIds,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsWorkflowsSignalConfigurationRequest KeyfactorApiModelsWorkflowsSignalConfigurationRequest + +// NewKeyfactorApiModelsWorkflowsSignalConfigurationRequest instantiates a new KeyfactorApiModelsWorkflowsSignalConfigurationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsWorkflowsSignalConfigurationRequest() *KeyfactorApiModelsWorkflowsSignalConfigurationRequest { + this := KeyfactorApiModelsWorkflowsSignalConfigurationRequest{} + return &this +} + +// NewKeyfactorApiModelsWorkflowsSignalConfigurationRequestWithDefaults instantiates a new KeyfactorApiModelsWorkflowsSignalConfigurationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsWorkflowsSignalConfigurationRequestWithDefaults() *KeyfactorApiModelsWorkflowsSignalConfigurationRequest { + this := KeyfactorApiModelsWorkflowsSignalConfigurationRequest{} + return &this +} + +// GetSignalName returns the SignalName field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsSignalConfigurationRequest) GetSignalName() string { + if o == nil || isNil(o.SignalName) { + var ret string + return ret + } + return *o.SignalName +} + +// GetSignalNameOk returns a tuple with the SignalName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsSignalConfigurationRequest) GetSignalNameOk() (*string, bool) { + if o == nil || isNil(o.SignalName) { + return nil, false + } + return o.SignalName, true +} + +// HasSignalName returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsSignalConfigurationRequest) HasSignalName() bool { + if o != nil && !isNil(o.SignalName) { + return true + } + + return false +} + +// SetSignalName gets a reference to the given string and assigns it to the SignalName field. +func (o *KeyfactorApiModelsWorkflowsSignalConfigurationRequest) SetSignalName(v string) { + o.SignalName = &v +} + +// GetRoleIds returns the RoleIds field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsSignalConfigurationRequest) GetRoleIds() []int32 { + if o == nil || isNil(o.RoleIds) { + var ret []int32 + return ret + } + return o.RoleIds +} + +// GetRoleIdsOk returns a tuple with the RoleIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsSignalConfigurationRequest) GetRoleIdsOk() ([]int32, bool) { + if o == nil || isNil(o.RoleIds) { + return nil, false + } + return o.RoleIds, true +} + +// HasRoleIds returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsSignalConfigurationRequest) HasRoleIds() bool { + if o != nil && !isNil(o.RoleIds) { + return true + } + + return false +} + +// SetRoleIds gets a reference to the given []int32 and assigns it to the RoleIds field. +func (o *KeyfactorApiModelsWorkflowsSignalConfigurationRequest) SetRoleIds(v []int32) { + o.RoleIds = v +} + +func (o KeyfactorApiModelsWorkflowsSignalConfigurationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsWorkflowsSignalConfigurationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.SignalName) { + toSerialize["SignalName"] = o.SignalName + } + if !isNil(o.RoleIds) { + toSerialize["RoleIds"] = o.RoleIds + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsWorkflowsSignalConfigurationRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsWorkflowsSignalConfigurationRequest := _KeyfactorApiModelsWorkflowsSignalConfigurationRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsWorkflowsSignalConfigurationRequest); err == nil { + *o = KeyfactorApiModelsWorkflowsSignalConfigurationRequest(varKeyfactorApiModelsWorkflowsSignalConfigurationRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "SignalName") + delete(additionalProperties, "RoleIds") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsWorkflowsSignalConfigurationRequest struct { + value *KeyfactorApiModelsWorkflowsSignalConfigurationRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsWorkflowsSignalConfigurationRequest) Get() *KeyfactorApiModelsWorkflowsSignalConfigurationRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsWorkflowsSignalConfigurationRequest) Set(val *KeyfactorApiModelsWorkflowsSignalConfigurationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsWorkflowsSignalConfigurationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsWorkflowsSignalConfigurationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsWorkflowsSignalConfigurationRequest(val *KeyfactorApiModelsWorkflowsSignalConfigurationRequest) *NullableKeyfactorApiModelsWorkflowsSignalConfigurationRequest { + return &NullableKeyfactorApiModelsWorkflowsSignalConfigurationRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsWorkflowsSignalConfigurationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsWorkflowsSignalConfigurationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_workflows_signal_definition_response.go b/v1/api/keyfactor/model_keyfactor_api_models_workflows_signal_definition_response.go new file mode 100644 index 0000000..4dacc34 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_workflows_signal_definition_response.go @@ -0,0 +1,158 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsWorkflowsSignalDefinitionResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsWorkflowsSignalDefinitionResponse{} + +// KeyfactorApiModelsWorkflowsSignalDefinitionResponse struct for KeyfactorApiModelsWorkflowsSignalDefinitionResponse +type KeyfactorApiModelsWorkflowsSignalDefinitionResponse struct { + InputParameters *map[string]KeyfactorApiModelsWorkflowsParameterDefinitionResponse `json:"InputParameters,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsWorkflowsSignalDefinitionResponse KeyfactorApiModelsWorkflowsSignalDefinitionResponse + +// NewKeyfactorApiModelsWorkflowsSignalDefinitionResponse instantiates a new KeyfactorApiModelsWorkflowsSignalDefinitionResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsWorkflowsSignalDefinitionResponse() *KeyfactorApiModelsWorkflowsSignalDefinitionResponse { + this := KeyfactorApiModelsWorkflowsSignalDefinitionResponse{} + return &this +} + +// NewKeyfactorApiModelsWorkflowsSignalDefinitionResponseWithDefaults instantiates a new KeyfactorApiModelsWorkflowsSignalDefinitionResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsWorkflowsSignalDefinitionResponseWithDefaults() *KeyfactorApiModelsWorkflowsSignalDefinitionResponse { + this := KeyfactorApiModelsWorkflowsSignalDefinitionResponse{} + return &this +} + +// GetInputParameters returns the InputParameters field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsSignalDefinitionResponse) GetInputParameters() map[string]KeyfactorApiModelsWorkflowsParameterDefinitionResponse { + if o == nil || isNil(o.InputParameters) { + var ret map[string]KeyfactorApiModelsWorkflowsParameterDefinitionResponse + return ret + } + return *o.InputParameters +} + +// GetInputParametersOk returns a tuple with the InputParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsSignalDefinitionResponse) GetInputParametersOk() (*map[string]KeyfactorApiModelsWorkflowsParameterDefinitionResponse, bool) { + if o == nil || isNil(o.InputParameters) { + return nil, false + } + return o.InputParameters, true +} + +// HasInputParameters returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsSignalDefinitionResponse) HasInputParameters() bool { + if o != nil && !isNil(o.InputParameters) { + return true + } + + return false +} + +// SetInputParameters gets a reference to the given map[string]KeyfactorApiModelsWorkflowsParameterDefinitionResponse and assigns it to the InputParameters field. +func (o *KeyfactorApiModelsWorkflowsSignalDefinitionResponse) SetInputParameters(v map[string]KeyfactorApiModelsWorkflowsParameterDefinitionResponse) { + o.InputParameters = &v +} + +func (o KeyfactorApiModelsWorkflowsSignalDefinitionResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsWorkflowsSignalDefinitionResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.InputParameters) { + toSerialize["InputParameters"] = o.InputParameters + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsWorkflowsSignalDefinitionResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsWorkflowsSignalDefinitionResponse := _KeyfactorApiModelsWorkflowsSignalDefinitionResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsWorkflowsSignalDefinitionResponse); err == nil { + *o = KeyfactorApiModelsWorkflowsSignalDefinitionResponse(varKeyfactorApiModelsWorkflowsSignalDefinitionResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "InputParameters") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsWorkflowsSignalDefinitionResponse struct { + value *KeyfactorApiModelsWorkflowsSignalDefinitionResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsWorkflowsSignalDefinitionResponse) Get() *KeyfactorApiModelsWorkflowsSignalDefinitionResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsWorkflowsSignalDefinitionResponse) Set(val *KeyfactorApiModelsWorkflowsSignalDefinitionResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsWorkflowsSignalDefinitionResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsWorkflowsSignalDefinitionResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsWorkflowsSignalDefinitionResponse(val *KeyfactorApiModelsWorkflowsSignalDefinitionResponse) *NullableKeyfactorApiModelsWorkflowsSignalDefinitionResponse { + return &NullableKeyfactorApiModelsWorkflowsSignalDefinitionResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsWorkflowsSignalDefinitionResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsWorkflowsSignalDefinitionResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_workflows_signal_request.go b/v1/api/keyfactor/model_keyfactor_api_models_workflows_signal_request.go new file mode 100644 index 0000000..1f5c717 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_workflows_signal_request.go @@ -0,0 +1,197 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsWorkflowsSignalRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsWorkflowsSignalRequest{} + +// KeyfactorApiModelsWorkflowsSignalRequest struct for KeyfactorApiModelsWorkflowsSignalRequest +type KeyfactorApiModelsWorkflowsSignalRequest struct { + // The signal key. This is expected to be in a format like \"STEP_NAME.SIGNAL_NAME\" + SignalKey *string `json:"SignalKey,omitempty"` + // Arbitrary data to associate with the signal. + Data map[string]map[string]interface{} `json:"Data,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsWorkflowsSignalRequest KeyfactorApiModelsWorkflowsSignalRequest + +// NewKeyfactorApiModelsWorkflowsSignalRequest instantiates a new KeyfactorApiModelsWorkflowsSignalRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsWorkflowsSignalRequest() *KeyfactorApiModelsWorkflowsSignalRequest { + this := KeyfactorApiModelsWorkflowsSignalRequest{} + return &this +} + +// NewKeyfactorApiModelsWorkflowsSignalRequestWithDefaults instantiates a new KeyfactorApiModelsWorkflowsSignalRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsWorkflowsSignalRequestWithDefaults() *KeyfactorApiModelsWorkflowsSignalRequest { + this := KeyfactorApiModelsWorkflowsSignalRequest{} + return &this +} + +// GetSignalKey returns the SignalKey field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsSignalRequest) GetSignalKey() string { + if o == nil || isNil(o.SignalKey) { + var ret string + return ret + } + return *o.SignalKey +} + +// GetSignalKeyOk returns a tuple with the SignalKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsSignalRequest) GetSignalKeyOk() (*string, bool) { + if o == nil || isNil(o.SignalKey) { + return nil, false + } + return o.SignalKey, true +} + +// HasSignalKey returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsSignalRequest) HasSignalKey() bool { + if o != nil && !isNil(o.SignalKey) { + return true + } + + return false +} + +// SetSignalKey gets a reference to the given string and assigns it to the SignalKey field. +func (o *KeyfactorApiModelsWorkflowsSignalRequest) SetSignalKey(v string) { + o.SignalKey = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsSignalRequest) GetData() map[string]map[string]interface{} { + if o == nil || isNil(o.Data) { + var ret map[string]map[string]interface{} + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsSignalRequest) GetDataOk() (map[string]map[string]interface{}, bool) { + if o == nil || isNil(o.Data) { + return map[string]map[string]interface{}{}, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsSignalRequest) HasData() bool { + if o != nil && !isNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given map[string]map[string]interface{} and assigns it to the Data field. +func (o *KeyfactorApiModelsWorkflowsSignalRequest) SetData(v map[string]map[string]interface{}) { + o.Data = v +} + +func (o KeyfactorApiModelsWorkflowsSignalRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsWorkflowsSignalRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.SignalKey) { + toSerialize["SignalKey"] = o.SignalKey + } + if !isNil(o.Data) { + toSerialize["Data"] = o.Data + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsWorkflowsSignalRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsWorkflowsSignalRequest := _KeyfactorApiModelsWorkflowsSignalRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsWorkflowsSignalRequest); err == nil { + *o = KeyfactorApiModelsWorkflowsSignalRequest(varKeyfactorApiModelsWorkflowsSignalRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "SignalKey") + delete(additionalProperties, "Data") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsWorkflowsSignalRequest struct { + value *KeyfactorApiModelsWorkflowsSignalRequest + isSet bool +} + +func (v NullableKeyfactorApiModelsWorkflowsSignalRequest) Get() *KeyfactorApiModelsWorkflowsSignalRequest { + return v.value +} + +func (v *NullableKeyfactorApiModelsWorkflowsSignalRequest) Set(val *KeyfactorApiModelsWorkflowsSignalRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsWorkflowsSignalRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsWorkflowsSignalRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsWorkflowsSignalRequest(val *KeyfactorApiModelsWorkflowsSignalRequest) *NullableKeyfactorApiModelsWorkflowsSignalRequest { + return &NullableKeyfactorApiModelsWorkflowsSignalRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsWorkflowsSignalRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsWorkflowsSignalRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_models_workflows_workflow_type_query_response.go b/v1/api/keyfactor/model_keyfactor_api_models_workflows_workflow_type_query_response.go new file mode 100644 index 0000000..ef0b7ec --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_models_workflows_workflow_type_query_response.go @@ -0,0 +1,269 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse{} + +// KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse struct for KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse +type KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse struct { + WorkflowType *string `json:"WorkflowType,omitempty"` + KeyType *string `json:"KeyType,omitempty"` + ContextParameters []string `json:"ContextParameters,omitempty"` + BuiltInSteps []KeyfactorApiModelsWorkflowsAvailableStepResponse `json:"BuiltInSteps,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse + +// NewKeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse instantiates a new KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse() *KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse { + this := KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse{} + return &this +} + +// NewKeyfactorApiModelsWorkflowsWorkflowTypeQueryResponseWithDefaults instantiates a new KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiModelsWorkflowsWorkflowTypeQueryResponseWithDefaults() *KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse { + this := KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse{} + return &this +} + +// GetWorkflowType returns the WorkflowType field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse) GetWorkflowType() string { + if o == nil || isNil(o.WorkflowType) { + var ret string + return ret + } + return *o.WorkflowType +} + +// GetWorkflowTypeOk returns a tuple with the WorkflowType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse) GetWorkflowTypeOk() (*string, bool) { + if o == nil || isNil(o.WorkflowType) { + return nil, false + } + return o.WorkflowType, true +} + +// HasWorkflowType returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse) HasWorkflowType() bool { + if o != nil && !isNil(o.WorkflowType) { + return true + } + + return false +} + +// SetWorkflowType gets a reference to the given string and assigns it to the WorkflowType field. +func (o *KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse) SetWorkflowType(v string) { + o.WorkflowType = &v +} + +// GetKeyType returns the KeyType field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse) GetKeyType() string { + if o == nil || isNil(o.KeyType) { + var ret string + return ret + } + return *o.KeyType +} + +// GetKeyTypeOk returns a tuple with the KeyType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse) GetKeyTypeOk() (*string, bool) { + if o == nil || isNil(o.KeyType) { + return nil, false + } + return o.KeyType, true +} + +// HasKeyType returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse) HasKeyType() bool { + if o != nil && !isNil(o.KeyType) { + return true + } + + return false +} + +// SetKeyType gets a reference to the given string and assigns it to the KeyType field. +func (o *KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse) SetKeyType(v string) { + o.KeyType = &v +} + +// GetContextParameters returns the ContextParameters field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse) GetContextParameters() []string { + if o == nil || isNil(o.ContextParameters) { + var ret []string + return ret + } + return o.ContextParameters +} + +// GetContextParametersOk returns a tuple with the ContextParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse) GetContextParametersOk() ([]string, bool) { + if o == nil || isNil(o.ContextParameters) { + return nil, false + } + return o.ContextParameters, true +} + +// HasContextParameters returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse) HasContextParameters() bool { + if o != nil && !isNil(o.ContextParameters) { + return true + } + + return false +} + +// SetContextParameters gets a reference to the given []string and assigns it to the ContextParameters field. +func (o *KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse) SetContextParameters(v []string) { + o.ContextParameters = v +} + +// GetBuiltInSteps returns the BuiltInSteps field value if set, zero value otherwise. +func (o *KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse) GetBuiltInSteps() []KeyfactorApiModelsWorkflowsAvailableStepResponse { + if o == nil || isNil(o.BuiltInSteps) { + var ret []KeyfactorApiModelsWorkflowsAvailableStepResponse + return ret + } + return o.BuiltInSteps +} + +// GetBuiltInStepsOk returns a tuple with the BuiltInSteps field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse) GetBuiltInStepsOk() ([]KeyfactorApiModelsWorkflowsAvailableStepResponse, bool) { + if o == nil || isNil(o.BuiltInSteps) { + return nil, false + } + return o.BuiltInSteps, true +} + +// HasBuiltInSteps returns a boolean if a field has been set. +func (o *KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse) HasBuiltInSteps() bool { + if o != nil && !isNil(o.BuiltInSteps) { + return true + } + + return false +} + +// SetBuiltInSteps gets a reference to the given []KeyfactorApiModelsWorkflowsAvailableStepResponse and assigns it to the BuiltInSteps field. +func (o *KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse) SetBuiltInSteps(v []KeyfactorApiModelsWorkflowsAvailableStepResponse) { + o.BuiltInSteps = v +} + +func (o KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.WorkflowType) { + toSerialize["WorkflowType"] = o.WorkflowType + } + if !isNil(o.KeyType) { + toSerialize["KeyType"] = o.KeyType + } + if !isNil(o.ContextParameters) { + toSerialize["ContextParameters"] = o.ContextParameters + } + if !isNil(o.BuiltInSteps) { + toSerialize["BuiltInSteps"] = o.BuiltInSteps + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse := _KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse); err == nil { + *o = KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse(varKeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "WorkflowType") + delete(additionalProperties, "KeyType") + delete(additionalProperties, "ContextParameters") + delete(additionalProperties, "BuiltInSteps") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse struct { + value *KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse + isSet bool +} + +func (v NullableKeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse) Get() *KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse { + return v.value +} + +func (v *NullableKeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse) Set(val *KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse(val *KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse) *NullableKeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse { + return &NullableKeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_pam_provider_type_create_request.go b/v1/api/keyfactor/model_keyfactor_api_pam_provider_type_create_request.go new file mode 100644 index 0000000..b486026 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_pam_provider_type_create_request.go @@ -0,0 +1,186 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiPAMProviderTypeCreateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiPAMProviderTypeCreateRequest{} + +// KeyfactorApiPAMProviderTypeCreateRequest struct for KeyfactorApiPAMProviderTypeCreateRequest +type KeyfactorApiPAMProviderTypeCreateRequest struct { + Name string `json:"Name"` + Parameters []KeyfactorApiPAMProviderTypeParameterCreateRequest `json:"Parameters,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiPAMProviderTypeCreateRequest KeyfactorApiPAMProviderTypeCreateRequest + +// NewKeyfactorApiPAMProviderTypeCreateRequest instantiates a new KeyfactorApiPAMProviderTypeCreateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiPAMProviderTypeCreateRequest(name string) *KeyfactorApiPAMProviderTypeCreateRequest { + this := KeyfactorApiPAMProviderTypeCreateRequest{} + this.Name = name + return &this +} + +// NewKeyfactorApiPAMProviderTypeCreateRequestWithDefaults instantiates a new KeyfactorApiPAMProviderTypeCreateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiPAMProviderTypeCreateRequestWithDefaults() *KeyfactorApiPAMProviderTypeCreateRequest { + this := KeyfactorApiPAMProviderTypeCreateRequest{} + return &this +} + +// GetName returns the Name field value +func (o *KeyfactorApiPAMProviderTypeCreateRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiPAMProviderTypeCreateRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *KeyfactorApiPAMProviderTypeCreateRequest) SetName(v string) { + o.Name = v +} + +// GetParameters returns the Parameters field value if set, zero value otherwise. +func (o *KeyfactorApiPAMProviderTypeCreateRequest) GetParameters() []KeyfactorApiPAMProviderTypeParameterCreateRequest { + if o == nil || isNil(o.Parameters) { + var ret []KeyfactorApiPAMProviderTypeParameterCreateRequest + return ret + } + return o.Parameters +} + +// GetParametersOk returns a tuple with the Parameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiPAMProviderTypeCreateRequest) GetParametersOk() ([]KeyfactorApiPAMProviderTypeParameterCreateRequest, bool) { + if o == nil || isNil(o.Parameters) { + return nil, false + } + return o.Parameters, true +} + +// HasParameters returns a boolean if a field has been set. +func (o *KeyfactorApiPAMProviderTypeCreateRequest) HasParameters() bool { + if o != nil && !isNil(o.Parameters) { + return true + } + + return false +} + +// SetParameters gets a reference to the given []KeyfactorApiPAMProviderTypeParameterCreateRequest and assigns it to the Parameters field. +func (o *KeyfactorApiPAMProviderTypeCreateRequest) SetParameters(v []KeyfactorApiPAMProviderTypeParameterCreateRequest) { + o.Parameters = v +} + +func (o KeyfactorApiPAMProviderTypeCreateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiPAMProviderTypeCreateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Name"] = o.Name + if !isNil(o.Parameters) { + toSerialize["Parameters"] = o.Parameters + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiPAMProviderTypeCreateRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiPAMProviderTypeCreateRequest := _KeyfactorApiPAMProviderTypeCreateRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiPAMProviderTypeCreateRequest); err == nil { + *o = KeyfactorApiPAMProviderTypeCreateRequest(varKeyfactorApiPAMProviderTypeCreateRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Name") + delete(additionalProperties, "Parameters") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiPAMProviderTypeCreateRequest struct { + value *KeyfactorApiPAMProviderTypeCreateRequest + isSet bool +} + +func (v NullableKeyfactorApiPAMProviderTypeCreateRequest) Get() *KeyfactorApiPAMProviderTypeCreateRequest { + return v.value +} + +func (v *NullableKeyfactorApiPAMProviderTypeCreateRequest) Set(val *KeyfactorApiPAMProviderTypeCreateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiPAMProviderTypeCreateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiPAMProviderTypeCreateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiPAMProviderTypeCreateRequest(val *KeyfactorApiPAMProviderTypeCreateRequest) *NullableKeyfactorApiPAMProviderTypeCreateRequest { + return &NullableKeyfactorApiPAMProviderTypeCreateRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiPAMProviderTypeCreateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiPAMProviderTypeCreateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_pam_provider_type_parameter_create_request.go b/v1/api/keyfactor/model_keyfactor_api_pam_provider_type_parameter_create_request.go new file mode 100644 index 0000000..c0ebd7c --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_pam_provider_type_parameter_create_request.go @@ -0,0 +1,260 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiPAMProviderTypeParameterCreateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiPAMProviderTypeParameterCreateRequest{} + +// KeyfactorApiPAMProviderTypeParameterCreateRequest struct for KeyfactorApiPAMProviderTypeParameterCreateRequest +type KeyfactorApiPAMProviderTypeParameterCreateRequest struct { + Name string `json:"Name"` + DisplayName *string `json:"DisplayName,omitempty"` + DataType *int32 `json:"DataType,omitempty"` + InstanceLevel *bool `json:"InstanceLevel,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiPAMProviderTypeParameterCreateRequest KeyfactorApiPAMProviderTypeParameterCreateRequest + +// NewKeyfactorApiPAMProviderTypeParameterCreateRequest instantiates a new KeyfactorApiPAMProviderTypeParameterCreateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiPAMProviderTypeParameterCreateRequest(name string) *KeyfactorApiPAMProviderTypeParameterCreateRequest { + this := KeyfactorApiPAMProviderTypeParameterCreateRequest{} + this.Name = name + return &this +} + +// NewKeyfactorApiPAMProviderTypeParameterCreateRequestWithDefaults instantiates a new KeyfactorApiPAMProviderTypeParameterCreateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiPAMProviderTypeParameterCreateRequestWithDefaults() *KeyfactorApiPAMProviderTypeParameterCreateRequest { + this := KeyfactorApiPAMProviderTypeParameterCreateRequest{} + return &this +} + +// GetName returns the Name field value +func (o *KeyfactorApiPAMProviderTypeParameterCreateRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *KeyfactorApiPAMProviderTypeParameterCreateRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *KeyfactorApiPAMProviderTypeParameterCreateRequest) SetName(v string) { + o.Name = v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *KeyfactorApiPAMProviderTypeParameterCreateRequest) GetDisplayName() string { + if o == nil || isNil(o.DisplayName) { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiPAMProviderTypeParameterCreateRequest) GetDisplayNameOk() (*string, bool) { + if o == nil || isNil(o.DisplayName) { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *KeyfactorApiPAMProviderTypeParameterCreateRequest) HasDisplayName() bool { + if o != nil && !isNil(o.DisplayName) { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *KeyfactorApiPAMProviderTypeParameterCreateRequest) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetDataType returns the DataType field value if set, zero value otherwise. +func (o *KeyfactorApiPAMProviderTypeParameterCreateRequest) GetDataType() int32 { + if o == nil || isNil(o.DataType) { + var ret int32 + return ret + } + return *o.DataType +} + +// GetDataTypeOk returns a tuple with the DataType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiPAMProviderTypeParameterCreateRequest) GetDataTypeOk() (*int32, bool) { + if o == nil || isNil(o.DataType) { + return nil, false + } + return o.DataType, true +} + +// HasDataType returns a boolean if a field has been set. +func (o *KeyfactorApiPAMProviderTypeParameterCreateRequest) HasDataType() bool { + if o != nil && !isNil(o.DataType) { + return true + } + + return false +} + +// SetDataType gets a reference to the given int32 and assigns it to the DataType field. +func (o *KeyfactorApiPAMProviderTypeParameterCreateRequest) SetDataType(v int32) { + o.DataType = &v +} + +// GetInstanceLevel returns the InstanceLevel field value if set, zero value otherwise. +func (o *KeyfactorApiPAMProviderTypeParameterCreateRequest) GetInstanceLevel() bool { + if o == nil || isNil(o.InstanceLevel) { + var ret bool + return ret + } + return *o.InstanceLevel +} + +// GetInstanceLevelOk returns a tuple with the InstanceLevel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiPAMProviderTypeParameterCreateRequest) GetInstanceLevelOk() (*bool, bool) { + if o == nil || isNil(o.InstanceLevel) { + return nil, false + } + return o.InstanceLevel, true +} + +// HasInstanceLevel returns a boolean if a field has been set. +func (o *KeyfactorApiPAMProviderTypeParameterCreateRequest) HasInstanceLevel() bool { + if o != nil && !isNil(o.InstanceLevel) { + return true + } + + return false +} + +// SetInstanceLevel gets a reference to the given bool and assigns it to the InstanceLevel field. +func (o *KeyfactorApiPAMProviderTypeParameterCreateRequest) SetInstanceLevel(v bool) { + o.InstanceLevel = &v +} + +func (o KeyfactorApiPAMProviderTypeParameterCreateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiPAMProviderTypeParameterCreateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Name"] = o.Name + if !isNil(o.DisplayName) { + toSerialize["DisplayName"] = o.DisplayName + } + if !isNil(o.DataType) { + toSerialize["DataType"] = o.DataType + } + if !isNil(o.InstanceLevel) { + toSerialize["InstanceLevel"] = o.InstanceLevel + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiPAMProviderTypeParameterCreateRequest) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiPAMProviderTypeParameterCreateRequest := _KeyfactorApiPAMProviderTypeParameterCreateRequest{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiPAMProviderTypeParameterCreateRequest); err == nil { + *o = KeyfactorApiPAMProviderTypeParameterCreateRequest(varKeyfactorApiPAMProviderTypeParameterCreateRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Name") + delete(additionalProperties, "DisplayName") + delete(additionalProperties, "DataType") + delete(additionalProperties, "InstanceLevel") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiPAMProviderTypeParameterCreateRequest struct { + value *KeyfactorApiPAMProviderTypeParameterCreateRequest + isSet bool +} + +func (v NullableKeyfactorApiPAMProviderTypeParameterCreateRequest) Get() *KeyfactorApiPAMProviderTypeParameterCreateRequest { + return v.value +} + +func (v *NullableKeyfactorApiPAMProviderTypeParameterCreateRequest) Set(val *KeyfactorApiPAMProviderTypeParameterCreateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiPAMProviderTypeParameterCreateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiPAMProviderTypeParameterCreateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiPAMProviderTypeParameterCreateRequest(val *KeyfactorApiPAMProviderTypeParameterCreateRequest) *NullableKeyfactorApiPAMProviderTypeParameterCreateRequest { + return &NullableKeyfactorApiPAMProviderTypeParameterCreateRequest{value: val, isSet: true} +} + +func (v NullableKeyfactorApiPAMProviderTypeParameterCreateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiPAMProviderTypeParameterCreateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_pam_provider_type_parameter_response.go b/v1/api/keyfactor/model_keyfactor_api_pam_provider_type_parameter_response.go new file mode 100644 index 0000000..41aaa13 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_pam_provider_type_parameter_response.go @@ -0,0 +1,306 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiPAMProviderTypeParameterResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiPAMProviderTypeParameterResponse{} + +// KeyfactorApiPAMProviderTypeParameterResponse struct for KeyfactorApiPAMProviderTypeParameterResponse +type KeyfactorApiPAMProviderTypeParameterResponse struct { + Id *int32 `json:"Id,omitempty"` + Name *string `json:"Name,omitempty"` + DisplayName *string `json:"DisplayName,omitempty"` + DataType *int32 `json:"DataType,omitempty"` + InstanceLevel *bool `json:"InstanceLevel,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiPAMProviderTypeParameterResponse KeyfactorApiPAMProviderTypeParameterResponse + +// NewKeyfactorApiPAMProviderTypeParameterResponse instantiates a new KeyfactorApiPAMProviderTypeParameterResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiPAMProviderTypeParameterResponse() *KeyfactorApiPAMProviderTypeParameterResponse { + this := KeyfactorApiPAMProviderTypeParameterResponse{} + return &this +} + +// NewKeyfactorApiPAMProviderTypeParameterResponseWithDefaults instantiates a new KeyfactorApiPAMProviderTypeParameterResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiPAMProviderTypeParameterResponseWithDefaults() *KeyfactorApiPAMProviderTypeParameterResponse { + this := KeyfactorApiPAMProviderTypeParameterResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *KeyfactorApiPAMProviderTypeParameterResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiPAMProviderTypeParameterResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *KeyfactorApiPAMProviderTypeParameterResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *KeyfactorApiPAMProviderTypeParameterResponse) SetId(v int32) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *KeyfactorApiPAMProviderTypeParameterResponse) GetName() string { + if o == nil || isNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiPAMProviderTypeParameterResponse) GetNameOk() (*string, bool) { + if o == nil || isNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *KeyfactorApiPAMProviderTypeParameterResponse) HasName() bool { + if o != nil && !isNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *KeyfactorApiPAMProviderTypeParameterResponse) SetName(v string) { + o.Name = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *KeyfactorApiPAMProviderTypeParameterResponse) GetDisplayName() string { + if o == nil || isNil(o.DisplayName) { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiPAMProviderTypeParameterResponse) GetDisplayNameOk() (*string, bool) { + if o == nil || isNil(o.DisplayName) { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *KeyfactorApiPAMProviderTypeParameterResponse) HasDisplayName() bool { + if o != nil && !isNil(o.DisplayName) { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *KeyfactorApiPAMProviderTypeParameterResponse) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetDataType returns the DataType field value if set, zero value otherwise. +func (o *KeyfactorApiPAMProviderTypeParameterResponse) GetDataType() int32 { + if o == nil || isNil(o.DataType) { + var ret int32 + return ret + } + return *o.DataType +} + +// GetDataTypeOk returns a tuple with the DataType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiPAMProviderTypeParameterResponse) GetDataTypeOk() (*int32, bool) { + if o == nil || isNil(o.DataType) { + return nil, false + } + return o.DataType, true +} + +// HasDataType returns a boolean if a field has been set. +func (o *KeyfactorApiPAMProviderTypeParameterResponse) HasDataType() bool { + if o != nil && !isNil(o.DataType) { + return true + } + + return false +} + +// SetDataType gets a reference to the given int32 and assigns it to the DataType field. +func (o *KeyfactorApiPAMProviderTypeParameterResponse) SetDataType(v int32) { + o.DataType = &v +} + +// GetInstanceLevel returns the InstanceLevel field value if set, zero value otherwise. +func (o *KeyfactorApiPAMProviderTypeParameterResponse) GetInstanceLevel() bool { + if o == nil || isNil(o.InstanceLevel) { + var ret bool + return ret + } + return *o.InstanceLevel +} + +// GetInstanceLevelOk returns a tuple with the InstanceLevel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiPAMProviderTypeParameterResponse) GetInstanceLevelOk() (*bool, bool) { + if o == nil || isNil(o.InstanceLevel) { + return nil, false + } + return o.InstanceLevel, true +} + +// HasInstanceLevel returns a boolean if a field has been set. +func (o *KeyfactorApiPAMProviderTypeParameterResponse) HasInstanceLevel() bool { + if o != nil && !isNil(o.InstanceLevel) { + return true + } + + return false +} + +// SetInstanceLevel gets a reference to the given bool and assigns it to the InstanceLevel field. +func (o *KeyfactorApiPAMProviderTypeParameterResponse) SetInstanceLevel(v bool) { + o.InstanceLevel = &v +} + +func (o KeyfactorApiPAMProviderTypeParameterResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiPAMProviderTypeParameterResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.Name) { + toSerialize["Name"] = o.Name + } + if !isNil(o.DisplayName) { + toSerialize["DisplayName"] = o.DisplayName + } + if !isNil(o.DataType) { + toSerialize["DataType"] = o.DataType + } + if !isNil(o.InstanceLevel) { + toSerialize["InstanceLevel"] = o.InstanceLevel + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiPAMProviderTypeParameterResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiPAMProviderTypeParameterResponse := _KeyfactorApiPAMProviderTypeParameterResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiPAMProviderTypeParameterResponse); err == nil { + *o = KeyfactorApiPAMProviderTypeParameterResponse(varKeyfactorApiPAMProviderTypeParameterResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "Name") + delete(additionalProperties, "DisplayName") + delete(additionalProperties, "DataType") + delete(additionalProperties, "InstanceLevel") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiPAMProviderTypeParameterResponse struct { + value *KeyfactorApiPAMProviderTypeParameterResponse + isSet bool +} + +func (v NullableKeyfactorApiPAMProviderTypeParameterResponse) Get() *KeyfactorApiPAMProviderTypeParameterResponse { + return v.value +} + +func (v *NullableKeyfactorApiPAMProviderTypeParameterResponse) Set(val *KeyfactorApiPAMProviderTypeParameterResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiPAMProviderTypeParameterResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiPAMProviderTypeParameterResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiPAMProviderTypeParameterResponse(val *KeyfactorApiPAMProviderTypeParameterResponse) *NullableKeyfactorApiPAMProviderTypeParameterResponse { + return &NullableKeyfactorApiPAMProviderTypeParameterResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiPAMProviderTypeParameterResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiPAMProviderTypeParameterResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_keyfactor_api_pam_provider_type_response.go b/v1/api/keyfactor/model_keyfactor_api_pam_provider_type_response.go new file mode 100644 index 0000000..40da678 --- /dev/null +++ b/v1/api/keyfactor/model_keyfactor_api_pam_provider_type_response.go @@ -0,0 +1,232 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the KeyfactorApiPAMProviderTypeResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KeyfactorApiPAMProviderTypeResponse{} + +// KeyfactorApiPAMProviderTypeResponse struct for KeyfactorApiPAMProviderTypeResponse +type KeyfactorApiPAMProviderTypeResponse struct { + Id *string `json:"Id,omitempty"` + Name *string `json:"Name,omitempty"` + Parameters []KeyfactorApiPAMProviderTypeParameterResponse `json:"Parameters,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KeyfactorApiPAMProviderTypeResponse KeyfactorApiPAMProviderTypeResponse + +// NewKeyfactorApiPAMProviderTypeResponse instantiates a new KeyfactorApiPAMProviderTypeResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewKeyfactorApiPAMProviderTypeResponse() *KeyfactorApiPAMProviderTypeResponse { + this := KeyfactorApiPAMProviderTypeResponse{} + return &this +} + +// NewKeyfactorApiPAMProviderTypeResponseWithDefaults instantiates a new KeyfactorApiPAMProviderTypeResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewKeyfactorApiPAMProviderTypeResponseWithDefaults() *KeyfactorApiPAMProviderTypeResponse { + this := KeyfactorApiPAMProviderTypeResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *KeyfactorApiPAMProviderTypeResponse) GetId() string { + if o == nil || isNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiPAMProviderTypeResponse) GetIdOk() (*string, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *KeyfactorApiPAMProviderTypeResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *KeyfactorApiPAMProviderTypeResponse) SetId(v string) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *KeyfactorApiPAMProviderTypeResponse) GetName() string { + if o == nil || isNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiPAMProviderTypeResponse) GetNameOk() (*string, bool) { + if o == nil || isNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *KeyfactorApiPAMProviderTypeResponse) HasName() bool { + if o != nil && !isNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *KeyfactorApiPAMProviderTypeResponse) SetName(v string) { + o.Name = &v +} + +// GetParameters returns the Parameters field value if set, zero value otherwise. +func (o *KeyfactorApiPAMProviderTypeResponse) GetParameters() []KeyfactorApiPAMProviderTypeParameterResponse { + if o == nil || isNil(o.Parameters) { + var ret []KeyfactorApiPAMProviderTypeParameterResponse + return ret + } + return o.Parameters +} + +// GetParametersOk returns a tuple with the Parameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KeyfactorApiPAMProviderTypeResponse) GetParametersOk() ([]KeyfactorApiPAMProviderTypeParameterResponse, bool) { + if o == nil || isNil(o.Parameters) { + return nil, false + } + return o.Parameters, true +} + +// HasParameters returns a boolean if a field has been set. +func (o *KeyfactorApiPAMProviderTypeResponse) HasParameters() bool { + if o != nil && !isNil(o.Parameters) { + return true + } + + return false +} + +// SetParameters gets a reference to the given []KeyfactorApiPAMProviderTypeParameterResponse and assigns it to the Parameters field. +func (o *KeyfactorApiPAMProviderTypeResponse) SetParameters(v []KeyfactorApiPAMProviderTypeParameterResponse) { + o.Parameters = v +} + +func (o KeyfactorApiPAMProviderTypeResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KeyfactorApiPAMProviderTypeResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.Name) { + toSerialize["Name"] = o.Name + } + if !isNil(o.Parameters) { + toSerialize["Parameters"] = o.Parameters + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KeyfactorApiPAMProviderTypeResponse) UnmarshalJSON(bytes []byte) (err error) { + varKeyfactorApiPAMProviderTypeResponse := _KeyfactorApiPAMProviderTypeResponse{} + + if err = json.Unmarshal(bytes, &varKeyfactorApiPAMProviderTypeResponse); err == nil { + *o = KeyfactorApiPAMProviderTypeResponse(varKeyfactorApiPAMProviderTypeResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "Name") + delete(additionalProperties, "Parameters") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKeyfactorApiPAMProviderTypeResponse struct { + value *KeyfactorApiPAMProviderTypeResponse + isSet bool +} + +func (v NullableKeyfactorApiPAMProviderTypeResponse) Get() *KeyfactorApiPAMProviderTypeResponse { + return v.value +} + +func (v *NullableKeyfactorApiPAMProviderTypeResponse) Set(val *KeyfactorApiPAMProviderTypeResponse) { + v.value = val + v.isSet = true +} + +func (v NullableKeyfactorApiPAMProviderTypeResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableKeyfactorApiPAMProviderTypeResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKeyfactorApiPAMProviderTypeResponse(val *KeyfactorApiPAMProviderTypeResponse) *NullableKeyfactorApiPAMProviderTypeResponse { + return &NullableKeyfactorApiPAMProviderTypeResponse{value: val, isSet: true} +} + +func (v NullableKeyfactorApiPAMProviderTypeResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKeyfactorApiPAMProviderTypeResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v2/api/command/model_keyfactor_auditing_querying_audit_log_entry.go b/v1/api/keyfactor/model_keyfactor_auditing_querying_audit_log_entry.go similarity index 98% rename from v2/api/command/model_keyfactor_auditing_querying_audit_log_entry.go rename to v1/api/keyfactor/model_keyfactor_auditing_querying_audit_log_entry.go index 5aa4f8e..5c24ed5 100644 --- a/v2/api/command/model_keyfactor_auditing_querying_audit_log_entry.go +++ b/v1/api/keyfactor/model_keyfactor_auditing_querying_audit_log_entry.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "encoding/json" diff --git a/v2/api/command/model_keyfactor_common_scheduling_keyfactor_schedule.go b/v1/api/keyfactor/model_keyfactor_common_scheduling_keyfactor_schedule.go similarity index 97% rename from v2/api/command/model_keyfactor_common_scheduling_keyfactor_schedule.go rename to v1/api/keyfactor/model_keyfactor_common_scheduling_keyfactor_schedule.go index 76d49b2..cf180b3 100644 --- a/v2/api/command/model_keyfactor_common_scheduling_keyfactor_schedule.go +++ b/v1/api/keyfactor/model_keyfactor_common_scheduling_keyfactor_schedule.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "encoding/json" diff --git a/v2/api/command/model_keyfactor_common_scheduling_models_interval_model.go b/v1/api/keyfactor/model_keyfactor_common_scheduling_models_interval_model.go similarity index 95% rename from v2/api/command/model_keyfactor_common_scheduling_models_interval_model.go rename to v1/api/keyfactor/model_keyfactor_common_scheduling_models_interval_model.go index ed2978b..fe0d387 100644 --- a/v2/api/command/model_keyfactor_common_scheduling_models_interval_model.go +++ b/v1/api/keyfactor/model_keyfactor_common_scheduling_models_interval_model.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "encoding/json" diff --git a/v2/api/command/model_keyfactor_common_scheduling_models_monthly_model.go b/v1/api/keyfactor/model_keyfactor_common_scheduling_models_monthly_model.go similarity index 96% rename from v2/api/command/model_keyfactor_common_scheduling_models_monthly_model.go rename to v1/api/keyfactor/model_keyfactor_common_scheduling_models_monthly_model.go index ed23b3d..40060df 100644 --- a/v2/api/command/model_keyfactor_common_scheduling_models_monthly_model.go +++ b/v1/api/keyfactor/model_keyfactor_common_scheduling_models_monthly_model.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "encoding/json" diff --git a/v2/api/command/model_keyfactor_common_scheduling_models_time_model.go b/v1/api/keyfactor/model_keyfactor_common_scheduling_models_time_model.go similarity index 95% rename from v2/api/command/model_keyfactor_common_scheduling_models_time_model.go rename to v1/api/keyfactor/model_keyfactor_common_scheduling_models_time_model.go index 7a9923f..3a5b4c5 100644 --- a/v2/api/command/model_keyfactor_common_scheduling_models_time_model.go +++ b/v1/api/keyfactor/model_keyfactor_common_scheduling_models_time_model.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "encoding/json" diff --git a/v2/api/command/model_keyfactor_common_scheduling_models_weekly_model.go b/v1/api/keyfactor/model_keyfactor_common_scheduling_models_weekly_model.go similarity index 96% rename from v2/api/command/model_keyfactor_common_scheduling_models_weekly_model.go rename to v1/api/keyfactor/model_keyfactor_common_scheduling_models_weekly_model.go index 4c9efca..92df4e3 100644 --- a/v2/api/command/model_keyfactor_common_scheduling_models_weekly_model.go +++ b/v1/api/keyfactor/model_keyfactor_common_scheduling_models_weekly_model.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "encoding/json" diff --git a/v1/api/keyfactor/model_models_agents_agent_pool.go b/v1/api/keyfactor/model_models_agents_agent_pool.go new file mode 100644 index 0000000..2d1fed0 --- /dev/null +++ b/v1/api/keyfactor/model_models_agents_agent_pool.go @@ -0,0 +1,302 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsAgentsAgentPool type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsAgentsAgentPool{} + +// ModelsAgentsAgentPool Class representing an SSL agent pool +type ModelsAgentsAgentPool struct { + // GUID identifier of the agent pool + AgentPoolId *string `json:"AgentPoolId,omitempty"` + // Name of the agent pool + Name string `json:"Name"` + // Number of agents that can perform discovery jobs + DiscoverAgentsCount *int32 `json:"DiscoverAgentsCount,omitempty"` + // Number of agents that can perform monitoring jobs + MonitorAgentsCount *int32 `json:"MonitorAgentsCount,omitempty"` + // List of the agents assigned to the pool + Agents []ModelsAgentsAgentPoolAgent `json:"Agents,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsAgentsAgentPool ModelsAgentsAgentPool + +// NewModelsAgentsAgentPool instantiates a new ModelsAgentsAgentPool object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsAgentsAgentPool(name string) *ModelsAgentsAgentPool { + this := ModelsAgentsAgentPool{} + this.Name = name + return &this +} + +// NewModelsAgentsAgentPoolWithDefaults instantiates a new ModelsAgentsAgentPool object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsAgentsAgentPoolWithDefaults() *ModelsAgentsAgentPool { + this := ModelsAgentsAgentPool{} + return &this +} + +// GetAgentPoolId returns the AgentPoolId field value if set, zero value otherwise. +func (o *ModelsAgentsAgentPool) GetAgentPoolId() string { + if o == nil || isNil(o.AgentPoolId) { + var ret string + return ret + } + return *o.AgentPoolId +} + +// GetAgentPoolIdOk returns a tuple with the AgentPoolId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsAgentsAgentPool) GetAgentPoolIdOk() (*string, bool) { + if o == nil || isNil(o.AgentPoolId) { + return nil, false + } + return o.AgentPoolId, true +} + +// HasAgentPoolId returns a boolean if a field has been set. +func (o *ModelsAgentsAgentPool) HasAgentPoolId() bool { + if o != nil && !isNil(o.AgentPoolId) { + return true + } + + return false +} + +// SetAgentPoolId gets a reference to the given string and assigns it to the AgentPoolId field. +func (o *ModelsAgentsAgentPool) SetAgentPoolId(v string) { + o.AgentPoolId = &v +} + +// GetName returns the Name field value +func (o *ModelsAgentsAgentPool) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ModelsAgentsAgentPool) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ModelsAgentsAgentPool) SetName(v string) { + o.Name = v +} + +// GetDiscoverAgentsCount returns the DiscoverAgentsCount field value if set, zero value otherwise. +func (o *ModelsAgentsAgentPool) GetDiscoverAgentsCount() int32 { + if o == nil || isNil(o.DiscoverAgentsCount) { + var ret int32 + return ret + } + return *o.DiscoverAgentsCount +} + +// GetDiscoverAgentsCountOk returns a tuple with the DiscoverAgentsCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsAgentsAgentPool) GetDiscoverAgentsCountOk() (*int32, bool) { + if o == nil || isNil(o.DiscoverAgentsCount) { + return nil, false + } + return o.DiscoverAgentsCount, true +} + +// HasDiscoverAgentsCount returns a boolean if a field has been set. +func (o *ModelsAgentsAgentPool) HasDiscoverAgentsCount() bool { + if o != nil && !isNil(o.DiscoverAgentsCount) { + return true + } + + return false +} + +// SetDiscoverAgentsCount gets a reference to the given int32 and assigns it to the DiscoverAgentsCount field. +func (o *ModelsAgentsAgentPool) SetDiscoverAgentsCount(v int32) { + o.DiscoverAgentsCount = &v +} + +// GetMonitorAgentsCount returns the MonitorAgentsCount field value if set, zero value otherwise. +func (o *ModelsAgentsAgentPool) GetMonitorAgentsCount() int32 { + if o == nil || isNil(o.MonitorAgentsCount) { + var ret int32 + return ret + } + return *o.MonitorAgentsCount +} + +// GetMonitorAgentsCountOk returns a tuple with the MonitorAgentsCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsAgentsAgentPool) GetMonitorAgentsCountOk() (*int32, bool) { + if o == nil || isNil(o.MonitorAgentsCount) { + return nil, false + } + return o.MonitorAgentsCount, true +} + +// HasMonitorAgentsCount returns a boolean if a field has been set. +func (o *ModelsAgentsAgentPool) HasMonitorAgentsCount() bool { + if o != nil && !isNil(o.MonitorAgentsCount) { + return true + } + + return false +} + +// SetMonitorAgentsCount gets a reference to the given int32 and assigns it to the MonitorAgentsCount field. +func (o *ModelsAgentsAgentPool) SetMonitorAgentsCount(v int32) { + o.MonitorAgentsCount = &v +} + +// GetAgents returns the Agents field value if set, zero value otherwise. +func (o *ModelsAgentsAgentPool) GetAgents() []ModelsAgentsAgentPoolAgent { + if o == nil || isNil(o.Agents) { + var ret []ModelsAgentsAgentPoolAgent + return ret + } + return o.Agents +} + +// GetAgentsOk returns a tuple with the Agents field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsAgentsAgentPool) GetAgentsOk() ([]ModelsAgentsAgentPoolAgent, bool) { + if o == nil || isNil(o.Agents) { + return nil, false + } + return o.Agents, true +} + +// HasAgents returns a boolean if a field has been set. +func (o *ModelsAgentsAgentPool) HasAgents() bool { + if o != nil && !isNil(o.Agents) { + return true + } + + return false +} + +// SetAgents gets a reference to the given []ModelsAgentsAgentPoolAgent and assigns it to the Agents field. +func (o *ModelsAgentsAgentPool) SetAgents(v []ModelsAgentsAgentPoolAgent) { + o.Agents = v +} + +func (o ModelsAgentsAgentPool) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsAgentsAgentPool) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.AgentPoolId) { + toSerialize["AgentPoolId"] = o.AgentPoolId + } + toSerialize["Name"] = o.Name + if !isNil(o.DiscoverAgentsCount) { + toSerialize["DiscoverAgentsCount"] = o.DiscoverAgentsCount + } + if !isNil(o.MonitorAgentsCount) { + toSerialize["MonitorAgentsCount"] = o.MonitorAgentsCount + } + if !isNil(o.Agents) { + toSerialize["Agents"] = o.Agents + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsAgentsAgentPool) UnmarshalJSON(bytes []byte) (err error) { + varModelsAgentsAgentPool := _ModelsAgentsAgentPool{} + + if err = json.Unmarshal(bytes, &varModelsAgentsAgentPool); err == nil { + *o = ModelsAgentsAgentPool(varModelsAgentsAgentPool) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "AgentPoolId") + delete(additionalProperties, "Name") + delete(additionalProperties, "DiscoverAgentsCount") + delete(additionalProperties, "MonitorAgentsCount") + delete(additionalProperties, "Agents") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsAgentsAgentPool struct { + value *ModelsAgentsAgentPool + isSet bool +} + +func (v NullableModelsAgentsAgentPool) Get() *ModelsAgentsAgentPool { + return v.value +} + +func (v *NullableModelsAgentsAgentPool) Set(val *ModelsAgentsAgentPool) { + v.value = val + v.isSet = true +} + +func (v NullableModelsAgentsAgentPool) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsAgentsAgentPool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsAgentsAgentPool(val *ModelsAgentsAgentPool) *NullableModelsAgentsAgentPool { + return &NullableModelsAgentsAgentPool{value: val, isSet: true} +} + +func (v NullableModelsAgentsAgentPool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsAgentsAgentPool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_agents_agent_pool_agent.go b/v1/api/keyfactor/model_models_agents_agent_pool_agent.go new file mode 100644 index 0000000..bb19676 --- /dev/null +++ b/v1/api/keyfactor/model_models_agents_agent_pool_agent.go @@ -0,0 +1,380 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsAgentsAgentPoolAgent type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsAgentsAgentPoolAgent{} + +// ModelsAgentsAgentPoolAgent struct for ModelsAgentsAgentPoolAgent +type ModelsAgentsAgentPoolAgent struct { + AgentId *string `json:"AgentId,omitempty"` + EnableDiscover *bool `json:"EnableDiscover,omitempty"` + EnableMonitor *bool `json:"EnableMonitor,omitempty"` + Version *string `json:"Version,omitempty"` + AllowsDiscover *bool `json:"AllowsDiscover,omitempty"` + AllowsMonitor *bool `json:"AllowsMonitor,omitempty"` + ClientMachine *string `json:"ClientMachine,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsAgentsAgentPoolAgent ModelsAgentsAgentPoolAgent + +// NewModelsAgentsAgentPoolAgent instantiates a new ModelsAgentsAgentPoolAgent object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsAgentsAgentPoolAgent() *ModelsAgentsAgentPoolAgent { + this := ModelsAgentsAgentPoolAgent{} + return &this +} + +// NewModelsAgentsAgentPoolAgentWithDefaults instantiates a new ModelsAgentsAgentPoolAgent object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsAgentsAgentPoolAgentWithDefaults() *ModelsAgentsAgentPoolAgent { + this := ModelsAgentsAgentPoolAgent{} + return &this +} + +// GetAgentId returns the AgentId field value if set, zero value otherwise. +func (o *ModelsAgentsAgentPoolAgent) GetAgentId() string { + if o == nil || isNil(o.AgentId) { + var ret string + return ret + } + return *o.AgentId +} + +// GetAgentIdOk returns a tuple with the AgentId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsAgentsAgentPoolAgent) GetAgentIdOk() (*string, bool) { + if o == nil || isNil(o.AgentId) { + return nil, false + } + return o.AgentId, true +} + +// HasAgentId returns a boolean if a field has been set. +func (o *ModelsAgentsAgentPoolAgent) HasAgentId() bool { + if o != nil && !isNil(o.AgentId) { + return true + } + + return false +} + +// SetAgentId gets a reference to the given string and assigns it to the AgentId field. +func (o *ModelsAgentsAgentPoolAgent) SetAgentId(v string) { + o.AgentId = &v +} + +// GetEnableDiscover returns the EnableDiscover field value if set, zero value otherwise. +func (o *ModelsAgentsAgentPoolAgent) GetEnableDiscover() bool { + if o == nil || isNil(o.EnableDiscover) { + var ret bool + return ret + } + return *o.EnableDiscover +} + +// GetEnableDiscoverOk returns a tuple with the EnableDiscover field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsAgentsAgentPoolAgent) GetEnableDiscoverOk() (*bool, bool) { + if o == nil || isNil(o.EnableDiscover) { + return nil, false + } + return o.EnableDiscover, true +} + +// HasEnableDiscover returns a boolean if a field has been set. +func (o *ModelsAgentsAgentPoolAgent) HasEnableDiscover() bool { + if o != nil && !isNil(o.EnableDiscover) { + return true + } + + return false +} + +// SetEnableDiscover gets a reference to the given bool and assigns it to the EnableDiscover field. +func (o *ModelsAgentsAgentPoolAgent) SetEnableDiscover(v bool) { + o.EnableDiscover = &v +} + +// GetEnableMonitor returns the EnableMonitor field value if set, zero value otherwise. +func (o *ModelsAgentsAgentPoolAgent) GetEnableMonitor() bool { + if o == nil || isNil(o.EnableMonitor) { + var ret bool + return ret + } + return *o.EnableMonitor +} + +// GetEnableMonitorOk returns a tuple with the EnableMonitor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsAgentsAgentPoolAgent) GetEnableMonitorOk() (*bool, bool) { + if o == nil || isNil(o.EnableMonitor) { + return nil, false + } + return o.EnableMonitor, true +} + +// HasEnableMonitor returns a boolean if a field has been set. +func (o *ModelsAgentsAgentPoolAgent) HasEnableMonitor() bool { + if o != nil && !isNil(o.EnableMonitor) { + return true + } + + return false +} + +// SetEnableMonitor gets a reference to the given bool and assigns it to the EnableMonitor field. +func (o *ModelsAgentsAgentPoolAgent) SetEnableMonitor(v bool) { + o.EnableMonitor = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *ModelsAgentsAgentPoolAgent) GetVersion() string { + if o == nil || isNil(o.Version) { + var ret string + return ret + } + return *o.Version +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsAgentsAgentPoolAgent) GetVersionOk() (*string, bool) { + if o == nil || isNil(o.Version) { + return nil, false + } + return o.Version, true +} + +// HasVersion returns a boolean if a field has been set. +func (o *ModelsAgentsAgentPoolAgent) HasVersion() bool { + if o != nil && !isNil(o.Version) { + return true + } + + return false +} + +// SetVersion gets a reference to the given string and assigns it to the Version field. +func (o *ModelsAgentsAgentPoolAgent) SetVersion(v string) { + o.Version = &v +} + +// GetAllowsDiscover returns the AllowsDiscover field value if set, zero value otherwise. +func (o *ModelsAgentsAgentPoolAgent) GetAllowsDiscover() bool { + if o == nil || isNil(o.AllowsDiscover) { + var ret bool + return ret + } + return *o.AllowsDiscover +} + +// GetAllowsDiscoverOk returns a tuple with the AllowsDiscover field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsAgentsAgentPoolAgent) GetAllowsDiscoverOk() (*bool, bool) { + if o == nil || isNil(o.AllowsDiscover) { + return nil, false + } + return o.AllowsDiscover, true +} + +// HasAllowsDiscover returns a boolean if a field has been set. +func (o *ModelsAgentsAgentPoolAgent) HasAllowsDiscover() bool { + if o != nil && !isNil(o.AllowsDiscover) { + return true + } + + return false +} + +// SetAllowsDiscover gets a reference to the given bool and assigns it to the AllowsDiscover field. +func (o *ModelsAgentsAgentPoolAgent) SetAllowsDiscover(v bool) { + o.AllowsDiscover = &v +} + +// GetAllowsMonitor returns the AllowsMonitor field value if set, zero value otherwise. +func (o *ModelsAgentsAgentPoolAgent) GetAllowsMonitor() bool { + if o == nil || isNil(o.AllowsMonitor) { + var ret bool + return ret + } + return *o.AllowsMonitor +} + +// GetAllowsMonitorOk returns a tuple with the AllowsMonitor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsAgentsAgentPoolAgent) GetAllowsMonitorOk() (*bool, bool) { + if o == nil || isNil(o.AllowsMonitor) { + return nil, false + } + return o.AllowsMonitor, true +} + +// HasAllowsMonitor returns a boolean if a field has been set. +func (o *ModelsAgentsAgentPoolAgent) HasAllowsMonitor() bool { + if o != nil && !isNil(o.AllowsMonitor) { + return true + } + + return false +} + +// SetAllowsMonitor gets a reference to the given bool and assigns it to the AllowsMonitor field. +func (o *ModelsAgentsAgentPoolAgent) SetAllowsMonitor(v bool) { + o.AllowsMonitor = &v +} + +// GetClientMachine returns the ClientMachine field value if set, zero value otherwise. +func (o *ModelsAgentsAgentPoolAgent) GetClientMachine() string { + if o == nil || isNil(o.ClientMachine) { + var ret string + return ret + } + return *o.ClientMachine +} + +// GetClientMachineOk returns a tuple with the ClientMachine field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsAgentsAgentPoolAgent) GetClientMachineOk() (*string, bool) { + if o == nil || isNil(o.ClientMachine) { + return nil, false + } + return o.ClientMachine, true +} + +// HasClientMachine returns a boolean if a field has been set. +func (o *ModelsAgentsAgentPoolAgent) HasClientMachine() bool { + if o != nil && !isNil(o.ClientMachine) { + return true + } + + return false +} + +// SetClientMachine gets a reference to the given string and assigns it to the ClientMachine field. +func (o *ModelsAgentsAgentPoolAgent) SetClientMachine(v string) { + o.ClientMachine = &v +} + +func (o ModelsAgentsAgentPoolAgent) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsAgentsAgentPoolAgent) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.AgentId) { + toSerialize["AgentId"] = o.AgentId + } + if !isNil(o.EnableDiscover) { + toSerialize["EnableDiscover"] = o.EnableDiscover + } + if !isNil(o.EnableMonitor) { + toSerialize["EnableMonitor"] = o.EnableMonitor + } + if !isNil(o.Version) { + toSerialize["Version"] = o.Version + } + if !isNil(o.AllowsDiscover) { + toSerialize["AllowsDiscover"] = o.AllowsDiscover + } + if !isNil(o.AllowsMonitor) { + toSerialize["AllowsMonitor"] = o.AllowsMonitor + } + if !isNil(o.ClientMachine) { + toSerialize["ClientMachine"] = o.ClientMachine + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsAgentsAgentPoolAgent) UnmarshalJSON(bytes []byte) (err error) { + varModelsAgentsAgentPoolAgent := _ModelsAgentsAgentPoolAgent{} + + if err = json.Unmarshal(bytes, &varModelsAgentsAgentPoolAgent); err == nil { + *o = ModelsAgentsAgentPoolAgent(varModelsAgentsAgentPoolAgent) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "AgentId") + delete(additionalProperties, "EnableDiscover") + delete(additionalProperties, "EnableMonitor") + delete(additionalProperties, "Version") + delete(additionalProperties, "AllowsDiscover") + delete(additionalProperties, "AllowsMonitor") + delete(additionalProperties, "ClientMachine") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsAgentsAgentPoolAgent struct { + value *ModelsAgentsAgentPoolAgent + isSet bool +} + +func (v NullableModelsAgentsAgentPoolAgent) Get() *ModelsAgentsAgentPoolAgent { + return v.value +} + +func (v *NullableModelsAgentsAgentPoolAgent) Set(val *ModelsAgentsAgentPoolAgent) { + v.value = val + v.isSet = true +} + +func (v NullableModelsAgentsAgentPoolAgent) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsAgentsAgentPoolAgent) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsAgentsAgentPoolAgent(val *ModelsAgentsAgentPoolAgent) *NullableModelsAgentsAgentPoolAgent { + return &NullableModelsAgentsAgentPoolAgent{value: val, isSet: true} +} + +func (v NullableModelsAgentsAgentPoolAgent) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsAgentsAgentPoolAgent) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_cert_store_locations_certificate_locations_group.go b/v1/api/keyfactor/model_models_cert_store_locations_certificate_locations_group.go new file mode 100644 index 0000000..93c01e4 --- /dev/null +++ b/v1/api/keyfactor/model_models_cert_store_locations_certificate_locations_group.go @@ -0,0 +1,263 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsCertStoreLocationsCertificateLocationsGroup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsCertStoreLocationsCertificateLocationsGroup{} + +// ModelsCertStoreLocationsCertificateLocationsGroup struct for ModelsCertStoreLocationsCertificateLocationsGroup +type ModelsCertStoreLocationsCertificateLocationsGroup struct { + StoreType *string `json:"StoreType,omitempty"` + StoreTypeId *int32 `json:"StoreTypeId,omitempty"` + StoreCount *int32 `json:"StoreCount,omitempty"` + Locations []ModelsCertStoreLocationsCertificateStoreLocationsDetail `json:"Locations,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsCertStoreLocationsCertificateLocationsGroup ModelsCertStoreLocationsCertificateLocationsGroup + +// NewModelsCertStoreLocationsCertificateLocationsGroup instantiates a new ModelsCertStoreLocationsCertificateLocationsGroup object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsCertStoreLocationsCertificateLocationsGroup() *ModelsCertStoreLocationsCertificateLocationsGroup { + this := ModelsCertStoreLocationsCertificateLocationsGroup{} + return &this +} + +// NewModelsCertStoreLocationsCertificateLocationsGroupWithDefaults instantiates a new ModelsCertStoreLocationsCertificateLocationsGroup object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsCertStoreLocationsCertificateLocationsGroupWithDefaults() *ModelsCertStoreLocationsCertificateLocationsGroup { + this := ModelsCertStoreLocationsCertificateLocationsGroup{} + return &this +} + +// GetStoreType returns the StoreType field value if set, zero value otherwise. +func (o *ModelsCertStoreLocationsCertificateLocationsGroup) GetStoreType() string { + if o == nil || isNil(o.StoreType) { + var ret string + return ret + } + return *o.StoreType +} + +// GetStoreTypeOk returns a tuple with the StoreType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertStoreLocationsCertificateLocationsGroup) GetStoreTypeOk() (*string, bool) { + if o == nil || isNil(o.StoreType) { + return nil, false + } + return o.StoreType, true +} + +// HasStoreType returns a boolean if a field has been set. +func (o *ModelsCertStoreLocationsCertificateLocationsGroup) HasStoreType() bool { + if o != nil && !isNil(o.StoreType) { + return true + } + + return false +} + +// SetStoreType gets a reference to the given string and assigns it to the StoreType field. +func (o *ModelsCertStoreLocationsCertificateLocationsGroup) SetStoreType(v string) { + o.StoreType = &v +} + +// GetStoreTypeId returns the StoreTypeId field value if set, zero value otherwise. +func (o *ModelsCertStoreLocationsCertificateLocationsGroup) GetStoreTypeId() int32 { + if o == nil || isNil(o.StoreTypeId) { + var ret int32 + return ret + } + return *o.StoreTypeId +} + +// GetStoreTypeIdOk returns a tuple with the StoreTypeId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertStoreLocationsCertificateLocationsGroup) GetStoreTypeIdOk() (*int32, bool) { + if o == nil || isNil(o.StoreTypeId) { + return nil, false + } + return o.StoreTypeId, true +} + +// HasStoreTypeId returns a boolean if a field has been set. +func (o *ModelsCertStoreLocationsCertificateLocationsGroup) HasStoreTypeId() bool { + if o != nil && !isNil(o.StoreTypeId) { + return true + } + + return false +} + +// SetStoreTypeId gets a reference to the given int32 and assigns it to the StoreTypeId field. +func (o *ModelsCertStoreLocationsCertificateLocationsGroup) SetStoreTypeId(v int32) { + o.StoreTypeId = &v +} + +// GetStoreCount returns the StoreCount field value if set, zero value otherwise. +func (o *ModelsCertStoreLocationsCertificateLocationsGroup) GetStoreCount() int32 { + if o == nil || isNil(o.StoreCount) { + var ret int32 + return ret + } + return *o.StoreCount +} + +// GetStoreCountOk returns a tuple with the StoreCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertStoreLocationsCertificateLocationsGroup) GetStoreCountOk() (*int32, bool) { + if o == nil || isNil(o.StoreCount) { + return nil, false + } + return o.StoreCount, true +} + +// HasStoreCount returns a boolean if a field has been set. +func (o *ModelsCertStoreLocationsCertificateLocationsGroup) HasStoreCount() bool { + if o != nil && !isNil(o.StoreCount) { + return true + } + + return false +} + +// SetStoreCount gets a reference to the given int32 and assigns it to the StoreCount field. +func (o *ModelsCertStoreLocationsCertificateLocationsGroup) SetStoreCount(v int32) { + o.StoreCount = &v +} + +// GetLocations returns the Locations field value if set, zero value otherwise. +func (o *ModelsCertStoreLocationsCertificateLocationsGroup) GetLocations() []ModelsCertStoreLocationsCertificateStoreLocationsDetail { + if o == nil || isNil(o.Locations) { + var ret []ModelsCertStoreLocationsCertificateStoreLocationsDetail + return ret + } + return o.Locations +} + +// GetLocationsOk returns a tuple with the Locations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertStoreLocationsCertificateLocationsGroup) GetLocationsOk() ([]ModelsCertStoreLocationsCertificateStoreLocationsDetail, bool) { + if o == nil || isNil(o.Locations) { + return nil, false + } + return o.Locations, true +} + +// HasLocations returns a boolean if a field has been set. +func (o *ModelsCertStoreLocationsCertificateLocationsGroup) HasLocations() bool { + if o != nil && !isNil(o.Locations) { + return true + } + + return false +} + +// SetLocations gets a reference to the given []ModelsCertStoreLocationsCertificateStoreLocationsDetail and assigns it to the Locations field. +func (o *ModelsCertStoreLocationsCertificateLocationsGroup) SetLocations(v []ModelsCertStoreLocationsCertificateStoreLocationsDetail) { + o.Locations = v +} + +func (o ModelsCertStoreLocationsCertificateLocationsGroup) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsCertStoreLocationsCertificateLocationsGroup) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + // skip: StoreType is readOnly + // skip: StoreTypeId is readOnly + // skip: StoreCount is readOnly + if !isNil(o.Locations) { + toSerialize["Locations"] = o.Locations + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsCertStoreLocationsCertificateLocationsGroup) UnmarshalJSON(bytes []byte) (err error) { + varModelsCertStoreLocationsCertificateLocationsGroup := _ModelsCertStoreLocationsCertificateLocationsGroup{} + + if err = json.Unmarshal(bytes, &varModelsCertStoreLocationsCertificateLocationsGroup); err == nil { + *o = ModelsCertStoreLocationsCertificateLocationsGroup(varModelsCertStoreLocationsCertificateLocationsGroup) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "StoreType") + delete(additionalProperties, "StoreTypeId") + delete(additionalProperties, "StoreCount") + delete(additionalProperties, "Locations") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsCertStoreLocationsCertificateLocationsGroup struct { + value *ModelsCertStoreLocationsCertificateLocationsGroup + isSet bool +} + +func (v NullableModelsCertStoreLocationsCertificateLocationsGroup) Get() *ModelsCertStoreLocationsCertificateLocationsGroup { + return v.value +} + +func (v *NullableModelsCertStoreLocationsCertificateLocationsGroup) Set(val *ModelsCertStoreLocationsCertificateLocationsGroup) { + v.value = val + v.isSet = true +} + +func (v NullableModelsCertStoreLocationsCertificateLocationsGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsCertStoreLocationsCertificateLocationsGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsCertStoreLocationsCertificateLocationsGroup(val *ModelsCertStoreLocationsCertificateLocationsGroup) *NullableModelsCertStoreLocationsCertificateLocationsGroup { + return &NullableModelsCertStoreLocationsCertificateLocationsGroup{value: val, isSet: true} +} + +func (v NullableModelsCertStoreLocationsCertificateLocationsGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsCertStoreLocationsCertificateLocationsGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_cert_store_locations_certificate_store_locations_detail.go b/v1/api/keyfactor/model_models_cert_store_locations_certificate_store_locations_detail.go new file mode 100644 index 0000000..eb74cef --- /dev/null +++ b/v1/api/keyfactor/model_models_cert_store_locations_certificate_store_locations_detail.go @@ -0,0 +1,454 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsCertStoreLocationsCertificateStoreLocationsDetail type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsCertStoreLocationsCertificateStoreLocationsDetail{} + +// ModelsCertStoreLocationsCertificateStoreLocationsDetail struct for ModelsCertStoreLocationsCertificateStoreLocationsDetail +type ModelsCertStoreLocationsCertificateStoreLocationsDetail struct { + StoreId *string `json:"StoreId,omitempty"` + StoreTypeId *int32 `json:"StoreTypeId,omitempty"` + ClientMachine *string `json:"ClientMachine,omitempty"` + StorePath *string `json:"StorePath,omitempty"` + AgentPool *string `json:"AgentPool,omitempty"` + Alias *string `json:"Alias,omitempty"` + IPAddress *string `json:"IPAddress,omitempty"` + Port *int32 `json:"Port,omitempty"` + NetworkName *string `json:"NetworkName,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsCertStoreLocationsCertificateStoreLocationsDetail ModelsCertStoreLocationsCertificateStoreLocationsDetail + +// NewModelsCertStoreLocationsCertificateStoreLocationsDetail instantiates a new ModelsCertStoreLocationsCertificateStoreLocationsDetail object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsCertStoreLocationsCertificateStoreLocationsDetail() *ModelsCertStoreLocationsCertificateStoreLocationsDetail { + this := ModelsCertStoreLocationsCertificateStoreLocationsDetail{} + return &this +} + +// NewModelsCertStoreLocationsCertificateStoreLocationsDetailWithDefaults instantiates a new ModelsCertStoreLocationsCertificateStoreLocationsDetail object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsCertStoreLocationsCertificateStoreLocationsDetailWithDefaults() *ModelsCertStoreLocationsCertificateStoreLocationsDetail { + this := ModelsCertStoreLocationsCertificateStoreLocationsDetail{} + return &this +} + +// GetStoreId returns the StoreId field value if set, zero value otherwise. +func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) GetStoreId() string { + if o == nil || isNil(o.StoreId) { + var ret string + return ret + } + return *o.StoreId +} + +// GetStoreIdOk returns a tuple with the StoreId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) GetStoreIdOk() (*string, bool) { + if o == nil || isNil(o.StoreId) { + return nil, false + } + return o.StoreId, true +} + +// HasStoreId returns a boolean if a field has been set. +func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) HasStoreId() bool { + if o != nil && !isNil(o.StoreId) { + return true + } + + return false +} + +// SetStoreId gets a reference to the given string and assigns it to the StoreId field. +func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) SetStoreId(v string) { + o.StoreId = &v +} + +// GetStoreTypeId returns the StoreTypeId field value if set, zero value otherwise. +func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) GetStoreTypeId() int32 { + if o == nil || isNil(o.StoreTypeId) { + var ret int32 + return ret + } + return *o.StoreTypeId +} + +// GetStoreTypeIdOk returns a tuple with the StoreTypeId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) GetStoreTypeIdOk() (*int32, bool) { + if o == nil || isNil(o.StoreTypeId) { + return nil, false + } + return o.StoreTypeId, true +} + +// HasStoreTypeId returns a boolean if a field has been set. +func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) HasStoreTypeId() bool { + if o != nil && !isNil(o.StoreTypeId) { + return true + } + + return false +} + +// SetStoreTypeId gets a reference to the given int32 and assigns it to the StoreTypeId field. +func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) SetStoreTypeId(v int32) { + o.StoreTypeId = &v +} + +// GetClientMachine returns the ClientMachine field value if set, zero value otherwise. +func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) GetClientMachine() string { + if o == nil || isNil(o.ClientMachine) { + var ret string + return ret + } + return *o.ClientMachine +} + +// GetClientMachineOk returns a tuple with the ClientMachine field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) GetClientMachineOk() (*string, bool) { + if o == nil || isNil(o.ClientMachine) { + return nil, false + } + return o.ClientMachine, true +} + +// HasClientMachine returns a boolean if a field has been set. +func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) HasClientMachine() bool { + if o != nil && !isNil(o.ClientMachine) { + return true + } + + return false +} + +// SetClientMachine gets a reference to the given string and assigns it to the ClientMachine field. +func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) SetClientMachine(v string) { + o.ClientMachine = &v +} + +// GetStorePath returns the StorePath field value if set, zero value otherwise. +func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) GetStorePath() string { + if o == nil || isNil(o.StorePath) { + var ret string + return ret + } + return *o.StorePath +} + +// GetStorePathOk returns a tuple with the StorePath field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) GetStorePathOk() (*string, bool) { + if o == nil || isNil(o.StorePath) { + return nil, false + } + return o.StorePath, true +} + +// HasStorePath returns a boolean if a field has been set. +func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) HasStorePath() bool { + if o != nil && !isNil(o.StorePath) { + return true + } + + return false +} + +// SetStorePath gets a reference to the given string and assigns it to the StorePath field. +func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) SetStorePath(v string) { + o.StorePath = &v +} + +// GetAgentPool returns the AgentPool field value if set, zero value otherwise. +func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) GetAgentPool() string { + if o == nil || isNil(o.AgentPool) { + var ret string + return ret + } + return *o.AgentPool +} + +// GetAgentPoolOk returns a tuple with the AgentPool field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) GetAgentPoolOk() (*string, bool) { + if o == nil || isNil(o.AgentPool) { + return nil, false + } + return o.AgentPool, true +} + +// HasAgentPool returns a boolean if a field has been set. +func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) HasAgentPool() bool { + if o != nil && !isNil(o.AgentPool) { + return true + } + + return false +} + +// SetAgentPool gets a reference to the given string and assigns it to the AgentPool field. +func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) SetAgentPool(v string) { + o.AgentPool = &v +} + +// GetAlias returns the Alias field value if set, zero value otherwise. +func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) GetAlias() string { + if o == nil || isNil(o.Alias) { + var ret string + return ret + } + return *o.Alias +} + +// GetAliasOk returns a tuple with the Alias field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) GetAliasOk() (*string, bool) { + if o == nil || isNil(o.Alias) { + return nil, false + } + return o.Alias, true +} + +// HasAlias returns a boolean if a field has been set. +func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) HasAlias() bool { + if o != nil && !isNil(o.Alias) { + return true + } + + return false +} + +// SetAlias gets a reference to the given string and assigns it to the Alias field. +func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) SetAlias(v string) { + o.Alias = &v +} + +// GetIPAddress returns the IPAddress field value if set, zero value otherwise. +func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) GetIPAddress() string { + if o == nil || isNil(o.IPAddress) { + var ret string + return ret + } + return *o.IPAddress +} + +// GetIPAddressOk returns a tuple with the IPAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) GetIPAddressOk() (*string, bool) { + if o == nil || isNil(o.IPAddress) { + return nil, false + } + return o.IPAddress, true +} + +// HasIPAddress returns a boolean if a field has been set. +func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) HasIPAddress() bool { + if o != nil && !isNil(o.IPAddress) { + return true + } + + return false +} + +// SetIPAddress gets a reference to the given string and assigns it to the IPAddress field. +func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) SetIPAddress(v string) { + o.IPAddress = &v +} + +// GetPort returns the Port field value if set, zero value otherwise. +func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) GetPort() int32 { + if o == nil || isNil(o.Port) { + var ret int32 + return ret + } + return *o.Port +} + +// GetPortOk returns a tuple with the Port field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) GetPortOk() (*int32, bool) { + if o == nil || isNil(o.Port) { + return nil, false + } + return o.Port, true +} + +// HasPort returns a boolean if a field has been set. +func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) HasPort() bool { + if o != nil && !isNil(o.Port) { + return true + } + + return false +} + +// SetPort gets a reference to the given int32 and assigns it to the Port field. +func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) SetPort(v int32) { + o.Port = &v +} + +// GetNetworkName returns the NetworkName field value if set, zero value otherwise. +func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) GetNetworkName() string { + if o == nil || isNil(o.NetworkName) { + var ret string + return ret + } + return *o.NetworkName +} + +// GetNetworkNameOk returns a tuple with the NetworkName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) GetNetworkNameOk() (*string, bool) { + if o == nil || isNil(o.NetworkName) { + return nil, false + } + return o.NetworkName, true +} + +// HasNetworkName returns a boolean if a field has been set. +func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) HasNetworkName() bool { + if o != nil && !isNil(o.NetworkName) { + return true + } + + return false +} + +// SetNetworkName gets a reference to the given string and assigns it to the NetworkName field. +func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) SetNetworkName(v string) { + o.NetworkName = &v +} + +func (o ModelsCertStoreLocationsCertificateStoreLocationsDetail) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsCertStoreLocationsCertificateStoreLocationsDetail) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.StoreId) { + toSerialize["StoreId"] = o.StoreId + } + if !isNil(o.StoreTypeId) { + toSerialize["StoreTypeId"] = o.StoreTypeId + } + if !isNil(o.ClientMachine) { + toSerialize["ClientMachine"] = o.ClientMachine + } + if !isNil(o.StorePath) { + toSerialize["StorePath"] = o.StorePath + } + if !isNil(o.AgentPool) { + toSerialize["AgentPool"] = o.AgentPool + } + if !isNil(o.Alias) { + toSerialize["Alias"] = o.Alias + } + if !isNil(o.IPAddress) { + toSerialize["IPAddress"] = o.IPAddress + } + if !isNil(o.Port) { + toSerialize["Port"] = o.Port + } + if !isNil(o.NetworkName) { + toSerialize["NetworkName"] = o.NetworkName + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) UnmarshalJSON(bytes []byte) (err error) { + varModelsCertStoreLocationsCertificateStoreLocationsDetail := _ModelsCertStoreLocationsCertificateStoreLocationsDetail{} + + if err = json.Unmarshal(bytes, &varModelsCertStoreLocationsCertificateStoreLocationsDetail); err == nil { + *o = ModelsCertStoreLocationsCertificateStoreLocationsDetail(varModelsCertStoreLocationsCertificateStoreLocationsDetail) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "StoreId") + delete(additionalProperties, "StoreTypeId") + delete(additionalProperties, "ClientMachine") + delete(additionalProperties, "StorePath") + delete(additionalProperties, "AgentPool") + delete(additionalProperties, "Alias") + delete(additionalProperties, "IPAddress") + delete(additionalProperties, "Port") + delete(additionalProperties, "NetworkName") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsCertStoreLocationsCertificateStoreLocationsDetail struct { + value *ModelsCertStoreLocationsCertificateStoreLocationsDetail + isSet bool +} + +func (v NullableModelsCertStoreLocationsCertificateStoreLocationsDetail) Get() *ModelsCertStoreLocationsCertificateStoreLocationsDetail { + return v.value +} + +func (v *NullableModelsCertStoreLocationsCertificateStoreLocationsDetail) Set(val *ModelsCertStoreLocationsCertificateStoreLocationsDetail) { + v.value = val + v.isSet = true +} + +func (v NullableModelsCertStoreLocationsCertificateStoreLocationsDetail) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsCertStoreLocationsCertificateStoreLocationsDetail) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsCertStoreLocationsCertificateStoreLocationsDetail(val *ModelsCertStoreLocationsCertificateStoreLocationsDetail) *NullableModelsCertStoreLocationsCertificateStoreLocationsDetail { + return &NullableModelsCertStoreLocationsCertificateStoreLocationsDetail{value: val, isSet: true} +} + +func (v NullableModelsCertStoreLocationsCertificateStoreLocationsDetail) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsCertStoreLocationsCertificateStoreLocationsDetail) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_cert_store_new_password_request.go b/v1/api/keyfactor/model_models_cert_store_new_password_request.go new file mode 100644 index 0000000..69f4866 --- /dev/null +++ b/v1/api/keyfactor/model_models_cert_store_new_password_request.go @@ -0,0 +1,177 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsCertStoreNewPasswordRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsCertStoreNewPasswordRequest{} + +// ModelsCertStoreNewPasswordRequest NewPassword must be provided and be of type string or KeyfactorAPISecret. +type ModelsCertStoreNewPasswordRequest struct { + CertStoreId string `json:"CertStoreId"` + NewPassword map[string]interface{} `json:"NewPassword"` + AdditionalProperties map[string]interface{} +} + +type _ModelsCertStoreNewPasswordRequest ModelsCertStoreNewPasswordRequest + +// NewModelsCertStoreNewPasswordRequest instantiates a new ModelsCertStoreNewPasswordRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsCertStoreNewPasswordRequest(certStoreId string, newPassword map[string]interface{}) *ModelsCertStoreNewPasswordRequest { + this := ModelsCertStoreNewPasswordRequest{} + this.CertStoreId = certStoreId + this.NewPassword = newPassword + return &this +} + +// NewModelsCertStoreNewPasswordRequestWithDefaults instantiates a new ModelsCertStoreNewPasswordRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsCertStoreNewPasswordRequestWithDefaults() *ModelsCertStoreNewPasswordRequest { + this := ModelsCertStoreNewPasswordRequest{} + return &this +} + +// GetCertStoreId returns the CertStoreId field value +func (o *ModelsCertStoreNewPasswordRequest) GetCertStoreId() string { + if o == nil { + var ret string + return ret + } + + return o.CertStoreId +} + +// GetCertStoreIdOk returns a tuple with the CertStoreId field value +// and a boolean to check if the value has been set. +func (o *ModelsCertStoreNewPasswordRequest) GetCertStoreIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CertStoreId, true +} + +// SetCertStoreId sets field value +func (o *ModelsCertStoreNewPasswordRequest) SetCertStoreId(v string) { + o.CertStoreId = v +} + +// GetNewPassword returns the NewPassword field value +func (o *ModelsCertStoreNewPasswordRequest) GetNewPassword() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.NewPassword +} + +// GetNewPasswordOk returns a tuple with the NewPassword field value +// and a boolean to check if the value has been set. +func (o *ModelsCertStoreNewPasswordRequest) GetNewPasswordOk() (map[string]interface{}, bool) { + if o == nil { + return map[string]interface{}{}, false + } + return o.NewPassword, true +} + +// SetNewPassword sets field value +func (o *ModelsCertStoreNewPasswordRequest) SetNewPassword(v map[string]interface{}) { + o.NewPassword = v +} + +func (o ModelsCertStoreNewPasswordRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsCertStoreNewPasswordRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["CertStoreId"] = o.CertStoreId + toSerialize["NewPassword"] = o.NewPassword + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsCertStoreNewPasswordRequest) UnmarshalJSON(bytes []byte) (err error) { + varModelsCertStoreNewPasswordRequest := _ModelsCertStoreNewPasswordRequest{} + + if err = json.Unmarshal(bytes, &varModelsCertStoreNewPasswordRequest); err == nil { + *o = ModelsCertStoreNewPasswordRequest(varModelsCertStoreNewPasswordRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "CertStoreId") + delete(additionalProperties, "NewPassword") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsCertStoreNewPasswordRequest struct { + value *ModelsCertStoreNewPasswordRequest + isSet bool +} + +func (v NullableModelsCertStoreNewPasswordRequest) Get() *ModelsCertStoreNewPasswordRequest { + return v.value +} + +func (v *NullableModelsCertStoreNewPasswordRequest) Set(val *ModelsCertStoreNewPasswordRequest) { + v.value = val + v.isSet = true +} + +func (v NullableModelsCertStoreNewPasswordRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsCertStoreNewPasswordRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsCertStoreNewPasswordRequest(val *ModelsCertStoreNewPasswordRequest) *NullableModelsCertStoreNewPasswordRequest { + return &NullableModelsCertStoreNewPasswordRequest{value: val, isSet: true} +} + +func (v NullableModelsCertStoreNewPasswordRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsCertStoreNewPasswordRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_cert_store_type_password_options.go b/v1/api/keyfactor/model_models_cert_store_type_password_options.go new file mode 100644 index 0000000..c31e692 --- /dev/null +++ b/v1/api/keyfactor/model_models_cert_store_type_password_options.go @@ -0,0 +1,232 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsCertStoreTypePasswordOptions type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsCertStoreTypePasswordOptions{} + +// ModelsCertStoreTypePasswordOptions struct for ModelsCertStoreTypePasswordOptions +type ModelsCertStoreTypePasswordOptions struct { + EntrySupported *bool `json:"EntrySupported,omitempty"` + StoreRequired *bool `json:"StoreRequired,omitempty"` + Style *string `json:"Style,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsCertStoreTypePasswordOptions ModelsCertStoreTypePasswordOptions + +// NewModelsCertStoreTypePasswordOptions instantiates a new ModelsCertStoreTypePasswordOptions object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsCertStoreTypePasswordOptions() *ModelsCertStoreTypePasswordOptions { + this := ModelsCertStoreTypePasswordOptions{} + return &this +} + +// NewModelsCertStoreTypePasswordOptionsWithDefaults instantiates a new ModelsCertStoreTypePasswordOptions object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsCertStoreTypePasswordOptionsWithDefaults() *ModelsCertStoreTypePasswordOptions { + this := ModelsCertStoreTypePasswordOptions{} + return &this +} + +// GetEntrySupported returns the EntrySupported field value if set, zero value otherwise. +func (o *ModelsCertStoreTypePasswordOptions) GetEntrySupported() bool { + if o == nil || isNil(o.EntrySupported) { + var ret bool + return ret + } + return *o.EntrySupported +} + +// GetEntrySupportedOk returns a tuple with the EntrySupported field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertStoreTypePasswordOptions) GetEntrySupportedOk() (*bool, bool) { + if o == nil || isNil(o.EntrySupported) { + return nil, false + } + return o.EntrySupported, true +} + +// HasEntrySupported returns a boolean if a field has been set. +func (o *ModelsCertStoreTypePasswordOptions) HasEntrySupported() bool { + if o != nil && !isNil(o.EntrySupported) { + return true + } + + return false +} + +// SetEntrySupported gets a reference to the given bool and assigns it to the EntrySupported field. +func (o *ModelsCertStoreTypePasswordOptions) SetEntrySupported(v bool) { + o.EntrySupported = &v +} + +// GetStoreRequired returns the StoreRequired field value if set, zero value otherwise. +func (o *ModelsCertStoreTypePasswordOptions) GetStoreRequired() bool { + if o == nil || isNil(o.StoreRequired) { + var ret bool + return ret + } + return *o.StoreRequired +} + +// GetStoreRequiredOk returns a tuple with the StoreRequired field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertStoreTypePasswordOptions) GetStoreRequiredOk() (*bool, bool) { + if o == nil || isNil(o.StoreRequired) { + return nil, false + } + return o.StoreRequired, true +} + +// HasStoreRequired returns a boolean if a field has been set. +func (o *ModelsCertStoreTypePasswordOptions) HasStoreRequired() bool { + if o != nil && !isNil(o.StoreRequired) { + return true + } + + return false +} + +// SetStoreRequired gets a reference to the given bool and assigns it to the StoreRequired field. +func (o *ModelsCertStoreTypePasswordOptions) SetStoreRequired(v bool) { + o.StoreRequired = &v +} + +// GetStyle returns the Style field value if set, zero value otherwise. +func (o *ModelsCertStoreTypePasswordOptions) GetStyle() string { + if o == nil || isNil(o.Style) { + var ret string + return ret + } + return *o.Style +} + +// GetStyleOk returns a tuple with the Style field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertStoreTypePasswordOptions) GetStyleOk() (*string, bool) { + if o == nil || isNil(o.Style) { + return nil, false + } + return o.Style, true +} + +// HasStyle returns a boolean if a field has been set. +func (o *ModelsCertStoreTypePasswordOptions) HasStyle() bool { + if o != nil && !isNil(o.Style) { + return true + } + + return false +} + +// SetStyle gets a reference to the given string and assigns it to the Style field. +func (o *ModelsCertStoreTypePasswordOptions) SetStyle(v string) { + o.Style = &v +} + +func (o ModelsCertStoreTypePasswordOptions) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsCertStoreTypePasswordOptions) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.EntrySupported) { + toSerialize["EntrySupported"] = o.EntrySupported + } + if !isNil(o.StoreRequired) { + toSerialize["StoreRequired"] = o.StoreRequired + } + if !isNil(o.Style) { + toSerialize["Style"] = o.Style + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsCertStoreTypePasswordOptions) UnmarshalJSON(bytes []byte) (err error) { + varModelsCertStoreTypePasswordOptions := _ModelsCertStoreTypePasswordOptions{} + + if err = json.Unmarshal(bytes, &varModelsCertStoreTypePasswordOptions); err == nil { + *o = ModelsCertStoreTypePasswordOptions(varModelsCertStoreTypePasswordOptions) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "EntrySupported") + delete(additionalProperties, "StoreRequired") + delete(additionalProperties, "Style") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsCertStoreTypePasswordOptions struct { + value *ModelsCertStoreTypePasswordOptions + isSet bool +} + +func (v NullableModelsCertStoreTypePasswordOptions) Get() *ModelsCertStoreTypePasswordOptions { + return v.value +} + +func (v *NullableModelsCertStoreTypePasswordOptions) Set(val *ModelsCertStoreTypePasswordOptions) { + v.value = val + v.isSet = true +} + +func (v NullableModelsCertStoreTypePasswordOptions) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsCertStoreTypePasswordOptions) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsCertStoreTypePasswordOptions(val *ModelsCertStoreTypePasswordOptions) *NullableModelsCertStoreTypePasswordOptions { + return &NullableModelsCertStoreTypePasswordOptions{value: val, isSet: true} +} + +func (v NullableModelsCertStoreTypePasswordOptions) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsCertStoreTypePasswordOptions) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_cert_store_type_supported_operations.go b/v1/api/keyfactor/model_models_cert_store_type_supported_operations.go new file mode 100644 index 0000000..737fd72 --- /dev/null +++ b/v1/api/keyfactor/model_models_cert_store_type_supported_operations.go @@ -0,0 +1,306 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsCertStoreTypeSupportedOperations type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsCertStoreTypeSupportedOperations{} + +// ModelsCertStoreTypeSupportedOperations struct for ModelsCertStoreTypeSupportedOperations +type ModelsCertStoreTypeSupportedOperations struct { + Add *bool `json:"Add,omitempty"` + Create *bool `json:"Create,omitempty"` + Discovery *bool `json:"Discovery,omitempty"` + Enrollment *bool `json:"Enrollment,omitempty"` + Remove *bool `json:"Remove,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsCertStoreTypeSupportedOperations ModelsCertStoreTypeSupportedOperations + +// NewModelsCertStoreTypeSupportedOperations instantiates a new ModelsCertStoreTypeSupportedOperations object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsCertStoreTypeSupportedOperations() *ModelsCertStoreTypeSupportedOperations { + this := ModelsCertStoreTypeSupportedOperations{} + return &this +} + +// NewModelsCertStoreTypeSupportedOperationsWithDefaults instantiates a new ModelsCertStoreTypeSupportedOperations object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsCertStoreTypeSupportedOperationsWithDefaults() *ModelsCertStoreTypeSupportedOperations { + this := ModelsCertStoreTypeSupportedOperations{} + return &this +} + +// GetAdd returns the Add field value if set, zero value otherwise. +func (o *ModelsCertStoreTypeSupportedOperations) GetAdd() bool { + if o == nil || isNil(o.Add) { + var ret bool + return ret + } + return *o.Add +} + +// GetAddOk returns a tuple with the Add field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertStoreTypeSupportedOperations) GetAddOk() (*bool, bool) { + if o == nil || isNil(o.Add) { + return nil, false + } + return o.Add, true +} + +// HasAdd returns a boolean if a field has been set. +func (o *ModelsCertStoreTypeSupportedOperations) HasAdd() bool { + if o != nil && !isNil(o.Add) { + return true + } + + return false +} + +// SetAdd gets a reference to the given bool and assigns it to the Add field. +func (o *ModelsCertStoreTypeSupportedOperations) SetAdd(v bool) { + o.Add = &v +} + +// GetCreate returns the Create field value if set, zero value otherwise. +func (o *ModelsCertStoreTypeSupportedOperations) GetCreate() bool { + if o == nil || isNil(o.Create) { + var ret bool + return ret + } + return *o.Create +} + +// GetCreateOk returns a tuple with the Create field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertStoreTypeSupportedOperations) GetCreateOk() (*bool, bool) { + if o == nil || isNil(o.Create) { + return nil, false + } + return o.Create, true +} + +// HasCreate returns a boolean if a field has been set. +func (o *ModelsCertStoreTypeSupportedOperations) HasCreate() bool { + if o != nil && !isNil(o.Create) { + return true + } + + return false +} + +// SetCreate gets a reference to the given bool and assigns it to the Create field. +func (o *ModelsCertStoreTypeSupportedOperations) SetCreate(v bool) { + o.Create = &v +} + +// GetDiscovery returns the Discovery field value if set, zero value otherwise. +func (o *ModelsCertStoreTypeSupportedOperations) GetDiscovery() bool { + if o == nil || isNil(o.Discovery) { + var ret bool + return ret + } + return *o.Discovery +} + +// GetDiscoveryOk returns a tuple with the Discovery field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertStoreTypeSupportedOperations) GetDiscoveryOk() (*bool, bool) { + if o == nil || isNil(o.Discovery) { + return nil, false + } + return o.Discovery, true +} + +// HasDiscovery returns a boolean if a field has been set. +func (o *ModelsCertStoreTypeSupportedOperations) HasDiscovery() bool { + if o != nil && !isNil(o.Discovery) { + return true + } + + return false +} + +// SetDiscovery gets a reference to the given bool and assigns it to the Discovery field. +func (o *ModelsCertStoreTypeSupportedOperations) SetDiscovery(v bool) { + o.Discovery = &v +} + +// GetEnrollment returns the Enrollment field value if set, zero value otherwise. +func (o *ModelsCertStoreTypeSupportedOperations) GetEnrollment() bool { + if o == nil || isNil(o.Enrollment) { + var ret bool + return ret + } + return *o.Enrollment +} + +// GetEnrollmentOk returns a tuple with the Enrollment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertStoreTypeSupportedOperations) GetEnrollmentOk() (*bool, bool) { + if o == nil || isNil(o.Enrollment) { + return nil, false + } + return o.Enrollment, true +} + +// HasEnrollment returns a boolean if a field has been set. +func (o *ModelsCertStoreTypeSupportedOperations) HasEnrollment() bool { + if o != nil && !isNil(o.Enrollment) { + return true + } + + return false +} + +// SetEnrollment gets a reference to the given bool and assigns it to the Enrollment field. +func (o *ModelsCertStoreTypeSupportedOperations) SetEnrollment(v bool) { + o.Enrollment = &v +} + +// GetRemove returns the Remove field value if set, zero value otherwise. +func (o *ModelsCertStoreTypeSupportedOperations) GetRemove() bool { + if o == nil || isNil(o.Remove) { + var ret bool + return ret + } + return *o.Remove +} + +// GetRemoveOk returns a tuple with the Remove field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertStoreTypeSupportedOperations) GetRemoveOk() (*bool, bool) { + if o == nil || isNil(o.Remove) { + return nil, false + } + return o.Remove, true +} + +// HasRemove returns a boolean if a field has been set. +func (o *ModelsCertStoreTypeSupportedOperations) HasRemove() bool { + if o != nil && !isNil(o.Remove) { + return true + } + + return false +} + +// SetRemove gets a reference to the given bool and assigns it to the Remove field. +func (o *ModelsCertStoreTypeSupportedOperations) SetRemove(v bool) { + o.Remove = &v +} + +func (o ModelsCertStoreTypeSupportedOperations) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsCertStoreTypeSupportedOperations) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Add) { + toSerialize["Add"] = o.Add + } + if !isNil(o.Create) { + toSerialize["Create"] = o.Create + } + if !isNil(o.Discovery) { + toSerialize["Discovery"] = o.Discovery + } + if !isNil(o.Enrollment) { + toSerialize["Enrollment"] = o.Enrollment + } + if !isNil(o.Remove) { + toSerialize["Remove"] = o.Remove + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsCertStoreTypeSupportedOperations) UnmarshalJSON(bytes []byte) (err error) { + varModelsCertStoreTypeSupportedOperations := _ModelsCertStoreTypeSupportedOperations{} + + if err = json.Unmarshal(bytes, &varModelsCertStoreTypeSupportedOperations); err == nil { + *o = ModelsCertStoreTypeSupportedOperations(varModelsCertStoreTypeSupportedOperations) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Add") + delete(additionalProperties, "Create") + delete(additionalProperties, "Discovery") + delete(additionalProperties, "Enrollment") + delete(additionalProperties, "Remove") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsCertStoreTypeSupportedOperations struct { + value *ModelsCertStoreTypeSupportedOperations + isSet bool +} + +func (v NullableModelsCertStoreTypeSupportedOperations) Get() *ModelsCertStoreTypeSupportedOperations { + return v.value +} + +func (v *NullableModelsCertStoreTypeSupportedOperations) Set(val *ModelsCertStoreTypeSupportedOperations) { + v.value = val + v.isSet = true +} + +func (v NullableModelsCertStoreTypeSupportedOperations) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsCertStoreTypeSupportedOperations) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsCertStoreTypeSupportedOperations(val *ModelsCertStoreTypeSupportedOperations) *NullableModelsCertStoreTypeSupportedOperations { + return &NullableModelsCertStoreTypeSupportedOperations{value: val, isSet: true} +} + +func (v NullableModelsCertStoreTypeSupportedOperations) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsCertStoreTypeSupportedOperations) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_cert_stores_schedule.go b/v1/api/keyfactor/model_models_cert_stores_schedule.go new file mode 100644 index 0000000..94c7706 --- /dev/null +++ b/v1/api/keyfactor/model_models_cert_stores_schedule.go @@ -0,0 +1,186 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsCertStoresSchedule type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsCertStoresSchedule{} + +// ModelsCertStoresSchedule struct for ModelsCertStoresSchedule +type ModelsCertStoresSchedule struct { + StoreIds []string `json:"StoreIds"` + Schedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"Schedule,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsCertStoresSchedule ModelsCertStoresSchedule + +// NewModelsCertStoresSchedule instantiates a new ModelsCertStoresSchedule object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsCertStoresSchedule(storeIds []string) *ModelsCertStoresSchedule { + this := ModelsCertStoresSchedule{} + this.StoreIds = storeIds + return &this +} + +// NewModelsCertStoresScheduleWithDefaults instantiates a new ModelsCertStoresSchedule object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsCertStoresScheduleWithDefaults() *ModelsCertStoresSchedule { + this := ModelsCertStoresSchedule{} + return &this +} + +// GetStoreIds returns the StoreIds field value +func (o *ModelsCertStoresSchedule) GetStoreIds() []string { + if o == nil { + var ret []string + return ret + } + + return o.StoreIds +} + +// GetStoreIdsOk returns a tuple with the StoreIds field value +// and a boolean to check if the value has been set. +func (o *ModelsCertStoresSchedule) GetStoreIdsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.StoreIds, true +} + +// SetStoreIds sets field value +func (o *ModelsCertStoresSchedule) SetStoreIds(v []string) { + o.StoreIds = v +} + +// GetSchedule returns the Schedule field value if set, zero value otherwise. +func (o *ModelsCertStoresSchedule) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.Schedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.Schedule +} + +// GetScheduleOk returns a tuple with the Schedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertStoresSchedule) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.Schedule) { + return nil, false + } + return o.Schedule, true +} + +// HasSchedule returns a boolean if a field has been set. +func (o *ModelsCertStoresSchedule) HasSchedule() bool { + if o != nil && !isNil(o.Schedule) { + return true + } + + return false +} + +// SetSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the Schedule field. +func (o *ModelsCertStoresSchedule) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.Schedule = &v +} + +func (o ModelsCertStoresSchedule) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsCertStoresSchedule) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["StoreIds"] = o.StoreIds + if !isNil(o.Schedule) { + toSerialize["Schedule"] = o.Schedule + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsCertStoresSchedule) UnmarshalJSON(bytes []byte) (err error) { + varModelsCertStoresSchedule := _ModelsCertStoresSchedule{} + + if err = json.Unmarshal(bytes, &varModelsCertStoresSchedule); err == nil { + *o = ModelsCertStoresSchedule(varModelsCertStoresSchedule) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "StoreIds") + delete(additionalProperties, "Schedule") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsCertStoresSchedule struct { + value *ModelsCertStoresSchedule + isSet bool +} + +func (v NullableModelsCertStoresSchedule) Get() *ModelsCertStoresSchedule { + return v.value +} + +func (v *NullableModelsCertStoresSchedule) Set(val *ModelsCertStoresSchedule) { + v.value = val + v.isSet = true +} + +func (v NullableModelsCertStoresSchedule) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsCertStoresSchedule) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsCertStoresSchedule(val *ModelsCertStoresSchedule) *NullableModelsCertStoresSchedule { + return &NullableModelsCertStoresSchedule{value: val, isSet: true} +} + +func (v NullableModelsCertStoresSchedule) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsCertStoresSchedule) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_certificate_authorities_certificate_authority_auth_certificate.go b/v1/api/keyfactor/model_models_certificate_authorities_certificate_authority_auth_certificate.go new file mode 100644 index 0000000..bf46668 --- /dev/null +++ b/v1/api/keyfactor/model_models_certificate_authorities_certificate_authority_auth_certificate.go @@ -0,0 +1,292 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" + "time" +) + +// checks if the ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate{} + +// ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate struct for ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate +type ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate struct { + IssuedDN NullableString `json:"IssuedDN,omitempty"` + IssuerDN NullableString `json:"IssuerDN,omitempty"` + Thumbprint *string `json:"Thumbprint,omitempty"` + ExpirationDate *time.Time `json:"ExpirationDate,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate + +// NewModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate instantiates a new ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate() *ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate { + this := ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate{} + return &this +} + +// NewModelsCertificateAuthoritiesCertificateAuthorityAuthCertificateWithDefaults instantiates a new ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsCertificateAuthoritiesCertificateAuthorityAuthCertificateWithDefaults() *ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate { + this := ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate{} + return &this +} + +// GetIssuedDN returns the IssuedDN field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) GetIssuedDN() string { + if o == nil || isNil(o.IssuedDN.Get()) { + var ret string + return ret + } + return *o.IssuedDN.Get() +} + +// GetIssuedDNOk returns a tuple with the IssuedDN field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) GetIssuedDNOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IssuedDN.Get(), o.IssuedDN.IsSet() +} + +// HasIssuedDN returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) HasIssuedDN() bool { + if o != nil && o.IssuedDN.IsSet() { + return true + } + + return false +} + +// SetIssuedDN gets a reference to the given NullableString and assigns it to the IssuedDN field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) SetIssuedDN(v string) { + o.IssuedDN.Set(&v) +} + +// SetIssuedDNNil sets the value for IssuedDN to be an explicit nil +func (o *ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) SetIssuedDNNil() { + o.IssuedDN.Set(nil) +} + +// UnsetIssuedDN ensures that no value is present for IssuedDN, not even an explicit nil +func (o *ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) UnsetIssuedDN() { + o.IssuedDN.Unset() +} + +// GetIssuerDN returns the IssuerDN field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) GetIssuerDN() string { + if o == nil || isNil(o.IssuerDN.Get()) { + var ret string + return ret + } + return *o.IssuerDN.Get() +} + +// GetIssuerDNOk returns a tuple with the IssuerDN field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) GetIssuerDNOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IssuerDN.Get(), o.IssuerDN.IsSet() +} + +// HasIssuerDN returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) HasIssuerDN() bool { + if o != nil && o.IssuerDN.IsSet() { + return true + } + + return false +} + +// SetIssuerDN gets a reference to the given NullableString and assigns it to the IssuerDN field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) SetIssuerDN(v string) { + o.IssuerDN.Set(&v) +} + +// SetIssuerDNNil sets the value for IssuerDN to be an explicit nil +func (o *ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) SetIssuerDNNil() { + o.IssuerDN.Set(nil) +} + +// UnsetIssuerDN ensures that no value is present for IssuerDN, not even an explicit nil +func (o *ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) UnsetIssuerDN() { + o.IssuerDN.Unset() +} + +// GetThumbprint returns the Thumbprint field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) GetThumbprint() string { + if o == nil || isNil(o.Thumbprint) { + var ret string + return ret + } + return *o.Thumbprint +} + +// GetThumbprintOk returns a tuple with the Thumbprint field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) GetThumbprintOk() (*string, bool) { + if o == nil || isNil(o.Thumbprint) { + return nil, false + } + return o.Thumbprint, true +} + +// HasThumbprint returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) HasThumbprint() bool { + if o != nil && !isNil(o.Thumbprint) { + return true + } + + return false +} + +// SetThumbprint gets a reference to the given string and assigns it to the Thumbprint field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) SetThumbprint(v string) { + o.Thumbprint = &v +} + +// GetExpirationDate returns the ExpirationDate field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) GetExpirationDate() time.Time { + if o == nil || isNil(o.ExpirationDate) { + var ret time.Time + return ret + } + return *o.ExpirationDate +} + +// GetExpirationDateOk returns a tuple with the ExpirationDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) GetExpirationDateOk() (*time.Time, bool) { + if o == nil || isNil(o.ExpirationDate) { + return nil, false + } + return o.ExpirationDate, true +} + +// HasExpirationDate returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) HasExpirationDate() bool { + if o != nil && !isNil(o.ExpirationDate) { + return true + } + + return false +} + +// SetExpirationDate gets a reference to the given time.Time and assigns it to the ExpirationDate field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) SetExpirationDate(v time.Time) { + o.ExpirationDate = &v +} + +func (o ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.IssuedDN.IsSet() { + toSerialize["IssuedDN"] = o.IssuedDN.Get() + } + if o.IssuerDN.IsSet() { + toSerialize["IssuerDN"] = o.IssuerDN.Get() + } + if !isNil(o.Thumbprint) { + toSerialize["Thumbprint"] = o.Thumbprint + } + if !isNil(o.ExpirationDate) { + toSerialize["ExpirationDate"] = o.ExpirationDate + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) UnmarshalJSON(bytes []byte) (err error) { + varModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate := _ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate{} + + if err = json.Unmarshal(bytes, &varModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate); err == nil { + *o = ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate(varModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "IssuedDN") + delete(additionalProperties, "IssuerDN") + delete(additionalProperties, "Thumbprint") + delete(additionalProperties, "ExpirationDate") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate struct { + value *ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate + isSet bool +} + +func (v NullableModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) Get() *ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate { + return v.value +} + +func (v *NullableModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) Set(val *ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) { + v.value = val + v.isSet = true +} + +func (v NullableModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate(val *ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) *NullableModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate { + return &NullableModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate{value: val, isSet: true} +} + +func (v NullableModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_certificate_authorities_certificate_authority_request.go b/v1/api/keyfactor/model_models_certificate_authorities_certificate_authority_request.go new file mode 100644 index 0000000..d167508 --- /dev/null +++ b/v1/api/keyfactor/model_models_certificate_authorities_certificate_authority_request.go @@ -0,0 +1,1305 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsCertificateAuthoritiesCertificateAuthorityRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsCertificateAuthoritiesCertificateAuthorityRequest{} + +// ModelsCertificateAuthoritiesCertificateAuthorityRequest struct for ModelsCertificateAuthoritiesCertificateAuthorityRequest +type ModelsCertificateAuthoritiesCertificateAuthorityRequest struct { + Id *int32 `json:"Id,omitempty"` + LogicalName *string `json:"LogicalName,omitempty"` + HostName *string `json:"HostName,omitempty"` + Delegate *bool `json:"Delegate,omitempty"` + DelegateEnrollment *bool `json:"DelegateEnrollment,omitempty"` + ForestRoot *string `json:"ForestRoot,omitempty"` + ConfigurationTenant *string `json:"ConfigurationTenant,omitempty"` + Remote *bool `json:"Remote,omitempty"` + Agent *string `json:"Agent,omitempty"` + Standalone *bool `json:"Standalone,omitempty"` + MonitorThresholds *bool `json:"MonitorThresholds,omitempty"` + IssuanceMax *int32 `json:"IssuanceMax,omitempty"` + IssuanceMin *int32 `json:"IssuanceMin,omitempty"` + FailureMax *int32 `json:"FailureMax,omitempty"` + RFCEnforcement *bool `json:"RFCEnforcement,omitempty"` + Properties *string `json:"Properties,omitempty"` + AllowedEnrollmentTypes *int32 `json:"AllowedEnrollmentTypes,omitempty"` + KeyRetention *int32 `json:"KeyRetention,omitempty"` + KeyRetentionDays *int32 `json:"KeyRetentionDays,omitempty"` + ExplicitCredentials *bool `json:"ExplicitCredentials,omitempty"` + SubscriberTerms *bool `json:"SubscriberTerms,omitempty"` + ExplicitUser *string `json:"ExplicitUser,omitempty"` + ExplicitPassword *ModelsKeyfactorAPISecret `json:"ExplicitPassword,omitempty"` + UseAllowedRequesters *bool `json:"UseAllowedRequesters,omitempty"` + AllowedRequesters []string `json:"AllowedRequesters,omitempty"` + FullScan *KeyfactorCommonSchedulingKeyfactorSchedule `json:"FullScan,omitempty"` + IncrementalScan *KeyfactorCommonSchedulingKeyfactorSchedule `json:"IncrementalScan,omitempty"` + ThresholdCheck *KeyfactorCommonSchedulingKeyfactorSchedule `json:"ThresholdCheck,omitempty"` + AuthCertificatePassword *ModelsKeyfactorAPISecret `json:"AuthCertificatePassword,omitempty"` + AuthCertificate *ModelsKeyfactorAPISecret `json:"AuthCertificate,omitempty"` + CAType *int32 `json:"CAType,omitempty"` + EnforceUniqueDN *bool `json:"EnforceUniqueDN,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsCertificateAuthoritiesCertificateAuthorityRequest ModelsCertificateAuthoritiesCertificateAuthorityRequest + +// NewModelsCertificateAuthoritiesCertificateAuthorityRequest instantiates a new ModelsCertificateAuthoritiesCertificateAuthorityRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsCertificateAuthoritiesCertificateAuthorityRequest() *ModelsCertificateAuthoritiesCertificateAuthorityRequest { + this := ModelsCertificateAuthoritiesCertificateAuthorityRequest{} + return &this +} + +// NewModelsCertificateAuthoritiesCertificateAuthorityRequestWithDefaults instantiates a new ModelsCertificateAuthoritiesCertificateAuthorityRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsCertificateAuthoritiesCertificateAuthorityRequestWithDefaults() *ModelsCertificateAuthoritiesCertificateAuthorityRequest { + this := ModelsCertificateAuthoritiesCertificateAuthorityRequest{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetId(v int32) { + o.Id = &v +} + +// GetLogicalName returns the LogicalName field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetLogicalName() string { + if o == nil || isNil(o.LogicalName) { + var ret string + return ret + } + return *o.LogicalName +} + +// GetLogicalNameOk returns a tuple with the LogicalName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetLogicalNameOk() (*string, bool) { + if o == nil || isNil(o.LogicalName) { + return nil, false + } + return o.LogicalName, true +} + +// HasLogicalName returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasLogicalName() bool { + if o != nil && !isNil(o.LogicalName) { + return true + } + + return false +} + +// SetLogicalName gets a reference to the given string and assigns it to the LogicalName field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetLogicalName(v string) { + o.LogicalName = &v +} + +// GetHostName returns the HostName field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetHostName() string { + if o == nil || isNil(o.HostName) { + var ret string + return ret + } + return *o.HostName +} + +// GetHostNameOk returns a tuple with the HostName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetHostNameOk() (*string, bool) { + if o == nil || isNil(o.HostName) { + return nil, false + } + return o.HostName, true +} + +// HasHostName returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasHostName() bool { + if o != nil && !isNil(o.HostName) { + return true + } + + return false +} + +// SetHostName gets a reference to the given string and assigns it to the HostName field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetHostName(v string) { + o.HostName = &v +} + +// GetDelegate returns the Delegate field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetDelegate() bool { + if o == nil || isNil(o.Delegate) { + var ret bool + return ret + } + return *o.Delegate +} + +// GetDelegateOk returns a tuple with the Delegate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetDelegateOk() (*bool, bool) { + if o == nil || isNil(o.Delegate) { + return nil, false + } + return o.Delegate, true +} + +// HasDelegate returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasDelegate() bool { + if o != nil && !isNil(o.Delegate) { + return true + } + + return false +} + +// SetDelegate gets a reference to the given bool and assigns it to the Delegate field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetDelegate(v bool) { + o.Delegate = &v +} + +// GetDelegateEnrollment returns the DelegateEnrollment field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetDelegateEnrollment() bool { + if o == nil || isNil(o.DelegateEnrollment) { + var ret bool + return ret + } + return *o.DelegateEnrollment +} + +// GetDelegateEnrollmentOk returns a tuple with the DelegateEnrollment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetDelegateEnrollmentOk() (*bool, bool) { + if o == nil || isNil(o.DelegateEnrollment) { + return nil, false + } + return o.DelegateEnrollment, true +} + +// HasDelegateEnrollment returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasDelegateEnrollment() bool { + if o != nil && !isNil(o.DelegateEnrollment) { + return true + } + + return false +} + +// SetDelegateEnrollment gets a reference to the given bool and assigns it to the DelegateEnrollment field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetDelegateEnrollment(v bool) { + o.DelegateEnrollment = &v +} + +// GetForestRoot returns the ForestRoot field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetForestRoot() string { + if o == nil || isNil(o.ForestRoot) { + var ret string + return ret + } + return *o.ForestRoot +} + +// GetForestRootOk returns a tuple with the ForestRoot field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetForestRootOk() (*string, bool) { + if o == nil || isNil(o.ForestRoot) { + return nil, false + } + return o.ForestRoot, true +} + +// HasForestRoot returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasForestRoot() bool { + if o != nil && !isNil(o.ForestRoot) { + return true + } + + return false +} + +// SetForestRoot gets a reference to the given string and assigns it to the ForestRoot field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetForestRoot(v string) { + o.ForestRoot = &v +} + +// GetConfigurationTenant returns the ConfigurationTenant field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetConfigurationTenant() string { + if o == nil || isNil(o.ConfigurationTenant) { + var ret string + return ret + } + return *o.ConfigurationTenant +} + +// GetConfigurationTenantOk returns a tuple with the ConfigurationTenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetConfigurationTenantOk() (*string, bool) { + if o == nil || isNil(o.ConfigurationTenant) { + return nil, false + } + return o.ConfigurationTenant, true +} + +// HasConfigurationTenant returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasConfigurationTenant() bool { + if o != nil && !isNil(o.ConfigurationTenant) { + return true + } + + return false +} + +// SetConfigurationTenant gets a reference to the given string and assigns it to the ConfigurationTenant field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetConfigurationTenant(v string) { + o.ConfigurationTenant = &v +} + +// GetRemote returns the Remote field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetRemote() bool { + if o == nil || isNil(o.Remote) { + var ret bool + return ret + } + return *o.Remote +} + +// GetRemoteOk returns a tuple with the Remote field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetRemoteOk() (*bool, bool) { + if o == nil || isNil(o.Remote) { + return nil, false + } + return o.Remote, true +} + +// HasRemote returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasRemote() bool { + if o != nil && !isNil(o.Remote) { + return true + } + + return false +} + +// SetRemote gets a reference to the given bool and assigns it to the Remote field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetRemote(v bool) { + o.Remote = &v +} + +// GetAgent returns the Agent field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetAgent() string { + if o == nil || isNil(o.Agent) { + var ret string + return ret + } + return *o.Agent +} + +// GetAgentOk returns a tuple with the Agent field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetAgentOk() (*string, bool) { + if o == nil || isNil(o.Agent) { + return nil, false + } + return o.Agent, true +} + +// HasAgent returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasAgent() bool { + if o != nil && !isNil(o.Agent) { + return true + } + + return false +} + +// SetAgent gets a reference to the given string and assigns it to the Agent field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetAgent(v string) { + o.Agent = &v +} + +// GetStandalone returns the Standalone field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetStandalone() bool { + if o == nil || isNil(o.Standalone) { + var ret bool + return ret + } + return *o.Standalone +} + +// GetStandaloneOk returns a tuple with the Standalone field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetStandaloneOk() (*bool, bool) { + if o == nil || isNil(o.Standalone) { + return nil, false + } + return o.Standalone, true +} + +// HasStandalone returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasStandalone() bool { + if o != nil && !isNil(o.Standalone) { + return true + } + + return false +} + +// SetStandalone gets a reference to the given bool and assigns it to the Standalone field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetStandalone(v bool) { + o.Standalone = &v +} + +// GetMonitorThresholds returns the MonitorThresholds field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetMonitorThresholds() bool { + if o == nil || isNil(o.MonitorThresholds) { + var ret bool + return ret + } + return *o.MonitorThresholds +} + +// GetMonitorThresholdsOk returns a tuple with the MonitorThresholds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetMonitorThresholdsOk() (*bool, bool) { + if o == nil || isNil(o.MonitorThresholds) { + return nil, false + } + return o.MonitorThresholds, true +} + +// HasMonitorThresholds returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasMonitorThresholds() bool { + if o != nil && !isNil(o.MonitorThresholds) { + return true + } + + return false +} + +// SetMonitorThresholds gets a reference to the given bool and assigns it to the MonitorThresholds field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetMonitorThresholds(v bool) { + o.MonitorThresholds = &v +} + +// GetIssuanceMax returns the IssuanceMax field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetIssuanceMax() int32 { + if o == nil || isNil(o.IssuanceMax) { + var ret int32 + return ret + } + return *o.IssuanceMax +} + +// GetIssuanceMaxOk returns a tuple with the IssuanceMax field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetIssuanceMaxOk() (*int32, bool) { + if o == nil || isNil(o.IssuanceMax) { + return nil, false + } + return o.IssuanceMax, true +} + +// HasIssuanceMax returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasIssuanceMax() bool { + if o != nil && !isNil(o.IssuanceMax) { + return true + } + + return false +} + +// SetIssuanceMax gets a reference to the given int32 and assigns it to the IssuanceMax field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetIssuanceMax(v int32) { + o.IssuanceMax = &v +} + +// GetIssuanceMin returns the IssuanceMin field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetIssuanceMin() int32 { + if o == nil || isNil(o.IssuanceMin) { + var ret int32 + return ret + } + return *o.IssuanceMin +} + +// GetIssuanceMinOk returns a tuple with the IssuanceMin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetIssuanceMinOk() (*int32, bool) { + if o == nil || isNil(o.IssuanceMin) { + return nil, false + } + return o.IssuanceMin, true +} + +// HasIssuanceMin returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasIssuanceMin() bool { + if o != nil && !isNil(o.IssuanceMin) { + return true + } + + return false +} + +// SetIssuanceMin gets a reference to the given int32 and assigns it to the IssuanceMin field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetIssuanceMin(v int32) { + o.IssuanceMin = &v +} + +// GetFailureMax returns the FailureMax field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetFailureMax() int32 { + if o == nil || isNil(o.FailureMax) { + var ret int32 + return ret + } + return *o.FailureMax +} + +// GetFailureMaxOk returns a tuple with the FailureMax field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetFailureMaxOk() (*int32, bool) { + if o == nil || isNil(o.FailureMax) { + return nil, false + } + return o.FailureMax, true +} + +// HasFailureMax returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasFailureMax() bool { + if o != nil && !isNil(o.FailureMax) { + return true + } + + return false +} + +// SetFailureMax gets a reference to the given int32 and assigns it to the FailureMax field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetFailureMax(v int32) { + o.FailureMax = &v +} + +// GetRFCEnforcement returns the RFCEnforcement field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetRFCEnforcement() bool { + if o == nil || isNil(o.RFCEnforcement) { + var ret bool + return ret + } + return *o.RFCEnforcement +} + +// GetRFCEnforcementOk returns a tuple with the RFCEnforcement field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetRFCEnforcementOk() (*bool, bool) { + if o == nil || isNil(o.RFCEnforcement) { + return nil, false + } + return o.RFCEnforcement, true +} + +// HasRFCEnforcement returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasRFCEnforcement() bool { + if o != nil && !isNil(o.RFCEnforcement) { + return true + } + + return false +} + +// SetRFCEnforcement gets a reference to the given bool and assigns it to the RFCEnforcement field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetRFCEnforcement(v bool) { + o.RFCEnforcement = &v +} + +// GetProperties returns the Properties field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetProperties() string { + if o == nil || isNil(o.Properties) { + var ret string + return ret + } + return *o.Properties +} + +// GetPropertiesOk returns a tuple with the Properties field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetPropertiesOk() (*string, bool) { + if o == nil || isNil(o.Properties) { + return nil, false + } + return o.Properties, true +} + +// HasProperties returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasProperties() bool { + if o != nil && !isNil(o.Properties) { + return true + } + + return false +} + +// SetProperties gets a reference to the given string and assigns it to the Properties field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetProperties(v string) { + o.Properties = &v +} + +// GetAllowedEnrollmentTypes returns the AllowedEnrollmentTypes field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetAllowedEnrollmentTypes() int32 { + if o == nil || isNil(o.AllowedEnrollmentTypes) { + var ret int32 + return ret + } + return *o.AllowedEnrollmentTypes +} + +// GetAllowedEnrollmentTypesOk returns a tuple with the AllowedEnrollmentTypes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetAllowedEnrollmentTypesOk() (*int32, bool) { + if o == nil || isNil(o.AllowedEnrollmentTypes) { + return nil, false + } + return o.AllowedEnrollmentTypes, true +} + +// HasAllowedEnrollmentTypes returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasAllowedEnrollmentTypes() bool { + if o != nil && !isNil(o.AllowedEnrollmentTypes) { + return true + } + + return false +} + +// SetAllowedEnrollmentTypes gets a reference to the given int32 and assigns it to the AllowedEnrollmentTypes field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetAllowedEnrollmentTypes(v int32) { + o.AllowedEnrollmentTypes = &v +} + +// GetKeyRetention returns the KeyRetention field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetKeyRetention() int32 { + if o == nil || isNil(o.KeyRetention) { + var ret int32 + return ret + } + return *o.KeyRetention +} + +// GetKeyRetentionOk returns a tuple with the KeyRetention field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetKeyRetentionOk() (*int32, bool) { + if o == nil || isNil(o.KeyRetention) { + return nil, false + } + return o.KeyRetention, true +} + +// HasKeyRetention returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasKeyRetention() bool { + if o != nil && !isNil(o.KeyRetention) { + return true + } + + return false +} + +// SetKeyRetention gets a reference to the given int32 and assigns it to the KeyRetention field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetKeyRetention(v int32) { + o.KeyRetention = &v +} + +// GetKeyRetentionDays returns the KeyRetentionDays field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetKeyRetentionDays() int32 { + if o == nil || isNil(o.KeyRetentionDays) { + var ret int32 + return ret + } + return *o.KeyRetentionDays +} + +// GetKeyRetentionDaysOk returns a tuple with the KeyRetentionDays field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetKeyRetentionDaysOk() (*int32, bool) { + if o == nil || isNil(o.KeyRetentionDays) { + return nil, false + } + return o.KeyRetentionDays, true +} + +// HasKeyRetentionDays returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasKeyRetentionDays() bool { + if o != nil && !isNil(o.KeyRetentionDays) { + return true + } + + return false +} + +// SetKeyRetentionDays gets a reference to the given int32 and assigns it to the KeyRetentionDays field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetKeyRetentionDays(v int32) { + o.KeyRetentionDays = &v +} + +// GetExplicitCredentials returns the ExplicitCredentials field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetExplicitCredentials() bool { + if o == nil || isNil(o.ExplicitCredentials) { + var ret bool + return ret + } + return *o.ExplicitCredentials +} + +// GetExplicitCredentialsOk returns a tuple with the ExplicitCredentials field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetExplicitCredentialsOk() (*bool, bool) { + if o == nil || isNil(o.ExplicitCredentials) { + return nil, false + } + return o.ExplicitCredentials, true +} + +// HasExplicitCredentials returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasExplicitCredentials() bool { + if o != nil && !isNil(o.ExplicitCredentials) { + return true + } + + return false +} + +// SetExplicitCredentials gets a reference to the given bool and assigns it to the ExplicitCredentials field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetExplicitCredentials(v bool) { + o.ExplicitCredentials = &v +} + +// GetSubscriberTerms returns the SubscriberTerms field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetSubscriberTerms() bool { + if o == nil || isNil(o.SubscriberTerms) { + var ret bool + return ret + } + return *o.SubscriberTerms +} + +// GetSubscriberTermsOk returns a tuple with the SubscriberTerms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetSubscriberTermsOk() (*bool, bool) { + if o == nil || isNil(o.SubscriberTerms) { + return nil, false + } + return o.SubscriberTerms, true +} + +// HasSubscriberTerms returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasSubscriberTerms() bool { + if o != nil && !isNil(o.SubscriberTerms) { + return true + } + + return false +} + +// SetSubscriberTerms gets a reference to the given bool and assigns it to the SubscriberTerms field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetSubscriberTerms(v bool) { + o.SubscriberTerms = &v +} + +// GetExplicitUser returns the ExplicitUser field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetExplicitUser() string { + if o == nil || isNil(o.ExplicitUser) { + var ret string + return ret + } + return *o.ExplicitUser +} + +// GetExplicitUserOk returns a tuple with the ExplicitUser field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetExplicitUserOk() (*string, bool) { + if o == nil || isNil(o.ExplicitUser) { + return nil, false + } + return o.ExplicitUser, true +} + +// HasExplicitUser returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasExplicitUser() bool { + if o != nil && !isNil(o.ExplicitUser) { + return true + } + + return false +} + +// SetExplicitUser gets a reference to the given string and assigns it to the ExplicitUser field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetExplicitUser(v string) { + o.ExplicitUser = &v +} + +// GetExplicitPassword returns the ExplicitPassword field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetExplicitPassword() ModelsKeyfactorAPISecret { + if o == nil || isNil(o.ExplicitPassword) { + var ret ModelsKeyfactorAPISecret + return ret + } + return *o.ExplicitPassword +} + +// GetExplicitPasswordOk returns a tuple with the ExplicitPassword field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetExplicitPasswordOk() (*ModelsKeyfactorAPISecret, bool) { + if o == nil || isNil(o.ExplicitPassword) { + return nil, false + } + return o.ExplicitPassword, true +} + +// HasExplicitPassword returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasExplicitPassword() bool { + if o != nil && !isNil(o.ExplicitPassword) { + return true + } + + return false +} + +// SetExplicitPassword gets a reference to the given ModelsKeyfactorAPISecret and assigns it to the ExplicitPassword field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetExplicitPassword(v ModelsKeyfactorAPISecret) { + o.ExplicitPassword = &v +} + +// GetUseAllowedRequesters returns the UseAllowedRequesters field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetUseAllowedRequesters() bool { + if o == nil || isNil(o.UseAllowedRequesters) { + var ret bool + return ret + } + return *o.UseAllowedRequesters +} + +// GetUseAllowedRequestersOk returns a tuple with the UseAllowedRequesters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetUseAllowedRequestersOk() (*bool, bool) { + if o == nil || isNil(o.UseAllowedRequesters) { + return nil, false + } + return o.UseAllowedRequesters, true +} + +// HasUseAllowedRequesters returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasUseAllowedRequesters() bool { + if o != nil && !isNil(o.UseAllowedRequesters) { + return true + } + + return false +} + +// SetUseAllowedRequesters gets a reference to the given bool and assigns it to the UseAllowedRequesters field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetUseAllowedRequesters(v bool) { + o.UseAllowedRequesters = &v +} + +// GetAllowedRequesters returns the AllowedRequesters field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetAllowedRequesters() []string { + if o == nil || isNil(o.AllowedRequesters) { + var ret []string + return ret + } + return o.AllowedRequesters +} + +// GetAllowedRequestersOk returns a tuple with the AllowedRequesters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetAllowedRequestersOk() ([]string, bool) { + if o == nil || isNil(o.AllowedRequesters) { + return nil, false + } + return o.AllowedRequesters, true +} + +// HasAllowedRequesters returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasAllowedRequesters() bool { + if o != nil && !isNil(o.AllowedRequesters) { + return true + } + + return false +} + +// SetAllowedRequesters gets a reference to the given []string and assigns it to the AllowedRequesters field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetAllowedRequesters(v []string) { + o.AllowedRequesters = v +} + +// GetFullScan returns the FullScan field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetFullScan() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.FullScan) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.FullScan +} + +// GetFullScanOk returns a tuple with the FullScan field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetFullScanOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.FullScan) { + return nil, false + } + return o.FullScan, true +} + +// HasFullScan returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasFullScan() bool { + if o != nil && !isNil(o.FullScan) { + return true + } + + return false +} + +// SetFullScan gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the FullScan field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetFullScan(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.FullScan = &v +} + +// GetIncrementalScan returns the IncrementalScan field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetIncrementalScan() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.IncrementalScan) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.IncrementalScan +} + +// GetIncrementalScanOk returns a tuple with the IncrementalScan field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetIncrementalScanOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.IncrementalScan) { + return nil, false + } + return o.IncrementalScan, true +} + +// HasIncrementalScan returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasIncrementalScan() bool { + if o != nil && !isNil(o.IncrementalScan) { + return true + } + + return false +} + +// SetIncrementalScan gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the IncrementalScan field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetIncrementalScan(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.IncrementalScan = &v +} + +// GetThresholdCheck returns the ThresholdCheck field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetThresholdCheck() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.ThresholdCheck) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.ThresholdCheck +} + +// GetThresholdCheckOk returns a tuple with the ThresholdCheck field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetThresholdCheckOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.ThresholdCheck) { + return nil, false + } + return o.ThresholdCheck, true +} + +// HasThresholdCheck returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasThresholdCheck() bool { + if o != nil && !isNil(o.ThresholdCheck) { + return true + } + + return false +} + +// SetThresholdCheck gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the ThresholdCheck field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetThresholdCheck(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.ThresholdCheck = &v +} + +// GetAuthCertificatePassword returns the AuthCertificatePassword field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetAuthCertificatePassword() ModelsKeyfactorAPISecret { + if o == nil || isNil(o.AuthCertificatePassword) { + var ret ModelsKeyfactorAPISecret + return ret + } + return *o.AuthCertificatePassword +} + +// GetAuthCertificatePasswordOk returns a tuple with the AuthCertificatePassword field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetAuthCertificatePasswordOk() (*ModelsKeyfactorAPISecret, bool) { + if o == nil || isNil(o.AuthCertificatePassword) { + return nil, false + } + return o.AuthCertificatePassword, true +} + +// HasAuthCertificatePassword returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasAuthCertificatePassword() bool { + if o != nil && !isNil(o.AuthCertificatePassword) { + return true + } + + return false +} + +// SetAuthCertificatePassword gets a reference to the given ModelsKeyfactorAPISecret and assigns it to the AuthCertificatePassword field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetAuthCertificatePassword(v ModelsKeyfactorAPISecret) { + o.AuthCertificatePassword = &v +} + +// GetAuthCertificate returns the AuthCertificate field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetAuthCertificate() ModelsKeyfactorAPISecret { + if o == nil || isNil(o.AuthCertificate) { + var ret ModelsKeyfactorAPISecret + return ret + } + return *o.AuthCertificate +} + +// GetAuthCertificateOk returns a tuple with the AuthCertificate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetAuthCertificateOk() (*ModelsKeyfactorAPISecret, bool) { + if o == nil || isNil(o.AuthCertificate) { + return nil, false + } + return o.AuthCertificate, true +} + +// HasAuthCertificate returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasAuthCertificate() bool { + if o != nil && !isNil(o.AuthCertificate) { + return true + } + + return false +} + +// SetAuthCertificate gets a reference to the given ModelsKeyfactorAPISecret and assigns it to the AuthCertificate field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetAuthCertificate(v ModelsKeyfactorAPISecret) { + o.AuthCertificate = &v +} + +// GetCAType returns the CAType field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetCAType() int32 { + if o == nil || isNil(o.CAType) { + var ret int32 + return ret + } + return *o.CAType +} + +// GetCATypeOk returns a tuple with the CAType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetCATypeOk() (*int32, bool) { + if o == nil || isNil(o.CAType) { + return nil, false + } + return o.CAType, true +} + +// HasCAType returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasCAType() bool { + if o != nil && !isNil(o.CAType) { + return true + } + + return false +} + +// SetCAType gets a reference to the given int32 and assigns it to the CAType field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetCAType(v int32) { + o.CAType = &v +} + +// GetEnforceUniqueDN returns the EnforceUniqueDN field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetEnforceUniqueDN() bool { + if o == nil || isNil(o.EnforceUniqueDN) { + var ret bool + return ret + } + return *o.EnforceUniqueDN +} + +// GetEnforceUniqueDNOk returns a tuple with the EnforceUniqueDN field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetEnforceUniqueDNOk() (*bool, bool) { + if o == nil || isNil(o.EnforceUniqueDN) { + return nil, false + } + return o.EnforceUniqueDN, true +} + +// HasEnforceUniqueDN returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasEnforceUniqueDN() bool { + if o != nil && !isNil(o.EnforceUniqueDN) { + return true + } + + return false +} + +// SetEnforceUniqueDN gets a reference to the given bool and assigns it to the EnforceUniqueDN field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetEnforceUniqueDN(v bool) { + o.EnforceUniqueDN = &v +} + +func (o ModelsCertificateAuthoritiesCertificateAuthorityRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsCertificateAuthoritiesCertificateAuthorityRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.LogicalName) { + toSerialize["LogicalName"] = o.LogicalName + } + if !isNil(o.HostName) { + toSerialize["HostName"] = o.HostName + } + if !isNil(o.Delegate) { + toSerialize["Delegate"] = o.Delegate + } + if !isNil(o.DelegateEnrollment) { + toSerialize["DelegateEnrollment"] = o.DelegateEnrollment + } + if !isNil(o.ForestRoot) { + toSerialize["ForestRoot"] = o.ForestRoot + } + if !isNil(o.ConfigurationTenant) { + toSerialize["ConfigurationTenant"] = o.ConfigurationTenant + } + if !isNil(o.Remote) { + toSerialize["Remote"] = o.Remote + } + if !isNil(o.Agent) { + toSerialize["Agent"] = o.Agent + } + if !isNil(o.Standalone) { + toSerialize["Standalone"] = o.Standalone + } + if !isNil(o.MonitorThresholds) { + toSerialize["MonitorThresholds"] = o.MonitorThresholds + } + if !isNil(o.IssuanceMax) { + toSerialize["IssuanceMax"] = o.IssuanceMax + } + if !isNil(o.IssuanceMin) { + toSerialize["IssuanceMin"] = o.IssuanceMin + } + if !isNil(o.FailureMax) { + toSerialize["FailureMax"] = o.FailureMax + } + if !isNil(o.RFCEnforcement) { + toSerialize["RFCEnforcement"] = o.RFCEnforcement + } + if !isNil(o.Properties) { + toSerialize["Properties"] = o.Properties + } + if !isNil(o.AllowedEnrollmentTypes) { + toSerialize["AllowedEnrollmentTypes"] = o.AllowedEnrollmentTypes + } + if !isNil(o.KeyRetention) { + toSerialize["KeyRetention"] = o.KeyRetention + } + if !isNil(o.KeyRetentionDays) { + toSerialize["KeyRetentionDays"] = o.KeyRetentionDays + } + if !isNil(o.ExplicitCredentials) { + toSerialize["ExplicitCredentials"] = o.ExplicitCredentials + } + if !isNil(o.SubscriberTerms) { + toSerialize["SubscriberTerms"] = o.SubscriberTerms + } + if !isNil(o.ExplicitUser) { + toSerialize["ExplicitUser"] = o.ExplicitUser + } + if !isNil(o.ExplicitPassword) { + toSerialize["ExplicitPassword"] = o.ExplicitPassword + } + if !isNil(o.UseAllowedRequesters) { + toSerialize["UseAllowedRequesters"] = o.UseAllowedRequesters + } + if !isNil(o.AllowedRequesters) { + toSerialize["AllowedRequesters"] = o.AllowedRequesters + } + if !isNil(o.FullScan) { + toSerialize["FullScan"] = o.FullScan + } + if !isNil(o.IncrementalScan) { + toSerialize["IncrementalScan"] = o.IncrementalScan + } + if !isNil(o.ThresholdCheck) { + toSerialize["ThresholdCheck"] = o.ThresholdCheck + } + if !isNil(o.AuthCertificatePassword) { + toSerialize["AuthCertificatePassword"] = o.AuthCertificatePassword + } + if !isNil(o.AuthCertificate) { + toSerialize["AuthCertificate"] = o.AuthCertificate + } + if !isNil(o.CAType) { + toSerialize["CAType"] = o.CAType + } + if !isNil(o.EnforceUniqueDN) { + toSerialize["EnforceUniqueDN"] = o.EnforceUniqueDN + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) UnmarshalJSON(bytes []byte) (err error) { + varModelsCertificateAuthoritiesCertificateAuthorityRequest := _ModelsCertificateAuthoritiesCertificateAuthorityRequest{} + + if err = json.Unmarshal(bytes, &varModelsCertificateAuthoritiesCertificateAuthorityRequest); err == nil { + *o = ModelsCertificateAuthoritiesCertificateAuthorityRequest(varModelsCertificateAuthoritiesCertificateAuthorityRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "LogicalName") + delete(additionalProperties, "HostName") + delete(additionalProperties, "Delegate") + delete(additionalProperties, "DelegateEnrollment") + delete(additionalProperties, "ForestRoot") + delete(additionalProperties, "ConfigurationTenant") + delete(additionalProperties, "Remote") + delete(additionalProperties, "Agent") + delete(additionalProperties, "Standalone") + delete(additionalProperties, "MonitorThresholds") + delete(additionalProperties, "IssuanceMax") + delete(additionalProperties, "IssuanceMin") + delete(additionalProperties, "FailureMax") + delete(additionalProperties, "RFCEnforcement") + delete(additionalProperties, "Properties") + delete(additionalProperties, "AllowedEnrollmentTypes") + delete(additionalProperties, "KeyRetention") + delete(additionalProperties, "KeyRetentionDays") + delete(additionalProperties, "ExplicitCredentials") + delete(additionalProperties, "SubscriberTerms") + delete(additionalProperties, "ExplicitUser") + delete(additionalProperties, "ExplicitPassword") + delete(additionalProperties, "UseAllowedRequesters") + delete(additionalProperties, "AllowedRequesters") + delete(additionalProperties, "FullScan") + delete(additionalProperties, "IncrementalScan") + delete(additionalProperties, "ThresholdCheck") + delete(additionalProperties, "AuthCertificatePassword") + delete(additionalProperties, "AuthCertificate") + delete(additionalProperties, "CAType") + delete(additionalProperties, "EnforceUniqueDN") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsCertificateAuthoritiesCertificateAuthorityRequest struct { + value *ModelsCertificateAuthoritiesCertificateAuthorityRequest + isSet bool +} + +func (v NullableModelsCertificateAuthoritiesCertificateAuthorityRequest) Get() *ModelsCertificateAuthoritiesCertificateAuthorityRequest { + return v.value +} + +func (v *NullableModelsCertificateAuthoritiesCertificateAuthorityRequest) Set(val *ModelsCertificateAuthoritiesCertificateAuthorityRequest) { + v.value = val + v.isSet = true +} + +func (v NullableModelsCertificateAuthoritiesCertificateAuthorityRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsCertificateAuthoritiesCertificateAuthorityRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsCertificateAuthoritiesCertificateAuthorityRequest(val *ModelsCertificateAuthoritiesCertificateAuthorityRequest) *NullableModelsCertificateAuthoritiesCertificateAuthorityRequest { + return &NullableModelsCertificateAuthoritiesCertificateAuthorityRequest{value: val, isSet: true} +} + +func (v NullableModelsCertificateAuthoritiesCertificateAuthorityRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsCertificateAuthoritiesCertificateAuthorityRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_certificate_authorities_certificate_authority_response.go b/v1/api/keyfactor/model_models_certificate_authorities_certificate_authority_response.go new file mode 100644 index 0000000..e7d9f11 --- /dev/null +++ b/v1/api/keyfactor/model_models_certificate_authorities_certificate_authority_response.go @@ -0,0 +1,1338 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsCertificateAuthoritiesCertificateAuthorityResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsCertificateAuthoritiesCertificateAuthorityResponse{} + +// ModelsCertificateAuthoritiesCertificateAuthorityResponse struct for ModelsCertificateAuthoritiesCertificateAuthorityResponse +type ModelsCertificateAuthoritiesCertificateAuthorityResponse struct { + Id *int32 `json:"Id,omitempty"` + LogicalName *string `json:"LogicalName,omitempty"` + HostName *string `json:"HostName,omitempty"` + Delegate *bool `json:"Delegate,omitempty"` + DelegateEnrollment *bool `json:"DelegateEnrollment,omitempty"` + ForestRoot *string `json:"ForestRoot,omitempty"` + ConfigurationTenant *string `json:"ConfigurationTenant,omitempty"` + Remote *bool `json:"Remote,omitempty"` + Agent *string `json:"Agent,omitempty"` + Standalone *bool `json:"Standalone,omitempty"` + MonitorThresholds *bool `json:"MonitorThresholds,omitempty"` + IssuanceMax *int32 `json:"IssuanceMax,omitempty"` + IssuanceMin *int32 `json:"IssuanceMin,omitempty"` + DenialMax *int32 `json:"DenialMax,omitempty"` + FailureMax *int32 `json:"FailureMax,omitempty"` + RFCEnforcement *bool `json:"RFCEnforcement,omitempty"` + Properties *string `json:"Properties,omitempty"` + AllowedEnrollmentTypes *int32 `json:"AllowedEnrollmentTypes,omitempty"` + KeyRetention *int32 `json:"KeyRetention,omitempty"` + KeyRetentionDays *int32 `json:"KeyRetentionDays,omitempty"` + ExplicitCredentials *bool `json:"ExplicitCredentials,omitempty"` + SubscriberTerms *bool `json:"SubscriberTerms,omitempty"` + ExplicitUser *string `json:"ExplicitUser,omitempty"` + ExplicitPassword *ModelsKeyfactorAPISecret `json:"ExplicitPassword,omitempty"` + UseAllowedRequesters *bool `json:"UseAllowedRequesters,omitempty"` + AllowedRequesters []string `json:"AllowedRequesters,omitempty"` + FullScan *KeyfactorCommonSchedulingKeyfactorSchedule `json:"FullScan,omitempty"` + IncrementalScan *KeyfactorCommonSchedulingKeyfactorSchedule `json:"IncrementalScan,omitempty"` + ThresholdCheck *KeyfactorCommonSchedulingKeyfactorSchedule `json:"ThresholdCheck,omitempty"` + CAType *int32 `json:"CAType,omitempty"` + AuthCertificate *ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate `json:"AuthCertificate,omitempty"` + EnforceUniqueDN *bool `json:"EnforceUniqueDN,omitempty"` + LastScan *string `json:"LastScan,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsCertificateAuthoritiesCertificateAuthorityResponse ModelsCertificateAuthoritiesCertificateAuthorityResponse + +// NewModelsCertificateAuthoritiesCertificateAuthorityResponse instantiates a new ModelsCertificateAuthoritiesCertificateAuthorityResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsCertificateAuthoritiesCertificateAuthorityResponse() *ModelsCertificateAuthoritiesCertificateAuthorityResponse { + this := ModelsCertificateAuthoritiesCertificateAuthorityResponse{} + return &this +} + +// NewModelsCertificateAuthoritiesCertificateAuthorityResponseWithDefaults instantiates a new ModelsCertificateAuthoritiesCertificateAuthorityResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsCertificateAuthoritiesCertificateAuthorityResponseWithDefaults() *ModelsCertificateAuthoritiesCertificateAuthorityResponse { + this := ModelsCertificateAuthoritiesCertificateAuthorityResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetId(v int32) { + o.Id = &v +} + +// GetLogicalName returns the LogicalName field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetLogicalName() string { + if o == nil || isNil(o.LogicalName) { + var ret string + return ret + } + return *o.LogicalName +} + +// GetLogicalNameOk returns a tuple with the LogicalName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetLogicalNameOk() (*string, bool) { + if o == nil || isNil(o.LogicalName) { + return nil, false + } + return o.LogicalName, true +} + +// HasLogicalName returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasLogicalName() bool { + if o != nil && !isNil(o.LogicalName) { + return true + } + + return false +} + +// SetLogicalName gets a reference to the given string and assigns it to the LogicalName field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetLogicalName(v string) { + o.LogicalName = &v +} + +// GetHostName returns the HostName field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetHostName() string { + if o == nil || isNil(o.HostName) { + var ret string + return ret + } + return *o.HostName +} + +// GetHostNameOk returns a tuple with the HostName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetHostNameOk() (*string, bool) { + if o == nil || isNil(o.HostName) { + return nil, false + } + return o.HostName, true +} + +// HasHostName returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasHostName() bool { + if o != nil && !isNil(o.HostName) { + return true + } + + return false +} + +// SetHostName gets a reference to the given string and assigns it to the HostName field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetHostName(v string) { + o.HostName = &v +} + +// GetDelegate returns the Delegate field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetDelegate() bool { + if o == nil || isNil(o.Delegate) { + var ret bool + return ret + } + return *o.Delegate +} + +// GetDelegateOk returns a tuple with the Delegate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetDelegateOk() (*bool, bool) { + if o == nil || isNil(o.Delegate) { + return nil, false + } + return o.Delegate, true +} + +// HasDelegate returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasDelegate() bool { + if o != nil && !isNil(o.Delegate) { + return true + } + + return false +} + +// SetDelegate gets a reference to the given bool and assigns it to the Delegate field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetDelegate(v bool) { + o.Delegate = &v +} + +// GetDelegateEnrollment returns the DelegateEnrollment field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetDelegateEnrollment() bool { + if o == nil || isNil(o.DelegateEnrollment) { + var ret bool + return ret + } + return *o.DelegateEnrollment +} + +// GetDelegateEnrollmentOk returns a tuple with the DelegateEnrollment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetDelegateEnrollmentOk() (*bool, bool) { + if o == nil || isNil(o.DelegateEnrollment) { + return nil, false + } + return o.DelegateEnrollment, true +} + +// HasDelegateEnrollment returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasDelegateEnrollment() bool { + if o != nil && !isNil(o.DelegateEnrollment) { + return true + } + + return false +} + +// SetDelegateEnrollment gets a reference to the given bool and assigns it to the DelegateEnrollment field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetDelegateEnrollment(v bool) { + o.DelegateEnrollment = &v +} + +// GetForestRoot returns the ForestRoot field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetForestRoot() string { + if o == nil || isNil(o.ForestRoot) { + var ret string + return ret + } + return *o.ForestRoot +} + +// GetForestRootOk returns a tuple with the ForestRoot field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetForestRootOk() (*string, bool) { + if o == nil || isNil(o.ForestRoot) { + return nil, false + } + return o.ForestRoot, true +} + +// HasForestRoot returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasForestRoot() bool { + if o != nil && !isNil(o.ForestRoot) { + return true + } + + return false +} + +// SetForestRoot gets a reference to the given string and assigns it to the ForestRoot field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetForestRoot(v string) { + o.ForestRoot = &v +} + +// GetConfigurationTenant returns the ConfigurationTenant field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetConfigurationTenant() string { + if o == nil || isNil(o.ConfigurationTenant) { + var ret string + return ret + } + return *o.ConfigurationTenant +} + +// GetConfigurationTenantOk returns a tuple with the ConfigurationTenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetConfigurationTenantOk() (*string, bool) { + if o == nil || isNil(o.ConfigurationTenant) { + return nil, false + } + return o.ConfigurationTenant, true +} + +// HasConfigurationTenant returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasConfigurationTenant() bool { + if o != nil && !isNil(o.ConfigurationTenant) { + return true + } + + return false +} + +// SetConfigurationTenant gets a reference to the given string and assigns it to the ConfigurationTenant field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetConfigurationTenant(v string) { + o.ConfigurationTenant = &v +} + +// GetRemote returns the Remote field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetRemote() bool { + if o == nil || isNil(o.Remote) { + var ret bool + return ret + } + return *o.Remote +} + +// GetRemoteOk returns a tuple with the Remote field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetRemoteOk() (*bool, bool) { + if o == nil || isNil(o.Remote) { + return nil, false + } + return o.Remote, true +} + +// HasRemote returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasRemote() bool { + if o != nil && !isNil(o.Remote) { + return true + } + + return false +} + +// SetRemote gets a reference to the given bool and assigns it to the Remote field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetRemote(v bool) { + o.Remote = &v +} + +// GetAgent returns the Agent field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetAgent() string { + if o == nil || isNil(o.Agent) { + var ret string + return ret + } + return *o.Agent +} + +// GetAgentOk returns a tuple with the Agent field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetAgentOk() (*string, bool) { + if o == nil || isNil(o.Agent) { + return nil, false + } + return o.Agent, true +} + +// HasAgent returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasAgent() bool { + if o != nil && !isNil(o.Agent) { + return true + } + + return false +} + +// SetAgent gets a reference to the given string and assigns it to the Agent field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetAgent(v string) { + o.Agent = &v +} + +// GetStandalone returns the Standalone field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetStandalone() bool { + if o == nil || isNil(o.Standalone) { + var ret bool + return ret + } + return *o.Standalone +} + +// GetStandaloneOk returns a tuple with the Standalone field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetStandaloneOk() (*bool, bool) { + if o == nil || isNil(o.Standalone) { + return nil, false + } + return o.Standalone, true +} + +// HasStandalone returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasStandalone() bool { + if o != nil && !isNil(o.Standalone) { + return true + } + + return false +} + +// SetStandalone gets a reference to the given bool and assigns it to the Standalone field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetStandalone(v bool) { + o.Standalone = &v +} + +// GetMonitorThresholds returns the MonitorThresholds field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetMonitorThresholds() bool { + if o == nil || isNil(o.MonitorThresholds) { + var ret bool + return ret + } + return *o.MonitorThresholds +} + +// GetMonitorThresholdsOk returns a tuple with the MonitorThresholds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetMonitorThresholdsOk() (*bool, bool) { + if o == nil || isNil(o.MonitorThresholds) { + return nil, false + } + return o.MonitorThresholds, true +} + +// HasMonitorThresholds returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasMonitorThresholds() bool { + if o != nil && !isNil(o.MonitorThresholds) { + return true + } + + return false +} + +// SetMonitorThresholds gets a reference to the given bool and assigns it to the MonitorThresholds field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetMonitorThresholds(v bool) { + o.MonitorThresholds = &v +} + +// GetIssuanceMax returns the IssuanceMax field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetIssuanceMax() int32 { + if o == nil || isNil(o.IssuanceMax) { + var ret int32 + return ret + } + return *o.IssuanceMax +} + +// GetIssuanceMaxOk returns a tuple with the IssuanceMax field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetIssuanceMaxOk() (*int32, bool) { + if o == nil || isNil(o.IssuanceMax) { + return nil, false + } + return o.IssuanceMax, true +} + +// HasIssuanceMax returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasIssuanceMax() bool { + if o != nil && !isNil(o.IssuanceMax) { + return true + } + + return false +} + +// SetIssuanceMax gets a reference to the given int32 and assigns it to the IssuanceMax field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetIssuanceMax(v int32) { + o.IssuanceMax = &v +} + +// GetIssuanceMin returns the IssuanceMin field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetIssuanceMin() int32 { + if o == nil || isNil(o.IssuanceMin) { + var ret int32 + return ret + } + return *o.IssuanceMin +} + +// GetIssuanceMinOk returns a tuple with the IssuanceMin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetIssuanceMinOk() (*int32, bool) { + if o == nil || isNil(o.IssuanceMin) { + return nil, false + } + return o.IssuanceMin, true +} + +// HasIssuanceMin returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasIssuanceMin() bool { + if o != nil && !isNil(o.IssuanceMin) { + return true + } + + return false +} + +// SetIssuanceMin gets a reference to the given int32 and assigns it to the IssuanceMin field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetIssuanceMin(v int32) { + o.IssuanceMin = &v +} + +// GetDenialMax returns the DenialMax field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetDenialMax() int32 { + if o == nil || isNil(o.DenialMax) { + var ret int32 + return ret + } + return *o.DenialMax +} + +// GetDenialMaxOk returns a tuple with the DenialMax field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetDenialMaxOk() (*int32, bool) { + if o == nil || isNil(o.DenialMax) { + return nil, false + } + return o.DenialMax, true +} + +// HasDenialMax returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasDenialMax() bool { + if o != nil && !isNil(o.DenialMax) { + return true + } + + return false +} + +// SetDenialMax gets a reference to the given int32 and assigns it to the DenialMax field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetDenialMax(v int32) { + o.DenialMax = &v +} + +// GetFailureMax returns the FailureMax field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetFailureMax() int32 { + if o == nil || isNil(o.FailureMax) { + var ret int32 + return ret + } + return *o.FailureMax +} + +// GetFailureMaxOk returns a tuple with the FailureMax field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetFailureMaxOk() (*int32, bool) { + if o == nil || isNil(o.FailureMax) { + return nil, false + } + return o.FailureMax, true +} + +// HasFailureMax returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasFailureMax() bool { + if o != nil && !isNil(o.FailureMax) { + return true + } + + return false +} + +// SetFailureMax gets a reference to the given int32 and assigns it to the FailureMax field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetFailureMax(v int32) { + o.FailureMax = &v +} + +// GetRFCEnforcement returns the RFCEnforcement field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetRFCEnforcement() bool { + if o == nil || isNil(o.RFCEnforcement) { + var ret bool + return ret + } + return *o.RFCEnforcement +} + +// GetRFCEnforcementOk returns a tuple with the RFCEnforcement field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetRFCEnforcementOk() (*bool, bool) { + if o == nil || isNil(o.RFCEnforcement) { + return nil, false + } + return o.RFCEnforcement, true +} + +// HasRFCEnforcement returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasRFCEnforcement() bool { + if o != nil && !isNil(o.RFCEnforcement) { + return true + } + + return false +} + +// SetRFCEnforcement gets a reference to the given bool and assigns it to the RFCEnforcement field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetRFCEnforcement(v bool) { + o.RFCEnforcement = &v +} + +// GetProperties returns the Properties field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetProperties() string { + if o == nil || isNil(o.Properties) { + var ret string + return ret + } + return *o.Properties +} + +// GetPropertiesOk returns a tuple with the Properties field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetPropertiesOk() (*string, bool) { + if o == nil || isNil(o.Properties) { + return nil, false + } + return o.Properties, true +} + +// HasProperties returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasProperties() bool { + if o != nil && !isNil(o.Properties) { + return true + } + + return false +} + +// SetProperties gets a reference to the given string and assigns it to the Properties field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetProperties(v string) { + o.Properties = &v +} + +// GetAllowedEnrollmentTypes returns the AllowedEnrollmentTypes field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetAllowedEnrollmentTypes() int32 { + if o == nil || isNil(o.AllowedEnrollmentTypes) { + var ret int32 + return ret + } + return *o.AllowedEnrollmentTypes +} + +// GetAllowedEnrollmentTypesOk returns a tuple with the AllowedEnrollmentTypes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetAllowedEnrollmentTypesOk() (*int32, bool) { + if o == nil || isNil(o.AllowedEnrollmentTypes) { + return nil, false + } + return o.AllowedEnrollmentTypes, true +} + +// HasAllowedEnrollmentTypes returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasAllowedEnrollmentTypes() bool { + if o != nil && !isNil(o.AllowedEnrollmentTypes) { + return true + } + + return false +} + +// SetAllowedEnrollmentTypes gets a reference to the given int32 and assigns it to the AllowedEnrollmentTypes field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetAllowedEnrollmentTypes(v int32) { + o.AllowedEnrollmentTypes = &v +} + +// GetKeyRetention returns the KeyRetention field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetKeyRetention() int32 { + if o == nil || isNil(o.KeyRetention) { + var ret int32 + return ret + } + return *o.KeyRetention +} + +// GetKeyRetentionOk returns a tuple with the KeyRetention field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetKeyRetentionOk() (*int32, bool) { + if o == nil || isNil(o.KeyRetention) { + return nil, false + } + return o.KeyRetention, true +} + +// HasKeyRetention returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasKeyRetention() bool { + if o != nil && !isNil(o.KeyRetention) { + return true + } + + return false +} + +// SetKeyRetention gets a reference to the given int32 and assigns it to the KeyRetention field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetKeyRetention(v int32) { + o.KeyRetention = &v +} + +// GetKeyRetentionDays returns the KeyRetentionDays field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetKeyRetentionDays() int32 { + if o == nil || isNil(o.KeyRetentionDays) { + var ret int32 + return ret + } + return *o.KeyRetentionDays +} + +// GetKeyRetentionDaysOk returns a tuple with the KeyRetentionDays field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetKeyRetentionDaysOk() (*int32, bool) { + if o == nil || isNil(o.KeyRetentionDays) { + return nil, false + } + return o.KeyRetentionDays, true +} + +// HasKeyRetentionDays returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasKeyRetentionDays() bool { + if o != nil && !isNil(o.KeyRetentionDays) { + return true + } + + return false +} + +// SetKeyRetentionDays gets a reference to the given int32 and assigns it to the KeyRetentionDays field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetKeyRetentionDays(v int32) { + o.KeyRetentionDays = &v +} + +// GetExplicitCredentials returns the ExplicitCredentials field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetExplicitCredentials() bool { + if o == nil || isNil(o.ExplicitCredentials) { + var ret bool + return ret + } + return *o.ExplicitCredentials +} + +// GetExplicitCredentialsOk returns a tuple with the ExplicitCredentials field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetExplicitCredentialsOk() (*bool, bool) { + if o == nil || isNil(o.ExplicitCredentials) { + return nil, false + } + return o.ExplicitCredentials, true +} + +// HasExplicitCredentials returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasExplicitCredentials() bool { + if o != nil && !isNil(o.ExplicitCredentials) { + return true + } + + return false +} + +// SetExplicitCredentials gets a reference to the given bool and assigns it to the ExplicitCredentials field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetExplicitCredentials(v bool) { + o.ExplicitCredentials = &v +} + +// GetSubscriberTerms returns the SubscriberTerms field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetSubscriberTerms() bool { + if o == nil || isNil(o.SubscriberTerms) { + var ret bool + return ret + } + return *o.SubscriberTerms +} + +// GetSubscriberTermsOk returns a tuple with the SubscriberTerms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetSubscriberTermsOk() (*bool, bool) { + if o == nil || isNil(o.SubscriberTerms) { + return nil, false + } + return o.SubscriberTerms, true +} + +// HasSubscriberTerms returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasSubscriberTerms() bool { + if o != nil && !isNil(o.SubscriberTerms) { + return true + } + + return false +} + +// SetSubscriberTerms gets a reference to the given bool and assigns it to the SubscriberTerms field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetSubscriberTerms(v bool) { + o.SubscriberTerms = &v +} + +// GetExplicitUser returns the ExplicitUser field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetExplicitUser() string { + if o == nil || isNil(o.ExplicitUser) { + var ret string + return ret + } + return *o.ExplicitUser +} + +// GetExplicitUserOk returns a tuple with the ExplicitUser field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetExplicitUserOk() (*string, bool) { + if o == nil || isNil(o.ExplicitUser) { + return nil, false + } + return o.ExplicitUser, true +} + +// HasExplicitUser returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasExplicitUser() bool { + if o != nil && !isNil(o.ExplicitUser) { + return true + } + + return false +} + +// SetExplicitUser gets a reference to the given string and assigns it to the ExplicitUser field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetExplicitUser(v string) { + o.ExplicitUser = &v +} + +// GetExplicitPassword returns the ExplicitPassword field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetExplicitPassword() ModelsKeyfactorAPISecret { + if o == nil || isNil(o.ExplicitPassword) { + var ret ModelsKeyfactorAPISecret + return ret + } + return *o.ExplicitPassword +} + +// GetExplicitPasswordOk returns a tuple with the ExplicitPassword field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetExplicitPasswordOk() (*ModelsKeyfactorAPISecret, bool) { + if o == nil || isNil(o.ExplicitPassword) { + return nil, false + } + return o.ExplicitPassword, true +} + +// HasExplicitPassword returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasExplicitPassword() bool { + if o != nil && !isNil(o.ExplicitPassword) { + return true + } + + return false +} + +// SetExplicitPassword gets a reference to the given ModelsKeyfactorAPISecret and assigns it to the ExplicitPassword field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetExplicitPassword(v ModelsKeyfactorAPISecret) { + o.ExplicitPassword = &v +} + +// GetUseAllowedRequesters returns the UseAllowedRequesters field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetUseAllowedRequesters() bool { + if o == nil || isNil(o.UseAllowedRequesters) { + var ret bool + return ret + } + return *o.UseAllowedRequesters +} + +// GetUseAllowedRequestersOk returns a tuple with the UseAllowedRequesters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetUseAllowedRequestersOk() (*bool, bool) { + if o == nil || isNil(o.UseAllowedRequesters) { + return nil, false + } + return o.UseAllowedRequesters, true +} + +// HasUseAllowedRequesters returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasUseAllowedRequesters() bool { + if o != nil && !isNil(o.UseAllowedRequesters) { + return true + } + + return false +} + +// SetUseAllowedRequesters gets a reference to the given bool and assigns it to the UseAllowedRequesters field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetUseAllowedRequesters(v bool) { + o.UseAllowedRequesters = &v +} + +// GetAllowedRequesters returns the AllowedRequesters field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetAllowedRequesters() []string { + if o == nil || isNil(o.AllowedRequesters) { + var ret []string + return ret + } + return o.AllowedRequesters +} + +// GetAllowedRequestersOk returns a tuple with the AllowedRequesters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetAllowedRequestersOk() ([]string, bool) { + if o == nil || isNil(o.AllowedRequesters) { + return nil, false + } + return o.AllowedRequesters, true +} + +// HasAllowedRequesters returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasAllowedRequesters() bool { + if o != nil && !isNil(o.AllowedRequesters) { + return true + } + + return false +} + +// SetAllowedRequesters gets a reference to the given []string and assigns it to the AllowedRequesters field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetAllowedRequesters(v []string) { + o.AllowedRequesters = v +} + +// GetFullScan returns the FullScan field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetFullScan() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.FullScan) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.FullScan +} + +// GetFullScanOk returns a tuple with the FullScan field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetFullScanOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.FullScan) { + return nil, false + } + return o.FullScan, true +} + +// HasFullScan returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasFullScan() bool { + if o != nil && !isNil(o.FullScan) { + return true + } + + return false +} + +// SetFullScan gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the FullScan field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetFullScan(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.FullScan = &v +} + +// GetIncrementalScan returns the IncrementalScan field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetIncrementalScan() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.IncrementalScan) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.IncrementalScan +} + +// GetIncrementalScanOk returns a tuple with the IncrementalScan field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetIncrementalScanOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.IncrementalScan) { + return nil, false + } + return o.IncrementalScan, true +} + +// HasIncrementalScan returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasIncrementalScan() bool { + if o != nil && !isNil(o.IncrementalScan) { + return true + } + + return false +} + +// SetIncrementalScan gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the IncrementalScan field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetIncrementalScan(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.IncrementalScan = &v +} + +// GetThresholdCheck returns the ThresholdCheck field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetThresholdCheck() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.ThresholdCheck) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.ThresholdCheck +} + +// GetThresholdCheckOk returns a tuple with the ThresholdCheck field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetThresholdCheckOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.ThresholdCheck) { + return nil, false + } + return o.ThresholdCheck, true +} + +// HasThresholdCheck returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasThresholdCheck() bool { + if o != nil && !isNil(o.ThresholdCheck) { + return true + } + + return false +} + +// SetThresholdCheck gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the ThresholdCheck field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetThresholdCheck(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.ThresholdCheck = &v +} + +// GetCAType returns the CAType field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetCAType() int32 { + if o == nil || isNil(o.CAType) { + var ret int32 + return ret + } + return *o.CAType +} + +// GetCATypeOk returns a tuple with the CAType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetCATypeOk() (*int32, bool) { + if o == nil || isNil(o.CAType) { + return nil, false + } + return o.CAType, true +} + +// HasCAType returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasCAType() bool { + if o != nil && !isNil(o.CAType) { + return true + } + + return false +} + +// SetCAType gets a reference to the given int32 and assigns it to the CAType field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetCAType(v int32) { + o.CAType = &v +} + +// GetAuthCertificate returns the AuthCertificate field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetAuthCertificate() ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate { + if o == nil || isNil(o.AuthCertificate) { + var ret ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate + return ret + } + return *o.AuthCertificate +} + +// GetAuthCertificateOk returns a tuple with the AuthCertificate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetAuthCertificateOk() (*ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate, bool) { + if o == nil || isNil(o.AuthCertificate) { + return nil, false + } + return o.AuthCertificate, true +} + +// HasAuthCertificate returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasAuthCertificate() bool { + if o != nil && !isNil(o.AuthCertificate) { + return true + } + + return false +} + +// SetAuthCertificate gets a reference to the given ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate and assigns it to the AuthCertificate field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetAuthCertificate(v ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) { + o.AuthCertificate = &v +} + +// GetEnforceUniqueDN returns the EnforceUniqueDN field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetEnforceUniqueDN() bool { + if o == nil || isNil(o.EnforceUniqueDN) { + var ret bool + return ret + } + return *o.EnforceUniqueDN +} + +// GetEnforceUniqueDNOk returns a tuple with the EnforceUniqueDN field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetEnforceUniqueDNOk() (*bool, bool) { + if o == nil || isNil(o.EnforceUniqueDN) { + return nil, false + } + return o.EnforceUniqueDN, true +} + +// HasEnforceUniqueDN returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasEnforceUniqueDN() bool { + if o != nil && !isNil(o.EnforceUniqueDN) { + return true + } + + return false +} + +// SetEnforceUniqueDN gets a reference to the given bool and assigns it to the EnforceUniqueDN field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetEnforceUniqueDN(v bool) { + o.EnforceUniqueDN = &v +} + +// GetLastScan returns the LastScan field value if set, zero value otherwise. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetLastScan() string { + if o == nil || isNil(o.LastScan) { + var ret string + return ret + } + return *o.LastScan +} + +// GetLastScanOk returns a tuple with the LastScan field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetLastScanOk() (*string, bool) { + if o == nil || isNil(o.LastScan) { + return nil, false + } + return o.LastScan, true +} + +// HasLastScan returns a boolean if a field has been set. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasLastScan() bool { + if o != nil && !isNil(o.LastScan) { + return true + } + + return false +} + +// SetLastScan gets a reference to the given string and assigns it to the LastScan field. +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetLastScan(v string) { + o.LastScan = &v +} + +func (o ModelsCertificateAuthoritiesCertificateAuthorityResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsCertificateAuthoritiesCertificateAuthorityResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.LogicalName) { + toSerialize["LogicalName"] = o.LogicalName + } + if !isNil(o.HostName) { + toSerialize["HostName"] = o.HostName + } + if !isNil(o.Delegate) { + toSerialize["Delegate"] = o.Delegate + } + if !isNil(o.DelegateEnrollment) { + toSerialize["DelegateEnrollment"] = o.DelegateEnrollment + } + // skip: ForestRoot is readOnly + if !isNil(o.ConfigurationTenant) { + toSerialize["ConfigurationTenant"] = o.ConfigurationTenant + } + if !isNil(o.Remote) { + toSerialize["Remote"] = o.Remote + } + if !isNil(o.Agent) { + toSerialize["Agent"] = o.Agent + } + if !isNil(o.Standalone) { + toSerialize["Standalone"] = o.Standalone + } + if !isNil(o.MonitorThresholds) { + toSerialize["MonitorThresholds"] = o.MonitorThresholds + } + if !isNil(o.IssuanceMax) { + toSerialize["IssuanceMax"] = o.IssuanceMax + } + if !isNil(o.IssuanceMin) { + toSerialize["IssuanceMin"] = o.IssuanceMin + } + if !isNil(o.DenialMax) { + toSerialize["DenialMax"] = o.DenialMax + } + if !isNil(o.FailureMax) { + toSerialize["FailureMax"] = o.FailureMax + } + if !isNil(o.RFCEnforcement) { + toSerialize["RFCEnforcement"] = o.RFCEnforcement + } + if !isNil(o.Properties) { + toSerialize["Properties"] = o.Properties + } + if !isNil(o.AllowedEnrollmentTypes) { + toSerialize["AllowedEnrollmentTypes"] = o.AllowedEnrollmentTypes + } + if !isNil(o.KeyRetention) { + toSerialize["KeyRetention"] = o.KeyRetention + } + if !isNil(o.KeyRetentionDays) { + toSerialize["KeyRetentionDays"] = o.KeyRetentionDays + } + if !isNil(o.ExplicitCredentials) { + toSerialize["ExplicitCredentials"] = o.ExplicitCredentials + } + if !isNil(o.SubscriberTerms) { + toSerialize["SubscriberTerms"] = o.SubscriberTerms + } + if !isNil(o.ExplicitUser) { + toSerialize["ExplicitUser"] = o.ExplicitUser + } + if !isNil(o.ExplicitPassword) { + toSerialize["ExplicitPassword"] = o.ExplicitPassword + } + if !isNil(o.UseAllowedRequesters) { + toSerialize["UseAllowedRequesters"] = o.UseAllowedRequesters + } + if !isNil(o.AllowedRequesters) { + toSerialize["AllowedRequesters"] = o.AllowedRequesters + } + if !isNil(o.FullScan) { + toSerialize["FullScan"] = o.FullScan + } + if !isNil(o.IncrementalScan) { + toSerialize["IncrementalScan"] = o.IncrementalScan + } + if !isNil(o.ThresholdCheck) { + toSerialize["ThresholdCheck"] = o.ThresholdCheck + } + if !isNil(o.CAType) { + toSerialize["CAType"] = o.CAType + } + if !isNil(o.AuthCertificate) { + toSerialize["AuthCertificate"] = o.AuthCertificate + } + if !isNil(o.EnforceUniqueDN) { + toSerialize["EnforceUniqueDN"] = o.EnforceUniqueDN + } + // skip: LastScan is readOnly + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) UnmarshalJSON(bytes []byte) (err error) { + varModelsCertificateAuthoritiesCertificateAuthorityResponse := _ModelsCertificateAuthoritiesCertificateAuthorityResponse{} + + if err = json.Unmarshal(bytes, &varModelsCertificateAuthoritiesCertificateAuthorityResponse); err == nil { + *o = ModelsCertificateAuthoritiesCertificateAuthorityResponse(varModelsCertificateAuthoritiesCertificateAuthorityResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "LogicalName") + delete(additionalProperties, "HostName") + delete(additionalProperties, "Delegate") + delete(additionalProperties, "DelegateEnrollment") + delete(additionalProperties, "ForestRoot") + delete(additionalProperties, "ConfigurationTenant") + delete(additionalProperties, "Remote") + delete(additionalProperties, "Agent") + delete(additionalProperties, "Standalone") + delete(additionalProperties, "MonitorThresholds") + delete(additionalProperties, "IssuanceMax") + delete(additionalProperties, "IssuanceMin") + delete(additionalProperties, "DenialMax") + delete(additionalProperties, "FailureMax") + delete(additionalProperties, "RFCEnforcement") + delete(additionalProperties, "Properties") + delete(additionalProperties, "AllowedEnrollmentTypes") + delete(additionalProperties, "KeyRetention") + delete(additionalProperties, "KeyRetentionDays") + delete(additionalProperties, "ExplicitCredentials") + delete(additionalProperties, "SubscriberTerms") + delete(additionalProperties, "ExplicitUser") + delete(additionalProperties, "ExplicitPassword") + delete(additionalProperties, "UseAllowedRequesters") + delete(additionalProperties, "AllowedRequesters") + delete(additionalProperties, "FullScan") + delete(additionalProperties, "IncrementalScan") + delete(additionalProperties, "ThresholdCheck") + delete(additionalProperties, "CAType") + delete(additionalProperties, "AuthCertificate") + delete(additionalProperties, "EnforceUniqueDN") + delete(additionalProperties, "LastScan") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsCertificateAuthoritiesCertificateAuthorityResponse struct { + value *ModelsCertificateAuthoritiesCertificateAuthorityResponse + isSet bool +} + +func (v NullableModelsCertificateAuthoritiesCertificateAuthorityResponse) Get() *ModelsCertificateAuthoritiesCertificateAuthorityResponse { + return v.value +} + +func (v *NullableModelsCertificateAuthoritiesCertificateAuthorityResponse) Set(val *ModelsCertificateAuthoritiesCertificateAuthorityResponse) { + v.value = val + v.isSet = true +} + +func (v NullableModelsCertificateAuthoritiesCertificateAuthorityResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsCertificateAuthoritiesCertificateAuthorityResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsCertificateAuthoritiesCertificateAuthorityResponse(val *ModelsCertificateAuthoritiesCertificateAuthorityResponse) *NullableModelsCertificateAuthoritiesCertificateAuthorityResponse { + return &NullableModelsCertificateAuthoritiesCertificateAuthorityResponse{value: val, isSet: true} +} + +func (v NullableModelsCertificateAuthoritiesCertificateAuthorityResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsCertificateAuthoritiesCertificateAuthorityResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_certificate_details.go b/v1/api/keyfactor/model_models_certificate_details.go new file mode 100644 index 0000000..16ef9e8 --- /dev/null +++ b/v1/api/keyfactor/model_models_certificate_details.go @@ -0,0 +1,403 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" + "time" +) + +// checks if the ModelsCertificateDetails type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsCertificateDetails{} + +// ModelsCertificateDetails struct for ModelsCertificateDetails +type ModelsCertificateDetails struct { + IssuedDN NullableString `json:"IssuedDN,omitempty"` + IssuerDN NullableString `json:"IssuerDN,omitempty"` + Thumbprint *string `json:"Thumbprint,omitempty"` + NotAfter *time.Time `json:"NotAfter,omitempty"` + NotBefore *time.Time `json:"NotBefore,omitempty"` + Metadata *map[string]string `json:"Metadata,omitempty"` + IsEndEntity *bool `json:"IsEndEntity,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsCertificateDetails ModelsCertificateDetails + +// NewModelsCertificateDetails instantiates a new ModelsCertificateDetails object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsCertificateDetails() *ModelsCertificateDetails { + this := ModelsCertificateDetails{} + return &this +} + +// NewModelsCertificateDetailsWithDefaults instantiates a new ModelsCertificateDetails object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsCertificateDetailsWithDefaults() *ModelsCertificateDetails { + this := ModelsCertificateDetails{} + return &this +} + +// GetIssuedDN returns the IssuedDN field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModelsCertificateDetails) GetIssuedDN() string { + if o == nil || isNil(o.IssuedDN.Get()) { + var ret string + return ret + } + return *o.IssuedDN.Get() +} + +// GetIssuedDNOk returns a tuple with the IssuedDN field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModelsCertificateDetails) GetIssuedDNOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IssuedDN.Get(), o.IssuedDN.IsSet() +} + +// HasIssuedDN returns a boolean if a field has been set. +func (o *ModelsCertificateDetails) HasIssuedDN() bool { + if o != nil && o.IssuedDN.IsSet() { + return true + } + + return false +} + +// SetIssuedDN gets a reference to the given NullableString and assigns it to the IssuedDN field. +func (o *ModelsCertificateDetails) SetIssuedDN(v string) { + o.IssuedDN.Set(&v) +} + +// SetIssuedDNNil sets the value for IssuedDN to be an explicit nil +func (o *ModelsCertificateDetails) SetIssuedDNNil() { + o.IssuedDN.Set(nil) +} + +// UnsetIssuedDN ensures that no value is present for IssuedDN, not even an explicit nil +func (o *ModelsCertificateDetails) UnsetIssuedDN() { + o.IssuedDN.Unset() +} + +// GetIssuerDN returns the IssuerDN field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModelsCertificateDetails) GetIssuerDN() string { + if o == nil || isNil(o.IssuerDN.Get()) { + var ret string + return ret + } + return *o.IssuerDN.Get() +} + +// GetIssuerDNOk returns a tuple with the IssuerDN field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModelsCertificateDetails) GetIssuerDNOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IssuerDN.Get(), o.IssuerDN.IsSet() +} + +// HasIssuerDN returns a boolean if a field has been set. +func (o *ModelsCertificateDetails) HasIssuerDN() bool { + if o != nil && o.IssuerDN.IsSet() { + return true + } + + return false +} + +// SetIssuerDN gets a reference to the given NullableString and assigns it to the IssuerDN field. +func (o *ModelsCertificateDetails) SetIssuerDN(v string) { + o.IssuerDN.Set(&v) +} + +// SetIssuerDNNil sets the value for IssuerDN to be an explicit nil +func (o *ModelsCertificateDetails) SetIssuerDNNil() { + o.IssuerDN.Set(nil) +} + +// UnsetIssuerDN ensures that no value is present for IssuerDN, not even an explicit nil +func (o *ModelsCertificateDetails) UnsetIssuerDN() { + o.IssuerDN.Unset() +} + +// GetThumbprint returns the Thumbprint field value if set, zero value otherwise. +func (o *ModelsCertificateDetails) GetThumbprint() string { + if o == nil || isNil(o.Thumbprint) { + var ret string + return ret + } + return *o.Thumbprint +} + +// GetThumbprintOk returns a tuple with the Thumbprint field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateDetails) GetThumbprintOk() (*string, bool) { + if o == nil || isNil(o.Thumbprint) { + return nil, false + } + return o.Thumbprint, true +} + +// HasThumbprint returns a boolean if a field has been set. +func (o *ModelsCertificateDetails) HasThumbprint() bool { + if o != nil && !isNil(o.Thumbprint) { + return true + } + + return false +} + +// SetThumbprint gets a reference to the given string and assigns it to the Thumbprint field. +func (o *ModelsCertificateDetails) SetThumbprint(v string) { + o.Thumbprint = &v +} + +// GetNotAfter returns the NotAfter field value if set, zero value otherwise. +func (o *ModelsCertificateDetails) GetNotAfter() time.Time { + if o == nil || isNil(o.NotAfter) { + var ret time.Time + return ret + } + return *o.NotAfter +} + +// GetNotAfterOk returns a tuple with the NotAfter field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateDetails) GetNotAfterOk() (*time.Time, bool) { + if o == nil || isNil(o.NotAfter) { + return nil, false + } + return o.NotAfter, true +} + +// HasNotAfter returns a boolean if a field has been set. +func (o *ModelsCertificateDetails) HasNotAfter() bool { + if o != nil && !isNil(o.NotAfter) { + return true + } + + return false +} + +// SetNotAfter gets a reference to the given time.Time and assigns it to the NotAfter field. +func (o *ModelsCertificateDetails) SetNotAfter(v time.Time) { + o.NotAfter = &v +} + +// GetNotBefore returns the NotBefore field value if set, zero value otherwise. +func (o *ModelsCertificateDetails) GetNotBefore() time.Time { + if o == nil || isNil(o.NotBefore) { + var ret time.Time + return ret + } + return *o.NotBefore +} + +// GetNotBeforeOk returns a tuple with the NotBefore field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateDetails) GetNotBeforeOk() (*time.Time, bool) { + if o == nil || isNil(o.NotBefore) { + return nil, false + } + return o.NotBefore, true +} + +// HasNotBefore returns a boolean if a field has been set. +func (o *ModelsCertificateDetails) HasNotBefore() bool { + if o != nil && !isNil(o.NotBefore) { + return true + } + + return false +} + +// SetNotBefore gets a reference to the given time.Time and assigns it to the NotBefore field. +func (o *ModelsCertificateDetails) SetNotBefore(v time.Time) { + o.NotBefore = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ModelsCertificateDetails) GetMetadata() map[string]string { + if o == nil || isNil(o.Metadata) { + var ret map[string]string + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateDetails) GetMetadataOk() (*map[string]string, bool) { + if o == nil || isNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ModelsCertificateDetails) HasMetadata() bool { + if o != nil && !isNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given map[string]string and assigns it to the Metadata field. +func (o *ModelsCertificateDetails) SetMetadata(v map[string]string) { + o.Metadata = &v +} + +// GetIsEndEntity returns the IsEndEntity field value if set, zero value otherwise. +func (o *ModelsCertificateDetails) GetIsEndEntity() bool { + if o == nil || isNil(o.IsEndEntity) { + var ret bool + return ret + } + return *o.IsEndEntity +} + +// GetIsEndEntityOk returns a tuple with the IsEndEntity field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateDetails) GetIsEndEntityOk() (*bool, bool) { + if o == nil || isNil(o.IsEndEntity) { + return nil, false + } + return o.IsEndEntity, true +} + +// HasIsEndEntity returns a boolean if a field has been set. +func (o *ModelsCertificateDetails) HasIsEndEntity() bool { + if o != nil && !isNil(o.IsEndEntity) { + return true + } + + return false +} + +// SetIsEndEntity gets a reference to the given bool and assigns it to the IsEndEntity field. +func (o *ModelsCertificateDetails) SetIsEndEntity(v bool) { + o.IsEndEntity = &v +} + +func (o ModelsCertificateDetails) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsCertificateDetails) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.IssuedDN.IsSet() { + toSerialize["IssuedDN"] = o.IssuedDN.Get() + } + if o.IssuerDN.IsSet() { + toSerialize["IssuerDN"] = o.IssuerDN.Get() + } + if !isNil(o.Thumbprint) { + toSerialize["Thumbprint"] = o.Thumbprint + } + if !isNil(o.NotAfter) { + toSerialize["NotAfter"] = o.NotAfter + } + if !isNil(o.NotBefore) { + toSerialize["NotBefore"] = o.NotBefore + } + if !isNil(o.Metadata) { + toSerialize["Metadata"] = o.Metadata + } + if !isNil(o.IsEndEntity) { + toSerialize["IsEndEntity"] = o.IsEndEntity + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsCertificateDetails) UnmarshalJSON(bytes []byte) (err error) { + varModelsCertificateDetails := _ModelsCertificateDetails{} + + if err = json.Unmarshal(bytes, &varModelsCertificateDetails); err == nil { + *o = ModelsCertificateDetails(varModelsCertificateDetails) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "IssuedDN") + delete(additionalProperties, "IssuerDN") + delete(additionalProperties, "Thumbprint") + delete(additionalProperties, "NotAfter") + delete(additionalProperties, "NotBefore") + delete(additionalProperties, "Metadata") + delete(additionalProperties, "IsEndEntity") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsCertificateDetails struct { + value *ModelsCertificateDetails + isSet bool +} + +func (v NullableModelsCertificateDetails) Get() *ModelsCertificateDetails { + return v.value +} + +func (v *NullableModelsCertificateDetails) Set(val *ModelsCertificateDetails) { + v.value = val + v.isSet = true +} + +func (v NullableModelsCertificateDetails) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsCertificateDetails) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsCertificateDetails(val *ModelsCertificateDetails) *NullableModelsCertificateDetails { + return &NullableModelsCertificateDetails{value: val, isSet: true} +} + +func (v NullableModelsCertificateDetails) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsCertificateDetails) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_certificate_download_request.go b/v1/api/keyfactor/model_models_certificate_download_request.go new file mode 100644 index 0000000..02a2e1c --- /dev/null +++ b/v1/api/keyfactor/model_models_certificate_download_request.go @@ -0,0 +1,317 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsCertificateDownloadRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsCertificateDownloadRequest{} + +// ModelsCertificateDownloadRequest struct for ModelsCertificateDownloadRequest +type ModelsCertificateDownloadRequest struct { + CertID *int32 `json:"CertID,omitempty"` + SerialNumber *string `json:"SerialNumber,omitempty"` + IssuerDN NullableString `json:"IssuerDN,omitempty"` + Thumbprint *string `json:"Thumbprint,omitempty"` + IncludeChain *bool `json:"IncludeChain,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsCertificateDownloadRequest ModelsCertificateDownloadRequest + +// NewModelsCertificateDownloadRequest instantiates a new ModelsCertificateDownloadRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsCertificateDownloadRequest() *ModelsCertificateDownloadRequest { + this := ModelsCertificateDownloadRequest{} + return &this +} + +// NewModelsCertificateDownloadRequestWithDefaults instantiates a new ModelsCertificateDownloadRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsCertificateDownloadRequestWithDefaults() *ModelsCertificateDownloadRequest { + this := ModelsCertificateDownloadRequest{} + return &this +} + +// GetCertID returns the CertID field value if set, zero value otherwise. +func (o *ModelsCertificateDownloadRequest) GetCertID() int32 { + if o == nil || isNil(o.CertID) { + var ret int32 + return ret + } + return *o.CertID +} + +// GetCertIDOk returns a tuple with the CertID field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateDownloadRequest) GetCertIDOk() (*int32, bool) { + if o == nil || isNil(o.CertID) { + return nil, false + } + return o.CertID, true +} + +// HasCertID returns a boolean if a field has been set. +func (o *ModelsCertificateDownloadRequest) HasCertID() bool { + if o != nil && !isNil(o.CertID) { + return true + } + + return false +} + +// SetCertID gets a reference to the given int32 and assigns it to the CertID field. +func (o *ModelsCertificateDownloadRequest) SetCertID(v int32) { + o.CertID = &v +} + +// GetSerialNumber returns the SerialNumber field value if set, zero value otherwise. +func (o *ModelsCertificateDownloadRequest) GetSerialNumber() string { + if o == nil || isNil(o.SerialNumber) { + var ret string + return ret + } + return *o.SerialNumber +} + +// GetSerialNumberOk returns a tuple with the SerialNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateDownloadRequest) GetSerialNumberOk() (*string, bool) { + if o == nil || isNil(o.SerialNumber) { + return nil, false + } + return o.SerialNumber, true +} + +// HasSerialNumber returns a boolean if a field has been set. +func (o *ModelsCertificateDownloadRequest) HasSerialNumber() bool { + if o != nil && !isNil(o.SerialNumber) { + return true + } + + return false +} + +// SetSerialNumber gets a reference to the given string and assigns it to the SerialNumber field. +func (o *ModelsCertificateDownloadRequest) SetSerialNumber(v string) { + o.SerialNumber = &v +} + +// GetIssuerDN returns the IssuerDN field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModelsCertificateDownloadRequest) GetIssuerDN() string { + if o == nil || isNil(o.IssuerDN.Get()) { + var ret string + return ret + } + return *o.IssuerDN.Get() +} + +// GetIssuerDNOk returns a tuple with the IssuerDN field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModelsCertificateDownloadRequest) GetIssuerDNOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IssuerDN.Get(), o.IssuerDN.IsSet() +} + +// HasIssuerDN returns a boolean if a field has been set. +func (o *ModelsCertificateDownloadRequest) HasIssuerDN() bool { + if o != nil && o.IssuerDN.IsSet() { + return true + } + + return false +} + +// SetIssuerDN gets a reference to the given NullableString and assigns it to the IssuerDN field. +func (o *ModelsCertificateDownloadRequest) SetIssuerDN(v string) { + o.IssuerDN.Set(&v) +} + +// SetIssuerDNNil sets the value for IssuerDN to be an explicit nil +func (o *ModelsCertificateDownloadRequest) SetIssuerDNNil() { + o.IssuerDN.Set(nil) +} + +// UnsetIssuerDN ensures that no value is present for IssuerDN, not even an explicit nil +func (o *ModelsCertificateDownloadRequest) UnsetIssuerDN() { + o.IssuerDN.Unset() +} + +// GetThumbprint returns the Thumbprint field value if set, zero value otherwise. +func (o *ModelsCertificateDownloadRequest) GetThumbprint() string { + if o == nil || isNil(o.Thumbprint) { + var ret string + return ret + } + return *o.Thumbprint +} + +// GetThumbprintOk returns a tuple with the Thumbprint field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateDownloadRequest) GetThumbprintOk() (*string, bool) { + if o == nil || isNil(o.Thumbprint) { + return nil, false + } + return o.Thumbprint, true +} + +// HasThumbprint returns a boolean if a field has been set. +func (o *ModelsCertificateDownloadRequest) HasThumbprint() bool { + if o != nil && !isNil(o.Thumbprint) { + return true + } + + return false +} + +// SetThumbprint gets a reference to the given string and assigns it to the Thumbprint field. +func (o *ModelsCertificateDownloadRequest) SetThumbprint(v string) { + o.Thumbprint = &v +} + +// GetIncludeChain returns the IncludeChain field value if set, zero value otherwise. +func (o *ModelsCertificateDownloadRequest) GetIncludeChain() bool { + if o == nil || isNil(o.IncludeChain) { + var ret bool + return ret + } + return *o.IncludeChain +} + +// GetIncludeChainOk returns a tuple with the IncludeChain field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateDownloadRequest) GetIncludeChainOk() (*bool, bool) { + if o == nil || isNil(o.IncludeChain) { + return nil, false + } + return o.IncludeChain, true +} + +// HasIncludeChain returns a boolean if a field has been set. +func (o *ModelsCertificateDownloadRequest) HasIncludeChain() bool { + if o != nil && !isNil(o.IncludeChain) { + return true + } + + return false +} + +// SetIncludeChain gets a reference to the given bool and assigns it to the IncludeChain field. +func (o *ModelsCertificateDownloadRequest) SetIncludeChain(v bool) { + o.IncludeChain = &v +} + +func (o ModelsCertificateDownloadRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsCertificateDownloadRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.CertID) { + toSerialize["CertID"] = o.CertID + } + if !isNil(o.SerialNumber) { + toSerialize["SerialNumber"] = o.SerialNumber + } + if o.IssuerDN.IsSet() { + toSerialize["IssuerDN"] = o.IssuerDN.Get() + } + if !isNil(o.Thumbprint) { + toSerialize["Thumbprint"] = o.Thumbprint + } + if !isNil(o.IncludeChain) { + toSerialize["IncludeChain"] = o.IncludeChain + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsCertificateDownloadRequest) UnmarshalJSON(bytes []byte) (err error) { + varModelsCertificateDownloadRequest := _ModelsCertificateDownloadRequest{} + + if err = json.Unmarshal(bytes, &varModelsCertificateDownloadRequest); err == nil { + *o = ModelsCertificateDownloadRequest(varModelsCertificateDownloadRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "CertID") + delete(additionalProperties, "SerialNumber") + delete(additionalProperties, "IssuerDN") + delete(additionalProperties, "Thumbprint") + delete(additionalProperties, "IncludeChain") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsCertificateDownloadRequest struct { + value *ModelsCertificateDownloadRequest + isSet bool +} + +func (v NullableModelsCertificateDownloadRequest) Get() *ModelsCertificateDownloadRequest { + return v.value +} + +func (v *NullableModelsCertificateDownloadRequest) Set(val *ModelsCertificateDownloadRequest) { + v.value = val + v.isSet = true +} + +func (v NullableModelsCertificateDownloadRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsCertificateDownloadRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsCertificateDownloadRequest(val *ModelsCertificateDownloadRequest) *NullableModelsCertificateDownloadRequest { + return &NullableModelsCertificateDownloadRequest{value: val, isSet: true} +} + +func (v NullableModelsCertificateDownloadRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsCertificateDownloadRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_certificate_download_response.go b/v1/api/keyfactor/model_models_certificate_download_response.go new file mode 100644 index 0000000..38044a4 --- /dev/null +++ b/v1/api/keyfactor/model_models_certificate_download_response.go @@ -0,0 +1,158 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsCertificateDownloadResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsCertificateDownloadResponse{} + +// ModelsCertificateDownloadResponse struct for ModelsCertificateDownloadResponse +type ModelsCertificateDownloadResponse struct { + Content *string `json:"Content,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsCertificateDownloadResponse ModelsCertificateDownloadResponse + +// NewModelsCertificateDownloadResponse instantiates a new ModelsCertificateDownloadResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsCertificateDownloadResponse() *ModelsCertificateDownloadResponse { + this := ModelsCertificateDownloadResponse{} + return &this +} + +// NewModelsCertificateDownloadResponseWithDefaults instantiates a new ModelsCertificateDownloadResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsCertificateDownloadResponseWithDefaults() *ModelsCertificateDownloadResponse { + this := ModelsCertificateDownloadResponse{} + return &this +} + +// GetContent returns the Content field value if set, zero value otherwise. +func (o *ModelsCertificateDownloadResponse) GetContent() string { + if o == nil || isNil(o.Content) { + var ret string + return ret + } + return *o.Content +} + +// GetContentOk returns a tuple with the Content field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateDownloadResponse) GetContentOk() (*string, bool) { + if o == nil || isNil(o.Content) { + return nil, false + } + return o.Content, true +} + +// HasContent returns a boolean if a field has been set. +func (o *ModelsCertificateDownloadResponse) HasContent() bool { + if o != nil && !isNil(o.Content) { + return true + } + + return false +} + +// SetContent gets a reference to the given string and assigns it to the Content field. +func (o *ModelsCertificateDownloadResponse) SetContent(v string) { + o.Content = &v +} + +func (o ModelsCertificateDownloadResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsCertificateDownloadResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Content) { + toSerialize["Content"] = o.Content + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsCertificateDownloadResponse) UnmarshalJSON(bytes []byte) (err error) { + varModelsCertificateDownloadResponse := _ModelsCertificateDownloadResponse{} + + if err = json.Unmarshal(bytes, &varModelsCertificateDownloadResponse); err == nil { + *o = ModelsCertificateDownloadResponse(varModelsCertificateDownloadResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Content") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsCertificateDownloadResponse struct { + value *ModelsCertificateDownloadResponse + isSet bool +} + +func (v NullableModelsCertificateDownloadResponse) Get() *ModelsCertificateDownloadResponse { + return v.value +} + +func (v *NullableModelsCertificateDownloadResponse) Set(val *ModelsCertificateDownloadResponse) { + v.value = val + v.isSet = true +} + +func (v NullableModelsCertificateDownloadResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsCertificateDownloadResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsCertificateDownloadResponse(val *ModelsCertificateDownloadResponse) *NullableModelsCertificateDownloadResponse { + return &NullableModelsCertificateDownloadResponse{value: val, isSet: true} +} + +func (v NullableModelsCertificateDownloadResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsCertificateDownloadResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_certificate_import_request_model.go b/v1/api/keyfactor/model_models_certificate_import_request_model.go new file mode 100644 index 0000000..bb635b3 --- /dev/null +++ b/v1/api/keyfactor/model_models_certificate_import_request_model.go @@ -0,0 +1,379 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" + "time" +) + +// checks if the ModelsCertificateImportRequestModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsCertificateImportRequestModel{} + +// ModelsCertificateImportRequestModel Class representing a request to import a certificate into Keyfactor Command +type ModelsCertificateImportRequestModel struct { + // Base64-encoded certificate contents + Certificate string `json:"Certificate"` + // Optional password associated if required for a PFX + Password *string `json:"Password,omitempty"` + // Colleciton of metadata to be associated with the imported certificate + Metadata *map[string]string `json:"Metadata,omitempty"` + // List of the Keyfactor certificate store identifiers (GUID) with which the imported certificate should be associated + StoreIds []string `json:"StoreIds,omitempty"` + // List of the certificate store types with with the imported certificate should be associated + StoreTypes []ModelsEnrollmentManagementStoreType `json:"StoreTypes,omitempty"` + // Schedule on which the certificate should be imported + Schedule *time.Time `json:"Schedule,omitempty"` + // Whether or not we should validate and import the certificate's metadata. + ImportMetadata *bool `json:"ImportMetadata,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsCertificateImportRequestModel ModelsCertificateImportRequestModel + +// NewModelsCertificateImportRequestModel instantiates a new ModelsCertificateImportRequestModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsCertificateImportRequestModel(certificate string) *ModelsCertificateImportRequestModel { + this := ModelsCertificateImportRequestModel{} + this.Certificate = certificate + return &this +} + +// NewModelsCertificateImportRequestModelWithDefaults instantiates a new ModelsCertificateImportRequestModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsCertificateImportRequestModelWithDefaults() *ModelsCertificateImportRequestModel { + this := ModelsCertificateImportRequestModel{} + return &this +} + +// GetCertificate returns the Certificate field value +func (o *ModelsCertificateImportRequestModel) GetCertificate() string { + if o == nil { + var ret string + return ret + } + + return o.Certificate +} + +// GetCertificateOk returns a tuple with the Certificate field value +// and a boolean to check if the value has been set. +func (o *ModelsCertificateImportRequestModel) GetCertificateOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Certificate, true +} + +// SetCertificate sets field value +func (o *ModelsCertificateImportRequestModel) SetCertificate(v string) { + o.Certificate = v +} + +// GetPassword returns the Password field value if set, zero value otherwise. +func (o *ModelsCertificateImportRequestModel) GetPassword() string { + if o == nil || isNil(o.Password) { + var ret string + return ret + } + return *o.Password +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateImportRequestModel) GetPasswordOk() (*string, bool) { + if o == nil || isNil(o.Password) { + return nil, false + } + return o.Password, true +} + +// HasPassword returns a boolean if a field has been set. +func (o *ModelsCertificateImportRequestModel) HasPassword() bool { + if o != nil && !isNil(o.Password) { + return true + } + + return false +} + +// SetPassword gets a reference to the given string and assigns it to the Password field. +func (o *ModelsCertificateImportRequestModel) SetPassword(v string) { + o.Password = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ModelsCertificateImportRequestModel) GetMetadata() map[string]string { + if o == nil || isNil(o.Metadata) { + var ret map[string]string + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateImportRequestModel) GetMetadataOk() (*map[string]string, bool) { + if o == nil || isNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ModelsCertificateImportRequestModel) HasMetadata() bool { + if o != nil && !isNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given map[string]string and assigns it to the Metadata field. +func (o *ModelsCertificateImportRequestModel) SetMetadata(v map[string]string) { + o.Metadata = &v +} + +// GetStoreIds returns the StoreIds field value if set, zero value otherwise. +func (o *ModelsCertificateImportRequestModel) GetStoreIds() []string { + if o == nil || isNil(o.StoreIds) { + var ret []string + return ret + } + return o.StoreIds +} + +// GetStoreIdsOk returns a tuple with the StoreIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateImportRequestModel) GetStoreIdsOk() ([]string, bool) { + if o == nil || isNil(o.StoreIds) { + return nil, false + } + return o.StoreIds, true +} + +// HasStoreIds returns a boolean if a field has been set. +func (o *ModelsCertificateImportRequestModel) HasStoreIds() bool { + if o != nil && !isNil(o.StoreIds) { + return true + } + + return false +} + +// SetStoreIds gets a reference to the given []string and assigns it to the StoreIds field. +func (o *ModelsCertificateImportRequestModel) SetStoreIds(v []string) { + o.StoreIds = v +} + +// GetStoreTypes returns the StoreTypes field value if set, zero value otherwise. +func (o *ModelsCertificateImportRequestModel) GetStoreTypes() []ModelsEnrollmentManagementStoreType { + if o == nil || isNil(o.StoreTypes) { + var ret []ModelsEnrollmentManagementStoreType + return ret + } + return o.StoreTypes +} + +// GetStoreTypesOk returns a tuple with the StoreTypes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateImportRequestModel) GetStoreTypesOk() ([]ModelsEnrollmentManagementStoreType, bool) { + if o == nil || isNil(o.StoreTypes) { + return nil, false + } + return o.StoreTypes, true +} + +// HasStoreTypes returns a boolean if a field has been set. +func (o *ModelsCertificateImportRequestModel) HasStoreTypes() bool { + if o != nil && !isNil(o.StoreTypes) { + return true + } + + return false +} + +// SetStoreTypes gets a reference to the given []ModelsEnrollmentManagementStoreType and assigns it to the StoreTypes field. +func (o *ModelsCertificateImportRequestModel) SetStoreTypes(v []ModelsEnrollmentManagementStoreType) { + o.StoreTypes = v +} + +// GetSchedule returns the Schedule field value if set, zero value otherwise. +func (o *ModelsCertificateImportRequestModel) GetSchedule() time.Time { + if o == nil || isNil(o.Schedule) { + var ret time.Time + return ret + } + return *o.Schedule +} + +// GetScheduleOk returns a tuple with the Schedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateImportRequestModel) GetScheduleOk() (*time.Time, bool) { + if o == nil || isNil(o.Schedule) { + return nil, false + } + return o.Schedule, true +} + +// HasSchedule returns a boolean if a field has been set. +func (o *ModelsCertificateImportRequestModel) HasSchedule() bool { + if o != nil && !isNil(o.Schedule) { + return true + } + + return false +} + +// SetSchedule gets a reference to the given time.Time and assigns it to the Schedule field. +func (o *ModelsCertificateImportRequestModel) SetSchedule(v time.Time) { + o.Schedule = &v +} + +// GetImportMetadata returns the ImportMetadata field value if set, zero value otherwise. +func (o *ModelsCertificateImportRequestModel) GetImportMetadata() bool { + if o == nil || isNil(o.ImportMetadata) { + var ret bool + return ret + } + return *o.ImportMetadata +} + +// GetImportMetadataOk returns a tuple with the ImportMetadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateImportRequestModel) GetImportMetadataOk() (*bool, bool) { + if o == nil || isNil(o.ImportMetadata) { + return nil, false + } + return o.ImportMetadata, true +} + +// HasImportMetadata returns a boolean if a field has been set. +func (o *ModelsCertificateImportRequestModel) HasImportMetadata() bool { + if o != nil && !isNil(o.ImportMetadata) { + return true + } + + return false +} + +// SetImportMetadata gets a reference to the given bool and assigns it to the ImportMetadata field. +func (o *ModelsCertificateImportRequestModel) SetImportMetadata(v bool) { + o.ImportMetadata = &v +} + +func (o ModelsCertificateImportRequestModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsCertificateImportRequestModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Certificate"] = o.Certificate + if !isNil(o.Password) { + toSerialize["Password"] = o.Password + } + if !isNil(o.Metadata) { + toSerialize["Metadata"] = o.Metadata + } + if !isNil(o.StoreIds) { + toSerialize["StoreIds"] = o.StoreIds + } + if !isNil(o.StoreTypes) { + toSerialize["StoreTypes"] = o.StoreTypes + } + if !isNil(o.Schedule) { + toSerialize["Schedule"] = o.Schedule + } + if !isNil(o.ImportMetadata) { + toSerialize["ImportMetadata"] = o.ImportMetadata + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsCertificateImportRequestModel) UnmarshalJSON(bytes []byte) (err error) { + varModelsCertificateImportRequestModel := _ModelsCertificateImportRequestModel{} + + if err = json.Unmarshal(bytes, &varModelsCertificateImportRequestModel); err == nil { + *o = ModelsCertificateImportRequestModel(varModelsCertificateImportRequestModel) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Certificate") + delete(additionalProperties, "Password") + delete(additionalProperties, "Metadata") + delete(additionalProperties, "StoreIds") + delete(additionalProperties, "StoreTypes") + delete(additionalProperties, "Schedule") + delete(additionalProperties, "ImportMetadata") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsCertificateImportRequestModel struct { + value *ModelsCertificateImportRequestModel + isSet bool +} + +func (v NullableModelsCertificateImportRequestModel) Get() *ModelsCertificateImportRequestModel { + return v.value +} + +func (v *NullableModelsCertificateImportRequestModel) Set(val *ModelsCertificateImportRequestModel) { + v.value = val + v.isSet = true +} + +func (v NullableModelsCertificateImportRequestModel) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsCertificateImportRequestModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsCertificateImportRequestModel(val *ModelsCertificateImportRequestModel) *NullableModelsCertificateImportRequestModel { + return &NullableModelsCertificateImportRequestModel{value: val, isSet: true} +} + +func (v NullableModelsCertificateImportRequestModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsCertificateImportRequestModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_certificate_import_response_model.go b/v1/api/keyfactor/model_models_certificate_import_response_model.go new file mode 100644 index 0000000..d1e3512 --- /dev/null +++ b/v1/api/keyfactor/model_models_certificate_import_response_model.go @@ -0,0 +1,269 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsCertificateImportResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsCertificateImportResponseModel{} + +// ModelsCertificateImportResponseModel struct for ModelsCertificateImportResponseModel +type ModelsCertificateImportResponseModel struct { + ImportStatus *int32 `json:"ImportStatus,omitempty"` + JobStatus *int32 `json:"JobStatus,omitempty"` + InvalidKeystores []ModelsInvalidKeystore `json:"InvalidKeystores,omitempty"` + Thumbprint *string `json:"Thumbprint,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsCertificateImportResponseModel ModelsCertificateImportResponseModel + +// NewModelsCertificateImportResponseModel instantiates a new ModelsCertificateImportResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsCertificateImportResponseModel() *ModelsCertificateImportResponseModel { + this := ModelsCertificateImportResponseModel{} + return &this +} + +// NewModelsCertificateImportResponseModelWithDefaults instantiates a new ModelsCertificateImportResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsCertificateImportResponseModelWithDefaults() *ModelsCertificateImportResponseModel { + this := ModelsCertificateImportResponseModel{} + return &this +} + +// GetImportStatus returns the ImportStatus field value if set, zero value otherwise. +func (o *ModelsCertificateImportResponseModel) GetImportStatus() int32 { + if o == nil || isNil(o.ImportStatus) { + var ret int32 + return ret + } + return *o.ImportStatus +} + +// GetImportStatusOk returns a tuple with the ImportStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateImportResponseModel) GetImportStatusOk() (*int32, bool) { + if o == nil || isNil(o.ImportStatus) { + return nil, false + } + return o.ImportStatus, true +} + +// HasImportStatus returns a boolean if a field has been set. +func (o *ModelsCertificateImportResponseModel) HasImportStatus() bool { + if o != nil && !isNil(o.ImportStatus) { + return true + } + + return false +} + +// SetImportStatus gets a reference to the given int32 and assigns it to the ImportStatus field. +func (o *ModelsCertificateImportResponseModel) SetImportStatus(v int32) { + o.ImportStatus = &v +} + +// GetJobStatus returns the JobStatus field value if set, zero value otherwise. +func (o *ModelsCertificateImportResponseModel) GetJobStatus() int32 { + if o == nil || isNil(o.JobStatus) { + var ret int32 + return ret + } + return *o.JobStatus +} + +// GetJobStatusOk returns a tuple with the JobStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateImportResponseModel) GetJobStatusOk() (*int32, bool) { + if o == nil || isNil(o.JobStatus) { + return nil, false + } + return o.JobStatus, true +} + +// HasJobStatus returns a boolean if a field has been set. +func (o *ModelsCertificateImportResponseModel) HasJobStatus() bool { + if o != nil && !isNil(o.JobStatus) { + return true + } + + return false +} + +// SetJobStatus gets a reference to the given int32 and assigns it to the JobStatus field. +func (o *ModelsCertificateImportResponseModel) SetJobStatus(v int32) { + o.JobStatus = &v +} + +// GetInvalidKeystores returns the InvalidKeystores field value if set, zero value otherwise. +func (o *ModelsCertificateImportResponseModel) GetInvalidKeystores() []ModelsInvalidKeystore { + if o == nil || isNil(o.InvalidKeystores) { + var ret []ModelsInvalidKeystore + return ret + } + return o.InvalidKeystores +} + +// GetInvalidKeystoresOk returns a tuple with the InvalidKeystores field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateImportResponseModel) GetInvalidKeystoresOk() ([]ModelsInvalidKeystore, bool) { + if o == nil || isNil(o.InvalidKeystores) { + return nil, false + } + return o.InvalidKeystores, true +} + +// HasInvalidKeystores returns a boolean if a field has been set. +func (o *ModelsCertificateImportResponseModel) HasInvalidKeystores() bool { + if o != nil && !isNil(o.InvalidKeystores) { + return true + } + + return false +} + +// SetInvalidKeystores gets a reference to the given []ModelsInvalidKeystore and assigns it to the InvalidKeystores field. +func (o *ModelsCertificateImportResponseModel) SetInvalidKeystores(v []ModelsInvalidKeystore) { + o.InvalidKeystores = v +} + +// GetThumbprint returns the Thumbprint field value if set, zero value otherwise. +func (o *ModelsCertificateImportResponseModel) GetThumbprint() string { + if o == nil || isNil(o.Thumbprint) { + var ret string + return ret + } + return *o.Thumbprint +} + +// GetThumbprintOk returns a tuple with the Thumbprint field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateImportResponseModel) GetThumbprintOk() (*string, bool) { + if o == nil || isNil(o.Thumbprint) { + return nil, false + } + return o.Thumbprint, true +} + +// HasThumbprint returns a boolean if a field has been set. +func (o *ModelsCertificateImportResponseModel) HasThumbprint() bool { + if o != nil && !isNil(o.Thumbprint) { + return true + } + + return false +} + +// SetThumbprint gets a reference to the given string and assigns it to the Thumbprint field. +func (o *ModelsCertificateImportResponseModel) SetThumbprint(v string) { + o.Thumbprint = &v +} + +func (o ModelsCertificateImportResponseModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsCertificateImportResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.ImportStatus) { + toSerialize["ImportStatus"] = o.ImportStatus + } + if !isNil(o.JobStatus) { + toSerialize["JobStatus"] = o.JobStatus + } + if !isNil(o.InvalidKeystores) { + toSerialize["InvalidKeystores"] = o.InvalidKeystores + } + if !isNil(o.Thumbprint) { + toSerialize["Thumbprint"] = o.Thumbprint + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsCertificateImportResponseModel) UnmarshalJSON(bytes []byte) (err error) { + varModelsCertificateImportResponseModel := _ModelsCertificateImportResponseModel{} + + if err = json.Unmarshal(bytes, &varModelsCertificateImportResponseModel); err == nil { + *o = ModelsCertificateImportResponseModel(varModelsCertificateImportResponseModel) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "ImportStatus") + delete(additionalProperties, "JobStatus") + delete(additionalProperties, "InvalidKeystores") + delete(additionalProperties, "Thumbprint") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsCertificateImportResponseModel struct { + value *ModelsCertificateImportResponseModel + isSet bool +} + +func (v NullableModelsCertificateImportResponseModel) Get() *ModelsCertificateImportResponseModel { + return v.value +} + +func (v *NullableModelsCertificateImportResponseModel) Set(val *ModelsCertificateImportResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableModelsCertificateImportResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsCertificateImportResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsCertificateImportResponseModel(val *ModelsCertificateImportResponseModel) *NullableModelsCertificateImportResponseModel { + return &NullableModelsCertificateImportResponseModel{value: val, isSet: true} +} + +func (v NullableModelsCertificateImportResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsCertificateImportResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_certificate_location_specifier.go b/v1/api/keyfactor/model_models_certificate_location_specifier.go new file mode 100644 index 0000000..d2f820b --- /dev/null +++ b/v1/api/keyfactor/model_models_certificate_location_specifier.go @@ -0,0 +1,232 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsCertificateLocationSpecifier type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsCertificateLocationSpecifier{} + +// ModelsCertificateLocationSpecifier struct for ModelsCertificateLocationSpecifier +type ModelsCertificateLocationSpecifier struct { + Alias *string `json:"Alias,omitempty"` + CertificateStoreId *string `json:"CertificateStoreId,omitempty"` + JobFields map[string]map[string]interface{} `json:"JobFields,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsCertificateLocationSpecifier ModelsCertificateLocationSpecifier + +// NewModelsCertificateLocationSpecifier instantiates a new ModelsCertificateLocationSpecifier object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsCertificateLocationSpecifier() *ModelsCertificateLocationSpecifier { + this := ModelsCertificateLocationSpecifier{} + return &this +} + +// NewModelsCertificateLocationSpecifierWithDefaults instantiates a new ModelsCertificateLocationSpecifier object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsCertificateLocationSpecifierWithDefaults() *ModelsCertificateLocationSpecifier { + this := ModelsCertificateLocationSpecifier{} + return &this +} + +// GetAlias returns the Alias field value if set, zero value otherwise. +func (o *ModelsCertificateLocationSpecifier) GetAlias() string { + if o == nil || isNil(o.Alias) { + var ret string + return ret + } + return *o.Alias +} + +// GetAliasOk returns a tuple with the Alias field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateLocationSpecifier) GetAliasOk() (*string, bool) { + if o == nil || isNil(o.Alias) { + return nil, false + } + return o.Alias, true +} + +// HasAlias returns a boolean if a field has been set. +func (o *ModelsCertificateLocationSpecifier) HasAlias() bool { + if o != nil && !isNil(o.Alias) { + return true + } + + return false +} + +// SetAlias gets a reference to the given string and assigns it to the Alias field. +func (o *ModelsCertificateLocationSpecifier) SetAlias(v string) { + o.Alias = &v +} + +// GetCertificateStoreId returns the CertificateStoreId field value if set, zero value otherwise. +func (o *ModelsCertificateLocationSpecifier) GetCertificateStoreId() string { + if o == nil || isNil(o.CertificateStoreId) { + var ret string + return ret + } + return *o.CertificateStoreId +} + +// GetCertificateStoreIdOk returns a tuple with the CertificateStoreId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateLocationSpecifier) GetCertificateStoreIdOk() (*string, bool) { + if o == nil || isNil(o.CertificateStoreId) { + return nil, false + } + return o.CertificateStoreId, true +} + +// HasCertificateStoreId returns a boolean if a field has been set. +func (o *ModelsCertificateLocationSpecifier) HasCertificateStoreId() bool { + if o != nil && !isNil(o.CertificateStoreId) { + return true + } + + return false +} + +// SetCertificateStoreId gets a reference to the given string and assigns it to the CertificateStoreId field. +func (o *ModelsCertificateLocationSpecifier) SetCertificateStoreId(v string) { + o.CertificateStoreId = &v +} + +// GetJobFields returns the JobFields field value if set, zero value otherwise. +func (o *ModelsCertificateLocationSpecifier) GetJobFields() map[string]map[string]interface{} { + if o == nil || isNil(o.JobFields) { + var ret map[string]map[string]interface{} + return ret + } + return o.JobFields +} + +// GetJobFieldsOk returns a tuple with the JobFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateLocationSpecifier) GetJobFieldsOk() (map[string]map[string]interface{}, bool) { + if o == nil || isNil(o.JobFields) { + return map[string]map[string]interface{}{}, false + } + return o.JobFields, true +} + +// HasJobFields returns a boolean if a field has been set. +func (o *ModelsCertificateLocationSpecifier) HasJobFields() bool { + if o != nil && !isNil(o.JobFields) { + return true + } + + return false +} + +// SetJobFields gets a reference to the given map[string]map[string]interface{} and assigns it to the JobFields field. +func (o *ModelsCertificateLocationSpecifier) SetJobFields(v map[string]map[string]interface{}) { + o.JobFields = v +} + +func (o ModelsCertificateLocationSpecifier) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsCertificateLocationSpecifier) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Alias) { + toSerialize["Alias"] = o.Alias + } + if !isNil(o.CertificateStoreId) { + toSerialize["CertificateStoreId"] = o.CertificateStoreId + } + if !isNil(o.JobFields) { + toSerialize["JobFields"] = o.JobFields + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsCertificateLocationSpecifier) UnmarshalJSON(bytes []byte) (err error) { + varModelsCertificateLocationSpecifier := _ModelsCertificateLocationSpecifier{} + + if err = json.Unmarshal(bytes, &varModelsCertificateLocationSpecifier); err == nil { + *o = ModelsCertificateLocationSpecifier(varModelsCertificateLocationSpecifier) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Alias") + delete(additionalProperties, "CertificateStoreId") + delete(additionalProperties, "JobFields") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsCertificateLocationSpecifier struct { + value *ModelsCertificateLocationSpecifier + isSet bool +} + +func (v NullableModelsCertificateLocationSpecifier) Get() *ModelsCertificateLocationSpecifier { + return v.value +} + +func (v *NullableModelsCertificateLocationSpecifier) Set(val *ModelsCertificateLocationSpecifier) { + v.value = val + v.isSet = true +} + +func (v NullableModelsCertificateLocationSpecifier) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsCertificateLocationSpecifier) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsCertificateLocationSpecifier(val *ModelsCertificateLocationSpecifier) *NullableModelsCertificateLocationSpecifier { + return &NullableModelsCertificateLocationSpecifier{value: val, isSet: true} +} + +func (v NullableModelsCertificateLocationSpecifier) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsCertificateLocationSpecifier) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_certificate_query.go b/v1/api/keyfactor/model_models_certificate_query.go new file mode 100644 index 0000000..e98044b --- /dev/null +++ b/v1/api/keyfactor/model_models_certificate_query.go @@ -0,0 +1,417 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsCertificateQuery type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsCertificateQuery{} + +// ModelsCertificateQuery struct for ModelsCertificateQuery +type ModelsCertificateQuery struct { + Id *int32 `json:"Id,omitempty"` + Name *string `json:"Name,omitempty"` + Description *string `json:"Description,omitempty"` + Automated *bool `json:"Automated,omitempty"` + Content *string `json:"Content,omitempty"` + DuplicationField *int32 `json:"DuplicationField,omitempty"` + ShowOnDashboard *bool `json:"ShowOnDashboard,omitempty"` + Favorite *bool `json:"Favorite,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsCertificateQuery ModelsCertificateQuery + +// NewModelsCertificateQuery instantiates a new ModelsCertificateQuery object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsCertificateQuery() *ModelsCertificateQuery { + this := ModelsCertificateQuery{} + return &this +} + +// NewModelsCertificateQueryWithDefaults instantiates a new ModelsCertificateQuery object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsCertificateQueryWithDefaults() *ModelsCertificateQuery { + this := ModelsCertificateQuery{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ModelsCertificateQuery) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateQuery) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ModelsCertificateQuery) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *ModelsCertificateQuery) SetId(v int32) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ModelsCertificateQuery) GetName() string { + if o == nil || isNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateQuery) GetNameOk() (*string, bool) { + if o == nil || isNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ModelsCertificateQuery) HasName() bool { + if o != nil && !isNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ModelsCertificateQuery) SetName(v string) { + o.Name = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ModelsCertificateQuery) GetDescription() string { + if o == nil || isNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateQuery) GetDescriptionOk() (*string, bool) { + if o == nil || isNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *ModelsCertificateQuery) HasDescription() bool { + if o != nil && !isNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *ModelsCertificateQuery) SetDescription(v string) { + o.Description = &v +} + +// GetAutomated returns the Automated field value if set, zero value otherwise. +func (o *ModelsCertificateQuery) GetAutomated() bool { + if o == nil || isNil(o.Automated) { + var ret bool + return ret + } + return *o.Automated +} + +// GetAutomatedOk returns a tuple with the Automated field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateQuery) GetAutomatedOk() (*bool, bool) { + if o == nil || isNil(o.Automated) { + return nil, false + } + return o.Automated, true +} + +// HasAutomated returns a boolean if a field has been set. +func (o *ModelsCertificateQuery) HasAutomated() bool { + if o != nil && !isNil(o.Automated) { + return true + } + + return false +} + +// SetAutomated gets a reference to the given bool and assigns it to the Automated field. +func (o *ModelsCertificateQuery) SetAutomated(v bool) { + o.Automated = &v +} + +// GetContent returns the Content field value if set, zero value otherwise. +func (o *ModelsCertificateQuery) GetContent() string { + if o == nil || isNil(o.Content) { + var ret string + return ret + } + return *o.Content +} + +// GetContentOk returns a tuple with the Content field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateQuery) GetContentOk() (*string, bool) { + if o == nil || isNil(o.Content) { + return nil, false + } + return o.Content, true +} + +// HasContent returns a boolean if a field has been set. +func (o *ModelsCertificateQuery) HasContent() bool { + if o != nil && !isNil(o.Content) { + return true + } + + return false +} + +// SetContent gets a reference to the given string and assigns it to the Content field. +func (o *ModelsCertificateQuery) SetContent(v string) { + o.Content = &v +} + +// GetDuplicationField returns the DuplicationField field value if set, zero value otherwise. +func (o *ModelsCertificateQuery) GetDuplicationField() int32 { + if o == nil || isNil(o.DuplicationField) { + var ret int32 + return ret + } + return *o.DuplicationField +} + +// GetDuplicationFieldOk returns a tuple with the DuplicationField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateQuery) GetDuplicationFieldOk() (*int32, bool) { + if o == nil || isNil(o.DuplicationField) { + return nil, false + } + return o.DuplicationField, true +} + +// HasDuplicationField returns a boolean if a field has been set. +func (o *ModelsCertificateQuery) HasDuplicationField() bool { + if o != nil && !isNil(o.DuplicationField) { + return true + } + + return false +} + +// SetDuplicationField gets a reference to the given int32 and assigns it to the DuplicationField field. +func (o *ModelsCertificateQuery) SetDuplicationField(v int32) { + o.DuplicationField = &v +} + +// GetShowOnDashboard returns the ShowOnDashboard field value if set, zero value otherwise. +func (o *ModelsCertificateQuery) GetShowOnDashboard() bool { + if o == nil || isNil(o.ShowOnDashboard) { + var ret bool + return ret + } + return *o.ShowOnDashboard +} + +// GetShowOnDashboardOk returns a tuple with the ShowOnDashboard field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateQuery) GetShowOnDashboardOk() (*bool, bool) { + if o == nil || isNil(o.ShowOnDashboard) { + return nil, false + } + return o.ShowOnDashboard, true +} + +// HasShowOnDashboard returns a boolean if a field has been set. +func (o *ModelsCertificateQuery) HasShowOnDashboard() bool { + if o != nil && !isNil(o.ShowOnDashboard) { + return true + } + + return false +} + +// SetShowOnDashboard gets a reference to the given bool and assigns it to the ShowOnDashboard field. +func (o *ModelsCertificateQuery) SetShowOnDashboard(v bool) { + o.ShowOnDashboard = &v +} + +// GetFavorite returns the Favorite field value if set, zero value otherwise. +func (o *ModelsCertificateQuery) GetFavorite() bool { + if o == nil || isNil(o.Favorite) { + var ret bool + return ret + } + return *o.Favorite +} + +// GetFavoriteOk returns a tuple with the Favorite field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateQuery) GetFavoriteOk() (*bool, bool) { + if o == nil || isNil(o.Favorite) { + return nil, false + } + return o.Favorite, true +} + +// HasFavorite returns a boolean if a field has been set. +func (o *ModelsCertificateQuery) HasFavorite() bool { + if o != nil && !isNil(o.Favorite) { + return true + } + + return false +} + +// SetFavorite gets a reference to the given bool and assigns it to the Favorite field. +func (o *ModelsCertificateQuery) SetFavorite(v bool) { + o.Favorite = &v +} + +func (o ModelsCertificateQuery) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsCertificateQuery) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.Name) { + toSerialize["Name"] = o.Name + } + if !isNil(o.Description) { + toSerialize["Description"] = o.Description + } + if !isNil(o.Automated) { + toSerialize["Automated"] = o.Automated + } + if !isNil(o.Content) { + toSerialize["Content"] = o.Content + } + if !isNil(o.DuplicationField) { + toSerialize["DuplicationField"] = o.DuplicationField + } + if !isNil(o.ShowOnDashboard) { + toSerialize["ShowOnDashboard"] = o.ShowOnDashboard + } + if !isNil(o.Favorite) { + toSerialize["Favorite"] = o.Favorite + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsCertificateQuery) UnmarshalJSON(bytes []byte) (err error) { + varModelsCertificateQuery := _ModelsCertificateQuery{} + + if err = json.Unmarshal(bytes, &varModelsCertificateQuery); err == nil { + *o = ModelsCertificateQuery(varModelsCertificateQuery) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "Name") + delete(additionalProperties, "Description") + delete(additionalProperties, "Automated") + delete(additionalProperties, "Content") + delete(additionalProperties, "DuplicationField") + delete(additionalProperties, "ShowOnDashboard") + delete(additionalProperties, "Favorite") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsCertificateQuery struct { + value *ModelsCertificateQuery + isSet bool +} + +func (v NullableModelsCertificateQuery) Get() *ModelsCertificateQuery { + return v.value +} + +func (v *NullableModelsCertificateQuery) Set(val *ModelsCertificateQuery) { + v.value = val + v.isSet = true +} + +func (v NullableModelsCertificateQuery) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsCertificateQuery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsCertificateQuery(val *ModelsCertificateQuery) *NullableModelsCertificateQuery { + return &NullableModelsCertificateQuery{value: val, isSet: true} +} + +func (v NullableModelsCertificateQuery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsCertificateQuery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_certificate_recovery_request.go b/v1/api/keyfactor/model_models_certificate_recovery_request.go new file mode 100644 index 0000000..9de7f6d --- /dev/null +++ b/v1/api/keyfactor/model_models_certificate_recovery_request.go @@ -0,0 +1,345 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsCertificateRecoveryRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsCertificateRecoveryRequest{} + +// ModelsCertificateRecoveryRequest struct for ModelsCertificateRecoveryRequest +type ModelsCertificateRecoveryRequest struct { + Password string `json:"Password"` + CertID *int32 `json:"CertID,omitempty"` + SerialNumber *string `json:"SerialNumber,omitempty"` + IssuerDN NullableString `json:"IssuerDN,omitempty"` + Thumbprint *string `json:"Thumbprint,omitempty"` + IncludeChain *bool `json:"IncludeChain,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsCertificateRecoveryRequest ModelsCertificateRecoveryRequest + +// NewModelsCertificateRecoveryRequest instantiates a new ModelsCertificateRecoveryRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsCertificateRecoveryRequest(password string) *ModelsCertificateRecoveryRequest { + this := ModelsCertificateRecoveryRequest{} + this.Password = password + return &this +} + +// NewModelsCertificateRecoveryRequestWithDefaults instantiates a new ModelsCertificateRecoveryRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsCertificateRecoveryRequestWithDefaults() *ModelsCertificateRecoveryRequest { + this := ModelsCertificateRecoveryRequest{} + return &this +} + +// GetPassword returns the Password field value +func (o *ModelsCertificateRecoveryRequest) GetPassword() string { + if o == nil { + var ret string + return ret + } + + return o.Password +} + +// GetPasswordOk returns a tuple with the Password field value +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRecoveryRequest) GetPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Password, true +} + +// SetPassword sets field value +func (o *ModelsCertificateRecoveryRequest) SetPassword(v string) { + o.Password = v +} + +// GetCertID returns the CertID field value if set, zero value otherwise. +func (o *ModelsCertificateRecoveryRequest) GetCertID() int32 { + if o == nil || isNil(o.CertID) { + var ret int32 + return ret + } + return *o.CertID +} + +// GetCertIDOk returns a tuple with the CertID field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRecoveryRequest) GetCertIDOk() (*int32, bool) { + if o == nil || isNil(o.CertID) { + return nil, false + } + return o.CertID, true +} + +// HasCertID returns a boolean if a field has been set. +func (o *ModelsCertificateRecoveryRequest) HasCertID() bool { + if o != nil && !isNil(o.CertID) { + return true + } + + return false +} + +// SetCertID gets a reference to the given int32 and assigns it to the CertID field. +func (o *ModelsCertificateRecoveryRequest) SetCertID(v int32) { + o.CertID = &v +} + +// GetSerialNumber returns the SerialNumber field value if set, zero value otherwise. +func (o *ModelsCertificateRecoveryRequest) GetSerialNumber() string { + if o == nil || isNil(o.SerialNumber) { + var ret string + return ret + } + return *o.SerialNumber +} + +// GetSerialNumberOk returns a tuple with the SerialNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRecoveryRequest) GetSerialNumberOk() (*string, bool) { + if o == nil || isNil(o.SerialNumber) { + return nil, false + } + return o.SerialNumber, true +} + +// HasSerialNumber returns a boolean if a field has been set. +func (o *ModelsCertificateRecoveryRequest) HasSerialNumber() bool { + if o != nil && !isNil(o.SerialNumber) { + return true + } + + return false +} + +// SetSerialNumber gets a reference to the given string and assigns it to the SerialNumber field. +func (o *ModelsCertificateRecoveryRequest) SetSerialNumber(v string) { + o.SerialNumber = &v +} + +// GetIssuerDN returns the IssuerDN field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModelsCertificateRecoveryRequest) GetIssuerDN() string { + if o == nil || isNil(o.IssuerDN.Get()) { + var ret string + return ret + } + return *o.IssuerDN.Get() +} + +// GetIssuerDNOk returns a tuple with the IssuerDN field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModelsCertificateRecoveryRequest) GetIssuerDNOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IssuerDN.Get(), o.IssuerDN.IsSet() +} + +// HasIssuerDN returns a boolean if a field has been set. +func (o *ModelsCertificateRecoveryRequest) HasIssuerDN() bool { + if o != nil && o.IssuerDN.IsSet() { + return true + } + + return false +} + +// SetIssuerDN gets a reference to the given NullableString and assigns it to the IssuerDN field. +func (o *ModelsCertificateRecoveryRequest) SetIssuerDN(v string) { + o.IssuerDN.Set(&v) +} + +// SetIssuerDNNil sets the value for IssuerDN to be an explicit nil +func (o *ModelsCertificateRecoveryRequest) SetIssuerDNNil() { + o.IssuerDN.Set(nil) +} + +// UnsetIssuerDN ensures that no value is present for IssuerDN, not even an explicit nil +func (o *ModelsCertificateRecoveryRequest) UnsetIssuerDN() { + o.IssuerDN.Unset() +} + +// GetThumbprint returns the Thumbprint field value if set, zero value otherwise. +func (o *ModelsCertificateRecoveryRequest) GetThumbprint() string { + if o == nil || isNil(o.Thumbprint) { + var ret string + return ret + } + return *o.Thumbprint +} + +// GetThumbprintOk returns a tuple with the Thumbprint field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRecoveryRequest) GetThumbprintOk() (*string, bool) { + if o == nil || isNil(o.Thumbprint) { + return nil, false + } + return o.Thumbprint, true +} + +// HasThumbprint returns a boolean if a field has been set. +func (o *ModelsCertificateRecoveryRequest) HasThumbprint() bool { + if o != nil && !isNil(o.Thumbprint) { + return true + } + + return false +} + +// SetThumbprint gets a reference to the given string and assigns it to the Thumbprint field. +func (o *ModelsCertificateRecoveryRequest) SetThumbprint(v string) { + o.Thumbprint = &v +} + +// GetIncludeChain returns the IncludeChain field value if set, zero value otherwise. +func (o *ModelsCertificateRecoveryRequest) GetIncludeChain() bool { + if o == nil || isNil(o.IncludeChain) { + var ret bool + return ret + } + return *o.IncludeChain +} + +// GetIncludeChainOk returns a tuple with the IncludeChain field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRecoveryRequest) GetIncludeChainOk() (*bool, bool) { + if o == nil || isNil(o.IncludeChain) { + return nil, false + } + return o.IncludeChain, true +} + +// HasIncludeChain returns a boolean if a field has been set. +func (o *ModelsCertificateRecoveryRequest) HasIncludeChain() bool { + if o != nil && !isNil(o.IncludeChain) { + return true + } + + return false +} + +// SetIncludeChain gets a reference to the given bool and assigns it to the IncludeChain field. +func (o *ModelsCertificateRecoveryRequest) SetIncludeChain(v bool) { + o.IncludeChain = &v +} + +func (o ModelsCertificateRecoveryRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsCertificateRecoveryRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Password"] = o.Password + if !isNil(o.CertID) { + toSerialize["CertID"] = o.CertID + } + if !isNil(o.SerialNumber) { + toSerialize["SerialNumber"] = o.SerialNumber + } + if o.IssuerDN.IsSet() { + toSerialize["IssuerDN"] = o.IssuerDN.Get() + } + if !isNil(o.Thumbprint) { + toSerialize["Thumbprint"] = o.Thumbprint + } + if !isNil(o.IncludeChain) { + toSerialize["IncludeChain"] = o.IncludeChain + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsCertificateRecoveryRequest) UnmarshalJSON(bytes []byte) (err error) { + varModelsCertificateRecoveryRequest := _ModelsCertificateRecoveryRequest{} + + if err = json.Unmarshal(bytes, &varModelsCertificateRecoveryRequest); err == nil { + *o = ModelsCertificateRecoveryRequest(varModelsCertificateRecoveryRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Password") + delete(additionalProperties, "CertID") + delete(additionalProperties, "SerialNumber") + delete(additionalProperties, "IssuerDN") + delete(additionalProperties, "Thumbprint") + delete(additionalProperties, "IncludeChain") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsCertificateRecoveryRequest struct { + value *ModelsCertificateRecoveryRequest + isSet bool +} + +func (v NullableModelsCertificateRecoveryRequest) Get() *ModelsCertificateRecoveryRequest { + return v.value +} + +func (v *NullableModelsCertificateRecoveryRequest) Set(val *ModelsCertificateRecoveryRequest) { + v.value = val + v.isSet = true +} + +func (v NullableModelsCertificateRecoveryRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsCertificateRecoveryRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsCertificateRecoveryRequest(val *ModelsCertificateRecoveryRequest) *NullableModelsCertificateRecoveryRequest { + return &NullableModelsCertificateRecoveryRequest{value: val, isSet: true} +} + +func (v NullableModelsCertificateRecoveryRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsCertificateRecoveryRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_certificate_retrieval_response.go b/v1/api/keyfactor/model_models_certificate_retrieval_response.go new file mode 100644 index 0000000..70a4ba0 --- /dev/null +++ b/v1/api/keyfactor/model_models_certificate_retrieval_response.go @@ -0,0 +1,1944 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" + "time" +) + +// checks if the ModelsCertificateRetrievalResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsCertificateRetrievalResponse{} + +// ModelsCertificateRetrievalResponse struct for ModelsCertificateRetrievalResponse +type ModelsCertificateRetrievalResponse struct { + Id *int32 `json:"Id,omitempty"` + Thumbprint *string `json:"Thumbprint,omitempty"` + SerialNumber *string `json:"SerialNumber,omitempty"` + IssuedDN NullableString `json:"IssuedDN,omitempty"` + IssuedCN NullableString `json:"IssuedCN,omitempty"` + ImportDate *time.Time `json:"ImportDate,omitempty"` + NotBefore *time.Time `json:"NotBefore,omitempty"` + NotAfter *time.Time `json:"NotAfter,omitempty"` + IssuerDN NullableString `json:"IssuerDN,omitempty"` + PrincipalId NullableInt32 `json:"PrincipalId,omitempty"` + TemplateId *int32 `json:"TemplateId,omitempty"` + CertState *int32 `json:"CertState,omitempty"` + KeySizeInBits *int32 `json:"KeySizeInBits,omitempty"` + KeyType *int32 `json:"KeyType,omitempty"` + RequesterId *int32 `json:"RequesterId,omitempty"` + IssuedOU NullableString `json:"IssuedOU,omitempty"` + IssuedEmail NullableString `json:"IssuedEmail,omitempty"` + KeyUsage *int32 `json:"KeyUsage,omitempty"` + SigningAlgorithm *string `json:"SigningAlgorithm,omitempty"` + CertStateString *string `json:"CertStateString,omitempty"` + KeyTypeString *string `json:"KeyTypeString,omitempty"` + RevocationEffDate NullableTime `json:"RevocationEffDate,omitempty"` + RevocationReason NullableInt32 `json:"RevocationReason,omitempty"` + RevocationComment NullableString `json:"RevocationComment,omitempty"` + CertificateAuthorityId *int32 `json:"CertificateAuthorityId,omitempty"` + CertificateAuthorityName *string `json:"CertificateAuthorityName,omitempty"` + // Full template display name. + TemplateName *string `json:"TemplateName,omitempty"` + ArchivedKey *bool `json:"ArchivedKey,omitempty"` + HasPrivateKey *bool `json:"HasPrivateKey,omitempty"` + PrincipalName NullableString `json:"PrincipalName,omitempty"` + CertRequestId *int32 `json:"CertRequestId,omitempty"` + RequesterName *string `json:"RequesterName,omitempty"` + ContentBytes *string `json:"ContentBytes,omitempty"` + ExtendedKeyUsages []ModelsCertificateRetrievalResponseExtendedKeyUsageModel `json:"ExtendedKeyUsages,omitempty"` + SubjectAltNameElements []ModelsCertificateRetrievalResponseSubjectAlternativeNameModel `json:"SubjectAltNameElements,omitempty"` + CRLDistributionPoints []ModelsCertificateRetrievalResponseCRLDistributionPointModel `json:"CRLDistributionPoints,omitempty"` + LocationsCount []ModelsCertificateRetrievalResponseLocationCountModel `json:"LocationsCount,omitempty"` + SSLLocations []ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel `json:"SSLLocations,omitempty"` + Locations []ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel `json:"Locations,omitempty"` + Metadata *map[string]string `json:"Metadata,omitempty"` + CertificateKeyId *int32 `json:"CertificateKeyId,omitempty"` + CARowIndex *int64 `json:"CARowIndex,omitempty"` + CARecordId *string `json:"CARecordId,omitempty"` + DetailedKeyUsage *ModelsCertificateRetrievalResponseDetailedKeyUsageModel `json:"DetailedKeyUsage,omitempty"` + KeyRecoverable *bool `json:"KeyRecoverable,omitempty"` + Curve NullableString `json:"Curve,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsCertificateRetrievalResponse ModelsCertificateRetrievalResponse + +// NewModelsCertificateRetrievalResponse instantiates a new ModelsCertificateRetrievalResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsCertificateRetrievalResponse() *ModelsCertificateRetrievalResponse { + this := ModelsCertificateRetrievalResponse{} + return &this +} + +// NewModelsCertificateRetrievalResponseWithDefaults instantiates a new ModelsCertificateRetrievalResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsCertificateRetrievalResponseWithDefaults() *ModelsCertificateRetrievalResponse { + this := ModelsCertificateRetrievalResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *ModelsCertificateRetrievalResponse) SetId(v int32) { + o.Id = &v +} + +// GetThumbprint returns the Thumbprint field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponse) GetThumbprint() string { + if o == nil || isNil(o.Thumbprint) { + var ret string + return ret + } + return *o.Thumbprint +} + +// GetThumbprintOk returns a tuple with the Thumbprint field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponse) GetThumbprintOk() (*string, bool) { + if o == nil || isNil(o.Thumbprint) { + return nil, false + } + return o.Thumbprint, true +} + +// HasThumbprint returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponse) HasThumbprint() bool { + if o != nil && !isNil(o.Thumbprint) { + return true + } + + return false +} + +// SetThumbprint gets a reference to the given string and assigns it to the Thumbprint field. +func (o *ModelsCertificateRetrievalResponse) SetThumbprint(v string) { + o.Thumbprint = &v +} + +// GetSerialNumber returns the SerialNumber field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponse) GetSerialNumber() string { + if o == nil || isNil(o.SerialNumber) { + var ret string + return ret + } + return *o.SerialNumber +} + +// GetSerialNumberOk returns a tuple with the SerialNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponse) GetSerialNumberOk() (*string, bool) { + if o == nil || isNil(o.SerialNumber) { + return nil, false + } + return o.SerialNumber, true +} + +// HasSerialNumber returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponse) HasSerialNumber() bool { + if o != nil && !isNil(o.SerialNumber) { + return true + } + + return false +} + +// SetSerialNumber gets a reference to the given string and assigns it to the SerialNumber field. +func (o *ModelsCertificateRetrievalResponse) SetSerialNumber(v string) { + o.SerialNumber = &v +} + +// GetIssuedDN returns the IssuedDN field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModelsCertificateRetrievalResponse) GetIssuedDN() string { + if o == nil || isNil(o.IssuedDN.Get()) { + var ret string + return ret + } + return *o.IssuedDN.Get() +} + +// GetIssuedDNOk returns a tuple with the IssuedDN field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModelsCertificateRetrievalResponse) GetIssuedDNOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IssuedDN.Get(), o.IssuedDN.IsSet() +} + +// HasIssuedDN returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponse) HasIssuedDN() bool { + if o != nil && o.IssuedDN.IsSet() { + return true + } + + return false +} + +// SetIssuedDN gets a reference to the given NullableString and assigns it to the IssuedDN field. +func (o *ModelsCertificateRetrievalResponse) SetIssuedDN(v string) { + o.IssuedDN.Set(&v) +} + +// SetIssuedDNNil sets the value for IssuedDN to be an explicit nil +func (o *ModelsCertificateRetrievalResponse) SetIssuedDNNil() { + o.IssuedDN.Set(nil) +} + +// UnsetIssuedDN ensures that no value is present for IssuedDN, not even an explicit nil +func (o *ModelsCertificateRetrievalResponse) UnsetIssuedDN() { + o.IssuedDN.Unset() +} + +// GetIssuedCN returns the IssuedCN field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModelsCertificateRetrievalResponse) GetIssuedCN() string { + if o == nil || isNil(o.IssuedCN.Get()) { + var ret string + return ret + } + return *o.IssuedCN.Get() +} + +// GetIssuedCNOk returns a tuple with the IssuedCN field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModelsCertificateRetrievalResponse) GetIssuedCNOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IssuedCN.Get(), o.IssuedCN.IsSet() +} + +// HasIssuedCN returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponse) HasIssuedCN() bool { + if o != nil && o.IssuedCN.IsSet() { + return true + } + + return false +} + +// SetIssuedCN gets a reference to the given NullableString and assigns it to the IssuedCN field. +func (o *ModelsCertificateRetrievalResponse) SetIssuedCN(v string) { + o.IssuedCN.Set(&v) +} + +// SetIssuedCNNil sets the value for IssuedCN to be an explicit nil +func (o *ModelsCertificateRetrievalResponse) SetIssuedCNNil() { + o.IssuedCN.Set(nil) +} + +// UnsetIssuedCN ensures that no value is present for IssuedCN, not even an explicit nil +func (o *ModelsCertificateRetrievalResponse) UnsetIssuedCN() { + o.IssuedCN.Unset() +} + +// GetImportDate returns the ImportDate field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponse) GetImportDate() time.Time { + if o == nil || isNil(o.ImportDate) { + var ret time.Time + return ret + } + return *o.ImportDate +} + +// GetImportDateOk returns a tuple with the ImportDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponse) GetImportDateOk() (*time.Time, bool) { + if o == nil || isNil(o.ImportDate) { + return nil, false + } + return o.ImportDate, true +} + +// HasImportDate returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponse) HasImportDate() bool { + if o != nil && !isNil(o.ImportDate) { + return true + } + + return false +} + +// SetImportDate gets a reference to the given time.Time and assigns it to the ImportDate field. +func (o *ModelsCertificateRetrievalResponse) SetImportDate(v time.Time) { + o.ImportDate = &v +} + +// GetNotBefore returns the NotBefore field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponse) GetNotBefore() time.Time { + if o == nil || isNil(o.NotBefore) { + var ret time.Time + return ret + } + return *o.NotBefore +} + +// GetNotBeforeOk returns a tuple with the NotBefore field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponse) GetNotBeforeOk() (*time.Time, bool) { + if o == nil || isNil(o.NotBefore) { + return nil, false + } + return o.NotBefore, true +} + +// HasNotBefore returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponse) HasNotBefore() bool { + if o != nil && !isNil(o.NotBefore) { + return true + } + + return false +} + +// SetNotBefore gets a reference to the given time.Time and assigns it to the NotBefore field. +func (o *ModelsCertificateRetrievalResponse) SetNotBefore(v time.Time) { + o.NotBefore = &v +} + +// GetNotAfter returns the NotAfter field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponse) GetNotAfter() time.Time { + if o == nil || isNil(o.NotAfter) { + var ret time.Time + return ret + } + return *o.NotAfter +} + +// GetNotAfterOk returns a tuple with the NotAfter field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponse) GetNotAfterOk() (*time.Time, bool) { + if o == nil || isNil(o.NotAfter) { + return nil, false + } + return o.NotAfter, true +} + +// HasNotAfter returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponse) HasNotAfter() bool { + if o != nil && !isNil(o.NotAfter) { + return true + } + + return false +} + +// SetNotAfter gets a reference to the given time.Time and assigns it to the NotAfter field. +func (o *ModelsCertificateRetrievalResponse) SetNotAfter(v time.Time) { + o.NotAfter = &v +} + +// GetIssuerDN returns the IssuerDN field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModelsCertificateRetrievalResponse) GetIssuerDN() string { + if o == nil || isNil(o.IssuerDN.Get()) { + var ret string + return ret + } + return *o.IssuerDN.Get() +} + +// GetIssuerDNOk returns a tuple with the IssuerDN field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModelsCertificateRetrievalResponse) GetIssuerDNOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IssuerDN.Get(), o.IssuerDN.IsSet() +} + +// HasIssuerDN returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponse) HasIssuerDN() bool { + if o != nil && o.IssuerDN.IsSet() { + return true + } + + return false +} + +// SetIssuerDN gets a reference to the given NullableString and assigns it to the IssuerDN field. +func (o *ModelsCertificateRetrievalResponse) SetIssuerDN(v string) { + o.IssuerDN.Set(&v) +} + +// SetIssuerDNNil sets the value for IssuerDN to be an explicit nil +func (o *ModelsCertificateRetrievalResponse) SetIssuerDNNil() { + o.IssuerDN.Set(nil) +} + +// UnsetIssuerDN ensures that no value is present for IssuerDN, not even an explicit nil +func (o *ModelsCertificateRetrievalResponse) UnsetIssuerDN() { + o.IssuerDN.Unset() +} + +// GetPrincipalId returns the PrincipalId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModelsCertificateRetrievalResponse) GetPrincipalId() int32 { + if o == nil || isNil(o.PrincipalId.Get()) { + var ret int32 + return ret + } + return *o.PrincipalId.Get() +} + +// GetPrincipalIdOk returns a tuple with the PrincipalId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModelsCertificateRetrievalResponse) GetPrincipalIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.PrincipalId.Get(), o.PrincipalId.IsSet() +} + +// HasPrincipalId returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponse) HasPrincipalId() bool { + if o != nil && o.PrincipalId.IsSet() { + return true + } + + return false +} + +// SetPrincipalId gets a reference to the given NullableInt32 and assigns it to the PrincipalId field. +func (o *ModelsCertificateRetrievalResponse) SetPrincipalId(v int32) { + o.PrincipalId.Set(&v) +} + +// SetPrincipalIdNil sets the value for PrincipalId to be an explicit nil +func (o *ModelsCertificateRetrievalResponse) SetPrincipalIdNil() { + o.PrincipalId.Set(nil) +} + +// UnsetPrincipalId ensures that no value is present for PrincipalId, not even an explicit nil +func (o *ModelsCertificateRetrievalResponse) UnsetPrincipalId() { + o.PrincipalId.Unset() +} + +// GetTemplateId returns the TemplateId field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponse) GetTemplateId() int32 { + if o == nil || isNil(o.TemplateId) { + var ret int32 + return ret + } + return *o.TemplateId +} + +// GetTemplateIdOk returns a tuple with the TemplateId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponse) GetTemplateIdOk() (*int32, bool) { + if o == nil || isNil(o.TemplateId) { + return nil, false + } + return o.TemplateId, true +} + +// HasTemplateId returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponse) HasTemplateId() bool { + if o != nil && !isNil(o.TemplateId) { + return true + } + + return false +} + +// SetTemplateId gets a reference to the given int32 and assigns it to the TemplateId field. +func (o *ModelsCertificateRetrievalResponse) SetTemplateId(v int32) { + o.TemplateId = &v +} + +// GetCertState returns the CertState field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponse) GetCertState() int32 { + if o == nil || isNil(o.CertState) { + var ret int32 + return ret + } + return *o.CertState +} + +// GetCertStateOk returns a tuple with the CertState field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponse) GetCertStateOk() (*int32, bool) { + if o == nil || isNil(o.CertState) { + return nil, false + } + return o.CertState, true +} + +// HasCertState returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponse) HasCertState() bool { + if o != nil && !isNil(o.CertState) { + return true + } + + return false +} + +// SetCertState gets a reference to the given int32 and assigns it to the CertState field. +func (o *ModelsCertificateRetrievalResponse) SetCertState(v int32) { + o.CertState = &v +} + +// GetKeySizeInBits returns the KeySizeInBits field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponse) GetKeySizeInBits() int32 { + if o == nil || isNil(o.KeySizeInBits) { + var ret int32 + return ret + } + return *o.KeySizeInBits +} + +// GetKeySizeInBitsOk returns a tuple with the KeySizeInBits field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponse) GetKeySizeInBitsOk() (*int32, bool) { + if o == nil || isNil(o.KeySizeInBits) { + return nil, false + } + return o.KeySizeInBits, true +} + +// HasKeySizeInBits returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponse) HasKeySizeInBits() bool { + if o != nil && !isNil(o.KeySizeInBits) { + return true + } + + return false +} + +// SetKeySizeInBits gets a reference to the given int32 and assigns it to the KeySizeInBits field. +func (o *ModelsCertificateRetrievalResponse) SetKeySizeInBits(v int32) { + o.KeySizeInBits = &v +} + +// GetKeyType returns the KeyType field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponse) GetKeyType() int32 { + if o == nil || isNil(o.KeyType) { + var ret int32 + return ret + } + return *o.KeyType +} + +// GetKeyTypeOk returns a tuple with the KeyType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponse) GetKeyTypeOk() (*int32, bool) { + if o == nil || isNil(o.KeyType) { + return nil, false + } + return o.KeyType, true +} + +// HasKeyType returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponse) HasKeyType() bool { + if o != nil && !isNil(o.KeyType) { + return true + } + + return false +} + +// SetKeyType gets a reference to the given int32 and assigns it to the KeyType field. +func (o *ModelsCertificateRetrievalResponse) SetKeyType(v int32) { + o.KeyType = &v +} + +// GetRequesterId returns the RequesterId field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponse) GetRequesterId() int32 { + if o == nil || isNil(o.RequesterId) { + var ret int32 + return ret + } + return *o.RequesterId +} + +// GetRequesterIdOk returns a tuple with the RequesterId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponse) GetRequesterIdOk() (*int32, bool) { + if o == nil || isNil(o.RequesterId) { + return nil, false + } + return o.RequesterId, true +} + +// HasRequesterId returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponse) HasRequesterId() bool { + if o != nil && !isNil(o.RequesterId) { + return true + } + + return false +} + +// SetRequesterId gets a reference to the given int32 and assigns it to the RequesterId field. +func (o *ModelsCertificateRetrievalResponse) SetRequesterId(v int32) { + o.RequesterId = &v +} + +// GetIssuedOU returns the IssuedOU field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModelsCertificateRetrievalResponse) GetIssuedOU() string { + if o == nil || isNil(o.IssuedOU.Get()) { + var ret string + return ret + } + return *o.IssuedOU.Get() +} + +// GetIssuedOUOk returns a tuple with the IssuedOU field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModelsCertificateRetrievalResponse) GetIssuedOUOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IssuedOU.Get(), o.IssuedOU.IsSet() +} + +// HasIssuedOU returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponse) HasIssuedOU() bool { + if o != nil && o.IssuedOU.IsSet() { + return true + } + + return false +} + +// SetIssuedOU gets a reference to the given NullableString and assigns it to the IssuedOU field. +func (o *ModelsCertificateRetrievalResponse) SetIssuedOU(v string) { + o.IssuedOU.Set(&v) +} + +// SetIssuedOUNil sets the value for IssuedOU to be an explicit nil +func (o *ModelsCertificateRetrievalResponse) SetIssuedOUNil() { + o.IssuedOU.Set(nil) +} + +// UnsetIssuedOU ensures that no value is present for IssuedOU, not even an explicit nil +func (o *ModelsCertificateRetrievalResponse) UnsetIssuedOU() { + o.IssuedOU.Unset() +} + +// GetIssuedEmail returns the IssuedEmail field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModelsCertificateRetrievalResponse) GetIssuedEmail() string { + if o == nil || isNil(o.IssuedEmail.Get()) { + var ret string + return ret + } + return *o.IssuedEmail.Get() +} + +// GetIssuedEmailOk returns a tuple with the IssuedEmail field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModelsCertificateRetrievalResponse) GetIssuedEmailOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IssuedEmail.Get(), o.IssuedEmail.IsSet() +} + +// HasIssuedEmail returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponse) HasIssuedEmail() bool { + if o != nil && o.IssuedEmail.IsSet() { + return true + } + + return false +} + +// SetIssuedEmail gets a reference to the given NullableString and assigns it to the IssuedEmail field. +func (o *ModelsCertificateRetrievalResponse) SetIssuedEmail(v string) { + o.IssuedEmail.Set(&v) +} + +// SetIssuedEmailNil sets the value for IssuedEmail to be an explicit nil +func (o *ModelsCertificateRetrievalResponse) SetIssuedEmailNil() { + o.IssuedEmail.Set(nil) +} + +// UnsetIssuedEmail ensures that no value is present for IssuedEmail, not even an explicit nil +func (o *ModelsCertificateRetrievalResponse) UnsetIssuedEmail() { + o.IssuedEmail.Unset() +} + +// GetKeyUsage returns the KeyUsage field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponse) GetKeyUsage() int32 { + if o == nil || isNil(o.KeyUsage) { + var ret int32 + return ret + } + return *o.KeyUsage +} + +// GetKeyUsageOk returns a tuple with the KeyUsage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponse) GetKeyUsageOk() (*int32, bool) { + if o == nil || isNil(o.KeyUsage) { + return nil, false + } + return o.KeyUsage, true +} + +// HasKeyUsage returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponse) HasKeyUsage() bool { + if o != nil && !isNil(o.KeyUsage) { + return true + } + + return false +} + +// SetKeyUsage gets a reference to the given int32 and assigns it to the KeyUsage field. +func (o *ModelsCertificateRetrievalResponse) SetKeyUsage(v int32) { + o.KeyUsage = &v +} + +// GetSigningAlgorithm returns the SigningAlgorithm field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponse) GetSigningAlgorithm() string { + if o == nil || isNil(o.SigningAlgorithm) { + var ret string + return ret + } + return *o.SigningAlgorithm +} + +// GetSigningAlgorithmOk returns a tuple with the SigningAlgorithm field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponse) GetSigningAlgorithmOk() (*string, bool) { + if o == nil || isNil(o.SigningAlgorithm) { + return nil, false + } + return o.SigningAlgorithm, true +} + +// HasSigningAlgorithm returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponse) HasSigningAlgorithm() bool { + if o != nil && !isNil(o.SigningAlgorithm) { + return true + } + + return false +} + +// SetSigningAlgorithm gets a reference to the given string and assigns it to the SigningAlgorithm field. +func (o *ModelsCertificateRetrievalResponse) SetSigningAlgorithm(v string) { + o.SigningAlgorithm = &v +} + +// GetCertStateString returns the CertStateString field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponse) GetCertStateString() string { + if o == nil || isNil(o.CertStateString) { + var ret string + return ret + } + return *o.CertStateString +} + +// GetCertStateStringOk returns a tuple with the CertStateString field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponse) GetCertStateStringOk() (*string, bool) { + if o == nil || isNil(o.CertStateString) { + return nil, false + } + return o.CertStateString, true +} + +// HasCertStateString returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponse) HasCertStateString() bool { + if o != nil && !isNil(o.CertStateString) { + return true + } + + return false +} + +// SetCertStateString gets a reference to the given string and assigns it to the CertStateString field. +func (o *ModelsCertificateRetrievalResponse) SetCertStateString(v string) { + o.CertStateString = &v +} + +// GetKeyTypeString returns the KeyTypeString field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponse) GetKeyTypeString() string { + if o == nil || isNil(o.KeyTypeString) { + var ret string + return ret + } + return *o.KeyTypeString +} + +// GetKeyTypeStringOk returns a tuple with the KeyTypeString field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponse) GetKeyTypeStringOk() (*string, bool) { + if o == nil || isNil(o.KeyTypeString) { + return nil, false + } + return o.KeyTypeString, true +} + +// HasKeyTypeString returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponse) HasKeyTypeString() bool { + if o != nil && !isNil(o.KeyTypeString) { + return true + } + + return false +} + +// SetKeyTypeString gets a reference to the given string and assigns it to the KeyTypeString field. +func (o *ModelsCertificateRetrievalResponse) SetKeyTypeString(v string) { + o.KeyTypeString = &v +} + +// GetRevocationEffDate returns the RevocationEffDate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModelsCertificateRetrievalResponse) GetRevocationEffDate() time.Time { + if o == nil || isNil(o.RevocationEffDate.Get()) { + var ret time.Time + return ret + } + return *o.RevocationEffDate.Get() +} + +// GetRevocationEffDateOk returns a tuple with the RevocationEffDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModelsCertificateRetrievalResponse) GetRevocationEffDateOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.RevocationEffDate.Get(), o.RevocationEffDate.IsSet() +} + +// HasRevocationEffDate returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponse) HasRevocationEffDate() bool { + if o != nil && o.RevocationEffDate.IsSet() { + return true + } + + return false +} + +// SetRevocationEffDate gets a reference to the given NullableTime and assigns it to the RevocationEffDate field. +func (o *ModelsCertificateRetrievalResponse) SetRevocationEffDate(v time.Time) { + o.RevocationEffDate.Set(&v) +} + +// SetRevocationEffDateNil sets the value for RevocationEffDate to be an explicit nil +func (o *ModelsCertificateRetrievalResponse) SetRevocationEffDateNil() { + o.RevocationEffDate.Set(nil) +} + +// UnsetRevocationEffDate ensures that no value is present for RevocationEffDate, not even an explicit nil +func (o *ModelsCertificateRetrievalResponse) UnsetRevocationEffDate() { + o.RevocationEffDate.Unset() +} + +// GetRevocationReason returns the RevocationReason field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModelsCertificateRetrievalResponse) GetRevocationReason() int32 { + if o == nil || isNil(o.RevocationReason.Get()) { + var ret int32 + return ret + } + return *o.RevocationReason.Get() +} + +// GetRevocationReasonOk returns a tuple with the RevocationReason field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModelsCertificateRetrievalResponse) GetRevocationReasonOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.RevocationReason.Get(), o.RevocationReason.IsSet() +} + +// HasRevocationReason returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponse) HasRevocationReason() bool { + if o != nil && o.RevocationReason.IsSet() { + return true + } + + return false +} + +// SetRevocationReason gets a reference to the given NullableInt32 and assigns it to the RevocationReason field. +func (o *ModelsCertificateRetrievalResponse) SetRevocationReason(v int32) { + o.RevocationReason.Set(&v) +} + +// SetRevocationReasonNil sets the value for RevocationReason to be an explicit nil +func (o *ModelsCertificateRetrievalResponse) SetRevocationReasonNil() { + o.RevocationReason.Set(nil) +} + +// UnsetRevocationReason ensures that no value is present for RevocationReason, not even an explicit nil +func (o *ModelsCertificateRetrievalResponse) UnsetRevocationReason() { + o.RevocationReason.Unset() +} + +// GetRevocationComment returns the RevocationComment field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModelsCertificateRetrievalResponse) GetRevocationComment() string { + if o == nil || isNil(o.RevocationComment.Get()) { + var ret string + return ret + } + return *o.RevocationComment.Get() +} + +// GetRevocationCommentOk returns a tuple with the RevocationComment field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModelsCertificateRetrievalResponse) GetRevocationCommentOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.RevocationComment.Get(), o.RevocationComment.IsSet() +} + +// HasRevocationComment returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponse) HasRevocationComment() bool { + if o != nil && o.RevocationComment.IsSet() { + return true + } + + return false +} + +// SetRevocationComment gets a reference to the given NullableString and assigns it to the RevocationComment field. +func (o *ModelsCertificateRetrievalResponse) SetRevocationComment(v string) { + o.RevocationComment.Set(&v) +} + +// SetRevocationCommentNil sets the value for RevocationComment to be an explicit nil +func (o *ModelsCertificateRetrievalResponse) SetRevocationCommentNil() { + o.RevocationComment.Set(nil) +} + +// UnsetRevocationComment ensures that no value is present for RevocationComment, not even an explicit nil +func (o *ModelsCertificateRetrievalResponse) UnsetRevocationComment() { + o.RevocationComment.Unset() +} + +// GetCertificateAuthorityId returns the CertificateAuthorityId field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponse) GetCertificateAuthorityId() int32 { + if o == nil || isNil(o.CertificateAuthorityId) { + var ret int32 + return ret + } + return *o.CertificateAuthorityId +} + +// GetCertificateAuthorityIdOk returns a tuple with the CertificateAuthorityId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponse) GetCertificateAuthorityIdOk() (*int32, bool) { + if o == nil || isNil(o.CertificateAuthorityId) { + return nil, false + } + return o.CertificateAuthorityId, true +} + +// HasCertificateAuthorityId returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponse) HasCertificateAuthorityId() bool { + if o != nil && !isNil(o.CertificateAuthorityId) { + return true + } + + return false +} + +// SetCertificateAuthorityId gets a reference to the given int32 and assigns it to the CertificateAuthorityId field. +func (o *ModelsCertificateRetrievalResponse) SetCertificateAuthorityId(v int32) { + o.CertificateAuthorityId = &v +} + +// GetCertificateAuthorityName returns the CertificateAuthorityName field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponse) GetCertificateAuthorityName() string { + if o == nil || isNil(o.CertificateAuthorityName) { + var ret string + return ret + } + return *o.CertificateAuthorityName +} + +// GetCertificateAuthorityNameOk returns a tuple with the CertificateAuthorityName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponse) GetCertificateAuthorityNameOk() (*string, bool) { + if o == nil || isNil(o.CertificateAuthorityName) { + return nil, false + } + return o.CertificateAuthorityName, true +} + +// HasCertificateAuthorityName returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponse) HasCertificateAuthorityName() bool { + if o != nil && !isNil(o.CertificateAuthorityName) { + return true + } + + return false +} + +// SetCertificateAuthorityName gets a reference to the given string and assigns it to the CertificateAuthorityName field. +func (o *ModelsCertificateRetrievalResponse) SetCertificateAuthorityName(v string) { + o.CertificateAuthorityName = &v +} + +// GetTemplateName returns the TemplateName field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponse) GetTemplateName() string { + if o == nil || isNil(o.TemplateName) { + var ret string + return ret + } + return *o.TemplateName +} + +// GetTemplateNameOk returns a tuple with the TemplateName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponse) GetTemplateNameOk() (*string, bool) { + if o == nil || isNil(o.TemplateName) { + return nil, false + } + return o.TemplateName, true +} + +// HasTemplateName returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponse) HasTemplateName() bool { + if o != nil && !isNil(o.TemplateName) { + return true + } + + return false +} + +// SetTemplateName gets a reference to the given string and assigns it to the TemplateName field. +func (o *ModelsCertificateRetrievalResponse) SetTemplateName(v string) { + o.TemplateName = &v +} + +// GetArchivedKey returns the ArchivedKey field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponse) GetArchivedKey() bool { + if o == nil || isNil(o.ArchivedKey) { + var ret bool + return ret + } + return *o.ArchivedKey +} + +// GetArchivedKeyOk returns a tuple with the ArchivedKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponse) GetArchivedKeyOk() (*bool, bool) { + if o == nil || isNil(o.ArchivedKey) { + return nil, false + } + return o.ArchivedKey, true +} + +// HasArchivedKey returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponse) HasArchivedKey() bool { + if o != nil && !isNil(o.ArchivedKey) { + return true + } + + return false +} + +// SetArchivedKey gets a reference to the given bool and assigns it to the ArchivedKey field. +func (o *ModelsCertificateRetrievalResponse) SetArchivedKey(v bool) { + o.ArchivedKey = &v +} + +// GetHasPrivateKey returns the HasPrivateKey field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponse) GetHasPrivateKey() bool { + if o == nil || isNil(o.HasPrivateKey) { + var ret bool + return ret + } + return *o.HasPrivateKey +} + +// GetHasPrivateKeyOk returns a tuple with the HasPrivateKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponse) GetHasPrivateKeyOk() (*bool, bool) { + if o == nil || isNil(o.HasPrivateKey) { + return nil, false + } + return o.HasPrivateKey, true +} + +// HasHasPrivateKey returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponse) HasHasPrivateKey() bool { + if o != nil && !isNil(o.HasPrivateKey) { + return true + } + + return false +} + +// SetHasPrivateKey gets a reference to the given bool and assigns it to the HasPrivateKey field. +func (o *ModelsCertificateRetrievalResponse) SetHasPrivateKey(v bool) { + o.HasPrivateKey = &v +} + +// GetPrincipalName returns the PrincipalName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModelsCertificateRetrievalResponse) GetPrincipalName() string { + if o == nil || isNil(o.PrincipalName.Get()) { + var ret string + return ret + } + return *o.PrincipalName.Get() +} + +// GetPrincipalNameOk returns a tuple with the PrincipalName field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModelsCertificateRetrievalResponse) GetPrincipalNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.PrincipalName.Get(), o.PrincipalName.IsSet() +} + +// HasPrincipalName returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponse) HasPrincipalName() bool { + if o != nil && o.PrincipalName.IsSet() { + return true + } + + return false +} + +// SetPrincipalName gets a reference to the given NullableString and assigns it to the PrincipalName field. +func (o *ModelsCertificateRetrievalResponse) SetPrincipalName(v string) { + o.PrincipalName.Set(&v) +} + +// SetPrincipalNameNil sets the value for PrincipalName to be an explicit nil +func (o *ModelsCertificateRetrievalResponse) SetPrincipalNameNil() { + o.PrincipalName.Set(nil) +} + +// UnsetPrincipalName ensures that no value is present for PrincipalName, not even an explicit nil +func (o *ModelsCertificateRetrievalResponse) UnsetPrincipalName() { + o.PrincipalName.Unset() +} + +// GetCertRequestId returns the CertRequestId field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponse) GetCertRequestId() int32 { + if o == nil || isNil(o.CertRequestId) { + var ret int32 + return ret + } + return *o.CertRequestId +} + +// GetCertRequestIdOk returns a tuple with the CertRequestId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponse) GetCertRequestIdOk() (*int32, bool) { + if o == nil || isNil(o.CertRequestId) { + return nil, false + } + return o.CertRequestId, true +} + +// HasCertRequestId returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponse) HasCertRequestId() bool { + if o != nil && !isNil(o.CertRequestId) { + return true + } + + return false +} + +// SetCertRequestId gets a reference to the given int32 and assigns it to the CertRequestId field. +func (o *ModelsCertificateRetrievalResponse) SetCertRequestId(v int32) { + o.CertRequestId = &v +} + +// GetRequesterName returns the RequesterName field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponse) GetRequesterName() string { + if o == nil || isNil(o.RequesterName) { + var ret string + return ret + } + return *o.RequesterName +} + +// GetRequesterNameOk returns a tuple with the RequesterName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponse) GetRequesterNameOk() (*string, bool) { + if o == nil || isNil(o.RequesterName) { + return nil, false + } + return o.RequesterName, true +} + +// HasRequesterName returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponse) HasRequesterName() bool { + if o != nil && !isNil(o.RequesterName) { + return true + } + + return false +} + +// SetRequesterName gets a reference to the given string and assigns it to the RequesterName field. +func (o *ModelsCertificateRetrievalResponse) SetRequesterName(v string) { + o.RequesterName = &v +} + +// GetContentBytes returns the ContentBytes field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponse) GetContentBytes() string { + if o == nil || isNil(o.ContentBytes) { + var ret string + return ret + } + return *o.ContentBytes +} + +// GetContentBytesOk returns a tuple with the ContentBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponse) GetContentBytesOk() (*string, bool) { + if o == nil || isNil(o.ContentBytes) { + return nil, false + } + return o.ContentBytes, true +} + +// HasContentBytes returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponse) HasContentBytes() bool { + if o != nil && !isNil(o.ContentBytes) { + return true + } + + return false +} + +// SetContentBytes gets a reference to the given string and assigns it to the ContentBytes field. +func (o *ModelsCertificateRetrievalResponse) SetContentBytes(v string) { + o.ContentBytes = &v +} + +// GetExtendedKeyUsages returns the ExtendedKeyUsages field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponse) GetExtendedKeyUsages() []ModelsCertificateRetrievalResponseExtendedKeyUsageModel { + if o == nil || isNil(o.ExtendedKeyUsages) { + var ret []ModelsCertificateRetrievalResponseExtendedKeyUsageModel + return ret + } + return o.ExtendedKeyUsages +} + +// GetExtendedKeyUsagesOk returns a tuple with the ExtendedKeyUsages field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponse) GetExtendedKeyUsagesOk() ([]ModelsCertificateRetrievalResponseExtendedKeyUsageModel, bool) { + if o == nil || isNil(o.ExtendedKeyUsages) { + return nil, false + } + return o.ExtendedKeyUsages, true +} + +// HasExtendedKeyUsages returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponse) HasExtendedKeyUsages() bool { + if o != nil && !isNil(o.ExtendedKeyUsages) { + return true + } + + return false +} + +// SetExtendedKeyUsages gets a reference to the given []ModelsCertificateRetrievalResponseExtendedKeyUsageModel and assigns it to the ExtendedKeyUsages field. +func (o *ModelsCertificateRetrievalResponse) SetExtendedKeyUsages(v []ModelsCertificateRetrievalResponseExtendedKeyUsageModel) { + o.ExtendedKeyUsages = v +} + +// GetSubjectAltNameElements returns the SubjectAltNameElements field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponse) GetSubjectAltNameElements() []ModelsCertificateRetrievalResponseSubjectAlternativeNameModel { + if o == nil || isNil(o.SubjectAltNameElements) { + var ret []ModelsCertificateRetrievalResponseSubjectAlternativeNameModel + return ret + } + return o.SubjectAltNameElements +} + +// GetSubjectAltNameElementsOk returns a tuple with the SubjectAltNameElements field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponse) GetSubjectAltNameElementsOk() ([]ModelsCertificateRetrievalResponseSubjectAlternativeNameModel, bool) { + if o == nil || isNil(o.SubjectAltNameElements) { + return nil, false + } + return o.SubjectAltNameElements, true +} + +// HasSubjectAltNameElements returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponse) HasSubjectAltNameElements() bool { + if o != nil && !isNil(o.SubjectAltNameElements) { + return true + } + + return false +} + +// SetSubjectAltNameElements gets a reference to the given []ModelsCertificateRetrievalResponseSubjectAlternativeNameModel and assigns it to the SubjectAltNameElements field. +func (o *ModelsCertificateRetrievalResponse) SetSubjectAltNameElements(v []ModelsCertificateRetrievalResponseSubjectAlternativeNameModel) { + o.SubjectAltNameElements = v +} + +// GetCRLDistributionPoints returns the CRLDistributionPoints field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponse) GetCRLDistributionPoints() []ModelsCertificateRetrievalResponseCRLDistributionPointModel { + if o == nil || isNil(o.CRLDistributionPoints) { + var ret []ModelsCertificateRetrievalResponseCRLDistributionPointModel + return ret + } + return o.CRLDistributionPoints +} + +// GetCRLDistributionPointsOk returns a tuple with the CRLDistributionPoints field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponse) GetCRLDistributionPointsOk() ([]ModelsCertificateRetrievalResponseCRLDistributionPointModel, bool) { + if o == nil || isNil(o.CRLDistributionPoints) { + return nil, false + } + return o.CRLDistributionPoints, true +} + +// HasCRLDistributionPoints returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponse) HasCRLDistributionPoints() bool { + if o != nil && !isNil(o.CRLDistributionPoints) { + return true + } + + return false +} + +// SetCRLDistributionPoints gets a reference to the given []ModelsCertificateRetrievalResponseCRLDistributionPointModel and assigns it to the CRLDistributionPoints field. +func (o *ModelsCertificateRetrievalResponse) SetCRLDistributionPoints(v []ModelsCertificateRetrievalResponseCRLDistributionPointModel) { + o.CRLDistributionPoints = v +} + +// GetLocationsCount returns the LocationsCount field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponse) GetLocationsCount() []ModelsCertificateRetrievalResponseLocationCountModel { + if o == nil || isNil(o.LocationsCount) { + var ret []ModelsCertificateRetrievalResponseLocationCountModel + return ret + } + return o.LocationsCount +} + +// GetLocationsCountOk returns a tuple with the LocationsCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponse) GetLocationsCountOk() ([]ModelsCertificateRetrievalResponseLocationCountModel, bool) { + if o == nil || isNil(o.LocationsCount) { + return nil, false + } + return o.LocationsCount, true +} + +// HasLocationsCount returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponse) HasLocationsCount() bool { + if o != nil && !isNil(o.LocationsCount) { + return true + } + + return false +} + +// SetLocationsCount gets a reference to the given []ModelsCertificateRetrievalResponseLocationCountModel and assigns it to the LocationsCount field. +func (o *ModelsCertificateRetrievalResponse) SetLocationsCount(v []ModelsCertificateRetrievalResponseLocationCountModel) { + o.LocationsCount = v +} + +// GetSSLLocations returns the SSLLocations field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponse) GetSSLLocations() []ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel { + if o == nil || isNil(o.SSLLocations) { + var ret []ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel + return ret + } + return o.SSLLocations +} + +// GetSSLLocationsOk returns a tuple with the SSLLocations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponse) GetSSLLocationsOk() ([]ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel, bool) { + if o == nil || isNil(o.SSLLocations) { + return nil, false + } + return o.SSLLocations, true +} + +// HasSSLLocations returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponse) HasSSLLocations() bool { + if o != nil && !isNil(o.SSLLocations) { + return true + } + + return false +} + +// SetSSLLocations gets a reference to the given []ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel and assigns it to the SSLLocations field. +func (o *ModelsCertificateRetrievalResponse) SetSSLLocations(v []ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel) { + o.SSLLocations = v +} + +// GetLocations returns the Locations field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponse) GetLocations() []ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel { + if o == nil || isNil(o.Locations) { + var ret []ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel + return ret + } + return o.Locations +} + +// GetLocationsOk returns a tuple with the Locations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponse) GetLocationsOk() ([]ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel, bool) { + if o == nil || isNil(o.Locations) { + return nil, false + } + return o.Locations, true +} + +// HasLocations returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponse) HasLocations() bool { + if o != nil && !isNil(o.Locations) { + return true + } + + return false +} + +// SetLocations gets a reference to the given []ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel and assigns it to the Locations field. +func (o *ModelsCertificateRetrievalResponse) SetLocations(v []ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) { + o.Locations = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponse) GetMetadata() map[string]string { + if o == nil || isNil(o.Metadata) { + var ret map[string]string + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponse) GetMetadataOk() (*map[string]string, bool) { + if o == nil || isNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponse) HasMetadata() bool { + if o != nil && !isNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given map[string]string and assigns it to the Metadata field. +func (o *ModelsCertificateRetrievalResponse) SetMetadata(v map[string]string) { + o.Metadata = &v +} + +// GetCertificateKeyId returns the CertificateKeyId field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponse) GetCertificateKeyId() int32 { + if o == nil || isNil(o.CertificateKeyId) { + var ret int32 + return ret + } + return *o.CertificateKeyId +} + +// GetCertificateKeyIdOk returns a tuple with the CertificateKeyId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponse) GetCertificateKeyIdOk() (*int32, bool) { + if o == nil || isNil(o.CertificateKeyId) { + return nil, false + } + return o.CertificateKeyId, true +} + +// HasCertificateKeyId returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponse) HasCertificateKeyId() bool { + if o != nil && !isNil(o.CertificateKeyId) { + return true + } + + return false +} + +// SetCertificateKeyId gets a reference to the given int32 and assigns it to the CertificateKeyId field. +func (o *ModelsCertificateRetrievalResponse) SetCertificateKeyId(v int32) { + o.CertificateKeyId = &v +} + +// GetCARowIndex returns the CARowIndex field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponse) GetCARowIndex() int64 { + if o == nil || isNil(o.CARowIndex) { + var ret int64 + return ret + } + return *o.CARowIndex +} + +// GetCARowIndexOk returns a tuple with the CARowIndex field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponse) GetCARowIndexOk() (*int64, bool) { + if o == nil || isNil(o.CARowIndex) { + return nil, false + } + return o.CARowIndex, true +} + +// HasCARowIndex returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponse) HasCARowIndex() bool { + if o != nil && !isNil(o.CARowIndex) { + return true + } + + return false +} + +// SetCARowIndex gets a reference to the given int64 and assigns it to the CARowIndex field. +func (o *ModelsCertificateRetrievalResponse) SetCARowIndex(v int64) { + o.CARowIndex = &v +} + +// GetCARecordId returns the CARecordId field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponse) GetCARecordId() string { + if o == nil || isNil(o.CARecordId) { + var ret string + return ret + } + return *o.CARecordId +} + +// GetCARecordIdOk returns a tuple with the CARecordId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponse) GetCARecordIdOk() (*string, bool) { + if o == nil || isNil(o.CARecordId) { + return nil, false + } + return o.CARecordId, true +} + +// HasCARecordId returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponse) HasCARecordId() bool { + if o != nil && !isNil(o.CARecordId) { + return true + } + + return false +} + +// SetCARecordId gets a reference to the given string and assigns it to the CARecordId field. +func (o *ModelsCertificateRetrievalResponse) SetCARecordId(v string) { + o.CARecordId = &v +} + +// GetDetailedKeyUsage returns the DetailedKeyUsage field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponse) GetDetailedKeyUsage() ModelsCertificateRetrievalResponseDetailedKeyUsageModel { + if o == nil || isNil(o.DetailedKeyUsage) { + var ret ModelsCertificateRetrievalResponseDetailedKeyUsageModel + return ret + } + return *o.DetailedKeyUsage +} + +// GetDetailedKeyUsageOk returns a tuple with the DetailedKeyUsage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponse) GetDetailedKeyUsageOk() (*ModelsCertificateRetrievalResponseDetailedKeyUsageModel, bool) { + if o == nil || isNil(o.DetailedKeyUsage) { + return nil, false + } + return o.DetailedKeyUsage, true +} + +// HasDetailedKeyUsage returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponse) HasDetailedKeyUsage() bool { + if o != nil && !isNil(o.DetailedKeyUsage) { + return true + } + + return false +} + +// SetDetailedKeyUsage gets a reference to the given ModelsCertificateRetrievalResponseDetailedKeyUsageModel and assigns it to the DetailedKeyUsage field. +func (o *ModelsCertificateRetrievalResponse) SetDetailedKeyUsage(v ModelsCertificateRetrievalResponseDetailedKeyUsageModel) { + o.DetailedKeyUsage = &v +} + +// GetKeyRecoverable returns the KeyRecoverable field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponse) GetKeyRecoverable() bool { + if o == nil || isNil(o.KeyRecoverable) { + var ret bool + return ret + } + return *o.KeyRecoverable +} + +// GetKeyRecoverableOk returns a tuple with the KeyRecoverable field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponse) GetKeyRecoverableOk() (*bool, bool) { + if o == nil || isNil(o.KeyRecoverable) { + return nil, false + } + return o.KeyRecoverable, true +} + +// HasKeyRecoverable returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponse) HasKeyRecoverable() bool { + if o != nil && !isNil(o.KeyRecoverable) { + return true + } + + return false +} + +// SetKeyRecoverable gets a reference to the given bool and assigns it to the KeyRecoverable field. +func (o *ModelsCertificateRetrievalResponse) SetKeyRecoverable(v bool) { + o.KeyRecoverable = &v +} + +// GetCurve returns the Curve field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModelsCertificateRetrievalResponse) GetCurve() string { + if o == nil || isNil(o.Curve.Get()) { + var ret string + return ret + } + return *o.Curve.Get() +} + +// GetCurveOk returns a tuple with the Curve field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModelsCertificateRetrievalResponse) GetCurveOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Curve.Get(), o.Curve.IsSet() +} + +// HasCurve returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponse) HasCurve() bool { + if o != nil && o.Curve.IsSet() { + return true + } + + return false +} + +// SetCurve gets a reference to the given NullableString and assigns it to the Curve field. +func (o *ModelsCertificateRetrievalResponse) SetCurve(v string) { + o.Curve.Set(&v) +} + +// SetCurveNil sets the value for Curve to be an explicit nil +func (o *ModelsCertificateRetrievalResponse) SetCurveNil() { + o.Curve.Set(nil) +} + +// UnsetCurve ensures that no value is present for Curve, not even an explicit nil +func (o *ModelsCertificateRetrievalResponse) UnsetCurve() { + o.Curve.Unset() +} + +func (o ModelsCertificateRetrievalResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsCertificateRetrievalResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.Thumbprint) { + toSerialize["Thumbprint"] = o.Thumbprint + } + if !isNil(o.SerialNumber) { + toSerialize["SerialNumber"] = o.SerialNumber + } + if o.IssuedDN.IsSet() { + toSerialize["IssuedDN"] = o.IssuedDN.Get() + } + if o.IssuedCN.IsSet() { + toSerialize["IssuedCN"] = o.IssuedCN.Get() + } + if !isNil(o.ImportDate) { + toSerialize["ImportDate"] = o.ImportDate + } + if !isNil(o.NotBefore) { + toSerialize["NotBefore"] = o.NotBefore + } + if !isNil(o.NotAfter) { + toSerialize["NotAfter"] = o.NotAfter + } + if o.IssuerDN.IsSet() { + toSerialize["IssuerDN"] = o.IssuerDN.Get() + } + if o.PrincipalId.IsSet() { + toSerialize["PrincipalId"] = o.PrincipalId.Get() + } + if !isNil(o.TemplateId) { + toSerialize["TemplateId"] = o.TemplateId + } + if !isNil(o.CertState) { + toSerialize["CertState"] = o.CertState + } + if !isNil(o.KeySizeInBits) { + toSerialize["KeySizeInBits"] = o.KeySizeInBits + } + if !isNil(o.KeyType) { + toSerialize["KeyType"] = o.KeyType + } + if !isNil(o.RequesterId) { + toSerialize["RequesterId"] = o.RequesterId + } + if o.IssuedOU.IsSet() { + toSerialize["IssuedOU"] = o.IssuedOU.Get() + } + if o.IssuedEmail.IsSet() { + toSerialize["IssuedEmail"] = o.IssuedEmail.Get() + } + if !isNil(o.KeyUsage) { + toSerialize["KeyUsage"] = o.KeyUsage + } + if !isNil(o.SigningAlgorithm) { + toSerialize["SigningAlgorithm"] = o.SigningAlgorithm + } + if !isNil(o.CertStateString) { + toSerialize["CertStateString"] = o.CertStateString + } + if !isNil(o.KeyTypeString) { + toSerialize["KeyTypeString"] = o.KeyTypeString + } + if o.RevocationEffDate.IsSet() { + toSerialize["RevocationEffDate"] = o.RevocationEffDate.Get() + } + if o.RevocationReason.IsSet() { + toSerialize["RevocationReason"] = o.RevocationReason.Get() + } + if o.RevocationComment.IsSet() { + toSerialize["RevocationComment"] = o.RevocationComment.Get() + } + if !isNil(o.CertificateAuthorityId) { + toSerialize["CertificateAuthorityId"] = o.CertificateAuthorityId + } + if !isNil(o.CertificateAuthorityName) { + toSerialize["CertificateAuthorityName"] = o.CertificateAuthorityName + } + if !isNil(o.TemplateName) { + toSerialize["TemplateName"] = o.TemplateName + } + if !isNil(o.ArchivedKey) { + toSerialize["ArchivedKey"] = o.ArchivedKey + } + if !isNil(o.HasPrivateKey) { + toSerialize["HasPrivateKey"] = o.HasPrivateKey + } + if o.PrincipalName.IsSet() { + toSerialize["PrincipalName"] = o.PrincipalName.Get() + } + if !isNil(o.CertRequestId) { + toSerialize["CertRequestId"] = o.CertRequestId + } + if !isNil(o.RequesterName) { + toSerialize["RequesterName"] = o.RequesterName + } + if !isNil(o.ContentBytes) { + toSerialize["ContentBytes"] = o.ContentBytes + } + if !isNil(o.ExtendedKeyUsages) { + toSerialize["ExtendedKeyUsages"] = o.ExtendedKeyUsages + } + if !isNil(o.SubjectAltNameElements) { + toSerialize["SubjectAltNameElements"] = o.SubjectAltNameElements + } + if !isNil(o.CRLDistributionPoints) { + toSerialize["CRLDistributionPoints"] = o.CRLDistributionPoints + } + if !isNil(o.LocationsCount) { + toSerialize["LocationsCount"] = o.LocationsCount + } + if !isNil(o.SSLLocations) { + toSerialize["SSLLocations"] = o.SSLLocations + } + if !isNil(o.Locations) { + toSerialize["Locations"] = o.Locations + } + if !isNil(o.Metadata) { + toSerialize["Metadata"] = o.Metadata + } + if !isNil(o.CertificateKeyId) { + toSerialize["CertificateKeyId"] = o.CertificateKeyId + } + // skip: CARowIndex is readOnly + if !isNil(o.CARecordId) { + toSerialize["CARecordId"] = o.CARecordId + } + if !isNil(o.DetailedKeyUsage) { + toSerialize["DetailedKeyUsage"] = o.DetailedKeyUsage + } + if !isNil(o.KeyRecoverable) { + toSerialize["KeyRecoverable"] = o.KeyRecoverable + } + if o.Curve.IsSet() { + toSerialize["Curve"] = o.Curve.Get() + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsCertificateRetrievalResponse) UnmarshalJSON(bytes []byte) (err error) { + varModelsCertificateRetrievalResponse := _ModelsCertificateRetrievalResponse{} + + if err = json.Unmarshal(bytes, &varModelsCertificateRetrievalResponse); err == nil { + *o = ModelsCertificateRetrievalResponse(varModelsCertificateRetrievalResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "Thumbprint") + delete(additionalProperties, "SerialNumber") + delete(additionalProperties, "IssuedDN") + delete(additionalProperties, "IssuedCN") + delete(additionalProperties, "ImportDate") + delete(additionalProperties, "NotBefore") + delete(additionalProperties, "NotAfter") + delete(additionalProperties, "IssuerDN") + delete(additionalProperties, "PrincipalId") + delete(additionalProperties, "TemplateId") + delete(additionalProperties, "CertState") + delete(additionalProperties, "KeySizeInBits") + delete(additionalProperties, "KeyType") + delete(additionalProperties, "RequesterId") + delete(additionalProperties, "IssuedOU") + delete(additionalProperties, "IssuedEmail") + delete(additionalProperties, "KeyUsage") + delete(additionalProperties, "SigningAlgorithm") + delete(additionalProperties, "CertStateString") + delete(additionalProperties, "KeyTypeString") + delete(additionalProperties, "RevocationEffDate") + delete(additionalProperties, "RevocationReason") + delete(additionalProperties, "RevocationComment") + delete(additionalProperties, "CertificateAuthorityId") + delete(additionalProperties, "CertificateAuthorityName") + delete(additionalProperties, "TemplateName") + delete(additionalProperties, "ArchivedKey") + delete(additionalProperties, "HasPrivateKey") + delete(additionalProperties, "PrincipalName") + delete(additionalProperties, "CertRequestId") + delete(additionalProperties, "RequesterName") + delete(additionalProperties, "ContentBytes") + delete(additionalProperties, "ExtendedKeyUsages") + delete(additionalProperties, "SubjectAltNameElements") + delete(additionalProperties, "CRLDistributionPoints") + delete(additionalProperties, "LocationsCount") + delete(additionalProperties, "SSLLocations") + delete(additionalProperties, "Locations") + delete(additionalProperties, "Metadata") + delete(additionalProperties, "CertificateKeyId") + delete(additionalProperties, "CARowIndex") + delete(additionalProperties, "CARecordId") + delete(additionalProperties, "DetailedKeyUsage") + delete(additionalProperties, "KeyRecoverable") + delete(additionalProperties, "Curve") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsCertificateRetrievalResponse struct { + value *ModelsCertificateRetrievalResponse + isSet bool +} + +func (v NullableModelsCertificateRetrievalResponse) Get() *ModelsCertificateRetrievalResponse { + return v.value +} + +func (v *NullableModelsCertificateRetrievalResponse) Set(val *ModelsCertificateRetrievalResponse) { + v.value = val + v.isSet = true +} + +func (v NullableModelsCertificateRetrievalResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsCertificateRetrievalResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsCertificateRetrievalResponse(val *ModelsCertificateRetrievalResponse) *NullableModelsCertificateRetrievalResponse { + return &NullableModelsCertificateRetrievalResponse{value: val, isSet: true} +} + +func (v NullableModelsCertificateRetrievalResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsCertificateRetrievalResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_certificate_retrieval_response_certificate_store_inventory_item_model.go b/v1/api/keyfactor/model_models_certificate_retrieval_response_certificate_store_inventory_item_model.go new file mode 100644 index 0000000..eda7a02 --- /dev/null +++ b/v1/api/keyfactor/model_models_certificate_retrieval_response_certificate_store_inventory_item_model.go @@ -0,0 +1,343 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel{} + +// ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel struct for ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel +type ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel struct { + StoreMachine *string `json:"StoreMachine,omitempty"` + StorePath *string `json:"StorePath,omitempty"` + StoreType *int32 `json:"StoreType,omitempty"` + Alias *string `json:"Alias,omitempty"` + ChainLevel *int32 `json:"ChainLevel,omitempty"` + CertStoreId *string `json:"CertStoreId,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel + +// NewModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel instantiates a new ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel() *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel { + this := ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel{} + return &this +} + +// NewModelsCertificateRetrievalResponseCertificateStoreInventoryItemModelWithDefaults instantiates a new ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsCertificateRetrievalResponseCertificateStoreInventoryItemModelWithDefaults() *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel { + this := ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel{} + return &this +} + +// GetStoreMachine returns the StoreMachine field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) GetStoreMachine() string { + if o == nil || isNil(o.StoreMachine) { + var ret string + return ret + } + return *o.StoreMachine +} + +// GetStoreMachineOk returns a tuple with the StoreMachine field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) GetStoreMachineOk() (*string, bool) { + if o == nil || isNil(o.StoreMachine) { + return nil, false + } + return o.StoreMachine, true +} + +// HasStoreMachine returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) HasStoreMachine() bool { + if o != nil && !isNil(o.StoreMachine) { + return true + } + + return false +} + +// SetStoreMachine gets a reference to the given string and assigns it to the StoreMachine field. +func (o *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) SetStoreMachine(v string) { + o.StoreMachine = &v +} + +// GetStorePath returns the StorePath field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) GetStorePath() string { + if o == nil || isNil(o.StorePath) { + var ret string + return ret + } + return *o.StorePath +} + +// GetStorePathOk returns a tuple with the StorePath field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) GetStorePathOk() (*string, bool) { + if o == nil || isNil(o.StorePath) { + return nil, false + } + return o.StorePath, true +} + +// HasStorePath returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) HasStorePath() bool { + if o != nil && !isNil(o.StorePath) { + return true + } + + return false +} + +// SetStorePath gets a reference to the given string and assigns it to the StorePath field. +func (o *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) SetStorePath(v string) { + o.StorePath = &v +} + +// GetStoreType returns the StoreType field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) GetStoreType() int32 { + if o == nil || isNil(o.StoreType) { + var ret int32 + return ret + } + return *o.StoreType +} + +// GetStoreTypeOk returns a tuple with the StoreType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) GetStoreTypeOk() (*int32, bool) { + if o == nil || isNil(o.StoreType) { + return nil, false + } + return o.StoreType, true +} + +// HasStoreType returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) HasStoreType() bool { + if o != nil && !isNil(o.StoreType) { + return true + } + + return false +} + +// SetStoreType gets a reference to the given int32 and assigns it to the StoreType field. +func (o *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) SetStoreType(v int32) { + o.StoreType = &v +} + +// GetAlias returns the Alias field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) GetAlias() string { + if o == nil || isNil(o.Alias) { + var ret string + return ret + } + return *o.Alias +} + +// GetAliasOk returns a tuple with the Alias field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) GetAliasOk() (*string, bool) { + if o == nil || isNil(o.Alias) { + return nil, false + } + return o.Alias, true +} + +// HasAlias returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) HasAlias() bool { + if o != nil && !isNil(o.Alias) { + return true + } + + return false +} + +// SetAlias gets a reference to the given string and assigns it to the Alias field. +func (o *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) SetAlias(v string) { + o.Alias = &v +} + +// GetChainLevel returns the ChainLevel field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) GetChainLevel() int32 { + if o == nil || isNil(o.ChainLevel) { + var ret int32 + return ret + } + return *o.ChainLevel +} + +// GetChainLevelOk returns a tuple with the ChainLevel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) GetChainLevelOk() (*int32, bool) { + if o == nil || isNil(o.ChainLevel) { + return nil, false + } + return o.ChainLevel, true +} + +// HasChainLevel returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) HasChainLevel() bool { + if o != nil && !isNil(o.ChainLevel) { + return true + } + + return false +} + +// SetChainLevel gets a reference to the given int32 and assigns it to the ChainLevel field. +func (o *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) SetChainLevel(v int32) { + o.ChainLevel = &v +} + +// GetCertStoreId returns the CertStoreId field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) GetCertStoreId() string { + if o == nil || isNil(o.CertStoreId) { + var ret string + return ret + } + return *o.CertStoreId +} + +// GetCertStoreIdOk returns a tuple with the CertStoreId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) GetCertStoreIdOk() (*string, bool) { + if o == nil || isNil(o.CertStoreId) { + return nil, false + } + return o.CertStoreId, true +} + +// HasCertStoreId returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) HasCertStoreId() bool { + if o != nil && !isNil(o.CertStoreId) { + return true + } + + return false +} + +// SetCertStoreId gets a reference to the given string and assigns it to the CertStoreId field. +func (o *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) SetCertStoreId(v string) { + o.CertStoreId = &v +} + +func (o ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.StoreMachine) { + toSerialize["StoreMachine"] = o.StoreMachine + } + if !isNil(o.StorePath) { + toSerialize["StorePath"] = o.StorePath + } + if !isNil(o.StoreType) { + toSerialize["StoreType"] = o.StoreType + } + if !isNil(o.Alias) { + toSerialize["Alias"] = o.Alias + } + if !isNil(o.ChainLevel) { + toSerialize["ChainLevel"] = o.ChainLevel + } + if !isNil(o.CertStoreId) { + toSerialize["CertStoreId"] = o.CertStoreId + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) UnmarshalJSON(bytes []byte) (err error) { + varModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel := _ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel{} + + if err = json.Unmarshal(bytes, &varModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel); err == nil { + *o = ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel(varModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "StoreMachine") + delete(additionalProperties, "StorePath") + delete(additionalProperties, "StoreType") + delete(additionalProperties, "Alias") + delete(additionalProperties, "ChainLevel") + delete(additionalProperties, "CertStoreId") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel struct { + value *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel + isSet bool +} + +func (v NullableModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) Get() *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel { + return v.value +} + +func (v *NullableModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) Set(val *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) { + v.value = val + v.isSet = true +} + +func (v NullableModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel(val *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) *NullableModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel { + return &NullableModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel{value: val, isSet: true} +} + +func (v NullableModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_certificate_retrieval_response_certificate_store_location_detail_model.go b/v1/api/keyfactor/model_models_certificate_retrieval_response_certificate_store_location_detail_model.go new file mode 100644 index 0000000..c7aca89 --- /dev/null +++ b/v1/api/keyfactor/model_models_certificate_retrieval_response_certificate_store_location_detail_model.go @@ -0,0 +1,306 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel{} + +// ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel struct for ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel +type ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel struct { + StorePath *string `json:"StorePath,omitempty"` + AgentPool *string `json:"AgentPool,omitempty"` + IPAddress *string `json:"IPAddress,omitempty"` + Port *int32 `json:"Port,omitempty"` + NetworkName *string `json:"NetworkName,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel + +// NewModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel instantiates a new ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel() *ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel { + this := ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel{} + return &this +} + +// NewModelsCertificateRetrievalResponseCertificateStoreLocationDetailModelWithDefaults instantiates a new ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsCertificateRetrievalResponseCertificateStoreLocationDetailModelWithDefaults() *ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel { + this := ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel{} + return &this +} + +// GetStorePath returns the StorePath field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel) GetStorePath() string { + if o == nil || isNil(o.StorePath) { + var ret string + return ret + } + return *o.StorePath +} + +// GetStorePathOk returns a tuple with the StorePath field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel) GetStorePathOk() (*string, bool) { + if o == nil || isNil(o.StorePath) { + return nil, false + } + return o.StorePath, true +} + +// HasStorePath returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel) HasStorePath() bool { + if o != nil && !isNil(o.StorePath) { + return true + } + + return false +} + +// SetStorePath gets a reference to the given string and assigns it to the StorePath field. +func (o *ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel) SetStorePath(v string) { + o.StorePath = &v +} + +// GetAgentPool returns the AgentPool field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel) GetAgentPool() string { + if o == nil || isNil(o.AgentPool) { + var ret string + return ret + } + return *o.AgentPool +} + +// GetAgentPoolOk returns a tuple with the AgentPool field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel) GetAgentPoolOk() (*string, bool) { + if o == nil || isNil(o.AgentPool) { + return nil, false + } + return o.AgentPool, true +} + +// HasAgentPool returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel) HasAgentPool() bool { + if o != nil && !isNil(o.AgentPool) { + return true + } + + return false +} + +// SetAgentPool gets a reference to the given string and assigns it to the AgentPool field. +func (o *ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel) SetAgentPool(v string) { + o.AgentPool = &v +} + +// GetIPAddress returns the IPAddress field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel) GetIPAddress() string { + if o == nil || isNil(o.IPAddress) { + var ret string + return ret + } + return *o.IPAddress +} + +// GetIPAddressOk returns a tuple with the IPAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel) GetIPAddressOk() (*string, bool) { + if o == nil || isNil(o.IPAddress) { + return nil, false + } + return o.IPAddress, true +} + +// HasIPAddress returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel) HasIPAddress() bool { + if o != nil && !isNil(o.IPAddress) { + return true + } + + return false +} + +// SetIPAddress gets a reference to the given string and assigns it to the IPAddress field. +func (o *ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel) SetIPAddress(v string) { + o.IPAddress = &v +} + +// GetPort returns the Port field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel) GetPort() int32 { + if o == nil || isNil(o.Port) { + var ret int32 + return ret + } + return *o.Port +} + +// GetPortOk returns a tuple with the Port field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel) GetPortOk() (*int32, bool) { + if o == nil || isNil(o.Port) { + return nil, false + } + return o.Port, true +} + +// HasPort returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel) HasPort() bool { + if o != nil && !isNil(o.Port) { + return true + } + + return false +} + +// SetPort gets a reference to the given int32 and assigns it to the Port field. +func (o *ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel) SetPort(v int32) { + o.Port = &v +} + +// GetNetworkName returns the NetworkName field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel) GetNetworkName() string { + if o == nil || isNil(o.NetworkName) { + var ret string + return ret + } + return *o.NetworkName +} + +// GetNetworkNameOk returns a tuple with the NetworkName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel) GetNetworkNameOk() (*string, bool) { + if o == nil || isNil(o.NetworkName) { + return nil, false + } + return o.NetworkName, true +} + +// HasNetworkName returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel) HasNetworkName() bool { + if o != nil && !isNil(o.NetworkName) { + return true + } + + return false +} + +// SetNetworkName gets a reference to the given string and assigns it to the NetworkName field. +func (o *ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel) SetNetworkName(v string) { + o.NetworkName = &v +} + +func (o ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.StorePath) { + toSerialize["StorePath"] = o.StorePath + } + if !isNil(o.AgentPool) { + toSerialize["AgentPool"] = o.AgentPool + } + if !isNil(o.IPAddress) { + toSerialize["IPAddress"] = o.IPAddress + } + if !isNil(o.Port) { + toSerialize["Port"] = o.Port + } + if !isNil(o.NetworkName) { + toSerialize["NetworkName"] = o.NetworkName + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel) UnmarshalJSON(bytes []byte) (err error) { + varModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel := _ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel{} + + if err = json.Unmarshal(bytes, &varModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel); err == nil { + *o = ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel(varModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "StorePath") + delete(additionalProperties, "AgentPool") + delete(additionalProperties, "IPAddress") + delete(additionalProperties, "Port") + delete(additionalProperties, "NetworkName") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel struct { + value *ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel + isSet bool +} + +func (v NullableModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel) Get() *ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel { + return v.value +} + +func (v *NullableModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel) Set(val *ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel) { + v.value = val + v.isSet = true +} + +func (v NullableModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel(val *ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel) *NullableModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel { + return &NullableModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel{value: val, isSet: true} +} + +func (v NullableModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_certificate_retrieval_response_crl_distribution_point_model.go b/v1/api/keyfactor/model_models_certificate_retrieval_response_crl_distribution_point_model.go new file mode 100644 index 0000000..8f8abd3 --- /dev/null +++ b/v1/api/keyfactor/model_models_certificate_retrieval_response_crl_distribution_point_model.go @@ -0,0 +1,232 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsCertificateRetrievalResponseCRLDistributionPointModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsCertificateRetrievalResponseCRLDistributionPointModel{} + +// ModelsCertificateRetrievalResponseCRLDistributionPointModel struct for ModelsCertificateRetrievalResponseCRLDistributionPointModel +type ModelsCertificateRetrievalResponseCRLDistributionPointModel struct { + Id *int32 `json:"Id,omitempty"` + Url *string `json:"Url,omitempty"` + UrlHash *string `json:"UrlHash,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsCertificateRetrievalResponseCRLDistributionPointModel ModelsCertificateRetrievalResponseCRLDistributionPointModel + +// NewModelsCertificateRetrievalResponseCRLDistributionPointModel instantiates a new ModelsCertificateRetrievalResponseCRLDistributionPointModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsCertificateRetrievalResponseCRLDistributionPointModel() *ModelsCertificateRetrievalResponseCRLDistributionPointModel { + this := ModelsCertificateRetrievalResponseCRLDistributionPointModel{} + return &this +} + +// NewModelsCertificateRetrievalResponseCRLDistributionPointModelWithDefaults instantiates a new ModelsCertificateRetrievalResponseCRLDistributionPointModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsCertificateRetrievalResponseCRLDistributionPointModelWithDefaults() *ModelsCertificateRetrievalResponseCRLDistributionPointModel { + this := ModelsCertificateRetrievalResponseCRLDistributionPointModel{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponseCRLDistributionPointModel) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponseCRLDistributionPointModel) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponseCRLDistributionPointModel) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *ModelsCertificateRetrievalResponseCRLDistributionPointModel) SetId(v int32) { + o.Id = &v +} + +// GetUrl returns the Url field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponseCRLDistributionPointModel) GetUrl() string { + if o == nil || isNil(o.Url) { + var ret string + return ret + } + return *o.Url +} + +// GetUrlOk returns a tuple with the Url field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponseCRLDistributionPointModel) GetUrlOk() (*string, bool) { + if o == nil || isNil(o.Url) { + return nil, false + } + return o.Url, true +} + +// HasUrl returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponseCRLDistributionPointModel) HasUrl() bool { + if o != nil && !isNil(o.Url) { + return true + } + + return false +} + +// SetUrl gets a reference to the given string and assigns it to the Url field. +func (o *ModelsCertificateRetrievalResponseCRLDistributionPointModel) SetUrl(v string) { + o.Url = &v +} + +// GetUrlHash returns the UrlHash field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponseCRLDistributionPointModel) GetUrlHash() string { + if o == nil || isNil(o.UrlHash) { + var ret string + return ret + } + return *o.UrlHash +} + +// GetUrlHashOk returns a tuple with the UrlHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponseCRLDistributionPointModel) GetUrlHashOk() (*string, bool) { + if o == nil || isNil(o.UrlHash) { + return nil, false + } + return o.UrlHash, true +} + +// HasUrlHash returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponseCRLDistributionPointModel) HasUrlHash() bool { + if o != nil && !isNil(o.UrlHash) { + return true + } + + return false +} + +// SetUrlHash gets a reference to the given string and assigns it to the UrlHash field. +func (o *ModelsCertificateRetrievalResponseCRLDistributionPointModel) SetUrlHash(v string) { + o.UrlHash = &v +} + +func (o ModelsCertificateRetrievalResponseCRLDistributionPointModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsCertificateRetrievalResponseCRLDistributionPointModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.Url) { + toSerialize["Url"] = o.Url + } + if !isNil(o.UrlHash) { + toSerialize["UrlHash"] = o.UrlHash + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsCertificateRetrievalResponseCRLDistributionPointModel) UnmarshalJSON(bytes []byte) (err error) { + varModelsCertificateRetrievalResponseCRLDistributionPointModel := _ModelsCertificateRetrievalResponseCRLDistributionPointModel{} + + if err = json.Unmarshal(bytes, &varModelsCertificateRetrievalResponseCRLDistributionPointModel); err == nil { + *o = ModelsCertificateRetrievalResponseCRLDistributionPointModel(varModelsCertificateRetrievalResponseCRLDistributionPointModel) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "Url") + delete(additionalProperties, "UrlHash") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsCertificateRetrievalResponseCRLDistributionPointModel struct { + value *ModelsCertificateRetrievalResponseCRLDistributionPointModel + isSet bool +} + +func (v NullableModelsCertificateRetrievalResponseCRLDistributionPointModel) Get() *ModelsCertificateRetrievalResponseCRLDistributionPointModel { + return v.value +} + +func (v *NullableModelsCertificateRetrievalResponseCRLDistributionPointModel) Set(val *ModelsCertificateRetrievalResponseCRLDistributionPointModel) { + v.value = val + v.isSet = true +} + +func (v NullableModelsCertificateRetrievalResponseCRLDistributionPointModel) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsCertificateRetrievalResponseCRLDistributionPointModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsCertificateRetrievalResponseCRLDistributionPointModel(val *ModelsCertificateRetrievalResponseCRLDistributionPointModel) *NullableModelsCertificateRetrievalResponseCRLDistributionPointModel { + return &NullableModelsCertificateRetrievalResponseCRLDistributionPointModel{value: val, isSet: true} +} + +func (v NullableModelsCertificateRetrievalResponseCRLDistributionPointModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsCertificateRetrievalResponseCRLDistributionPointModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_certificate_retrieval_response_detailed_key_usage_model.go b/v1/api/keyfactor/model_models_certificate_retrieval_response_detailed_key_usage_model.go new file mode 100644 index 0000000..114d8fc --- /dev/null +++ b/v1/api/keyfactor/model_models_certificate_retrieval_response_detailed_key_usage_model.go @@ -0,0 +1,491 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsCertificateRetrievalResponseDetailedKeyUsageModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsCertificateRetrievalResponseDetailedKeyUsageModel{} + +// ModelsCertificateRetrievalResponseDetailedKeyUsageModel struct for ModelsCertificateRetrievalResponseDetailedKeyUsageModel +type ModelsCertificateRetrievalResponseDetailedKeyUsageModel struct { + CrlSign *bool `json:"CrlSign,omitempty"` + DataEncipherment *bool `json:"DataEncipherment,omitempty"` + DecipherOnly *bool `json:"DecipherOnly,omitempty"` + DigitalSignature *bool `json:"DigitalSignature,omitempty"` + EncipherOnly *bool `json:"EncipherOnly,omitempty"` + KeyAgreement *bool `json:"KeyAgreement,omitempty"` + KeyCertSign *bool `json:"KeyCertSign,omitempty"` + KeyEncipherment *bool `json:"KeyEncipherment,omitempty"` + NonRepudiation *bool `json:"NonRepudiation,omitempty"` + HexCode *string `json:"HexCode,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsCertificateRetrievalResponseDetailedKeyUsageModel ModelsCertificateRetrievalResponseDetailedKeyUsageModel + +// NewModelsCertificateRetrievalResponseDetailedKeyUsageModel instantiates a new ModelsCertificateRetrievalResponseDetailedKeyUsageModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsCertificateRetrievalResponseDetailedKeyUsageModel() *ModelsCertificateRetrievalResponseDetailedKeyUsageModel { + this := ModelsCertificateRetrievalResponseDetailedKeyUsageModel{} + return &this +} + +// NewModelsCertificateRetrievalResponseDetailedKeyUsageModelWithDefaults instantiates a new ModelsCertificateRetrievalResponseDetailedKeyUsageModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsCertificateRetrievalResponseDetailedKeyUsageModelWithDefaults() *ModelsCertificateRetrievalResponseDetailedKeyUsageModel { + this := ModelsCertificateRetrievalResponseDetailedKeyUsageModel{} + return &this +} + +// GetCrlSign returns the CrlSign field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) GetCrlSign() bool { + if o == nil || isNil(o.CrlSign) { + var ret bool + return ret + } + return *o.CrlSign +} + +// GetCrlSignOk returns a tuple with the CrlSign field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) GetCrlSignOk() (*bool, bool) { + if o == nil || isNil(o.CrlSign) { + return nil, false + } + return o.CrlSign, true +} + +// HasCrlSign returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) HasCrlSign() bool { + if o != nil && !isNil(o.CrlSign) { + return true + } + + return false +} + +// SetCrlSign gets a reference to the given bool and assigns it to the CrlSign field. +func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) SetCrlSign(v bool) { + o.CrlSign = &v +} + +// GetDataEncipherment returns the DataEncipherment field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) GetDataEncipherment() bool { + if o == nil || isNil(o.DataEncipherment) { + var ret bool + return ret + } + return *o.DataEncipherment +} + +// GetDataEnciphermentOk returns a tuple with the DataEncipherment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) GetDataEnciphermentOk() (*bool, bool) { + if o == nil || isNil(o.DataEncipherment) { + return nil, false + } + return o.DataEncipherment, true +} + +// HasDataEncipherment returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) HasDataEncipherment() bool { + if o != nil && !isNil(o.DataEncipherment) { + return true + } + + return false +} + +// SetDataEncipherment gets a reference to the given bool and assigns it to the DataEncipherment field. +func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) SetDataEncipherment(v bool) { + o.DataEncipherment = &v +} + +// GetDecipherOnly returns the DecipherOnly field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) GetDecipherOnly() bool { + if o == nil || isNil(o.DecipherOnly) { + var ret bool + return ret + } + return *o.DecipherOnly +} + +// GetDecipherOnlyOk returns a tuple with the DecipherOnly field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) GetDecipherOnlyOk() (*bool, bool) { + if o == nil || isNil(o.DecipherOnly) { + return nil, false + } + return o.DecipherOnly, true +} + +// HasDecipherOnly returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) HasDecipherOnly() bool { + if o != nil && !isNil(o.DecipherOnly) { + return true + } + + return false +} + +// SetDecipherOnly gets a reference to the given bool and assigns it to the DecipherOnly field. +func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) SetDecipherOnly(v bool) { + o.DecipherOnly = &v +} + +// GetDigitalSignature returns the DigitalSignature field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) GetDigitalSignature() bool { + if o == nil || isNil(o.DigitalSignature) { + var ret bool + return ret + } + return *o.DigitalSignature +} + +// GetDigitalSignatureOk returns a tuple with the DigitalSignature field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) GetDigitalSignatureOk() (*bool, bool) { + if o == nil || isNil(o.DigitalSignature) { + return nil, false + } + return o.DigitalSignature, true +} + +// HasDigitalSignature returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) HasDigitalSignature() bool { + if o != nil && !isNil(o.DigitalSignature) { + return true + } + + return false +} + +// SetDigitalSignature gets a reference to the given bool and assigns it to the DigitalSignature field. +func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) SetDigitalSignature(v bool) { + o.DigitalSignature = &v +} + +// GetEncipherOnly returns the EncipherOnly field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) GetEncipherOnly() bool { + if o == nil || isNil(o.EncipherOnly) { + var ret bool + return ret + } + return *o.EncipherOnly +} + +// GetEncipherOnlyOk returns a tuple with the EncipherOnly field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) GetEncipherOnlyOk() (*bool, bool) { + if o == nil || isNil(o.EncipherOnly) { + return nil, false + } + return o.EncipherOnly, true +} + +// HasEncipherOnly returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) HasEncipherOnly() bool { + if o != nil && !isNil(o.EncipherOnly) { + return true + } + + return false +} + +// SetEncipherOnly gets a reference to the given bool and assigns it to the EncipherOnly field. +func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) SetEncipherOnly(v bool) { + o.EncipherOnly = &v +} + +// GetKeyAgreement returns the KeyAgreement field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) GetKeyAgreement() bool { + if o == nil || isNil(o.KeyAgreement) { + var ret bool + return ret + } + return *o.KeyAgreement +} + +// GetKeyAgreementOk returns a tuple with the KeyAgreement field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) GetKeyAgreementOk() (*bool, bool) { + if o == nil || isNil(o.KeyAgreement) { + return nil, false + } + return o.KeyAgreement, true +} + +// HasKeyAgreement returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) HasKeyAgreement() bool { + if o != nil && !isNil(o.KeyAgreement) { + return true + } + + return false +} + +// SetKeyAgreement gets a reference to the given bool and assigns it to the KeyAgreement field. +func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) SetKeyAgreement(v bool) { + o.KeyAgreement = &v +} + +// GetKeyCertSign returns the KeyCertSign field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) GetKeyCertSign() bool { + if o == nil || isNil(o.KeyCertSign) { + var ret bool + return ret + } + return *o.KeyCertSign +} + +// GetKeyCertSignOk returns a tuple with the KeyCertSign field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) GetKeyCertSignOk() (*bool, bool) { + if o == nil || isNil(o.KeyCertSign) { + return nil, false + } + return o.KeyCertSign, true +} + +// HasKeyCertSign returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) HasKeyCertSign() bool { + if o != nil && !isNil(o.KeyCertSign) { + return true + } + + return false +} + +// SetKeyCertSign gets a reference to the given bool and assigns it to the KeyCertSign field. +func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) SetKeyCertSign(v bool) { + o.KeyCertSign = &v +} + +// GetKeyEncipherment returns the KeyEncipherment field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) GetKeyEncipherment() bool { + if o == nil || isNil(o.KeyEncipherment) { + var ret bool + return ret + } + return *o.KeyEncipherment +} + +// GetKeyEnciphermentOk returns a tuple with the KeyEncipherment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) GetKeyEnciphermentOk() (*bool, bool) { + if o == nil || isNil(o.KeyEncipherment) { + return nil, false + } + return o.KeyEncipherment, true +} + +// HasKeyEncipherment returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) HasKeyEncipherment() bool { + if o != nil && !isNil(o.KeyEncipherment) { + return true + } + + return false +} + +// SetKeyEncipherment gets a reference to the given bool and assigns it to the KeyEncipherment field. +func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) SetKeyEncipherment(v bool) { + o.KeyEncipherment = &v +} + +// GetNonRepudiation returns the NonRepudiation field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) GetNonRepudiation() bool { + if o == nil || isNil(o.NonRepudiation) { + var ret bool + return ret + } + return *o.NonRepudiation +} + +// GetNonRepudiationOk returns a tuple with the NonRepudiation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) GetNonRepudiationOk() (*bool, bool) { + if o == nil || isNil(o.NonRepudiation) { + return nil, false + } + return o.NonRepudiation, true +} + +// HasNonRepudiation returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) HasNonRepudiation() bool { + if o != nil && !isNil(o.NonRepudiation) { + return true + } + + return false +} + +// SetNonRepudiation gets a reference to the given bool and assigns it to the NonRepudiation field. +func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) SetNonRepudiation(v bool) { + o.NonRepudiation = &v +} + +// GetHexCode returns the HexCode field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) GetHexCode() string { + if o == nil || isNil(o.HexCode) { + var ret string + return ret + } + return *o.HexCode +} + +// GetHexCodeOk returns a tuple with the HexCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) GetHexCodeOk() (*string, bool) { + if o == nil || isNil(o.HexCode) { + return nil, false + } + return o.HexCode, true +} + +// HasHexCode returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) HasHexCode() bool { + if o != nil && !isNil(o.HexCode) { + return true + } + + return false +} + +// SetHexCode gets a reference to the given string and assigns it to the HexCode field. +func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) SetHexCode(v string) { + o.HexCode = &v +} + +func (o ModelsCertificateRetrievalResponseDetailedKeyUsageModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsCertificateRetrievalResponseDetailedKeyUsageModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.CrlSign) { + toSerialize["CrlSign"] = o.CrlSign + } + if !isNil(o.DataEncipherment) { + toSerialize["DataEncipherment"] = o.DataEncipherment + } + if !isNil(o.DecipherOnly) { + toSerialize["DecipherOnly"] = o.DecipherOnly + } + if !isNil(o.DigitalSignature) { + toSerialize["DigitalSignature"] = o.DigitalSignature + } + if !isNil(o.EncipherOnly) { + toSerialize["EncipherOnly"] = o.EncipherOnly + } + if !isNil(o.KeyAgreement) { + toSerialize["KeyAgreement"] = o.KeyAgreement + } + if !isNil(o.KeyCertSign) { + toSerialize["KeyCertSign"] = o.KeyCertSign + } + if !isNil(o.KeyEncipherment) { + toSerialize["KeyEncipherment"] = o.KeyEncipherment + } + if !isNil(o.NonRepudiation) { + toSerialize["NonRepudiation"] = o.NonRepudiation + } + if !isNil(o.HexCode) { + toSerialize["HexCode"] = o.HexCode + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) UnmarshalJSON(bytes []byte) (err error) { + varModelsCertificateRetrievalResponseDetailedKeyUsageModel := _ModelsCertificateRetrievalResponseDetailedKeyUsageModel{} + + if err = json.Unmarshal(bytes, &varModelsCertificateRetrievalResponseDetailedKeyUsageModel); err == nil { + *o = ModelsCertificateRetrievalResponseDetailedKeyUsageModel(varModelsCertificateRetrievalResponseDetailedKeyUsageModel) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "CrlSign") + delete(additionalProperties, "DataEncipherment") + delete(additionalProperties, "DecipherOnly") + delete(additionalProperties, "DigitalSignature") + delete(additionalProperties, "EncipherOnly") + delete(additionalProperties, "KeyAgreement") + delete(additionalProperties, "KeyCertSign") + delete(additionalProperties, "KeyEncipherment") + delete(additionalProperties, "NonRepudiation") + delete(additionalProperties, "HexCode") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsCertificateRetrievalResponseDetailedKeyUsageModel struct { + value *ModelsCertificateRetrievalResponseDetailedKeyUsageModel + isSet bool +} + +func (v NullableModelsCertificateRetrievalResponseDetailedKeyUsageModel) Get() *ModelsCertificateRetrievalResponseDetailedKeyUsageModel { + return v.value +} + +func (v *NullableModelsCertificateRetrievalResponseDetailedKeyUsageModel) Set(val *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) { + v.value = val + v.isSet = true +} + +func (v NullableModelsCertificateRetrievalResponseDetailedKeyUsageModel) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsCertificateRetrievalResponseDetailedKeyUsageModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsCertificateRetrievalResponseDetailedKeyUsageModel(val *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) *NullableModelsCertificateRetrievalResponseDetailedKeyUsageModel { + return &NullableModelsCertificateRetrievalResponseDetailedKeyUsageModel{value: val, isSet: true} +} + +func (v NullableModelsCertificateRetrievalResponseDetailedKeyUsageModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsCertificateRetrievalResponseDetailedKeyUsageModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_certificate_retrieval_response_extended_key_usage_model.go b/v1/api/keyfactor/model_models_certificate_retrieval_response_extended_key_usage_model.go new file mode 100644 index 0000000..63c69ec --- /dev/null +++ b/v1/api/keyfactor/model_models_certificate_retrieval_response_extended_key_usage_model.go @@ -0,0 +1,232 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsCertificateRetrievalResponseExtendedKeyUsageModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsCertificateRetrievalResponseExtendedKeyUsageModel{} + +// ModelsCertificateRetrievalResponseExtendedKeyUsageModel struct for ModelsCertificateRetrievalResponseExtendedKeyUsageModel +type ModelsCertificateRetrievalResponseExtendedKeyUsageModel struct { + Id *int32 `json:"Id,omitempty"` + Oid *string `json:"Oid,omitempty"` + DisplayName *string `json:"DisplayName,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsCertificateRetrievalResponseExtendedKeyUsageModel ModelsCertificateRetrievalResponseExtendedKeyUsageModel + +// NewModelsCertificateRetrievalResponseExtendedKeyUsageModel instantiates a new ModelsCertificateRetrievalResponseExtendedKeyUsageModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsCertificateRetrievalResponseExtendedKeyUsageModel() *ModelsCertificateRetrievalResponseExtendedKeyUsageModel { + this := ModelsCertificateRetrievalResponseExtendedKeyUsageModel{} + return &this +} + +// NewModelsCertificateRetrievalResponseExtendedKeyUsageModelWithDefaults instantiates a new ModelsCertificateRetrievalResponseExtendedKeyUsageModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsCertificateRetrievalResponseExtendedKeyUsageModelWithDefaults() *ModelsCertificateRetrievalResponseExtendedKeyUsageModel { + this := ModelsCertificateRetrievalResponseExtendedKeyUsageModel{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponseExtendedKeyUsageModel) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponseExtendedKeyUsageModel) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponseExtendedKeyUsageModel) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *ModelsCertificateRetrievalResponseExtendedKeyUsageModel) SetId(v int32) { + o.Id = &v +} + +// GetOid returns the Oid field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponseExtendedKeyUsageModel) GetOid() string { + if o == nil || isNil(o.Oid) { + var ret string + return ret + } + return *o.Oid +} + +// GetOidOk returns a tuple with the Oid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponseExtendedKeyUsageModel) GetOidOk() (*string, bool) { + if o == nil || isNil(o.Oid) { + return nil, false + } + return o.Oid, true +} + +// HasOid returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponseExtendedKeyUsageModel) HasOid() bool { + if o != nil && !isNil(o.Oid) { + return true + } + + return false +} + +// SetOid gets a reference to the given string and assigns it to the Oid field. +func (o *ModelsCertificateRetrievalResponseExtendedKeyUsageModel) SetOid(v string) { + o.Oid = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponseExtendedKeyUsageModel) GetDisplayName() string { + if o == nil || isNil(o.DisplayName) { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponseExtendedKeyUsageModel) GetDisplayNameOk() (*string, bool) { + if o == nil || isNil(o.DisplayName) { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponseExtendedKeyUsageModel) HasDisplayName() bool { + if o != nil && !isNil(o.DisplayName) { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *ModelsCertificateRetrievalResponseExtendedKeyUsageModel) SetDisplayName(v string) { + o.DisplayName = &v +} + +func (o ModelsCertificateRetrievalResponseExtendedKeyUsageModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsCertificateRetrievalResponseExtendedKeyUsageModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.Oid) { + toSerialize["Oid"] = o.Oid + } + if !isNil(o.DisplayName) { + toSerialize["DisplayName"] = o.DisplayName + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsCertificateRetrievalResponseExtendedKeyUsageModel) UnmarshalJSON(bytes []byte) (err error) { + varModelsCertificateRetrievalResponseExtendedKeyUsageModel := _ModelsCertificateRetrievalResponseExtendedKeyUsageModel{} + + if err = json.Unmarshal(bytes, &varModelsCertificateRetrievalResponseExtendedKeyUsageModel); err == nil { + *o = ModelsCertificateRetrievalResponseExtendedKeyUsageModel(varModelsCertificateRetrievalResponseExtendedKeyUsageModel) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "Oid") + delete(additionalProperties, "DisplayName") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsCertificateRetrievalResponseExtendedKeyUsageModel struct { + value *ModelsCertificateRetrievalResponseExtendedKeyUsageModel + isSet bool +} + +func (v NullableModelsCertificateRetrievalResponseExtendedKeyUsageModel) Get() *ModelsCertificateRetrievalResponseExtendedKeyUsageModel { + return v.value +} + +func (v *NullableModelsCertificateRetrievalResponseExtendedKeyUsageModel) Set(val *ModelsCertificateRetrievalResponseExtendedKeyUsageModel) { + v.value = val + v.isSet = true +} + +func (v NullableModelsCertificateRetrievalResponseExtendedKeyUsageModel) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsCertificateRetrievalResponseExtendedKeyUsageModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsCertificateRetrievalResponseExtendedKeyUsageModel(val *ModelsCertificateRetrievalResponseExtendedKeyUsageModel) *NullableModelsCertificateRetrievalResponseExtendedKeyUsageModel { + return &NullableModelsCertificateRetrievalResponseExtendedKeyUsageModel{value: val, isSet: true} +} + +func (v NullableModelsCertificateRetrievalResponseExtendedKeyUsageModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsCertificateRetrievalResponseExtendedKeyUsageModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_certificate_retrieval_response_location_count_model.go b/v1/api/keyfactor/model_models_certificate_retrieval_response_location_count_model.go new file mode 100644 index 0000000..8a286cb --- /dev/null +++ b/v1/api/keyfactor/model_models_certificate_retrieval_response_location_count_model.go @@ -0,0 +1,195 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsCertificateRetrievalResponseLocationCountModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsCertificateRetrievalResponseLocationCountModel{} + +// ModelsCertificateRetrievalResponseLocationCountModel struct for ModelsCertificateRetrievalResponseLocationCountModel +type ModelsCertificateRetrievalResponseLocationCountModel struct { + Type *string `json:"Type,omitempty"` + Count *int32 `json:"Count,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsCertificateRetrievalResponseLocationCountModel ModelsCertificateRetrievalResponseLocationCountModel + +// NewModelsCertificateRetrievalResponseLocationCountModel instantiates a new ModelsCertificateRetrievalResponseLocationCountModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsCertificateRetrievalResponseLocationCountModel() *ModelsCertificateRetrievalResponseLocationCountModel { + this := ModelsCertificateRetrievalResponseLocationCountModel{} + return &this +} + +// NewModelsCertificateRetrievalResponseLocationCountModelWithDefaults instantiates a new ModelsCertificateRetrievalResponseLocationCountModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsCertificateRetrievalResponseLocationCountModelWithDefaults() *ModelsCertificateRetrievalResponseLocationCountModel { + this := ModelsCertificateRetrievalResponseLocationCountModel{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponseLocationCountModel) GetType() string { + if o == nil || isNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponseLocationCountModel) GetTypeOk() (*string, bool) { + if o == nil || isNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponseLocationCountModel) HasType() bool { + if o != nil && !isNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *ModelsCertificateRetrievalResponseLocationCountModel) SetType(v string) { + o.Type = &v +} + +// GetCount returns the Count field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponseLocationCountModel) GetCount() int32 { + if o == nil || isNil(o.Count) { + var ret int32 + return ret + } + return *o.Count +} + +// GetCountOk returns a tuple with the Count field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponseLocationCountModel) GetCountOk() (*int32, bool) { + if o == nil || isNil(o.Count) { + return nil, false + } + return o.Count, true +} + +// HasCount returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponseLocationCountModel) HasCount() bool { + if o != nil && !isNil(o.Count) { + return true + } + + return false +} + +// SetCount gets a reference to the given int32 and assigns it to the Count field. +func (o *ModelsCertificateRetrievalResponseLocationCountModel) SetCount(v int32) { + o.Count = &v +} + +func (o ModelsCertificateRetrievalResponseLocationCountModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsCertificateRetrievalResponseLocationCountModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Type) { + toSerialize["Type"] = o.Type + } + if !isNil(o.Count) { + toSerialize["Count"] = o.Count + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsCertificateRetrievalResponseLocationCountModel) UnmarshalJSON(bytes []byte) (err error) { + varModelsCertificateRetrievalResponseLocationCountModel := _ModelsCertificateRetrievalResponseLocationCountModel{} + + if err = json.Unmarshal(bytes, &varModelsCertificateRetrievalResponseLocationCountModel); err == nil { + *o = ModelsCertificateRetrievalResponseLocationCountModel(varModelsCertificateRetrievalResponseLocationCountModel) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Type") + delete(additionalProperties, "Count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsCertificateRetrievalResponseLocationCountModel struct { + value *ModelsCertificateRetrievalResponseLocationCountModel + isSet bool +} + +func (v NullableModelsCertificateRetrievalResponseLocationCountModel) Get() *ModelsCertificateRetrievalResponseLocationCountModel { + return v.value +} + +func (v *NullableModelsCertificateRetrievalResponseLocationCountModel) Set(val *ModelsCertificateRetrievalResponseLocationCountModel) { + v.value = val + v.isSet = true +} + +func (v NullableModelsCertificateRetrievalResponseLocationCountModel) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsCertificateRetrievalResponseLocationCountModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsCertificateRetrievalResponseLocationCountModel(val *ModelsCertificateRetrievalResponseLocationCountModel) *NullableModelsCertificateRetrievalResponseLocationCountModel { + return &NullableModelsCertificateRetrievalResponseLocationCountModel{value: val, isSet: true} +} + +func (v NullableModelsCertificateRetrievalResponseLocationCountModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsCertificateRetrievalResponseLocationCountModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_certificate_retrieval_response_subject_alternative_name_model.go b/v1/api/keyfactor/model_models_certificate_retrieval_response_subject_alternative_name_model.go new file mode 100644 index 0000000..0529292 --- /dev/null +++ b/v1/api/keyfactor/model_models_certificate_retrieval_response_subject_alternative_name_model.go @@ -0,0 +1,269 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsCertificateRetrievalResponseSubjectAlternativeNameModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsCertificateRetrievalResponseSubjectAlternativeNameModel{} + +// ModelsCertificateRetrievalResponseSubjectAlternativeNameModel struct for ModelsCertificateRetrievalResponseSubjectAlternativeNameModel +type ModelsCertificateRetrievalResponseSubjectAlternativeNameModel struct { + Id *int32 `json:"Id,omitempty"` + Value *string `json:"Value,omitempty"` + Type *int32 `json:"Type,omitempty"` + ValueHash *string `json:"ValueHash,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsCertificateRetrievalResponseSubjectAlternativeNameModel ModelsCertificateRetrievalResponseSubjectAlternativeNameModel + +// NewModelsCertificateRetrievalResponseSubjectAlternativeNameModel instantiates a new ModelsCertificateRetrievalResponseSubjectAlternativeNameModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsCertificateRetrievalResponseSubjectAlternativeNameModel() *ModelsCertificateRetrievalResponseSubjectAlternativeNameModel { + this := ModelsCertificateRetrievalResponseSubjectAlternativeNameModel{} + return &this +} + +// NewModelsCertificateRetrievalResponseSubjectAlternativeNameModelWithDefaults instantiates a new ModelsCertificateRetrievalResponseSubjectAlternativeNameModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsCertificateRetrievalResponseSubjectAlternativeNameModelWithDefaults() *ModelsCertificateRetrievalResponseSubjectAlternativeNameModel { + this := ModelsCertificateRetrievalResponseSubjectAlternativeNameModel{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponseSubjectAlternativeNameModel) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponseSubjectAlternativeNameModel) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponseSubjectAlternativeNameModel) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *ModelsCertificateRetrievalResponseSubjectAlternativeNameModel) SetId(v int32) { + o.Id = &v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponseSubjectAlternativeNameModel) GetValue() string { + if o == nil || isNil(o.Value) { + var ret string + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponseSubjectAlternativeNameModel) GetValueOk() (*string, bool) { + if o == nil || isNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponseSubjectAlternativeNameModel) HasValue() bool { + if o != nil && !isNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given string and assigns it to the Value field. +func (o *ModelsCertificateRetrievalResponseSubjectAlternativeNameModel) SetValue(v string) { + o.Value = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponseSubjectAlternativeNameModel) GetType() int32 { + if o == nil || isNil(o.Type) { + var ret int32 + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponseSubjectAlternativeNameModel) GetTypeOk() (*int32, bool) { + if o == nil || isNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponseSubjectAlternativeNameModel) HasType() bool { + if o != nil && !isNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given int32 and assigns it to the Type field. +func (o *ModelsCertificateRetrievalResponseSubjectAlternativeNameModel) SetType(v int32) { + o.Type = &v +} + +// GetValueHash returns the ValueHash field value if set, zero value otherwise. +func (o *ModelsCertificateRetrievalResponseSubjectAlternativeNameModel) GetValueHash() string { + if o == nil || isNil(o.ValueHash) { + var ret string + return ret + } + return *o.ValueHash +} + +// GetValueHashOk returns a tuple with the ValueHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateRetrievalResponseSubjectAlternativeNameModel) GetValueHashOk() (*string, bool) { + if o == nil || isNil(o.ValueHash) { + return nil, false + } + return o.ValueHash, true +} + +// HasValueHash returns a boolean if a field has been set. +func (o *ModelsCertificateRetrievalResponseSubjectAlternativeNameModel) HasValueHash() bool { + if o != nil && !isNil(o.ValueHash) { + return true + } + + return false +} + +// SetValueHash gets a reference to the given string and assigns it to the ValueHash field. +func (o *ModelsCertificateRetrievalResponseSubjectAlternativeNameModel) SetValueHash(v string) { + o.ValueHash = &v +} + +func (o ModelsCertificateRetrievalResponseSubjectAlternativeNameModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsCertificateRetrievalResponseSubjectAlternativeNameModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.Value) { + toSerialize["Value"] = o.Value + } + if !isNil(o.Type) { + toSerialize["Type"] = o.Type + } + if !isNil(o.ValueHash) { + toSerialize["ValueHash"] = o.ValueHash + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsCertificateRetrievalResponseSubjectAlternativeNameModel) UnmarshalJSON(bytes []byte) (err error) { + varModelsCertificateRetrievalResponseSubjectAlternativeNameModel := _ModelsCertificateRetrievalResponseSubjectAlternativeNameModel{} + + if err = json.Unmarshal(bytes, &varModelsCertificateRetrievalResponseSubjectAlternativeNameModel); err == nil { + *o = ModelsCertificateRetrievalResponseSubjectAlternativeNameModel(varModelsCertificateRetrievalResponseSubjectAlternativeNameModel) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "Value") + delete(additionalProperties, "Type") + delete(additionalProperties, "ValueHash") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsCertificateRetrievalResponseSubjectAlternativeNameModel struct { + value *ModelsCertificateRetrievalResponseSubjectAlternativeNameModel + isSet bool +} + +func (v NullableModelsCertificateRetrievalResponseSubjectAlternativeNameModel) Get() *ModelsCertificateRetrievalResponseSubjectAlternativeNameModel { + return v.value +} + +func (v *NullableModelsCertificateRetrievalResponseSubjectAlternativeNameModel) Set(val *ModelsCertificateRetrievalResponseSubjectAlternativeNameModel) { + v.value = val + v.isSet = true +} + +func (v NullableModelsCertificateRetrievalResponseSubjectAlternativeNameModel) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsCertificateRetrievalResponseSubjectAlternativeNameModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsCertificateRetrievalResponseSubjectAlternativeNameModel(val *ModelsCertificateRetrievalResponseSubjectAlternativeNameModel) *NullableModelsCertificateRetrievalResponseSubjectAlternativeNameModel { + return &NullableModelsCertificateRetrievalResponseSubjectAlternativeNameModel{value: val, isSet: true} +} + +func (v NullableModelsCertificateRetrievalResponseSubjectAlternativeNameModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsCertificateRetrievalResponseSubjectAlternativeNameModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_certificate_store.go b/v1/api/keyfactor/model_models_certificate_store.go new file mode 100644 index 0000000..5dca2c6 --- /dev/null +++ b/v1/api/keyfactor/model_models_certificate_store.go @@ -0,0 +1,748 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsCertificateStore type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsCertificateStore{} + +// ModelsCertificateStore struct for ModelsCertificateStore +type ModelsCertificateStore struct { + Id *string `json:"Id,omitempty"` + DisplayName *string `json:"DisplayName,omitempty"` + ContainerId *int32 `json:"ContainerId,omitempty"` + ClientMachine *string `json:"ClientMachine,omitempty"` + Storepath *string `json:"Storepath,omitempty"` + CertStoreInventoryJobId *string `json:"CertStoreInventoryJobId,omitempty"` + CertStoreType *int32 `json:"CertStoreType,omitempty"` + Approved *bool `json:"Approved,omitempty"` + CreateIfMissing *bool `json:"CreateIfMissing,omitempty"` + Properties *string `json:"Properties,omitempty"` + AgentId *string `json:"AgentId,omitempty"` + AgentAssigned *bool `json:"AgentAssigned,omitempty"` + ContainerName *string `json:"ContainerName,omitempty"` + InventorySchedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"InventorySchedule,omitempty"` + ReenrollmentStatus *ModelsReenrollmentStatus `json:"ReenrollmentStatus,omitempty"` + SetNewPasswordAllowed *bool `json:"SetNewPasswordAllowed,omitempty"` + Password *string `json:"Password,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsCertificateStore ModelsCertificateStore + +// NewModelsCertificateStore instantiates a new ModelsCertificateStore object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsCertificateStore() *ModelsCertificateStore { + this := ModelsCertificateStore{} + return &this +} + +// NewModelsCertificateStoreWithDefaults instantiates a new ModelsCertificateStore object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsCertificateStoreWithDefaults() *ModelsCertificateStore { + this := ModelsCertificateStore{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ModelsCertificateStore) GetId() string { + if o == nil || isNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStore) GetIdOk() (*string, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ModelsCertificateStore) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *ModelsCertificateStore) SetId(v string) { + o.Id = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *ModelsCertificateStore) GetDisplayName() string { + if o == nil || isNil(o.DisplayName) { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStore) GetDisplayNameOk() (*string, bool) { + if o == nil || isNil(o.DisplayName) { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *ModelsCertificateStore) HasDisplayName() bool { + if o != nil && !isNil(o.DisplayName) { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *ModelsCertificateStore) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetContainerId returns the ContainerId field value if set, zero value otherwise. +func (o *ModelsCertificateStore) GetContainerId() int32 { + if o == nil || isNil(o.ContainerId) { + var ret int32 + return ret + } + return *o.ContainerId +} + +// GetContainerIdOk returns a tuple with the ContainerId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStore) GetContainerIdOk() (*int32, bool) { + if o == nil || isNil(o.ContainerId) { + return nil, false + } + return o.ContainerId, true +} + +// HasContainerId returns a boolean if a field has been set. +func (o *ModelsCertificateStore) HasContainerId() bool { + if o != nil && !isNil(o.ContainerId) { + return true + } + + return false +} + +// SetContainerId gets a reference to the given int32 and assigns it to the ContainerId field. +func (o *ModelsCertificateStore) SetContainerId(v int32) { + o.ContainerId = &v +} + +// GetClientMachine returns the ClientMachine field value if set, zero value otherwise. +func (o *ModelsCertificateStore) GetClientMachine() string { + if o == nil || isNil(o.ClientMachine) { + var ret string + return ret + } + return *o.ClientMachine +} + +// GetClientMachineOk returns a tuple with the ClientMachine field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStore) GetClientMachineOk() (*string, bool) { + if o == nil || isNil(o.ClientMachine) { + return nil, false + } + return o.ClientMachine, true +} + +// HasClientMachine returns a boolean if a field has been set. +func (o *ModelsCertificateStore) HasClientMachine() bool { + if o != nil && !isNil(o.ClientMachine) { + return true + } + + return false +} + +// SetClientMachine gets a reference to the given string and assigns it to the ClientMachine field. +func (o *ModelsCertificateStore) SetClientMachine(v string) { + o.ClientMachine = &v +} + +// GetStorepath returns the Storepath field value if set, zero value otherwise. +func (o *ModelsCertificateStore) GetStorepath() string { + if o == nil || isNil(o.Storepath) { + var ret string + return ret + } + return *o.Storepath +} + +// GetStorepathOk returns a tuple with the Storepath field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStore) GetStorepathOk() (*string, bool) { + if o == nil || isNil(o.Storepath) { + return nil, false + } + return o.Storepath, true +} + +// HasStorepath returns a boolean if a field has been set. +func (o *ModelsCertificateStore) HasStorepath() bool { + if o != nil && !isNil(o.Storepath) { + return true + } + + return false +} + +// SetStorepath gets a reference to the given string and assigns it to the Storepath field. +func (o *ModelsCertificateStore) SetStorepath(v string) { + o.Storepath = &v +} + +// GetCertStoreInventoryJobId returns the CertStoreInventoryJobId field value if set, zero value otherwise. +func (o *ModelsCertificateStore) GetCertStoreInventoryJobId() string { + if o == nil || isNil(o.CertStoreInventoryJobId) { + var ret string + return ret + } + return *o.CertStoreInventoryJobId +} + +// GetCertStoreInventoryJobIdOk returns a tuple with the CertStoreInventoryJobId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStore) GetCertStoreInventoryJobIdOk() (*string, bool) { + if o == nil || isNil(o.CertStoreInventoryJobId) { + return nil, false + } + return o.CertStoreInventoryJobId, true +} + +// HasCertStoreInventoryJobId returns a boolean if a field has been set. +func (o *ModelsCertificateStore) HasCertStoreInventoryJobId() bool { + if o != nil && !isNil(o.CertStoreInventoryJobId) { + return true + } + + return false +} + +// SetCertStoreInventoryJobId gets a reference to the given string and assigns it to the CertStoreInventoryJobId field. +func (o *ModelsCertificateStore) SetCertStoreInventoryJobId(v string) { + o.CertStoreInventoryJobId = &v +} + +// GetCertStoreType returns the CertStoreType field value if set, zero value otherwise. +func (o *ModelsCertificateStore) GetCertStoreType() int32 { + if o == nil || isNil(o.CertStoreType) { + var ret int32 + return ret + } + return *o.CertStoreType +} + +// GetCertStoreTypeOk returns a tuple with the CertStoreType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStore) GetCertStoreTypeOk() (*int32, bool) { + if o == nil || isNil(o.CertStoreType) { + return nil, false + } + return o.CertStoreType, true +} + +// HasCertStoreType returns a boolean if a field has been set. +func (o *ModelsCertificateStore) HasCertStoreType() bool { + if o != nil && !isNil(o.CertStoreType) { + return true + } + + return false +} + +// SetCertStoreType gets a reference to the given int32 and assigns it to the CertStoreType field. +func (o *ModelsCertificateStore) SetCertStoreType(v int32) { + o.CertStoreType = &v +} + +// GetApproved returns the Approved field value if set, zero value otherwise. +func (o *ModelsCertificateStore) GetApproved() bool { + if o == nil || isNil(o.Approved) { + var ret bool + return ret + } + return *o.Approved +} + +// GetApprovedOk returns a tuple with the Approved field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStore) GetApprovedOk() (*bool, bool) { + if o == nil || isNil(o.Approved) { + return nil, false + } + return o.Approved, true +} + +// HasApproved returns a boolean if a field has been set. +func (o *ModelsCertificateStore) HasApproved() bool { + if o != nil && !isNil(o.Approved) { + return true + } + + return false +} + +// SetApproved gets a reference to the given bool and assigns it to the Approved field. +func (o *ModelsCertificateStore) SetApproved(v bool) { + o.Approved = &v +} + +// GetCreateIfMissing returns the CreateIfMissing field value if set, zero value otherwise. +func (o *ModelsCertificateStore) GetCreateIfMissing() bool { + if o == nil || isNil(o.CreateIfMissing) { + var ret bool + return ret + } + return *o.CreateIfMissing +} + +// GetCreateIfMissingOk returns a tuple with the CreateIfMissing field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStore) GetCreateIfMissingOk() (*bool, bool) { + if o == nil || isNil(o.CreateIfMissing) { + return nil, false + } + return o.CreateIfMissing, true +} + +// HasCreateIfMissing returns a boolean if a field has been set. +func (o *ModelsCertificateStore) HasCreateIfMissing() bool { + if o != nil && !isNil(o.CreateIfMissing) { + return true + } + + return false +} + +// SetCreateIfMissing gets a reference to the given bool and assigns it to the CreateIfMissing field. +func (o *ModelsCertificateStore) SetCreateIfMissing(v bool) { + o.CreateIfMissing = &v +} + +// GetProperties returns the Properties field value if set, zero value otherwise. +func (o *ModelsCertificateStore) GetProperties() string { + if o == nil || isNil(o.Properties) { + var ret string + return ret + } + return *o.Properties +} + +// GetPropertiesOk returns a tuple with the Properties field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStore) GetPropertiesOk() (*string, bool) { + if o == nil || isNil(o.Properties) { + return nil, false + } + return o.Properties, true +} + +// HasProperties returns a boolean if a field has been set. +func (o *ModelsCertificateStore) HasProperties() bool { + if o != nil && !isNil(o.Properties) { + return true + } + + return false +} + +// SetProperties gets a reference to the given string and assigns it to the Properties field. +func (o *ModelsCertificateStore) SetProperties(v string) { + o.Properties = &v +} + +// GetAgentId returns the AgentId field value if set, zero value otherwise. +func (o *ModelsCertificateStore) GetAgentId() string { + if o == nil || isNil(o.AgentId) { + var ret string + return ret + } + return *o.AgentId +} + +// GetAgentIdOk returns a tuple with the AgentId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStore) GetAgentIdOk() (*string, bool) { + if o == nil || isNil(o.AgentId) { + return nil, false + } + return o.AgentId, true +} + +// HasAgentId returns a boolean if a field has been set. +func (o *ModelsCertificateStore) HasAgentId() bool { + if o != nil && !isNil(o.AgentId) { + return true + } + + return false +} + +// SetAgentId gets a reference to the given string and assigns it to the AgentId field. +func (o *ModelsCertificateStore) SetAgentId(v string) { + o.AgentId = &v +} + +// GetAgentAssigned returns the AgentAssigned field value if set, zero value otherwise. +func (o *ModelsCertificateStore) GetAgentAssigned() bool { + if o == nil || isNil(o.AgentAssigned) { + var ret bool + return ret + } + return *o.AgentAssigned +} + +// GetAgentAssignedOk returns a tuple with the AgentAssigned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStore) GetAgentAssignedOk() (*bool, bool) { + if o == nil || isNil(o.AgentAssigned) { + return nil, false + } + return o.AgentAssigned, true +} + +// HasAgentAssigned returns a boolean if a field has been set. +func (o *ModelsCertificateStore) HasAgentAssigned() bool { + if o != nil && !isNil(o.AgentAssigned) { + return true + } + + return false +} + +// SetAgentAssigned gets a reference to the given bool and assigns it to the AgentAssigned field. +func (o *ModelsCertificateStore) SetAgentAssigned(v bool) { + o.AgentAssigned = &v +} + +// GetContainerName returns the ContainerName field value if set, zero value otherwise. +func (o *ModelsCertificateStore) GetContainerName() string { + if o == nil || isNil(o.ContainerName) { + var ret string + return ret + } + return *o.ContainerName +} + +// GetContainerNameOk returns a tuple with the ContainerName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStore) GetContainerNameOk() (*string, bool) { + if o == nil || isNil(o.ContainerName) { + return nil, false + } + return o.ContainerName, true +} + +// HasContainerName returns a boolean if a field has been set. +func (o *ModelsCertificateStore) HasContainerName() bool { + if o != nil && !isNil(o.ContainerName) { + return true + } + + return false +} + +// SetContainerName gets a reference to the given string and assigns it to the ContainerName field. +func (o *ModelsCertificateStore) SetContainerName(v string) { + o.ContainerName = &v +} + +// GetInventorySchedule returns the InventorySchedule field value if set, zero value otherwise. +func (o *ModelsCertificateStore) GetInventorySchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.InventorySchedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.InventorySchedule +} + +// GetInventoryScheduleOk returns a tuple with the InventorySchedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStore) GetInventoryScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.InventorySchedule) { + return nil, false + } + return o.InventorySchedule, true +} + +// HasInventorySchedule returns a boolean if a field has been set. +func (o *ModelsCertificateStore) HasInventorySchedule() bool { + if o != nil && !isNil(o.InventorySchedule) { + return true + } + + return false +} + +// SetInventorySchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the InventorySchedule field. +func (o *ModelsCertificateStore) SetInventorySchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.InventorySchedule = &v +} + +// GetReenrollmentStatus returns the ReenrollmentStatus field value if set, zero value otherwise. +func (o *ModelsCertificateStore) GetReenrollmentStatus() ModelsReenrollmentStatus { + if o == nil || isNil(o.ReenrollmentStatus) { + var ret ModelsReenrollmentStatus + return ret + } + return *o.ReenrollmentStatus +} + +// GetReenrollmentStatusOk returns a tuple with the ReenrollmentStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStore) GetReenrollmentStatusOk() (*ModelsReenrollmentStatus, bool) { + if o == nil || isNil(o.ReenrollmentStatus) { + return nil, false + } + return o.ReenrollmentStatus, true +} + +// HasReenrollmentStatus returns a boolean if a field has been set. +func (o *ModelsCertificateStore) HasReenrollmentStatus() bool { + if o != nil && !isNil(o.ReenrollmentStatus) { + return true + } + + return false +} + +// SetReenrollmentStatus gets a reference to the given ModelsReenrollmentStatus and assigns it to the ReenrollmentStatus field. +func (o *ModelsCertificateStore) SetReenrollmentStatus(v ModelsReenrollmentStatus) { + o.ReenrollmentStatus = &v +} + +// GetSetNewPasswordAllowed returns the SetNewPasswordAllowed field value if set, zero value otherwise. +func (o *ModelsCertificateStore) GetSetNewPasswordAllowed() bool { + if o == nil || isNil(o.SetNewPasswordAllowed) { + var ret bool + return ret + } + return *o.SetNewPasswordAllowed +} + +// GetSetNewPasswordAllowedOk returns a tuple with the SetNewPasswordAllowed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStore) GetSetNewPasswordAllowedOk() (*bool, bool) { + if o == nil || isNil(o.SetNewPasswordAllowed) { + return nil, false + } + return o.SetNewPasswordAllowed, true +} + +// HasSetNewPasswordAllowed returns a boolean if a field has been set. +func (o *ModelsCertificateStore) HasSetNewPasswordAllowed() bool { + if o != nil && !isNil(o.SetNewPasswordAllowed) { + return true + } + + return false +} + +// SetSetNewPasswordAllowed gets a reference to the given bool and assigns it to the SetNewPasswordAllowed field. +func (o *ModelsCertificateStore) SetSetNewPasswordAllowed(v bool) { + o.SetNewPasswordAllowed = &v +} + +// GetPassword returns the Password field value if set, zero value otherwise. +func (o *ModelsCertificateStore) GetPassword() string { + if o == nil || isNil(o.Password) { + var ret string + return ret + } + return *o.Password +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStore) GetPasswordOk() (*string, bool) { + if o == nil || isNil(o.Password) { + return nil, false + } + return o.Password, true +} + +// HasPassword returns a boolean if a field has been set. +func (o *ModelsCertificateStore) HasPassword() bool { + if o != nil && !isNil(o.Password) { + return true + } + + return false +} + +// SetPassword gets a reference to the given string and assigns it to the Password field. +func (o *ModelsCertificateStore) SetPassword(v string) { + o.Password = &v +} + +func (o ModelsCertificateStore) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsCertificateStore) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + // skip: DisplayName is readOnly + if !isNil(o.ContainerId) { + toSerialize["ContainerId"] = o.ContainerId + } + if !isNil(o.ClientMachine) { + toSerialize["ClientMachine"] = o.ClientMachine + } + if !isNil(o.Storepath) { + toSerialize["Storepath"] = o.Storepath + } + if !isNil(o.CertStoreInventoryJobId) { + toSerialize["CertStoreInventoryJobId"] = o.CertStoreInventoryJobId + } + if !isNil(o.CertStoreType) { + toSerialize["CertStoreType"] = o.CertStoreType + } + if !isNil(o.Approved) { + toSerialize["Approved"] = o.Approved + } + if !isNil(o.CreateIfMissing) { + toSerialize["CreateIfMissing"] = o.CreateIfMissing + } + if !isNil(o.Properties) { + toSerialize["Properties"] = o.Properties + } + if !isNil(o.AgentId) { + toSerialize["AgentId"] = o.AgentId + } + if !isNil(o.AgentAssigned) { + toSerialize["AgentAssigned"] = o.AgentAssigned + } + if !isNil(o.ContainerName) { + toSerialize["ContainerName"] = o.ContainerName + } + if !isNil(o.InventorySchedule) { + toSerialize["InventorySchedule"] = o.InventorySchedule + } + if !isNil(o.ReenrollmentStatus) { + toSerialize["ReenrollmentStatus"] = o.ReenrollmentStatus + } + if !isNil(o.SetNewPasswordAllowed) { + toSerialize["SetNewPasswordAllowed"] = o.SetNewPasswordAllowed + } + if !isNil(o.Password) { + toSerialize["Password"] = o.Password + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsCertificateStore) UnmarshalJSON(bytes []byte) (err error) { + varModelsCertificateStore := _ModelsCertificateStore{} + + if err = json.Unmarshal(bytes, &varModelsCertificateStore); err == nil { + *o = ModelsCertificateStore(varModelsCertificateStore) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "DisplayName") + delete(additionalProperties, "ContainerId") + delete(additionalProperties, "ClientMachine") + delete(additionalProperties, "Storepath") + delete(additionalProperties, "CertStoreInventoryJobId") + delete(additionalProperties, "CertStoreType") + delete(additionalProperties, "Approved") + delete(additionalProperties, "CreateIfMissing") + delete(additionalProperties, "Properties") + delete(additionalProperties, "AgentId") + delete(additionalProperties, "AgentAssigned") + delete(additionalProperties, "ContainerName") + delete(additionalProperties, "InventorySchedule") + delete(additionalProperties, "ReenrollmentStatus") + delete(additionalProperties, "SetNewPasswordAllowed") + delete(additionalProperties, "Password") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsCertificateStore struct { + value *ModelsCertificateStore + isSet bool +} + +func (v NullableModelsCertificateStore) Get() *ModelsCertificateStore { + return v.value +} + +func (v *NullableModelsCertificateStore) Set(val *ModelsCertificateStore) { + v.value = val + v.isSet = true +} + +func (v NullableModelsCertificateStore) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsCertificateStore) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsCertificateStore(val *ModelsCertificateStore) *NullableModelsCertificateStore { + return &NullableModelsCertificateStore{value: val, isSet: true} +} + +func (v NullableModelsCertificateStore) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsCertificateStore) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_certificate_store_container_list_response.go b/v1/api/keyfactor/model_models_certificate_store_container_list_response.go new file mode 100644 index 0000000..25552b3 --- /dev/null +++ b/v1/api/keyfactor/model_models_certificate_store_container_list_response.go @@ -0,0 +1,343 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsCertificateStoreContainerListResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsCertificateStoreContainerListResponse{} + +// ModelsCertificateStoreContainerListResponse struct for ModelsCertificateStoreContainerListResponse +type ModelsCertificateStoreContainerListResponse struct { + Id *int32 `json:"Id,omitempty"` + Name *string `json:"Name,omitempty"` + OverwriteSchedules *bool `json:"OverwriteSchedules,omitempty"` + Schedule *string `json:"Schedule,omitempty"` + CertStoreType *int32 `json:"CertStoreType,omitempty"` + StoreCount *int32 `json:"StoreCount,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsCertificateStoreContainerListResponse ModelsCertificateStoreContainerListResponse + +// NewModelsCertificateStoreContainerListResponse instantiates a new ModelsCertificateStoreContainerListResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsCertificateStoreContainerListResponse() *ModelsCertificateStoreContainerListResponse { + this := ModelsCertificateStoreContainerListResponse{} + return &this +} + +// NewModelsCertificateStoreContainerListResponseWithDefaults instantiates a new ModelsCertificateStoreContainerListResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsCertificateStoreContainerListResponseWithDefaults() *ModelsCertificateStoreContainerListResponse { + this := ModelsCertificateStoreContainerListResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ModelsCertificateStoreContainerListResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreContainerListResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ModelsCertificateStoreContainerListResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *ModelsCertificateStoreContainerListResponse) SetId(v int32) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ModelsCertificateStoreContainerListResponse) GetName() string { + if o == nil || isNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreContainerListResponse) GetNameOk() (*string, bool) { + if o == nil || isNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ModelsCertificateStoreContainerListResponse) HasName() bool { + if o != nil && !isNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ModelsCertificateStoreContainerListResponse) SetName(v string) { + o.Name = &v +} + +// GetOverwriteSchedules returns the OverwriteSchedules field value if set, zero value otherwise. +func (o *ModelsCertificateStoreContainerListResponse) GetOverwriteSchedules() bool { + if o == nil || isNil(o.OverwriteSchedules) { + var ret bool + return ret + } + return *o.OverwriteSchedules +} + +// GetOverwriteSchedulesOk returns a tuple with the OverwriteSchedules field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreContainerListResponse) GetOverwriteSchedulesOk() (*bool, bool) { + if o == nil || isNil(o.OverwriteSchedules) { + return nil, false + } + return o.OverwriteSchedules, true +} + +// HasOverwriteSchedules returns a boolean if a field has been set. +func (o *ModelsCertificateStoreContainerListResponse) HasOverwriteSchedules() bool { + if o != nil && !isNil(o.OverwriteSchedules) { + return true + } + + return false +} + +// SetOverwriteSchedules gets a reference to the given bool and assigns it to the OverwriteSchedules field. +func (o *ModelsCertificateStoreContainerListResponse) SetOverwriteSchedules(v bool) { + o.OverwriteSchedules = &v +} + +// GetSchedule returns the Schedule field value if set, zero value otherwise. +func (o *ModelsCertificateStoreContainerListResponse) GetSchedule() string { + if o == nil || isNil(o.Schedule) { + var ret string + return ret + } + return *o.Schedule +} + +// GetScheduleOk returns a tuple with the Schedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreContainerListResponse) GetScheduleOk() (*string, bool) { + if o == nil || isNil(o.Schedule) { + return nil, false + } + return o.Schedule, true +} + +// HasSchedule returns a boolean if a field has been set. +func (o *ModelsCertificateStoreContainerListResponse) HasSchedule() bool { + if o != nil && !isNil(o.Schedule) { + return true + } + + return false +} + +// SetSchedule gets a reference to the given string and assigns it to the Schedule field. +func (o *ModelsCertificateStoreContainerListResponse) SetSchedule(v string) { + o.Schedule = &v +} + +// GetCertStoreType returns the CertStoreType field value if set, zero value otherwise. +func (o *ModelsCertificateStoreContainerListResponse) GetCertStoreType() int32 { + if o == nil || isNil(o.CertStoreType) { + var ret int32 + return ret + } + return *o.CertStoreType +} + +// GetCertStoreTypeOk returns a tuple with the CertStoreType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreContainerListResponse) GetCertStoreTypeOk() (*int32, bool) { + if o == nil || isNil(o.CertStoreType) { + return nil, false + } + return o.CertStoreType, true +} + +// HasCertStoreType returns a boolean if a field has been set. +func (o *ModelsCertificateStoreContainerListResponse) HasCertStoreType() bool { + if o != nil && !isNil(o.CertStoreType) { + return true + } + + return false +} + +// SetCertStoreType gets a reference to the given int32 and assigns it to the CertStoreType field. +func (o *ModelsCertificateStoreContainerListResponse) SetCertStoreType(v int32) { + o.CertStoreType = &v +} + +// GetStoreCount returns the StoreCount field value if set, zero value otherwise. +func (o *ModelsCertificateStoreContainerListResponse) GetStoreCount() int32 { + if o == nil || isNil(o.StoreCount) { + var ret int32 + return ret + } + return *o.StoreCount +} + +// GetStoreCountOk returns a tuple with the StoreCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreContainerListResponse) GetStoreCountOk() (*int32, bool) { + if o == nil || isNil(o.StoreCount) { + return nil, false + } + return o.StoreCount, true +} + +// HasStoreCount returns a boolean if a field has been set. +func (o *ModelsCertificateStoreContainerListResponse) HasStoreCount() bool { + if o != nil && !isNil(o.StoreCount) { + return true + } + + return false +} + +// SetStoreCount gets a reference to the given int32 and assigns it to the StoreCount field. +func (o *ModelsCertificateStoreContainerListResponse) SetStoreCount(v int32) { + o.StoreCount = &v +} + +func (o ModelsCertificateStoreContainerListResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsCertificateStoreContainerListResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.Name) { + toSerialize["Name"] = o.Name + } + if !isNil(o.OverwriteSchedules) { + toSerialize["OverwriteSchedules"] = o.OverwriteSchedules + } + if !isNil(o.Schedule) { + toSerialize["Schedule"] = o.Schedule + } + if !isNil(o.CertStoreType) { + toSerialize["CertStoreType"] = o.CertStoreType + } + if !isNil(o.StoreCount) { + toSerialize["StoreCount"] = o.StoreCount + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsCertificateStoreContainerListResponse) UnmarshalJSON(bytes []byte) (err error) { + varModelsCertificateStoreContainerListResponse := _ModelsCertificateStoreContainerListResponse{} + + if err = json.Unmarshal(bytes, &varModelsCertificateStoreContainerListResponse); err == nil { + *o = ModelsCertificateStoreContainerListResponse(varModelsCertificateStoreContainerListResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "Name") + delete(additionalProperties, "OverwriteSchedules") + delete(additionalProperties, "Schedule") + delete(additionalProperties, "CertStoreType") + delete(additionalProperties, "StoreCount") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsCertificateStoreContainerListResponse struct { + value *ModelsCertificateStoreContainerListResponse + isSet bool +} + +func (v NullableModelsCertificateStoreContainerListResponse) Get() *ModelsCertificateStoreContainerListResponse { + return v.value +} + +func (v *NullableModelsCertificateStoreContainerListResponse) Set(val *ModelsCertificateStoreContainerListResponse) { + v.value = val + v.isSet = true +} + +func (v NullableModelsCertificateStoreContainerListResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsCertificateStoreContainerListResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsCertificateStoreContainerListResponse(val *ModelsCertificateStoreContainerListResponse) *NullableModelsCertificateStoreContainerListResponse { + return &NullableModelsCertificateStoreContainerListResponse{value: val, isSet: true} +} + +func (v NullableModelsCertificateStoreContainerListResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsCertificateStoreContainerListResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_certificate_store_create_server_request.go b/v1/api/keyfactor/model_models_certificate_store_create_server_request.go new file mode 100644 index 0000000..94bfe48 --- /dev/null +++ b/v1/api/keyfactor/model_models_certificate_store_create_server_request.go @@ -0,0 +1,298 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsCertificateStoreCreateServerRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsCertificateStoreCreateServerRequest{} + +// ModelsCertificateStoreCreateServerRequest struct for ModelsCertificateStoreCreateServerRequest +type ModelsCertificateStoreCreateServerRequest struct { + Username ModelsKeyfactorAPISecret `json:"Username"` + Password ModelsKeyfactorAPISecret `json:"Password"` + UseSSL bool `json:"UseSSL"` + ServerType int32 `json:"ServerType"` + Name string `json:"Name"` + Container *int32 `json:"Container,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsCertificateStoreCreateServerRequest ModelsCertificateStoreCreateServerRequest + +// NewModelsCertificateStoreCreateServerRequest instantiates a new ModelsCertificateStoreCreateServerRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsCertificateStoreCreateServerRequest(username ModelsKeyfactorAPISecret, password ModelsKeyfactorAPISecret, useSSL bool, serverType int32, name string) *ModelsCertificateStoreCreateServerRequest { + this := ModelsCertificateStoreCreateServerRequest{} + this.Username = username + this.Password = password + this.UseSSL = useSSL + this.ServerType = serverType + this.Name = name + return &this +} + +// NewModelsCertificateStoreCreateServerRequestWithDefaults instantiates a new ModelsCertificateStoreCreateServerRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsCertificateStoreCreateServerRequestWithDefaults() *ModelsCertificateStoreCreateServerRequest { + this := ModelsCertificateStoreCreateServerRequest{} + return &this +} + +// GetUsername returns the Username field value +func (o *ModelsCertificateStoreCreateServerRequest) GetUsername() ModelsKeyfactorAPISecret { + if o == nil { + var ret ModelsKeyfactorAPISecret + return ret + } + + return o.Username +} + +// GetUsernameOk returns a tuple with the Username field value +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreCreateServerRequest) GetUsernameOk() (*ModelsKeyfactorAPISecret, bool) { + if o == nil { + return nil, false + } + return &o.Username, true +} + +// SetUsername sets field value +func (o *ModelsCertificateStoreCreateServerRequest) SetUsername(v ModelsKeyfactorAPISecret) { + o.Username = v +} + +// GetPassword returns the Password field value +func (o *ModelsCertificateStoreCreateServerRequest) GetPassword() ModelsKeyfactorAPISecret { + if o == nil { + var ret ModelsKeyfactorAPISecret + return ret + } + + return o.Password +} + +// GetPasswordOk returns a tuple with the Password field value +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreCreateServerRequest) GetPasswordOk() (*ModelsKeyfactorAPISecret, bool) { + if o == nil { + return nil, false + } + return &o.Password, true +} + +// SetPassword sets field value +func (o *ModelsCertificateStoreCreateServerRequest) SetPassword(v ModelsKeyfactorAPISecret) { + o.Password = v +} + +// GetUseSSL returns the UseSSL field value +func (o *ModelsCertificateStoreCreateServerRequest) GetUseSSL() bool { + if o == nil { + var ret bool + return ret + } + + return o.UseSSL +} + +// GetUseSSLOk returns a tuple with the UseSSL field value +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreCreateServerRequest) GetUseSSLOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.UseSSL, true +} + +// SetUseSSL sets field value +func (o *ModelsCertificateStoreCreateServerRequest) SetUseSSL(v bool) { + o.UseSSL = v +} + +// GetServerType returns the ServerType field value +func (o *ModelsCertificateStoreCreateServerRequest) GetServerType() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.ServerType +} + +// GetServerTypeOk returns a tuple with the ServerType field value +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreCreateServerRequest) GetServerTypeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.ServerType, true +} + +// SetServerType sets field value +func (o *ModelsCertificateStoreCreateServerRequest) SetServerType(v int32) { + o.ServerType = v +} + +// GetName returns the Name field value +func (o *ModelsCertificateStoreCreateServerRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreCreateServerRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ModelsCertificateStoreCreateServerRequest) SetName(v string) { + o.Name = v +} + +// GetContainer returns the Container field value if set, zero value otherwise. +func (o *ModelsCertificateStoreCreateServerRequest) GetContainer() int32 { + if o == nil || isNil(o.Container) { + var ret int32 + return ret + } + return *o.Container +} + +// GetContainerOk returns a tuple with the Container field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreCreateServerRequest) GetContainerOk() (*int32, bool) { + if o == nil || isNil(o.Container) { + return nil, false + } + return o.Container, true +} + +// HasContainer returns a boolean if a field has been set. +func (o *ModelsCertificateStoreCreateServerRequest) HasContainer() bool { + if o != nil && !isNil(o.Container) { + return true + } + + return false +} + +// SetContainer gets a reference to the given int32 and assigns it to the Container field. +func (o *ModelsCertificateStoreCreateServerRequest) SetContainer(v int32) { + o.Container = &v +} + +func (o ModelsCertificateStoreCreateServerRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsCertificateStoreCreateServerRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Username"] = o.Username + toSerialize["Password"] = o.Password + toSerialize["UseSSL"] = o.UseSSL + toSerialize["ServerType"] = o.ServerType + toSerialize["Name"] = o.Name + if !isNil(o.Container) { + toSerialize["Container"] = o.Container + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsCertificateStoreCreateServerRequest) UnmarshalJSON(bytes []byte) (err error) { + varModelsCertificateStoreCreateServerRequest := _ModelsCertificateStoreCreateServerRequest{} + + if err = json.Unmarshal(bytes, &varModelsCertificateStoreCreateServerRequest); err == nil { + *o = ModelsCertificateStoreCreateServerRequest(varModelsCertificateStoreCreateServerRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Username") + delete(additionalProperties, "Password") + delete(additionalProperties, "UseSSL") + delete(additionalProperties, "ServerType") + delete(additionalProperties, "Name") + delete(additionalProperties, "Container") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsCertificateStoreCreateServerRequest struct { + value *ModelsCertificateStoreCreateServerRequest + isSet bool +} + +func (v NullableModelsCertificateStoreCreateServerRequest) Get() *ModelsCertificateStoreCreateServerRequest { + return v.value +} + +func (v *NullableModelsCertificateStoreCreateServerRequest) Set(val *ModelsCertificateStoreCreateServerRequest) { + v.value = val + v.isSet = true +} + +func (v NullableModelsCertificateStoreCreateServerRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsCertificateStoreCreateServerRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsCertificateStoreCreateServerRequest(val *ModelsCertificateStoreCreateServerRequest) *NullableModelsCertificateStoreCreateServerRequest { + return &NullableModelsCertificateStoreCreateServerRequest{value: val, isSet: true} +} + +func (v NullableModelsCertificateStoreCreateServerRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsCertificateStoreCreateServerRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_certificate_store_entry.go b/v1/api/keyfactor/model_models_certificate_store_entry.go new file mode 100644 index 0000000..67f5e93 --- /dev/null +++ b/v1/api/keyfactor/model_models_certificate_store_entry.go @@ -0,0 +1,372 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsCertificateStoreEntry type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsCertificateStoreEntry{} + +// ModelsCertificateStoreEntry struct for ModelsCertificateStoreEntry +type ModelsCertificateStoreEntry struct { + CertificateStoreId string `json:"CertificateStoreId"` + Alias *string `json:"Alias,omitempty"` + JobFields map[string]map[string]interface{} `json:"JobFields,omitempty"` + Overwrite *bool `json:"Overwrite,omitempty"` + EntryPassword *ModelsKeyfactorAPISecret `json:"EntryPassword,omitempty"` + // The PFX password. + PfxPassword *string `json:"PfxPassword,omitempty"` + IncludePrivateKey *bool `json:"IncludePrivateKey,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsCertificateStoreEntry ModelsCertificateStoreEntry + +// NewModelsCertificateStoreEntry instantiates a new ModelsCertificateStoreEntry object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsCertificateStoreEntry(certificateStoreId string) *ModelsCertificateStoreEntry { + this := ModelsCertificateStoreEntry{} + this.CertificateStoreId = certificateStoreId + return &this +} + +// NewModelsCertificateStoreEntryWithDefaults instantiates a new ModelsCertificateStoreEntry object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsCertificateStoreEntryWithDefaults() *ModelsCertificateStoreEntry { + this := ModelsCertificateStoreEntry{} + return &this +} + +// GetCertificateStoreId returns the CertificateStoreId field value +func (o *ModelsCertificateStoreEntry) GetCertificateStoreId() string { + if o == nil { + var ret string + return ret + } + + return o.CertificateStoreId +} + +// GetCertificateStoreIdOk returns a tuple with the CertificateStoreId field value +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreEntry) GetCertificateStoreIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CertificateStoreId, true +} + +// SetCertificateStoreId sets field value +func (o *ModelsCertificateStoreEntry) SetCertificateStoreId(v string) { + o.CertificateStoreId = v +} + +// GetAlias returns the Alias field value if set, zero value otherwise. +func (o *ModelsCertificateStoreEntry) GetAlias() string { + if o == nil || isNil(o.Alias) { + var ret string + return ret + } + return *o.Alias +} + +// GetAliasOk returns a tuple with the Alias field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreEntry) GetAliasOk() (*string, bool) { + if o == nil || isNil(o.Alias) { + return nil, false + } + return o.Alias, true +} + +// HasAlias returns a boolean if a field has been set. +func (o *ModelsCertificateStoreEntry) HasAlias() bool { + if o != nil && !isNil(o.Alias) { + return true + } + + return false +} + +// SetAlias gets a reference to the given string and assigns it to the Alias field. +func (o *ModelsCertificateStoreEntry) SetAlias(v string) { + o.Alias = &v +} + +// GetJobFields returns the JobFields field value if set, zero value otherwise. +func (o *ModelsCertificateStoreEntry) GetJobFields() map[string]map[string]interface{} { + if o == nil || isNil(o.JobFields) { + var ret map[string]map[string]interface{} + return ret + } + return o.JobFields +} + +// GetJobFieldsOk returns a tuple with the JobFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreEntry) GetJobFieldsOk() (map[string]map[string]interface{}, bool) { + if o == nil || isNil(o.JobFields) { + return map[string]map[string]interface{}{}, false + } + return o.JobFields, true +} + +// HasJobFields returns a boolean if a field has been set. +func (o *ModelsCertificateStoreEntry) HasJobFields() bool { + if o != nil && !isNil(o.JobFields) { + return true + } + + return false +} + +// SetJobFields gets a reference to the given map[string]map[string]interface{} and assigns it to the JobFields field. +func (o *ModelsCertificateStoreEntry) SetJobFields(v map[string]map[string]interface{}) { + o.JobFields = v +} + +// GetOverwrite returns the Overwrite field value if set, zero value otherwise. +func (o *ModelsCertificateStoreEntry) GetOverwrite() bool { + if o == nil || isNil(o.Overwrite) { + var ret bool + return ret + } + return *o.Overwrite +} + +// GetOverwriteOk returns a tuple with the Overwrite field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreEntry) GetOverwriteOk() (*bool, bool) { + if o == nil || isNil(o.Overwrite) { + return nil, false + } + return o.Overwrite, true +} + +// HasOverwrite returns a boolean if a field has been set. +func (o *ModelsCertificateStoreEntry) HasOverwrite() bool { + if o != nil && !isNil(o.Overwrite) { + return true + } + + return false +} + +// SetOverwrite gets a reference to the given bool and assigns it to the Overwrite field. +func (o *ModelsCertificateStoreEntry) SetOverwrite(v bool) { + o.Overwrite = &v +} + +// GetEntryPassword returns the EntryPassword field value if set, zero value otherwise. +func (o *ModelsCertificateStoreEntry) GetEntryPassword() ModelsKeyfactorAPISecret { + if o == nil || isNil(o.EntryPassword) { + var ret ModelsKeyfactorAPISecret + return ret + } + return *o.EntryPassword +} + +// GetEntryPasswordOk returns a tuple with the EntryPassword field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreEntry) GetEntryPasswordOk() (*ModelsKeyfactorAPISecret, bool) { + if o == nil || isNil(o.EntryPassword) { + return nil, false + } + return o.EntryPassword, true +} + +// HasEntryPassword returns a boolean if a field has been set. +func (o *ModelsCertificateStoreEntry) HasEntryPassword() bool { + if o != nil && !isNil(o.EntryPassword) { + return true + } + + return false +} + +// SetEntryPassword gets a reference to the given ModelsKeyfactorAPISecret and assigns it to the EntryPassword field. +func (o *ModelsCertificateStoreEntry) SetEntryPassword(v ModelsKeyfactorAPISecret) { + o.EntryPassword = &v +} + +// GetPfxPassword returns the PfxPassword field value if set, zero value otherwise. +func (o *ModelsCertificateStoreEntry) GetPfxPassword() string { + if o == nil || isNil(o.PfxPassword) { + var ret string + return ret + } + return *o.PfxPassword +} + +// GetPfxPasswordOk returns a tuple with the PfxPassword field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreEntry) GetPfxPasswordOk() (*string, bool) { + if o == nil || isNil(o.PfxPassword) { + return nil, false + } + return o.PfxPassword, true +} + +// HasPfxPassword returns a boolean if a field has been set. +func (o *ModelsCertificateStoreEntry) HasPfxPassword() bool { + if o != nil && !isNil(o.PfxPassword) { + return true + } + + return false +} + +// SetPfxPassword gets a reference to the given string and assigns it to the PfxPassword field. +func (o *ModelsCertificateStoreEntry) SetPfxPassword(v string) { + o.PfxPassword = &v +} + +// GetIncludePrivateKey returns the IncludePrivateKey field value if set, zero value otherwise. +func (o *ModelsCertificateStoreEntry) GetIncludePrivateKey() bool { + if o == nil || isNil(o.IncludePrivateKey) { + var ret bool + return ret + } + return *o.IncludePrivateKey +} + +// GetIncludePrivateKeyOk returns a tuple with the IncludePrivateKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreEntry) GetIncludePrivateKeyOk() (*bool, bool) { + if o == nil || isNil(o.IncludePrivateKey) { + return nil, false + } + return o.IncludePrivateKey, true +} + +// HasIncludePrivateKey returns a boolean if a field has been set. +func (o *ModelsCertificateStoreEntry) HasIncludePrivateKey() bool { + if o != nil && !isNil(o.IncludePrivateKey) { + return true + } + + return false +} + +// SetIncludePrivateKey gets a reference to the given bool and assigns it to the IncludePrivateKey field. +func (o *ModelsCertificateStoreEntry) SetIncludePrivateKey(v bool) { + o.IncludePrivateKey = &v +} + +func (o ModelsCertificateStoreEntry) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsCertificateStoreEntry) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["CertificateStoreId"] = o.CertificateStoreId + if !isNil(o.Alias) { + toSerialize["Alias"] = o.Alias + } + if !isNil(o.JobFields) { + toSerialize["JobFields"] = o.JobFields + } + if !isNil(o.Overwrite) { + toSerialize["Overwrite"] = o.Overwrite + } + if !isNil(o.EntryPassword) { + toSerialize["EntryPassword"] = o.EntryPassword + } + if !isNil(o.PfxPassword) { + toSerialize["PfxPassword"] = o.PfxPassword + } + if !isNil(o.IncludePrivateKey) { + toSerialize["IncludePrivateKey"] = o.IncludePrivateKey + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsCertificateStoreEntry) UnmarshalJSON(bytes []byte) (err error) { + varModelsCertificateStoreEntry := _ModelsCertificateStoreEntry{} + + if err = json.Unmarshal(bytes, &varModelsCertificateStoreEntry); err == nil { + *o = ModelsCertificateStoreEntry(varModelsCertificateStoreEntry) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "CertificateStoreId") + delete(additionalProperties, "Alias") + delete(additionalProperties, "JobFields") + delete(additionalProperties, "Overwrite") + delete(additionalProperties, "EntryPassword") + delete(additionalProperties, "PfxPassword") + delete(additionalProperties, "IncludePrivateKey") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsCertificateStoreEntry struct { + value *ModelsCertificateStoreEntry + isSet bool +} + +func (v NullableModelsCertificateStoreEntry) Get() *ModelsCertificateStoreEntry { + return v.value +} + +func (v *NullableModelsCertificateStoreEntry) Set(val *ModelsCertificateStoreEntry) { + v.value = val + v.isSet = true +} + +func (v NullableModelsCertificateStoreEntry) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsCertificateStoreEntry) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsCertificateStoreEntry(val *ModelsCertificateStoreEntry) *NullableModelsCertificateStoreEntry { + return &NullableModelsCertificateStoreEntry{value: val, isSet: true} +} + +func (v NullableModelsCertificateStoreEntry) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsCertificateStoreEntry) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_certificate_store_inventory.go b/v1/api/keyfactor/model_models_certificate_store_inventory.go new file mode 100644 index 0000000..900ba03 --- /dev/null +++ b/v1/api/keyfactor/model_models_certificate_store_inventory.go @@ -0,0 +1,232 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsCertificateStoreInventory type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsCertificateStoreInventory{} + +// ModelsCertificateStoreInventory struct for ModelsCertificateStoreInventory +type ModelsCertificateStoreInventory struct { + Name *string `json:"Name,omitempty"` + Certificates []ModelsCertificateStoreInventoryCertificates `json:"Certificates,omitempty"` + Parameters map[string]map[string]interface{} `json:"Parameters,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsCertificateStoreInventory ModelsCertificateStoreInventory + +// NewModelsCertificateStoreInventory instantiates a new ModelsCertificateStoreInventory object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsCertificateStoreInventory() *ModelsCertificateStoreInventory { + this := ModelsCertificateStoreInventory{} + return &this +} + +// NewModelsCertificateStoreInventoryWithDefaults instantiates a new ModelsCertificateStoreInventory object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsCertificateStoreInventoryWithDefaults() *ModelsCertificateStoreInventory { + this := ModelsCertificateStoreInventory{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ModelsCertificateStoreInventory) GetName() string { + if o == nil || isNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreInventory) GetNameOk() (*string, bool) { + if o == nil || isNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ModelsCertificateStoreInventory) HasName() bool { + if o != nil && !isNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ModelsCertificateStoreInventory) SetName(v string) { + o.Name = &v +} + +// GetCertificates returns the Certificates field value if set, zero value otherwise. +func (o *ModelsCertificateStoreInventory) GetCertificates() []ModelsCertificateStoreInventoryCertificates { + if o == nil || isNil(o.Certificates) { + var ret []ModelsCertificateStoreInventoryCertificates + return ret + } + return o.Certificates +} + +// GetCertificatesOk returns a tuple with the Certificates field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreInventory) GetCertificatesOk() ([]ModelsCertificateStoreInventoryCertificates, bool) { + if o == nil || isNil(o.Certificates) { + return nil, false + } + return o.Certificates, true +} + +// HasCertificates returns a boolean if a field has been set. +func (o *ModelsCertificateStoreInventory) HasCertificates() bool { + if o != nil && !isNil(o.Certificates) { + return true + } + + return false +} + +// SetCertificates gets a reference to the given []ModelsCertificateStoreInventoryCertificates and assigns it to the Certificates field. +func (o *ModelsCertificateStoreInventory) SetCertificates(v []ModelsCertificateStoreInventoryCertificates) { + o.Certificates = v +} + +// GetParameters returns the Parameters field value if set, zero value otherwise. +func (o *ModelsCertificateStoreInventory) GetParameters() map[string]map[string]interface{} { + if o == nil || isNil(o.Parameters) { + var ret map[string]map[string]interface{} + return ret + } + return o.Parameters +} + +// GetParametersOk returns a tuple with the Parameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreInventory) GetParametersOk() (map[string]map[string]interface{}, bool) { + if o == nil || isNil(o.Parameters) { + return map[string]map[string]interface{}{}, false + } + return o.Parameters, true +} + +// HasParameters returns a boolean if a field has been set. +func (o *ModelsCertificateStoreInventory) HasParameters() bool { + if o != nil && !isNil(o.Parameters) { + return true + } + + return false +} + +// SetParameters gets a reference to the given map[string]map[string]interface{} and assigns it to the Parameters field. +func (o *ModelsCertificateStoreInventory) SetParameters(v map[string]map[string]interface{}) { + o.Parameters = v +} + +func (o ModelsCertificateStoreInventory) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsCertificateStoreInventory) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Name) { + toSerialize["Name"] = o.Name + } + if !isNil(o.Certificates) { + toSerialize["Certificates"] = o.Certificates + } + if !isNil(o.Parameters) { + toSerialize["Parameters"] = o.Parameters + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsCertificateStoreInventory) UnmarshalJSON(bytes []byte) (err error) { + varModelsCertificateStoreInventory := _ModelsCertificateStoreInventory{} + + if err = json.Unmarshal(bytes, &varModelsCertificateStoreInventory); err == nil { + *o = ModelsCertificateStoreInventory(varModelsCertificateStoreInventory) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Name") + delete(additionalProperties, "Certificates") + delete(additionalProperties, "Parameters") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsCertificateStoreInventory struct { + value *ModelsCertificateStoreInventory + isSet bool +} + +func (v NullableModelsCertificateStoreInventory) Get() *ModelsCertificateStoreInventory { + return v.value +} + +func (v *NullableModelsCertificateStoreInventory) Set(val *ModelsCertificateStoreInventory) { + v.value = val + v.isSet = true +} + +func (v NullableModelsCertificateStoreInventory) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsCertificateStoreInventory) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsCertificateStoreInventory(val *ModelsCertificateStoreInventory) *NullableModelsCertificateStoreInventory { + return &NullableModelsCertificateStoreInventory{value: val, isSet: true} +} + +func (v NullableModelsCertificateStoreInventory) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsCertificateStoreInventory) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_certificate_store_inventory_certificates.go b/v1/api/keyfactor/model_models_certificate_store_inventory_certificates.go new file mode 100644 index 0000000..1998461 --- /dev/null +++ b/v1/api/keyfactor/model_models_certificate_store_inventory_certificates.go @@ -0,0 +1,514 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" + "time" +) + +// checks if the ModelsCertificateStoreInventoryCertificates type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsCertificateStoreInventoryCertificates{} + +// ModelsCertificateStoreInventoryCertificates struct for ModelsCertificateStoreInventoryCertificates +type ModelsCertificateStoreInventoryCertificates struct { + Id *int32 `json:"Id,omitempty"` + IssuedDN NullableString `json:"IssuedDN,omitempty"` + SerialNumber *string `json:"SerialNumber,omitempty"` + NotBefore *time.Time `json:"NotBefore,omitempty"` + NotAfter *time.Time `json:"NotAfter,omitempty"` + SigningAlgorithm *string `json:"SigningAlgorithm,omitempty"` + IssuerDN NullableString `json:"IssuerDN,omitempty"` + Thumbprint *string `json:"Thumbprint,omitempty"` + CertStoreInventoryItemId *int32 `json:"CertStoreInventoryItemId,omitempty"` + Metadata map[string]map[string]interface{} `json:"Metadata,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsCertificateStoreInventoryCertificates ModelsCertificateStoreInventoryCertificates + +// NewModelsCertificateStoreInventoryCertificates instantiates a new ModelsCertificateStoreInventoryCertificates object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsCertificateStoreInventoryCertificates() *ModelsCertificateStoreInventoryCertificates { + this := ModelsCertificateStoreInventoryCertificates{} + return &this +} + +// NewModelsCertificateStoreInventoryCertificatesWithDefaults instantiates a new ModelsCertificateStoreInventoryCertificates object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsCertificateStoreInventoryCertificatesWithDefaults() *ModelsCertificateStoreInventoryCertificates { + this := ModelsCertificateStoreInventoryCertificates{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ModelsCertificateStoreInventoryCertificates) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreInventoryCertificates) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ModelsCertificateStoreInventoryCertificates) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *ModelsCertificateStoreInventoryCertificates) SetId(v int32) { + o.Id = &v +} + +// GetIssuedDN returns the IssuedDN field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModelsCertificateStoreInventoryCertificates) GetIssuedDN() string { + if o == nil || isNil(o.IssuedDN.Get()) { + var ret string + return ret + } + return *o.IssuedDN.Get() +} + +// GetIssuedDNOk returns a tuple with the IssuedDN field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModelsCertificateStoreInventoryCertificates) GetIssuedDNOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IssuedDN.Get(), o.IssuedDN.IsSet() +} + +// HasIssuedDN returns a boolean if a field has been set. +func (o *ModelsCertificateStoreInventoryCertificates) HasIssuedDN() bool { + if o != nil && o.IssuedDN.IsSet() { + return true + } + + return false +} + +// SetIssuedDN gets a reference to the given NullableString and assigns it to the IssuedDN field. +func (o *ModelsCertificateStoreInventoryCertificates) SetIssuedDN(v string) { + o.IssuedDN.Set(&v) +} + +// SetIssuedDNNil sets the value for IssuedDN to be an explicit nil +func (o *ModelsCertificateStoreInventoryCertificates) SetIssuedDNNil() { + o.IssuedDN.Set(nil) +} + +// UnsetIssuedDN ensures that no value is present for IssuedDN, not even an explicit nil +func (o *ModelsCertificateStoreInventoryCertificates) UnsetIssuedDN() { + o.IssuedDN.Unset() +} + +// GetSerialNumber returns the SerialNumber field value if set, zero value otherwise. +func (o *ModelsCertificateStoreInventoryCertificates) GetSerialNumber() string { + if o == nil || isNil(o.SerialNumber) { + var ret string + return ret + } + return *o.SerialNumber +} + +// GetSerialNumberOk returns a tuple with the SerialNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreInventoryCertificates) GetSerialNumberOk() (*string, bool) { + if o == nil || isNil(o.SerialNumber) { + return nil, false + } + return o.SerialNumber, true +} + +// HasSerialNumber returns a boolean if a field has been set. +func (o *ModelsCertificateStoreInventoryCertificates) HasSerialNumber() bool { + if o != nil && !isNil(o.SerialNumber) { + return true + } + + return false +} + +// SetSerialNumber gets a reference to the given string and assigns it to the SerialNumber field. +func (o *ModelsCertificateStoreInventoryCertificates) SetSerialNumber(v string) { + o.SerialNumber = &v +} + +// GetNotBefore returns the NotBefore field value if set, zero value otherwise. +func (o *ModelsCertificateStoreInventoryCertificates) GetNotBefore() time.Time { + if o == nil || isNil(o.NotBefore) { + var ret time.Time + return ret + } + return *o.NotBefore +} + +// GetNotBeforeOk returns a tuple with the NotBefore field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreInventoryCertificates) GetNotBeforeOk() (*time.Time, bool) { + if o == nil || isNil(o.NotBefore) { + return nil, false + } + return o.NotBefore, true +} + +// HasNotBefore returns a boolean if a field has been set. +func (o *ModelsCertificateStoreInventoryCertificates) HasNotBefore() bool { + if o != nil && !isNil(o.NotBefore) { + return true + } + + return false +} + +// SetNotBefore gets a reference to the given time.Time and assigns it to the NotBefore field. +func (o *ModelsCertificateStoreInventoryCertificates) SetNotBefore(v time.Time) { + o.NotBefore = &v +} + +// GetNotAfter returns the NotAfter field value if set, zero value otherwise. +func (o *ModelsCertificateStoreInventoryCertificates) GetNotAfter() time.Time { + if o == nil || isNil(o.NotAfter) { + var ret time.Time + return ret + } + return *o.NotAfter +} + +// GetNotAfterOk returns a tuple with the NotAfter field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreInventoryCertificates) GetNotAfterOk() (*time.Time, bool) { + if o == nil || isNil(o.NotAfter) { + return nil, false + } + return o.NotAfter, true +} + +// HasNotAfter returns a boolean if a field has been set. +func (o *ModelsCertificateStoreInventoryCertificates) HasNotAfter() bool { + if o != nil && !isNil(o.NotAfter) { + return true + } + + return false +} + +// SetNotAfter gets a reference to the given time.Time and assigns it to the NotAfter field. +func (o *ModelsCertificateStoreInventoryCertificates) SetNotAfter(v time.Time) { + o.NotAfter = &v +} + +// GetSigningAlgorithm returns the SigningAlgorithm field value if set, zero value otherwise. +func (o *ModelsCertificateStoreInventoryCertificates) GetSigningAlgorithm() string { + if o == nil || isNil(o.SigningAlgorithm) { + var ret string + return ret + } + return *o.SigningAlgorithm +} + +// GetSigningAlgorithmOk returns a tuple with the SigningAlgorithm field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreInventoryCertificates) GetSigningAlgorithmOk() (*string, bool) { + if o == nil || isNil(o.SigningAlgorithm) { + return nil, false + } + return o.SigningAlgorithm, true +} + +// HasSigningAlgorithm returns a boolean if a field has been set. +func (o *ModelsCertificateStoreInventoryCertificates) HasSigningAlgorithm() bool { + if o != nil && !isNil(o.SigningAlgorithm) { + return true + } + + return false +} + +// SetSigningAlgorithm gets a reference to the given string and assigns it to the SigningAlgorithm field. +func (o *ModelsCertificateStoreInventoryCertificates) SetSigningAlgorithm(v string) { + o.SigningAlgorithm = &v +} + +// GetIssuerDN returns the IssuerDN field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModelsCertificateStoreInventoryCertificates) GetIssuerDN() string { + if o == nil || isNil(o.IssuerDN.Get()) { + var ret string + return ret + } + return *o.IssuerDN.Get() +} + +// GetIssuerDNOk returns a tuple with the IssuerDN field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModelsCertificateStoreInventoryCertificates) GetIssuerDNOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IssuerDN.Get(), o.IssuerDN.IsSet() +} + +// HasIssuerDN returns a boolean if a field has been set. +func (o *ModelsCertificateStoreInventoryCertificates) HasIssuerDN() bool { + if o != nil && o.IssuerDN.IsSet() { + return true + } + + return false +} + +// SetIssuerDN gets a reference to the given NullableString and assigns it to the IssuerDN field. +func (o *ModelsCertificateStoreInventoryCertificates) SetIssuerDN(v string) { + o.IssuerDN.Set(&v) +} + +// SetIssuerDNNil sets the value for IssuerDN to be an explicit nil +func (o *ModelsCertificateStoreInventoryCertificates) SetIssuerDNNil() { + o.IssuerDN.Set(nil) +} + +// UnsetIssuerDN ensures that no value is present for IssuerDN, not even an explicit nil +func (o *ModelsCertificateStoreInventoryCertificates) UnsetIssuerDN() { + o.IssuerDN.Unset() +} + +// GetThumbprint returns the Thumbprint field value if set, zero value otherwise. +func (o *ModelsCertificateStoreInventoryCertificates) GetThumbprint() string { + if o == nil || isNil(o.Thumbprint) { + var ret string + return ret + } + return *o.Thumbprint +} + +// GetThumbprintOk returns a tuple with the Thumbprint field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreInventoryCertificates) GetThumbprintOk() (*string, bool) { + if o == nil || isNil(o.Thumbprint) { + return nil, false + } + return o.Thumbprint, true +} + +// HasThumbprint returns a boolean if a field has been set. +func (o *ModelsCertificateStoreInventoryCertificates) HasThumbprint() bool { + if o != nil && !isNil(o.Thumbprint) { + return true + } + + return false +} + +// SetThumbprint gets a reference to the given string and assigns it to the Thumbprint field. +func (o *ModelsCertificateStoreInventoryCertificates) SetThumbprint(v string) { + o.Thumbprint = &v +} + +// GetCertStoreInventoryItemId returns the CertStoreInventoryItemId field value if set, zero value otherwise. +func (o *ModelsCertificateStoreInventoryCertificates) GetCertStoreInventoryItemId() int32 { + if o == nil || isNil(o.CertStoreInventoryItemId) { + var ret int32 + return ret + } + return *o.CertStoreInventoryItemId +} + +// GetCertStoreInventoryItemIdOk returns a tuple with the CertStoreInventoryItemId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreInventoryCertificates) GetCertStoreInventoryItemIdOk() (*int32, bool) { + if o == nil || isNil(o.CertStoreInventoryItemId) { + return nil, false + } + return o.CertStoreInventoryItemId, true +} + +// HasCertStoreInventoryItemId returns a boolean if a field has been set. +func (o *ModelsCertificateStoreInventoryCertificates) HasCertStoreInventoryItemId() bool { + if o != nil && !isNil(o.CertStoreInventoryItemId) { + return true + } + + return false +} + +// SetCertStoreInventoryItemId gets a reference to the given int32 and assigns it to the CertStoreInventoryItemId field. +func (o *ModelsCertificateStoreInventoryCertificates) SetCertStoreInventoryItemId(v int32) { + o.CertStoreInventoryItemId = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ModelsCertificateStoreInventoryCertificates) GetMetadata() map[string]map[string]interface{} { + if o == nil || isNil(o.Metadata) { + var ret map[string]map[string]interface{} + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreInventoryCertificates) GetMetadataOk() (map[string]map[string]interface{}, bool) { + if o == nil || isNil(o.Metadata) { + return map[string]map[string]interface{}{}, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ModelsCertificateStoreInventoryCertificates) HasMetadata() bool { + if o != nil && !isNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given map[string]map[string]interface{} and assigns it to the Metadata field. +func (o *ModelsCertificateStoreInventoryCertificates) SetMetadata(v map[string]map[string]interface{}) { + o.Metadata = v +} + +func (o ModelsCertificateStoreInventoryCertificates) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsCertificateStoreInventoryCertificates) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.IssuedDN.IsSet() { + toSerialize["IssuedDN"] = o.IssuedDN.Get() + } + if !isNil(o.SerialNumber) { + toSerialize["SerialNumber"] = o.SerialNumber + } + if !isNil(o.NotBefore) { + toSerialize["NotBefore"] = o.NotBefore + } + if !isNil(o.NotAfter) { + toSerialize["NotAfter"] = o.NotAfter + } + if !isNil(o.SigningAlgorithm) { + toSerialize["SigningAlgorithm"] = o.SigningAlgorithm + } + if o.IssuerDN.IsSet() { + toSerialize["IssuerDN"] = o.IssuerDN.Get() + } + if !isNil(o.Thumbprint) { + toSerialize["Thumbprint"] = o.Thumbprint + } + if !isNil(o.CertStoreInventoryItemId) { + toSerialize["CertStoreInventoryItemId"] = o.CertStoreInventoryItemId + } + if !isNil(o.Metadata) { + toSerialize["Metadata"] = o.Metadata + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsCertificateStoreInventoryCertificates) UnmarshalJSON(bytes []byte) (err error) { + varModelsCertificateStoreInventoryCertificates := _ModelsCertificateStoreInventoryCertificates{} + + if err = json.Unmarshal(bytes, &varModelsCertificateStoreInventoryCertificates); err == nil { + *o = ModelsCertificateStoreInventoryCertificates(varModelsCertificateStoreInventoryCertificates) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "IssuedDN") + delete(additionalProperties, "SerialNumber") + delete(additionalProperties, "NotBefore") + delete(additionalProperties, "NotAfter") + delete(additionalProperties, "SigningAlgorithm") + delete(additionalProperties, "IssuerDN") + delete(additionalProperties, "Thumbprint") + delete(additionalProperties, "CertStoreInventoryItemId") + delete(additionalProperties, "Metadata") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsCertificateStoreInventoryCertificates struct { + value *ModelsCertificateStoreInventoryCertificates + isSet bool +} + +func (v NullableModelsCertificateStoreInventoryCertificates) Get() *ModelsCertificateStoreInventoryCertificates { + return v.value +} + +func (v *NullableModelsCertificateStoreInventoryCertificates) Set(val *ModelsCertificateStoreInventoryCertificates) { + v.value = val + v.isSet = true +} + +func (v NullableModelsCertificateStoreInventoryCertificates) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsCertificateStoreInventoryCertificates) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsCertificateStoreInventoryCertificates(val *ModelsCertificateStoreInventoryCertificates) *NullableModelsCertificateStoreInventoryCertificates { + return &NullableModelsCertificateStoreInventoryCertificates{value: val, isSet: true} +} + +func (v NullableModelsCertificateStoreInventoryCertificates) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsCertificateStoreInventoryCertificates) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_certificate_store_server_response.go b/v1/api/keyfactor/model_models_certificate_store_server_response.go new file mode 100644 index 0000000..1ffac84 --- /dev/null +++ b/v1/api/keyfactor/model_models_certificate_store_server_response.go @@ -0,0 +1,269 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsCertificateStoreServerResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsCertificateStoreServerResponse{} + +// ModelsCertificateStoreServerResponse struct for ModelsCertificateStoreServerResponse +type ModelsCertificateStoreServerResponse struct { + Id *int32 `json:"Id,omitempty"` + UseSSL *bool `json:"UseSSL,omitempty"` + ServerType *int32 `json:"ServerType,omitempty"` + Name *string `json:"Name,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsCertificateStoreServerResponse ModelsCertificateStoreServerResponse + +// NewModelsCertificateStoreServerResponse instantiates a new ModelsCertificateStoreServerResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsCertificateStoreServerResponse() *ModelsCertificateStoreServerResponse { + this := ModelsCertificateStoreServerResponse{} + return &this +} + +// NewModelsCertificateStoreServerResponseWithDefaults instantiates a new ModelsCertificateStoreServerResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsCertificateStoreServerResponseWithDefaults() *ModelsCertificateStoreServerResponse { + this := ModelsCertificateStoreServerResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ModelsCertificateStoreServerResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreServerResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ModelsCertificateStoreServerResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *ModelsCertificateStoreServerResponse) SetId(v int32) { + o.Id = &v +} + +// GetUseSSL returns the UseSSL field value if set, zero value otherwise. +func (o *ModelsCertificateStoreServerResponse) GetUseSSL() bool { + if o == nil || isNil(o.UseSSL) { + var ret bool + return ret + } + return *o.UseSSL +} + +// GetUseSSLOk returns a tuple with the UseSSL field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreServerResponse) GetUseSSLOk() (*bool, bool) { + if o == nil || isNil(o.UseSSL) { + return nil, false + } + return o.UseSSL, true +} + +// HasUseSSL returns a boolean if a field has been set. +func (o *ModelsCertificateStoreServerResponse) HasUseSSL() bool { + if o != nil && !isNil(o.UseSSL) { + return true + } + + return false +} + +// SetUseSSL gets a reference to the given bool and assigns it to the UseSSL field. +func (o *ModelsCertificateStoreServerResponse) SetUseSSL(v bool) { + o.UseSSL = &v +} + +// GetServerType returns the ServerType field value if set, zero value otherwise. +func (o *ModelsCertificateStoreServerResponse) GetServerType() int32 { + if o == nil || isNil(o.ServerType) { + var ret int32 + return ret + } + return *o.ServerType +} + +// GetServerTypeOk returns a tuple with the ServerType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreServerResponse) GetServerTypeOk() (*int32, bool) { + if o == nil || isNil(o.ServerType) { + return nil, false + } + return o.ServerType, true +} + +// HasServerType returns a boolean if a field has been set. +func (o *ModelsCertificateStoreServerResponse) HasServerType() bool { + if o != nil && !isNil(o.ServerType) { + return true + } + + return false +} + +// SetServerType gets a reference to the given int32 and assigns it to the ServerType field. +func (o *ModelsCertificateStoreServerResponse) SetServerType(v int32) { + o.ServerType = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ModelsCertificateStoreServerResponse) GetName() string { + if o == nil || isNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreServerResponse) GetNameOk() (*string, bool) { + if o == nil || isNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ModelsCertificateStoreServerResponse) HasName() bool { + if o != nil && !isNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ModelsCertificateStoreServerResponse) SetName(v string) { + o.Name = &v +} + +func (o ModelsCertificateStoreServerResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsCertificateStoreServerResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.UseSSL) { + toSerialize["UseSSL"] = o.UseSSL + } + if !isNil(o.ServerType) { + toSerialize["ServerType"] = o.ServerType + } + if !isNil(o.Name) { + toSerialize["Name"] = o.Name + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsCertificateStoreServerResponse) UnmarshalJSON(bytes []byte) (err error) { + varModelsCertificateStoreServerResponse := _ModelsCertificateStoreServerResponse{} + + if err = json.Unmarshal(bytes, &varModelsCertificateStoreServerResponse); err == nil { + *o = ModelsCertificateStoreServerResponse(varModelsCertificateStoreServerResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "UseSSL") + delete(additionalProperties, "ServerType") + delete(additionalProperties, "Name") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsCertificateStoreServerResponse struct { + value *ModelsCertificateStoreServerResponse + isSet bool +} + +func (v NullableModelsCertificateStoreServerResponse) Get() *ModelsCertificateStoreServerResponse { + return v.value +} + +func (v *NullableModelsCertificateStoreServerResponse) Set(val *ModelsCertificateStoreServerResponse) { + v.value = val + v.isSet = true +} + +func (v NullableModelsCertificateStoreServerResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsCertificateStoreServerResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsCertificateStoreServerResponse(val *ModelsCertificateStoreServerResponse) *NullableModelsCertificateStoreServerResponse { + return &NullableModelsCertificateStoreServerResponse{value: val, isSet: true} +} + +func (v NullableModelsCertificateStoreServerResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsCertificateStoreServerResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_certificate_store_type_property.go b/v1/api/keyfactor/model_models_certificate_store_type_property.go new file mode 100644 index 0000000..1a5def3 --- /dev/null +++ b/v1/api/keyfactor/model_models_certificate_store_type_property.go @@ -0,0 +1,380 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsCertificateStoreTypeProperty type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsCertificateStoreTypeProperty{} + +// ModelsCertificateStoreTypeProperty struct for ModelsCertificateStoreTypeProperty +type ModelsCertificateStoreTypeProperty struct { + StoreTypeId *int32 `json:"StoreTypeId,omitempty"` + Name *string `json:"Name,omitempty"` + DisplayName *string `json:"DisplayName,omitempty"` + Type *string `json:"Type,omitempty"` + DependsOn *string `json:"DependsOn,omitempty"` + DefaultValue *string `json:"DefaultValue,omitempty"` + Required *bool `json:"Required,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsCertificateStoreTypeProperty ModelsCertificateStoreTypeProperty + +// NewModelsCertificateStoreTypeProperty instantiates a new ModelsCertificateStoreTypeProperty object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsCertificateStoreTypeProperty() *ModelsCertificateStoreTypeProperty { + this := ModelsCertificateStoreTypeProperty{} + return &this +} + +// NewModelsCertificateStoreTypePropertyWithDefaults instantiates a new ModelsCertificateStoreTypeProperty object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsCertificateStoreTypePropertyWithDefaults() *ModelsCertificateStoreTypeProperty { + this := ModelsCertificateStoreTypeProperty{} + return &this +} + +// GetStoreTypeId returns the StoreTypeId field value if set, zero value otherwise. +func (o *ModelsCertificateStoreTypeProperty) GetStoreTypeId() int32 { + if o == nil || isNil(o.StoreTypeId) { + var ret int32 + return ret + } + return *o.StoreTypeId +} + +// GetStoreTypeIdOk returns a tuple with the StoreTypeId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreTypeProperty) GetStoreTypeIdOk() (*int32, bool) { + if o == nil || isNil(o.StoreTypeId) { + return nil, false + } + return o.StoreTypeId, true +} + +// HasStoreTypeId returns a boolean if a field has been set. +func (o *ModelsCertificateStoreTypeProperty) HasStoreTypeId() bool { + if o != nil && !isNil(o.StoreTypeId) { + return true + } + + return false +} + +// SetStoreTypeId gets a reference to the given int32 and assigns it to the StoreTypeId field. +func (o *ModelsCertificateStoreTypeProperty) SetStoreTypeId(v int32) { + o.StoreTypeId = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ModelsCertificateStoreTypeProperty) GetName() string { + if o == nil || isNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreTypeProperty) GetNameOk() (*string, bool) { + if o == nil || isNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ModelsCertificateStoreTypeProperty) HasName() bool { + if o != nil && !isNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ModelsCertificateStoreTypeProperty) SetName(v string) { + o.Name = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *ModelsCertificateStoreTypeProperty) GetDisplayName() string { + if o == nil || isNil(o.DisplayName) { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreTypeProperty) GetDisplayNameOk() (*string, bool) { + if o == nil || isNil(o.DisplayName) { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *ModelsCertificateStoreTypeProperty) HasDisplayName() bool { + if o != nil && !isNil(o.DisplayName) { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *ModelsCertificateStoreTypeProperty) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *ModelsCertificateStoreTypeProperty) GetType() string { + if o == nil || isNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreTypeProperty) GetTypeOk() (*string, bool) { + if o == nil || isNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *ModelsCertificateStoreTypeProperty) HasType() bool { + if o != nil && !isNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *ModelsCertificateStoreTypeProperty) SetType(v string) { + o.Type = &v +} + +// GetDependsOn returns the DependsOn field value if set, zero value otherwise. +func (o *ModelsCertificateStoreTypeProperty) GetDependsOn() string { + if o == nil || isNil(o.DependsOn) { + var ret string + return ret + } + return *o.DependsOn +} + +// GetDependsOnOk returns a tuple with the DependsOn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreTypeProperty) GetDependsOnOk() (*string, bool) { + if o == nil || isNil(o.DependsOn) { + return nil, false + } + return o.DependsOn, true +} + +// HasDependsOn returns a boolean if a field has been set. +func (o *ModelsCertificateStoreTypeProperty) HasDependsOn() bool { + if o != nil && !isNil(o.DependsOn) { + return true + } + + return false +} + +// SetDependsOn gets a reference to the given string and assigns it to the DependsOn field. +func (o *ModelsCertificateStoreTypeProperty) SetDependsOn(v string) { + o.DependsOn = &v +} + +// GetDefaultValue returns the DefaultValue field value if set, zero value otherwise. +func (o *ModelsCertificateStoreTypeProperty) GetDefaultValue() string { + if o == nil || isNil(o.DefaultValue) { + var ret string + return ret + } + return *o.DefaultValue +} + +// GetDefaultValueOk returns a tuple with the DefaultValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreTypeProperty) GetDefaultValueOk() (*string, bool) { + if o == nil || isNil(o.DefaultValue) { + return nil, false + } + return o.DefaultValue, true +} + +// HasDefaultValue returns a boolean if a field has been set. +func (o *ModelsCertificateStoreTypeProperty) HasDefaultValue() bool { + if o != nil && !isNil(o.DefaultValue) { + return true + } + + return false +} + +// SetDefaultValue gets a reference to the given string and assigns it to the DefaultValue field. +func (o *ModelsCertificateStoreTypeProperty) SetDefaultValue(v string) { + o.DefaultValue = &v +} + +// GetRequired returns the Required field value if set, zero value otherwise. +func (o *ModelsCertificateStoreTypeProperty) GetRequired() bool { + if o == nil || isNil(o.Required) { + var ret bool + return ret + } + return *o.Required +} + +// GetRequiredOk returns a tuple with the Required field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreTypeProperty) GetRequiredOk() (*bool, bool) { + if o == nil || isNil(o.Required) { + return nil, false + } + return o.Required, true +} + +// HasRequired returns a boolean if a field has been set. +func (o *ModelsCertificateStoreTypeProperty) HasRequired() bool { + if o != nil && !isNil(o.Required) { + return true + } + + return false +} + +// SetRequired gets a reference to the given bool and assigns it to the Required field. +func (o *ModelsCertificateStoreTypeProperty) SetRequired(v bool) { + o.Required = &v +} + +func (o ModelsCertificateStoreTypeProperty) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsCertificateStoreTypeProperty) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.StoreTypeId) { + toSerialize["StoreTypeId"] = o.StoreTypeId + } + if !isNil(o.Name) { + toSerialize["Name"] = o.Name + } + if !isNil(o.DisplayName) { + toSerialize["DisplayName"] = o.DisplayName + } + if !isNil(o.Type) { + toSerialize["Type"] = o.Type + } + if !isNil(o.DependsOn) { + toSerialize["DependsOn"] = o.DependsOn + } + if !isNil(o.DefaultValue) { + toSerialize["DefaultValue"] = o.DefaultValue + } + if !isNil(o.Required) { + toSerialize["Required"] = o.Required + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsCertificateStoreTypeProperty) UnmarshalJSON(bytes []byte) (err error) { + varModelsCertificateStoreTypeProperty := _ModelsCertificateStoreTypeProperty{} + + if err = json.Unmarshal(bytes, &varModelsCertificateStoreTypeProperty); err == nil { + *o = ModelsCertificateStoreTypeProperty(varModelsCertificateStoreTypeProperty) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "StoreTypeId") + delete(additionalProperties, "Name") + delete(additionalProperties, "DisplayName") + delete(additionalProperties, "Type") + delete(additionalProperties, "DependsOn") + delete(additionalProperties, "DefaultValue") + delete(additionalProperties, "Required") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsCertificateStoreTypeProperty struct { + value *ModelsCertificateStoreTypeProperty + isSet bool +} + +func (v NullableModelsCertificateStoreTypeProperty) Get() *ModelsCertificateStoreTypeProperty { + return v.value +} + +func (v *NullableModelsCertificateStoreTypeProperty) Set(val *ModelsCertificateStoreTypeProperty) { + v.value = val + v.isSet = true +} + +func (v NullableModelsCertificateStoreTypeProperty) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsCertificateStoreTypeProperty) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsCertificateStoreTypeProperty(val *ModelsCertificateStoreTypeProperty) *NullableModelsCertificateStoreTypeProperty { + return &NullableModelsCertificateStoreTypeProperty{value: val, isSet: true} +} + +func (v NullableModelsCertificateStoreTypeProperty) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsCertificateStoreTypeProperty) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_certificate_store_types_certificate_store_type_entry_parameter.go b/v1/api/keyfactor/model_models_certificate_store_types_certificate_store_type_entry_parameter.go new file mode 100644 index 0000000..e080bc8 --- /dev/null +++ b/v1/api/keyfactor/model_models_certificate_store_types_certificate_store_type_entry_parameter.go @@ -0,0 +1,417 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter{} + +// ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter struct for ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter +type ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter struct { + StoreTypeId *int32 `json:"StoreTypeId,omitempty"` + Name *string `json:"Name,omitempty"` + DisplayName *string `json:"DisplayName,omitempty"` + Type *string `json:"Type,omitempty"` + RequiredWhen *map[string]bool `json:"RequiredWhen,omitempty"` + DependsOn *string `json:"DependsOn,omitempty"` + DefaultValue *string `json:"DefaultValue,omitempty"` + Options *string `json:"Options,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter + +// NewModelsCertificateStoreTypesCertificateStoreTypeEntryParameter instantiates a new ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsCertificateStoreTypesCertificateStoreTypeEntryParameter() *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter { + this := ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter{} + return &this +} + +// NewModelsCertificateStoreTypesCertificateStoreTypeEntryParameterWithDefaults instantiates a new ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsCertificateStoreTypesCertificateStoreTypeEntryParameterWithDefaults() *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter { + this := ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter{} + return &this +} + +// GetStoreTypeId returns the StoreTypeId field value if set, zero value otherwise. +func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetStoreTypeId() int32 { + if o == nil || isNil(o.StoreTypeId) { + var ret int32 + return ret + } + return *o.StoreTypeId +} + +// GetStoreTypeIdOk returns a tuple with the StoreTypeId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetStoreTypeIdOk() (*int32, bool) { + if o == nil || isNil(o.StoreTypeId) { + return nil, false + } + return o.StoreTypeId, true +} + +// HasStoreTypeId returns a boolean if a field has been set. +func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) HasStoreTypeId() bool { + if o != nil && !isNil(o.StoreTypeId) { + return true + } + + return false +} + +// SetStoreTypeId gets a reference to the given int32 and assigns it to the StoreTypeId field. +func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) SetStoreTypeId(v int32) { + o.StoreTypeId = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetName() string { + if o == nil || isNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetNameOk() (*string, bool) { + if o == nil || isNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) HasName() bool { + if o != nil && !isNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) SetName(v string) { + o.Name = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetDisplayName() string { + if o == nil || isNil(o.DisplayName) { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetDisplayNameOk() (*string, bool) { + if o == nil || isNil(o.DisplayName) { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) HasDisplayName() bool { + if o != nil && !isNil(o.DisplayName) { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetType() string { + if o == nil || isNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetTypeOk() (*string, bool) { + if o == nil || isNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) HasType() bool { + if o != nil && !isNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) SetType(v string) { + o.Type = &v +} + +// GetRequiredWhen returns the RequiredWhen field value if set, zero value otherwise. +func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetRequiredWhen() map[string]bool { + if o == nil || isNil(o.RequiredWhen) { + var ret map[string]bool + return ret + } + return *o.RequiredWhen +} + +// GetRequiredWhenOk returns a tuple with the RequiredWhen field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetRequiredWhenOk() (*map[string]bool, bool) { + if o == nil || isNil(o.RequiredWhen) { + return nil, false + } + return o.RequiredWhen, true +} + +// HasRequiredWhen returns a boolean if a field has been set. +func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) HasRequiredWhen() bool { + if o != nil && !isNil(o.RequiredWhen) { + return true + } + + return false +} + +// SetRequiredWhen gets a reference to the given map[string]bool and assigns it to the RequiredWhen field. +func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) SetRequiredWhen(v map[string]bool) { + o.RequiredWhen = &v +} + +// GetDependsOn returns the DependsOn field value if set, zero value otherwise. +func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetDependsOn() string { + if o == nil || isNil(o.DependsOn) { + var ret string + return ret + } + return *o.DependsOn +} + +// GetDependsOnOk returns a tuple with the DependsOn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetDependsOnOk() (*string, bool) { + if o == nil || isNil(o.DependsOn) { + return nil, false + } + return o.DependsOn, true +} + +// HasDependsOn returns a boolean if a field has been set. +func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) HasDependsOn() bool { + if o != nil && !isNil(o.DependsOn) { + return true + } + + return false +} + +// SetDependsOn gets a reference to the given string and assigns it to the DependsOn field. +func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) SetDependsOn(v string) { + o.DependsOn = &v +} + +// GetDefaultValue returns the DefaultValue field value if set, zero value otherwise. +func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetDefaultValue() string { + if o == nil || isNil(o.DefaultValue) { + var ret string + return ret + } + return *o.DefaultValue +} + +// GetDefaultValueOk returns a tuple with the DefaultValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetDefaultValueOk() (*string, bool) { + if o == nil || isNil(o.DefaultValue) { + return nil, false + } + return o.DefaultValue, true +} + +// HasDefaultValue returns a boolean if a field has been set. +func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) HasDefaultValue() bool { + if o != nil && !isNil(o.DefaultValue) { + return true + } + + return false +} + +// SetDefaultValue gets a reference to the given string and assigns it to the DefaultValue field. +func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) SetDefaultValue(v string) { + o.DefaultValue = &v +} + +// GetOptions returns the Options field value if set, zero value otherwise. +func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetOptions() string { + if o == nil || isNil(o.Options) { + var ret string + return ret + } + return *o.Options +} + +// GetOptionsOk returns a tuple with the Options field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetOptionsOk() (*string, bool) { + if o == nil || isNil(o.Options) { + return nil, false + } + return o.Options, true +} + +// HasOptions returns a boolean if a field has been set. +func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) HasOptions() bool { + if o != nil && !isNil(o.Options) { + return true + } + + return false +} + +// SetOptions gets a reference to the given string and assigns it to the Options field. +func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) SetOptions(v string) { + o.Options = &v +} + +func (o ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.StoreTypeId) { + toSerialize["StoreTypeId"] = o.StoreTypeId + } + if !isNil(o.Name) { + toSerialize["Name"] = o.Name + } + if !isNil(o.DisplayName) { + toSerialize["DisplayName"] = o.DisplayName + } + if !isNil(o.Type) { + toSerialize["Type"] = o.Type + } + if !isNil(o.RequiredWhen) { + toSerialize["RequiredWhen"] = o.RequiredWhen + } + if !isNil(o.DependsOn) { + toSerialize["DependsOn"] = o.DependsOn + } + if !isNil(o.DefaultValue) { + toSerialize["DefaultValue"] = o.DefaultValue + } + if !isNil(o.Options) { + toSerialize["Options"] = o.Options + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) UnmarshalJSON(bytes []byte) (err error) { + varModelsCertificateStoreTypesCertificateStoreTypeEntryParameter := _ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter{} + + if err = json.Unmarshal(bytes, &varModelsCertificateStoreTypesCertificateStoreTypeEntryParameter); err == nil { + *o = ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter(varModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "StoreTypeId") + delete(additionalProperties, "Name") + delete(additionalProperties, "DisplayName") + delete(additionalProperties, "Type") + delete(additionalProperties, "RequiredWhen") + delete(additionalProperties, "DependsOn") + delete(additionalProperties, "DefaultValue") + delete(additionalProperties, "Options") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsCertificateStoreTypesCertificateStoreTypeEntryParameter struct { + value *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter + isSet bool +} + +func (v NullableModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) Get() *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter { + return v.value +} + +func (v *NullableModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) Set(val *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) { + v.value = val + v.isSet = true +} + +func (v NullableModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsCertificateStoreTypesCertificateStoreTypeEntryParameter(val *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) *NullableModelsCertificateStoreTypesCertificateStoreTypeEntryParameter { + return &NullableModelsCertificateStoreTypesCertificateStoreTypeEntryParameter{value: val, isSet: true} +} + +func (v NullableModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_certificate_store_update_server_request.go b/v1/api/keyfactor/model_models_certificate_store_update_server_request.go new file mode 100644 index 0000000..fcab37c --- /dev/null +++ b/v1/api/keyfactor/model_models_certificate_store_update_server_request.go @@ -0,0 +1,298 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsCertificateStoreUpdateServerRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsCertificateStoreUpdateServerRequest{} + +// ModelsCertificateStoreUpdateServerRequest struct for ModelsCertificateStoreUpdateServerRequest +type ModelsCertificateStoreUpdateServerRequest struct { + Id int32 `json:"Id"` + Username ModelsKeyfactorAPISecret `json:"Username"` + Password ModelsKeyfactorAPISecret `json:"Password"` + UseSSL bool `json:"UseSSL"` + Name string `json:"Name"` + Container *int32 `json:"Container,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsCertificateStoreUpdateServerRequest ModelsCertificateStoreUpdateServerRequest + +// NewModelsCertificateStoreUpdateServerRequest instantiates a new ModelsCertificateStoreUpdateServerRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsCertificateStoreUpdateServerRequest(id int32, username ModelsKeyfactorAPISecret, password ModelsKeyfactorAPISecret, useSSL bool, name string) *ModelsCertificateStoreUpdateServerRequest { + this := ModelsCertificateStoreUpdateServerRequest{} + this.Id = id + this.Username = username + this.Password = password + this.UseSSL = useSSL + this.Name = name + return &this +} + +// NewModelsCertificateStoreUpdateServerRequestWithDefaults instantiates a new ModelsCertificateStoreUpdateServerRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsCertificateStoreUpdateServerRequestWithDefaults() *ModelsCertificateStoreUpdateServerRequest { + this := ModelsCertificateStoreUpdateServerRequest{} + return &this +} + +// GetId returns the Id field value +func (o *ModelsCertificateStoreUpdateServerRequest) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreUpdateServerRequest) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ModelsCertificateStoreUpdateServerRequest) SetId(v int32) { + o.Id = v +} + +// GetUsername returns the Username field value +func (o *ModelsCertificateStoreUpdateServerRequest) GetUsername() ModelsKeyfactorAPISecret { + if o == nil { + var ret ModelsKeyfactorAPISecret + return ret + } + + return o.Username +} + +// GetUsernameOk returns a tuple with the Username field value +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreUpdateServerRequest) GetUsernameOk() (*ModelsKeyfactorAPISecret, bool) { + if o == nil { + return nil, false + } + return &o.Username, true +} + +// SetUsername sets field value +func (o *ModelsCertificateStoreUpdateServerRequest) SetUsername(v ModelsKeyfactorAPISecret) { + o.Username = v +} + +// GetPassword returns the Password field value +func (o *ModelsCertificateStoreUpdateServerRequest) GetPassword() ModelsKeyfactorAPISecret { + if o == nil { + var ret ModelsKeyfactorAPISecret + return ret + } + + return o.Password +} + +// GetPasswordOk returns a tuple with the Password field value +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreUpdateServerRequest) GetPasswordOk() (*ModelsKeyfactorAPISecret, bool) { + if o == nil { + return nil, false + } + return &o.Password, true +} + +// SetPassword sets field value +func (o *ModelsCertificateStoreUpdateServerRequest) SetPassword(v ModelsKeyfactorAPISecret) { + o.Password = v +} + +// GetUseSSL returns the UseSSL field value +func (o *ModelsCertificateStoreUpdateServerRequest) GetUseSSL() bool { + if o == nil { + var ret bool + return ret + } + + return o.UseSSL +} + +// GetUseSSLOk returns a tuple with the UseSSL field value +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreUpdateServerRequest) GetUseSSLOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.UseSSL, true +} + +// SetUseSSL sets field value +func (o *ModelsCertificateStoreUpdateServerRequest) SetUseSSL(v bool) { + o.UseSSL = v +} + +// GetName returns the Name field value +func (o *ModelsCertificateStoreUpdateServerRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreUpdateServerRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ModelsCertificateStoreUpdateServerRequest) SetName(v string) { + o.Name = v +} + +// GetContainer returns the Container field value if set, zero value otherwise. +func (o *ModelsCertificateStoreUpdateServerRequest) GetContainer() int32 { + if o == nil || isNil(o.Container) { + var ret int32 + return ret + } + return *o.Container +} + +// GetContainerOk returns a tuple with the Container field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoreUpdateServerRequest) GetContainerOk() (*int32, bool) { + if o == nil || isNil(o.Container) { + return nil, false + } + return o.Container, true +} + +// HasContainer returns a boolean if a field has been set. +func (o *ModelsCertificateStoreUpdateServerRequest) HasContainer() bool { + if o != nil && !isNil(o.Container) { + return true + } + + return false +} + +// SetContainer gets a reference to the given int32 and assigns it to the Container field. +func (o *ModelsCertificateStoreUpdateServerRequest) SetContainer(v int32) { + o.Container = &v +} + +func (o ModelsCertificateStoreUpdateServerRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsCertificateStoreUpdateServerRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Id"] = o.Id + toSerialize["Username"] = o.Username + toSerialize["Password"] = o.Password + toSerialize["UseSSL"] = o.UseSSL + toSerialize["Name"] = o.Name + if !isNil(o.Container) { + toSerialize["Container"] = o.Container + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsCertificateStoreUpdateServerRequest) UnmarshalJSON(bytes []byte) (err error) { + varModelsCertificateStoreUpdateServerRequest := _ModelsCertificateStoreUpdateServerRequest{} + + if err = json.Unmarshal(bytes, &varModelsCertificateStoreUpdateServerRequest); err == nil { + *o = ModelsCertificateStoreUpdateServerRequest(varModelsCertificateStoreUpdateServerRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "Username") + delete(additionalProperties, "Password") + delete(additionalProperties, "UseSSL") + delete(additionalProperties, "Name") + delete(additionalProperties, "Container") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsCertificateStoreUpdateServerRequest struct { + value *ModelsCertificateStoreUpdateServerRequest + isSet bool +} + +func (v NullableModelsCertificateStoreUpdateServerRequest) Get() *ModelsCertificateStoreUpdateServerRequest { + return v.value +} + +func (v *NullableModelsCertificateStoreUpdateServerRequest) Set(val *ModelsCertificateStoreUpdateServerRequest) { + v.value = val + v.isSet = true +} + +func (v NullableModelsCertificateStoreUpdateServerRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsCertificateStoreUpdateServerRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsCertificateStoreUpdateServerRequest(val *ModelsCertificateStoreUpdateServerRequest) *NullableModelsCertificateStoreUpdateServerRequest { + return &NullableModelsCertificateStoreUpdateServerRequest{value: val, isSet: true} +} + +func (v NullableModelsCertificateStoreUpdateServerRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsCertificateStoreUpdateServerRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_certificate_stores_certificate_store_create_request.go b/v1/api/keyfactor/model_models_certificate_stores_certificate_store_create_request.go new file mode 100644 index 0000000..ac772fb --- /dev/null +++ b/v1/api/keyfactor/model_models_certificate_stores_certificate_store_create_request.go @@ -0,0 +1,491 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsCertificateStoresCertificateStoreCreateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsCertificateStoresCertificateStoreCreateRequest{} + +// ModelsCertificateStoresCertificateStoreCreateRequest struct for ModelsCertificateStoresCertificateStoreCreateRequest +type ModelsCertificateStoresCertificateStoreCreateRequest struct { + ContainerId *int32 `json:"ContainerId,omitempty"` + ClientMachine *string `json:"ClientMachine,omitempty"` + Storepath *string `json:"Storepath,omitempty"` + CertStoreType *int32 `json:"CertStoreType,omitempty"` + CreateIfMissing *bool `json:"CreateIfMissing,omitempty"` + Properties *string `json:"Properties,omitempty"` + AgentId *string `json:"AgentId,omitempty"` + AgentAssigned *bool `json:"AgentAssigned,omitempty"` + InventorySchedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"InventorySchedule,omitempty"` + Password *ModelsKeyfactorAPISecret `json:"Password,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsCertificateStoresCertificateStoreCreateRequest ModelsCertificateStoresCertificateStoreCreateRequest + +// NewModelsCertificateStoresCertificateStoreCreateRequest instantiates a new ModelsCertificateStoresCertificateStoreCreateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsCertificateStoresCertificateStoreCreateRequest() *ModelsCertificateStoresCertificateStoreCreateRequest { + this := ModelsCertificateStoresCertificateStoreCreateRequest{} + return &this +} + +// NewModelsCertificateStoresCertificateStoreCreateRequestWithDefaults instantiates a new ModelsCertificateStoresCertificateStoreCreateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsCertificateStoresCertificateStoreCreateRequestWithDefaults() *ModelsCertificateStoresCertificateStoreCreateRequest { + this := ModelsCertificateStoresCertificateStoreCreateRequest{} + return &this +} + +// GetContainerId returns the ContainerId field value if set, zero value otherwise. +func (o *ModelsCertificateStoresCertificateStoreCreateRequest) GetContainerId() int32 { + if o == nil || isNil(o.ContainerId) { + var ret int32 + return ret + } + return *o.ContainerId +} + +// GetContainerIdOk returns a tuple with the ContainerId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoresCertificateStoreCreateRequest) GetContainerIdOk() (*int32, bool) { + if o == nil || isNil(o.ContainerId) { + return nil, false + } + return o.ContainerId, true +} + +// HasContainerId returns a boolean if a field has been set. +func (o *ModelsCertificateStoresCertificateStoreCreateRequest) HasContainerId() bool { + if o != nil && !isNil(o.ContainerId) { + return true + } + + return false +} + +// SetContainerId gets a reference to the given int32 and assigns it to the ContainerId field. +func (o *ModelsCertificateStoresCertificateStoreCreateRequest) SetContainerId(v int32) { + o.ContainerId = &v +} + +// GetClientMachine returns the ClientMachine field value if set, zero value otherwise. +func (o *ModelsCertificateStoresCertificateStoreCreateRequest) GetClientMachine() string { + if o == nil || isNil(o.ClientMachine) { + var ret string + return ret + } + return *o.ClientMachine +} + +// GetClientMachineOk returns a tuple with the ClientMachine field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoresCertificateStoreCreateRequest) GetClientMachineOk() (*string, bool) { + if o == nil || isNil(o.ClientMachine) { + return nil, false + } + return o.ClientMachine, true +} + +// HasClientMachine returns a boolean if a field has been set. +func (o *ModelsCertificateStoresCertificateStoreCreateRequest) HasClientMachine() bool { + if o != nil && !isNil(o.ClientMachine) { + return true + } + + return false +} + +// SetClientMachine gets a reference to the given string and assigns it to the ClientMachine field. +func (o *ModelsCertificateStoresCertificateStoreCreateRequest) SetClientMachine(v string) { + o.ClientMachine = &v +} + +// GetStorepath returns the Storepath field value if set, zero value otherwise. +func (o *ModelsCertificateStoresCertificateStoreCreateRequest) GetStorepath() string { + if o == nil || isNil(o.Storepath) { + var ret string + return ret + } + return *o.Storepath +} + +// GetStorepathOk returns a tuple with the Storepath field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoresCertificateStoreCreateRequest) GetStorepathOk() (*string, bool) { + if o == nil || isNil(o.Storepath) { + return nil, false + } + return o.Storepath, true +} + +// HasStorepath returns a boolean if a field has been set. +func (o *ModelsCertificateStoresCertificateStoreCreateRequest) HasStorepath() bool { + if o != nil && !isNil(o.Storepath) { + return true + } + + return false +} + +// SetStorepath gets a reference to the given string and assigns it to the Storepath field. +func (o *ModelsCertificateStoresCertificateStoreCreateRequest) SetStorepath(v string) { + o.Storepath = &v +} + +// GetCertStoreType returns the CertStoreType field value if set, zero value otherwise. +func (o *ModelsCertificateStoresCertificateStoreCreateRequest) GetCertStoreType() int32 { + if o == nil || isNil(o.CertStoreType) { + var ret int32 + return ret + } + return *o.CertStoreType +} + +// GetCertStoreTypeOk returns a tuple with the CertStoreType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoresCertificateStoreCreateRequest) GetCertStoreTypeOk() (*int32, bool) { + if o == nil || isNil(o.CertStoreType) { + return nil, false + } + return o.CertStoreType, true +} + +// HasCertStoreType returns a boolean if a field has been set. +func (o *ModelsCertificateStoresCertificateStoreCreateRequest) HasCertStoreType() bool { + if o != nil && !isNil(o.CertStoreType) { + return true + } + + return false +} + +// SetCertStoreType gets a reference to the given int32 and assigns it to the CertStoreType field. +func (o *ModelsCertificateStoresCertificateStoreCreateRequest) SetCertStoreType(v int32) { + o.CertStoreType = &v +} + +// GetCreateIfMissing returns the CreateIfMissing field value if set, zero value otherwise. +func (o *ModelsCertificateStoresCertificateStoreCreateRequest) GetCreateIfMissing() bool { + if o == nil || isNil(o.CreateIfMissing) { + var ret bool + return ret + } + return *o.CreateIfMissing +} + +// GetCreateIfMissingOk returns a tuple with the CreateIfMissing field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoresCertificateStoreCreateRequest) GetCreateIfMissingOk() (*bool, bool) { + if o == nil || isNil(o.CreateIfMissing) { + return nil, false + } + return o.CreateIfMissing, true +} + +// HasCreateIfMissing returns a boolean if a field has been set. +func (o *ModelsCertificateStoresCertificateStoreCreateRequest) HasCreateIfMissing() bool { + if o != nil && !isNil(o.CreateIfMissing) { + return true + } + + return false +} + +// SetCreateIfMissing gets a reference to the given bool and assigns it to the CreateIfMissing field. +func (o *ModelsCertificateStoresCertificateStoreCreateRequest) SetCreateIfMissing(v bool) { + o.CreateIfMissing = &v +} + +// GetProperties returns the Properties field value if set, zero value otherwise. +func (o *ModelsCertificateStoresCertificateStoreCreateRequest) GetProperties() string { + if o == nil || isNil(o.Properties) { + var ret string + return ret + } + return *o.Properties +} + +// GetPropertiesOk returns a tuple with the Properties field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoresCertificateStoreCreateRequest) GetPropertiesOk() (*string, bool) { + if o == nil || isNil(o.Properties) { + return nil, false + } + return o.Properties, true +} + +// HasProperties returns a boolean if a field has been set. +func (o *ModelsCertificateStoresCertificateStoreCreateRequest) HasProperties() bool { + if o != nil && !isNil(o.Properties) { + return true + } + + return false +} + +// SetProperties gets a reference to the given string and assigns it to the Properties field. +func (o *ModelsCertificateStoresCertificateStoreCreateRequest) SetProperties(v string) { + o.Properties = &v +} + +// GetAgentId returns the AgentId field value if set, zero value otherwise. +func (o *ModelsCertificateStoresCertificateStoreCreateRequest) GetAgentId() string { + if o == nil || isNil(o.AgentId) { + var ret string + return ret + } + return *o.AgentId +} + +// GetAgentIdOk returns a tuple with the AgentId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoresCertificateStoreCreateRequest) GetAgentIdOk() (*string, bool) { + if o == nil || isNil(o.AgentId) { + return nil, false + } + return o.AgentId, true +} + +// HasAgentId returns a boolean if a field has been set. +func (o *ModelsCertificateStoresCertificateStoreCreateRequest) HasAgentId() bool { + if o != nil && !isNil(o.AgentId) { + return true + } + + return false +} + +// SetAgentId gets a reference to the given string and assigns it to the AgentId field. +func (o *ModelsCertificateStoresCertificateStoreCreateRequest) SetAgentId(v string) { + o.AgentId = &v +} + +// GetAgentAssigned returns the AgentAssigned field value if set, zero value otherwise. +func (o *ModelsCertificateStoresCertificateStoreCreateRequest) GetAgentAssigned() bool { + if o == nil || isNil(o.AgentAssigned) { + var ret bool + return ret + } + return *o.AgentAssigned +} + +// GetAgentAssignedOk returns a tuple with the AgentAssigned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoresCertificateStoreCreateRequest) GetAgentAssignedOk() (*bool, bool) { + if o == nil || isNil(o.AgentAssigned) { + return nil, false + } + return o.AgentAssigned, true +} + +// HasAgentAssigned returns a boolean if a field has been set. +func (o *ModelsCertificateStoresCertificateStoreCreateRequest) HasAgentAssigned() bool { + if o != nil && !isNil(o.AgentAssigned) { + return true + } + + return false +} + +// SetAgentAssigned gets a reference to the given bool and assigns it to the AgentAssigned field. +func (o *ModelsCertificateStoresCertificateStoreCreateRequest) SetAgentAssigned(v bool) { + o.AgentAssigned = &v +} + +// GetInventorySchedule returns the InventorySchedule field value if set, zero value otherwise. +func (o *ModelsCertificateStoresCertificateStoreCreateRequest) GetInventorySchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.InventorySchedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.InventorySchedule +} + +// GetInventoryScheduleOk returns a tuple with the InventorySchedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoresCertificateStoreCreateRequest) GetInventoryScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.InventorySchedule) { + return nil, false + } + return o.InventorySchedule, true +} + +// HasInventorySchedule returns a boolean if a field has been set. +func (o *ModelsCertificateStoresCertificateStoreCreateRequest) HasInventorySchedule() bool { + if o != nil && !isNil(o.InventorySchedule) { + return true + } + + return false +} + +// SetInventorySchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the InventorySchedule field. +func (o *ModelsCertificateStoresCertificateStoreCreateRequest) SetInventorySchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.InventorySchedule = &v +} + +// GetPassword returns the Password field value if set, zero value otherwise. +func (o *ModelsCertificateStoresCertificateStoreCreateRequest) GetPassword() ModelsKeyfactorAPISecret { + if o == nil || isNil(o.Password) { + var ret ModelsKeyfactorAPISecret + return ret + } + return *o.Password +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoresCertificateStoreCreateRequest) GetPasswordOk() (*ModelsKeyfactorAPISecret, bool) { + if o == nil || isNil(o.Password) { + return nil, false + } + return o.Password, true +} + +// HasPassword returns a boolean if a field has been set. +func (o *ModelsCertificateStoresCertificateStoreCreateRequest) HasPassword() bool { + if o != nil && !isNil(o.Password) { + return true + } + + return false +} + +// SetPassword gets a reference to the given ModelsKeyfactorAPISecret and assigns it to the Password field. +func (o *ModelsCertificateStoresCertificateStoreCreateRequest) SetPassword(v ModelsKeyfactorAPISecret) { + o.Password = &v +} + +func (o ModelsCertificateStoresCertificateStoreCreateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsCertificateStoresCertificateStoreCreateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.ContainerId) { + toSerialize["ContainerId"] = o.ContainerId + } + if !isNil(o.ClientMachine) { + toSerialize["ClientMachine"] = o.ClientMachine + } + if !isNil(o.Storepath) { + toSerialize["Storepath"] = o.Storepath + } + if !isNil(o.CertStoreType) { + toSerialize["CertStoreType"] = o.CertStoreType + } + if !isNil(o.CreateIfMissing) { + toSerialize["CreateIfMissing"] = o.CreateIfMissing + } + if !isNil(o.Properties) { + toSerialize["Properties"] = o.Properties + } + if !isNil(o.AgentId) { + toSerialize["AgentId"] = o.AgentId + } + if !isNil(o.AgentAssigned) { + toSerialize["AgentAssigned"] = o.AgentAssigned + } + if !isNil(o.InventorySchedule) { + toSerialize["InventorySchedule"] = o.InventorySchedule + } + if !isNil(o.Password) { + toSerialize["Password"] = o.Password + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsCertificateStoresCertificateStoreCreateRequest) UnmarshalJSON(bytes []byte) (err error) { + varModelsCertificateStoresCertificateStoreCreateRequest := _ModelsCertificateStoresCertificateStoreCreateRequest{} + + if err = json.Unmarshal(bytes, &varModelsCertificateStoresCertificateStoreCreateRequest); err == nil { + *o = ModelsCertificateStoresCertificateStoreCreateRequest(varModelsCertificateStoresCertificateStoreCreateRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "ContainerId") + delete(additionalProperties, "ClientMachine") + delete(additionalProperties, "Storepath") + delete(additionalProperties, "CertStoreType") + delete(additionalProperties, "CreateIfMissing") + delete(additionalProperties, "Properties") + delete(additionalProperties, "AgentId") + delete(additionalProperties, "AgentAssigned") + delete(additionalProperties, "InventorySchedule") + delete(additionalProperties, "Password") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsCertificateStoresCertificateStoreCreateRequest struct { + value *ModelsCertificateStoresCertificateStoreCreateRequest + isSet bool +} + +func (v NullableModelsCertificateStoresCertificateStoreCreateRequest) Get() *ModelsCertificateStoresCertificateStoreCreateRequest { + return v.value +} + +func (v *NullableModelsCertificateStoresCertificateStoreCreateRequest) Set(val *ModelsCertificateStoresCertificateStoreCreateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableModelsCertificateStoresCertificateStoreCreateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsCertificateStoresCertificateStoreCreateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsCertificateStoresCertificateStoreCreateRequest(val *ModelsCertificateStoresCertificateStoreCreateRequest) *NullableModelsCertificateStoresCertificateStoreCreateRequest { + return &NullableModelsCertificateStoresCertificateStoreCreateRequest{value: val, isSet: true} +} + +func (v NullableModelsCertificateStoresCertificateStoreCreateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsCertificateStoresCertificateStoreCreateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_certificate_stores_certificate_store_update_request.go b/v1/api/keyfactor/model_models_certificate_stores_certificate_store_update_request.go new file mode 100644 index 0000000..3289401 --- /dev/null +++ b/v1/api/keyfactor/model_models_certificate_stores_certificate_store_update_request.go @@ -0,0 +1,380 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsCertificateStoresCertificateStoreUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsCertificateStoresCertificateStoreUpdateRequest{} + +// ModelsCertificateStoresCertificateStoreUpdateRequest struct for ModelsCertificateStoresCertificateStoreUpdateRequest +type ModelsCertificateStoresCertificateStoreUpdateRequest struct { + Id *string `json:"Id,omitempty"` + ContainerId *int32 `json:"ContainerId,omitempty"` + CreateIfMissing *bool `json:"CreateIfMissing,omitempty"` + Properties *string `json:"Properties,omitempty"` + AgentId *string `json:"AgentId,omitempty"` + InventorySchedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"InventorySchedule,omitempty"` + Password *ModelsKeyfactorAPISecret `json:"Password,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsCertificateStoresCertificateStoreUpdateRequest ModelsCertificateStoresCertificateStoreUpdateRequest + +// NewModelsCertificateStoresCertificateStoreUpdateRequest instantiates a new ModelsCertificateStoresCertificateStoreUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsCertificateStoresCertificateStoreUpdateRequest() *ModelsCertificateStoresCertificateStoreUpdateRequest { + this := ModelsCertificateStoresCertificateStoreUpdateRequest{} + return &this +} + +// NewModelsCertificateStoresCertificateStoreUpdateRequestWithDefaults instantiates a new ModelsCertificateStoresCertificateStoreUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsCertificateStoresCertificateStoreUpdateRequestWithDefaults() *ModelsCertificateStoresCertificateStoreUpdateRequest { + this := ModelsCertificateStoresCertificateStoreUpdateRequest{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) GetId() string { + if o == nil || isNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) GetIdOk() (*string, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) SetId(v string) { + o.Id = &v +} + +// GetContainerId returns the ContainerId field value if set, zero value otherwise. +func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) GetContainerId() int32 { + if o == nil || isNil(o.ContainerId) { + var ret int32 + return ret + } + return *o.ContainerId +} + +// GetContainerIdOk returns a tuple with the ContainerId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) GetContainerIdOk() (*int32, bool) { + if o == nil || isNil(o.ContainerId) { + return nil, false + } + return o.ContainerId, true +} + +// HasContainerId returns a boolean if a field has been set. +func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) HasContainerId() bool { + if o != nil && !isNil(o.ContainerId) { + return true + } + + return false +} + +// SetContainerId gets a reference to the given int32 and assigns it to the ContainerId field. +func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) SetContainerId(v int32) { + o.ContainerId = &v +} + +// GetCreateIfMissing returns the CreateIfMissing field value if set, zero value otherwise. +func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) GetCreateIfMissing() bool { + if o == nil || isNil(o.CreateIfMissing) { + var ret bool + return ret + } + return *o.CreateIfMissing +} + +// GetCreateIfMissingOk returns a tuple with the CreateIfMissing field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) GetCreateIfMissingOk() (*bool, bool) { + if o == nil || isNil(o.CreateIfMissing) { + return nil, false + } + return o.CreateIfMissing, true +} + +// HasCreateIfMissing returns a boolean if a field has been set. +func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) HasCreateIfMissing() bool { + if o != nil && !isNil(o.CreateIfMissing) { + return true + } + + return false +} + +// SetCreateIfMissing gets a reference to the given bool and assigns it to the CreateIfMissing field. +func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) SetCreateIfMissing(v bool) { + o.CreateIfMissing = &v +} + +// GetProperties returns the Properties field value if set, zero value otherwise. +func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) GetProperties() string { + if o == nil || isNil(o.Properties) { + var ret string + return ret + } + return *o.Properties +} + +// GetPropertiesOk returns a tuple with the Properties field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) GetPropertiesOk() (*string, bool) { + if o == nil || isNil(o.Properties) { + return nil, false + } + return o.Properties, true +} + +// HasProperties returns a boolean if a field has been set. +func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) HasProperties() bool { + if o != nil && !isNil(o.Properties) { + return true + } + + return false +} + +// SetProperties gets a reference to the given string and assigns it to the Properties field. +func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) SetProperties(v string) { + o.Properties = &v +} + +// GetAgentId returns the AgentId field value if set, zero value otherwise. +func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) GetAgentId() string { + if o == nil || isNil(o.AgentId) { + var ret string + return ret + } + return *o.AgentId +} + +// GetAgentIdOk returns a tuple with the AgentId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) GetAgentIdOk() (*string, bool) { + if o == nil || isNil(o.AgentId) { + return nil, false + } + return o.AgentId, true +} + +// HasAgentId returns a boolean if a field has been set. +func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) HasAgentId() bool { + if o != nil && !isNil(o.AgentId) { + return true + } + + return false +} + +// SetAgentId gets a reference to the given string and assigns it to the AgentId field. +func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) SetAgentId(v string) { + o.AgentId = &v +} + +// GetInventorySchedule returns the InventorySchedule field value if set, zero value otherwise. +func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) GetInventorySchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.InventorySchedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.InventorySchedule +} + +// GetInventoryScheduleOk returns a tuple with the InventorySchedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) GetInventoryScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.InventorySchedule) { + return nil, false + } + return o.InventorySchedule, true +} + +// HasInventorySchedule returns a boolean if a field has been set. +func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) HasInventorySchedule() bool { + if o != nil && !isNil(o.InventorySchedule) { + return true + } + + return false +} + +// SetInventorySchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the InventorySchedule field. +func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) SetInventorySchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.InventorySchedule = &v +} + +// GetPassword returns the Password field value if set, zero value otherwise. +func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) GetPassword() ModelsKeyfactorAPISecret { + if o == nil || isNil(o.Password) { + var ret ModelsKeyfactorAPISecret + return ret + } + return *o.Password +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) GetPasswordOk() (*ModelsKeyfactorAPISecret, bool) { + if o == nil || isNil(o.Password) { + return nil, false + } + return o.Password, true +} + +// HasPassword returns a boolean if a field has been set. +func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) HasPassword() bool { + if o != nil && !isNil(o.Password) { + return true + } + + return false +} + +// SetPassword gets a reference to the given ModelsKeyfactorAPISecret and assigns it to the Password field. +func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) SetPassword(v ModelsKeyfactorAPISecret) { + o.Password = &v +} + +func (o ModelsCertificateStoresCertificateStoreUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsCertificateStoresCertificateStoreUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.ContainerId) { + toSerialize["ContainerId"] = o.ContainerId + } + if !isNil(o.CreateIfMissing) { + toSerialize["CreateIfMissing"] = o.CreateIfMissing + } + if !isNil(o.Properties) { + toSerialize["Properties"] = o.Properties + } + if !isNil(o.AgentId) { + toSerialize["AgentId"] = o.AgentId + } + if !isNil(o.InventorySchedule) { + toSerialize["InventorySchedule"] = o.InventorySchedule + } + if !isNil(o.Password) { + toSerialize["Password"] = o.Password + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) UnmarshalJSON(bytes []byte) (err error) { + varModelsCertificateStoresCertificateStoreUpdateRequest := _ModelsCertificateStoresCertificateStoreUpdateRequest{} + + if err = json.Unmarshal(bytes, &varModelsCertificateStoresCertificateStoreUpdateRequest); err == nil { + *o = ModelsCertificateStoresCertificateStoreUpdateRequest(varModelsCertificateStoresCertificateStoreUpdateRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "ContainerId") + delete(additionalProperties, "CreateIfMissing") + delete(additionalProperties, "Properties") + delete(additionalProperties, "AgentId") + delete(additionalProperties, "InventorySchedule") + delete(additionalProperties, "Password") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsCertificateStoresCertificateStoreUpdateRequest struct { + value *ModelsCertificateStoresCertificateStoreUpdateRequest + isSet bool +} + +func (v NullableModelsCertificateStoresCertificateStoreUpdateRequest) Get() *ModelsCertificateStoresCertificateStoreUpdateRequest { + return v.value +} + +func (v *NullableModelsCertificateStoresCertificateStoreUpdateRequest) Set(val *ModelsCertificateStoresCertificateStoreUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableModelsCertificateStoresCertificateStoreUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsCertificateStoresCertificateStoreUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsCertificateStoresCertificateStoreUpdateRequest(val *ModelsCertificateStoresCertificateStoreUpdateRequest) *NullableModelsCertificateStoresCertificateStoreUpdateRequest { + return &NullableModelsCertificateStoresCertificateStoreUpdateRequest{value: val, isSet: true} +} + +func (v NullableModelsCertificateStoresCertificateStoreUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsCertificateStoresCertificateStoreUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_certificate_validation_response.go b/v1/api/keyfactor/model_models_certificate_validation_response.go new file mode 100644 index 0000000..b8b9118 --- /dev/null +++ b/v1/api/keyfactor/model_models_certificate_validation_response.go @@ -0,0 +1,197 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsCertificateValidationResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsCertificateValidationResponse{} + +// ModelsCertificateValidationResponse struct for ModelsCertificateValidationResponse +type ModelsCertificateValidationResponse struct { + // States whether the certificate is valid or not + Valid *bool `json:"Valid,omitempty"` + // Lists any reasons why the certificate is not valid + Results *map[string]string `json:"Results,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsCertificateValidationResponse ModelsCertificateValidationResponse + +// NewModelsCertificateValidationResponse instantiates a new ModelsCertificateValidationResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsCertificateValidationResponse() *ModelsCertificateValidationResponse { + this := ModelsCertificateValidationResponse{} + return &this +} + +// NewModelsCertificateValidationResponseWithDefaults instantiates a new ModelsCertificateValidationResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsCertificateValidationResponseWithDefaults() *ModelsCertificateValidationResponse { + this := ModelsCertificateValidationResponse{} + return &this +} + +// GetValid returns the Valid field value if set, zero value otherwise. +func (o *ModelsCertificateValidationResponse) GetValid() bool { + if o == nil || isNil(o.Valid) { + var ret bool + return ret + } + return *o.Valid +} + +// GetValidOk returns a tuple with the Valid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateValidationResponse) GetValidOk() (*bool, bool) { + if o == nil || isNil(o.Valid) { + return nil, false + } + return o.Valid, true +} + +// HasValid returns a boolean if a field has been set. +func (o *ModelsCertificateValidationResponse) HasValid() bool { + if o != nil && !isNil(o.Valid) { + return true + } + + return false +} + +// SetValid gets a reference to the given bool and assigns it to the Valid field. +func (o *ModelsCertificateValidationResponse) SetValid(v bool) { + o.Valid = &v +} + +// GetResults returns the Results field value if set, zero value otherwise. +func (o *ModelsCertificateValidationResponse) GetResults() map[string]string { + if o == nil || isNil(o.Results) { + var ret map[string]string + return ret + } + return *o.Results +} + +// GetResultsOk returns a tuple with the Results field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCertificateValidationResponse) GetResultsOk() (*map[string]string, bool) { + if o == nil || isNil(o.Results) { + return nil, false + } + return o.Results, true +} + +// HasResults returns a boolean if a field has been set. +func (o *ModelsCertificateValidationResponse) HasResults() bool { + if o != nil && !isNil(o.Results) { + return true + } + + return false +} + +// SetResults gets a reference to the given map[string]string and assigns it to the Results field. +func (o *ModelsCertificateValidationResponse) SetResults(v map[string]string) { + o.Results = &v +} + +func (o ModelsCertificateValidationResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsCertificateValidationResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Valid) { + toSerialize["Valid"] = o.Valid + } + if !isNil(o.Results) { + toSerialize["Results"] = o.Results + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsCertificateValidationResponse) UnmarshalJSON(bytes []byte) (err error) { + varModelsCertificateValidationResponse := _ModelsCertificateValidationResponse{} + + if err = json.Unmarshal(bytes, &varModelsCertificateValidationResponse); err == nil { + *o = ModelsCertificateValidationResponse(varModelsCertificateValidationResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Valid") + delete(additionalProperties, "Results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsCertificateValidationResponse struct { + value *ModelsCertificateValidationResponse + isSet bool +} + +func (v NullableModelsCertificateValidationResponse) Get() *ModelsCertificateValidationResponse { + return v.value +} + +func (v *NullableModelsCertificateValidationResponse) Set(val *ModelsCertificateValidationResponse) { + v.value = val + v.isSet = true +} + +func (v NullableModelsCertificateValidationResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsCertificateValidationResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsCertificateValidationResponse(val *ModelsCertificateValidationResponse) *NullableModelsCertificateValidationResponse { + return &NullableModelsCertificateValidationResponse{value: val, isSet: true} +} + +func (v NullableModelsCertificateValidationResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsCertificateValidationResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_collection_role_permissions.go b/v1/api/keyfactor/model_models_collection_role_permissions.go new file mode 100644 index 0000000..ec59ec3 --- /dev/null +++ b/v1/api/keyfactor/model_models_collection_role_permissions.go @@ -0,0 +1,195 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsCollectionRolePermissions type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsCollectionRolePermissions{} + +// ModelsCollectionRolePermissions struct for ModelsCollectionRolePermissions +type ModelsCollectionRolePermissions struct { + RoleId *int32 `json:"RoleId,omitempty"` + Permissions []string `json:"Permissions,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsCollectionRolePermissions ModelsCollectionRolePermissions + +// NewModelsCollectionRolePermissions instantiates a new ModelsCollectionRolePermissions object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsCollectionRolePermissions() *ModelsCollectionRolePermissions { + this := ModelsCollectionRolePermissions{} + return &this +} + +// NewModelsCollectionRolePermissionsWithDefaults instantiates a new ModelsCollectionRolePermissions object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsCollectionRolePermissionsWithDefaults() *ModelsCollectionRolePermissions { + this := ModelsCollectionRolePermissions{} + return &this +} + +// GetRoleId returns the RoleId field value if set, zero value otherwise. +func (o *ModelsCollectionRolePermissions) GetRoleId() int32 { + if o == nil || isNil(o.RoleId) { + var ret int32 + return ret + } + return *o.RoleId +} + +// GetRoleIdOk returns a tuple with the RoleId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCollectionRolePermissions) GetRoleIdOk() (*int32, bool) { + if o == nil || isNil(o.RoleId) { + return nil, false + } + return o.RoleId, true +} + +// HasRoleId returns a boolean if a field has been set. +func (o *ModelsCollectionRolePermissions) HasRoleId() bool { + if o != nil && !isNil(o.RoleId) { + return true + } + + return false +} + +// SetRoleId gets a reference to the given int32 and assigns it to the RoleId field. +func (o *ModelsCollectionRolePermissions) SetRoleId(v int32) { + o.RoleId = &v +} + +// GetPermissions returns the Permissions field value if set, zero value otherwise. +func (o *ModelsCollectionRolePermissions) GetPermissions() []string { + if o == nil || isNil(o.Permissions) { + var ret []string + return ret + } + return o.Permissions +} + +// GetPermissionsOk returns a tuple with the Permissions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCollectionRolePermissions) GetPermissionsOk() ([]string, bool) { + if o == nil || isNil(o.Permissions) { + return nil, false + } + return o.Permissions, true +} + +// HasPermissions returns a boolean if a field has been set. +func (o *ModelsCollectionRolePermissions) HasPermissions() bool { + if o != nil && !isNil(o.Permissions) { + return true + } + + return false +} + +// SetPermissions gets a reference to the given []string and assigns it to the Permissions field. +func (o *ModelsCollectionRolePermissions) SetPermissions(v []string) { + o.Permissions = v +} + +func (o ModelsCollectionRolePermissions) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsCollectionRolePermissions) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.RoleId) { + toSerialize["RoleId"] = o.RoleId + } + if !isNil(o.Permissions) { + toSerialize["Permissions"] = o.Permissions + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsCollectionRolePermissions) UnmarshalJSON(bytes []byte) (err error) { + varModelsCollectionRolePermissions := _ModelsCollectionRolePermissions{} + + if err = json.Unmarshal(bytes, &varModelsCollectionRolePermissions); err == nil { + *o = ModelsCollectionRolePermissions(varModelsCollectionRolePermissions) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "RoleId") + delete(additionalProperties, "Permissions") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsCollectionRolePermissions struct { + value *ModelsCollectionRolePermissions + isSet bool +} + +func (v NullableModelsCollectionRolePermissions) Get() *ModelsCollectionRolePermissions { + return v.value +} + +func (v *NullableModelsCollectionRolePermissions) Set(val *ModelsCollectionRolePermissions) { + v.value = val + v.isSet = true +} + +func (v NullableModelsCollectionRolePermissions) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsCollectionRolePermissions) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsCollectionRolePermissions(val *ModelsCollectionRolePermissions) *NullableModelsCollectionRolePermissions { + return &NullableModelsCollectionRolePermissions{value: val, isSet: true} +} + +func (v NullableModelsCollectionRolePermissions) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsCollectionRolePermissions) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_container_assignment.go b/v1/api/keyfactor/model_models_container_assignment.go new file mode 100644 index 0000000..4bcfe3e --- /dev/null +++ b/v1/api/keyfactor/model_models_container_assignment.go @@ -0,0 +1,260 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsContainerAssignment type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsContainerAssignment{} + +// ModelsContainerAssignment struct for ModelsContainerAssignment +type ModelsContainerAssignment struct { + CertStoreContainerId *int32 `json:"CertStoreContainerId,omitempty"` + NewContainerName *string `json:"NewContainerName,omitempty"` + NewContainerType *int32 `json:"NewContainerType,omitempty"` + KeystoreIds []string `json:"KeystoreIds"` + AdditionalProperties map[string]interface{} +} + +type _ModelsContainerAssignment ModelsContainerAssignment + +// NewModelsContainerAssignment instantiates a new ModelsContainerAssignment object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsContainerAssignment(keystoreIds []string) *ModelsContainerAssignment { + this := ModelsContainerAssignment{} + this.KeystoreIds = keystoreIds + return &this +} + +// NewModelsContainerAssignmentWithDefaults instantiates a new ModelsContainerAssignment object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsContainerAssignmentWithDefaults() *ModelsContainerAssignment { + this := ModelsContainerAssignment{} + return &this +} + +// GetCertStoreContainerId returns the CertStoreContainerId field value if set, zero value otherwise. +func (o *ModelsContainerAssignment) GetCertStoreContainerId() int32 { + if o == nil || isNil(o.CertStoreContainerId) { + var ret int32 + return ret + } + return *o.CertStoreContainerId +} + +// GetCertStoreContainerIdOk returns a tuple with the CertStoreContainerId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsContainerAssignment) GetCertStoreContainerIdOk() (*int32, bool) { + if o == nil || isNil(o.CertStoreContainerId) { + return nil, false + } + return o.CertStoreContainerId, true +} + +// HasCertStoreContainerId returns a boolean if a field has been set. +func (o *ModelsContainerAssignment) HasCertStoreContainerId() bool { + if o != nil && !isNil(o.CertStoreContainerId) { + return true + } + + return false +} + +// SetCertStoreContainerId gets a reference to the given int32 and assigns it to the CertStoreContainerId field. +func (o *ModelsContainerAssignment) SetCertStoreContainerId(v int32) { + o.CertStoreContainerId = &v +} + +// GetNewContainerName returns the NewContainerName field value if set, zero value otherwise. +func (o *ModelsContainerAssignment) GetNewContainerName() string { + if o == nil || isNil(o.NewContainerName) { + var ret string + return ret + } + return *o.NewContainerName +} + +// GetNewContainerNameOk returns a tuple with the NewContainerName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsContainerAssignment) GetNewContainerNameOk() (*string, bool) { + if o == nil || isNil(o.NewContainerName) { + return nil, false + } + return o.NewContainerName, true +} + +// HasNewContainerName returns a boolean if a field has been set. +func (o *ModelsContainerAssignment) HasNewContainerName() bool { + if o != nil && !isNil(o.NewContainerName) { + return true + } + + return false +} + +// SetNewContainerName gets a reference to the given string and assigns it to the NewContainerName field. +func (o *ModelsContainerAssignment) SetNewContainerName(v string) { + o.NewContainerName = &v +} + +// GetNewContainerType returns the NewContainerType field value if set, zero value otherwise. +func (o *ModelsContainerAssignment) GetNewContainerType() int32 { + if o == nil || isNil(o.NewContainerType) { + var ret int32 + return ret + } + return *o.NewContainerType +} + +// GetNewContainerTypeOk returns a tuple with the NewContainerType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsContainerAssignment) GetNewContainerTypeOk() (*int32, bool) { + if o == nil || isNil(o.NewContainerType) { + return nil, false + } + return o.NewContainerType, true +} + +// HasNewContainerType returns a boolean if a field has been set. +func (o *ModelsContainerAssignment) HasNewContainerType() bool { + if o != nil && !isNil(o.NewContainerType) { + return true + } + + return false +} + +// SetNewContainerType gets a reference to the given int32 and assigns it to the NewContainerType field. +func (o *ModelsContainerAssignment) SetNewContainerType(v int32) { + o.NewContainerType = &v +} + +// GetKeystoreIds returns the KeystoreIds field value +func (o *ModelsContainerAssignment) GetKeystoreIds() []string { + if o == nil { + var ret []string + return ret + } + + return o.KeystoreIds +} + +// GetKeystoreIdsOk returns a tuple with the KeystoreIds field value +// and a boolean to check if the value has been set. +func (o *ModelsContainerAssignment) GetKeystoreIdsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.KeystoreIds, true +} + +// SetKeystoreIds sets field value +func (o *ModelsContainerAssignment) SetKeystoreIds(v []string) { + o.KeystoreIds = v +} + +func (o ModelsContainerAssignment) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsContainerAssignment) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.CertStoreContainerId) { + toSerialize["CertStoreContainerId"] = o.CertStoreContainerId + } + if !isNil(o.NewContainerName) { + toSerialize["NewContainerName"] = o.NewContainerName + } + if !isNil(o.NewContainerType) { + toSerialize["NewContainerType"] = o.NewContainerType + } + toSerialize["KeystoreIds"] = o.KeystoreIds + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsContainerAssignment) UnmarshalJSON(bytes []byte) (err error) { + varModelsContainerAssignment := _ModelsContainerAssignment{} + + if err = json.Unmarshal(bytes, &varModelsContainerAssignment); err == nil { + *o = ModelsContainerAssignment(varModelsContainerAssignment) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "CertStoreContainerId") + delete(additionalProperties, "NewContainerName") + delete(additionalProperties, "NewContainerType") + delete(additionalProperties, "KeystoreIds") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsContainerAssignment struct { + value *ModelsContainerAssignment + isSet bool +} + +func (v NullableModelsContainerAssignment) Get() *ModelsContainerAssignment { + return v.value +} + +func (v *NullableModelsContainerAssignment) Set(val *ModelsContainerAssignment) { + v.value = val + v.isSet = true +} + +func (v NullableModelsContainerAssignment) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsContainerAssignment) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsContainerAssignment(val *ModelsContainerAssignment) *NullableModelsContainerAssignment { + return &NullableModelsContainerAssignment{value: val, isSet: true} +} + +func (v NullableModelsContainerAssignment) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsContainerAssignment) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_crl_request_model.go b/v1/api/keyfactor/model_models_crl_request_model.go new file mode 100644 index 0000000..b2997d6 --- /dev/null +++ b/v1/api/keyfactor/model_models_crl_request_model.go @@ -0,0 +1,186 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsCRLRequestModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsCRLRequestModel{} + +// ModelsCRLRequestModel struct for ModelsCRLRequestModel +type ModelsCRLRequestModel struct { + CertificateAuthorityLogicalName string `json:"CertificateAuthorityLogicalName"` + CertificateAuthorityHostName *string `json:"CertificateAuthorityHostName,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsCRLRequestModel ModelsCRLRequestModel + +// NewModelsCRLRequestModel instantiates a new ModelsCRLRequestModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsCRLRequestModel(certificateAuthorityLogicalName string) *ModelsCRLRequestModel { + this := ModelsCRLRequestModel{} + this.CertificateAuthorityLogicalName = certificateAuthorityLogicalName + return &this +} + +// NewModelsCRLRequestModelWithDefaults instantiates a new ModelsCRLRequestModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsCRLRequestModelWithDefaults() *ModelsCRLRequestModel { + this := ModelsCRLRequestModel{} + return &this +} + +// GetCertificateAuthorityLogicalName returns the CertificateAuthorityLogicalName field value +func (o *ModelsCRLRequestModel) GetCertificateAuthorityLogicalName() string { + if o == nil { + var ret string + return ret + } + + return o.CertificateAuthorityLogicalName +} + +// GetCertificateAuthorityLogicalNameOk returns a tuple with the CertificateAuthorityLogicalName field value +// and a boolean to check if the value has been set. +func (o *ModelsCRLRequestModel) GetCertificateAuthorityLogicalNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CertificateAuthorityLogicalName, true +} + +// SetCertificateAuthorityLogicalName sets field value +func (o *ModelsCRLRequestModel) SetCertificateAuthorityLogicalName(v string) { + o.CertificateAuthorityLogicalName = v +} + +// GetCertificateAuthorityHostName returns the CertificateAuthorityHostName field value if set, zero value otherwise. +func (o *ModelsCRLRequestModel) GetCertificateAuthorityHostName() string { + if o == nil || isNil(o.CertificateAuthorityHostName) { + var ret string + return ret + } + return *o.CertificateAuthorityHostName +} + +// GetCertificateAuthorityHostNameOk returns a tuple with the CertificateAuthorityHostName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCRLRequestModel) GetCertificateAuthorityHostNameOk() (*string, bool) { + if o == nil || isNil(o.CertificateAuthorityHostName) { + return nil, false + } + return o.CertificateAuthorityHostName, true +} + +// HasCertificateAuthorityHostName returns a boolean if a field has been set. +func (o *ModelsCRLRequestModel) HasCertificateAuthorityHostName() bool { + if o != nil && !isNil(o.CertificateAuthorityHostName) { + return true + } + + return false +} + +// SetCertificateAuthorityHostName gets a reference to the given string and assigns it to the CertificateAuthorityHostName field. +func (o *ModelsCRLRequestModel) SetCertificateAuthorityHostName(v string) { + o.CertificateAuthorityHostName = &v +} + +func (o ModelsCRLRequestModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsCRLRequestModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["CertificateAuthorityLogicalName"] = o.CertificateAuthorityLogicalName + if !isNil(o.CertificateAuthorityHostName) { + toSerialize["CertificateAuthorityHostName"] = o.CertificateAuthorityHostName + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsCRLRequestModel) UnmarshalJSON(bytes []byte) (err error) { + varModelsCRLRequestModel := _ModelsCRLRequestModel{} + + if err = json.Unmarshal(bytes, &varModelsCRLRequestModel); err == nil { + *o = ModelsCRLRequestModel(varModelsCRLRequestModel) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "CertificateAuthorityLogicalName") + delete(additionalProperties, "CertificateAuthorityHostName") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsCRLRequestModel struct { + value *ModelsCRLRequestModel + isSet bool +} + +func (v NullableModelsCRLRequestModel) Get() *ModelsCRLRequestModel { + return v.value +} + +func (v *NullableModelsCRLRequestModel) Set(val *ModelsCRLRequestModel) { + v.value = val + v.isSet = true +} + +func (v NullableModelsCRLRequestModel) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsCRLRequestModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsCRLRequestModel(val *ModelsCRLRequestModel) *NullableModelsCRLRequestModel { + return &NullableModelsCRLRequestModel{value: val, isSet: true} +} + +func (v NullableModelsCRLRequestModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsCRLRequestModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_csr_contents.go b/v1/api/keyfactor/model_models_csr_contents.go new file mode 100644 index 0000000..9ef0d9d --- /dev/null +++ b/v1/api/keyfactor/model_models_csr_contents.go @@ -0,0 +1,149 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsCSRContents type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsCSRContents{} + +// ModelsCSRContents struct for ModelsCSRContents +type ModelsCSRContents struct { + CSR string `json:"CSR"` + AdditionalProperties map[string]interface{} +} + +type _ModelsCSRContents ModelsCSRContents + +// NewModelsCSRContents instantiates a new ModelsCSRContents object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsCSRContents(cSR string) *ModelsCSRContents { + this := ModelsCSRContents{} + this.CSR = cSR + return &this +} + +// NewModelsCSRContentsWithDefaults instantiates a new ModelsCSRContents object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsCSRContentsWithDefaults() *ModelsCSRContents { + this := ModelsCSRContents{} + return &this +} + +// GetCSR returns the CSR field value +func (o *ModelsCSRContents) GetCSR() string { + if o == nil { + var ret string + return ret + } + + return o.CSR +} + +// GetCSROk returns a tuple with the CSR field value +// and a boolean to check if the value has been set. +func (o *ModelsCSRContents) GetCSROk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CSR, true +} + +// SetCSR sets field value +func (o *ModelsCSRContents) SetCSR(v string) { + o.CSR = v +} + +func (o ModelsCSRContents) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsCSRContents) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["CSR"] = o.CSR + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsCSRContents) UnmarshalJSON(bytes []byte) (err error) { + varModelsCSRContents := _ModelsCSRContents{} + + if err = json.Unmarshal(bytes, &varModelsCSRContents); err == nil { + *o = ModelsCSRContents(varModelsCSRContents) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "CSR") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsCSRContents struct { + value *ModelsCSRContents + isSet bool +} + +func (v NullableModelsCSRContents) Get() *ModelsCSRContents { + return v.value +} + +func (v *NullableModelsCSRContents) Set(val *ModelsCSRContents) { + v.value = val + v.isSet = true +} + +func (v NullableModelsCSRContents) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsCSRContents) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsCSRContents(val *ModelsCSRContents) *NullableModelsCSRContents { + return &NullableModelsCSRContents{value: val, isSet: true} +} + +func (v NullableModelsCSRContents) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsCSRContents) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_csr_generation_response_model.go b/v1/api/keyfactor/model_models_csr_generation_response_model.go new file mode 100644 index 0000000..7736dff --- /dev/null +++ b/v1/api/keyfactor/model_models_csr_generation_response_model.go @@ -0,0 +1,195 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsCSRGenerationResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsCSRGenerationResponseModel{} + +// ModelsCSRGenerationResponseModel struct for ModelsCSRGenerationResponseModel +type ModelsCSRGenerationResponseModel struct { + CSRFilePath *string `json:"CSRFilePath,omitempty"` + CSRText *string `json:"CSRText,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsCSRGenerationResponseModel ModelsCSRGenerationResponseModel + +// NewModelsCSRGenerationResponseModel instantiates a new ModelsCSRGenerationResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsCSRGenerationResponseModel() *ModelsCSRGenerationResponseModel { + this := ModelsCSRGenerationResponseModel{} + return &this +} + +// NewModelsCSRGenerationResponseModelWithDefaults instantiates a new ModelsCSRGenerationResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsCSRGenerationResponseModelWithDefaults() *ModelsCSRGenerationResponseModel { + this := ModelsCSRGenerationResponseModel{} + return &this +} + +// GetCSRFilePath returns the CSRFilePath field value if set, zero value otherwise. +func (o *ModelsCSRGenerationResponseModel) GetCSRFilePath() string { + if o == nil || isNil(o.CSRFilePath) { + var ret string + return ret + } + return *o.CSRFilePath +} + +// GetCSRFilePathOk returns a tuple with the CSRFilePath field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCSRGenerationResponseModel) GetCSRFilePathOk() (*string, bool) { + if o == nil || isNil(o.CSRFilePath) { + return nil, false + } + return o.CSRFilePath, true +} + +// HasCSRFilePath returns a boolean if a field has been set. +func (o *ModelsCSRGenerationResponseModel) HasCSRFilePath() bool { + if o != nil && !isNil(o.CSRFilePath) { + return true + } + + return false +} + +// SetCSRFilePath gets a reference to the given string and assigns it to the CSRFilePath field. +func (o *ModelsCSRGenerationResponseModel) SetCSRFilePath(v string) { + o.CSRFilePath = &v +} + +// GetCSRText returns the CSRText field value if set, zero value otherwise. +func (o *ModelsCSRGenerationResponseModel) GetCSRText() string { + if o == nil || isNil(o.CSRText) { + var ret string + return ret + } + return *o.CSRText +} + +// GetCSRTextOk returns a tuple with the CSRText field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCSRGenerationResponseModel) GetCSRTextOk() (*string, bool) { + if o == nil || isNil(o.CSRText) { + return nil, false + } + return o.CSRText, true +} + +// HasCSRText returns a boolean if a field has been set. +func (o *ModelsCSRGenerationResponseModel) HasCSRText() bool { + if o != nil && !isNil(o.CSRText) { + return true + } + + return false +} + +// SetCSRText gets a reference to the given string and assigns it to the CSRText field. +func (o *ModelsCSRGenerationResponseModel) SetCSRText(v string) { + o.CSRText = &v +} + +func (o ModelsCSRGenerationResponseModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsCSRGenerationResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.CSRFilePath) { + toSerialize["CSRFilePath"] = o.CSRFilePath + } + if !isNil(o.CSRText) { + toSerialize["CSRText"] = o.CSRText + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsCSRGenerationResponseModel) UnmarshalJSON(bytes []byte) (err error) { + varModelsCSRGenerationResponseModel := _ModelsCSRGenerationResponseModel{} + + if err = json.Unmarshal(bytes, &varModelsCSRGenerationResponseModel); err == nil { + *o = ModelsCSRGenerationResponseModel(varModelsCSRGenerationResponseModel) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "CSRFilePath") + delete(additionalProperties, "CSRText") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsCSRGenerationResponseModel struct { + value *ModelsCSRGenerationResponseModel + isSet bool +} + +func (v NullableModelsCSRGenerationResponseModel) Get() *ModelsCSRGenerationResponseModel { + return v.value +} + +func (v *NullableModelsCSRGenerationResponseModel) Set(val *ModelsCSRGenerationResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableModelsCSRGenerationResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsCSRGenerationResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsCSRGenerationResponseModel(val *ModelsCSRGenerationResponseModel) *NullableModelsCSRGenerationResponseModel { + return &NullableModelsCSRGenerationResponseModel{value: val, isSet: true} +} + +func (v NullableModelsCSRGenerationResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsCSRGenerationResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_custom_report.go b/v1/api/keyfactor/model_models_custom_report.go new file mode 100644 index 0000000..a901782 --- /dev/null +++ b/v1/api/keyfactor/model_models_custom_report.go @@ -0,0 +1,343 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsCustomReport type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsCustomReport{} + +// ModelsCustomReport The CustomReport can be used to create and update a custom report. +type ModelsCustomReport struct { + CustomURL *string `json:"CustomURL,omitempty"` + Id *int32 `json:"Id,omitempty"` + DisplayName *string `json:"DisplayName,omitempty"` + Description *string `json:"Description,omitempty"` + InNavigator *bool `json:"InNavigator,omitempty"` + Favorite *bool `json:"Favorite,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsCustomReport ModelsCustomReport + +// NewModelsCustomReport instantiates a new ModelsCustomReport object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsCustomReport() *ModelsCustomReport { + this := ModelsCustomReport{} + return &this +} + +// NewModelsCustomReportWithDefaults instantiates a new ModelsCustomReport object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsCustomReportWithDefaults() *ModelsCustomReport { + this := ModelsCustomReport{} + return &this +} + +// GetCustomURL returns the CustomURL field value if set, zero value otherwise. +func (o *ModelsCustomReport) GetCustomURL() string { + if o == nil || isNil(o.CustomURL) { + var ret string + return ret + } + return *o.CustomURL +} + +// GetCustomURLOk returns a tuple with the CustomURL field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCustomReport) GetCustomURLOk() (*string, bool) { + if o == nil || isNil(o.CustomURL) { + return nil, false + } + return o.CustomURL, true +} + +// HasCustomURL returns a boolean if a field has been set. +func (o *ModelsCustomReport) HasCustomURL() bool { + if o != nil && !isNil(o.CustomURL) { + return true + } + + return false +} + +// SetCustomURL gets a reference to the given string and assigns it to the CustomURL field. +func (o *ModelsCustomReport) SetCustomURL(v string) { + o.CustomURL = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ModelsCustomReport) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCustomReport) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ModelsCustomReport) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *ModelsCustomReport) SetId(v int32) { + o.Id = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *ModelsCustomReport) GetDisplayName() string { + if o == nil || isNil(o.DisplayName) { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCustomReport) GetDisplayNameOk() (*string, bool) { + if o == nil || isNil(o.DisplayName) { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *ModelsCustomReport) HasDisplayName() bool { + if o != nil && !isNil(o.DisplayName) { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *ModelsCustomReport) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ModelsCustomReport) GetDescription() string { + if o == nil || isNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCustomReport) GetDescriptionOk() (*string, bool) { + if o == nil || isNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *ModelsCustomReport) HasDescription() bool { + if o != nil && !isNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *ModelsCustomReport) SetDescription(v string) { + o.Description = &v +} + +// GetInNavigator returns the InNavigator field value if set, zero value otherwise. +func (o *ModelsCustomReport) GetInNavigator() bool { + if o == nil || isNil(o.InNavigator) { + var ret bool + return ret + } + return *o.InNavigator +} + +// GetInNavigatorOk returns a tuple with the InNavigator field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCustomReport) GetInNavigatorOk() (*bool, bool) { + if o == nil || isNil(o.InNavigator) { + return nil, false + } + return o.InNavigator, true +} + +// HasInNavigator returns a boolean if a field has been set. +func (o *ModelsCustomReport) HasInNavigator() bool { + if o != nil && !isNil(o.InNavigator) { + return true + } + + return false +} + +// SetInNavigator gets a reference to the given bool and assigns it to the InNavigator field. +func (o *ModelsCustomReport) SetInNavigator(v bool) { + o.InNavigator = &v +} + +// GetFavorite returns the Favorite field value if set, zero value otherwise. +func (o *ModelsCustomReport) GetFavorite() bool { + if o == nil || isNil(o.Favorite) { + var ret bool + return ret + } + return *o.Favorite +} + +// GetFavoriteOk returns a tuple with the Favorite field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCustomReport) GetFavoriteOk() (*bool, bool) { + if o == nil || isNil(o.Favorite) { + return nil, false + } + return o.Favorite, true +} + +// HasFavorite returns a boolean if a field has been set. +func (o *ModelsCustomReport) HasFavorite() bool { + if o != nil && !isNil(o.Favorite) { + return true + } + + return false +} + +// SetFavorite gets a reference to the given bool and assigns it to the Favorite field. +func (o *ModelsCustomReport) SetFavorite(v bool) { + o.Favorite = &v +} + +func (o ModelsCustomReport) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsCustomReport) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.CustomURL) { + toSerialize["CustomURL"] = o.CustomURL + } + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.DisplayName) { + toSerialize["DisplayName"] = o.DisplayName + } + if !isNil(o.Description) { + toSerialize["Description"] = o.Description + } + if !isNil(o.InNavigator) { + toSerialize["InNavigator"] = o.InNavigator + } + if !isNil(o.Favorite) { + toSerialize["Favorite"] = o.Favorite + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsCustomReport) UnmarshalJSON(bytes []byte) (err error) { + varModelsCustomReport := _ModelsCustomReport{} + + if err = json.Unmarshal(bytes, &varModelsCustomReport); err == nil { + *o = ModelsCustomReport(varModelsCustomReport) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "CustomURL") + delete(additionalProperties, "Id") + delete(additionalProperties, "DisplayName") + delete(additionalProperties, "Description") + delete(additionalProperties, "InNavigator") + delete(additionalProperties, "Favorite") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsCustomReport struct { + value *ModelsCustomReport + isSet bool +} + +func (v NullableModelsCustomReport) Get() *ModelsCustomReport { + return v.value +} + +func (v *NullableModelsCustomReport) Set(val *ModelsCustomReport) { + v.value = val + v.isSet = true +} + +func (v NullableModelsCustomReport) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsCustomReport) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsCustomReport(val *ModelsCustomReport) *NullableModelsCustomReport { + return &NullableModelsCustomReport{value: val, isSet: true} +} + +func (v NullableModelsCustomReport) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsCustomReport) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_custom_report_creation_request.go b/v1/api/keyfactor/model_models_custom_report_creation_request.go new file mode 100644 index 0000000..9729cf3 --- /dev/null +++ b/v1/api/keyfactor/model_models_custom_report_creation_request.go @@ -0,0 +1,279 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsCustomReportCreationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsCustomReportCreationRequest{} + +// ModelsCustomReportCreationRequest The CustomReport can be used to create and update a custom report. +type ModelsCustomReportCreationRequest struct { + CustomURL string `json:"CustomURL"` + DisplayName string `json:"DisplayName"` + Description string `json:"Description"` + InNavigator *bool `json:"InNavigator,omitempty"` + Favorite *bool `json:"Favorite,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsCustomReportCreationRequest ModelsCustomReportCreationRequest + +// NewModelsCustomReportCreationRequest instantiates a new ModelsCustomReportCreationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsCustomReportCreationRequest(customURL string, displayName string, description string) *ModelsCustomReportCreationRequest { + this := ModelsCustomReportCreationRequest{} + this.CustomURL = customURL + this.DisplayName = displayName + this.Description = description + return &this +} + +// NewModelsCustomReportCreationRequestWithDefaults instantiates a new ModelsCustomReportCreationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsCustomReportCreationRequestWithDefaults() *ModelsCustomReportCreationRequest { + this := ModelsCustomReportCreationRequest{} + return &this +} + +// GetCustomURL returns the CustomURL field value +func (o *ModelsCustomReportCreationRequest) GetCustomURL() string { + if o == nil { + var ret string + return ret + } + + return o.CustomURL +} + +// GetCustomURLOk returns a tuple with the CustomURL field value +// and a boolean to check if the value has been set. +func (o *ModelsCustomReportCreationRequest) GetCustomURLOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CustomURL, true +} + +// SetCustomURL sets field value +func (o *ModelsCustomReportCreationRequest) SetCustomURL(v string) { + o.CustomURL = v +} + +// GetDisplayName returns the DisplayName field value +func (o *ModelsCustomReportCreationRequest) GetDisplayName() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value +// and a boolean to check if the value has been set. +func (o *ModelsCustomReportCreationRequest) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayName, true +} + +// SetDisplayName sets field value +func (o *ModelsCustomReportCreationRequest) SetDisplayName(v string) { + o.DisplayName = v +} + +// GetDescription returns the Description field value +func (o *ModelsCustomReportCreationRequest) GetDescription() string { + if o == nil { + var ret string + return ret + } + + return o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +func (o *ModelsCustomReportCreationRequest) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Description, true +} + +// SetDescription sets field value +func (o *ModelsCustomReportCreationRequest) SetDescription(v string) { + o.Description = v +} + +// GetInNavigator returns the InNavigator field value if set, zero value otherwise. +func (o *ModelsCustomReportCreationRequest) GetInNavigator() bool { + if o == nil || isNil(o.InNavigator) { + var ret bool + return ret + } + return *o.InNavigator +} + +// GetInNavigatorOk returns a tuple with the InNavigator field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCustomReportCreationRequest) GetInNavigatorOk() (*bool, bool) { + if o == nil || isNil(o.InNavigator) { + return nil, false + } + return o.InNavigator, true +} + +// HasInNavigator returns a boolean if a field has been set. +func (o *ModelsCustomReportCreationRequest) HasInNavigator() bool { + if o != nil && !isNil(o.InNavigator) { + return true + } + + return false +} + +// SetInNavigator gets a reference to the given bool and assigns it to the InNavigator field. +func (o *ModelsCustomReportCreationRequest) SetInNavigator(v bool) { + o.InNavigator = &v +} + +// GetFavorite returns the Favorite field value if set, zero value otherwise. +func (o *ModelsCustomReportCreationRequest) GetFavorite() bool { + if o == nil || isNil(o.Favorite) { + var ret bool + return ret + } + return *o.Favorite +} + +// GetFavoriteOk returns a tuple with the Favorite field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCustomReportCreationRequest) GetFavoriteOk() (*bool, bool) { + if o == nil || isNil(o.Favorite) { + return nil, false + } + return o.Favorite, true +} + +// HasFavorite returns a boolean if a field has been set. +func (o *ModelsCustomReportCreationRequest) HasFavorite() bool { + if o != nil && !isNil(o.Favorite) { + return true + } + + return false +} + +// SetFavorite gets a reference to the given bool and assigns it to the Favorite field. +func (o *ModelsCustomReportCreationRequest) SetFavorite(v bool) { + o.Favorite = &v +} + +func (o ModelsCustomReportCreationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsCustomReportCreationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["CustomURL"] = o.CustomURL + toSerialize["DisplayName"] = o.DisplayName + toSerialize["Description"] = o.Description + if !isNil(o.InNavigator) { + toSerialize["InNavigator"] = o.InNavigator + } + if !isNil(o.Favorite) { + toSerialize["Favorite"] = o.Favorite + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsCustomReportCreationRequest) UnmarshalJSON(bytes []byte) (err error) { + varModelsCustomReportCreationRequest := _ModelsCustomReportCreationRequest{} + + if err = json.Unmarshal(bytes, &varModelsCustomReportCreationRequest); err == nil { + *o = ModelsCustomReportCreationRequest(varModelsCustomReportCreationRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "CustomURL") + delete(additionalProperties, "DisplayName") + delete(additionalProperties, "Description") + delete(additionalProperties, "InNavigator") + delete(additionalProperties, "Favorite") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsCustomReportCreationRequest struct { + value *ModelsCustomReportCreationRequest + isSet bool +} + +func (v NullableModelsCustomReportCreationRequest) Get() *ModelsCustomReportCreationRequest { + return v.value +} + +func (v *NullableModelsCustomReportCreationRequest) Set(val *ModelsCustomReportCreationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableModelsCustomReportCreationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsCustomReportCreationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsCustomReportCreationRequest(val *ModelsCustomReportCreationRequest) *NullableModelsCustomReportCreationRequest { + return &NullableModelsCustomReportCreationRequest{value: val, isSet: true} +} + +func (v NullableModelsCustomReportCreationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsCustomReportCreationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_custom_report_update_request.go b/v1/api/keyfactor/model_models_custom_report_update_request.go new file mode 100644 index 0000000..a86d781 --- /dev/null +++ b/v1/api/keyfactor/model_models_custom_report_update_request.go @@ -0,0 +1,334 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsCustomReportUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsCustomReportUpdateRequest{} + +// ModelsCustomReportUpdateRequest The CustomReport can be used to create and update a custom report. +type ModelsCustomReportUpdateRequest struct { + CustomURL *string `json:"CustomURL,omitempty"` + Id int32 `json:"Id"` + DisplayName *string `json:"DisplayName,omitempty"` + Description *string `json:"Description,omitempty"` + InNavigator *bool `json:"InNavigator,omitempty"` + Favorite *bool `json:"Favorite,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsCustomReportUpdateRequest ModelsCustomReportUpdateRequest + +// NewModelsCustomReportUpdateRequest instantiates a new ModelsCustomReportUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsCustomReportUpdateRequest(id int32) *ModelsCustomReportUpdateRequest { + this := ModelsCustomReportUpdateRequest{} + this.Id = id + return &this +} + +// NewModelsCustomReportUpdateRequestWithDefaults instantiates a new ModelsCustomReportUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsCustomReportUpdateRequestWithDefaults() *ModelsCustomReportUpdateRequest { + this := ModelsCustomReportUpdateRequest{} + return &this +} + +// GetCustomURL returns the CustomURL field value if set, zero value otherwise. +func (o *ModelsCustomReportUpdateRequest) GetCustomURL() string { + if o == nil || isNil(o.CustomURL) { + var ret string + return ret + } + return *o.CustomURL +} + +// GetCustomURLOk returns a tuple with the CustomURL field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCustomReportUpdateRequest) GetCustomURLOk() (*string, bool) { + if o == nil || isNil(o.CustomURL) { + return nil, false + } + return o.CustomURL, true +} + +// HasCustomURL returns a boolean if a field has been set. +func (o *ModelsCustomReportUpdateRequest) HasCustomURL() bool { + if o != nil && !isNil(o.CustomURL) { + return true + } + + return false +} + +// SetCustomURL gets a reference to the given string and assigns it to the CustomURL field. +func (o *ModelsCustomReportUpdateRequest) SetCustomURL(v string) { + o.CustomURL = &v +} + +// GetId returns the Id field value +func (o *ModelsCustomReportUpdateRequest) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *ModelsCustomReportUpdateRequest) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ModelsCustomReportUpdateRequest) SetId(v int32) { + o.Id = v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *ModelsCustomReportUpdateRequest) GetDisplayName() string { + if o == nil || isNil(o.DisplayName) { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCustomReportUpdateRequest) GetDisplayNameOk() (*string, bool) { + if o == nil || isNil(o.DisplayName) { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *ModelsCustomReportUpdateRequest) HasDisplayName() bool { + if o != nil && !isNil(o.DisplayName) { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *ModelsCustomReportUpdateRequest) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ModelsCustomReportUpdateRequest) GetDescription() string { + if o == nil || isNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCustomReportUpdateRequest) GetDescriptionOk() (*string, bool) { + if o == nil || isNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *ModelsCustomReportUpdateRequest) HasDescription() bool { + if o != nil && !isNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *ModelsCustomReportUpdateRequest) SetDescription(v string) { + o.Description = &v +} + +// GetInNavigator returns the InNavigator field value if set, zero value otherwise. +func (o *ModelsCustomReportUpdateRequest) GetInNavigator() bool { + if o == nil || isNil(o.InNavigator) { + var ret bool + return ret + } + return *o.InNavigator +} + +// GetInNavigatorOk returns a tuple with the InNavigator field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCustomReportUpdateRequest) GetInNavigatorOk() (*bool, bool) { + if o == nil || isNil(o.InNavigator) { + return nil, false + } + return o.InNavigator, true +} + +// HasInNavigator returns a boolean if a field has been set. +func (o *ModelsCustomReportUpdateRequest) HasInNavigator() bool { + if o != nil && !isNil(o.InNavigator) { + return true + } + + return false +} + +// SetInNavigator gets a reference to the given bool and assigns it to the InNavigator field. +func (o *ModelsCustomReportUpdateRequest) SetInNavigator(v bool) { + o.InNavigator = &v +} + +// GetFavorite returns the Favorite field value if set, zero value otherwise. +func (o *ModelsCustomReportUpdateRequest) GetFavorite() bool { + if o == nil || isNil(o.Favorite) { + var ret bool + return ret + } + return *o.Favorite +} + +// GetFavoriteOk returns a tuple with the Favorite field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsCustomReportUpdateRequest) GetFavoriteOk() (*bool, bool) { + if o == nil || isNil(o.Favorite) { + return nil, false + } + return o.Favorite, true +} + +// HasFavorite returns a boolean if a field has been set. +func (o *ModelsCustomReportUpdateRequest) HasFavorite() bool { + if o != nil && !isNil(o.Favorite) { + return true + } + + return false +} + +// SetFavorite gets a reference to the given bool and assigns it to the Favorite field. +func (o *ModelsCustomReportUpdateRequest) SetFavorite(v bool) { + o.Favorite = &v +} + +func (o ModelsCustomReportUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsCustomReportUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.CustomURL) { + toSerialize["CustomURL"] = o.CustomURL + } + toSerialize["Id"] = o.Id + if !isNil(o.DisplayName) { + toSerialize["DisplayName"] = o.DisplayName + } + if !isNil(o.Description) { + toSerialize["Description"] = o.Description + } + if !isNil(o.InNavigator) { + toSerialize["InNavigator"] = o.InNavigator + } + if !isNil(o.Favorite) { + toSerialize["Favorite"] = o.Favorite + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsCustomReportUpdateRequest) UnmarshalJSON(bytes []byte) (err error) { + varModelsCustomReportUpdateRequest := _ModelsCustomReportUpdateRequest{} + + if err = json.Unmarshal(bytes, &varModelsCustomReportUpdateRequest); err == nil { + *o = ModelsCustomReportUpdateRequest(varModelsCustomReportUpdateRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "CustomURL") + delete(additionalProperties, "Id") + delete(additionalProperties, "DisplayName") + delete(additionalProperties, "Description") + delete(additionalProperties, "InNavigator") + delete(additionalProperties, "Favorite") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsCustomReportUpdateRequest struct { + value *ModelsCustomReportUpdateRequest + isSet bool +} + +func (v NullableModelsCustomReportUpdateRequest) Get() *ModelsCustomReportUpdateRequest { + return v.value +} + +func (v *NullableModelsCustomReportUpdateRequest) Set(val *ModelsCustomReportUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableModelsCustomReportUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsCustomReportUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsCustomReportUpdateRequest(val *ModelsCustomReportUpdateRequest) *NullableModelsCustomReportUpdateRequest { + return &NullableModelsCustomReportUpdateRequest{value: val, isSet: true} +} + +func (v NullableModelsCustomReportUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsCustomReportUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_discovery_job_request.go b/v1/api/keyfactor/model_models_discovery_job_request.go new file mode 100644 index 0000000..08f6c2b --- /dev/null +++ b/v1/api/keyfactor/model_models_discovery_job_request.go @@ -0,0 +1,594 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" + "time" +) + +// checks if the ModelsDiscoveryJobRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsDiscoveryJobRequest{} + +// ModelsDiscoveryJobRequest struct for ModelsDiscoveryJobRequest +type ModelsDiscoveryJobRequest struct { + ClientMachine *string `json:"ClientMachine,omitempty"` + AgentId *string `json:"AgentId,omitempty"` + Type int32 `json:"Type"` + JobExecutionTimestamp *time.Time `json:"JobExecutionTimestamp,omitempty"` + Dirs *string `json:"Dirs,omitempty"` + IgnoredDirs *string `json:"IgnoredDirs,omitempty"` + Extensions *string `json:"Extensions,omitempty"` + NamePatterns *string `json:"NamePatterns,omitempty"` + SymLinks *bool `json:"SymLinks,omitempty"` + Compatibility *bool `json:"Compatibility,omitempty"` + ServerUsername *ModelsKeyfactorAPISecret `json:"ServerUsername,omitempty"` + ServerPassword *ModelsKeyfactorAPISecret `json:"ServerPassword,omitempty"` + ServerUseSsl *bool `json:"ServerUseSsl,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsDiscoveryJobRequest ModelsDiscoveryJobRequest + +// NewModelsDiscoveryJobRequest instantiates a new ModelsDiscoveryJobRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsDiscoveryJobRequest(type_ int32) *ModelsDiscoveryJobRequest { + this := ModelsDiscoveryJobRequest{} + this.Type = type_ + return &this +} + +// NewModelsDiscoveryJobRequestWithDefaults instantiates a new ModelsDiscoveryJobRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsDiscoveryJobRequestWithDefaults() *ModelsDiscoveryJobRequest { + this := ModelsDiscoveryJobRequest{} + return &this +} + +// GetClientMachine returns the ClientMachine field value if set, zero value otherwise. +func (o *ModelsDiscoveryJobRequest) GetClientMachine() string { + if o == nil || isNil(o.ClientMachine) { + var ret string + return ret + } + return *o.ClientMachine +} + +// GetClientMachineOk returns a tuple with the ClientMachine field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsDiscoveryJobRequest) GetClientMachineOk() (*string, bool) { + if o == nil || isNil(o.ClientMachine) { + return nil, false + } + return o.ClientMachine, true +} + +// HasClientMachine returns a boolean if a field has been set. +func (o *ModelsDiscoveryJobRequest) HasClientMachine() bool { + if o != nil && !isNil(o.ClientMachine) { + return true + } + + return false +} + +// SetClientMachine gets a reference to the given string and assigns it to the ClientMachine field. +func (o *ModelsDiscoveryJobRequest) SetClientMachine(v string) { + o.ClientMachine = &v +} + +// GetAgentId returns the AgentId field value if set, zero value otherwise. +func (o *ModelsDiscoveryJobRequest) GetAgentId() string { + if o == nil || isNil(o.AgentId) { + var ret string + return ret + } + return *o.AgentId +} + +// GetAgentIdOk returns a tuple with the AgentId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsDiscoveryJobRequest) GetAgentIdOk() (*string, bool) { + if o == nil || isNil(o.AgentId) { + return nil, false + } + return o.AgentId, true +} + +// HasAgentId returns a boolean if a field has been set. +func (o *ModelsDiscoveryJobRequest) HasAgentId() bool { + if o != nil && !isNil(o.AgentId) { + return true + } + + return false +} + +// SetAgentId gets a reference to the given string and assigns it to the AgentId field. +func (o *ModelsDiscoveryJobRequest) SetAgentId(v string) { + o.AgentId = &v +} + +// GetType returns the Type field value +func (o *ModelsDiscoveryJobRequest) GetType() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *ModelsDiscoveryJobRequest) GetTypeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *ModelsDiscoveryJobRequest) SetType(v int32) { + o.Type = v +} + +// GetJobExecutionTimestamp returns the JobExecutionTimestamp field value if set, zero value otherwise. +func (o *ModelsDiscoveryJobRequest) GetJobExecutionTimestamp() time.Time { + if o == nil || isNil(o.JobExecutionTimestamp) { + var ret time.Time + return ret + } + return *o.JobExecutionTimestamp +} + +// GetJobExecutionTimestampOk returns a tuple with the JobExecutionTimestamp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsDiscoveryJobRequest) GetJobExecutionTimestampOk() (*time.Time, bool) { + if o == nil || isNil(o.JobExecutionTimestamp) { + return nil, false + } + return o.JobExecutionTimestamp, true +} + +// HasJobExecutionTimestamp returns a boolean if a field has been set. +func (o *ModelsDiscoveryJobRequest) HasJobExecutionTimestamp() bool { + if o != nil && !isNil(o.JobExecutionTimestamp) { + return true + } + + return false +} + +// SetJobExecutionTimestamp gets a reference to the given time.Time and assigns it to the JobExecutionTimestamp field. +func (o *ModelsDiscoveryJobRequest) SetJobExecutionTimestamp(v time.Time) { + o.JobExecutionTimestamp = &v +} + +// GetDirs returns the Dirs field value if set, zero value otherwise. +func (o *ModelsDiscoveryJobRequest) GetDirs() string { + if o == nil || isNil(o.Dirs) { + var ret string + return ret + } + return *o.Dirs +} + +// GetDirsOk returns a tuple with the Dirs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsDiscoveryJobRequest) GetDirsOk() (*string, bool) { + if o == nil || isNil(o.Dirs) { + return nil, false + } + return o.Dirs, true +} + +// HasDirs returns a boolean if a field has been set. +func (o *ModelsDiscoveryJobRequest) HasDirs() bool { + if o != nil && !isNil(o.Dirs) { + return true + } + + return false +} + +// SetDirs gets a reference to the given string and assigns it to the Dirs field. +func (o *ModelsDiscoveryJobRequest) SetDirs(v string) { + o.Dirs = &v +} + +// GetIgnoredDirs returns the IgnoredDirs field value if set, zero value otherwise. +func (o *ModelsDiscoveryJobRequest) GetIgnoredDirs() string { + if o == nil || isNil(o.IgnoredDirs) { + var ret string + return ret + } + return *o.IgnoredDirs +} + +// GetIgnoredDirsOk returns a tuple with the IgnoredDirs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsDiscoveryJobRequest) GetIgnoredDirsOk() (*string, bool) { + if o == nil || isNil(o.IgnoredDirs) { + return nil, false + } + return o.IgnoredDirs, true +} + +// HasIgnoredDirs returns a boolean if a field has been set. +func (o *ModelsDiscoveryJobRequest) HasIgnoredDirs() bool { + if o != nil && !isNil(o.IgnoredDirs) { + return true + } + + return false +} + +// SetIgnoredDirs gets a reference to the given string and assigns it to the IgnoredDirs field. +func (o *ModelsDiscoveryJobRequest) SetIgnoredDirs(v string) { + o.IgnoredDirs = &v +} + +// GetExtensions returns the Extensions field value if set, zero value otherwise. +func (o *ModelsDiscoveryJobRequest) GetExtensions() string { + if o == nil || isNil(o.Extensions) { + var ret string + return ret + } + return *o.Extensions +} + +// GetExtensionsOk returns a tuple with the Extensions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsDiscoveryJobRequest) GetExtensionsOk() (*string, bool) { + if o == nil || isNil(o.Extensions) { + return nil, false + } + return o.Extensions, true +} + +// HasExtensions returns a boolean if a field has been set. +func (o *ModelsDiscoveryJobRequest) HasExtensions() bool { + if o != nil && !isNil(o.Extensions) { + return true + } + + return false +} + +// SetExtensions gets a reference to the given string and assigns it to the Extensions field. +func (o *ModelsDiscoveryJobRequest) SetExtensions(v string) { + o.Extensions = &v +} + +// GetNamePatterns returns the NamePatterns field value if set, zero value otherwise. +func (o *ModelsDiscoveryJobRequest) GetNamePatterns() string { + if o == nil || isNil(o.NamePatterns) { + var ret string + return ret + } + return *o.NamePatterns +} + +// GetNamePatternsOk returns a tuple with the NamePatterns field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsDiscoveryJobRequest) GetNamePatternsOk() (*string, bool) { + if o == nil || isNil(o.NamePatterns) { + return nil, false + } + return o.NamePatterns, true +} + +// HasNamePatterns returns a boolean if a field has been set. +func (o *ModelsDiscoveryJobRequest) HasNamePatterns() bool { + if o != nil && !isNil(o.NamePatterns) { + return true + } + + return false +} + +// SetNamePatterns gets a reference to the given string and assigns it to the NamePatterns field. +func (o *ModelsDiscoveryJobRequest) SetNamePatterns(v string) { + o.NamePatterns = &v +} + +// GetSymLinks returns the SymLinks field value if set, zero value otherwise. +func (o *ModelsDiscoveryJobRequest) GetSymLinks() bool { + if o == nil || isNil(o.SymLinks) { + var ret bool + return ret + } + return *o.SymLinks +} + +// GetSymLinksOk returns a tuple with the SymLinks field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsDiscoveryJobRequest) GetSymLinksOk() (*bool, bool) { + if o == nil || isNil(o.SymLinks) { + return nil, false + } + return o.SymLinks, true +} + +// HasSymLinks returns a boolean if a field has been set. +func (o *ModelsDiscoveryJobRequest) HasSymLinks() bool { + if o != nil && !isNil(o.SymLinks) { + return true + } + + return false +} + +// SetSymLinks gets a reference to the given bool and assigns it to the SymLinks field. +func (o *ModelsDiscoveryJobRequest) SetSymLinks(v bool) { + o.SymLinks = &v +} + +// GetCompatibility returns the Compatibility field value if set, zero value otherwise. +func (o *ModelsDiscoveryJobRequest) GetCompatibility() bool { + if o == nil || isNil(o.Compatibility) { + var ret bool + return ret + } + return *o.Compatibility +} + +// GetCompatibilityOk returns a tuple with the Compatibility field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsDiscoveryJobRequest) GetCompatibilityOk() (*bool, bool) { + if o == nil || isNil(o.Compatibility) { + return nil, false + } + return o.Compatibility, true +} + +// HasCompatibility returns a boolean if a field has been set. +func (o *ModelsDiscoveryJobRequest) HasCompatibility() bool { + if o != nil && !isNil(o.Compatibility) { + return true + } + + return false +} + +// SetCompatibility gets a reference to the given bool and assigns it to the Compatibility field. +func (o *ModelsDiscoveryJobRequest) SetCompatibility(v bool) { + o.Compatibility = &v +} + +// GetServerUsername returns the ServerUsername field value if set, zero value otherwise. +func (o *ModelsDiscoveryJobRequest) GetServerUsername() ModelsKeyfactorAPISecret { + if o == nil || isNil(o.ServerUsername) { + var ret ModelsKeyfactorAPISecret + return ret + } + return *o.ServerUsername +} + +// GetServerUsernameOk returns a tuple with the ServerUsername field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsDiscoveryJobRequest) GetServerUsernameOk() (*ModelsKeyfactorAPISecret, bool) { + if o == nil || isNil(o.ServerUsername) { + return nil, false + } + return o.ServerUsername, true +} + +// HasServerUsername returns a boolean if a field has been set. +func (o *ModelsDiscoveryJobRequest) HasServerUsername() bool { + if o != nil && !isNil(o.ServerUsername) { + return true + } + + return false +} + +// SetServerUsername gets a reference to the given ModelsKeyfactorAPISecret and assigns it to the ServerUsername field. +func (o *ModelsDiscoveryJobRequest) SetServerUsername(v ModelsKeyfactorAPISecret) { + o.ServerUsername = &v +} + +// GetServerPassword returns the ServerPassword field value if set, zero value otherwise. +func (o *ModelsDiscoveryJobRequest) GetServerPassword() ModelsKeyfactorAPISecret { + if o == nil || isNil(o.ServerPassword) { + var ret ModelsKeyfactorAPISecret + return ret + } + return *o.ServerPassword +} + +// GetServerPasswordOk returns a tuple with the ServerPassword field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsDiscoveryJobRequest) GetServerPasswordOk() (*ModelsKeyfactorAPISecret, bool) { + if o == nil || isNil(o.ServerPassword) { + return nil, false + } + return o.ServerPassword, true +} + +// HasServerPassword returns a boolean if a field has been set. +func (o *ModelsDiscoveryJobRequest) HasServerPassword() bool { + if o != nil && !isNil(o.ServerPassword) { + return true + } + + return false +} + +// SetServerPassword gets a reference to the given ModelsKeyfactorAPISecret and assigns it to the ServerPassword field. +func (o *ModelsDiscoveryJobRequest) SetServerPassword(v ModelsKeyfactorAPISecret) { + o.ServerPassword = &v +} + +// GetServerUseSsl returns the ServerUseSsl field value if set, zero value otherwise. +func (o *ModelsDiscoveryJobRequest) GetServerUseSsl() bool { + if o == nil || isNil(o.ServerUseSsl) { + var ret bool + return ret + } + return *o.ServerUseSsl +} + +// GetServerUseSslOk returns a tuple with the ServerUseSsl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsDiscoveryJobRequest) GetServerUseSslOk() (*bool, bool) { + if o == nil || isNil(o.ServerUseSsl) { + return nil, false + } + return o.ServerUseSsl, true +} + +// HasServerUseSsl returns a boolean if a field has been set. +func (o *ModelsDiscoveryJobRequest) HasServerUseSsl() bool { + if o != nil && !isNil(o.ServerUseSsl) { + return true + } + + return false +} + +// SetServerUseSsl gets a reference to the given bool and assigns it to the ServerUseSsl field. +func (o *ModelsDiscoveryJobRequest) SetServerUseSsl(v bool) { + o.ServerUseSsl = &v +} + +func (o ModelsDiscoveryJobRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsDiscoveryJobRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.ClientMachine) { + toSerialize["ClientMachine"] = o.ClientMachine + } + if !isNil(o.AgentId) { + toSerialize["AgentId"] = o.AgentId + } + toSerialize["Type"] = o.Type + if !isNil(o.JobExecutionTimestamp) { + toSerialize["JobExecutionTimestamp"] = o.JobExecutionTimestamp + } + if !isNil(o.Dirs) { + toSerialize["Dirs"] = o.Dirs + } + if !isNil(o.IgnoredDirs) { + toSerialize["IgnoredDirs"] = o.IgnoredDirs + } + if !isNil(o.Extensions) { + toSerialize["Extensions"] = o.Extensions + } + if !isNil(o.NamePatterns) { + toSerialize["NamePatterns"] = o.NamePatterns + } + if !isNil(o.SymLinks) { + toSerialize["SymLinks"] = o.SymLinks + } + if !isNil(o.Compatibility) { + toSerialize["Compatibility"] = o.Compatibility + } + if !isNil(o.ServerUsername) { + toSerialize["ServerUsername"] = o.ServerUsername + } + if !isNil(o.ServerPassword) { + toSerialize["ServerPassword"] = o.ServerPassword + } + if !isNil(o.ServerUseSsl) { + toSerialize["ServerUseSsl"] = o.ServerUseSsl + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsDiscoveryJobRequest) UnmarshalJSON(bytes []byte) (err error) { + varModelsDiscoveryJobRequest := _ModelsDiscoveryJobRequest{} + + if err = json.Unmarshal(bytes, &varModelsDiscoveryJobRequest); err == nil { + *o = ModelsDiscoveryJobRequest(varModelsDiscoveryJobRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "ClientMachine") + delete(additionalProperties, "AgentId") + delete(additionalProperties, "Type") + delete(additionalProperties, "JobExecutionTimestamp") + delete(additionalProperties, "Dirs") + delete(additionalProperties, "IgnoredDirs") + delete(additionalProperties, "Extensions") + delete(additionalProperties, "NamePatterns") + delete(additionalProperties, "SymLinks") + delete(additionalProperties, "Compatibility") + delete(additionalProperties, "ServerUsername") + delete(additionalProperties, "ServerPassword") + delete(additionalProperties, "ServerUseSsl") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsDiscoveryJobRequest struct { + value *ModelsDiscoveryJobRequest + isSet bool +} + +func (v NullableModelsDiscoveryJobRequest) Get() *ModelsDiscoveryJobRequest { + return v.value +} + +func (v *NullableModelsDiscoveryJobRequest) Set(val *ModelsDiscoveryJobRequest) { + v.value = val + v.isSet = true +} + +func (v NullableModelsDiscoveryJobRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsDiscoveryJobRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsDiscoveryJobRequest(val *ModelsDiscoveryJobRequest) *NullableModelsDiscoveryJobRequest { + return &NullableModelsDiscoveryJobRequest{value: val, isSet: true} +} + +func (v NullableModelsDiscoveryJobRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsDiscoveryJobRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_enrollment_available_renewal.go b/v1/api/keyfactor/model_models_enrollment_available_renewal.go new file mode 100644 index 0000000..1fabac0 --- /dev/null +++ b/v1/api/keyfactor/model_models_enrollment_available_renewal.go @@ -0,0 +1,195 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsEnrollmentAvailableRenewal type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsEnrollmentAvailableRenewal{} + +// ModelsEnrollmentAvailableRenewal struct for ModelsEnrollmentAvailableRenewal +type ModelsEnrollmentAvailableRenewal struct { + AvailableRenewalType *int32 `json:"AvailableRenewalType,omitempty"` + Message *string `json:"Message,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsEnrollmentAvailableRenewal ModelsEnrollmentAvailableRenewal + +// NewModelsEnrollmentAvailableRenewal instantiates a new ModelsEnrollmentAvailableRenewal object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsEnrollmentAvailableRenewal() *ModelsEnrollmentAvailableRenewal { + this := ModelsEnrollmentAvailableRenewal{} + return &this +} + +// NewModelsEnrollmentAvailableRenewalWithDefaults instantiates a new ModelsEnrollmentAvailableRenewal object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsEnrollmentAvailableRenewalWithDefaults() *ModelsEnrollmentAvailableRenewal { + this := ModelsEnrollmentAvailableRenewal{} + return &this +} + +// GetAvailableRenewalType returns the AvailableRenewalType field value if set, zero value otherwise. +func (o *ModelsEnrollmentAvailableRenewal) GetAvailableRenewalType() int32 { + if o == nil || isNil(o.AvailableRenewalType) { + var ret int32 + return ret + } + return *o.AvailableRenewalType +} + +// GetAvailableRenewalTypeOk returns a tuple with the AvailableRenewalType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsEnrollmentAvailableRenewal) GetAvailableRenewalTypeOk() (*int32, bool) { + if o == nil || isNil(o.AvailableRenewalType) { + return nil, false + } + return o.AvailableRenewalType, true +} + +// HasAvailableRenewalType returns a boolean if a field has been set. +func (o *ModelsEnrollmentAvailableRenewal) HasAvailableRenewalType() bool { + if o != nil && !isNil(o.AvailableRenewalType) { + return true + } + + return false +} + +// SetAvailableRenewalType gets a reference to the given int32 and assigns it to the AvailableRenewalType field. +func (o *ModelsEnrollmentAvailableRenewal) SetAvailableRenewalType(v int32) { + o.AvailableRenewalType = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *ModelsEnrollmentAvailableRenewal) GetMessage() string { + if o == nil || isNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsEnrollmentAvailableRenewal) GetMessageOk() (*string, bool) { + if o == nil || isNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *ModelsEnrollmentAvailableRenewal) HasMessage() bool { + if o != nil && !isNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *ModelsEnrollmentAvailableRenewal) SetMessage(v string) { + o.Message = &v +} + +func (o ModelsEnrollmentAvailableRenewal) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsEnrollmentAvailableRenewal) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.AvailableRenewalType) { + toSerialize["AvailableRenewalType"] = o.AvailableRenewalType + } + if !isNil(o.Message) { + toSerialize["Message"] = o.Message + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsEnrollmentAvailableRenewal) UnmarshalJSON(bytes []byte) (err error) { + varModelsEnrollmentAvailableRenewal := _ModelsEnrollmentAvailableRenewal{} + + if err = json.Unmarshal(bytes, &varModelsEnrollmentAvailableRenewal); err == nil { + *o = ModelsEnrollmentAvailableRenewal(varModelsEnrollmentAvailableRenewal) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "AvailableRenewalType") + delete(additionalProperties, "Message") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsEnrollmentAvailableRenewal struct { + value *ModelsEnrollmentAvailableRenewal + isSet bool +} + +func (v NullableModelsEnrollmentAvailableRenewal) Get() *ModelsEnrollmentAvailableRenewal { + return v.value +} + +func (v *NullableModelsEnrollmentAvailableRenewal) Set(val *ModelsEnrollmentAvailableRenewal) { + v.value = val + v.isSet = true +} + +func (v NullableModelsEnrollmentAvailableRenewal) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsEnrollmentAvailableRenewal) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsEnrollmentAvailableRenewal(val *ModelsEnrollmentAvailableRenewal) *NullableModelsEnrollmentAvailableRenewal { + return &NullableModelsEnrollmentAvailableRenewal{value: val, isSet: true} +} + +func (v NullableModelsEnrollmentAvailableRenewal) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsEnrollmentAvailableRenewal) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_enrollment_csr_enrollment_request.go b/v1/api/keyfactor/model_models_enrollment_csr_enrollment_request.go new file mode 100644 index 0000000..9d04dfe --- /dev/null +++ b/v1/api/keyfactor/model_models_enrollment_csr_enrollment_request.go @@ -0,0 +1,409 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" + "time" +) + +// checks if the ModelsEnrollmentCSREnrollmentRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsEnrollmentCSREnrollmentRequest{} + +// ModelsEnrollmentCSREnrollmentRequest struct for ModelsEnrollmentCSREnrollmentRequest +type ModelsEnrollmentCSREnrollmentRequest struct { + CSR string `json:"CSR"` + CertificateAuthority *string `json:"CertificateAuthority,omitempty"` + IncludeChain *bool `json:"IncludeChain,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + AdditionalEnrollmentFields map[string]map[string]interface{} `json:"AdditionalEnrollmentFields,omitempty"` + Timestamp *time.Time `json:"Timestamp,omitempty"` + Template *string `json:"Template,omitempty"` + SANs *map[string][]string `json:"SANs,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsEnrollmentCSREnrollmentRequest ModelsEnrollmentCSREnrollmentRequest + +// NewModelsEnrollmentCSREnrollmentRequest instantiates a new ModelsEnrollmentCSREnrollmentRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsEnrollmentCSREnrollmentRequest(cSR string) *ModelsEnrollmentCSREnrollmentRequest { + this := ModelsEnrollmentCSREnrollmentRequest{} + this.CSR = cSR + return &this +} + +// NewModelsEnrollmentCSREnrollmentRequestWithDefaults instantiates a new ModelsEnrollmentCSREnrollmentRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsEnrollmentCSREnrollmentRequestWithDefaults() *ModelsEnrollmentCSREnrollmentRequest { + this := ModelsEnrollmentCSREnrollmentRequest{} + return &this +} + +// GetCSR returns the CSR field value +func (o *ModelsEnrollmentCSREnrollmentRequest) GetCSR() string { + if o == nil { + var ret string + return ret + } + + return o.CSR +} + +// GetCSROk returns a tuple with the CSR field value +// and a boolean to check if the value has been set. +func (o *ModelsEnrollmentCSREnrollmentRequest) GetCSROk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CSR, true +} + +// SetCSR sets field value +func (o *ModelsEnrollmentCSREnrollmentRequest) SetCSR(v string) { + o.CSR = v +} + +// GetCertificateAuthority returns the CertificateAuthority field value if set, zero value otherwise. +func (o *ModelsEnrollmentCSREnrollmentRequest) GetCertificateAuthority() string { + if o == nil || isNil(o.CertificateAuthority) { + var ret string + return ret + } + return *o.CertificateAuthority +} + +// GetCertificateAuthorityOk returns a tuple with the CertificateAuthority field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsEnrollmentCSREnrollmentRequest) GetCertificateAuthorityOk() (*string, bool) { + if o == nil || isNil(o.CertificateAuthority) { + return nil, false + } + return o.CertificateAuthority, true +} + +// HasCertificateAuthority returns a boolean if a field has been set. +func (o *ModelsEnrollmentCSREnrollmentRequest) HasCertificateAuthority() bool { + if o != nil && !isNil(o.CertificateAuthority) { + return true + } + + return false +} + +// SetCertificateAuthority gets a reference to the given string and assigns it to the CertificateAuthority field. +func (o *ModelsEnrollmentCSREnrollmentRequest) SetCertificateAuthority(v string) { + o.CertificateAuthority = &v +} + +// GetIncludeChain returns the IncludeChain field value if set, zero value otherwise. +func (o *ModelsEnrollmentCSREnrollmentRequest) GetIncludeChain() bool { + if o == nil || isNil(o.IncludeChain) { + var ret bool + return ret + } + return *o.IncludeChain +} + +// GetIncludeChainOk returns a tuple with the IncludeChain field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsEnrollmentCSREnrollmentRequest) GetIncludeChainOk() (*bool, bool) { + if o == nil || isNil(o.IncludeChain) { + return nil, false + } + return o.IncludeChain, true +} + +// HasIncludeChain returns a boolean if a field has been set. +func (o *ModelsEnrollmentCSREnrollmentRequest) HasIncludeChain() bool { + if o != nil && !isNil(o.IncludeChain) { + return true + } + + return false +} + +// SetIncludeChain gets a reference to the given bool and assigns it to the IncludeChain field. +func (o *ModelsEnrollmentCSREnrollmentRequest) SetIncludeChain(v bool) { + o.IncludeChain = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ModelsEnrollmentCSREnrollmentRequest) GetMetadata() map[string]interface{} { + if o == nil || isNil(o.Metadata) { + var ret map[string]interface{} + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsEnrollmentCSREnrollmentRequest) GetMetadataOk() (map[string]interface{}, bool) { + if o == nil || isNil(o.Metadata) { + return map[string]interface{}{}, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ModelsEnrollmentCSREnrollmentRequest) HasMetadata() bool { + if o != nil && !isNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given map[string]interface{} and assigns it to the Metadata field. +func (o *ModelsEnrollmentCSREnrollmentRequest) SetMetadata(v map[string]interface{}) { + o.Metadata = v +} + +// GetAdditionalEnrollmentFields returns the AdditionalEnrollmentFields field value if set, zero value otherwise. +func (o *ModelsEnrollmentCSREnrollmentRequest) GetAdditionalEnrollmentFields() map[string]map[string]interface{} { + if o == nil || isNil(o.AdditionalEnrollmentFields) { + var ret map[string]map[string]interface{} + return ret + } + return o.AdditionalEnrollmentFields +} + +// GetAdditionalEnrollmentFieldsOk returns a tuple with the AdditionalEnrollmentFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsEnrollmentCSREnrollmentRequest) GetAdditionalEnrollmentFieldsOk() (map[string]map[string]interface{}, bool) { + if o == nil || isNil(o.AdditionalEnrollmentFields) { + return map[string]map[string]interface{}{}, false + } + return o.AdditionalEnrollmentFields, true +} + +// HasAdditionalEnrollmentFields returns a boolean if a field has been set. +func (o *ModelsEnrollmentCSREnrollmentRequest) HasAdditionalEnrollmentFields() bool { + if o != nil && !isNil(o.AdditionalEnrollmentFields) { + return true + } + + return false +} + +// SetAdditionalEnrollmentFields gets a reference to the given map[string]map[string]interface{} and assigns it to the AdditionalEnrollmentFields field. +func (o *ModelsEnrollmentCSREnrollmentRequest) SetAdditionalEnrollmentFields(v map[string]map[string]interface{}) { + o.AdditionalEnrollmentFields = v +} + +// GetTimestamp returns the Timestamp field value if set, zero value otherwise. +func (o *ModelsEnrollmentCSREnrollmentRequest) GetTimestamp() time.Time { + if o == nil || isNil(o.Timestamp) { + var ret time.Time + return ret + } + return *o.Timestamp +} + +// GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsEnrollmentCSREnrollmentRequest) GetTimestampOk() (*time.Time, bool) { + if o == nil || isNil(o.Timestamp) { + return nil, false + } + return o.Timestamp, true +} + +// HasTimestamp returns a boolean if a field has been set. +func (o *ModelsEnrollmentCSREnrollmentRequest) HasTimestamp() bool { + if o != nil && !isNil(o.Timestamp) { + return true + } + + return false +} + +// SetTimestamp gets a reference to the given time.Time and assigns it to the Timestamp field. +func (o *ModelsEnrollmentCSREnrollmentRequest) SetTimestamp(v time.Time) { + o.Timestamp = &v +} + +// GetTemplate returns the Template field value if set, zero value otherwise. +func (o *ModelsEnrollmentCSREnrollmentRequest) GetTemplate() string { + if o == nil || isNil(o.Template) { + var ret string + return ret + } + return *o.Template +} + +// GetTemplateOk returns a tuple with the Template field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsEnrollmentCSREnrollmentRequest) GetTemplateOk() (*string, bool) { + if o == nil || isNil(o.Template) { + return nil, false + } + return o.Template, true +} + +// HasTemplate returns a boolean if a field has been set. +func (o *ModelsEnrollmentCSREnrollmentRequest) HasTemplate() bool { + if o != nil && !isNil(o.Template) { + return true + } + + return false +} + +// SetTemplate gets a reference to the given string and assigns it to the Template field. +func (o *ModelsEnrollmentCSREnrollmentRequest) SetTemplate(v string) { + o.Template = &v +} + +// GetSANs returns the SANs field value if set, zero value otherwise. +func (o *ModelsEnrollmentCSREnrollmentRequest) GetSANs() map[string][]string { + if o == nil || isNil(o.SANs) { + var ret map[string][]string + return ret + } + return *o.SANs +} + +// GetSANsOk returns a tuple with the SANs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsEnrollmentCSREnrollmentRequest) GetSANsOk() (*map[string][]string, bool) { + if o == nil || isNil(o.SANs) { + return nil, false + } + return o.SANs, true +} + +// HasSANs returns a boolean if a field has been set. +func (o *ModelsEnrollmentCSREnrollmentRequest) HasSANs() bool { + if o != nil && !isNil(o.SANs) { + return true + } + + return false +} + +// SetSANs gets a reference to the given map[string][]string and assigns it to the SANs field. +func (o *ModelsEnrollmentCSREnrollmentRequest) SetSANs(v map[string][]string) { + o.SANs = &v +} + +func (o ModelsEnrollmentCSREnrollmentRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsEnrollmentCSREnrollmentRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["CSR"] = o.CSR + if !isNil(o.CertificateAuthority) { + toSerialize["CertificateAuthority"] = o.CertificateAuthority + } + if !isNil(o.IncludeChain) { + toSerialize["IncludeChain"] = o.IncludeChain + } + if !isNil(o.Metadata) { + toSerialize["Metadata"] = o.Metadata + } + if !isNil(o.AdditionalEnrollmentFields) { + toSerialize["AdditionalEnrollmentFields"] = o.AdditionalEnrollmentFields + } + if !isNil(o.Timestamp) { + toSerialize["Timestamp"] = o.Timestamp + } + if !isNil(o.Template) { + toSerialize["Template"] = o.Template + } + if !isNil(o.SANs) { + toSerialize["SANs"] = o.SANs + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsEnrollmentCSREnrollmentRequest) UnmarshalJSON(bytes []byte) (err error) { + varModelsEnrollmentCSREnrollmentRequest := _ModelsEnrollmentCSREnrollmentRequest{} + + if err = json.Unmarshal(bytes, &varModelsEnrollmentCSREnrollmentRequest); err == nil { + *o = ModelsEnrollmentCSREnrollmentRequest(varModelsEnrollmentCSREnrollmentRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "CSR") + delete(additionalProperties, "CertificateAuthority") + delete(additionalProperties, "IncludeChain") + delete(additionalProperties, "Metadata") + delete(additionalProperties, "AdditionalEnrollmentFields") + delete(additionalProperties, "Timestamp") + delete(additionalProperties, "Template") + delete(additionalProperties, "SANs") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsEnrollmentCSREnrollmentRequest struct { + value *ModelsEnrollmentCSREnrollmentRequest + isSet bool +} + +func (v NullableModelsEnrollmentCSREnrollmentRequest) Get() *ModelsEnrollmentCSREnrollmentRequest { + return v.value +} + +func (v *NullableModelsEnrollmentCSREnrollmentRequest) Set(val *ModelsEnrollmentCSREnrollmentRequest) { + v.value = val + v.isSet = true +} + +func (v NullableModelsEnrollmentCSREnrollmentRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsEnrollmentCSREnrollmentRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsEnrollmentCSREnrollmentRequest(val *ModelsEnrollmentCSREnrollmentRequest) *NullableModelsEnrollmentCSREnrollmentRequest { + return &NullableModelsEnrollmentCSREnrollmentRequest{value: val, isSet: true} +} + +func (v NullableModelsEnrollmentCSREnrollmentRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsEnrollmentCSREnrollmentRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_enrollment_csr_enrollment_response.go b/v1/api/keyfactor/model_models_enrollment_csr_enrollment_response.go new file mode 100644 index 0000000..f1f0295 --- /dev/null +++ b/v1/api/keyfactor/model_models_enrollment_csr_enrollment_response.go @@ -0,0 +1,195 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsEnrollmentCSREnrollmentResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsEnrollmentCSREnrollmentResponse{} + +// ModelsEnrollmentCSREnrollmentResponse struct for ModelsEnrollmentCSREnrollmentResponse +type ModelsEnrollmentCSREnrollmentResponse struct { + CertificateInformation *ModelsPkcs10CertificateResponse `json:"CertificateInformation,omitempty"` + Metadata *map[string]string `json:"Metadata,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsEnrollmentCSREnrollmentResponse ModelsEnrollmentCSREnrollmentResponse + +// NewModelsEnrollmentCSREnrollmentResponse instantiates a new ModelsEnrollmentCSREnrollmentResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsEnrollmentCSREnrollmentResponse() *ModelsEnrollmentCSREnrollmentResponse { + this := ModelsEnrollmentCSREnrollmentResponse{} + return &this +} + +// NewModelsEnrollmentCSREnrollmentResponseWithDefaults instantiates a new ModelsEnrollmentCSREnrollmentResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsEnrollmentCSREnrollmentResponseWithDefaults() *ModelsEnrollmentCSREnrollmentResponse { + this := ModelsEnrollmentCSREnrollmentResponse{} + return &this +} + +// GetCertificateInformation returns the CertificateInformation field value if set, zero value otherwise. +func (o *ModelsEnrollmentCSREnrollmentResponse) GetCertificateInformation() ModelsPkcs10CertificateResponse { + if o == nil || isNil(o.CertificateInformation) { + var ret ModelsPkcs10CertificateResponse + return ret + } + return *o.CertificateInformation +} + +// GetCertificateInformationOk returns a tuple with the CertificateInformation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsEnrollmentCSREnrollmentResponse) GetCertificateInformationOk() (*ModelsPkcs10CertificateResponse, bool) { + if o == nil || isNil(o.CertificateInformation) { + return nil, false + } + return o.CertificateInformation, true +} + +// HasCertificateInformation returns a boolean if a field has been set. +func (o *ModelsEnrollmentCSREnrollmentResponse) HasCertificateInformation() bool { + if o != nil && !isNil(o.CertificateInformation) { + return true + } + + return false +} + +// SetCertificateInformation gets a reference to the given ModelsPkcs10CertificateResponse and assigns it to the CertificateInformation field. +func (o *ModelsEnrollmentCSREnrollmentResponse) SetCertificateInformation(v ModelsPkcs10CertificateResponse) { + o.CertificateInformation = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ModelsEnrollmentCSREnrollmentResponse) GetMetadata() map[string]string { + if o == nil || isNil(o.Metadata) { + var ret map[string]string + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsEnrollmentCSREnrollmentResponse) GetMetadataOk() (*map[string]string, bool) { + if o == nil || isNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ModelsEnrollmentCSREnrollmentResponse) HasMetadata() bool { + if o != nil && !isNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given map[string]string and assigns it to the Metadata field. +func (o *ModelsEnrollmentCSREnrollmentResponse) SetMetadata(v map[string]string) { + o.Metadata = &v +} + +func (o ModelsEnrollmentCSREnrollmentResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsEnrollmentCSREnrollmentResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.CertificateInformation) { + toSerialize["CertificateInformation"] = o.CertificateInformation + } + if !isNil(o.Metadata) { + toSerialize["Metadata"] = o.Metadata + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsEnrollmentCSREnrollmentResponse) UnmarshalJSON(bytes []byte) (err error) { + varModelsEnrollmentCSREnrollmentResponse := _ModelsEnrollmentCSREnrollmentResponse{} + + if err = json.Unmarshal(bytes, &varModelsEnrollmentCSREnrollmentResponse); err == nil { + *o = ModelsEnrollmentCSREnrollmentResponse(varModelsEnrollmentCSREnrollmentResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "CertificateInformation") + delete(additionalProperties, "Metadata") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsEnrollmentCSREnrollmentResponse struct { + value *ModelsEnrollmentCSREnrollmentResponse + isSet bool +} + +func (v NullableModelsEnrollmentCSREnrollmentResponse) Get() *ModelsEnrollmentCSREnrollmentResponse { + return v.value +} + +func (v *NullableModelsEnrollmentCSREnrollmentResponse) Set(val *ModelsEnrollmentCSREnrollmentResponse) { + v.value = val + v.isSet = true +} + +func (v NullableModelsEnrollmentCSREnrollmentResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsEnrollmentCSREnrollmentResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsEnrollmentCSREnrollmentResponse(val *ModelsEnrollmentCSREnrollmentResponse) *NullableModelsEnrollmentCSREnrollmentResponse { + return &NullableModelsEnrollmentCSREnrollmentResponse{value: val, isSet: true} +} + +func (v NullableModelsEnrollmentCSREnrollmentResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsEnrollmentCSREnrollmentResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_enrollment_csr_generation_request.go b/v1/api/keyfactor/model_models_enrollment_csr_generation_request.go new file mode 100644 index 0000000..acdb875 --- /dev/null +++ b/v1/api/keyfactor/model_models_enrollment_csr_generation_request.go @@ -0,0 +1,282 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsEnrollmentCSRGenerationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsEnrollmentCSRGenerationRequest{} + +// ModelsEnrollmentCSRGenerationRequest struct for ModelsEnrollmentCSRGenerationRequest +type ModelsEnrollmentCSRGenerationRequest struct { + // Subject for the requested certificate + Subject string `json:"Subject"` + // Certificate key type [RSA, ECC] + KeyType string `json:"KeyType"` + // Size of the certificate key (ex: RSA 1024, 2048, 4096/ECC 256, 384, 521) + KeyLength int32 `json:"KeyLength"` + Template *string `json:"Template,omitempty"` + SANs *map[string][]string `json:"SANs,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsEnrollmentCSRGenerationRequest ModelsEnrollmentCSRGenerationRequest + +// NewModelsEnrollmentCSRGenerationRequest instantiates a new ModelsEnrollmentCSRGenerationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsEnrollmentCSRGenerationRequest(subject string, keyType string, keyLength int32) *ModelsEnrollmentCSRGenerationRequest { + this := ModelsEnrollmentCSRGenerationRequest{} + this.Subject = subject + this.KeyType = keyType + this.KeyLength = keyLength + return &this +} + +// NewModelsEnrollmentCSRGenerationRequestWithDefaults instantiates a new ModelsEnrollmentCSRGenerationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsEnrollmentCSRGenerationRequestWithDefaults() *ModelsEnrollmentCSRGenerationRequest { + this := ModelsEnrollmentCSRGenerationRequest{} + return &this +} + +// GetSubject returns the Subject field value +func (o *ModelsEnrollmentCSRGenerationRequest) GetSubject() string { + if o == nil { + var ret string + return ret + } + + return o.Subject +} + +// GetSubjectOk returns a tuple with the Subject field value +// and a boolean to check if the value has been set. +func (o *ModelsEnrollmentCSRGenerationRequest) GetSubjectOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Subject, true +} + +// SetSubject sets field value +func (o *ModelsEnrollmentCSRGenerationRequest) SetSubject(v string) { + o.Subject = v +} + +// GetKeyType returns the KeyType field value +func (o *ModelsEnrollmentCSRGenerationRequest) GetKeyType() string { + if o == nil { + var ret string + return ret + } + + return o.KeyType +} + +// GetKeyTypeOk returns a tuple with the KeyType field value +// and a boolean to check if the value has been set. +func (o *ModelsEnrollmentCSRGenerationRequest) GetKeyTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.KeyType, true +} + +// SetKeyType sets field value +func (o *ModelsEnrollmentCSRGenerationRequest) SetKeyType(v string) { + o.KeyType = v +} + +// GetKeyLength returns the KeyLength field value +func (o *ModelsEnrollmentCSRGenerationRequest) GetKeyLength() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.KeyLength +} + +// GetKeyLengthOk returns a tuple with the KeyLength field value +// and a boolean to check if the value has been set. +func (o *ModelsEnrollmentCSRGenerationRequest) GetKeyLengthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.KeyLength, true +} + +// SetKeyLength sets field value +func (o *ModelsEnrollmentCSRGenerationRequest) SetKeyLength(v int32) { + o.KeyLength = v +} + +// GetTemplate returns the Template field value if set, zero value otherwise. +func (o *ModelsEnrollmentCSRGenerationRequest) GetTemplate() string { + if o == nil || isNil(o.Template) { + var ret string + return ret + } + return *o.Template +} + +// GetTemplateOk returns a tuple with the Template field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsEnrollmentCSRGenerationRequest) GetTemplateOk() (*string, bool) { + if o == nil || isNil(o.Template) { + return nil, false + } + return o.Template, true +} + +// HasTemplate returns a boolean if a field has been set. +func (o *ModelsEnrollmentCSRGenerationRequest) HasTemplate() bool { + if o != nil && !isNil(o.Template) { + return true + } + + return false +} + +// SetTemplate gets a reference to the given string and assigns it to the Template field. +func (o *ModelsEnrollmentCSRGenerationRequest) SetTemplate(v string) { + o.Template = &v +} + +// GetSANs returns the SANs field value if set, zero value otherwise. +func (o *ModelsEnrollmentCSRGenerationRequest) GetSANs() map[string][]string { + if o == nil || isNil(o.SANs) { + var ret map[string][]string + return ret + } + return *o.SANs +} + +// GetSANsOk returns a tuple with the SANs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsEnrollmentCSRGenerationRequest) GetSANsOk() (*map[string][]string, bool) { + if o == nil || isNil(o.SANs) { + return nil, false + } + return o.SANs, true +} + +// HasSANs returns a boolean if a field has been set. +func (o *ModelsEnrollmentCSRGenerationRequest) HasSANs() bool { + if o != nil && !isNil(o.SANs) { + return true + } + + return false +} + +// SetSANs gets a reference to the given map[string][]string and assigns it to the SANs field. +func (o *ModelsEnrollmentCSRGenerationRequest) SetSANs(v map[string][]string) { + o.SANs = &v +} + +func (o ModelsEnrollmentCSRGenerationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsEnrollmentCSRGenerationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Subject"] = o.Subject + toSerialize["KeyType"] = o.KeyType + toSerialize["KeyLength"] = o.KeyLength + if !isNil(o.Template) { + toSerialize["Template"] = o.Template + } + if !isNil(o.SANs) { + toSerialize["SANs"] = o.SANs + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsEnrollmentCSRGenerationRequest) UnmarshalJSON(bytes []byte) (err error) { + varModelsEnrollmentCSRGenerationRequest := _ModelsEnrollmentCSRGenerationRequest{} + + if err = json.Unmarshal(bytes, &varModelsEnrollmentCSRGenerationRequest); err == nil { + *o = ModelsEnrollmentCSRGenerationRequest(varModelsEnrollmentCSRGenerationRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Subject") + delete(additionalProperties, "KeyType") + delete(additionalProperties, "KeyLength") + delete(additionalProperties, "Template") + delete(additionalProperties, "SANs") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsEnrollmentCSRGenerationRequest struct { + value *ModelsEnrollmentCSRGenerationRequest + isSet bool +} + +func (v NullableModelsEnrollmentCSRGenerationRequest) Get() *ModelsEnrollmentCSRGenerationRequest { + return v.value +} + +func (v *NullableModelsEnrollmentCSRGenerationRequest) Set(val *ModelsEnrollmentCSRGenerationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableModelsEnrollmentCSRGenerationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsEnrollmentCSRGenerationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsEnrollmentCSRGenerationRequest(val *ModelsEnrollmentCSRGenerationRequest) *NullableModelsEnrollmentCSRGenerationRequest { + return &NullableModelsEnrollmentCSRGenerationRequest{value: val, isSet: true} +} + +func (v NullableModelsEnrollmentCSRGenerationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsEnrollmentCSRGenerationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_enrollment_existing_enrollment_management_request.go b/v1/api/keyfactor/model_models_enrollment_existing_enrollment_management_request.go new file mode 100644 index 0000000..3b4cd2f --- /dev/null +++ b/v1/api/keyfactor/model_models_enrollment_existing_enrollment_management_request.go @@ -0,0 +1,307 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" + "time" +) + +// checks if the ModelsEnrollmentExistingEnrollmentManagementRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsEnrollmentExistingEnrollmentManagementRequest{} + +// ModelsEnrollmentExistingEnrollmentManagementRequest struct for ModelsEnrollmentExistingEnrollmentManagementRequest +type ModelsEnrollmentExistingEnrollmentManagementRequest struct { + ExistingCertificateId *int32 `json:"ExistingCertificateId,omitempty"` + CertificateId *int32 `json:"CertificateId,omitempty"` + RequestId *int32 `json:"RequestId,omitempty"` + Password *string `json:"Password,omitempty"` + JobTime *time.Time `json:"JobTime,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsEnrollmentExistingEnrollmentManagementRequest ModelsEnrollmentExistingEnrollmentManagementRequest + +// NewModelsEnrollmentExistingEnrollmentManagementRequest instantiates a new ModelsEnrollmentExistingEnrollmentManagementRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsEnrollmentExistingEnrollmentManagementRequest() *ModelsEnrollmentExistingEnrollmentManagementRequest { + this := ModelsEnrollmentExistingEnrollmentManagementRequest{} + return &this +} + +// NewModelsEnrollmentExistingEnrollmentManagementRequestWithDefaults instantiates a new ModelsEnrollmentExistingEnrollmentManagementRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsEnrollmentExistingEnrollmentManagementRequestWithDefaults() *ModelsEnrollmentExistingEnrollmentManagementRequest { + this := ModelsEnrollmentExistingEnrollmentManagementRequest{} + return &this +} + +// GetExistingCertificateId returns the ExistingCertificateId field value if set, zero value otherwise. +func (o *ModelsEnrollmentExistingEnrollmentManagementRequest) GetExistingCertificateId() int32 { + if o == nil || isNil(o.ExistingCertificateId) { + var ret int32 + return ret + } + return *o.ExistingCertificateId +} + +// GetExistingCertificateIdOk returns a tuple with the ExistingCertificateId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsEnrollmentExistingEnrollmentManagementRequest) GetExistingCertificateIdOk() (*int32, bool) { + if o == nil || isNil(o.ExistingCertificateId) { + return nil, false + } + return o.ExistingCertificateId, true +} + +// HasExistingCertificateId returns a boolean if a field has been set. +func (o *ModelsEnrollmentExistingEnrollmentManagementRequest) HasExistingCertificateId() bool { + if o != nil && !isNil(o.ExistingCertificateId) { + return true + } + + return false +} + +// SetExistingCertificateId gets a reference to the given int32 and assigns it to the ExistingCertificateId field. +func (o *ModelsEnrollmentExistingEnrollmentManagementRequest) SetExistingCertificateId(v int32) { + o.ExistingCertificateId = &v +} + +// GetCertificateId returns the CertificateId field value if set, zero value otherwise. +func (o *ModelsEnrollmentExistingEnrollmentManagementRequest) GetCertificateId() int32 { + if o == nil || isNil(o.CertificateId) { + var ret int32 + return ret + } + return *o.CertificateId +} + +// GetCertificateIdOk returns a tuple with the CertificateId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsEnrollmentExistingEnrollmentManagementRequest) GetCertificateIdOk() (*int32, bool) { + if o == nil || isNil(o.CertificateId) { + return nil, false + } + return o.CertificateId, true +} + +// HasCertificateId returns a boolean if a field has been set. +func (o *ModelsEnrollmentExistingEnrollmentManagementRequest) HasCertificateId() bool { + if o != nil && !isNil(o.CertificateId) { + return true + } + + return false +} + +// SetCertificateId gets a reference to the given int32 and assigns it to the CertificateId field. +func (o *ModelsEnrollmentExistingEnrollmentManagementRequest) SetCertificateId(v int32) { + o.CertificateId = &v +} + +// GetRequestId returns the RequestId field value if set, zero value otherwise. +func (o *ModelsEnrollmentExistingEnrollmentManagementRequest) GetRequestId() int32 { + if o == nil || isNil(o.RequestId) { + var ret int32 + return ret + } + return *o.RequestId +} + +// GetRequestIdOk returns a tuple with the RequestId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsEnrollmentExistingEnrollmentManagementRequest) GetRequestIdOk() (*int32, bool) { + if o == nil || isNil(o.RequestId) { + return nil, false + } + return o.RequestId, true +} + +// HasRequestId returns a boolean if a field has been set. +func (o *ModelsEnrollmentExistingEnrollmentManagementRequest) HasRequestId() bool { + if o != nil && !isNil(o.RequestId) { + return true + } + + return false +} + +// SetRequestId gets a reference to the given int32 and assigns it to the RequestId field. +func (o *ModelsEnrollmentExistingEnrollmentManagementRequest) SetRequestId(v int32) { + o.RequestId = &v +} + +// GetPassword returns the Password field value if set, zero value otherwise. +func (o *ModelsEnrollmentExistingEnrollmentManagementRequest) GetPassword() string { + if o == nil || isNil(o.Password) { + var ret string + return ret + } + return *o.Password +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsEnrollmentExistingEnrollmentManagementRequest) GetPasswordOk() (*string, bool) { + if o == nil || isNil(o.Password) { + return nil, false + } + return o.Password, true +} + +// HasPassword returns a boolean if a field has been set. +func (o *ModelsEnrollmentExistingEnrollmentManagementRequest) HasPassword() bool { + if o != nil && !isNil(o.Password) { + return true + } + + return false +} + +// SetPassword gets a reference to the given string and assigns it to the Password field. +func (o *ModelsEnrollmentExistingEnrollmentManagementRequest) SetPassword(v string) { + o.Password = &v +} + +// GetJobTime returns the JobTime field value if set, zero value otherwise. +func (o *ModelsEnrollmentExistingEnrollmentManagementRequest) GetJobTime() time.Time { + if o == nil || isNil(o.JobTime) { + var ret time.Time + return ret + } + return *o.JobTime +} + +// GetJobTimeOk returns a tuple with the JobTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsEnrollmentExistingEnrollmentManagementRequest) GetJobTimeOk() (*time.Time, bool) { + if o == nil || isNil(o.JobTime) { + return nil, false + } + return o.JobTime, true +} + +// HasJobTime returns a boolean if a field has been set. +func (o *ModelsEnrollmentExistingEnrollmentManagementRequest) HasJobTime() bool { + if o != nil && !isNil(o.JobTime) { + return true + } + + return false +} + +// SetJobTime gets a reference to the given time.Time and assigns it to the JobTime field. +func (o *ModelsEnrollmentExistingEnrollmentManagementRequest) SetJobTime(v time.Time) { + o.JobTime = &v +} + +func (o ModelsEnrollmentExistingEnrollmentManagementRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsEnrollmentExistingEnrollmentManagementRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.ExistingCertificateId) { + toSerialize["ExistingCertificateId"] = o.ExistingCertificateId + } + if !isNil(o.CertificateId) { + toSerialize["CertificateId"] = o.CertificateId + } + if !isNil(o.RequestId) { + toSerialize["RequestId"] = o.RequestId + } + if !isNil(o.Password) { + toSerialize["Password"] = o.Password + } + if !isNil(o.JobTime) { + toSerialize["JobTime"] = o.JobTime + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsEnrollmentExistingEnrollmentManagementRequest) UnmarshalJSON(bytes []byte) (err error) { + varModelsEnrollmentExistingEnrollmentManagementRequest := _ModelsEnrollmentExistingEnrollmentManagementRequest{} + + if err = json.Unmarshal(bytes, &varModelsEnrollmentExistingEnrollmentManagementRequest); err == nil { + *o = ModelsEnrollmentExistingEnrollmentManagementRequest(varModelsEnrollmentExistingEnrollmentManagementRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "ExistingCertificateId") + delete(additionalProperties, "CertificateId") + delete(additionalProperties, "RequestId") + delete(additionalProperties, "Password") + delete(additionalProperties, "JobTime") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsEnrollmentExistingEnrollmentManagementRequest struct { + value *ModelsEnrollmentExistingEnrollmentManagementRequest + isSet bool +} + +func (v NullableModelsEnrollmentExistingEnrollmentManagementRequest) Get() *ModelsEnrollmentExistingEnrollmentManagementRequest { + return v.value +} + +func (v *NullableModelsEnrollmentExistingEnrollmentManagementRequest) Set(val *ModelsEnrollmentExistingEnrollmentManagementRequest) { + v.value = val + v.isSet = true +} + +func (v NullableModelsEnrollmentExistingEnrollmentManagementRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsEnrollmentExistingEnrollmentManagementRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsEnrollmentExistingEnrollmentManagementRequest(val *ModelsEnrollmentExistingEnrollmentManagementRequest) *NullableModelsEnrollmentExistingEnrollmentManagementRequest { + return &NullableModelsEnrollmentExistingEnrollmentManagementRequest{value: val, isSet: true} +} + +func (v NullableModelsEnrollmentExistingEnrollmentManagementRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsEnrollmentExistingEnrollmentManagementRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_enrollment_management_store_type.go b/v1/api/keyfactor/model_models_enrollment_management_store_type.go new file mode 100644 index 0000000..1a7b4a1 --- /dev/null +++ b/v1/api/keyfactor/model_models_enrollment_management_store_type.go @@ -0,0 +1,269 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsEnrollmentManagementStoreType type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsEnrollmentManagementStoreType{} + +// ModelsEnrollmentManagementStoreType struct for ModelsEnrollmentManagementStoreType +type ModelsEnrollmentManagementStoreType struct { + StoreTypeId *int32 `json:"StoreTypeId,omitempty"` + Alias *string `json:"Alias,omitempty"` + Overwrite *bool `json:"Overwrite,omitempty"` + Properties []map[string]interface{} `json:"Properties,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsEnrollmentManagementStoreType ModelsEnrollmentManagementStoreType + +// NewModelsEnrollmentManagementStoreType instantiates a new ModelsEnrollmentManagementStoreType object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsEnrollmentManagementStoreType() *ModelsEnrollmentManagementStoreType { + this := ModelsEnrollmentManagementStoreType{} + return &this +} + +// NewModelsEnrollmentManagementStoreTypeWithDefaults instantiates a new ModelsEnrollmentManagementStoreType object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsEnrollmentManagementStoreTypeWithDefaults() *ModelsEnrollmentManagementStoreType { + this := ModelsEnrollmentManagementStoreType{} + return &this +} + +// GetStoreTypeId returns the StoreTypeId field value if set, zero value otherwise. +func (o *ModelsEnrollmentManagementStoreType) GetStoreTypeId() int32 { + if o == nil || isNil(o.StoreTypeId) { + var ret int32 + return ret + } + return *o.StoreTypeId +} + +// GetStoreTypeIdOk returns a tuple with the StoreTypeId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsEnrollmentManagementStoreType) GetStoreTypeIdOk() (*int32, bool) { + if o == nil || isNil(o.StoreTypeId) { + return nil, false + } + return o.StoreTypeId, true +} + +// HasStoreTypeId returns a boolean if a field has been set. +func (o *ModelsEnrollmentManagementStoreType) HasStoreTypeId() bool { + if o != nil && !isNil(o.StoreTypeId) { + return true + } + + return false +} + +// SetStoreTypeId gets a reference to the given int32 and assigns it to the StoreTypeId field. +func (o *ModelsEnrollmentManagementStoreType) SetStoreTypeId(v int32) { + o.StoreTypeId = &v +} + +// GetAlias returns the Alias field value if set, zero value otherwise. +func (o *ModelsEnrollmentManagementStoreType) GetAlias() string { + if o == nil || isNil(o.Alias) { + var ret string + return ret + } + return *o.Alias +} + +// GetAliasOk returns a tuple with the Alias field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsEnrollmentManagementStoreType) GetAliasOk() (*string, bool) { + if o == nil || isNil(o.Alias) { + return nil, false + } + return o.Alias, true +} + +// HasAlias returns a boolean if a field has been set. +func (o *ModelsEnrollmentManagementStoreType) HasAlias() bool { + if o != nil && !isNil(o.Alias) { + return true + } + + return false +} + +// SetAlias gets a reference to the given string and assigns it to the Alias field. +func (o *ModelsEnrollmentManagementStoreType) SetAlias(v string) { + o.Alias = &v +} + +// GetOverwrite returns the Overwrite field value if set, zero value otherwise. +func (o *ModelsEnrollmentManagementStoreType) GetOverwrite() bool { + if o == nil || isNil(o.Overwrite) { + var ret bool + return ret + } + return *o.Overwrite +} + +// GetOverwriteOk returns a tuple with the Overwrite field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsEnrollmentManagementStoreType) GetOverwriteOk() (*bool, bool) { + if o == nil || isNil(o.Overwrite) { + return nil, false + } + return o.Overwrite, true +} + +// HasOverwrite returns a boolean if a field has been set. +func (o *ModelsEnrollmentManagementStoreType) HasOverwrite() bool { + if o != nil && !isNil(o.Overwrite) { + return true + } + + return false +} + +// SetOverwrite gets a reference to the given bool and assigns it to the Overwrite field. +func (o *ModelsEnrollmentManagementStoreType) SetOverwrite(v bool) { + o.Overwrite = &v +} + +// GetProperties returns the Properties field value if set, zero value otherwise. +func (o *ModelsEnrollmentManagementStoreType) GetProperties() []map[string]interface{} { + if o == nil || isNil(o.Properties) { + var ret []map[string]interface{} + return ret + } + return o.Properties +} + +// GetPropertiesOk returns a tuple with the Properties field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsEnrollmentManagementStoreType) GetPropertiesOk() ([]map[string]interface{}, bool) { + if o == nil || isNil(o.Properties) { + return nil, false + } + return o.Properties, true +} + +// HasProperties returns a boolean if a field has been set. +func (o *ModelsEnrollmentManagementStoreType) HasProperties() bool { + if o != nil && !isNil(o.Properties) { + return true + } + + return false +} + +// SetProperties gets a reference to the given []map[string]interface{} and assigns it to the Properties field. +func (o *ModelsEnrollmentManagementStoreType) SetProperties(v []map[string]interface{}) { + o.Properties = v +} + +func (o ModelsEnrollmentManagementStoreType) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsEnrollmentManagementStoreType) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.StoreTypeId) { + toSerialize["StoreTypeId"] = o.StoreTypeId + } + if !isNil(o.Alias) { + toSerialize["Alias"] = o.Alias + } + if !isNil(o.Overwrite) { + toSerialize["Overwrite"] = o.Overwrite + } + if !isNil(o.Properties) { + toSerialize["Properties"] = o.Properties + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsEnrollmentManagementStoreType) UnmarshalJSON(bytes []byte) (err error) { + varModelsEnrollmentManagementStoreType := _ModelsEnrollmentManagementStoreType{} + + if err = json.Unmarshal(bytes, &varModelsEnrollmentManagementStoreType); err == nil { + *o = ModelsEnrollmentManagementStoreType(varModelsEnrollmentManagementStoreType) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "StoreTypeId") + delete(additionalProperties, "Alias") + delete(additionalProperties, "Overwrite") + delete(additionalProperties, "Properties") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsEnrollmentManagementStoreType struct { + value *ModelsEnrollmentManagementStoreType + isSet bool +} + +func (v NullableModelsEnrollmentManagementStoreType) Get() *ModelsEnrollmentManagementStoreType { + return v.value +} + +func (v *NullableModelsEnrollmentManagementStoreType) Set(val *ModelsEnrollmentManagementStoreType) { + v.value = val + v.isSet = true +} + +func (v NullableModelsEnrollmentManagementStoreType) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsEnrollmentManagementStoreType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsEnrollmentManagementStoreType(val *ModelsEnrollmentManagementStoreType) *NullableModelsEnrollmentManagementStoreType { + return &NullableModelsEnrollmentManagementStoreType{value: val, isSet: true} +} + +func (v NullableModelsEnrollmentManagementStoreType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsEnrollmentManagementStoreType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_enrollment_pfx_enrollment_request.go b/v1/api/keyfactor/model_models_enrollment_pfx_enrollment_request.go new file mode 100644 index 0000000..fc0fd56 --- /dev/null +++ b/v1/api/keyfactor/model_models_enrollment_pfx_enrollment_request.go @@ -0,0 +1,566 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" + "time" +) + +// checks if the ModelsEnrollmentPFXEnrollmentRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsEnrollmentPFXEnrollmentRequest{} + +// ModelsEnrollmentPFXEnrollmentRequest struct for ModelsEnrollmentPFXEnrollmentRequest +type ModelsEnrollmentPFXEnrollmentRequest struct { + CustomFriendlyName *string `json:"CustomFriendlyName,omitempty"` + Password *string `json:"Password,omitempty"` + PopulateMissingValuesFromAD *bool `json:"PopulateMissingValuesFromAD,omitempty"` + Subject *string `json:"Subject,omitempty"` + IncludeChain *bool `json:"IncludeChain,omitempty"` + RenewalCertificateId *int32 `json:"RenewalCertificateId,omitempty"` + CertificateAuthority *string `json:"CertificateAuthority,omitempty"` + Metadata map[string]interface{} `json:"Metadata,omitempty"` + AdditionalEnrollmentFields map[string]map[string]interface{} `json:"AdditionalEnrollmentFields,omitempty"` + Timestamp *time.Time `json:"Timestamp,omitempty"` + Template *string `json:"Template,omitempty"` + SANs *map[string][]string `json:"SANs,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsEnrollmentPFXEnrollmentRequest ModelsEnrollmentPFXEnrollmentRequest + +// NewModelsEnrollmentPFXEnrollmentRequest instantiates a new ModelsEnrollmentPFXEnrollmentRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsEnrollmentPFXEnrollmentRequest() *ModelsEnrollmentPFXEnrollmentRequest { + this := ModelsEnrollmentPFXEnrollmentRequest{} + return &this +} + +// NewModelsEnrollmentPFXEnrollmentRequestWithDefaults instantiates a new ModelsEnrollmentPFXEnrollmentRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsEnrollmentPFXEnrollmentRequestWithDefaults() *ModelsEnrollmentPFXEnrollmentRequest { + this := ModelsEnrollmentPFXEnrollmentRequest{} + return &this +} + +// GetCustomFriendlyName returns the CustomFriendlyName field value if set, zero value otherwise. +func (o *ModelsEnrollmentPFXEnrollmentRequest) GetCustomFriendlyName() string { + if o == nil || isNil(o.CustomFriendlyName) { + var ret string + return ret + } + return *o.CustomFriendlyName +} + +// GetCustomFriendlyNameOk returns a tuple with the CustomFriendlyName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsEnrollmentPFXEnrollmentRequest) GetCustomFriendlyNameOk() (*string, bool) { + if o == nil || isNil(o.CustomFriendlyName) { + return nil, false + } + return o.CustomFriendlyName, true +} + +// HasCustomFriendlyName returns a boolean if a field has been set. +func (o *ModelsEnrollmentPFXEnrollmentRequest) HasCustomFriendlyName() bool { + if o != nil && !isNil(o.CustomFriendlyName) { + return true + } + + return false +} + +// SetCustomFriendlyName gets a reference to the given string and assigns it to the CustomFriendlyName field. +func (o *ModelsEnrollmentPFXEnrollmentRequest) SetCustomFriendlyName(v string) { + o.CustomFriendlyName = &v +} + +// GetPassword returns the Password field value if set, zero value otherwise. +func (o *ModelsEnrollmentPFXEnrollmentRequest) GetPassword() string { + if o == nil || isNil(o.Password) { + var ret string + return ret + } + return *o.Password +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsEnrollmentPFXEnrollmentRequest) GetPasswordOk() (*string, bool) { + if o == nil || isNil(o.Password) { + return nil, false + } + return o.Password, true +} + +// HasPassword returns a boolean if a field has been set. +func (o *ModelsEnrollmentPFXEnrollmentRequest) HasPassword() bool { + if o != nil && !isNil(o.Password) { + return true + } + + return false +} + +// SetPassword gets a reference to the given string and assigns it to the Password field. +func (o *ModelsEnrollmentPFXEnrollmentRequest) SetPassword(v string) { + o.Password = &v +} + +// GetPopulateMissingValuesFromAD returns the PopulateMissingValuesFromAD field value if set, zero value otherwise. +func (o *ModelsEnrollmentPFXEnrollmentRequest) GetPopulateMissingValuesFromAD() bool { + if o == nil || isNil(o.PopulateMissingValuesFromAD) { + var ret bool + return ret + } + return *o.PopulateMissingValuesFromAD +} + +// GetPopulateMissingValuesFromADOk returns a tuple with the PopulateMissingValuesFromAD field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsEnrollmentPFXEnrollmentRequest) GetPopulateMissingValuesFromADOk() (*bool, bool) { + if o == nil || isNil(o.PopulateMissingValuesFromAD) { + return nil, false + } + return o.PopulateMissingValuesFromAD, true +} + +// HasPopulateMissingValuesFromAD returns a boolean if a field has been set. +func (o *ModelsEnrollmentPFXEnrollmentRequest) HasPopulateMissingValuesFromAD() bool { + if o != nil && !isNil(o.PopulateMissingValuesFromAD) { + return true + } + + return false +} + +// SetPopulateMissingValuesFromAD gets a reference to the given bool and assigns it to the PopulateMissingValuesFromAD field. +func (o *ModelsEnrollmentPFXEnrollmentRequest) SetPopulateMissingValuesFromAD(v bool) { + o.PopulateMissingValuesFromAD = &v +} + +// GetSubject returns the Subject field value if set, zero value otherwise. +func (o *ModelsEnrollmentPFXEnrollmentRequest) GetSubject() string { + if o == nil || isNil(o.Subject) { + var ret string + return ret + } + return *o.Subject +} + +// GetSubjectOk returns a tuple with the Subject field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsEnrollmentPFXEnrollmentRequest) GetSubjectOk() (*string, bool) { + if o == nil || isNil(o.Subject) { + return nil, false + } + return o.Subject, true +} + +// HasSubject returns a boolean if a field has been set. +func (o *ModelsEnrollmentPFXEnrollmentRequest) HasSubject() bool { + if o != nil && !isNil(o.Subject) { + return true + } + + return false +} + +// SetSubject gets a reference to the given string and assigns it to the Subject field. +func (o *ModelsEnrollmentPFXEnrollmentRequest) SetSubject(v string) { + o.Subject = &v +} + +// GetIncludeChain returns the IncludeChain field value if set, zero value otherwise. +func (o *ModelsEnrollmentPFXEnrollmentRequest) GetIncludeChain() bool { + if o == nil || isNil(o.IncludeChain) { + var ret bool + return ret + } + return *o.IncludeChain +} + +// GetIncludeChainOk returns a tuple with the IncludeChain field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsEnrollmentPFXEnrollmentRequest) GetIncludeChainOk() (*bool, bool) { + if o == nil || isNil(o.IncludeChain) { + return nil, false + } + return o.IncludeChain, true +} + +// HasIncludeChain returns a boolean if a field has been set. +func (o *ModelsEnrollmentPFXEnrollmentRequest) HasIncludeChain() bool { + if o != nil && !isNil(o.IncludeChain) { + return true + } + + return false +} + +// SetIncludeChain gets a reference to the given bool and assigns it to the IncludeChain field. +func (o *ModelsEnrollmentPFXEnrollmentRequest) SetIncludeChain(v bool) { + o.IncludeChain = &v +} + +// GetRenewalCertificateId returns the RenewalCertificateId field value if set, zero value otherwise. +func (o *ModelsEnrollmentPFXEnrollmentRequest) GetRenewalCertificateId() int32 { + if o == nil || isNil(o.RenewalCertificateId) { + var ret int32 + return ret + } + return *o.RenewalCertificateId +} + +// GetRenewalCertificateIdOk returns a tuple with the RenewalCertificateId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsEnrollmentPFXEnrollmentRequest) GetRenewalCertificateIdOk() (*int32, bool) { + if o == nil || isNil(o.RenewalCertificateId) { + return nil, false + } + return o.RenewalCertificateId, true +} + +// HasRenewalCertificateId returns a boolean if a field has been set. +func (o *ModelsEnrollmentPFXEnrollmentRequest) HasRenewalCertificateId() bool { + if o != nil && !isNil(o.RenewalCertificateId) { + return true + } + + return false +} + +// SetRenewalCertificateId gets a reference to the given int32 and assigns it to the RenewalCertificateId field. +func (o *ModelsEnrollmentPFXEnrollmentRequest) SetRenewalCertificateId(v int32) { + o.RenewalCertificateId = &v +} + +// GetCertificateAuthority returns the CertificateAuthority field value if set, zero value otherwise. +func (o *ModelsEnrollmentPFXEnrollmentRequest) GetCertificateAuthority() string { + if o == nil || isNil(o.CertificateAuthority) { + var ret string + return ret + } + return *o.CertificateAuthority +} + +// GetCertificateAuthorityOk returns a tuple with the CertificateAuthority field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsEnrollmentPFXEnrollmentRequest) GetCertificateAuthorityOk() (*string, bool) { + if o == nil || isNil(o.CertificateAuthority) { + return nil, false + } + return o.CertificateAuthority, true +} + +// HasCertificateAuthority returns a boolean if a field has been set. +func (o *ModelsEnrollmentPFXEnrollmentRequest) HasCertificateAuthority() bool { + if o != nil && !isNil(o.CertificateAuthority) { + return true + } + + return false +} + +// SetCertificateAuthority gets a reference to the given string and assigns it to the CertificateAuthority field. +func (o *ModelsEnrollmentPFXEnrollmentRequest) SetCertificateAuthority(v string) { + o.CertificateAuthority = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ModelsEnrollmentPFXEnrollmentRequest) GetMetadata() map[string]interface{} { + if o == nil || isNil(o.Metadata) { + var ret map[string]interface{} + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsEnrollmentPFXEnrollmentRequest) GetMetadataOk() (map[string]interface{}, bool) { + if o == nil || isNil(o.Metadata) { + return map[string]interface{}{}, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ModelsEnrollmentPFXEnrollmentRequest) HasMetadata() bool { + if o != nil && !isNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given map[string]interface{} and assigns it to the Metadata field. +func (o *ModelsEnrollmentPFXEnrollmentRequest) SetMetadata(v map[string]interface{}) { + o.Metadata = v +} + +// GetAdditionalEnrollmentFields returns the AdditionalEnrollmentFields field value if set, zero value otherwise. +func (o *ModelsEnrollmentPFXEnrollmentRequest) GetAdditionalEnrollmentFields() map[string]map[string]interface{} { + if o == nil || isNil(o.AdditionalEnrollmentFields) { + var ret map[string]map[string]interface{} + return ret + } + return o.AdditionalEnrollmentFields +} + +// GetAdditionalEnrollmentFieldsOk returns a tuple with the AdditionalEnrollmentFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsEnrollmentPFXEnrollmentRequest) GetAdditionalEnrollmentFieldsOk() (map[string]map[string]interface{}, bool) { + if o == nil || isNil(o.AdditionalEnrollmentFields) { + return map[string]map[string]interface{}{}, false + } + return o.AdditionalEnrollmentFields, true +} + +// HasAdditionalEnrollmentFields returns a boolean if a field has been set. +func (o *ModelsEnrollmentPFXEnrollmentRequest) HasAdditionalEnrollmentFields() bool { + if o != nil && !isNil(o.AdditionalEnrollmentFields) { + return true + } + + return false +} + +// SetAdditionalEnrollmentFields gets a reference to the given map[string]map[string]interface{} and assigns it to the AdditionalEnrollmentFields field. +func (o *ModelsEnrollmentPFXEnrollmentRequest) SetAdditionalEnrollmentFields(v map[string]map[string]interface{}) { + o.AdditionalEnrollmentFields = v +} + +// GetTimestamp returns the Timestamp field value if set, zero value otherwise. +func (o *ModelsEnrollmentPFXEnrollmentRequest) GetTimestamp() time.Time { + if o == nil || isNil(o.Timestamp) { + var ret time.Time + return ret + } + return *o.Timestamp +} + +// GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsEnrollmentPFXEnrollmentRequest) GetTimestampOk() (*time.Time, bool) { + if o == nil || isNil(o.Timestamp) { + return nil, false + } + return o.Timestamp, true +} + +// HasTimestamp returns a boolean if a field has been set. +func (o *ModelsEnrollmentPFXEnrollmentRequest) HasTimestamp() bool { + if o != nil && !isNil(o.Timestamp) { + return true + } + + return false +} + +// SetTimestamp gets a reference to the given time.Time and assigns it to the Timestamp field. +func (o *ModelsEnrollmentPFXEnrollmentRequest) SetTimestamp(v time.Time) { + o.Timestamp = &v +} + +// GetTemplate returns the Template field value if set, zero value otherwise. +func (o *ModelsEnrollmentPFXEnrollmentRequest) GetTemplate() string { + if o == nil || isNil(o.Template) { + var ret string + return ret + } + return *o.Template +} + +// GetTemplateOk returns a tuple with the Template field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsEnrollmentPFXEnrollmentRequest) GetTemplateOk() (*string, bool) { + if o == nil || isNil(o.Template) { + return nil, false + } + return o.Template, true +} + +// HasTemplate returns a boolean if a field has been set. +func (o *ModelsEnrollmentPFXEnrollmentRequest) HasTemplate() bool { + if o != nil && !isNil(o.Template) { + return true + } + + return false +} + +// SetTemplate gets a reference to the given string and assigns it to the Template field. +func (o *ModelsEnrollmentPFXEnrollmentRequest) SetTemplate(v string) { + o.Template = &v +} + +// GetSANs returns the SANs field value if set, zero value otherwise. +func (o *ModelsEnrollmentPFXEnrollmentRequest) GetSANs() map[string][]string { + if o == nil || isNil(o.SANs) { + var ret map[string][]string + return ret + } + return *o.SANs +} + +// GetSANsOk returns a tuple with the SANs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsEnrollmentPFXEnrollmentRequest) GetSANsOk() (*map[string][]string, bool) { + if o == nil || isNil(o.SANs) { + return nil, false + } + return o.SANs, true +} + +// HasSANs returns a boolean if a field has been set. +func (o *ModelsEnrollmentPFXEnrollmentRequest) HasSANs() bool { + if o != nil && !isNil(o.SANs) { + return true + } + + return false +} + +// SetSANs gets a reference to the given map[string][]string and assigns it to the SANs field. +func (o *ModelsEnrollmentPFXEnrollmentRequest) SetSANs(v map[string][]string) { + o.SANs = &v +} + +func (o ModelsEnrollmentPFXEnrollmentRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsEnrollmentPFXEnrollmentRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.CustomFriendlyName) { + toSerialize["CustomFriendlyName"] = o.CustomFriendlyName + } + if !isNil(o.Password) { + toSerialize["Password"] = o.Password + } + if !isNil(o.PopulateMissingValuesFromAD) { + toSerialize["PopulateMissingValuesFromAD"] = o.PopulateMissingValuesFromAD + } + if !isNil(o.Subject) { + toSerialize["Subject"] = o.Subject + } + if !isNil(o.IncludeChain) { + toSerialize["IncludeChain"] = o.IncludeChain + } + if !isNil(o.RenewalCertificateId) { + toSerialize["RenewalCertificateId"] = o.RenewalCertificateId + } + if !isNil(o.CertificateAuthority) { + toSerialize["CertificateAuthority"] = o.CertificateAuthority + } + if !isNil(o.Metadata) { + toSerialize["Metadata"] = o.Metadata + } + if !isNil(o.AdditionalEnrollmentFields) { + toSerialize["AdditionalEnrollmentFields"] = o.AdditionalEnrollmentFields + } + if !isNil(o.Timestamp) { + toSerialize["Timestamp"] = o.Timestamp + } + if !isNil(o.Template) { + toSerialize["Template"] = o.Template + } + if !isNil(o.SANs) { + toSerialize["SANs"] = o.SANs + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsEnrollmentPFXEnrollmentRequest) UnmarshalJSON(bytes []byte) (err error) { + varModelsEnrollmentPFXEnrollmentRequest := _ModelsEnrollmentPFXEnrollmentRequest{} + + if err = json.Unmarshal(bytes, &varModelsEnrollmentPFXEnrollmentRequest); err == nil { + *o = ModelsEnrollmentPFXEnrollmentRequest(varModelsEnrollmentPFXEnrollmentRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "CustomFriendlyName") + delete(additionalProperties, "Password") + delete(additionalProperties, "PopulateMissingValuesFromAD") + delete(additionalProperties, "Subject") + delete(additionalProperties, "IncludeChain") + delete(additionalProperties, "RenewalCertificateId") + delete(additionalProperties, "CertificateAuthority") + delete(additionalProperties, "Metadata") + delete(additionalProperties, "AdditionalEnrollmentFields") + delete(additionalProperties, "Timestamp") + delete(additionalProperties, "Template") + delete(additionalProperties, "SANs") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsEnrollmentPFXEnrollmentRequest struct { + value *ModelsEnrollmentPFXEnrollmentRequest + isSet bool +} + +func (v NullableModelsEnrollmentPFXEnrollmentRequest) Get() *ModelsEnrollmentPFXEnrollmentRequest { + return v.value +} + +func (v *NullableModelsEnrollmentPFXEnrollmentRequest) Set(val *ModelsEnrollmentPFXEnrollmentRequest) { + v.value = val + v.isSet = true +} + +func (v NullableModelsEnrollmentPFXEnrollmentRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsEnrollmentPFXEnrollmentRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsEnrollmentPFXEnrollmentRequest(val *ModelsEnrollmentPFXEnrollmentRequest) *NullableModelsEnrollmentPFXEnrollmentRequest { + return &NullableModelsEnrollmentPFXEnrollmentRequest{value: val, isSet: true} +} + +func (v NullableModelsEnrollmentPFXEnrollmentRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsEnrollmentPFXEnrollmentRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_enrollment_pfx_enrollment_response.go b/v1/api/keyfactor/model_models_enrollment_pfx_enrollment_response.go new file mode 100644 index 0000000..e1549b1 --- /dev/null +++ b/v1/api/keyfactor/model_models_enrollment_pfx_enrollment_response.go @@ -0,0 +1,195 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsEnrollmentPFXEnrollmentResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsEnrollmentPFXEnrollmentResponse{} + +// ModelsEnrollmentPFXEnrollmentResponse struct for ModelsEnrollmentPFXEnrollmentResponse +type ModelsEnrollmentPFXEnrollmentResponse struct { + CertificateInformation *ModelsPkcs12CertificateResponse `json:"CertificateInformation,omitempty"` + Metadata *map[string]string `json:"Metadata,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsEnrollmentPFXEnrollmentResponse ModelsEnrollmentPFXEnrollmentResponse + +// NewModelsEnrollmentPFXEnrollmentResponse instantiates a new ModelsEnrollmentPFXEnrollmentResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsEnrollmentPFXEnrollmentResponse() *ModelsEnrollmentPFXEnrollmentResponse { + this := ModelsEnrollmentPFXEnrollmentResponse{} + return &this +} + +// NewModelsEnrollmentPFXEnrollmentResponseWithDefaults instantiates a new ModelsEnrollmentPFXEnrollmentResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsEnrollmentPFXEnrollmentResponseWithDefaults() *ModelsEnrollmentPFXEnrollmentResponse { + this := ModelsEnrollmentPFXEnrollmentResponse{} + return &this +} + +// GetCertificateInformation returns the CertificateInformation field value if set, zero value otherwise. +func (o *ModelsEnrollmentPFXEnrollmentResponse) GetCertificateInformation() ModelsPkcs12CertificateResponse { + if o == nil || isNil(o.CertificateInformation) { + var ret ModelsPkcs12CertificateResponse + return ret + } + return *o.CertificateInformation +} + +// GetCertificateInformationOk returns a tuple with the CertificateInformation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsEnrollmentPFXEnrollmentResponse) GetCertificateInformationOk() (*ModelsPkcs12CertificateResponse, bool) { + if o == nil || isNil(o.CertificateInformation) { + return nil, false + } + return o.CertificateInformation, true +} + +// HasCertificateInformation returns a boolean if a field has been set. +func (o *ModelsEnrollmentPFXEnrollmentResponse) HasCertificateInformation() bool { + if o != nil && !isNil(o.CertificateInformation) { + return true + } + + return false +} + +// SetCertificateInformation gets a reference to the given ModelsPkcs12CertificateResponse and assigns it to the CertificateInformation field. +func (o *ModelsEnrollmentPFXEnrollmentResponse) SetCertificateInformation(v ModelsPkcs12CertificateResponse) { + o.CertificateInformation = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ModelsEnrollmentPFXEnrollmentResponse) GetMetadata() map[string]string { + if o == nil || isNil(o.Metadata) { + var ret map[string]string + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsEnrollmentPFXEnrollmentResponse) GetMetadataOk() (*map[string]string, bool) { + if o == nil || isNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ModelsEnrollmentPFXEnrollmentResponse) HasMetadata() bool { + if o != nil && !isNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given map[string]string and assigns it to the Metadata field. +func (o *ModelsEnrollmentPFXEnrollmentResponse) SetMetadata(v map[string]string) { + o.Metadata = &v +} + +func (o ModelsEnrollmentPFXEnrollmentResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsEnrollmentPFXEnrollmentResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.CertificateInformation) { + toSerialize["CertificateInformation"] = o.CertificateInformation + } + if !isNil(o.Metadata) { + toSerialize["Metadata"] = o.Metadata + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsEnrollmentPFXEnrollmentResponse) UnmarshalJSON(bytes []byte) (err error) { + varModelsEnrollmentPFXEnrollmentResponse := _ModelsEnrollmentPFXEnrollmentResponse{} + + if err = json.Unmarshal(bytes, &varModelsEnrollmentPFXEnrollmentResponse); err == nil { + *o = ModelsEnrollmentPFXEnrollmentResponse(varModelsEnrollmentPFXEnrollmentResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "CertificateInformation") + delete(additionalProperties, "Metadata") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsEnrollmentPFXEnrollmentResponse struct { + value *ModelsEnrollmentPFXEnrollmentResponse + isSet bool +} + +func (v NullableModelsEnrollmentPFXEnrollmentResponse) Get() *ModelsEnrollmentPFXEnrollmentResponse { + return v.value +} + +func (v *NullableModelsEnrollmentPFXEnrollmentResponse) Set(val *ModelsEnrollmentPFXEnrollmentResponse) { + v.value = val + v.isSet = true +} + +func (v NullableModelsEnrollmentPFXEnrollmentResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsEnrollmentPFXEnrollmentResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsEnrollmentPFXEnrollmentResponse(val *ModelsEnrollmentPFXEnrollmentResponse) *NullableModelsEnrollmentPFXEnrollmentResponse { + return &NullableModelsEnrollmentPFXEnrollmentResponse{value: val, isSet: true} +} + +func (v NullableModelsEnrollmentPFXEnrollmentResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsEnrollmentPFXEnrollmentResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_enrollment_renewal_request.go b/v1/api/keyfactor/model_models_enrollment_renewal_request.go new file mode 100644 index 0000000..37824f0 --- /dev/null +++ b/v1/api/keyfactor/model_models_enrollment_renewal_request.go @@ -0,0 +1,307 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" + "time" +) + +// checks if the ModelsEnrollmentRenewalRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsEnrollmentRenewalRequest{} + +// ModelsEnrollmentRenewalRequest struct for ModelsEnrollmentRenewalRequest +type ModelsEnrollmentRenewalRequest struct { + CertificateId *int32 `json:"CertificateId,omitempty"` + Thumbprint *string `json:"Thumbprint,omitempty"` + CertificateAuthority *string `json:"CertificateAuthority,omitempty"` + Template *string `json:"Template,omitempty"` + Timestamp *time.Time `json:"Timestamp,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsEnrollmentRenewalRequest ModelsEnrollmentRenewalRequest + +// NewModelsEnrollmentRenewalRequest instantiates a new ModelsEnrollmentRenewalRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsEnrollmentRenewalRequest() *ModelsEnrollmentRenewalRequest { + this := ModelsEnrollmentRenewalRequest{} + return &this +} + +// NewModelsEnrollmentRenewalRequestWithDefaults instantiates a new ModelsEnrollmentRenewalRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsEnrollmentRenewalRequestWithDefaults() *ModelsEnrollmentRenewalRequest { + this := ModelsEnrollmentRenewalRequest{} + return &this +} + +// GetCertificateId returns the CertificateId field value if set, zero value otherwise. +func (o *ModelsEnrollmentRenewalRequest) GetCertificateId() int32 { + if o == nil || isNil(o.CertificateId) { + var ret int32 + return ret + } + return *o.CertificateId +} + +// GetCertificateIdOk returns a tuple with the CertificateId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsEnrollmentRenewalRequest) GetCertificateIdOk() (*int32, bool) { + if o == nil || isNil(o.CertificateId) { + return nil, false + } + return o.CertificateId, true +} + +// HasCertificateId returns a boolean if a field has been set. +func (o *ModelsEnrollmentRenewalRequest) HasCertificateId() bool { + if o != nil && !isNil(o.CertificateId) { + return true + } + + return false +} + +// SetCertificateId gets a reference to the given int32 and assigns it to the CertificateId field. +func (o *ModelsEnrollmentRenewalRequest) SetCertificateId(v int32) { + o.CertificateId = &v +} + +// GetThumbprint returns the Thumbprint field value if set, zero value otherwise. +func (o *ModelsEnrollmentRenewalRequest) GetThumbprint() string { + if o == nil || isNil(o.Thumbprint) { + var ret string + return ret + } + return *o.Thumbprint +} + +// GetThumbprintOk returns a tuple with the Thumbprint field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsEnrollmentRenewalRequest) GetThumbprintOk() (*string, bool) { + if o == nil || isNil(o.Thumbprint) { + return nil, false + } + return o.Thumbprint, true +} + +// HasThumbprint returns a boolean if a field has been set. +func (o *ModelsEnrollmentRenewalRequest) HasThumbprint() bool { + if o != nil && !isNil(o.Thumbprint) { + return true + } + + return false +} + +// SetThumbprint gets a reference to the given string and assigns it to the Thumbprint field. +func (o *ModelsEnrollmentRenewalRequest) SetThumbprint(v string) { + o.Thumbprint = &v +} + +// GetCertificateAuthority returns the CertificateAuthority field value if set, zero value otherwise. +func (o *ModelsEnrollmentRenewalRequest) GetCertificateAuthority() string { + if o == nil || isNil(o.CertificateAuthority) { + var ret string + return ret + } + return *o.CertificateAuthority +} + +// GetCertificateAuthorityOk returns a tuple with the CertificateAuthority field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsEnrollmentRenewalRequest) GetCertificateAuthorityOk() (*string, bool) { + if o == nil || isNil(o.CertificateAuthority) { + return nil, false + } + return o.CertificateAuthority, true +} + +// HasCertificateAuthority returns a boolean if a field has been set. +func (o *ModelsEnrollmentRenewalRequest) HasCertificateAuthority() bool { + if o != nil && !isNil(o.CertificateAuthority) { + return true + } + + return false +} + +// SetCertificateAuthority gets a reference to the given string and assigns it to the CertificateAuthority field. +func (o *ModelsEnrollmentRenewalRequest) SetCertificateAuthority(v string) { + o.CertificateAuthority = &v +} + +// GetTemplate returns the Template field value if set, zero value otherwise. +func (o *ModelsEnrollmentRenewalRequest) GetTemplate() string { + if o == nil || isNil(o.Template) { + var ret string + return ret + } + return *o.Template +} + +// GetTemplateOk returns a tuple with the Template field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsEnrollmentRenewalRequest) GetTemplateOk() (*string, bool) { + if o == nil || isNil(o.Template) { + return nil, false + } + return o.Template, true +} + +// HasTemplate returns a boolean if a field has been set. +func (o *ModelsEnrollmentRenewalRequest) HasTemplate() bool { + if o != nil && !isNil(o.Template) { + return true + } + + return false +} + +// SetTemplate gets a reference to the given string and assigns it to the Template field. +func (o *ModelsEnrollmentRenewalRequest) SetTemplate(v string) { + o.Template = &v +} + +// GetTimestamp returns the Timestamp field value if set, zero value otherwise. +func (o *ModelsEnrollmentRenewalRequest) GetTimestamp() time.Time { + if o == nil || isNil(o.Timestamp) { + var ret time.Time + return ret + } + return *o.Timestamp +} + +// GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsEnrollmentRenewalRequest) GetTimestampOk() (*time.Time, bool) { + if o == nil || isNil(o.Timestamp) { + return nil, false + } + return o.Timestamp, true +} + +// HasTimestamp returns a boolean if a field has been set. +func (o *ModelsEnrollmentRenewalRequest) HasTimestamp() bool { + if o != nil && !isNil(o.Timestamp) { + return true + } + + return false +} + +// SetTimestamp gets a reference to the given time.Time and assigns it to the Timestamp field. +func (o *ModelsEnrollmentRenewalRequest) SetTimestamp(v time.Time) { + o.Timestamp = &v +} + +func (o ModelsEnrollmentRenewalRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsEnrollmentRenewalRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.CertificateId) { + toSerialize["CertificateId"] = o.CertificateId + } + if !isNil(o.Thumbprint) { + toSerialize["Thumbprint"] = o.Thumbprint + } + if !isNil(o.CertificateAuthority) { + toSerialize["CertificateAuthority"] = o.CertificateAuthority + } + if !isNil(o.Template) { + toSerialize["Template"] = o.Template + } + if !isNil(o.Timestamp) { + toSerialize["Timestamp"] = o.Timestamp + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsEnrollmentRenewalRequest) UnmarshalJSON(bytes []byte) (err error) { + varModelsEnrollmentRenewalRequest := _ModelsEnrollmentRenewalRequest{} + + if err = json.Unmarshal(bytes, &varModelsEnrollmentRenewalRequest); err == nil { + *o = ModelsEnrollmentRenewalRequest(varModelsEnrollmentRenewalRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "CertificateId") + delete(additionalProperties, "Thumbprint") + delete(additionalProperties, "CertificateAuthority") + delete(additionalProperties, "Template") + delete(additionalProperties, "Timestamp") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsEnrollmentRenewalRequest struct { + value *ModelsEnrollmentRenewalRequest + isSet bool +} + +func (v NullableModelsEnrollmentRenewalRequest) Get() *ModelsEnrollmentRenewalRequest { + return v.value +} + +func (v *NullableModelsEnrollmentRenewalRequest) Set(val *ModelsEnrollmentRenewalRequest) { + v.value = val + v.isSet = true +} + +func (v NullableModelsEnrollmentRenewalRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsEnrollmentRenewalRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsEnrollmentRenewalRequest(val *ModelsEnrollmentRenewalRequest) *NullableModelsEnrollmentRenewalRequest { + return &NullableModelsEnrollmentRenewalRequest{value: val, isSet: true} +} + +func (v NullableModelsEnrollmentRenewalRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsEnrollmentRenewalRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_enrollment_renewal_response.go b/v1/api/keyfactor/model_models_enrollment_renewal_response.go new file mode 100644 index 0000000..9dcc18c --- /dev/null +++ b/v1/api/keyfactor/model_models_enrollment_renewal_response.go @@ -0,0 +1,428 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsEnrollmentRenewalResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsEnrollmentRenewalResponse{} + +// ModelsEnrollmentRenewalResponse struct for ModelsEnrollmentRenewalResponse +type ModelsEnrollmentRenewalResponse struct { + KeyfactorId *int32 `json:"KeyfactorId,omitempty"` + KeyfactorRequestId *int32 `json:"KeyfactorRequestId,omitempty"` + Thumbprint *string `json:"Thumbprint,omitempty"` + SerialNumber *string `json:"SerialNumber,omitempty"` + IssuerDN NullableString `json:"IssuerDN,omitempty"` + RequestDisposition *string `json:"RequestDisposition,omitempty"` + DispositionMessage *string `json:"DispositionMessage,omitempty"` + Password *string `json:"Password,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsEnrollmentRenewalResponse ModelsEnrollmentRenewalResponse + +// NewModelsEnrollmentRenewalResponse instantiates a new ModelsEnrollmentRenewalResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsEnrollmentRenewalResponse() *ModelsEnrollmentRenewalResponse { + this := ModelsEnrollmentRenewalResponse{} + return &this +} + +// NewModelsEnrollmentRenewalResponseWithDefaults instantiates a new ModelsEnrollmentRenewalResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsEnrollmentRenewalResponseWithDefaults() *ModelsEnrollmentRenewalResponse { + this := ModelsEnrollmentRenewalResponse{} + return &this +} + +// GetKeyfactorId returns the KeyfactorId field value if set, zero value otherwise. +func (o *ModelsEnrollmentRenewalResponse) GetKeyfactorId() int32 { + if o == nil || isNil(o.KeyfactorId) { + var ret int32 + return ret + } + return *o.KeyfactorId +} + +// GetKeyfactorIdOk returns a tuple with the KeyfactorId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsEnrollmentRenewalResponse) GetKeyfactorIdOk() (*int32, bool) { + if o == nil || isNil(o.KeyfactorId) { + return nil, false + } + return o.KeyfactorId, true +} + +// HasKeyfactorId returns a boolean if a field has been set. +func (o *ModelsEnrollmentRenewalResponse) HasKeyfactorId() bool { + if o != nil && !isNil(o.KeyfactorId) { + return true + } + + return false +} + +// SetKeyfactorId gets a reference to the given int32 and assigns it to the KeyfactorId field. +func (o *ModelsEnrollmentRenewalResponse) SetKeyfactorId(v int32) { + o.KeyfactorId = &v +} + +// GetKeyfactorRequestId returns the KeyfactorRequestId field value if set, zero value otherwise. +func (o *ModelsEnrollmentRenewalResponse) GetKeyfactorRequestId() int32 { + if o == nil || isNil(o.KeyfactorRequestId) { + var ret int32 + return ret + } + return *o.KeyfactorRequestId +} + +// GetKeyfactorRequestIdOk returns a tuple with the KeyfactorRequestId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsEnrollmentRenewalResponse) GetKeyfactorRequestIdOk() (*int32, bool) { + if o == nil || isNil(o.KeyfactorRequestId) { + return nil, false + } + return o.KeyfactorRequestId, true +} + +// HasKeyfactorRequestId returns a boolean if a field has been set. +func (o *ModelsEnrollmentRenewalResponse) HasKeyfactorRequestId() bool { + if o != nil && !isNil(o.KeyfactorRequestId) { + return true + } + + return false +} + +// SetKeyfactorRequestId gets a reference to the given int32 and assigns it to the KeyfactorRequestId field. +func (o *ModelsEnrollmentRenewalResponse) SetKeyfactorRequestId(v int32) { + o.KeyfactorRequestId = &v +} + +// GetThumbprint returns the Thumbprint field value if set, zero value otherwise. +func (o *ModelsEnrollmentRenewalResponse) GetThumbprint() string { + if o == nil || isNil(o.Thumbprint) { + var ret string + return ret + } + return *o.Thumbprint +} + +// GetThumbprintOk returns a tuple with the Thumbprint field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsEnrollmentRenewalResponse) GetThumbprintOk() (*string, bool) { + if o == nil || isNil(o.Thumbprint) { + return nil, false + } + return o.Thumbprint, true +} + +// HasThumbprint returns a boolean if a field has been set. +func (o *ModelsEnrollmentRenewalResponse) HasThumbprint() bool { + if o != nil && !isNil(o.Thumbprint) { + return true + } + + return false +} + +// SetThumbprint gets a reference to the given string and assigns it to the Thumbprint field. +func (o *ModelsEnrollmentRenewalResponse) SetThumbprint(v string) { + o.Thumbprint = &v +} + +// GetSerialNumber returns the SerialNumber field value if set, zero value otherwise. +func (o *ModelsEnrollmentRenewalResponse) GetSerialNumber() string { + if o == nil || isNil(o.SerialNumber) { + var ret string + return ret + } + return *o.SerialNumber +} + +// GetSerialNumberOk returns a tuple with the SerialNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsEnrollmentRenewalResponse) GetSerialNumberOk() (*string, bool) { + if o == nil || isNil(o.SerialNumber) { + return nil, false + } + return o.SerialNumber, true +} + +// HasSerialNumber returns a boolean if a field has been set. +func (o *ModelsEnrollmentRenewalResponse) HasSerialNumber() bool { + if o != nil && !isNil(o.SerialNumber) { + return true + } + + return false +} + +// SetSerialNumber gets a reference to the given string and assigns it to the SerialNumber field. +func (o *ModelsEnrollmentRenewalResponse) SetSerialNumber(v string) { + o.SerialNumber = &v +} + +// GetIssuerDN returns the IssuerDN field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModelsEnrollmentRenewalResponse) GetIssuerDN() string { + if o == nil || isNil(o.IssuerDN.Get()) { + var ret string + return ret + } + return *o.IssuerDN.Get() +} + +// GetIssuerDNOk returns a tuple with the IssuerDN field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModelsEnrollmentRenewalResponse) GetIssuerDNOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IssuerDN.Get(), o.IssuerDN.IsSet() +} + +// HasIssuerDN returns a boolean if a field has been set. +func (o *ModelsEnrollmentRenewalResponse) HasIssuerDN() bool { + if o != nil && o.IssuerDN.IsSet() { + return true + } + + return false +} + +// SetIssuerDN gets a reference to the given NullableString and assigns it to the IssuerDN field. +func (o *ModelsEnrollmentRenewalResponse) SetIssuerDN(v string) { + o.IssuerDN.Set(&v) +} + +// SetIssuerDNNil sets the value for IssuerDN to be an explicit nil +func (o *ModelsEnrollmentRenewalResponse) SetIssuerDNNil() { + o.IssuerDN.Set(nil) +} + +// UnsetIssuerDN ensures that no value is present for IssuerDN, not even an explicit nil +func (o *ModelsEnrollmentRenewalResponse) UnsetIssuerDN() { + o.IssuerDN.Unset() +} + +// GetRequestDisposition returns the RequestDisposition field value if set, zero value otherwise. +func (o *ModelsEnrollmentRenewalResponse) GetRequestDisposition() string { + if o == nil || isNil(o.RequestDisposition) { + var ret string + return ret + } + return *o.RequestDisposition +} + +// GetRequestDispositionOk returns a tuple with the RequestDisposition field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsEnrollmentRenewalResponse) GetRequestDispositionOk() (*string, bool) { + if o == nil || isNil(o.RequestDisposition) { + return nil, false + } + return o.RequestDisposition, true +} + +// HasRequestDisposition returns a boolean if a field has been set. +func (o *ModelsEnrollmentRenewalResponse) HasRequestDisposition() bool { + if o != nil && !isNil(o.RequestDisposition) { + return true + } + + return false +} + +// SetRequestDisposition gets a reference to the given string and assigns it to the RequestDisposition field. +func (o *ModelsEnrollmentRenewalResponse) SetRequestDisposition(v string) { + o.RequestDisposition = &v +} + +// GetDispositionMessage returns the DispositionMessage field value if set, zero value otherwise. +func (o *ModelsEnrollmentRenewalResponse) GetDispositionMessage() string { + if o == nil || isNil(o.DispositionMessage) { + var ret string + return ret + } + return *o.DispositionMessage +} + +// GetDispositionMessageOk returns a tuple with the DispositionMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsEnrollmentRenewalResponse) GetDispositionMessageOk() (*string, bool) { + if o == nil || isNil(o.DispositionMessage) { + return nil, false + } + return o.DispositionMessage, true +} + +// HasDispositionMessage returns a boolean if a field has been set. +func (o *ModelsEnrollmentRenewalResponse) HasDispositionMessage() bool { + if o != nil && !isNil(o.DispositionMessage) { + return true + } + + return false +} + +// SetDispositionMessage gets a reference to the given string and assigns it to the DispositionMessage field. +func (o *ModelsEnrollmentRenewalResponse) SetDispositionMessage(v string) { + o.DispositionMessage = &v +} + +// GetPassword returns the Password field value if set, zero value otherwise. +func (o *ModelsEnrollmentRenewalResponse) GetPassword() string { + if o == nil || isNil(o.Password) { + var ret string + return ret + } + return *o.Password +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsEnrollmentRenewalResponse) GetPasswordOk() (*string, bool) { + if o == nil || isNil(o.Password) { + return nil, false + } + return o.Password, true +} + +// HasPassword returns a boolean if a field has been set. +func (o *ModelsEnrollmentRenewalResponse) HasPassword() bool { + if o != nil && !isNil(o.Password) { + return true + } + + return false +} + +// SetPassword gets a reference to the given string and assigns it to the Password field. +func (o *ModelsEnrollmentRenewalResponse) SetPassword(v string) { + o.Password = &v +} + +func (o ModelsEnrollmentRenewalResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsEnrollmentRenewalResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.KeyfactorId) { + toSerialize["KeyfactorId"] = o.KeyfactorId + } + if !isNil(o.KeyfactorRequestId) { + toSerialize["KeyfactorRequestId"] = o.KeyfactorRequestId + } + if !isNil(o.Thumbprint) { + toSerialize["Thumbprint"] = o.Thumbprint + } + if !isNil(o.SerialNumber) { + toSerialize["SerialNumber"] = o.SerialNumber + } + if o.IssuerDN.IsSet() { + toSerialize["IssuerDN"] = o.IssuerDN.Get() + } + if !isNil(o.RequestDisposition) { + toSerialize["RequestDisposition"] = o.RequestDisposition + } + if !isNil(o.DispositionMessage) { + toSerialize["DispositionMessage"] = o.DispositionMessage + } + if !isNil(o.Password) { + toSerialize["Password"] = o.Password + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsEnrollmentRenewalResponse) UnmarshalJSON(bytes []byte) (err error) { + varModelsEnrollmentRenewalResponse := _ModelsEnrollmentRenewalResponse{} + + if err = json.Unmarshal(bytes, &varModelsEnrollmentRenewalResponse); err == nil { + *o = ModelsEnrollmentRenewalResponse(varModelsEnrollmentRenewalResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "KeyfactorId") + delete(additionalProperties, "KeyfactorRequestId") + delete(additionalProperties, "Thumbprint") + delete(additionalProperties, "SerialNumber") + delete(additionalProperties, "IssuerDN") + delete(additionalProperties, "RequestDisposition") + delete(additionalProperties, "DispositionMessage") + delete(additionalProperties, "Password") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsEnrollmentRenewalResponse struct { + value *ModelsEnrollmentRenewalResponse + isSet bool +} + +func (v NullableModelsEnrollmentRenewalResponse) Get() *ModelsEnrollmentRenewalResponse { + return v.value +} + +func (v *NullableModelsEnrollmentRenewalResponse) Set(val *ModelsEnrollmentRenewalResponse) { + v.value = val + v.isSet = true +} + +func (v NullableModelsEnrollmentRenewalResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsEnrollmentRenewalResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsEnrollmentRenewalResponse(val *ModelsEnrollmentRenewalResponse) *NullableModelsEnrollmentRenewalResponse { + return &NullableModelsEnrollmentRenewalResponse{value: val, isSet: true} +} + +func (v NullableModelsEnrollmentRenewalResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsEnrollmentRenewalResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_extended_key_usage.go b/v1/api/keyfactor/model_models_extended_key_usage.go new file mode 100644 index 0000000..1b8a704 --- /dev/null +++ b/v1/api/keyfactor/model_models_extended_key_usage.go @@ -0,0 +1,232 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsExtendedKeyUsage type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsExtendedKeyUsage{} + +// ModelsExtendedKeyUsage struct for ModelsExtendedKeyUsage +type ModelsExtendedKeyUsage struct { + Id *int32 `json:"Id,omitempty"` + Oid *string `json:"Oid,omitempty"` + DisplayName *string `json:"DisplayName,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsExtendedKeyUsage ModelsExtendedKeyUsage + +// NewModelsExtendedKeyUsage instantiates a new ModelsExtendedKeyUsage object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsExtendedKeyUsage() *ModelsExtendedKeyUsage { + this := ModelsExtendedKeyUsage{} + return &this +} + +// NewModelsExtendedKeyUsageWithDefaults instantiates a new ModelsExtendedKeyUsage object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsExtendedKeyUsageWithDefaults() *ModelsExtendedKeyUsage { + this := ModelsExtendedKeyUsage{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ModelsExtendedKeyUsage) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsExtendedKeyUsage) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ModelsExtendedKeyUsage) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *ModelsExtendedKeyUsage) SetId(v int32) { + o.Id = &v +} + +// GetOid returns the Oid field value if set, zero value otherwise. +func (o *ModelsExtendedKeyUsage) GetOid() string { + if o == nil || isNil(o.Oid) { + var ret string + return ret + } + return *o.Oid +} + +// GetOidOk returns a tuple with the Oid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsExtendedKeyUsage) GetOidOk() (*string, bool) { + if o == nil || isNil(o.Oid) { + return nil, false + } + return o.Oid, true +} + +// HasOid returns a boolean if a field has been set. +func (o *ModelsExtendedKeyUsage) HasOid() bool { + if o != nil && !isNil(o.Oid) { + return true + } + + return false +} + +// SetOid gets a reference to the given string and assigns it to the Oid field. +func (o *ModelsExtendedKeyUsage) SetOid(v string) { + o.Oid = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *ModelsExtendedKeyUsage) GetDisplayName() string { + if o == nil || isNil(o.DisplayName) { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsExtendedKeyUsage) GetDisplayNameOk() (*string, bool) { + if o == nil || isNil(o.DisplayName) { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *ModelsExtendedKeyUsage) HasDisplayName() bool { + if o != nil && !isNil(o.DisplayName) { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *ModelsExtendedKeyUsage) SetDisplayName(v string) { + o.DisplayName = &v +} + +func (o ModelsExtendedKeyUsage) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsExtendedKeyUsage) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.Oid) { + toSerialize["Oid"] = o.Oid + } + if !isNil(o.DisplayName) { + toSerialize["DisplayName"] = o.DisplayName + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsExtendedKeyUsage) UnmarshalJSON(bytes []byte) (err error) { + varModelsExtendedKeyUsage := _ModelsExtendedKeyUsage{} + + if err = json.Unmarshal(bytes, &varModelsExtendedKeyUsage); err == nil { + *o = ModelsExtendedKeyUsage(varModelsExtendedKeyUsage) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "Oid") + delete(additionalProperties, "DisplayName") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsExtendedKeyUsage struct { + value *ModelsExtendedKeyUsage + isSet bool +} + +func (v NullableModelsExtendedKeyUsage) Get() *ModelsExtendedKeyUsage { + return v.value +} + +func (v *NullableModelsExtendedKeyUsage) Set(val *ModelsExtendedKeyUsage) { + v.value = val + v.isSet = true +} + +func (v NullableModelsExtendedKeyUsage) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsExtendedKeyUsage) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsExtendedKeyUsage(val *ModelsExtendedKeyUsage) *NullableModelsExtendedKeyUsage { + return &NullableModelsExtendedKeyUsage{value: val, isSet: true} +} + +func (v NullableModelsExtendedKeyUsage) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsExtendedKeyUsage) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_invalid_keystore.go b/v1/api/keyfactor/model_models_invalid_keystore.go new file mode 100644 index 0000000..fc508de --- /dev/null +++ b/v1/api/keyfactor/model_models_invalid_keystore.go @@ -0,0 +1,343 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsInvalidKeystore type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsInvalidKeystore{} + +// ModelsInvalidKeystore struct for ModelsInvalidKeystore +type ModelsInvalidKeystore struct { + KeystoreId *string `json:"KeystoreId,omitempty"` + ClientMachine *string `json:"ClientMachine,omitempty"` + StorePath *string `json:"StorePath,omitempty"` + Alias *string `json:"Alias,omitempty"` + Reason *int32 `json:"Reason,omitempty"` + Explanation *string `json:"Explanation,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsInvalidKeystore ModelsInvalidKeystore + +// NewModelsInvalidKeystore instantiates a new ModelsInvalidKeystore object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsInvalidKeystore() *ModelsInvalidKeystore { + this := ModelsInvalidKeystore{} + return &this +} + +// NewModelsInvalidKeystoreWithDefaults instantiates a new ModelsInvalidKeystore object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsInvalidKeystoreWithDefaults() *ModelsInvalidKeystore { + this := ModelsInvalidKeystore{} + return &this +} + +// GetKeystoreId returns the KeystoreId field value if set, zero value otherwise. +func (o *ModelsInvalidKeystore) GetKeystoreId() string { + if o == nil || isNil(o.KeystoreId) { + var ret string + return ret + } + return *o.KeystoreId +} + +// GetKeystoreIdOk returns a tuple with the KeystoreId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsInvalidKeystore) GetKeystoreIdOk() (*string, bool) { + if o == nil || isNil(o.KeystoreId) { + return nil, false + } + return o.KeystoreId, true +} + +// HasKeystoreId returns a boolean if a field has been set. +func (o *ModelsInvalidKeystore) HasKeystoreId() bool { + if o != nil && !isNil(o.KeystoreId) { + return true + } + + return false +} + +// SetKeystoreId gets a reference to the given string and assigns it to the KeystoreId field. +func (o *ModelsInvalidKeystore) SetKeystoreId(v string) { + o.KeystoreId = &v +} + +// GetClientMachine returns the ClientMachine field value if set, zero value otherwise. +func (o *ModelsInvalidKeystore) GetClientMachine() string { + if o == nil || isNil(o.ClientMachine) { + var ret string + return ret + } + return *o.ClientMachine +} + +// GetClientMachineOk returns a tuple with the ClientMachine field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsInvalidKeystore) GetClientMachineOk() (*string, bool) { + if o == nil || isNil(o.ClientMachine) { + return nil, false + } + return o.ClientMachine, true +} + +// HasClientMachine returns a boolean if a field has been set. +func (o *ModelsInvalidKeystore) HasClientMachine() bool { + if o != nil && !isNil(o.ClientMachine) { + return true + } + + return false +} + +// SetClientMachine gets a reference to the given string and assigns it to the ClientMachine field. +func (o *ModelsInvalidKeystore) SetClientMachine(v string) { + o.ClientMachine = &v +} + +// GetStorePath returns the StorePath field value if set, zero value otherwise. +func (o *ModelsInvalidKeystore) GetStorePath() string { + if o == nil || isNil(o.StorePath) { + var ret string + return ret + } + return *o.StorePath +} + +// GetStorePathOk returns a tuple with the StorePath field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsInvalidKeystore) GetStorePathOk() (*string, bool) { + if o == nil || isNil(o.StorePath) { + return nil, false + } + return o.StorePath, true +} + +// HasStorePath returns a boolean if a field has been set. +func (o *ModelsInvalidKeystore) HasStorePath() bool { + if o != nil && !isNil(o.StorePath) { + return true + } + + return false +} + +// SetStorePath gets a reference to the given string and assigns it to the StorePath field. +func (o *ModelsInvalidKeystore) SetStorePath(v string) { + o.StorePath = &v +} + +// GetAlias returns the Alias field value if set, zero value otherwise. +func (o *ModelsInvalidKeystore) GetAlias() string { + if o == nil || isNil(o.Alias) { + var ret string + return ret + } + return *o.Alias +} + +// GetAliasOk returns a tuple with the Alias field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsInvalidKeystore) GetAliasOk() (*string, bool) { + if o == nil || isNil(o.Alias) { + return nil, false + } + return o.Alias, true +} + +// HasAlias returns a boolean if a field has been set. +func (o *ModelsInvalidKeystore) HasAlias() bool { + if o != nil && !isNil(o.Alias) { + return true + } + + return false +} + +// SetAlias gets a reference to the given string and assigns it to the Alias field. +func (o *ModelsInvalidKeystore) SetAlias(v string) { + o.Alias = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *ModelsInvalidKeystore) GetReason() int32 { + if o == nil || isNil(o.Reason) { + var ret int32 + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsInvalidKeystore) GetReasonOk() (*int32, bool) { + if o == nil || isNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *ModelsInvalidKeystore) HasReason() bool { + if o != nil && !isNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given int32 and assigns it to the Reason field. +func (o *ModelsInvalidKeystore) SetReason(v int32) { + o.Reason = &v +} + +// GetExplanation returns the Explanation field value if set, zero value otherwise. +func (o *ModelsInvalidKeystore) GetExplanation() string { + if o == nil || isNil(o.Explanation) { + var ret string + return ret + } + return *o.Explanation +} + +// GetExplanationOk returns a tuple with the Explanation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsInvalidKeystore) GetExplanationOk() (*string, bool) { + if o == nil || isNil(o.Explanation) { + return nil, false + } + return o.Explanation, true +} + +// HasExplanation returns a boolean if a field has been set. +func (o *ModelsInvalidKeystore) HasExplanation() bool { + if o != nil && !isNil(o.Explanation) { + return true + } + + return false +} + +// SetExplanation gets a reference to the given string and assigns it to the Explanation field. +func (o *ModelsInvalidKeystore) SetExplanation(v string) { + o.Explanation = &v +} + +func (o ModelsInvalidKeystore) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsInvalidKeystore) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.KeystoreId) { + toSerialize["KeystoreId"] = o.KeystoreId + } + if !isNil(o.ClientMachine) { + toSerialize["ClientMachine"] = o.ClientMachine + } + if !isNil(o.StorePath) { + toSerialize["StorePath"] = o.StorePath + } + if !isNil(o.Alias) { + toSerialize["Alias"] = o.Alias + } + if !isNil(o.Reason) { + toSerialize["Reason"] = o.Reason + } + if !isNil(o.Explanation) { + toSerialize["Explanation"] = o.Explanation + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsInvalidKeystore) UnmarshalJSON(bytes []byte) (err error) { + varModelsInvalidKeystore := _ModelsInvalidKeystore{} + + if err = json.Unmarshal(bytes, &varModelsInvalidKeystore); err == nil { + *o = ModelsInvalidKeystore(varModelsInvalidKeystore) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "KeystoreId") + delete(additionalProperties, "ClientMachine") + delete(additionalProperties, "StorePath") + delete(additionalProperties, "Alias") + delete(additionalProperties, "Reason") + delete(additionalProperties, "Explanation") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsInvalidKeystore struct { + value *ModelsInvalidKeystore + isSet bool +} + +func (v NullableModelsInvalidKeystore) Get() *ModelsInvalidKeystore { + return v.value +} + +func (v *NullableModelsInvalidKeystore) Set(val *ModelsInvalidKeystore) { + v.value = val + v.isSet = true +} + +func (v NullableModelsInvalidKeystore) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsInvalidKeystore) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsInvalidKeystore(val *ModelsInvalidKeystore) *NullableModelsInvalidKeystore { + return &NullableModelsInvalidKeystore{value: val, isSet: true} +} + +func (v NullableModelsInvalidKeystore) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsInvalidKeystore) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_keyfactor_api_secret.go b/v1/api/keyfactor/model_models_keyfactor_api_secret.go new file mode 100644 index 0000000..fb84f4d --- /dev/null +++ b/v1/api/keyfactor/model_models_keyfactor_api_secret.go @@ -0,0 +1,232 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsKeyfactorAPISecret type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsKeyfactorAPISecret{} + +// ModelsKeyfactorAPISecret struct for ModelsKeyfactorAPISecret +type ModelsKeyfactorAPISecret struct { + SecretValue *string `json:"SecretValue,omitempty"` + Parameters *map[string]string `json:"Parameters,omitempty"` + Provider *int32 `json:"Provider,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsKeyfactorAPISecret ModelsKeyfactorAPISecret + +// NewModelsKeyfactorAPISecret instantiates a new ModelsKeyfactorAPISecret object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsKeyfactorAPISecret() *ModelsKeyfactorAPISecret { + this := ModelsKeyfactorAPISecret{} + return &this +} + +// NewModelsKeyfactorAPISecretWithDefaults instantiates a new ModelsKeyfactorAPISecret object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsKeyfactorAPISecretWithDefaults() *ModelsKeyfactorAPISecret { + this := ModelsKeyfactorAPISecret{} + return &this +} + +// GetSecretValue returns the SecretValue field value if set, zero value otherwise. +func (o *ModelsKeyfactorAPISecret) GetSecretValue() string { + if o == nil || isNil(o.SecretValue) { + var ret string + return ret + } + return *o.SecretValue +} + +// GetSecretValueOk returns a tuple with the SecretValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsKeyfactorAPISecret) GetSecretValueOk() (*string, bool) { + if o == nil || isNil(o.SecretValue) { + return nil, false + } + return o.SecretValue, true +} + +// HasSecretValue returns a boolean if a field has been set. +func (o *ModelsKeyfactorAPISecret) HasSecretValue() bool { + if o != nil && !isNil(o.SecretValue) { + return true + } + + return false +} + +// SetSecretValue gets a reference to the given string and assigns it to the SecretValue field. +func (o *ModelsKeyfactorAPISecret) SetSecretValue(v string) { + o.SecretValue = &v +} + +// GetParameters returns the Parameters field value if set, zero value otherwise. +func (o *ModelsKeyfactorAPISecret) GetParameters() map[string]string { + if o == nil || isNil(o.Parameters) { + var ret map[string]string + return ret + } + return *o.Parameters +} + +// GetParametersOk returns a tuple with the Parameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsKeyfactorAPISecret) GetParametersOk() (*map[string]string, bool) { + if o == nil || isNil(o.Parameters) { + return nil, false + } + return o.Parameters, true +} + +// HasParameters returns a boolean if a field has been set. +func (o *ModelsKeyfactorAPISecret) HasParameters() bool { + if o != nil && !isNil(o.Parameters) { + return true + } + + return false +} + +// SetParameters gets a reference to the given map[string]string and assigns it to the Parameters field. +func (o *ModelsKeyfactorAPISecret) SetParameters(v map[string]string) { + o.Parameters = &v +} + +// GetProvider returns the Provider field value if set, zero value otherwise. +func (o *ModelsKeyfactorAPISecret) GetProvider() int32 { + if o == nil || isNil(o.Provider) { + var ret int32 + return ret + } + return *o.Provider +} + +// GetProviderOk returns a tuple with the Provider field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsKeyfactorAPISecret) GetProviderOk() (*int32, bool) { + if o == nil || isNil(o.Provider) { + return nil, false + } + return o.Provider, true +} + +// HasProvider returns a boolean if a field has been set. +func (o *ModelsKeyfactorAPISecret) HasProvider() bool { + if o != nil && !isNil(o.Provider) { + return true + } + + return false +} + +// SetProvider gets a reference to the given int32 and assigns it to the Provider field. +func (o *ModelsKeyfactorAPISecret) SetProvider(v int32) { + o.Provider = &v +} + +func (o ModelsKeyfactorAPISecret) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsKeyfactorAPISecret) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.SecretValue) { + toSerialize["SecretValue"] = o.SecretValue + } + if !isNil(o.Parameters) { + toSerialize["Parameters"] = o.Parameters + } + if !isNil(o.Provider) { + toSerialize["Provider"] = o.Provider + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsKeyfactorAPISecret) UnmarshalJSON(bytes []byte) (err error) { + varModelsKeyfactorAPISecret := _ModelsKeyfactorAPISecret{} + + if err = json.Unmarshal(bytes, &varModelsKeyfactorAPISecret); err == nil { + *o = ModelsKeyfactorAPISecret(varModelsKeyfactorAPISecret) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "SecretValue") + delete(additionalProperties, "Parameters") + delete(additionalProperties, "Provider") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsKeyfactorAPISecret struct { + value *ModelsKeyfactorAPISecret + isSet bool +} + +func (v NullableModelsKeyfactorAPISecret) Get() *ModelsKeyfactorAPISecret { + return v.value +} + +func (v *NullableModelsKeyfactorAPISecret) Set(val *ModelsKeyfactorAPISecret) { + v.value = val + v.isSet = true +} + +func (v NullableModelsKeyfactorAPISecret) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsKeyfactorAPISecret) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsKeyfactorAPISecret(val *ModelsKeyfactorAPISecret) *NullableModelsKeyfactorAPISecret { + return &NullableModelsKeyfactorAPISecret{value: val, isSet: true} +} + +func (v NullableModelsKeyfactorAPISecret) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsKeyfactorAPISecret) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_metadata_all_update_request.go b/v1/api/keyfactor/model_models_metadata_all_update_request.go new file mode 100644 index 0000000..df7ed44 --- /dev/null +++ b/v1/api/keyfactor/model_models_metadata_all_update_request.go @@ -0,0 +1,223 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsMetadataAllUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsMetadataAllUpdateRequest{} + +// ModelsMetadataAllUpdateRequest struct for ModelsMetadataAllUpdateRequest +type ModelsMetadataAllUpdateRequest struct { + Query *string `json:"Query,omitempty"` + CertificateIds []int32 `json:"CertificateIds,omitempty"` + Metadata []ModelsMetadataSingleUpdateRequest `json:"Metadata"` + AdditionalProperties map[string]interface{} +} + +type _ModelsMetadataAllUpdateRequest ModelsMetadataAllUpdateRequest + +// NewModelsMetadataAllUpdateRequest instantiates a new ModelsMetadataAllUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsMetadataAllUpdateRequest(metadata []ModelsMetadataSingleUpdateRequest) *ModelsMetadataAllUpdateRequest { + this := ModelsMetadataAllUpdateRequest{} + this.Metadata = metadata + return &this +} + +// NewModelsMetadataAllUpdateRequestWithDefaults instantiates a new ModelsMetadataAllUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsMetadataAllUpdateRequestWithDefaults() *ModelsMetadataAllUpdateRequest { + this := ModelsMetadataAllUpdateRequest{} + return &this +} + +// GetQuery returns the Query field value if set, zero value otherwise. +func (o *ModelsMetadataAllUpdateRequest) GetQuery() string { + if o == nil || isNil(o.Query) { + var ret string + return ret + } + return *o.Query +} + +// GetQueryOk returns a tuple with the Query field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsMetadataAllUpdateRequest) GetQueryOk() (*string, bool) { + if o == nil || isNil(o.Query) { + return nil, false + } + return o.Query, true +} + +// HasQuery returns a boolean if a field has been set. +func (o *ModelsMetadataAllUpdateRequest) HasQuery() bool { + if o != nil && !isNil(o.Query) { + return true + } + + return false +} + +// SetQuery gets a reference to the given string and assigns it to the Query field. +func (o *ModelsMetadataAllUpdateRequest) SetQuery(v string) { + o.Query = &v +} + +// GetCertificateIds returns the CertificateIds field value if set, zero value otherwise. +func (o *ModelsMetadataAllUpdateRequest) GetCertificateIds() []int32 { + if o == nil || isNil(o.CertificateIds) { + var ret []int32 + return ret + } + return o.CertificateIds +} + +// GetCertificateIdsOk returns a tuple with the CertificateIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsMetadataAllUpdateRequest) GetCertificateIdsOk() ([]int32, bool) { + if o == nil || isNil(o.CertificateIds) { + return nil, false + } + return o.CertificateIds, true +} + +// HasCertificateIds returns a boolean if a field has been set. +func (o *ModelsMetadataAllUpdateRequest) HasCertificateIds() bool { + if o != nil && !isNil(o.CertificateIds) { + return true + } + + return false +} + +// SetCertificateIds gets a reference to the given []int32 and assigns it to the CertificateIds field. +func (o *ModelsMetadataAllUpdateRequest) SetCertificateIds(v []int32) { + o.CertificateIds = v +} + +// GetMetadata returns the Metadata field value +func (o *ModelsMetadataAllUpdateRequest) GetMetadata() []ModelsMetadataSingleUpdateRequest { + if o == nil { + var ret []ModelsMetadataSingleUpdateRequest + return ret + } + + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value +// and a boolean to check if the value has been set. +func (o *ModelsMetadataAllUpdateRequest) GetMetadataOk() ([]ModelsMetadataSingleUpdateRequest, bool) { + if o == nil { + return nil, false + } + return o.Metadata, true +} + +// SetMetadata sets field value +func (o *ModelsMetadataAllUpdateRequest) SetMetadata(v []ModelsMetadataSingleUpdateRequest) { + o.Metadata = v +} + +func (o ModelsMetadataAllUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsMetadataAllUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Query) { + toSerialize["Query"] = o.Query + } + if !isNil(o.CertificateIds) { + toSerialize["CertificateIds"] = o.CertificateIds + } + toSerialize["Metadata"] = o.Metadata + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsMetadataAllUpdateRequest) UnmarshalJSON(bytes []byte) (err error) { + varModelsMetadataAllUpdateRequest := _ModelsMetadataAllUpdateRequest{} + + if err = json.Unmarshal(bytes, &varModelsMetadataAllUpdateRequest); err == nil { + *o = ModelsMetadataAllUpdateRequest(varModelsMetadataAllUpdateRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Query") + delete(additionalProperties, "CertificateIds") + delete(additionalProperties, "Metadata") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsMetadataAllUpdateRequest struct { + value *ModelsMetadataAllUpdateRequest + isSet bool +} + +func (v NullableModelsMetadataAllUpdateRequest) Get() *ModelsMetadataAllUpdateRequest { + return v.value +} + +func (v *NullableModelsMetadataAllUpdateRequest) Set(val *ModelsMetadataAllUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableModelsMetadataAllUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsMetadataAllUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsMetadataAllUpdateRequest(val *ModelsMetadataAllUpdateRequest) *NullableModelsMetadataAllUpdateRequest { + return &NullableModelsMetadataAllUpdateRequest{value: val, isSet: true} +} + +func (v NullableModelsMetadataAllUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsMetadataAllUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_metadata_field_type_model.go b/v1/api/keyfactor/model_models_metadata_field_type_model.go new file mode 100644 index 0000000..11f4e3e --- /dev/null +++ b/v1/api/keyfactor/model_models_metadata_field_type_model.go @@ -0,0 +1,528 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsMetadataFieldTypeModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsMetadataFieldTypeModel{} + +// ModelsMetadataFieldTypeModel struct for ModelsMetadataFieldTypeModel +type ModelsMetadataFieldTypeModel struct { + Id *int32 `json:"Id,omitempty"` + Name *string `json:"Name,omitempty"` + Description *string `json:"Description,omitempty"` + DataType *int32 `json:"DataType,omitempty"` + Hint *string `json:"Hint,omitempty"` + Validation *string `json:"Validation,omitempty"` + Enrollment *int32 `json:"Enrollment,omitempty"` + Message *string `json:"Message,omitempty"` + Options *string `json:"Options,omitempty"` + DefaultValue *string `json:"DefaultValue,omitempty"` + DisplayOrder *int32 `json:"DisplayOrder,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsMetadataFieldTypeModel ModelsMetadataFieldTypeModel + +// NewModelsMetadataFieldTypeModel instantiates a new ModelsMetadataFieldTypeModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsMetadataFieldTypeModel() *ModelsMetadataFieldTypeModel { + this := ModelsMetadataFieldTypeModel{} + return &this +} + +// NewModelsMetadataFieldTypeModelWithDefaults instantiates a new ModelsMetadataFieldTypeModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsMetadataFieldTypeModelWithDefaults() *ModelsMetadataFieldTypeModel { + this := ModelsMetadataFieldTypeModel{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ModelsMetadataFieldTypeModel) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsMetadataFieldTypeModel) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ModelsMetadataFieldTypeModel) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *ModelsMetadataFieldTypeModel) SetId(v int32) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ModelsMetadataFieldTypeModel) GetName() string { + if o == nil || isNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsMetadataFieldTypeModel) GetNameOk() (*string, bool) { + if o == nil || isNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ModelsMetadataFieldTypeModel) HasName() bool { + if o != nil && !isNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ModelsMetadataFieldTypeModel) SetName(v string) { + o.Name = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ModelsMetadataFieldTypeModel) GetDescription() string { + if o == nil || isNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsMetadataFieldTypeModel) GetDescriptionOk() (*string, bool) { + if o == nil || isNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *ModelsMetadataFieldTypeModel) HasDescription() bool { + if o != nil && !isNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *ModelsMetadataFieldTypeModel) SetDescription(v string) { + o.Description = &v +} + +// GetDataType returns the DataType field value if set, zero value otherwise. +func (o *ModelsMetadataFieldTypeModel) GetDataType() int32 { + if o == nil || isNil(o.DataType) { + var ret int32 + return ret + } + return *o.DataType +} + +// GetDataTypeOk returns a tuple with the DataType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsMetadataFieldTypeModel) GetDataTypeOk() (*int32, bool) { + if o == nil || isNil(o.DataType) { + return nil, false + } + return o.DataType, true +} + +// HasDataType returns a boolean if a field has been set. +func (o *ModelsMetadataFieldTypeModel) HasDataType() bool { + if o != nil && !isNil(o.DataType) { + return true + } + + return false +} + +// SetDataType gets a reference to the given int32 and assigns it to the DataType field. +func (o *ModelsMetadataFieldTypeModel) SetDataType(v int32) { + o.DataType = &v +} + +// GetHint returns the Hint field value if set, zero value otherwise. +func (o *ModelsMetadataFieldTypeModel) GetHint() string { + if o == nil || isNil(o.Hint) { + var ret string + return ret + } + return *o.Hint +} + +// GetHintOk returns a tuple with the Hint field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsMetadataFieldTypeModel) GetHintOk() (*string, bool) { + if o == nil || isNil(o.Hint) { + return nil, false + } + return o.Hint, true +} + +// HasHint returns a boolean if a field has been set. +func (o *ModelsMetadataFieldTypeModel) HasHint() bool { + if o != nil && !isNil(o.Hint) { + return true + } + + return false +} + +// SetHint gets a reference to the given string and assigns it to the Hint field. +func (o *ModelsMetadataFieldTypeModel) SetHint(v string) { + o.Hint = &v +} + +// GetValidation returns the Validation field value if set, zero value otherwise. +func (o *ModelsMetadataFieldTypeModel) GetValidation() string { + if o == nil || isNil(o.Validation) { + var ret string + return ret + } + return *o.Validation +} + +// GetValidationOk returns a tuple with the Validation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsMetadataFieldTypeModel) GetValidationOk() (*string, bool) { + if o == nil || isNil(o.Validation) { + return nil, false + } + return o.Validation, true +} + +// HasValidation returns a boolean if a field has been set. +func (o *ModelsMetadataFieldTypeModel) HasValidation() bool { + if o != nil && !isNil(o.Validation) { + return true + } + + return false +} + +// SetValidation gets a reference to the given string and assigns it to the Validation field. +func (o *ModelsMetadataFieldTypeModel) SetValidation(v string) { + o.Validation = &v +} + +// GetEnrollment returns the Enrollment field value if set, zero value otherwise. +func (o *ModelsMetadataFieldTypeModel) GetEnrollment() int32 { + if o == nil || isNil(o.Enrollment) { + var ret int32 + return ret + } + return *o.Enrollment +} + +// GetEnrollmentOk returns a tuple with the Enrollment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsMetadataFieldTypeModel) GetEnrollmentOk() (*int32, bool) { + if o == nil || isNil(o.Enrollment) { + return nil, false + } + return o.Enrollment, true +} + +// HasEnrollment returns a boolean if a field has been set. +func (o *ModelsMetadataFieldTypeModel) HasEnrollment() bool { + if o != nil && !isNil(o.Enrollment) { + return true + } + + return false +} + +// SetEnrollment gets a reference to the given int32 and assigns it to the Enrollment field. +func (o *ModelsMetadataFieldTypeModel) SetEnrollment(v int32) { + o.Enrollment = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *ModelsMetadataFieldTypeModel) GetMessage() string { + if o == nil || isNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsMetadataFieldTypeModel) GetMessageOk() (*string, bool) { + if o == nil || isNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *ModelsMetadataFieldTypeModel) HasMessage() bool { + if o != nil && !isNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *ModelsMetadataFieldTypeModel) SetMessage(v string) { + o.Message = &v +} + +// GetOptions returns the Options field value if set, zero value otherwise. +func (o *ModelsMetadataFieldTypeModel) GetOptions() string { + if o == nil || isNil(o.Options) { + var ret string + return ret + } + return *o.Options +} + +// GetOptionsOk returns a tuple with the Options field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsMetadataFieldTypeModel) GetOptionsOk() (*string, bool) { + if o == nil || isNil(o.Options) { + return nil, false + } + return o.Options, true +} + +// HasOptions returns a boolean if a field has been set. +func (o *ModelsMetadataFieldTypeModel) HasOptions() bool { + if o != nil && !isNil(o.Options) { + return true + } + + return false +} + +// SetOptions gets a reference to the given string and assigns it to the Options field. +func (o *ModelsMetadataFieldTypeModel) SetOptions(v string) { + o.Options = &v +} + +// GetDefaultValue returns the DefaultValue field value if set, zero value otherwise. +func (o *ModelsMetadataFieldTypeModel) GetDefaultValue() string { + if o == nil || isNil(o.DefaultValue) { + var ret string + return ret + } + return *o.DefaultValue +} + +// GetDefaultValueOk returns a tuple with the DefaultValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsMetadataFieldTypeModel) GetDefaultValueOk() (*string, bool) { + if o == nil || isNil(o.DefaultValue) { + return nil, false + } + return o.DefaultValue, true +} + +// HasDefaultValue returns a boolean if a field has been set. +func (o *ModelsMetadataFieldTypeModel) HasDefaultValue() bool { + if o != nil && !isNil(o.DefaultValue) { + return true + } + + return false +} + +// SetDefaultValue gets a reference to the given string and assigns it to the DefaultValue field. +func (o *ModelsMetadataFieldTypeModel) SetDefaultValue(v string) { + o.DefaultValue = &v +} + +// GetDisplayOrder returns the DisplayOrder field value if set, zero value otherwise. +func (o *ModelsMetadataFieldTypeModel) GetDisplayOrder() int32 { + if o == nil || isNil(o.DisplayOrder) { + var ret int32 + return ret + } + return *o.DisplayOrder +} + +// GetDisplayOrderOk returns a tuple with the DisplayOrder field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsMetadataFieldTypeModel) GetDisplayOrderOk() (*int32, bool) { + if o == nil || isNil(o.DisplayOrder) { + return nil, false + } + return o.DisplayOrder, true +} + +// HasDisplayOrder returns a boolean if a field has been set. +func (o *ModelsMetadataFieldTypeModel) HasDisplayOrder() bool { + if o != nil && !isNil(o.DisplayOrder) { + return true + } + + return false +} + +// SetDisplayOrder gets a reference to the given int32 and assigns it to the DisplayOrder field. +func (o *ModelsMetadataFieldTypeModel) SetDisplayOrder(v int32) { + o.DisplayOrder = &v +} + +func (o ModelsMetadataFieldTypeModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsMetadataFieldTypeModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.Name) { + toSerialize["Name"] = o.Name + } + if !isNil(o.Description) { + toSerialize["Description"] = o.Description + } + if !isNil(o.DataType) { + toSerialize["DataType"] = o.DataType + } + if !isNil(o.Hint) { + toSerialize["Hint"] = o.Hint + } + if !isNil(o.Validation) { + toSerialize["Validation"] = o.Validation + } + if !isNil(o.Enrollment) { + toSerialize["Enrollment"] = o.Enrollment + } + if !isNil(o.Message) { + toSerialize["Message"] = o.Message + } + if !isNil(o.Options) { + toSerialize["Options"] = o.Options + } + if !isNil(o.DefaultValue) { + toSerialize["DefaultValue"] = o.DefaultValue + } + if !isNil(o.DisplayOrder) { + toSerialize["DisplayOrder"] = o.DisplayOrder + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsMetadataFieldTypeModel) UnmarshalJSON(bytes []byte) (err error) { + varModelsMetadataFieldTypeModel := _ModelsMetadataFieldTypeModel{} + + if err = json.Unmarshal(bytes, &varModelsMetadataFieldTypeModel); err == nil { + *o = ModelsMetadataFieldTypeModel(varModelsMetadataFieldTypeModel) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "Name") + delete(additionalProperties, "Description") + delete(additionalProperties, "DataType") + delete(additionalProperties, "Hint") + delete(additionalProperties, "Validation") + delete(additionalProperties, "Enrollment") + delete(additionalProperties, "Message") + delete(additionalProperties, "Options") + delete(additionalProperties, "DefaultValue") + delete(additionalProperties, "DisplayOrder") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsMetadataFieldTypeModel struct { + value *ModelsMetadataFieldTypeModel + isSet bool +} + +func (v NullableModelsMetadataFieldTypeModel) Get() *ModelsMetadataFieldTypeModel { + return v.value +} + +func (v *NullableModelsMetadataFieldTypeModel) Set(val *ModelsMetadataFieldTypeModel) { + v.value = val + v.isSet = true +} + +func (v NullableModelsMetadataFieldTypeModel) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsMetadataFieldTypeModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsMetadataFieldTypeModel(val *ModelsMetadataFieldTypeModel) *NullableModelsMetadataFieldTypeModel { + return &NullableModelsMetadataFieldTypeModel{value: val, isSet: true} +} + +func (v NullableModelsMetadataFieldTypeModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsMetadataFieldTypeModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_metadata_single_update_request.go b/v1/api/keyfactor/model_models_metadata_single_update_request.go new file mode 100644 index 0000000..5c6c1b8 --- /dev/null +++ b/v1/api/keyfactor/model_models_metadata_single_update_request.go @@ -0,0 +1,232 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsMetadataSingleUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsMetadataSingleUpdateRequest{} + +// ModelsMetadataSingleUpdateRequest struct for ModelsMetadataSingleUpdateRequest +type ModelsMetadataSingleUpdateRequest struct { + MetadataName *string `json:"MetadataName,omitempty"` + Value *string `json:"Value,omitempty"` + OverwriteExisting *bool `json:"OverwriteExisting,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsMetadataSingleUpdateRequest ModelsMetadataSingleUpdateRequest + +// NewModelsMetadataSingleUpdateRequest instantiates a new ModelsMetadataSingleUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsMetadataSingleUpdateRequest() *ModelsMetadataSingleUpdateRequest { + this := ModelsMetadataSingleUpdateRequest{} + return &this +} + +// NewModelsMetadataSingleUpdateRequestWithDefaults instantiates a new ModelsMetadataSingleUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsMetadataSingleUpdateRequestWithDefaults() *ModelsMetadataSingleUpdateRequest { + this := ModelsMetadataSingleUpdateRequest{} + return &this +} + +// GetMetadataName returns the MetadataName field value if set, zero value otherwise. +func (o *ModelsMetadataSingleUpdateRequest) GetMetadataName() string { + if o == nil || isNil(o.MetadataName) { + var ret string + return ret + } + return *o.MetadataName +} + +// GetMetadataNameOk returns a tuple with the MetadataName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsMetadataSingleUpdateRequest) GetMetadataNameOk() (*string, bool) { + if o == nil || isNil(o.MetadataName) { + return nil, false + } + return o.MetadataName, true +} + +// HasMetadataName returns a boolean if a field has been set. +func (o *ModelsMetadataSingleUpdateRequest) HasMetadataName() bool { + if o != nil && !isNil(o.MetadataName) { + return true + } + + return false +} + +// SetMetadataName gets a reference to the given string and assigns it to the MetadataName field. +func (o *ModelsMetadataSingleUpdateRequest) SetMetadataName(v string) { + o.MetadataName = &v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *ModelsMetadataSingleUpdateRequest) GetValue() string { + if o == nil || isNil(o.Value) { + var ret string + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsMetadataSingleUpdateRequest) GetValueOk() (*string, bool) { + if o == nil || isNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *ModelsMetadataSingleUpdateRequest) HasValue() bool { + if o != nil && !isNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given string and assigns it to the Value field. +func (o *ModelsMetadataSingleUpdateRequest) SetValue(v string) { + o.Value = &v +} + +// GetOverwriteExisting returns the OverwriteExisting field value if set, zero value otherwise. +func (o *ModelsMetadataSingleUpdateRequest) GetOverwriteExisting() bool { + if o == nil || isNil(o.OverwriteExisting) { + var ret bool + return ret + } + return *o.OverwriteExisting +} + +// GetOverwriteExistingOk returns a tuple with the OverwriteExisting field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsMetadataSingleUpdateRequest) GetOverwriteExistingOk() (*bool, bool) { + if o == nil || isNil(o.OverwriteExisting) { + return nil, false + } + return o.OverwriteExisting, true +} + +// HasOverwriteExisting returns a boolean if a field has been set. +func (o *ModelsMetadataSingleUpdateRequest) HasOverwriteExisting() bool { + if o != nil && !isNil(o.OverwriteExisting) { + return true + } + + return false +} + +// SetOverwriteExisting gets a reference to the given bool and assigns it to the OverwriteExisting field. +func (o *ModelsMetadataSingleUpdateRequest) SetOverwriteExisting(v bool) { + o.OverwriteExisting = &v +} + +func (o ModelsMetadataSingleUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsMetadataSingleUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.MetadataName) { + toSerialize["MetadataName"] = o.MetadataName + } + if !isNil(o.Value) { + toSerialize["Value"] = o.Value + } + if !isNil(o.OverwriteExisting) { + toSerialize["OverwriteExisting"] = o.OverwriteExisting + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsMetadataSingleUpdateRequest) UnmarshalJSON(bytes []byte) (err error) { + varModelsMetadataSingleUpdateRequest := _ModelsMetadataSingleUpdateRequest{} + + if err = json.Unmarshal(bytes, &varModelsMetadataSingleUpdateRequest); err == nil { + *o = ModelsMetadataSingleUpdateRequest(varModelsMetadataSingleUpdateRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "MetadataName") + delete(additionalProperties, "Value") + delete(additionalProperties, "OverwriteExisting") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsMetadataSingleUpdateRequest struct { + value *ModelsMetadataSingleUpdateRequest + isSet bool +} + +func (v NullableModelsMetadataSingleUpdateRequest) Get() *ModelsMetadataSingleUpdateRequest { + return v.value +} + +func (v *NullableModelsMetadataSingleUpdateRequest) Set(val *ModelsMetadataSingleUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableModelsMetadataSingleUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsMetadataSingleUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsMetadataSingleUpdateRequest(val *ModelsMetadataSingleUpdateRequest) *NullableModelsMetadataSingleUpdateRequest { + return &NullableModelsMetadataSingleUpdateRequest{value: val, isSet: true} +} + +func (v NullableModelsMetadataSingleUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsMetadataSingleUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_metadata_update_request.go b/v1/api/keyfactor/model_models_metadata_update_request.go new file mode 100644 index 0000000..9010ad0 --- /dev/null +++ b/v1/api/keyfactor/model_models_metadata_update_request.go @@ -0,0 +1,186 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsMetadataUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsMetadataUpdateRequest{} + +// ModelsMetadataUpdateRequest struct for ModelsMetadataUpdateRequest +type ModelsMetadataUpdateRequest struct { + Id *int32 `json:"Id,omitempty"` + Metadata map[string]string `json:"Metadata"` + AdditionalProperties map[string]interface{} +} + +type _ModelsMetadataUpdateRequest ModelsMetadataUpdateRequest + +// NewModelsMetadataUpdateRequest instantiates a new ModelsMetadataUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsMetadataUpdateRequest(metadata map[string]string) *ModelsMetadataUpdateRequest { + this := ModelsMetadataUpdateRequest{} + this.Metadata = metadata + return &this +} + +// NewModelsMetadataUpdateRequestWithDefaults instantiates a new ModelsMetadataUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsMetadataUpdateRequestWithDefaults() *ModelsMetadataUpdateRequest { + this := ModelsMetadataUpdateRequest{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ModelsMetadataUpdateRequest) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsMetadataUpdateRequest) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ModelsMetadataUpdateRequest) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *ModelsMetadataUpdateRequest) SetId(v int32) { + o.Id = &v +} + +// GetMetadata returns the Metadata field value +func (o *ModelsMetadataUpdateRequest) GetMetadata() map[string]string { + if o == nil { + var ret map[string]string + return ret + } + + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value +// and a boolean to check if the value has been set. +func (o *ModelsMetadataUpdateRequest) GetMetadataOk() (*map[string]string, bool) { + if o == nil { + return nil, false + } + return &o.Metadata, true +} + +// SetMetadata sets field value +func (o *ModelsMetadataUpdateRequest) SetMetadata(v map[string]string) { + o.Metadata = v +} + +func (o ModelsMetadataUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsMetadataUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + toSerialize["Metadata"] = o.Metadata + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsMetadataUpdateRequest) UnmarshalJSON(bytes []byte) (err error) { + varModelsMetadataUpdateRequest := _ModelsMetadataUpdateRequest{} + + if err = json.Unmarshal(bytes, &varModelsMetadataUpdateRequest); err == nil { + *o = ModelsMetadataUpdateRequest(varModelsMetadataUpdateRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "Metadata") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsMetadataUpdateRequest struct { + value *ModelsMetadataUpdateRequest + isSet bool +} + +func (v NullableModelsMetadataUpdateRequest) Get() *ModelsMetadataUpdateRequest { + return v.value +} + +func (v *NullableModelsMetadataUpdateRequest) Set(val *ModelsMetadataUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableModelsMetadataUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsMetadataUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsMetadataUpdateRequest(val *ModelsMetadataUpdateRequest) *NullableModelsMetadataUpdateRequest { + return &NullableModelsMetadataUpdateRequest{value: val, isSet: true} +} + +func (v NullableModelsMetadataUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsMetadataUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_monitoring_revocation_monitoring_alert_response.go b/v1/api/keyfactor/model_models_monitoring_revocation_monitoring_alert_response.go new file mode 100644 index 0000000..a825a80 --- /dev/null +++ b/v1/api/keyfactor/model_models_monitoring_revocation_monitoring_alert_response.go @@ -0,0 +1,232 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsMonitoringRevocationMonitoringAlertResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsMonitoringRevocationMonitoringAlertResponse{} + +// ModelsMonitoringRevocationMonitoringAlertResponse struct for ModelsMonitoringRevocationMonitoringAlertResponse +type ModelsMonitoringRevocationMonitoringAlertResponse struct { + Subject *string `json:"Subject,omitempty"` + Message *string `json:"Message,omitempty"` + Recipients []string `json:"Recipients,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsMonitoringRevocationMonitoringAlertResponse ModelsMonitoringRevocationMonitoringAlertResponse + +// NewModelsMonitoringRevocationMonitoringAlertResponse instantiates a new ModelsMonitoringRevocationMonitoringAlertResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsMonitoringRevocationMonitoringAlertResponse() *ModelsMonitoringRevocationMonitoringAlertResponse { + this := ModelsMonitoringRevocationMonitoringAlertResponse{} + return &this +} + +// NewModelsMonitoringRevocationMonitoringAlertResponseWithDefaults instantiates a new ModelsMonitoringRevocationMonitoringAlertResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsMonitoringRevocationMonitoringAlertResponseWithDefaults() *ModelsMonitoringRevocationMonitoringAlertResponse { + this := ModelsMonitoringRevocationMonitoringAlertResponse{} + return &this +} + +// GetSubject returns the Subject field value if set, zero value otherwise. +func (o *ModelsMonitoringRevocationMonitoringAlertResponse) GetSubject() string { + if o == nil || isNil(o.Subject) { + var ret string + return ret + } + return *o.Subject +} + +// GetSubjectOk returns a tuple with the Subject field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsMonitoringRevocationMonitoringAlertResponse) GetSubjectOk() (*string, bool) { + if o == nil || isNil(o.Subject) { + return nil, false + } + return o.Subject, true +} + +// HasSubject returns a boolean if a field has been set. +func (o *ModelsMonitoringRevocationMonitoringAlertResponse) HasSubject() bool { + if o != nil && !isNil(o.Subject) { + return true + } + + return false +} + +// SetSubject gets a reference to the given string and assigns it to the Subject field. +func (o *ModelsMonitoringRevocationMonitoringAlertResponse) SetSubject(v string) { + o.Subject = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *ModelsMonitoringRevocationMonitoringAlertResponse) GetMessage() string { + if o == nil || isNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsMonitoringRevocationMonitoringAlertResponse) GetMessageOk() (*string, bool) { + if o == nil || isNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *ModelsMonitoringRevocationMonitoringAlertResponse) HasMessage() bool { + if o != nil && !isNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *ModelsMonitoringRevocationMonitoringAlertResponse) SetMessage(v string) { + o.Message = &v +} + +// GetRecipients returns the Recipients field value if set, zero value otherwise. +func (o *ModelsMonitoringRevocationMonitoringAlertResponse) GetRecipients() []string { + if o == nil || isNil(o.Recipients) { + var ret []string + return ret + } + return o.Recipients +} + +// GetRecipientsOk returns a tuple with the Recipients field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsMonitoringRevocationMonitoringAlertResponse) GetRecipientsOk() ([]string, bool) { + if o == nil || isNil(o.Recipients) { + return nil, false + } + return o.Recipients, true +} + +// HasRecipients returns a boolean if a field has been set. +func (o *ModelsMonitoringRevocationMonitoringAlertResponse) HasRecipients() bool { + if o != nil && !isNil(o.Recipients) { + return true + } + + return false +} + +// SetRecipients gets a reference to the given []string and assigns it to the Recipients field. +func (o *ModelsMonitoringRevocationMonitoringAlertResponse) SetRecipients(v []string) { + o.Recipients = v +} + +func (o ModelsMonitoringRevocationMonitoringAlertResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsMonitoringRevocationMonitoringAlertResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Subject) { + toSerialize["Subject"] = o.Subject + } + if !isNil(o.Message) { + toSerialize["Message"] = o.Message + } + if !isNil(o.Recipients) { + toSerialize["Recipients"] = o.Recipients + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsMonitoringRevocationMonitoringAlertResponse) UnmarshalJSON(bytes []byte) (err error) { + varModelsMonitoringRevocationMonitoringAlertResponse := _ModelsMonitoringRevocationMonitoringAlertResponse{} + + if err = json.Unmarshal(bytes, &varModelsMonitoringRevocationMonitoringAlertResponse); err == nil { + *o = ModelsMonitoringRevocationMonitoringAlertResponse(varModelsMonitoringRevocationMonitoringAlertResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Subject") + delete(additionalProperties, "Message") + delete(additionalProperties, "Recipients") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsMonitoringRevocationMonitoringAlertResponse struct { + value *ModelsMonitoringRevocationMonitoringAlertResponse + isSet bool +} + +func (v NullableModelsMonitoringRevocationMonitoringAlertResponse) Get() *ModelsMonitoringRevocationMonitoringAlertResponse { + return v.value +} + +func (v *NullableModelsMonitoringRevocationMonitoringAlertResponse) Set(val *ModelsMonitoringRevocationMonitoringAlertResponse) { + v.value = val + v.isSet = true +} + +func (v NullableModelsMonitoringRevocationMonitoringAlertResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsMonitoringRevocationMonitoringAlertResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsMonitoringRevocationMonitoringAlertResponse(val *ModelsMonitoringRevocationMonitoringAlertResponse) *NullableModelsMonitoringRevocationMonitoringAlertResponse { + return &NullableModelsMonitoringRevocationMonitoringAlertResponse{value: val, isSet: true} +} + +func (v NullableModelsMonitoringRevocationMonitoringAlertResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsMonitoringRevocationMonitoringAlertResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_orchestrator_jobs_bulk_orchestrator_job_pair.go b/v1/api/keyfactor/model_models_orchestrator_jobs_bulk_orchestrator_job_pair.go new file mode 100644 index 0000000..fcd51af --- /dev/null +++ b/v1/api/keyfactor/model_models_orchestrator_jobs_bulk_orchestrator_job_pair.go @@ -0,0 +1,195 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsOrchestratorJobsBulkOrchestratorJobPair type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsOrchestratorJobsBulkOrchestratorJobPair{} + +// ModelsOrchestratorJobsBulkOrchestratorJobPair struct for ModelsOrchestratorJobsBulkOrchestratorJobPair +type ModelsOrchestratorJobsBulkOrchestratorJobPair struct { + JobId *string `json:"JobId,omitempty"` + OrchestratorId *string `json:"OrchestratorId,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsOrchestratorJobsBulkOrchestratorJobPair ModelsOrchestratorJobsBulkOrchestratorJobPair + +// NewModelsOrchestratorJobsBulkOrchestratorJobPair instantiates a new ModelsOrchestratorJobsBulkOrchestratorJobPair object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsOrchestratorJobsBulkOrchestratorJobPair() *ModelsOrchestratorJobsBulkOrchestratorJobPair { + this := ModelsOrchestratorJobsBulkOrchestratorJobPair{} + return &this +} + +// NewModelsOrchestratorJobsBulkOrchestratorJobPairWithDefaults instantiates a new ModelsOrchestratorJobsBulkOrchestratorJobPair object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsOrchestratorJobsBulkOrchestratorJobPairWithDefaults() *ModelsOrchestratorJobsBulkOrchestratorJobPair { + this := ModelsOrchestratorJobsBulkOrchestratorJobPair{} + return &this +} + +// GetJobId returns the JobId field value if set, zero value otherwise. +func (o *ModelsOrchestratorJobsBulkOrchestratorJobPair) GetJobId() string { + if o == nil || isNil(o.JobId) { + var ret string + return ret + } + return *o.JobId +} + +// GetJobIdOk returns a tuple with the JobId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsOrchestratorJobsBulkOrchestratorJobPair) GetJobIdOk() (*string, bool) { + if o == nil || isNil(o.JobId) { + return nil, false + } + return o.JobId, true +} + +// HasJobId returns a boolean if a field has been set. +func (o *ModelsOrchestratorJobsBulkOrchestratorJobPair) HasJobId() bool { + if o != nil && !isNil(o.JobId) { + return true + } + + return false +} + +// SetJobId gets a reference to the given string and assigns it to the JobId field. +func (o *ModelsOrchestratorJobsBulkOrchestratorJobPair) SetJobId(v string) { + o.JobId = &v +} + +// GetOrchestratorId returns the OrchestratorId field value if set, zero value otherwise. +func (o *ModelsOrchestratorJobsBulkOrchestratorJobPair) GetOrchestratorId() string { + if o == nil || isNil(o.OrchestratorId) { + var ret string + return ret + } + return *o.OrchestratorId +} + +// GetOrchestratorIdOk returns a tuple with the OrchestratorId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsOrchestratorJobsBulkOrchestratorJobPair) GetOrchestratorIdOk() (*string, bool) { + if o == nil || isNil(o.OrchestratorId) { + return nil, false + } + return o.OrchestratorId, true +} + +// HasOrchestratorId returns a boolean if a field has been set. +func (o *ModelsOrchestratorJobsBulkOrchestratorJobPair) HasOrchestratorId() bool { + if o != nil && !isNil(o.OrchestratorId) { + return true + } + + return false +} + +// SetOrchestratorId gets a reference to the given string and assigns it to the OrchestratorId field. +func (o *ModelsOrchestratorJobsBulkOrchestratorJobPair) SetOrchestratorId(v string) { + o.OrchestratorId = &v +} + +func (o ModelsOrchestratorJobsBulkOrchestratorJobPair) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsOrchestratorJobsBulkOrchestratorJobPair) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.JobId) { + toSerialize["JobId"] = o.JobId + } + if !isNil(o.OrchestratorId) { + toSerialize["OrchestratorId"] = o.OrchestratorId + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsOrchestratorJobsBulkOrchestratorJobPair) UnmarshalJSON(bytes []byte) (err error) { + varModelsOrchestratorJobsBulkOrchestratorJobPair := _ModelsOrchestratorJobsBulkOrchestratorJobPair{} + + if err = json.Unmarshal(bytes, &varModelsOrchestratorJobsBulkOrchestratorJobPair); err == nil { + *o = ModelsOrchestratorJobsBulkOrchestratorJobPair(varModelsOrchestratorJobsBulkOrchestratorJobPair) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "JobId") + delete(additionalProperties, "OrchestratorId") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsOrchestratorJobsBulkOrchestratorJobPair struct { + value *ModelsOrchestratorJobsBulkOrchestratorJobPair + isSet bool +} + +func (v NullableModelsOrchestratorJobsBulkOrchestratorJobPair) Get() *ModelsOrchestratorJobsBulkOrchestratorJobPair { + return v.value +} + +func (v *NullableModelsOrchestratorJobsBulkOrchestratorJobPair) Set(val *ModelsOrchestratorJobsBulkOrchestratorJobPair) { + v.value = val + v.isSet = true +} + +func (v NullableModelsOrchestratorJobsBulkOrchestratorJobPair) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsOrchestratorJobsBulkOrchestratorJobPair) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsOrchestratorJobsBulkOrchestratorJobPair(val *ModelsOrchestratorJobsBulkOrchestratorJobPair) *NullableModelsOrchestratorJobsBulkOrchestratorJobPair { + return &NullableModelsOrchestratorJobsBulkOrchestratorJobPair{value: val, isSet: true} +} + +func (v NullableModelsOrchestratorJobsBulkOrchestratorJobPair) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsOrchestratorJobsBulkOrchestratorJobPair) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_orchestrator_jobs_job.go b/v1/api/keyfactor/model_models_orchestrator_jobs_job.go new file mode 100644 index 0000000..7366257 --- /dev/null +++ b/v1/api/keyfactor/model_models_orchestrator_jobs_job.go @@ -0,0 +1,343 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsOrchestratorJobsJob type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsOrchestratorJobsJob{} + +// ModelsOrchestratorJobsJob struct for ModelsOrchestratorJobsJob +type ModelsOrchestratorJobsJob struct { + Id *string `json:"Id,omitempty"` + ClientMachine *string `json:"ClientMachine,omitempty"` + Target *string `json:"Target,omitempty"` + Schedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"Schedule,omitempty"` + Requested *string `json:"Requested,omitempty"` + JobType *string `json:"JobType,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsOrchestratorJobsJob ModelsOrchestratorJobsJob + +// NewModelsOrchestratorJobsJob instantiates a new ModelsOrchestratorJobsJob object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsOrchestratorJobsJob() *ModelsOrchestratorJobsJob { + this := ModelsOrchestratorJobsJob{} + return &this +} + +// NewModelsOrchestratorJobsJobWithDefaults instantiates a new ModelsOrchestratorJobsJob object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsOrchestratorJobsJobWithDefaults() *ModelsOrchestratorJobsJob { + this := ModelsOrchestratorJobsJob{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ModelsOrchestratorJobsJob) GetId() string { + if o == nil || isNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsOrchestratorJobsJob) GetIdOk() (*string, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ModelsOrchestratorJobsJob) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *ModelsOrchestratorJobsJob) SetId(v string) { + o.Id = &v +} + +// GetClientMachine returns the ClientMachine field value if set, zero value otherwise. +func (o *ModelsOrchestratorJobsJob) GetClientMachine() string { + if o == nil || isNil(o.ClientMachine) { + var ret string + return ret + } + return *o.ClientMachine +} + +// GetClientMachineOk returns a tuple with the ClientMachine field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsOrchestratorJobsJob) GetClientMachineOk() (*string, bool) { + if o == nil || isNil(o.ClientMachine) { + return nil, false + } + return o.ClientMachine, true +} + +// HasClientMachine returns a boolean if a field has been set. +func (o *ModelsOrchestratorJobsJob) HasClientMachine() bool { + if o != nil && !isNil(o.ClientMachine) { + return true + } + + return false +} + +// SetClientMachine gets a reference to the given string and assigns it to the ClientMachine field. +func (o *ModelsOrchestratorJobsJob) SetClientMachine(v string) { + o.ClientMachine = &v +} + +// GetTarget returns the Target field value if set, zero value otherwise. +func (o *ModelsOrchestratorJobsJob) GetTarget() string { + if o == nil || isNil(o.Target) { + var ret string + return ret + } + return *o.Target +} + +// GetTargetOk returns a tuple with the Target field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsOrchestratorJobsJob) GetTargetOk() (*string, bool) { + if o == nil || isNil(o.Target) { + return nil, false + } + return o.Target, true +} + +// HasTarget returns a boolean if a field has been set. +func (o *ModelsOrchestratorJobsJob) HasTarget() bool { + if o != nil && !isNil(o.Target) { + return true + } + + return false +} + +// SetTarget gets a reference to the given string and assigns it to the Target field. +func (o *ModelsOrchestratorJobsJob) SetTarget(v string) { + o.Target = &v +} + +// GetSchedule returns the Schedule field value if set, zero value otherwise. +func (o *ModelsOrchestratorJobsJob) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.Schedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.Schedule +} + +// GetScheduleOk returns a tuple with the Schedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsOrchestratorJobsJob) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.Schedule) { + return nil, false + } + return o.Schedule, true +} + +// HasSchedule returns a boolean if a field has been set. +func (o *ModelsOrchestratorJobsJob) HasSchedule() bool { + if o != nil && !isNil(o.Schedule) { + return true + } + + return false +} + +// SetSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the Schedule field. +func (o *ModelsOrchestratorJobsJob) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.Schedule = &v +} + +// GetRequested returns the Requested field value if set, zero value otherwise. +func (o *ModelsOrchestratorJobsJob) GetRequested() string { + if o == nil || isNil(o.Requested) { + var ret string + return ret + } + return *o.Requested +} + +// GetRequestedOk returns a tuple with the Requested field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsOrchestratorJobsJob) GetRequestedOk() (*string, bool) { + if o == nil || isNil(o.Requested) { + return nil, false + } + return o.Requested, true +} + +// HasRequested returns a boolean if a field has been set. +func (o *ModelsOrchestratorJobsJob) HasRequested() bool { + if o != nil && !isNil(o.Requested) { + return true + } + + return false +} + +// SetRequested gets a reference to the given string and assigns it to the Requested field. +func (o *ModelsOrchestratorJobsJob) SetRequested(v string) { + o.Requested = &v +} + +// GetJobType returns the JobType field value if set, zero value otherwise. +func (o *ModelsOrchestratorJobsJob) GetJobType() string { + if o == nil || isNil(o.JobType) { + var ret string + return ret + } + return *o.JobType +} + +// GetJobTypeOk returns a tuple with the JobType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsOrchestratorJobsJob) GetJobTypeOk() (*string, bool) { + if o == nil || isNil(o.JobType) { + return nil, false + } + return o.JobType, true +} + +// HasJobType returns a boolean if a field has been set. +func (o *ModelsOrchestratorJobsJob) HasJobType() bool { + if o != nil && !isNil(o.JobType) { + return true + } + + return false +} + +// SetJobType gets a reference to the given string and assigns it to the JobType field. +func (o *ModelsOrchestratorJobsJob) SetJobType(v string) { + o.JobType = &v +} + +func (o ModelsOrchestratorJobsJob) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsOrchestratorJobsJob) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.ClientMachine) { + toSerialize["ClientMachine"] = o.ClientMachine + } + if !isNil(o.Target) { + toSerialize["Target"] = o.Target + } + if !isNil(o.Schedule) { + toSerialize["Schedule"] = o.Schedule + } + if !isNil(o.Requested) { + toSerialize["Requested"] = o.Requested + } + if !isNil(o.JobType) { + toSerialize["JobType"] = o.JobType + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsOrchestratorJobsJob) UnmarshalJSON(bytes []byte) (err error) { + varModelsOrchestratorJobsJob := _ModelsOrchestratorJobsJob{} + + if err = json.Unmarshal(bytes, &varModelsOrchestratorJobsJob); err == nil { + *o = ModelsOrchestratorJobsJob(varModelsOrchestratorJobsJob) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "ClientMachine") + delete(additionalProperties, "Target") + delete(additionalProperties, "Schedule") + delete(additionalProperties, "Requested") + delete(additionalProperties, "JobType") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsOrchestratorJobsJob struct { + value *ModelsOrchestratorJobsJob + isSet bool +} + +func (v NullableModelsOrchestratorJobsJob) Get() *ModelsOrchestratorJobsJob { + return v.value +} + +func (v *NullableModelsOrchestratorJobsJob) Set(val *ModelsOrchestratorJobsJob) { + v.value = val + v.isSet = true +} + +func (v NullableModelsOrchestratorJobsJob) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsOrchestratorJobsJob) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsOrchestratorJobsJob(val *ModelsOrchestratorJobsJob) *NullableModelsOrchestratorJobsJob { + return &NullableModelsOrchestratorJobsJob{value: val, isSet: true} +} + +func (v NullableModelsOrchestratorJobsJob) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsOrchestratorJobsJob) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_orchestrator_jobs_job_type_create_request.go b/v1/api/keyfactor/model_models_orchestrator_jobs_job_type_create_request.go new file mode 100644 index 0000000..29dcef6 --- /dev/null +++ b/v1/api/keyfactor/model_models_orchestrator_jobs_job_type_create_request.go @@ -0,0 +1,223 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsOrchestratorJobsJobTypeCreateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsOrchestratorJobsJobTypeCreateRequest{} + +// ModelsOrchestratorJobsJobTypeCreateRequest struct for ModelsOrchestratorJobsJobTypeCreateRequest +type ModelsOrchestratorJobsJobTypeCreateRequest struct { + JobTypeName string `json:"JobTypeName"` + Description *string `json:"Description,omitempty"` + JobTypeFields []ModelsOrchestratorJobsJobTypeFieldRequest `json:"JobTypeFields,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsOrchestratorJobsJobTypeCreateRequest ModelsOrchestratorJobsJobTypeCreateRequest + +// NewModelsOrchestratorJobsJobTypeCreateRequest instantiates a new ModelsOrchestratorJobsJobTypeCreateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsOrchestratorJobsJobTypeCreateRequest(jobTypeName string) *ModelsOrchestratorJobsJobTypeCreateRequest { + this := ModelsOrchestratorJobsJobTypeCreateRequest{} + this.JobTypeName = jobTypeName + return &this +} + +// NewModelsOrchestratorJobsJobTypeCreateRequestWithDefaults instantiates a new ModelsOrchestratorJobsJobTypeCreateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsOrchestratorJobsJobTypeCreateRequestWithDefaults() *ModelsOrchestratorJobsJobTypeCreateRequest { + this := ModelsOrchestratorJobsJobTypeCreateRequest{} + return &this +} + +// GetJobTypeName returns the JobTypeName field value +func (o *ModelsOrchestratorJobsJobTypeCreateRequest) GetJobTypeName() string { + if o == nil { + var ret string + return ret + } + + return o.JobTypeName +} + +// GetJobTypeNameOk returns a tuple with the JobTypeName field value +// and a boolean to check if the value has been set. +func (o *ModelsOrchestratorJobsJobTypeCreateRequest) GetJobTypeNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.JobTypeName, true +} + +// SetJobTypeName sets field value +func (o *ModelsOrchestratorJobsJobTypeCreateRequest) SetJobTypeName(v string) { + o.JobTypeName = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ModelsOrchestratorJobsJobTypeCreateRequest) GetDescription() string { + if o == nil || isNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsOrchestratorJobsJobTypeCreateRequest) GetDescriptionOk() (*string, bool) { + if o == nil || isNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *ModelsOrchestratorJobsJobTypeCreateRequest) HasDescription() bool { + if o != nil && !isNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *ModelsOrchestratorJobsJobTypeCreateRequest) SetDescription(v string) { + o.Description = &v +} + +// GetJobTypeFields returns the JobTypeFields field value if set, zero value otherwise. +func (o *ModelsOrchestratorJobsJobTypeCreateRequest) GetJobTypeFields() []ModelsOrchestratorJobsJobTypeFieldRequest { + if o == nil || isNil(o.JobTypeFields) { + var ret []ModelsOrchestratorJobsJobTypeFieldRequest + return ret + } + return o.JobTypeFields +} + +// GetJobTypeFieldsOk returns a tuple with the JobTypeFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsOrchestratorJobsJobTypeCreateRequest) GetJobTypeFieldsOk() ([]ModelsOrchestratorJobsJobTypeFieldRequest, bool) { + if o == nil || isNil(o.JobTypeFields) { + return nil, false + } + return o.JobTypeFields, true +} + +// HasJobTypeFields returns a boolean if a field has been set. +func (o *ModelsOrchestratorJobsJobTypeCreateRequest) HasJobTypeFields() bool { + if o != nil && !isNil(o.JobTypeFields) { + return true + } + + return false +} + +// SetJobTypeFields gets a reference to the given []ModelsOrchestratorJobsJobTypeFieldRequest and assigns it to the JobTypeFields field. +func (o *ModelsOrchestratorJobsJobTypeCreateRequest) SetJobTypeFields(v []ModelsOrchestratorJobsJobTypeFieldRequest) { + o.JobTypeFields = v +} + +func (o ModelsOrchestratorJobsJobTypeCreateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsOrchestratorJobsJobTypeCreateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["JobTypeName"] = o.JobTypeName + if !isNil(o.Description) { + toSerialize["Description"] = o.Description + } + if !isNil(o.JobTypeFields) { + toSerialize["JobTypeFields"] = o.JobTypeFields + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsOrchestratorJobsJobTypeCreateRequest) UnmarshalJSON(bytes []byte) (err error) { + varModelsOrchestratorJobsJobTypeCreateRequest := _ModelsOrchestratorJobsJobTypeCreateRequest{} + + if err = json.Unmarshal(bytes, &varModelsOrchestratorJobsJobTypeCreateRequest); err == nil { + *o = ModelsOrchestratorJobsJobTypeCreateRequest(varModelsOrchestratorJobsJobTypeCreateRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "JobTypeName") + delete(additionalProperties, "Description") + delete(additionalProperties, "JobTypeFields") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsOrchestratorJobsJobTypeCreateRequest struct { + value *ModelsOrchestratorJobsJobTypeCreateRequest + isSet bool +} + +func (v NullableModelsOrchestratorJobsJobTypeCreateRequest) Get() *ModelsOrchestratorJobsJobTypeCreateRequest { + return v.value +} + +func (v *NullableModelsOrchestratorJobsJobTypeCreateRequest) Set(val *ModelsOrchestratorJobsJobTypeCreateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableModelsOrchestratorJobsJobTypeCreateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsOrchestratorJobsJobTypeCreateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsOrchestratorJobsJobTypeCreateRequest(val *ModelsOrchestratorJobsJobTypeCreateRequest) *NullableModelsOrchestratorJobsJobTypeCreateRequest { + return &NullableModelsOrchestratorJobsJobTypeCreateRequest{value: val, isSet: true} +} + +func (v NullableModelsOrchestratorJobsJobTypeCreateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsOrchestratorJobsJobTypeCreateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_orchestrator_jobs_job_type_field_request.go b/v1/api/keyfactor/model_models_orchestrator_jobs_job_type_field_request.go new file mode 100644 index 0000000..77290b3 --- /dev/null +++ b/v1/api/keyfactor/model_models_orchestrator_jobs_job_type_field_request.go @@ -0,0 +1,251 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsOrchestratorJobsJobTypeFieldRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsOrchestratorJobsJobTypeFieldRequest{} + +// ModelsOrchestratorJobsJobTypeFieldRequest struct for ModelsOrchestratorJobsJobTypeFieldRequest +type ModelsOrchestratorJobsJobTypeFieldRequest struct { + Name string `json:"Name"` + Type int32 `json:"Type"` + DefaultValue *string `json:"DefaultValue,omitempty"` + Required *bool `json:"Required,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsOrchestratorJobsJobTypeFieldRequest ModelsOrchestratorJobsJobTypeFieldRequest + +// NewModelsOrchestratorJobsJobTypeFieldRequest instantiates a new ModelsOrchestratorJobsJobTypeFieldRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsOrchestratorJobsJobTypeFieldRequest(name string, type_ int32) *ModelsOrchestratorJobsJobTypeFieldRequest { + this := ModelsOrchestratorJobsJobTypeFieldRequest{} + this.Name = name + this.Type = type_ + return &this +} + +// NewModelsOrchestratorJobsJobTypeFieldRequestWithDefaults instantiates a new ModelsOrchestratorJobsJobTypeFieldRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsOrchestratorJobsJobTypeFieldRequestWithDefaults() *ModelsOrchestratorJobsJobTypeFieldRequest { + this := ModelsOrchestratorJobsJobTypeFieldRequest{} + return &this +} + +// GetName returns the Name field value +func (o *ModelsOrchestratorJobsJobTypeFieldRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ModelsOrchestratorJobsJobTypeFieldRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ModelsOrchestratorJobsJobTypeFieldRequest) SetName(v string) { + o.Name = v +} + +// GetType returns the Type field value +func (o *ModelsOrchestratorJobsJobTypeFieldRequest) GetType() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *ModelsOrchestratorJobsJobTypeFieldRequest) GetTypeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *ModelsOrchestratorJobsJobTypeFieldRequest) SetType(v int32) { + o.Type = v +} + +// GetDefaultValue returns the DefaultValue field value if set, zero value otherwise. +func (o *ModelsOrchestratorJobsJobTypeFieldRequest) GetDefaultValue() string { + if o == nil || isNil(o.DefaultValue) { + var ret string + return ret + } + return *o.DefaultValue +} + +// GetDefaultValueOk returns a tuple with the DefaultValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsOrchestratorJobsJobTypeFieldRequest) GetDefaultValueOk() (*string, bool) { + if o == nil || isNil(o.DefaultValue) { + return nil, false + } + return o.DefaultValue, true +} + +// HasDefaultValue returns a boolean if a field has been set. +func (o *ModelsOrchestratorJobsJobTypeFieldRequest) HasDefaultValue() bool { + if o != nil && !isNil(o.DefaultValue) { + return true + } + + return false +} + +// SetDefaultValue gets a reference to the given string and assigns it to the DefaultValue field. +func (o *ModelsOrchestratorJobsJobTypeFieldRequest) SetDefaultValue(v string) { + o.DefaultValue = &v +} + +// GetRequired returns the Required field value if set, zero value otherwise. +func (o *ModelsOrchestratorJobsJobTypeFieldRequest) GetRequired() bool { + if o == nil || isNil(o.Required) { + var ret bool + return ret + } + return *o.Required +} + +// GetRequiredOk returns a tuple with the Required field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsOrchestratorJobsJobTypeFieldRequest) GetRequiredOk() (*bool, bool) { + if o == nil || isNil(o.Required) { + return nil, false + } + return o.Required, true +} + +// HasRequired returns a boolean if a field has been set. +func (o *ModelsOrchestratorJobsJobTypeFieldRequest) HasRequired() bool { + if o != nil && !isNil(o.Required) { + return true + } + + return false +} + +// SetRequired gets a reference to the given bool and assigns it to the Required field. +func (o *ModelsOrchestratorJobsJobTypeFieldRequest) SetRequired(v bool) { + o.Required = &v +} + +func (o ModelsOrchestratorJobsJobTypeFieldRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsOrchestratorJobsJobTypeFieldRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Name"] = o.Name + toSerialize["Type"] = o.Type + if !isNil(o.DefaultValue) { + toSerialize["DefaultValue"] = o.DefaultValue + } + if !isNil(o.Required) { + toSerialize["Required"] = o.Required + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsOrchestratorJobsJobTypeFieldRequest) UnmarshalJSON(bytes []byte) (err error) { + varModelsOrchestratorJobsJobTypeFieldRequest := _ModelsOrchestratorJobsJobTypeFieldRequest{} + + if err = json.Unmarshal(bytes, &varModelsOrchestratorJobsJobTypeFieldRequest); err == nil { + *o = ModelsOrchestratorJobsJobTypeFieldRequest(varModelsOrchestratorJobsJobTypeFieldRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Name") + delete(additionalProperties, "Type") + delete(additionalProperties, "DefaultValue") + delete(additionalProperties, "Required") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsOrchestratorJobsJobTypeFieldRequest struct { + value *ModelsOrchestratorJobsJobTypeFieldRequest + isSet bool +} + +func (v NullableModelsOrchestratorJobsJobTypeFieldRequest) Get() *ModelsOrchestratorJobsJobTypeFieldRequest { + return v.value +} + +func (v *NullableModelsOrchestratorJobsJobTypeFieldRequest) Set(val *ModelsOrchestratorJobsJobTypeFieldRequest) { + v.value = val + v.isSet = true +} + +func (v NullableModelsOrchestratorJobsJobTypeFieldRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsOrchestratorJobsJobTypeFieldRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsOrchestratorJobsJobTypeFieldRequest(val *ModelsOrchestratorJobsJobTypeFieldRequest) *NullableModelsOrchestratorJobsJobTypeFieldRequest { + return &NullableModelsOrchestratorJobsJobTypeFieldRequest{value: val, isSet: true} +} + +func (v NullableModelsOrchestratorJobsJobTypeFieldRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsOrchestratorJobsJobTypeFieldRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_orchestrator_jobs_job_type_update_request.go b/v1/api/keyfactor/model_models_orchestrator_jobs_job_type_update_request.go new file mode 100644 index 0000000..bab6d95 --- /dev/null +++ b/v1/api/keyfactor/model_models_orchestrator_jobs_job_type_update_request.go @@ -0,0 +1,251 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsOrchestratorJobsJobTypeUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsOrchestratorJobsJobTypeUpdateRequest{} + +// ModelsOrchestratorJobsJobTypeUpdateRequest struct for ModelsOrchestratorJobsJobTypeUpdateRequest +type ModelsOrchestratorJobsJobTypeUpdateRequest struct { + Id string `json:"Id"` + JobTypeName string `json:"JobTypeName"` + Description *string `json:"Description,omitempty"` + JobTypeFields []ModelsOrchestratorJobsJobTypeFieldRequest `json:"JobTypeFields,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsOrchestratorJobsJobTypeUpdateRequest ModelsOrchestratorJobsJobTypeUpdateRequest + +// NewModelsOrchestratorJobsJobTypeUpdateRequest instantiates a new ModelsOrchestratorJobsJobTypeUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsOrchestratorJobsJobTypeUpdateRequest(id string, jobTypeName string) *ModelsOrchestratorJobsJobTypeUpdateRequest { + this := ModelsOrchestratorJobsJobTypeUpdateRequest{} + this.Id = id + this.JobTypeName = jobTypeName + return &this +} + +// NewModelsOrchestratorJobsJobTypeUpdateRequestWithDefaults instantiates a new ModelsOrchestratorJobsJobTypeUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsOrchestratorJobsJobTypeUpdateRequestWithDefaults() *ModelsOrchestratorJobsJobTypeUpdateRequest { + this := ModelsOrchestratorJobsJobTypeUpdateRequest{} + return &this +} + +// GetId returns the Id field value +func (o *ModelsOrchestratorJobsJobTypeUpdateRequest) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *ModelsOrchestratorJobsJobTypeUpdateRequest) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ModelsOrchestratorJobsJobTypeUpdateRequest) SetId(v string) { + o.Id = v +} + +// GetJobTypeName returns the JobTypeName field value +func (o *ModelsOrchestratorJobsJobTypeUpdateRequest) GetJobTypeName() string { + if o == nil { + var ret string + return ret + } + + return o.JobTypeName +} + +// GetJobTypeNameOk returns a tuple with the JobTypeName field value +// and a boolean to check if the value has been set. +func (o *ModelsOrchestratorJobsJobTypeUpdateRequest) GetJobTypeNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.JobTypeName, true +} + +// SetJobTypeName sets field value +func (o *ModelsOrchestratorJobsJobTypeUpdateRequest) SetJobTypeName(v string) { + o.JobTypeName = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ModelsOrchestratorJobsJobTypeUpdateRequest) GetDescription() string { + if o == nil || isNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsOrchestratorJobsJobTypeUpdateRequest) GetDescriptionOk() (*string, bool) { + if o == nil || isNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *ModelsOrchestratorJobsJobTypeUpdateRequest) HasDescription() bool { + if o != nil && !isNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *ModelsOrchestratorJobsJobTypeUpdateRequest) SetDescription(v string) { + o.Description = &v +} + +// GetJobTypeFields returns the JobTypeFields field value if set, zero value otherwise. +func (o *ModelsOrchestratorJobsJobTypeUpdateRequest) GetJobTypeFields() []ModelsOrchestratorJobsJobTypeFieldRequest { + if o == nil || isNil(o.JobTypeFields) { + var ret []ModelsOrchestratorJobsJobTypeFieldRequest + return ret + } + return o.JobTypeFields +} + +// GetJobTypeFieldsOk returns a tuple with the JobTypeFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsOrchestratorJobsJobTypeUpdateRequest) GetJobTypeFieldsOk() ([]ModelsOrchestratorJobsJobTypeFieldRequest, bool) { + if o == nil || isNil(o.JobTypeFields) { + return nil, false + } + return o.JobTypeFields, true +} + +// HasJobTypeFields returns a boolean if a field has been set. +func (o *ModelsOrchestratorJobsJobTypeUpdateRequest) HasJobTypeFields() bool { + if o != nil && !isNil(o.JobTypeFields) { + return true + } + + return false +} + +// SetJobTypeFields gets a reference to the given []ModelsOrchestratorJobsJobTypeFieldRequest and assigns it to the JobTypeFields field. +func (o *ModelsOrchestratorJobsJobTypeUpdateRequest) SetJobTypeFields(v []ModelsOrchestratorJobsJobTypeFieldRequest) { + o.JobTypeFields = v +} + +func (o ModelsOrchestratorJobsJobTypeUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsOrchestratorJobsJobTypeUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Id"] = o.Id + toSerialize["JobTypeName"] = o.JobTypeName + if !isNil(o.Description) { + toSerialize["Description"] = o.Description + } + if !isNil(o.JobTypeFields) { + toSerialize["JobTypeFields"] = o.JobTypeFields + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsOrchestratorJobsJobTypeUpdateRequest) UnmarshalJSON(bytes []byte) (err error) { + varModelsOrchestratorJobsJobTypeUpdateRequest := _ModelsOrchestratorJobsJobTypeUpdateRequest{} + + if err = json.Unmarshal(bytes, &varModelsOrchestratorJobsJobTypeUpdateRequest); err == nil { + *o = ModelsOrchestratorJobsJobTypeUpdateRequest(varModelsOrchestratorJobsJobTypeUpdateRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "JobTypeName") + delete(additionalProperties, "Description") + delete(additionalProperties, "JobTypeFields") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsOrchestratorJobsJobTypeUpdateRequest struct { + value *ModelsOrchestratorJobsJobTypeUpdateRequest + isSet bool +} + +func (v NullableModelsOrchestratorJobsJobTypeUpdateRequest) Get() *ModelsOrchestratorJobsJobTypeUpdateRequest { + return v.value +} + +func (v *NullableModelsOrchestratorJobsJobTypeUpdateRequest) Set(val *ModelsOrchestratorJobsJobTypeUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableModelsOrchestratorJobsJobTypeUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsOrchestratorJobsJobTypeUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsOrchestratorJobsJobTypeUpdateRequest(val *ModelsOrchestratorJobsJobTypeUpdateRequest) *NullableModelsOrchestratorJobsJobTypeUpdateRequest { + return &NullableModelsOrchestratorJobsJobTypeUpdateRequest{value: val, isSet: true} +} + +func (v NullableModelsOrchestratorJobsJobTypeUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsOrchestratorJobsJobTypeUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_orchestrator_jobs_schedule_bulk_job_request.go b/v1/api/keyfactor/model_models_orchestrator_jobs_schedule_bulk_job_request.go new file mode 100644 index 0000000..f3c339a --- /dev/null +++ b/v1/api/keyfactor/model_models_orchestrator_jobs_schedule_bulk_job_request.go @@ -0,0 +1,251 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsOrchestratorJobsScheduleBulkJobRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsOrchestratorJobsScheduleBulkJobRequest{} + +// ModelsOrchestratorJobsScheduleBulkJobRequest struct for ModelsOrchestratorJobsScheduleBulkJobRequest +type ModelsOrchestratorJobsScheduleBulkJobRequest struct { + OrchestratorIds []string `json:"OrchestratorIds"` + JobTypeName string `json:"JobTypeName"` + Schedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"Schedule,omitempty"` + JobFields *map[string]string `json:"JobFields,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsOrchestratorJobsScheduleBulkJobRequest ModelsOrchestratorJobsScheduleBulkJobRequest + +// NewModelsOrchestratorJobsScheduleBulkJobRequest instantiates a new ModelsOrchestratorJobsScheduleBulkJobRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsOrchestratorJobsScheduleBulkJobRequest(orchestratorIds []string, jobTypeName string) *ModelsOrchestratorJobsScheduleBulkJobRequest { + this := ModelsOrchestratorJobsScheduleBulkJobRequest{} + this.OrchestratorIds = orchestratorIds + this.JobTypeName = jobTypeName + return &this +} + +// NewModelsOrchestratorJobsScheduleBulkJobRequestWithDefaults instantiates a new ModelsOrchestratorJobsScheduleBulkJobRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsOrchestratorJobsScheduleBulkJobRequestWithDefaults() *ModelsOrchestratorJobsScheduleBulkJobRequest { + this := ModelsOrchestratorJobsScheduleBulkJobRequest{} + return &this +} + +// GetOrchestratorIds returns the OrchestratorIds field value +func (o *ModelsOrchestratorJobsScheduleBulkJobRequest) GetOrchestratorIds() []string { + if o == nil { + var ret []string + return ret + } + + return o.OrchestratorIds +} + +// GetOrchestratorIdsOk returns a tuple with the OrchestratorIds field value +// and a boolean to check if the value has been set. +func (o *ModelsOrchestratorJobsScheduleBulkJobRequest) GetOrchestratorIdsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.OrchestratorIds, true +} + +// SetOrchestratorIds sets field value +func (o *ModelsOrchestratorJobsScheduleBulkJobRequest) SetOrchestratorIds(v []string) { + o.OrchestratorIds = v +} + +// GetJobTypeName returns the JobTypeName field value +func (o *ModelsOrchestratorJobsScheduleBulkJobRequest) GetJobTypeName() string { + if o == nil { + var ret string + return ret + } + + return o.JobTypeName +} + +// GetJobTypeNameOk returns a tuple with the JobTypeName field value +// and a boolean to check if the value has been set. +func (o *ModelsOrchestratorJobsScheduleBulkJobRequest) GetJobTypeNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.JobTypeName, true +} + +// SetJobTypeName sets field value +func (o *ModelsOrchestratorJobsScheduleBulkJobRequest) SetJobTypeName(v string) { + o.JobTypeName = v +} + +// GetSchedule returns the Schedule field value if set, zero value otherwise. +func (o *ModelsOrchestratorJobsScheduleBulkJobRequest) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.Schedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.Schedule +} + +// GetScheduleOk returns a tuple with the Schedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsOrchestratorJobsScheduleBulkJobRequest) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.Schedule) { + return nil, false + } + return o.Schedule, true +} + +// HasSchedule returns a boolean if a field has been set. +func (o *ModelsOrchestratorJobsScheduleBulkJobRequest) HasSchedule() bool { + if o != nil && !isNil(o.Schedule) { + return true + } + + return false +} + +// SetSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the Schedule field. +func (o *ModelsOrchestratorJobsScheduleBulkJobRequest) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.Schedule = &v +} + +// GetJobFields returns the JobFields field value if set, zero value otherwise. +func (o *ModelsOrchestratorJobsScheduleBulkJobRequest) GetJobFields() map[string]string { + if o == nil || isNil(o.JobFields) { + var ret map[string]string + return ret + } + return *o.JobFields +} + +// GetJobFieldsOk returns a tuple with the JobFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsOrchestratorJobsScheduleBulkJobRequest) GetJobFieldsOk() (*map[string]string, bool) { + if o == nil || isNil(o.JobFields) { + return nil, false + } + return o.JobFields, true +} + +// HasJobFields returns a boolean if a field has been set. +func (o *ModelsOrchestratorJobsScheduleBulkJobRequest) HasJobFields() bool { + if o != nil && !isNil(o.JobFields) { + return true + } + + return false +} + +// SetJobFields gets a reference to the given map[string]string and assigns it to the JobFields field. +func (o *ModelsOrchestratorJobsScheduleBulkJobRequest) SetJobFields(v map[string]string) { + o.JobFields = &v +} + +func (o ModelsOrchestratorJobsScheduleBulkJobRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsOrchestratorJobsScheduleBulkJobRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["OrchestratorIds"] = o.OrchestratorIds + toSerialize["JobTypeName"] = o.JobTypeName + if !isNil(o.Schedule) { + toSerialize["Schedule"] = o.Schedule + } + if !isNil(o.JobFields) { + toSerialize["JobFields"] = o.JobFields + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsOrchestratorJobsScheduleBulkJobRequest) UnmarshalJSON(bytes []byte) (err error) { + varModelsOrchestratorJobsScheduleBulkJobRequest := _ModelsOrchestratorJobsScheduleBulkJobRequest{} + + if err = json.Unmarshal(bytes, &varModelsOrchestratorJobsScheduleBulkJobRequest); err == nil { + *o = ModelsOrchestratorJobsScheduleBulkJobRequest(varModelsOrchestratorJobsScheduleBulkJobRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "OrchestratorIds") + delete(additionalProperties, "JobTypeName") + delete(additionalProperties, "Schedule") + delete(additionalProperties, "JobFields") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsOrchestratorJobsScheduleBulkJobRequest struct { + value *ModelsOrchestratorJobsScheduleBulkJobRequest + isSet bool +} + +func (v NullableModelsOrchestratorJobsScheduleBulkJobRequest) Get() *ModelsOrchestratorJobsScheduleBulkJobRequest { + return v.value +} + +func (v *NullableModelsOrchestratorJobsScheduleBulkJobRequest) Set(val *ModelsOrchestratorJobsScheduleBulkJobRequest) { + v.value = val + v.isSet = true +} + +func (v NullableModelsOrchestratorJobsScheduleBulkJobRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsOrchestratorJobsScheduleBulkJobRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsOrchestratorJobsScheduleBulkJobRequest(val *ModelsOrchestratorJobsScheduleBulkJobRequest) *NullableModelsOrchestratorJobsScheduleBulkJobRequest { + return &NullableModelsOrchestratorJobsScheduleBulkJobRequest{value: val, isSet: true} +} + +func (v NullableModelsOrchestratorJobsScheduleBulkJobRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsOrchestratorJobsScheduleBulkJobRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_orchestrator_jobs_schedule_job_request.go b/v1/api/keyfactor/model_models_orchestrator_jobs_schedule_job_request.go new file mode 100644 index 0000000..73e4359 --- /dev/null +++ b/v1/api/keyfactor/model_models_orchestrator_jobs_schedule_job_request.go @@ -0,0 +1,251 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsOrchestratorJobsScheduleJobRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsOrchestratorJobsScheduleJobRequest{} + +// ModelsOrchestratorJobsScheduleJobRequest struct for ModelsOrchestratorJobsScheduleJobRequest +type ModelsOrchestratorJobsScheduleJobRequest struct { + AgentId string `json:"AgentId"` + JobTypeName string `json:"JobTypeName"` + Schedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"Schedule,omitempty"` + JobFields *map[string]string `json:"JobFields,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsOrchestratorJobsScheduleJobRequest ModelsOrchestratorJobsScheduleJobRequest + +// NewModelsOrchestratorJobsScheduleJobRequest instantiates a new ModelsOrchestratorJobsScheduleJobRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsOrchestratorJobsScheduleJobRequest(agentId string, jobTypeName string) *ModelsOrchestratorJobsScheduleJobRequest { + this := ModelsOrchestratorJobsScheduleJobRequest{} + this.AgentId = agentId + this.JobTypeName = jobTypeName + return &this +} + +// NewModelsOrchestratorJobsScheduleJobRequestWithDefaults instantiates a new ModelsOrchestratorJobsScheduleJobRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsOrchestratorJobsScheduleJobRequestWithDefaults() *ModelsOrchestratorJobsScheduleJobRequest { + this := ModelsOrchestratorJobsScheduleJobRequest{} + return &this +} + +// GetAgentId returns the AgentId field value +func (o *ModelsOrchestratorJobsScheduleJobRequest) GetAgentId() string { + if o == nil { + var ret string + return ret + } + + return o.AgentId +} + +// GetAgentIdOk returns a tuple with the AgentId field value +// and a boolean to check if the value has been set. +func (o *ModelsOrchestratorJobsScheduleJobRequest) GetAgentIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AgentId, true +} + +// SetAgentId sets field value +func (o *ModelsOrchestratorJobsScheduleJobRequest) SetAgentId(v string) { + o.AgentId = v +} + +// GetJobTypeName returns the JobTypeName field value +func (o *ModelsOrchestratorJobsScheduleJobRequest) GetJobTypeName() string { + if o == nil { + var ret string + return ret + } + + return o.JobTypeName +} + +// GetJobTypeNameOk returns a tuple with the JobTypeName field value +// and a boolean to check if the value has been set. +func (o *ModelsOrchestratorJobsScheduleJobRequest) GetJobTypeNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.JobTypeName, true +} + +// SetJobTypeName sets field value +func (o *ModelsOrchestratorJobsScheduleJobRequest) SetJobTypeName(v string) { + o.JobTypeName = v +} + +// GetSchedule returns the Schedule field value if set, zero value otherwise. +func (o *ModelsOrchestratorJobsScheduleJobRequest) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.Schedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.Schedule +} + +// GetScheduleOk returns a tuple with the Schedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsOrchestratorJobsScheduleJobRequest) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.Schedule) { + return nil, false + } + return o.Schedule, true +} + +// HasSchedule returns a boolean if a field has been set. +func (o *ModelsOrchestratorJobsScheduleJobRequest) HasSchedule() bool { + if o != nil && !isNil(o.Schedule) { + return true + } + + return false +} + +// SetSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the Schedule field. +func (o *ModelsOrchestratorJobsScheduleJobRequest) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.Schedule = &v +} + +// GetJobFields returns the JobFields field value if set, zero value otherwise. +func (o *ModelsOrchestratorJobsScheduleJobRequest) GetJobFields() map[string]string { + if o == nil || isNil(o.JobFields) { + var ret map[string]string + return ret + } + return *o.JobFields +} + +// GetJobFieldsOk returns a tuple with the JobFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsOrchestratorJobsScheduleJobRequest) GetJobFieldsOk() (*map[string]string, bool) { + if o == nil || isNil(o.JobFields) { + return nil, false + } + return o.JobFields, true +} + +// HasJobFields returns a boolean if a field has been set. +func (o *ModelsOrchestratorJobsScheduleJobRequest) HasJobFields() bool { + if o != nil && !isNil(o.JobFields) { + return true + } + + return false +} + +// SetJobFields gets a reference to the given map[string]string and assigns it to the JobFields field. +func (o *ModelsOrchestratorJobsScheduleJobRequest) SetJobFields(v map[string]string) { + o.JobFields = &v +} + +func (o ModelsOrchestratorJobsScheduleJobRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsOrchestratorJobsScheduleJobRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["AgentId"] = o.AgentId + toSerialize["JobTypeName"] = o.JobTypeName + if !isNil(o.Schedule) { + toSerialize["Schedule"] = o.Schedule + } + if !isNil(o.JobFields) { + toSerialize["JobFields"] = o.JobFields + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsOrchestratorJobsScheduleJobRequest) UnmarshalJSON(bytes []byte) (err error) { + varModelsOrchestratorJobsScheduleJobRequest := _ModelsOrchestratorJobsScheduleJobRequest{} + + if err = json.Unmarshal(bytes, &varModelsOrchestratorJobsScheduleJobRequest); err == nil { + *o = ModelsOrchestratorJobsScheduleJobRequest(varModelsOrchestratorJobsScheduleJobRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "AgentId") + delete(additionalProperties, "JobTypeName") + delete(additionalProperties, "Schedule") + delete(additionalProperties, "JobFields") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsOrchestratorJobsScheduleJobRequest struct { + value *ModelsOrchestratorJobsScheduleJobRequest + isSet bool +} + +func (v NullableModelsOrchestratorJobsScheduleJobRequest) Get() *ModelsOrchestratorJobsScheduleJobRequest { + return v.value +} + +func (v *NullableModelsOrchestratorJobsScheduleJobRequest) Set(val *ModelsOrchestratorJobsScheduleJobRequest) { + v.value = val + v.isSet = true +} + +func (v NullableModelsOrchestratorJobsScheduleJobRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsOrchestratorJobsScheduleJobRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsOrchestratorJobsScheduleJobRequest(val *ModelsOrchestratorJobsScheduleJobRequest) *NullableModelsOrchestratorJobsScheduleJobRequest { + return &NullableModelsOrchestratorJobsScheduleJobRequest{value: val, isSet: true} +} + +func (v NullableModelsOrchestratorJobsScheduleJobRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsOrchestratorJobsScheduleJobRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_paged_query.go b/v1/api/keyfactor/model_models_paged_query.go new file mode 100644 index 0000000..9493d0b --- /dev/null +++ b/v1/api/keyfactor/model_models_paged_query.go @@ -0,0 +1,311 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsPagedQuery type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsPagedQuery{} + +// ModelsPagedQuery A query result set with parameters to define the format of records +type ModelsPagedQuery struct { + // Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) + QueryString *string `json:"QueryString,omitempty"` + // The current page within the result set to be returned + PageReturned *int32 `json:"PageReturned,omitempty"` + // Maximum number of records to be returned in a single call + ReturnLimit *int32 `json:"ReturnLimit,omitempty"` + // Field by which the results should be sorted (view results via Management Portal for sortable columns) + SortField *string `json:"SortField,omitempty"` + // Field sort direction [0=ascending, 1=descending] + SortAscending *int32 `json:"SortAscending,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsPagedQuery ModelsPagedQuery + +// NewModelsPagedQuery instantiates a new ModelsPagedQuery object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsPagedQuery() *ModelsPagedQuery { + this := ModelsPagedQuery{} + return &this +} + +// NewModelsPagedQueryWithDefaults instantiates a new ModelsPagedQuery object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsPagedQueryWithDefaults() *ModelsPagedQuery { + this := ModelsPagedQuery{} + return &this +} + +// GetQueryString returns the QueryString field value if set, zero value otherwise. +func (o *ModelsPagedQuery) GetQueryString() string { + if o == nil || isNil(o.QueryString) { + var ret string + return ret + } + return *o.QueryString +} + +// GetQueryStringOk returns a tuple with the QueryString field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsPagedQuery) GetQueryStringOk() (*string, bool) { + if o == nil || isNil(o.QueryString) { + return nil, false + } + return o.QueryString, true +} + +// HasQueryString returns a boolean if a field has been set. +func (o *ModelsPagedQuery) HasQueryString() bool { + if o != nil && !isNil(o.QueryString) { + return true + } + + return false +} + +// SetQueryString gets a reference to the given string and assigns it to the QueryString field. +func (o *ModelsPagedQuery) SetQueryString(v string) { + o.QueryString = &v +} + +// GetPageReturned returns the PageReturned field value if set, zero value otherwise. +func (o *ModelsPagedQuery) GetPageReturned() int32 { + if o == nil || isNil(o.PageReturned) { + var ret int32 + return ret + } + return *o.PageReturned +} + +// GetPageReturnedOk returns a tuple with the PageReturned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsPagedQuery) GetPageReturnedOk() (*int32, bool) { + if o == nil || isNil(o.PageReturned) { + return nil, false + } + return o.PageReturned, true +} + +// HasPageReturned returns a boolean if a field has been set. +func (o *ModelsPagedQuery) HasPageReturned() bool { + if o != nil && !isNil(o.PageReturned) { + return true + } + + return false +} + +// SetPageReturned gets a reference to the given int32 and assigns it to the PageReturned field. +func (o *ModelsPagedQuery) SetPageReturned(v int32) { + o.PageReturned = &v +} + +// GetReturnLimit returns the ReturnLimit field value if set, zero value otherwise. +func (o *ModelsPagedQuery) GetReturnLimit() int32 { + if o == nil || isNil(o.ReturnLimit) { + var ret int32 + return ret + } + return *o.ReturnLimit +} + +// GetReturnLimitOk returns a tuple with the ReturnLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsPagedQuery) GetReturnLimitOk() (*int32, bool) { + if o == nil || isNil(o.ReturnLimit) { + return nil, false + } + return o.ReturnLimit, true +} + +// HasReturnLimit returns a boolean if a field has been set. +func (o *ModelsPagedQuery) HasReturnLimit() bool { + if o != nil && !isNil(o.ReturnLimit) { + return true + } + + return false +} + +// SetReturnLimit gets a reference to the given int32 and assigns it to the ReturnLimit field. +func (o *ModelsPagedQuery) SetReturnLimit(v int32) { + o.ReturnLimit = &v +} + +// GetSortField returns the SortField field value if set, zero value otherwise. +func (o *ModelsPagedQuery) GetSortField() string { + if o == nil || isNil(o.SortField) { + var ret string + return ret + } + return *o.SortField +} + +// GetSortFieldOk returns a tuple with the SortField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsPagedQuery) GetSortFieldOk() (*string, bool) { + if o == nil || isNil(o.SortField) { + return nil, false + } + return o.SortField, true +} + +// HasSortField returns a boolean if a field has been set. +func (o *ModelsPagedQuery) HasSortField() bool { + if o != nil && !isNil(o.SortField) { + return true + } + + return false +} + +// SetSortField gets a reference to the given string and assigns it to the SortField field. +func (o *ModelsPagedQuery) SetSortField(v string) { + o.SortField = &v +} + +// GetSortAscending returns the SortAscending field value if set, zero value otherwise. +func (o *ModelsPagedQuery) GetSortAscending() int32 { + if o == nil || isNil(o.SortAscending) { + var ret int32 + return ret + } + return *o.SortAscending +} + +// GetSortAscendingOk returns a tuple with the SortAscending field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsPagedQuery) GetSortAscendingOk() (*int32, bool) { + if o == nil || isNil(o.SortAscending) { + return nil, false + } + return o.SortAscending, true +} + +// HasSortAscending returns a boolean if a field has been set. +func (o *ModelsPagedQuery) HasSortAscending() bool { + if o != nil && !isNil(o.SortAscending) { + return true + } + + return false +} + +// SetSortAscending gets a reference to the given int32 and assigns it to the SortAscending field. +func (o *ModelsPagedQuery) SetSortAscending(v int32) { + o.SortAscending = &v +} + +func (o ModelsPagedQuery) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsPagedQuery) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.QueryString) { + toSerialize["QueryString"] = o.QueryString + } + if !isNil(o.PageReturned) { + toSerialize["PageReturned"] = o.PageReturned + } + if !isNil(o.ReturnLimit) { + toSerialize["ReturnLimit"] = o.ReturnLimit + } + if !isNil(o.SortField) { + toSerialize["SortField"] = o.SortField + } + if !isNil(o.SortAscending) { + toSerialize["SortAscending"] = o.SortAscending + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsPagedQuery) UnmarshalJSON(bytes []byte) (err error) { + varModelsPagedQuery := _ModelsPagedQuery{} + + if err = json.Unmarshal(bytes, &varModelsPagedQuery); err == nil { + *o = ModelsPagedQuery(varModelsPagedQuery) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "QueryString") + delete(additionalProperties, "PageReturned") + delete(additionalProperties, "ReturnLimit") + delete(additionalProperties, "SortField") + delete(additionalProperties, "SortAscending") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsPagedQuery struct { + value *ModelsPagedQuery + isSet bool +} + +func (v NullableModelsPagedQuery) Get() *ModelsPagedQuery { + return v.value +} + +func (v *NullableModelsPagedQuery) Set(val *ModelsPagedQuery) { + v.value = val + v.isSet = true +} + +func (v NullableModelsPagedQuery) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsPagedQuery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsPagedQuery(val *ModelsPagedQuery) *NullableModelsPagedQuery { + return &NullableModelsPagedQuery{value: val, isSet: true} +} + +func (v NullableModelsPagedQuery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsPagedQuery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_pending_csr_response.go b/v1/api/keyfactor/model_models_pending_csr_response.go new file mode 100644 index 0000000..c2f2ca5 --- /dev/null +++ b/v1/api/keyfactor/model_models_pending_csr_response.go @@ -0,0 +1,270 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" + "time" +) + +// checks if the ModelsPendingCSRResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsPendingCSRResponse{} + +// ModelsPendingCSRResponse struct for ModelsPendingCSRResponse +type ModelsPendingCSRResponse struct { + Id *int32 `json:"Id,omitempty"` + CSR *string `json:"CSR,omitempty"` + RequestTime *time.Time `json:"RequestTime,omitempty"` + Subject []string `json:"Subject,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsPendingCSRResponse ModelsPendingCSRResponse + +// NewModelsPendingCSRResponse instantiates a new ModelsPendingCSRResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsPendingCSRResponse() *ModelsPendingCSRResponse { + this := ModelsPendingCSRResponse{} + return &this +} + +// NewModelsPendingCSRResponseWithDefaults instantiates a new ModelsPendingCSRResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsPendingCSRResponseWithDefaults() *ModelsPendingCSRResponse { + this := ModelsPendingCSRResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ModelsPendingCSRResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsPendingCSRResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ModelsPendingCSRResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *ModelsPendingCSRResponse) SetId(v int32) { + o.Id = &v +} + +// GetCSR returns the CSR field value if set, zero value otherwise. +func (o *ModelsPendingCSRResponse) GetCSR() string { + if o == nil || isNil(o.CSR) { + var ret string + return ret + } + return *o.CSR +} + +// GetCSROk returns a tuple with the CSR field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsPendingCSRResponse) GetCSROk() (*string, bool) { + if o == nil || isNil(o.CSR) { + return nil, false + } + return o.CSR, true +} + +// HasCSR returns a boolean if a field has been set. +func (o *ModelsPendingCSRResponse) HasCSR() bool { + if o != nil && !isNil(o.CSR) { + return true + } + + return false +} + +// SetCSR gets a reference to the given string and assigns it to the CSR field. +func (o *ModelsPendingCSRResponse) SetCSR(v string) { + o.CSR = &v +} + +// GetRequestTime returns the RequestTime field value if set, zero value otherwise. +func (o *ModelsPendingCSRResponse) GetRequestTime() time.Time { + if o == nil || isNil(o.RequestTime) { + var ret time.Time + return ret + } + return *o.RequestTime +} + +// GetRequestTimeOk returns a tuple with the RequestTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsPendingCSRResponse) GetRequestTimeOk() (*time.Time, bool) { + if o == nil || isNil(o.RequestTime) { + return nil, false + } + return o.RequestTime, true +} + +// HasRequestTime returns a boolean if a field has been set. +func (o *ModelsPendingCSRResponse) HasRequestTime() bool { + if o != nil && !isNil(o.RequestTime) { + return true + } + + return false +} + +// SetRequestTime gets a reference to the given time.Time and assigns it to the RequestTime field. +func (o *ModelsPendingCSRResponse) SetRequestTime(v time.Time) { + o.RequestTime = &v +} + +// GetSubject returns the Subject field value if set, zero value otherwise. +func (o *ModelsPendingCSRResponse) GetSubject() []string { + if o == nil || isNil(o.Subject) { + var ret []string + return ret + } + return o.Subject +} + +// GetSubjectOk returns a tuple with the Subject field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsPendingCSRResponse) GetSubjectOk() ([]string, bool) { + if o == nil || isNil(o.Subject) { + return nil, false + } + return o.Subject, true +} + +// HasSubject returns a boolean if a field has been set. +func (o *ModelsPendingCSRResponse) HasSubject() bool { + if o != nil && !isNil(o.Subject) { + return true + } + + return false +} + +// SetSubject gets a reference to the given []string and assigns it to the Subject field. +func (o *ModelsPendingCSRResponse) SetSubject(v []string) { + o.Subject = v +} + +func (o ModelsPendingCSRResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsPendingCSRResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.CSR) { + toSerialize["CSR"] = o.CSR + } + if !isNil(o.RequestTime) { + toSerialize["RequestTime"] = o.RequestTime + } + if !isNil(o.Subject) { + toSerialize["Subject"] = o.Subject + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsPendingCSRResponse) UnmarshalJSON(bytes []byte) (err error) { + varModelsPendingCSRResponse := _ModelsPendingCSRResponse{} + + if err = json.Unmarshal(bytes, &varModelsPendingCSRResponse); err == nil { + *o = ModelsPendingCSRResponse(varModelsPendingCSRResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "CSR") + delete(additionalProperties, "RequestTime") + delete(additionalProperties, "Subject") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsPendingCSRResponse struct { + value *ModelsPendingCSRResponse + isSet bool +} + +func (v NullableModelsPendingCSRResponse) Get() *ModelsPendingCSRResponse { + return v.value +} + +func (v *NullableModelsPendingCSRResponse) Set(val *ModelsPendingCSRResponse) { + v.value = val + v.isSet = true +} + +func (v NullableModelsPendingCSRResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsPendingCSRResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsPendingCSRResponse(val *ModelsPendingCSRResponse) *NullableModelsPendingCSRResponse { + return &NullableModelsPendingCSRResponse{value: val, isSet: true} +} + +func (v NullableModelsPendingCSRResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsPendingCSRResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_pkcs10_certificate_response.go b/v1/api/keyfactor/model_models_pkcs10_certificate_response.go new file mode 100644 index 0000000..e722ab4 --- /dev/null +++ b/v1/api/keyfactor/model_models_pkcs10_certificate_response.go @@ -0,0 +1,468 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsPkcs10CertificateResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsPkcs10CertificateResponse{} + +// ModelsPkcs10CertificateResponse struct for ModelsPkcs10CertificateResponse +type ModelsPkcs10CertificateResponse struct { + SerialNumber *string `json:"SerialNumber,omitempty"` + IssuerDN NullableString `json:"IssuerDN,omitempty"` + Thumbprint *string `json:"Thumbprint,omitempty"` + // The integer ID of the certificate in the keyfactor database, if Issued + KeyfactorID *int32 `json:"KeyfactorID,omitempty"` + Certificates []string `json:"Certificates,omitempty"` + // The integer id of the certificate request in the Keyfactor database, if one exists. + KeyfactorRequestId *int32 `json:"KeyfactorRequestId,omitempty"` + RequestDisposition *string `json:"RequestDisposition,omitempty"` + DispositionMessage *string `json:"DispositionMessage,omitempty"` + EnrollmentContext map[string]string `json:"EnrollmentContext,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsPkcs10CertificateResponse ModelsPkcs10CertificateResponse + +// NewModelsPkcs10CertificateResponse instantiates a new ModelsPkcs10CertificateResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsPkcs10CertificateResponse() *ModelsPkcs10CertificateResponse { + this := ModelsPkcs10CertificateResponse{} + return &this +} + +// NewModelsPkcs10CertificateResponseWithDefaults instantiates a new ModelsPkcs10CertificateResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsPkcs10CertificateResponseWithDefaults() *ModelsPkcs10CertificateResponse { + this := ModelsPkcs10CertificateResponse{} + return &this +} + +// GetSerialNumber returns the SerialNumber field value if set, zero value otherwise. +func (o *ModelsPkcs10CertificateResponse) GetSerialNumber() string { + if o == nil || isNil(o.SerialNumber) { + var ret string + return ret + } + return *o.SerialNumber +} + +// GetSerialNumberOk returns a tuple with the SerialNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsPkcs10CertificateResponse) GetSerialNumberOk() (*string, bool) { + if o == nil || isNil(o.SerialNumber) { + return nil, false + } + return o.SerialNumber, true +} + +// HasSerialNumber returns a boolean if a field has been set. +func (o *ModelsPkcs10CertificateResponse) HasSerialNumber() bool { + if o != nil && !isNil(o.SerialNumber) { + return true + } + + return false +} + +// SetSerialNumber gets a reference to the given string and assigns it to the SerialNumber field. +func (o *ModelsPkcs10CertificateResponse) SetSerialNumber(v string) { + o.SerialNumber = &v +} + +// GetIssuerDN returns the IssuerDN field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModelsPkcs10CertificateResponse) GetIssuerDN() string { + if o == nil || isNil(o.IssuerDN.Get()) { + var ret string + return ret + } + return *o.IssuerDN.Get() +} + +// GetIssuerDNOk returns a tuple with the IssuerDN field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModelsPkcs10CertificateResponse) GetIssuerDNOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IssuerDN.Get(), o.IssuerDN.IsSet() +} + +// HasIssuerDN returns a boolean if a field has been set. +func (o *ModelsPkcs10CertificateResponse) HasIssuerDN() bool { + if o != nil && o.IssuerDN.IsSet() { + return true + } + + return false +} + +// SetIssuerDN gets a reference to the given NullableString and assigns it to the IssuerDN field. +func (o *ModelsPkcs10CertificateResponse) SetIssuerDN(v string) { + o.IssuerDN.Set(&v) +} + +// SetIssuerDNNil sets the value for IssuerDN to be an explicit nil +func (o *ModelsPkcs10CertificateResponse) SetIssuerDNNil() { + o.IssuerDN.Set(nil) +} + +// UnsetIssuerDN ensures that no value is present for IssuerDN, not even an explicit nil +func (o *ModelsPkcs10CertificateResponse) UnsetIssuerDN() { + o.IssuerDN.Unset() +} + +// GetThumbprint returns the Thumbprint field value if set, zero value otherwise. +func (o *ModelsPkcs10CertificateResponse) GetThumbprint() string { + if o == nil || isNil(o.Thumbprint) { + var ret string + return ret + } + return *o.Thumbprint +} + +// GetThumbprintOk returns a tuple with the Thumbprint field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsPkcs10CertificateResponse) GetThumbprintOk() (*string, bool) { + if o == nil || isNil(o.Thumbprint) { + return nil, false + } + return o.Thumbprint, true +} + +// HasThumbprint returns a boolean if a field has been set. +func (o *ModelsPkcs10CertificateResponse) HasThumbprint() bool { + if o != nil && !isNil(o.Thumbprint) { + return true + } + + return false +} + +// SetThumbprint gets a reference to the given string and assigns it to the Thumbprint field. +func (o *ModelsPkcs10CertificateResponse) SetThumbprint(v string) { + o.Thumbprint = &v +} + +// GetKeyfactorID returns the KeyfactorID field value if set, zero value otherwise. +func (o *ModelsPkcs10CertificateResponse) GetKeyfactorID() int32 { + if o == nil || isNil(o.KeyfactorID) { + var ret int32 + return ret + } + return *o.KeyfactorID +} + +// GetKeyfactorIDOk returns a tuple with the KeyfactorID field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsPkcs10CertificateResponse) GetKeyfactorIDOk() (*int32, bool) { + if o == nil || isNil(o.KeyfactorID) { + return nil, false + } + return o.KeyfactorID, true +} + +// HasKeyfactorID returns a boolean if a field has been set. +func (o *ModelsPkcs10CertificateResponse) HasKeyfactorID() bool { + if o != nil && !isNil(o.KeyfactorID) { + return true + } + + return false +} + +// SetKeyfactorID gets a reference to the given int32 and assigns it to the KeyfactorID field. +func (o *ModelsPkcs10CertificateResponse) SetKeyfactorID(v int32) { + o.KeyfactorID = &v +} + +// GetCertificates returns the Certificates field value if set, zero value otherwise. +func (o *ModelsPkcs10CertificateResponse) GetCertificates() []string { + if o == nil || isNil(o.Certificates) { + var ret []string + return ret + } + return o.Certificates +} + +// GetCertificatesOk returns a tuple with the Certificates field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsPkcs10CertificateResponse) GetCertificatesOk() ([]string, bool) { + if o == nil || isNil(o.Certificates) { + return nil, false + } + return o.Certificates, true +} + +// HasCertificates returns a boolean if a field has been set. +func (o *ModelsPkcs10CertificateResponse) HasCertificates() bool { + if o != nil && !isNil(o.Certificates) { + return true + } + + return false +} + +// SetCertificates gets a reference to the given []string and assigns it to the Certificates field. +func (o *ModelsPkcs10CertificateResponse) SetCertificates(v []string) { + o.Certificates = v +} + +// GetKeyfactorRequestId returns the KeyfactorRequestId field value if set, zero value otherwise. +func (o *ModelsPkcs10CertificateResponse) GetKeyfactorRequestId() int32 { + if o == nil || isNil(o.KeyfactorRequestId) { + var ret int32 + return ret + } + return *o.KeyfactorRequestId +} + +// GetKeyfactorRequestIdOk returns a tuple with the KeyfactorRequestId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsPkcs10CertificateResponse) GetKeyfactorRequestIdOk() (*int32, bool) { + if o == nil || isNil(o.KeyfactorRequestId) { + return nil, false + } + return o.KeyfactorRequestId, true +} + +// HasKeyfactorRequestId returns a boolean if a field has been set. +func (o *ModelsPkcs10CertificateResponse) HasKeyfactorRequestId() bool { + if o != nil && !isNil(o.KeyfactorRequestId) { + return true + } + + return false +} + +// SetKeyfactorRequestId gets a reference to the given int32 and assigns it to the KeyfactorRequestId field. +func (o *ModelsPkcs10CertificateResponse) SetKeyfactorRequestId(v int32) { + o.KeyfactorRequestId = &v +} + +// GetRequestDisposition returns the RequestDisposition field value if set, zero value otherwise. +func (o *ModelsPkcs10CertificateResponse) GetRequestDisposition() string { + if o == nil || isNil(o.RequestDisposition) { + var ret string + return ret + } + return *o.RequestDisposition +} + +// GetRequestDispositionOk returns a tuple with the RequestDisposition field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsPkcs10CertificateResponse) GetRequestDispositionOk() (*string, bool) { + if o == nil || isNil(o.RequestDisposition) { + return nil, false + } + return o.RequestDisposition, true +} + +// HasRequestDisposition returns a boolean if a field has been set. +func (o *ModelsPkcs10CertificateResponse) HasRequestDisposition() bool { + if o != nil && !isNil(o.RequestDisposition) { + return true + } + + return false +} + +// SetRequestDisposition gets a reference to the given string and assigns it to the RequestDisposition field. +func (o *ModelsPkcs10CertificateResponse) SetRequestDisposition(v string) { + o.RequestDisposition = &v +} + +// GetDispositionMessage returns the DispositionMessage field value if set, zero value otherwise. +func (o *ModelsPkcs10CertificateResponse) GetDispositionMessage() string { + if o == nil || isNil(o.DispositionMessage) { + var ret string + return ret + } + return *o.DispositionMessage +} + +// GetDispositionMessageOk returns a tuple with the DispositionMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsPkcs10CertificateResponse) GetDispositionMessageOk() (*string, bool) { + if o == nil || isNil(o.DispositionMessage) { + return nil, false + } + return o.DispositionMessage, true +} + +// HasDispositionMessage returns a boolean if a field has been set. +func (o *ModelsPkcs10CertificateResponse) HasDispositionMessage() bool { + if o != nil && !isNil(o.DispositionMessage) { + return true + } + + return false +} + +// SetDispositionMessage gets a reference to the given string and assigns it to the DispositionMessage field. +func (o *ModelsPkcs10CertificateResponse) SetDispositionMessage(v string) { + o.DispositionMessage = &v +} + +// GetEnrollmentContext returns the EnrollmentContext field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModelsPkcs10CertificateResponse) GetEnrollmentContext() map[string]string { + if o == nil { + var ret map[string]string + return ret + } + return o.EnrollmentContext +} + +// GetEnrollmentContextOk returns a tuple with the EnrollmentContext field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModelsPkcs10CertificateResponse) GetEnrollmentContextOk() (*map[string]string, bool) { + if o == nil || isNil(o.EnrollmentContext) { + return nil, false + } + return &o.EnrollmentContext, true +} + +// HasEnrollmentContext returns a boolean if a field has been set. +func (o *ModelsPkcs10CertificateResponse) HasEnrollmentContext() bool { + if o != nil && isNil(o.EnrollmentContext) { + return true + } + + return false +} + +// SetEnrollmentContext gets a reference to the given map[string]string and assigns it to the EnrollmentContext field. +func (o *ModelsPkcs10CertificateResponse) SetEnrollmentContext(v map[string]string) { + o.EnrollmentContext = v +} + +func (o ModelsPkcs10CertificateResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsPkcs10CertificateResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.SerialNumber) { + toSerialize["SerialNumber"] = o.SerialNumber + } + if o.IssuerDN.IsSet() { + toSerialize["IssuerDN"] = o.IssuerDN.Get() + } + if !isNil(o.Thumbprint) { + toSerialize["Thumbprint"] = o.Thumbprint + } + if !isNil(o.KeyfactorID) { + toSerialize["KeyfactorID"] = o.KeyfactorID + } + if !isNil(o.Certificates) { + toSerialize["Certificates"] = o.Certificates + } + if !isNil(o.KeyfactorRequestId) { + toSerialize["KeyfactorRequestId"] = o.KeyfactorRequestId + } + if !isNil(o.RequestDisposition) { + toSerialize["RequestDisposition"] = o.RequestDisposition + } + if !isNil(o.DispositionMessage) { + toSerialize["DispositionMessage"] = o.DispositionMessage + } + if o.EnrollmentContext != nil { + toSerialize["EnrollmentContext"] = o.EnrollmentContext + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsPkcs10CertificateResponse) UnmarshalJSON(bytes []byte) (err error) { + varModelsPkcs10CertificateResponse := _ModelsPkcs10CertificateResponse{} + + if err = json.Unmarshal(bytes, &varModelsPkcs10CertificateResponse); err == nil { + *o = ModelsPkcs10CertificateResponse(varModelsPkcs10CertificateResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "SerialNumber") + delete(additionalProperties, "IssuerDN") + delete(additionalProperties, "Thumbprint") + delete(additionalProperties, "KeyfactorID") + delete(additionalProperties, "Certificates") + delete(additionalProperties, "KeyfactorRequestId") + delete(additionalProperties, "RequestDisposition") + delete(additionalProperties, "DispositionMessage") + delete(additionalProperties, "EnrollmentContext") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsPkcs10CertificateResponse struct { + value *ModelsPkcs10CertificateResponse + isSet bool +} + +func (v NullableModelsPkcs10CertificateResponse) Get() *ModelsPkcs10CertificateResponse { + return v.value +} + +func (v *NullableModelsPkcs10CertificateResponse) Set(val *ModelsPkcs10CertificateResponse) { + v.value = val + v.isSet = true +} + +func (v NullableModelsPkcs10CertificateResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsPkcs10CertificateResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsPkcs10CertificateResponse(val *ModelsPkcs10CertificateResponse) *NullableModelsPkcs10CertificateResponse { + return &NullableModelsPkcs10CertificateResponse{value: val, isSet: true} +} + +func (v NullableModelsPkcs10CertificateResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsPkcs10CertificateResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_pkcs12_certificate_response.go b/v1/api/keyfactor/model_models_pkcs12_certificate_response.go new file mode 100644 index 0000000..de49237 --- /dev/null +++ b/v1/api/keyfactor/model_models_pkcs12_certificate_response.go @@ -0,0 +1,504 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsPkcs12CertificateResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsPkcs12CertificateResponse{} + +// ModelsPkcs12CertificateResponse struct for ModelsPkcs12CertificateResponse +type ModelsPkcs12CertificateResponse struct { + SerialNumber *string `json:"SerialNumber,omitempty"` + IssuerDN NullableString `json:"IssuerDN,omitempty"` + Thumbprint *string `json:"Thumbprint,omitempty"` + KeyfactorId *int32 `json:"KeyfactorId,omitempty"` + Pkcs12Blob *string `json:"Pkcs12Blob,omitempty"` + Password *string `json:"Password,omitempty"` + // The integer id of the certificate request in the Keyfactor database, if one exists. + KeyfactorRequestId *int32 `json:"KeyfactorRequestId,omitempty"` + RequestDisposition *string `json:"RequestDisposition,omitempty"` + DispositionMessage *string `json:"DispositionMessage,omitempty"` + EnrollmentContext map[string]string `json:"EnrollmentContext,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsPkcs12CertificateResponse ModelsPkcs12CertificateResponse + +// NewModelsPkcs12CertificateResponse instantiates a new ModelsPkcs12CertificateResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsPkcs12CertificateResponse() *ModelsPkcs12CertificateResponse { + this := ModelsPkcs12CertificateResponse{} + return &this +} + +// NewModelsPkcs12CertificateResponseWithDefaults instantiates a new ModelsPkcs12CertificateResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsPkcs12CertificateResponseWithDefaults() *ModelsPkcs12CertificateResponse { + this := ModelsPkcs12CertificateResponse{} + return &this +} + +// GetSerialNumber returns the SerialNumber field value if set, zero value otherwise. +func (o *ModelsPkcs12CertificateResponse) GetSerialNumber() string { + if o == nil || isNil(o.SerialNumber) { + var ret string + return ret + } + return *o.SerialNumber +} + +// GetSerialNumberOk returns a tuple with the SerialNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsPkcs12CertificateResponse) GetSerialNumberOk() (*string, bool) { + if o == nil || isNil(o.SerialNumber) { + return nil, false + } + return o.SerialNumber, true +} + +// HasSerialNumber returns a boolean if a field has been set. +func (o *ModelsPkcs12CertificateResponse) HasSerialNumber() bool { + if o != nil && !isNil(o.SerialNumber) { + return true + } + + return false +} + +// SetSerialNumber gets a reference to the given string and assigns it to the SerialNumber field. +func (o *ModelsPkcs12CertificateResponse) SetSerialNumber(v string) { + o.SerialNumber = &v +} + +// GetIssuerDN returns the IssuerDN field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModelsPkcs12CertificateResponse) GetIssuerDN() string { + if o == nil || isNil(o.IssuerDN.Get()) { + var ret string + return ret + } + return *o.IssuerDN.Get() +} + +// GetIssuerDNOk returns a tuple with the IssuerDN field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModelsPkcs12CertificateResponse) GetIssuerDNOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IssuerDN.Get(), o.IssuerDN.IsSet() +} + +// HasIssuerDN returns a boolean if a field has been set. +func (o *ModelsPkcs12CertificateResponse) HasIssuerDN() bool { + if o != nil && o.IssuerDN.IsSet() { + return true + } + + return false +} + +// SetIssuerDN gets a reference to the given NullableString and assigns it to the IssuerDN field. +func (o *ModelsPkcs12CertificateResponse) SetIssuerDN(v string) { + o.IssuerDN.Set(&v) +} + +// SetIssuerDNNil sets the value for IssuerDN to be an explicit nil +func (o *ModelsPkcs12CertificateResponse) SetIssuerDNNil() { + o.IssuerDN.Set(nil) +} + +// UnsetIssuerDN ensures that no value is present for IssuerDN, not even an explicit nil +func (o *ModelsPkcs12CertificateResponse) UnsetIssuerDN() { + o.IssuerDN.Unset() +} + +// GetThumbprint returns the Thumbprint field value if set, zero value otherwise. +func (o *ModelsPkcs12CertificateResponse) GetThumbprint() string { + if o == nil || isNil(o.Thumbprint) { + var ret string + return ret + } + return *o.Thumbprint +} + +// GetThumbprintOk returns a tuple with the Thumbprint field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsPkcs12CertificateResponse) GetThumbprintOk() (*string, bool) { + if o == nil || isNil(o.Thumbprint) { + return nil, false + } + return o.Thumbprint, true +} + +// HasThumbprint returns a boolean if a field has been set. +func (o *ModelsPkcs12CertificateResponse) HasThumbprint() bool { + if o != nil && !isNil(o.Thumbprint) { + return true + } + + return false +} + +// SetThumbprint gets a reference to the given string and assigns it to the Thumbprint field. +func (o *ModelsPkcs12CertificateResponse) SetThumbprint(v string) { + o.Thumbprint = &v +} + +// GetKeyfactorId returns the KeyfactorId field value if set, zero value otherwise. +func (o *ModelsPkcs12CertificateResponse) GetKeyfactorId() int32 { + if o == nil || isNil(o.KeyfactorId) { + var ret int32 + return ret + } + return *o.KeyfactorId +} + +// GetKeyfactorIdOk returns a tuple with the KeyfactorId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsPkcs12CertificateResponse) GetKeyfactorIdOk() (*int32, bool) { + if o == nil || isNil(o.KeyfactorId) { + return nil, false + } + return o.KeyfactorId, true +} + +// HasKeyfactorId returns a boolean if a field has been set. +func (o *ModelsPkcs12CertificateResponse) HasKeyfactorId() bool { + if o != nil && !isNil(o.KeyfactorId) { + return true + } + + return false +} + +// SetKeyfactorId gets a reference to the given int32 and assigns it to the KeyfactorId field. +func (o *ModelsPkcs12CertificateResponse) SetKeyfactorId(v int32) { + o.KeyfactorId = &v +} + +// GetPkcs12Blob returns the Pkcs12Blob field value if set, zero value otherwise. +func (o *ModelsPkcs12CertificateResponse) GetPkcs12Blob() string { + if o == nil || isNil(o.Pkcs12Blob) { + var ret string + return ret + } + return *o.Pkcs12Blob +} + +// GetPkcs12BlobOk returns a tuple with the Pkcs12Blob field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsPkcs12CertificateResponse) GetPkcs12BlobOk() (*string, bool) { + if o == nil || isNil(o.Pkcs12Blob) { + return nil, false + } + return o.Pkcs12Blob, true +} + +// HasPkcs12Blob returns a boolean if a field has been set. +func (o *ModelsPkcs12CertificateResponse) HasPkcs12Blob() bool { + if o != nil && !isNil(o.Pkcs12Blob) { + return true + } + + return false +} + +// SetPkcs12Blob gets a reference to the given string and assigns it to the Pkcs12Blob field. +func (o *ModelsPkcs12CertificateResponse) SetPkcs12Blob(v string) { + o.Pkcs12Blob = &v +} + +// GetPassword returns the Password field value if set, zero value otherwise. +func (o *ModelsPkcs12CertificateResponse) GetPassword() string { + if o == nil || isNil(o.Password) { + var ret string + return ret + } + return *o.Password +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsPkcs12CertificateResponse) GetPasswordOk() (*string, bool) { + if o == nil || isNil(o.Password) { + return nil, false + } + return o.Password, true +} + +// HasPassword returns a boolean if a field has been set. +func (o *ModelsPkcs12CertificateResponse) HasPassword() bool { + if o != nil && !isNil(o.Password) { + return true + } + + return false +} + +// SetPassword gets a reference to the given string and assigns it to the Password field. +func (o *ModelsPkcs12CertificateResponse) SetPassword(v string) { + o.Password = &v +} + +// GetKeyfactorRequestId returns the KeyfactorRequestId field value if set, zero value otherwise. +func (o *ModelsPkcs12CertificateResponse) GetKeyfactorRequestId() int32 { + if o == nil || isNil(o.KeyfactorRequestId) { + var ret int32 + return ret + } + return *o.KeyfactorRequestId +} + +// GetKeyfactorRequestIdOk returns a tuple with the KeyfactorRequestId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsPkcs12CertificateResponse) GetKeyfactorRequestIdOk() (*int32, bool) { + if o == nil || isNil(o.KeyfactorRequestId) { + return nil, false + } + return o.KeyfactorRequestId, true +} + +// HasKeyfactorRequestId returns a boolean if a field has been set. +func (o *ModelsPkcs12CertificateResponse) HasKeyfactorRequestId() bool { + if o != nil && !isNil(o.KeyfactorRequestId) { + return true + } + + return false +} + +// SetKeyfactorRequestId gets a reference to the given int32 and assigns it to the KeyfactorRequestId field. +func (o *ModelsPkcs12CertificateResponse) SetKeyfactorRequestId(v int32) { + o.KeyfactorRequestId = &v +} + +// GetRequestDisposition returns the RequestDisposition field value if set, zero value otherwise. +func (o *ModelsPkcs12CertificateResponse) GetRequestDisposition() string { + if o == nil || isNil(o.RequestDisposition) { + var ret string + return ret + } + return *o.RequestDisposition +} + +// GetRequestDispositionOk returns a tuple with the RequestDisposition field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsPkcs12CertificateResponse) GetRequestDispositionOk() (*string, bool) { + if o == nil || isNil(o.RequestDisposition) { + return nil, false + } + return o.RequestDisposition, true +} + +// HasRequestDisposition returns a boolean if a field has been set. +func (o *ModelsPkcs12CertificateResponse) HasRequestDisposition() bool { + if o != nil && !isNil(o.RequestDisposition) { + return true + } + + return false +} + +// SetRequestDisposition gets a reference to the given string and assigns it to the RequestDisposition field. +func (o *ModelsPkcs12CertificateResponse) SetRequestDisposition(v string) { + o.RequestDisposition = &v +} + +// GetDispositionMessage returns the DispositionMessage field value if set, zero value otherwise. +func (o *ModelsPkcs12CertificateResponse) GetDispositionMessage() string { + if o == nil || isNil(o.DispositionMessage) { + var ret string + return ret + } + return *o.DispositionMessage +} + +// GetDispositionMessageOk returns a tuple with the DispositionMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsPkcs12CertificateResponse) GetDispositionMessageOk() (*string, bool) { + if o == nil || isNil(o.DispositionMessage) { + return nil, false + } + return o.DispositionMessage, true +} + +// HasDispositionMessage returns a boolean if a field has been set. +func (o *ModelsPkcs12CertificateResponse) HasDispositionMessage() bool { + if o != nil && !isNil(o.DispositionMessage) { + return true + } + + return false +} + +// SetDispositionMessage gets a reference to the given string and assigns it to the DispositionMessage field. +func (o *ModelsPkcs12CertificateResponse) SetDispositionMessage(v string) { + o.DispositionMessage = &v +} + +// GetEnrollmentContext returns the EnrollmentContext field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModelsPkcs12CertificateResponse) GetEnrollmentContext() map[string]string { + if o == nil { + var ret map[string]string + return ret + } + return o.EnrollmentContext +} + +// GetEnrollmentContextOk returns a tuple with the EnrollmentContext field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModelsPkcs12CertificateResponse) GetEnrollmentContextOk() (*map[string]string, bool) { + if o == nil || isNil(o.EnrollmentContext) { + return nil, false + } + return &o.EnrollmentContext, true +} + +// HasEnrollmentContext returns a boolean if a field has been set. +func (o *ModelsPkcs12CertificateResponse) HasEnrollmentContext() bool { + if o != nil && isNil(o.EnrollmentContext) { + return true + } + + return false +} + +// SetEnrollmentContext gets a reference to the given map[string]string and assigns it to the EnrollmentContext field. +func (o *ModelsPkcs12CertificateResponse) SetEnrollmentContext(v map[string]string) { + o.EnrollmentContext = v +} + +func (o ModelsPkcs12CertificateResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsPkcs12CertificateResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.SerialNumber) { + toSerialize["SerialNumber"] = o.SerialNumber + } + if o.IssuerDN.IsSet() { + toSerialize["IssuerDN"] = o.IssuerDN.Get() + } + if !isNil(o.Thumbprint) { + toSerialize["Thumbprint"] = o.Thumbprint + } + if !isNil(o.KeyfactorId) { + toSerialize["KeyfactorId"] = o.KeyfactorId + } + if !isNil(o.Pkcs12Blob) { + toSerialize["Pkcs12Blob"] = o.Pkcs12Blob + } + if !isNil(o.Password) { + toSerialize["Password"] = o.Password + } + if !isNil(o.KeyfactorRequestId) { + toSerialize["KeyfactorRequestId"] = o.KeyfactorRequestId + } + if !isNil(o.RequestDisposition) { + toSerialize["RequestDisposition"] = o.RequestDisposition + } + if !isNil(o.DispositionMessage) { + toSerialize["DispositionMessage"] = o.DispositionMessage + } + if o.EnrollmentContext != nil { + toSerialize["EnrollmentContext"] = o.EnrollmentContext + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsPkcs12CertificateResponse) UnmarshalJSON(bytes []byte) (err error) { + varModelsPkcs12CertificateResponse := _ModelsPkcs12CertificateResponse{} + + if err = json.Unmarshal(bytes, &varModelsPkcs12CertificateResponse); err == nil { + *o = ModelsPkcs12CertificateResponse(varModelsPkcs12CertificateResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "SerialNumber") + delete(additionalProperties, "IssuerDN") + delete(additionalProperties, "Thumbprint") + delete(additionalProperties, "KeyfactorId") + delete(additionalProperties, "Pkcs12Blob") + delete(additionalProperties, "Password") + delete(additionalProperties, "KeyfactorRequestId") + delete(additionalProperties, "RequestDisposition") + delete(additionalProperties, "DispositionMessage") + delete(additionalProperties, "EnrollmentContext") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsPkcs12CertificateResponse struct { + value *ModelsPkcs12CertificateResponse + isSet bool +} + +func (v NullableModelsPkcs12CertificateResponse) Get() *ModelsPkcs12CertificateResponse { + return v.value +} + +func (v *NullableModelsPkcs12CertificateResponse) Set(val *ModelsPkcs12CertificateResponse) { + v.value = val + v.isSet = true +} + +func (v NullableModelsPkcs12CertificateResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsPkcs12CertificateResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsPkcs12CertificateResponse(val *ModelsPkcs12CertificateResponse) *NullableModelsPkcs12CertificateResponse { + return &NullableModelsPkcs12CertificateResponse{value: val, isSet: true} +} + +func (v NullableModelsPkcs12CertificateResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsPkcs12CertificateResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_pki_certificate_operation.go b/v1/api/keyfactor/model_models_pki_certificate_operation.go new file mode 100644 index 0000000..d99bf91 --- /dev/null +++ b/v1/api/keyfactor/model_models_pki_certificate_operation.go @@ -0,0 +1,344 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" + "time" +) + +// checks if the ModelsPKICertificateOperation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsPKICertificateOperation{} + +// ModelsPKICertificateOperation Details of an operation done on a certificate. +type ModelsPKICertificateOperation struct { + Id *int64 `json:"Id,omitempty"` + OperationStart *time.Time `json:"OperationStart,omitempty"` + OperationEnd *time.Time `json:"OperationEnd,omitempty"` + Username *string `json:"Username,omitempty"` + Comment *string `json:"Comment,omitempty"` + Action *string `json:"Action,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsPKICertificateOperation ModelsPKICertificateOperation + +// NewModelsPKICertificateOperation instantiates a new ModelsPKICertificateOperation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsPKICertificateOperation() *ModelsPKICertificateOperation { + this := ModelsPKICertificateOperation{} + return &this +} + +// NewModelsPKICertificateOperationWithDefaults instantiates a new ModelsPKICertificateOperation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsPKICertificateOperationWithDefaults() *ModelsPKICertificateOperation { + this := ModelsPKICertificateOperation{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ModelsPKICertificateOperation) GetId() int64 { + if o == nil || isNil(o.Id) { + var ret int64 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsPKICertificateOperation) GetIdOk() (*int64, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ModelsPKICertificateOperation) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int64 and assigns it to the Id field. +func (o *ModelsPKICertificateOperation) SetId(v int64) { + o.Id = &v +} + +// GetOperationStart returns the OperationStart field value if set, zero value otherwise. +func (o *ModelsPKICertificateOperation) GetOperationStart() time.Time { + if o == nil || isNil(o.OperationStart) { + var ret time.Time + return ret + } + return *o.OperationStart +} + +// GetOperationStartOk returns a tuple with the OperationStart field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsPKICertificateOperation) GetOperationStartOk() (*time.Time, bool) { + if o == nil || isNil(o.OperationStart) { + return nil, false + } + return o.OperationStart, true +} + +// HasOperationStart returns a boolean if a field has been set. +func (o *ModelsPKICertificateOperation) HasOperationStart() bool { + if o != nil && !isNil(o.OperationStart) { + return true + } + + return false +} + +// SetOperationStart gets a reference to the given time.Time and assigns it to the OperationStart field. +func (o *ModelsPKICertificateOperation) SetOperationStart(v time.Time) { + o.OperationStart = &v +} + +// GetOperationEnd returns the OperationEnd field value if set, zero value otherwise. +func (o *ModelsPKICertificateOperation) GetOperationEnd() time.Time { + if o == nil || isNil(o.OperationEnd) { + var ret time.Time + return ret + } + return *o.OperationEnd +} + +// GetOperationEndOk returns a tuple with the OperationEnd field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsPKICertificateOperation) GetOperationEndOk() (*time.Time, bool) { + if o == nil || isNil(o.OperationEnd) { + return nil, false + } + return o.OperationEnd, true +} + +// HasOperationEnd returns a boolean if a field has been set. +func (o *ModelsPKICertificateOperation) HasOperationEnd() bool { + if o != nil && !isNil(o.OperationEnd) { + return true + } + + return false +} + +// SetOperationEnd gets a reference to the given time.Time and assigns it to the OperationEnd field. +func (o *ModelsPKICertificateOperation) SetOperationEnd(v time.Time) { + o.OperationEnd = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *ModelsPKICertificateOperation) GetUsername() string { + if o == nil || isNil(o.Username) { + var ret string + return ret + } + return *o.Username +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsPKICertificateOperation) GetUsernameOk() (*string, bool) { + if o == nil || isNil(o.Username) { + return nil, false + } + return o.Username, true +} + +// HasUsername returns a boolean if a field has been set. +func (o *ModelsPKICertificateOperation) HasUsername() bool { + if o != nil && !isNil(o.Username) { + return true + } + + return false +} + +// SetUsername gets a reference to the given string and assigns it to the Username field. +func (o *ModelsPKICertificateOperation) SetUsername(v string) { + o.Username = &v +} + +// GetComment returns the Comment field value if set, zero value otherwise. +func (o *ModelsPKICertificateOperation) GetComment() string { + if o == nil || isNil(o.Comment) { + var ret string + return ret + } + return *o.Comment +} + +// GetCommentOk returns a tuple with the Comment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsPKICertificateOperation) GetCommentOk() (*string, bool) { + if o == nil || isNil(o.Comment) { + return nil, false + } + return o.Comment, true +} + +// HasComment returns a boolean if a field has been set. +func (o *ModelsPKICertificateOperation) HasComment() bool { + if o != nil && !isNil(o.Comment) { + return true + } + + return false +} + +// SetComment gets a reference to the given string and assigns it to the Comment field. +func (o *ModelsPKICertificateOperation) SetComment(v string) { + o.Comment = &v +} + +// GetAction returns the Action field value if set, zero value otherwise. +func (o *ModelsPKICertificateOperation) GetAction() string { + if o == nil || isNil(o.Action) { + var ret string + return ret + } + return *o.Action +} + +// GetActionOk returns a tuple with the Action field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsPKICertificateOperation) GetActionOk() (*string, bool) { + if o == nil || isNil(o.Action) { + return nil, false + } + return o.Action, true +} + +// HasAction returns a boolean if a field has been set. +func (o *ModelsPKICertificateOperation) HasAction() bool { + if o != nil && !isNil(o.Action) { + return true + } + + return false +} + +// SetAction gets a reference to the given string and assigns it to the Action field. +func (o *ModelsPKICertificateOperation) SetAction(v string) { + o.Action = &v +} + +func (o ModelsPKICertificateOperation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsPKICertificateOperation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.OperationStart) { + toSerialize["OperationStart"] = o.OperationStart + } + if !isNil(o.OperationEnd) { + toSerialize["OperationEnd"] = o.OperationEnd + } + if !isNil(o.Username) { + toSerialize["Username"] = o.Username + } + if !isNil(o.Comment) { + toSerialize["Comment"] = o.Comment + } + if !isNil(o.Action) { + toSerialize["Action"] = o.Action + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsPKICertificateOperation) UnmarshalJSON(bytes []byte) (err error) { + varModelsPKICertificateOperation := _ModelsPKICertificateOperation{} + + if err = json.Unmarshal(bytes, &varModelsPKICertificateOperation); err == nil { + *o = ModelsPKICertificateOperation(varModelsPKICertificateOperation) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "OperationStart") + delete(additionalProperties, "OperationEnd") + delete(additionalProperties, "Username") + delete(additionalProperties, "Comment") + delete(additionalProperties, "Action") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsPKICertificateOperation struct { + value *ModelsPKICertificateOperation + isSet bool +} + +func (v NullableModelsPKICertificateOperation) Get() *ModelsPKICertificateOperation { + return v.value +} + +func (v *NullableModelsPKICertificateOperation) Set(val *ModelsPKICertificateOperation) { + v.value = val + v.isSet = true +} + +func (v NullableModelsPKICertificateOperation) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsPKICertificateOperation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsPKICertificateOperation(val *ModelsPKICertificateOperation) *NullableModelsPKICertificateOperation { + return &NullableModelsPKICertificateOperation{value: val, isSet: true} +} + +func (v NullableModelsPKICertificateOperation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsPKICertificateOperation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_query_models_paged_agent_blueprint_jobs_query.go b/v1/api/keyfactor/model_models_query_models_paged_agent_blueprint_jobs_query.go new file mode 100644 index 0000000..5e2a566 --- /dev/null +++ b/v1/api/keyfactor/model_models_query_models_paged_agent_blueprint_jobs_query.go @@ -0,0 +1,309 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsQueryModelsPagedAgentBlueprintJobsQuery type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsQueryModelsPagedAgentBlueprintJobsQuery{} + +// ModelsQueryModelsPagedAgentBlueprintJobsQuery struct for ModelsQueryModelsPagedAgentBlueprintJobsQuery +type ModelsQueryModelsPagedAgentBlueprintJobsQuery struct { + // The current page within the result set to be returned + PageReturned *int32 `json:"PageReturned,omitempty"` + // Number of records to be skipped before inclusion in the result set + SkipCount *int32 `json:"SkipCount,omitempty"` + // Maximum number of records to be returned in a single call + ReturnLimit *int32 `json:"ReturnLimit,omitempty"` + // Field by which the results should be sorted (OperationStart, OperationEnd, UserName) + SortField *string `json:"SortField,omitempty"` + // Field sort direction [0=ascending, 1=descending] + SortAscending *int32 `json:"SortAscending,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsQueryModelsPagedAgentBlueprintJobsQuery ModelsQueryModelsPagedAgentBlueprintJobsQuery + +// NewModelsQueryModelsPagedAgentBlueprintJobsQuery instantiates a new ModelsQueryModelsPagedAgentBlueprintJobsQuery object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsQueryModelsPagedAgentBlueprintJobsQuery() *ModelsQueryModelsPagedAgentBlueprintJobsQuery { + this := ModelsQueryModelsPagedAgentBlueprintJobsQuery{} + return &this +} + +// NewModelsQueryModelsPagedAgentBlueprintJobsQueryWithDefaults instantiates a new ModelsQueryModelsPagedAgentBlueprintJobsQuery object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsQueryModelsPagedAgentBlueprintJobsQueryWithDefaults() *ModelsQueryModelsPagedAgentBlueprintJobsQuery { + this := ModelsQueryModelsPagedAgentBlueprintJobsQuery{} + return &this +} + +// GetPageReturned returns the PageReturned field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedAgentBlueprintJobsQuery) GetPageReturned() int32 { + if o == nil || isNil(o.PageReturned) { + var ret int32 + return ret + } + return *o.PageReturned +} + +// GetPageReturnedOk returns a tuple with the PageReturned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedAgentBlueprintJobsQuery) GetPageReturnedOk() (*int32, bool) { + if o == nil || isNil(o.PageReturned) { + return nil, false + } + return o.PageReturned, true +} + +// HasPageReturned returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedAgentBlueprintJobsQuery) HasPageReturned() bool { + if o != nil && !isNil(o.PageReturned) { + return true + } + + return false +} + +// SetPageReturned gets a reference to the given int32 and assigns it to the PageReturned field. +func (o *ModelsQueryModelsPagedAgentBlueprintJobsQuery) SetPageReturned(v int32) { + o.PageReturned = &v +} + +// GetSkipCount returns the SkipCount field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedAgentBlueprintJobsQuery) GetSkipCount() int32 { + if o == nil || isNil(o.SkipCount) { + var ret int32 + return ret + } + return *o.SkipCount +} + +// GetSkipCountOk returns a tuple with the SkipCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedAgentBlueprintJobsQuery) GetSkipCountOk() (*int32, bool) { + if o == nil || isNil(o.SkipCount) { + return nil, false + } + return o.SkipCount, true +} + +// HasSkipCount returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedAgentBlueprintJobsQuery) HasSkipCount() bool { + if o != nil && !isNil(o.SkipCount) { + return true + } + + return false +} + +// SetSkipCount gets a reference to the given int32 and assigns it to the SkipCount field. +func (o *ModelsQueryModelsPagedAgentBlueprintJobsQuery) SetSkipCount(v int32) { + o.SkipCount = &v +} + +// GetReturnLimit returns the ReturnLimit field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedAgentBlueprintJobsQuery) GetReturnLimit() int32 { + if o == nil || isNil(o.ReturnLimit) { + var ret int32 + return ret + } + return *o.ReturnLimit +} + +// GetReturnLimitOk returns a tuple with the ReturnLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedAgentBlueprintJobsQuery) GetReturnLimitOk() (*int32, bool) { + if o == nil || isNil(o.ReturnLimit) { + return nil, false + } + return o.ReturnLimit, true +} + +// HasReturnLimit returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedAgentBlueprintJobsQuery) HasReturnLimit() bool { + if o != nil && !isNil(o.ReturnLimit) { + return true + } + + return false +} + +// SetReturnLimit gets a reference to the given int32 and assigns it to the ReturnLimit field. +func (o *ModelsQueryModelsPagedAgentBlueprintJobsQuery) SetReturnLimit(v int32) { + o.ReturnLimit = &v +} + +// GetSortField returns the SortField field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedAgentBlueprintJobsQuery) GetSortField() string { + if o == nil || isNil(o.SortField) { + var ret string + return ret + } + return *o.SortField +} + +// GetSortFieldOk returns a tuple with the SortField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedAgentBlueprintJobsQuery) GetSortFieldOk() (*string, bool) { + if o == nil || isNil(o.SortField) { + return nil, false + } + return o.SortField, true +} + +// HasSortField returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedAgentBlueprintJobsQuery) HasSortField() bool { + if o != nil && !isNil(o.SortField) { + return true + } + + return false +} + +// SetSortField gets a reference to the given string and assigns it to the SortField field. +func (o *ModelsQueryModelsPagedAgentBlueprintJobsQuery) SetSortField(v string) { + o.SortField = &v +} + +// GetSortAscending returns the SortAscending field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedAgentBlueprintJobsQuery) GetSortAscending() int32 { + if o == nil || isNil(o.SortAscending) { + var ret int32 + return ret + } + return *o.SortAscending +} + +// GetSortAscendingOk returns a tuple with the SortAscending field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedAgentBlueprintJobsQuery) GetSortAscendingOk() (*int32, bool) { + if o == nil || isNil(o.SortAscending) { + return nil, false + } + return o.SortAscending, true +} + +// HasSortAscending returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedAgentBlueprintJobsQuery) HasSortAscending() bool { + if o != nil && !isNil(o.SortAscending) { + return true + } + + return false +} + +// SetSortAscending gets a reference to the given int32 and assigns it to the SortAscending field. +func (o *ModelsQueryModelsPagedAgentBlueprintJobsQuery) SetSortAscending(v int32) { + o.SortAscending = &v +} + +func (o ModelsQueryModelsPagedAgentBlueprintJobsQuery) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsQueryModelsPagedAgentBlueprintJobsQuery) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.PageReturned) { + toSerialize["PageReturned"] = o.PageReturned + } + // skip: SkipCount is readOnly + if !isNil(o.ReturnLimit) { + toSerialize["ReturnLimit"] = o.ReturnLimit + } + if !isNil(o.SortField) { + toSerialize["SortField"] = o.SortField + } + if !isNil(o.SortAscending) { + toSerialize["SortAscending"] = o.SortAscending + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsQueryModelsPagedAgentBlueprintJobsQuery) UnmarshalJSON(bytes []byte) (err error) { + varModelsQueryModelsPagedAgentBlueprintJobsQuery := _ModelsQueryModelsPagedAgentBlueprintJobsQuery{} + + if err = json.Unmarshal(bytes, &varModelsQueryModelsPagedAgentBlueprintJobsQuery); err == nil { + *o = ModelsQueryModelsPagedAgentBlueprintJobsQuery(varModelsQueryModelsPagedAgentBlueprintJobsQuery) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "PageReturned") + delete(additionalProperties, "SkipCount") + delete(additionalProperties, "ReturnLimit") + delete(additionalProperties, "SortField") + delete(additionalProperties, "SortAscending") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsQueryModelsPagedAgentBlueprintJobsQuery struct { + value *ModelsQueryModelsPagedAgentBlueprintJobsQuery + isSet bool +} + +func (v NullableModelsQueryModelsPagedAgentBlueprintJobsQuery) Get() *ModelsQueryModelsPagedAgentBlueprintJobsQuery { + return v.value +} + +func (v *NullableModelsQueryModelsPagedAgentBlueprintJobsQuery) Set(val *ModelsQueryModelsPagedAgentBlueprintJobsQuery) { + v.value = val + v.isSet = true +} + +func (v NullableModelsQueryModelsPagedAgentBlueprintJobsQuery) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsQueryModelsPagedAgentBlueprintJobsQuery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsQueryModelsPagedAgentBlueprintJobsQuery(val *ModelsQueryModelsPagedAgentBlueprintJobsQuery) *NullableModelsQueryModelsPagedAgentBlueprintJobsQuery { + return &NullableModelsQueryModelsPagedAgentBlueprintJobsQuery{value: val, isSet: true} +} + +func (v NullableModelsQueryModelsPagedAgentBlueprintJobsQuery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsQueryModelsPagedAgentBlueprintJobsQuery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_query_models_paged_agent_blueprint_query.go b/v1/api/keyfactor/model_models_query_models_paged_agent_blueprint_query.go new file mode 100644 index 0000000..03cbbd0 --- /dev/null +++ b/v1/api/keyfactor/model_models_query_models_paged_agent_blueprint_query.go @@ -0,0 +1,309 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsQueryModelsPagedAgentBlueprintQuery type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsQueryModelsPagedAgentBlueprintQuery{} + +// ModelsQueryModelsPagedAgentBlueprintQuery struct for ModelsQueryModelsPagedAgentBlueprintQuery +type ModelsQueryModelsPagedAgentBlueprintQuery struct { + // The current page within the result set to be returned + PageReturned *int32 `json:"PageReturned,omitempty"` + // Number of records to be skipped before inclusion in the result set + SkipCount *int32 `json:"SkipCount,omitempty"` + // Maximum number of records to be returned in a single call + ReturnLimit *int32 `json:"ReturnLimit,omitempty"` + // Field by which the results should be sorted (OperationStart, OperationEnd, UserName) + SortField *string `json:"SortField,omitempty"` + // Field sort direction [0=ascending, 1=descending] + SortAscending *int32 `json:"SortAscending,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsQueryModelsPagedAgentBlueprintQuery ModelsQueryModelsPagedAgentBlueprintQuery + +// NewModelsQueryModelsPagedAgentBlueprintQuery instantiates a new ModelsQueryModelsPagedAgentBlueprintQuery object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsQueryModelsPagedAgentBlueprintQuery() *ModelsQueryModelsPagedAgentBlueprintQuery { + this := ModelsQueryModelsPagedAgentBlueprintQuery{} + return &this +} + +// NewModelsQueryModelsPagedAgentBlueprintQueryWithDefaults instantiates a new ModelsQueryModelsPagedAgentBlueprintQuery object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsQueryModelsPagedAgentBlueprintQueryWithDefaults() *ModelsQueryModelsPagedAgentBlueprintQuery { + this := ModelsQueryModelsPagedAgentBlueprintQuery{} + return &this +} + +// GetPageReturned returns the PageReturned field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedAgentBlueprintQuery) GetPageReturned() int32 { + if o == nil || isNil(o.PageReturned) { + var ret int32 + return ret + } + return *o.PageReturned +} + +// GetPageReturnedOk returns a tuple with the PageReturned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedAgentBlueprintQuery) GetPageReturnedOk() (*int32, bool) { + if o == nil || isNil(o.PageReturned) { + return nil, false + } + return o.PageReturned, true +} + +// HasPageReturned returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedAgentBlueprintQuery) HasPageReturned() bool { + if o != nil && !isNil(o.PageReturned) { + return true + } + + return false +} + +// SetPageReturned gets a reference to the given int32 and assigns it to the PageReturned field. +func (o *ModelsQueryModelsPagedAgentBlueprintQuery) SetPageReturned(v int32) { + o.PageReturned = &v +} + +// GetSkipCount returns the SkipCount field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedAgentBlueprintQuery) GetSkipCount() int32 { + if o == nil || isNil(o.SkipCount) { + var ret int32 + return ret + } + return *o.SkipCount +} + +// GetSkipCountOk returns a tuple with the SkipCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedAgentBlueprintQuery) GetSkipCountOk() (*int32, bool) { + if o == nil || isNil(o.SkipCount) { + return nil, false + } + return o.SkipCount, true +} + +// HasSkipCount returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedAgentBlueprintQuery) HasSkipCount() bool { + if o != nil && !isNil(o.SkipCount) { + return true + } + + return false +} + +// SetSkipCount gets a reference to the given int32 and assigns it to the SkipCount field. +func (o *ModelsQueryModelsPagedAgentBlueprintQuery) SetSkipCount(v int32) { + o.SkipCount = &v +} + +// GetReturnLimit returns the ReturnLimit field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedAgentBlueprintQuery) GetReturnLimit() int32 { + if o == nil || isNil(o.ReturnLimit) { + var ret int32 + return ret + } + return *o.ReturnLimit +} + +// GetReturnLimitOk returns a tuple with the ReturnLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedAgentBlueprintQuery) GetReturnLimitOk() (*int32, bool) { + if o == nil || isNil(o.ReturnLimit) { + return nil, false + } + return o.ReturnLimit, true +} + +// HasReturnLimit returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedAgentBlueprintQuery) HasReturnLimit() bool { + if o != nil && !isNil(o.ReturnLimit) { + return true + } + + return false +} + +// SetReturnLimit gets a reference to the given int32 and assigns it to the ReturnLimit field. +func (o *ModelsQueryModelsPagedAgentBlueprintQuery) SetReturnLimit(v int32) { + o.ReturnLimit = &v +} + +// GetSortField returns the SortField field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedAgentBlueprintQuery) GetSortField() string { + if o == nil || isNil(o.SortField) { + var ret string + return ret + } + return *o.SortField +} + +// GetSortFieldOk returns a tuple with the SortField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedAgentBlueprintQuery) GetSortFieldOk() (*string, bool) { + if o == nil || isNil(o.SortField) { + return nil, false + } + return o.SortField, true +} + +// HasSortField returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedAgentBlueprintQuery) HasSortField() bool { + if o != nil && !isNil(o.SortField) { + return true + } + + return false +} + +// SetSortField gets a reference to the given string and assigns it to the SortField field. +func (o *ModelsQueryModelsPagedAgentBlueprintQuery) SetSortField(v string) { + o.SortField = &v +} + +// GetSortAscending returns the SortAscending field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedAgentBlueprintQuery) GetSortAscending() int32 { + if o == nil || isNil(o.SortAscending) { + var ret int32 + return ret + } + return *o.SortAscending +} + +// GetSortAscendingOk returns a tuple with the SortAscending field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedAgentBlueprintQuery) GetSortAscendingOk() (*int32, bool) { + if o == nil || isNil(o.SortAscending) { + return nil, false + } + return o.SortAscending, true +} + +// HasSortAscending returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedAgentBlueprintQuery) HasSortAscending() bool { + if o != nil && !isNil(o.SortAscending) { + return true + } + + return false +} + +// SetSortAscending gets a reference to the given int32 and assigns it to the SortAscending field. +func (o *ModelsQueryModelsPagedAgentBlueprintQuery) SetSortAscending(v int32) { + o.SortAscending = &v +} + +func (o ModelsQueryModelsPagedAgentBlueprintQuery) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsQueryModelsPagedAgentBlueprintQuery) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.PageReturned) { + toSerialize["PageReturned"] = o.PageReturned + } + // skip: SkipCount is readOnly + if !isNil(o.ReturnLimit) { + toSerialize["ReturnLimit"] = o.ReturnLimit + } + if !isNil(o.SortField) { + toSerialize["SortField"] = o.SortField + } + if !isNil(o.SortAscending) { + toSerialize["SortAscending"] = o.SortAscending + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsQueryModelsPagedAgentBlueprintQuery) UnmarshalJSON(bytes []byte) (err error) { + varModelsQueryModelsPagedAgentBlueprintQuery := _ModelsQueryModelsPagedAgentBlueprintQuery{} + + if err = json.Unmarshal(bytes, &varModelsQueryModelsPagedAgentBlueprintQuery); err == nil { + *o = ModelsQueryModelsPagedAgentBlueprintQuery(varModelsQueryModelsPagedAgentBlueprintQuery) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "PageReturned") + delete(additionalProperties, "SkipCount") + delete(additionalProperties, "ReturnLimit") + delete(additionalProperties, "SortField") + delete(additionalProperties, "SortAscending") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsQueryModelsPagedAgentBlueprintQuery struct { + value *ModelsQueryModelsPagedAgentBlueprintQuery + isSet bool +} + +func (v NullableModelsQueryModelsPagedAgentBlueprintQuery) Get() *ModelsQueryModelsPagedAgentBlueprintQuery { + return v.value +} + +func (v *NullableModelsQueryModelsPagedAgentBlueprintQuery) Set(val *ModelsQueryModelsPagedAgentBlueprintQuery) { + v.value = val + v.isSet = true +} + +func (v NullableModelsQueryModelsPagedAgentBlueprintQuery) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsQueryModelsPagedAgentBlueprintQuery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsQueryModelsPagedAgentBlueprintQuery(val *ModelsQueryModelsPagedAgentBlueprintQuery) *NullableModelsQueryModelsPagedAgentBlueprintQuery { + return &NullableModelsQueryModelsPagedAgentBlueprintQuery{value: val, isSet: true} +} + +func (v NullableModelsQueryModelsPagedAgentBlueprintQuery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsQueryModelsPagedAgentBlueprintQuery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_query_models_paged_agent_blueprint_stores_query.go b/v1/api/keyfactor/model_models_query_models_paged_agent_blueprint_stores_query.go new file mode 100644 index 0000000..b4830b9 --- /dev/null +++ b/v1/api/keyfactor/model_models_query_models_paged_agent_blueprint_stores_query.go @@ -0,0 +1,309 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsQueryModelsPagedAgentBlueprintStoresQuery type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsQueryModelsPagedAgentBlueprintStoresQuery{} + +// ModelsQueryModelsPagedAgentBlueprintStoresQuery struct for ModelsQueryModelsPagedAgentBlueprintStoresQuery +type ModelsQueryModelsPagedAgentBlueprintStoresQuery struct { + // The current page within the result set to be returned + PageReturned *int32 `json:"PageReturned,omitempty"` + // Number of records to be skipped before inclusion in the result set + SkipCount *int32 `json:"SkipCount,omitempty"` + // Maximum number of records to be returned in a single call + ReturnLimit *int32 `json:"ReturnLimit,omitempty"` + // Field by which the results should be sorted (OperationStart, OperationEnd, UserName) + SortField *string `json:"SortField,omitempty"` + // Field sort direction [0=ascending, 1=descending] + SortAscending *int32 `json:"SortAscending,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsQueryModelsPagedAgentBlueprintStoresQuery ModelsQueryModelsPagedAgentBlueprintStoresQuery + +// NewModelsQueryModelsPagedAgentBlueprintStoresQuery instantiates a new ModelsQueryModelsPagedAgentBlueprintStoresQuery object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsQueryModelsPagedAgentBlueprintStoresQuery() *ModelsQueryModelsPagedAgentBlueprintStoresQuery { + this := ModelsQueryModelsPagedAgentBlueprintStoresQuery{} + return &this +} + +// NewModelsQueryModelsPagedAgentBlueprintStoresQueryWithDefaults instantiates a new ModelsQueryModelsPagedAgentBlueprintStoresQuery object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsQueryModelsPagedAgentBlueprintStoresQueryWithDefaults() *ModelsQueryModelsPagedAgentBlueprintStoresQuery { + this := ModelsQueryModelsPagedAgentBlueprintStoresQuery{} + return &this +} + +// GetPageReturned returns the PageReturned field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedAgentBlueprintStoresQuery) GetPageReturned() int32 { + if o == nil || isNil(o.PageReturned) { + var ret int32 + return ret + } + return *o.PageReturned +} + +// GetPageReturnedOk returns a tuple with the PageReturned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedAgentBlueprintStoresQuery) GetPageReturnedOk() (*int32, bool) { + if o == nil || isNil(o.PageReturned) { + return nil, false + } + return o.PageReturned, true +} + +// HasPageReturned returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedAgentBlueprintStoresQuery) HasPageReturned() bool { + if o != nil && !isNil(o.PageReturned) { + return true + } + + return false +} + +// SetPageReturned gets a reference to the given int32 and assigns it to the PageReturned field. +func (o *ModelsQueryModelsPagedAgentBlueprintStoresQuery) SetPageReturned(v int32) { + o.PageReturned = &v +} + +// GetSkipCount returns the SkipCount field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedAgentBlueprintStoresQuery) GetSkipCount() int32 { + if o == nil || isNil(o.SkipCount) { + var ret int32 + return ret + } + return *o.SkipCount +} + +// GetSkipCountOk returns a tuple with the SkipCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedAgentBlueprintStoresQuery) GetSkipCountOk() (*int32, bool) { + if o == nil || isNil(o.SkipCount) { + return nil, false + } + return o.SkipCount, true +} + +// HasSkipCount returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedAgentBlueprintStoresQuery) HasSkipCount() bool { + if o != nil && !isNil(o.SkipCount) { + return true + } + + return false +} + +// SetSkipCount gets a reference to the given int32 and assigns it to the SkipCount field. +func (o *ModelsQueryModelsPagedAgentBlueprintStoresQuery) SetSkipCount(v int32) { + o.SkipCount = &v +} + +// GetReturnLimit returns the ReturnLimit field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedAgentBlueprintStoresQuery) GetReturnLimit() int32 { + if o == nil || isNil(o.ReturnLimit) { + var ret int32 + return ret + } + return *o.ReturnLimit +} + +// GetReturnLimitOk returns a tuple with the ReturnLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedAgentBlueprintStoresQuery) GetReturnLimitOk() (*int32, bool) { + if o == nil || isNil(o.ReturnLimit) { + return nil, false + } + return o.ReturnLimit, true +} + +// HasReturnLimit returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedAgentBlueprintStoresQuery) HasReturnLimit() bool { + if o != nil && !isNil(o.ReturnLimit) { + return true + } + + return false +} + +// SetReturnLimit gets a reference to the given int32 and assigns it to the ReturnLimit field. +func (o *ModelsQueryModelsPagedAgentBlueprintStoresQuery) SetReturnLimit(v int32) { + o.ReturnLimit = &v +} + +// GetSortField returns the SortField field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedAgentBlueprintStoresQuery) GetSortField() string { + if o == nil || isNil(o.SortField) { + var ret string + return ret + } + return *o.SortField +} + +// GetSortFieldOk returns a tuple with the SortField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedAgentBlueprintStoresQuery) GetSortFieldOk() (*string, bool) { + if o == nil || isNil(o.SortField) { + return nil, false + } + return o.SortField, true +} + +// HasSortField returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedAgentBlueprintStoresQuery) HasSortField() bool { + if o != nil && !isNil(o.SortField) { + return true + } + + return false +} + +// SetSortField gets a reference to the given string and assigns it to the SortField field. +func (o *ModelsQueryModelsPagedAgentBlueprintStoresQuery) SetSortField(v string) { + o.SortField = &v +} + +// GetSortAscending returns the SortAscending field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedAgentBlueprintStoresQuery) GetSortAscending() int32 { + if o == nil || isNil(o.SortAscending) { + var ret int32 + return ret + } + return *o.SortAscending +} + +// GetSortAscendingOk returns a tuple with the SortAscending field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedAgentBlueprintStoresQuery) GetSortAscendingOk() (*int32, bool) { + if o == nil || isNil(o.SortAscending) { + return nil, false + } + return o.SortAscending, true +} + +// HasSortAscending returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedAgentBlueprintStoresQuery) HasSortAscending() bool { + if o != nil && !isNil(o.SortAscending) { + return true + } + + return false +} + +// SetSortAscending gets a reference to the given int32 and assigns it to the SortAscending field. +func (o *ModelsQueryModelsPagedAgentBlueprintStoresQuery) SetSortAscending(v int32) { + o.SortAscending = &v +} + +func (o ModelsQueryModelsPagedAgentBlueprintStoresQuery) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsQueryModelsPagedAgentBlueprintStoresQuery) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.PageReturned) { + toSerialize["PageReturned"] = o.PageReturned + } + // skip: SkipCount is readOnly + if !isNil(o.ReturnLimit) { + toSerialize["ReturnLimit"] = o.ReturnLimit + } + if !isNil(o.SortField) { + toSerialize["SortField"] = o.SortField + } + if !isNil(o.SortAscending) { + toSerialize["SortAscending"] = o.SortAscending + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsQueryModelsPagedAgentBlueprintStoresQuery) UnmarshalJSON(bytes []byte) (err error) { + varModelsQueryModelsPagedAgentBlueprintStoresQuery := _ModelsQueryModelsPagedAgentBlueprintStoresQuery{} + + if err = json.Unmarshal(bytes, &varModelsQueryModelsPagedAgentBlueprintStoresQuery); err == nil { + *o = ModelsQueryModelsPagedAgentBlueprintStoresQuery(varModelsQueryModelsPagedAgentBlueprintStoresQuery) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "PageReturned") + delete(additionalProperties, "SkipCount") + delete(additionalProperties, "ReturnLimit") + delete(additionalProperties, "SortField") + delete(additionalProperties, "SortAscending") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsQueryModelsPagedAgentBlueprintStoresQuery struct { + value *ModelsQueryModelsPagedAgentBlueprintStoresQuery + isSet bool +} + +func (v NullableModelsQueryModelsPagedAgentBlueprintStoresQuery) Get() *ModelsQueryModelsPagedAgentBlueprintStoresQuery { + return v.value +} + +func (v *NullableModelsQueryModelsPagedAgentBlueprintStoresQuery) Set(val *ModelsQueryModelsPagedAgentBlueprintStoresQuery) { + v.value = val + v.isSet = true +} + +func (v NullableModelsQueryModelsPagedAgentBlueprintStoresQuery) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsQueryModelsPagedAgentBlueprintStoresQuery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsQueryModelsPagedAgentBlueprintStoresQuery(val *ModelsQueryModelsPagedAgentBlueprintStoresQuery) *NullableModelsQueryModelsPagedAgentBlueprintStoresQuery { + return &NullableModelsQueryModelsPagedAgentBlueprintStoresQuery{value: val, isSet: true} +} + +func (v NullableModelsQueryModelsPagedAgentBlueprintStoresQuery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsQueryModelsPagedAgentBlueprintStoresQuery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_query_models_paged_agent_job_history_query.go b/v1/api/keyfactor/model_models_query_models_paged_agent_job_history_query.go new file mode 100644 index 0000000..b3f6467 --- /dev/null +++ b/v1/api/keyfactor/model_models_query_models_paged_agent_job_history_query.go @@ -0,0 +1,311 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsQueryModelsPagedAgentJobHistoryQuery type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsQueryModelsPagedAgentJobHistoryQuery{} + +// ModelsQueryModelsPagedAgentJobHistoryQuery struct for ModelsQueryModelsPagedAgentJobHistoryQuery +type ModelsQueryModelsPagedAgentJobHistoryQuery struct { + // Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) + QueryString *string `json:"QueryString,omitempty"` + // The current page within the result set to be returned + PageReturned *int32 `json:"PageReturned,omitempty"` + // Maximum number of records to be returned in a single call + ReturnLimit *int32 `json:"ReturnLimit,omitempty"` + // Field by which the results should be sorted (view results via Management Portal for sortable columns) + SortField *string `json:"SortField,omitempty"` + // Field sort direction [0=ascending, 1=descending] + SortAscending *int32 `json:"SortAscending,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsQueryModelsPagedAgentJobHistoryQuery ModelsQueryModelsPagedAgentJobHistoryQuery + +// NewModelsQueryModelsPagedAgentJobHistoryQuery instantiates a new ModelsQueryModelsPagedAgentJobHistoryQuery object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsQueryModelsPagedAgentJobHistoryQuery() *ModelsQueryModelsPagedAgentJobHistoryQuery { + this := ModelsQueryModelsPagedAgentJobHistoryQuery{} + return &this +} + +// NewModelsQueryModelsPagedAgentJobHistoryQueryWithDefaults instantiates a new ModelsQueryModelsPagedAgentJobHistoryQuery object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsQueryModelsPagedAgentJobHistoryQueryWithDefaults() *ModelsQueryModelsPagedAgentJobHistoryQuery { + this := ModelsQueryModelsPagedAgentJobHistoryQuery{} + return &this +} + +// GetQueryString returns the QueryString field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedAgentJobHistoryQuery) GetQueryString() string { + if o == nil || isNil(o.QueryString) { + var ret string + return ret + } + return *o.QueryString +} + +// GetQueryStringOk returns a tuple with the QueryString field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedAgentJobHistoryQuery) GetQueryStringOk() (*string, bool) { + if o == nil || isNil(o.QueryString) { + return nil, false + } + return o.QueryString, true +} + +// HasQueryString returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedAgentJobHistoryQuery) HasQueryString() bool { + if o != nil && !isNil(o.QueryString) { + return true + } + + return false +} + +// SetQueryString gets a reference to the given string and assigns it to the QueryString field. +func (o *ModelsQueryModelsPagedAgentJobHistoryQuery) SetQueryString(v string) { + o.QueryString = &v +} + +// GetPageReturned returns the PageReturned field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedAgentJobHistoryQuery) GetPageReturned() int32 { + if o == nil || isNil(o.PageReturned) { + var ret int32 + return ret + } + return *o.PageReturned +} + +// GetPageReturnedOk returns a tuple with the PageReturned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedAgentJobHistoryQuery) GetPageReturnedOk() (*int32, bool) { + if o == nil || isNil(o.PageReturned) { + return nil, false + } + return o.PageReturned, true +} + +// HasPageReturned returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedAgentJobHistoryQuery) HasPageReturned() bool { + if o != nil && !isNil(o.PageReturned) { + return true + } + + return false +} + +// SetPageReturned gets a reference to the given int32 and assigns it to the PageReturned field. +func (o *ModelsQueryModelsPagedAgentJobHistoryQuery) SetPageReturned(v int32) { + o.PageReturned = &v +} + +// GetReturnLimit returns the ReturnLimit field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedAgentJobHistoryQuery) GetReturnLimit() int32 { + if o == nil || isNil(o.ReturnLimit) { + var ret int32 + return ret + } + return *o.ReturnLimit +} + +// GetReturnLimitOk returns a tuple with the ReturnLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedAgentJobHistoryQuery) GetReturnLimitOk() (*int32, bool) { + if o == nil || isNil(o.ReturnLimit) { + return nil, false + } + return o.ReturnLimit, true +} + +// HasReturnLimit returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedAgentJobHistoryQuery) HasReturnLimit() bool { + if o != nil && !isNil(o.ReturnLimit) { + return true + } + + return false +} + +// SetReturnLimit gets a reference to the given int32 and assigns it to the ReturnLimit field. +func (o *ModelsQueryModelsPagedAgentJobHistoryQuery) SetReturnLimit(v int32) { + o.ReturnLimit = &v +} + +// GetSortField returns the SortField field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedAgentJobHistoryQuery) GetSortField() string { + if o == nil || isNil(o.SortField) { + var ret string + return ret + } + return *o.SortField +} + +// GetSortFieldOk returns a tuple with the SortField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedAgentJobHistoryQuery) GetSortFieldOk() (*string, bool) { + if o == nil || isNil(o.SortField) { + return nil, false + } + return o.SortField, true +} + +// HasSortField returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedAgentJobHistoryQuery) HasSortField() bool { + if o != nil && !isNil(o.SortField) { + return true + } + + return false +} + +// SetSortField gets a reference to the given string and assigns it to the SortField field. +func (o *ModelsQueryModelsPagedAgentJobHistoryQuery) SetSortField(v string) { + o.SortField = &v +} + +// GetSortAscending returns the SortAscending field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedAgentJobHistoryQuery) GetSortAscending() int32 { + if o == nil || isNil(o.SortAscending) { + var ret int32 + return ret + } + return *o.SortAscending +} + +// GetSortAscendingOk returns a tuple with the SortAscending field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedAgentJobHistoryQuery) GetSortAscendingOk() (*int32, bool) { + if o == nil || isNil(o.SortAscending) { + return nil, false + } + return o.SortAscending, true +} + +// HasSortAscending returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedAgentJobHistoryQuery) HasSortAscending() bool { + if o != nil && !isNil(o.SortAscending) { + return true + } + + return false +} + +// SetSortAscending gets a reference to the given int32 and assigns it to the SortAscending field. +func (o *ModelsQueryModelsPagedAgentJobHistoryQuery) SetSortAscending(v int32) { + o.SortAscending = &v +} + +func (o ModelsQueryModelsPagedAgentJobHistoryQuery) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsQueryModelsPagedAgentJobHistoryQuery) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.QueryString) { + toSerialize["QueryString"] = o.QueryString + } + if !isNil(o.PageReturned) { + toSerialize["PageReturned"] = o.PageReturned + } + if !isNil(o.ReturnLimit) { + toSerialize["ReturnLimit"] = o.ReturnLimit + } + if !isNil(o.SortField) { + toSerialize["SortField"] = o.SortField + } + if !isNil(o.SortAscending) { + toSerialize["SortAscending"] = o.SortAscending + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsQueryModelsPagedAgentJobHistoryQuery) UnmarshalJSON(bytes []byte) (err error) { + varModelsQueryModelsPagedAgentJobHistoryQuery := _ModelsQueryModelsPagedAgentJobHistoryQuery{} + + if err = json.Unmarshal(bytes, &varModelsQueryModelsPagedAgentJobHistoryQuery); err == nil { + *o = ModelsQueryModelsPagedAgentJobHistoryQuery(varModelsQueryModelsPagedAgentJobHistoryQuery) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "QueryString") + delete(additionalProperties, "PageReturned") + delete(additionalProperties, "ReturnLimit") + delete(additionalProperties, "SortField") + delete(additionalProperties, "SortAscending") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsQueryModelsPagedAgentJobHistoryQuery struct { + value *ModelsQueryModelsPagedAgentJobHistoryQuery + isSet bool +} + +func (v NullableModelsQueryModelsPagedAgentJobHistoryQuery) Get() *ModelsQueryModelsPagedAgentJobHistoryQuery { + return v.value +} + +func (v *NullableModelsQueryModelsPagedAgentJobHistoryQuery) Set(val *ModelsQueryModelsPagedAgentJobHistoryQuery) { + v.value = val + v.isSet = true +} + +func (v NullableModelsQueryModelsPagedAgentJobHistoryQuery) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsQueryModelsPagedAgentJobHistoryQuery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsQueryModelsPagedAgentJobHistoryQuery(val *ModelsQueryModelsPagedAgentJobHistoryQuery) *NullableModelsQueryModelsPagedAgentJobHistoryQuery { + return &NullableModelsQueryModelsPagedAgentJobHistoryQuery{value: val, isSet: true} +} + +func (v NullableModelsQueryModelsPagedAgentJobHistoryQuery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsQueryModelsPagedAgentJobHistoryQuery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_query_models_paged_agent_job_query.go b/v1/api/keyfactor/model_models_query_models_paged_agent_job_query.go new file mode 100644 index 0000000..bf3d09e --- /dev/null +++ b/v1/api/keyfactor/model_models_query_models_paged_agent_job_query.go @@ -0,0 +1,311 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsQueryModelsPagedAgentJobQuery type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsQueryModelsPagedAgentJobQuery{} + +// ModelsQueryModelsPagedAgentJobQuery struct for ModelsQueryModelsPagedAgentJobQuery +type ModelsQueryModelsPagedAgentJobQuery struct { + // Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) + QueryString *string `json:"QueryString,omitempty"` + // The current page within the result set to be returned + PageReturned *int32 `json:"PageReturned,omitempty"` + // Maximum number of records to be returned in a single call + ReturnLimit *int32 `json:"ReturnLimit,omitempty"` + // Field by which the results should be sorted (view results via Management Portal for sortable columns) + SortField *string `json:"SortField,omitempty"` + // Field sort direction [0=ascending, 1=descending] + SortAscending *int32 `json:"SortAscending,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsQueryModelsPagedAgentJobQuery ModelsQueryModelsPagedAgentJobQuery + +// NewModelsQueryModelsPagedAgentJobQuery instantiates a new ModelsQueryModelsPagedAgentJobQuery object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsQueryModelsPagedAgentJobQuery() *ModelsQueryModelsPagedAgentJobQuery { + this := ModelsQueryModelsPagedAgentJobQuery{} + return &this +} + +// NewModelsQueryModelsPagedAgentJobQueryWithDefaults instantiates a new ModelsQueryModelsPagedAgentJobQuery object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsQueryModelsPagedAgentJobQueryWithDefaults() *ModelsQueryModelsPagedAgentJobQuery { + this := ModelsQueryModelsPagedAgentJobQuery{} + return &this +} + +// GetQueryString returns the QueryString field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedAgentJobQuery) GetQueryString() string { + if o == nil || isNil(o.QueryString) { + var ret string + return ret + } + return *o.QueryString +} + +// GetQueryStringOk returns a tuple with the QueryString field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedAgentJobQuery) GetQueryStringOk() (*string, bool) { + if o == nil || isNil(o.QueryString) { + return nil, false + } + return o.QueryString, true +} + +// HasQueryString returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedAgentJobQuery) HasQueryString() bool { + if o != nil && !isNil(o.QueryString) { + return true + } + + return false +} + +// SetQueryString gets a reference to the given string and assigns it to the QueryString field. +func (o *ModelsQueryModelsPagedAgentJobQuery) SetQueryString(v string) { + o.QueryString = &v +} + +// GetPageReturned returns the PageReturned field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedAgentJobQuery) GetPageReturned() int32 { + if o == nil || isNil(o.PageReturned) { + var ret int32 + return ret + } + return *o.PageReturned +} + +// GetPageReturnedOk returns a tuple with the PageReturned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedAgentJobQuery) GetPageReturnedOk() (*int32, bool) { + if o == nil || isNil(o.PageReturned) { + return nil, false + } + return o.PageReturned, true +} + +// HasPageReturned returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedAgentJobQuery) HasPageReturned() bool { + if o != nil && !isNil(o.PageReturned) { + return true + } + + return false +} + +// SetPageReturned gets a reference to the given int32 and assigns it to the PageReturned field. +func (o *ModelsQueryModelsPagedAgentJobQuery) SetPageReturned(v int32) { + o.PageReturned = &v +} + +// GetReturnLimit returns the ReturnLimit field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedAgentJobQuery) GetReturnLimit() int32 { + if o == nil || isNil(o.ReturnLimit) { + var ret int32 + return ret + } + return *o.ReturnLimit +} + +// GetReturnLimitOk returns a tuple with the ReturnLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedAgentJobQuery) GetReturnLimitOk() (*int32, bool) { + if o == nil || isNil(o.ReturnLimit) { + return nil, false + } + return o.ReturnLimit, true +} + +// HasReturnLimit returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedAgentJobQuery) HasReturnLimit() bool { + if o != nil && !isNil(o.ReturnLimit) { + return true + } + + return false +} + +// SetReturnLimit gets a reference to the given int32 and assigns it to the ReturnLimit field. +func (o *ModelsQueryModelsPagedAgentJobQuery) SetReturnLimit(v int32) { + o.ReturnLimit = &v +} + +// GetSortField returns the SortField field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedAgentJobQuery) GetSortField() string { + if o == nil || isNil(o.SortField) { + var ret string + return ret + } + return *o.SortField +} + +// GetSortFieldOk returns a tuple with the SortField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedAgentJobQuery) GetSortFieldOk() (*string, bool) { + if o == nil || isNil(o.SortField) { + return nil, false + } + return o.SortField, true +} + +// HasSortField returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedAgentJobQuery) HasSortField() bool { + if o != nil && !isNil(o.SortField) { + return true + } + + return false +} + +// SetSortField gets a reference to the given string and assigns it to the SortField field. +func (o *ModelsQueryModelsPagedAgentJobQuery) SetSortField(v string) { + o.SortField = &v +} + +// GetSortAscending returns the SortAscending field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedAgentJobQuery) GetSortAscending() int32 { + if o == nil || isNil(o.SortAscending) { + var ret int32 + return ret + } + return *o.SortAscending +} + +// GetSortAscendingOk returns a tuple with the SortAscending field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedAgentJobQuery) GetSortAscendingOk() (*int32, bool) { + if o == nil || isNil(o.SortAscending) { + return nil, false + } + return o.SortAscending, true +} + +// HasSortAscending returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedAgentJobQuery) HasSortAscending() bool { + if o != nil && !isNil(o.SortAscending) { + return true + } + + return false +} + +// SetSortAscending gets a reference to the given int32 and assigns it to the SortAscending field. +func (o *ModelsQueryModelsPagedAgentJobQuery) SetSortAscending(v int32) { + o.SortAscending = &v +} + +func (o ModelsQueryModelsPagedAgentJobQuery) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsQueryModelsPagedAgentJobQuery) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.QueryString) { + toSerialize["QueryString"] = o.QueryString + } + if !isNil(o.PageReturned) { + toSerialize["PageReturned"] = o.PageReturned + } + if !isNil(o.ReturnLimit) { + toSerialize["ReturnLimit"] = o.ReturnLimit + } + if !isNil(o.SortField) { + toSerialize["SortField"] = o.SortField + } + if !isNil(o.SortAscending) { + toSerialize["SortAscending"] = o.SortAscending + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsQueryModelsPagedAgentJobQuery) UnmarshalJSON(bytes []byte) (err error) { + varModelsQueryModelsPagedAgentJobQuery := _ModelsQueryModelsPagedAgentJobQuery{} + + if err = json.Unmarshal(bytes, &varModelsQueryModelsPagedAgentJobQuery); err == nil { + *o = ModelsQueryModelsPagedAgentJobQuery(varModelsQueryModelsPagedAgentJobQuery) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "QueryString") + delete(additionalProperties, "PageReturned") + delete(additionalProperties, "ReturnLimit") + delete(additionalProperties, "SortField") + delete(additionalProperties, "SortAscending") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsQueryModelsPagedAgentJobQuery struct { + value *ModelsQueryModelsPagedAgentJobQuery + isSet bool +} + +func (v NullableModelsQueryModelsPagedAgentJobQuery) Get() *ModelsQueryModelsPagedAgentJobQuery { + return v.value +} + +func (v *NullableModelsQueryModelsPagedAgentJobQuery) Set(val *ModelsQueryModelsPagedAgentJobQuery) { + v.value = val + v.isSet = true +} + +func (v NullableModelsQueryModelsPagedAgentJobQuery) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsQueryModelsPagedAgentJobQuery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsQueryModelsPagedAgentJobQuery(val *ModelsQueryModelsPagedAgentJobQuery) *NullableModelsQueryModelsPagedAgentJobQuery { + return &NullableModelsQueryModelsPagedAgentJobQuery{value: val, isSet: true} +} + +func (v NullableModelsQueryModelsPagedAgentJobQuery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsQueryModelsPagedAgentJobQuery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_query_models_paged_agent_pool_agents_query.go b/v1/api/keyfactor/model_models_query_models_paged_agent_pool_agents_query.go new file mode 100644 index 0000000..70048cf --- /dev/null +++ b/v1/api/keyfactor/model_models_query_models_paged_agent_pool_agents_query.go @@ -0,0 +1,311 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsQueryModelsPagedAgentPoolAgentsQuery type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsQueryModelsPagedAgentPoolAgentsQuery{} + +// ModelsQueryModelsPagedAgentPoolAgentsQuery struct for ModelsQueryModelsPagedAgentPoolAgentsQuery +type ModelsQueryModelsPagedAgentPoolAgentsQuery struct { + // Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) + QueryString *string `json:"QueryString,omitempty"` + // The current page within the result set to be returned + PageReturned *int32 `json:"PageReturned,omitempty"` + // Maximum number of records to be returned in a single call + ReturnLimit *int32 `json:"ReturnLimit,omitempty"` + // Field by which the results should be sorted (view results via Management Portal for sortable columns) + SortField *string `json:"SortField,omitempty"` + // Field sort direction [0=ascending, 1=descending] + SortAscending *int32 `json:"SortAscending,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsQueryModelsPagedAgentPoolAgentsQuery ModelsQueryModelsPagedAgentPoolAgentsQuery + +// NewModelsQueryModelsPagedAgentPoolAgentsQuery instantiates a new ModelsQueryModelsPagedAgentPoolAgentsQuery object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsQueryModelsPagedAgentPoolAgentsQuery() *ModelsQueryModelsPagedAgentPoolAgentsQuery { + this := ModelsQueryModelsPagedAgentPoolAgentsQuery{} + return &this +} + +// NewModelsQueryModelsPagedAgentPoolAgentsQueryWithDefaults instantiates a new ModelsQueryModelsPagedAgentPoolAgentsQuery object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsQueryModelsPagedAgentPoolAgentsQueryWithDefaults() *ModelsQueryModelsPagedAgentPoolAgentsQuery { + this := ModelsQueryModelsPagedAgentPoolAgentsQuery{} + return &this +} + +// GetQueryString returns the QueryString field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedAgentPoolAgentsQuery) GetQueryString() string { + if o == nil || isNil(o.QueryString) { + var ret string + return ret + } + return *o.QueryString +} + +// GetQueryStringOk returns a tuple with the QueryString field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedAgentPoolAgentsQuery) GetQueryStringOk() (*string, bool) { + if o == nil || isNil(o.QueryString) { + return nil, false + } + return o.QueryString, true +} + +// HasQueryString returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedAgentPoolAgentsQuery) HasQueryString() bool { + if o != nil && !isNil(o.QueryString) { + return true + } + + return false +} + +// SetQueryString gets a reference to the given string and assigns it to the QueryString field. +func (o *ModelsQueryModelsPagedAgentPoolAgentsQuery) SetQueryString(v string) { + o.QueryString = &v +} + +// GetPageReturned returns the PageReturned field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedAgentPoolAgentsQuery) GetPageReturned() int32 { + if o == nil || isNil(o.PageReturned) { + var ret int32 + return ret + } + return *o.PageReturned +} + +// GetPageReturnedOk returns a tuple with the PageReturned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedAgentPoolAgentsQuery) GetPageReturnedOk() (*int32, bool) { + if o == nil || isNil(o.PageReturned) { + return nil, false + } + return o.PageReturned, true +} + +// HasPageReturned returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedAgentPoolAgentsQuery) HasPageReturned() bool { + if o != nil && !isNil(o.PageReturned) { + return true + } + + return false +} + +// SetPageReturned gets a reference to the given int32 and assigns it to the PageReturned field. +func (o *ModelsQueryModelsPagedAgentPoolAgentsQuery) SetPageReturned(v int32) { + o.PageReturned = &v +} + +// GetReturnLimit returns the ReturnLimit field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedAgentPoolAgentsQuery) GetReturnLimit() int32 { + if o == nil || isNil(o.ReturnLimit) { + var ret int32 + return ret + } + return *o.ReturnLimit +} + +// GetReturnLimitOk returns a tuple with the ReturnLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedAgentPoolAgentsQuery) GetReturnLimitOk() (*int32, bool) { + if o == nil || isNil(o.ReturnLimit) { + return nil, false + } + return o.ReturnLimit, true +} + +// HasReturnLimit returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedAgentPoolAgentsQuery) HasReturnLimit() bool { + if o != nil && !isNil(o.ReturnLimit) { + return true + } + + return false +} + +// SetReturnLimit gets a reference to the given int32 and assigns it to the ReturnLimit field. +func (o *ModelsQueryModelsPagedAgentPoolAgentsQuery) SetReturnLimit(v int32) { + o.ReturnLimit = &v +} + +// GetSortField returns the SortField field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedAgentPoolAgentsQuery) GetSortField() string { + if o == nil || isNil(o.SortField) { + var ret string + return ret + } + return *o.SortField +} + +// GetSortFieldOk returns a tuple with the SortField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedAgentPoolAgentsQuery) GetSortFieldOk() (*string, bool) { + if o == nil || isNil(o.SortField) { + return nil, false + } + return o.SortField, true +} + +// HasSortField returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedAgentPoolAgentsQuery) HasSortField() bool { + if o != nil && !isNil(o.SortField) { + return true + } + + return false +} + +// SetSortField gets a reference to the given string and assigns it to the SortField field. +func (o *ModelsQueryModelsPagedAgentPoolAgentsQuery) SetSortField(v string) { + o.SortField = &v +} + +// GetSortAscending returns the SortAscending field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedAgentPoolAgentsQuery) GetSortAscending() int32 { + if o == nil || isNil(o.SortAscending) { + var ret int32 + return ret + } + return *o.SortAscending +} + +// GetSortAscendingOk returns a tuple with the SortAscending field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedAgentPoolAgentsQuery) GetSortAscendingOk() (*int32, bool) { + if o == nil || isNil(o.SortAscending) { + return nil, false + } + return o.SortAscending, true +} + +// HasSortAscending returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedAgentPoolAgentsQuery) HasSortAscending() bool { + if o != nil && !isNil(o.SortAscending) { + return true + } + + return false +} + +// SetSortAscending gets a reference to the given int32 and assigns it to the SortAscending field. +func (o *ModelsQueryModelsPagedAgentPoolAgentsQuery) SetSortAscending(v int32) { + o.SortAscending = &v +} + +func (o ModelsQueryModelsPagedAgentPoolAgentsQuery) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsQueryModelsPagedAgentPoolAgentsQuery) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.QueryString) { + toSerialize["QueryString"] = o.QueryString + } + if !isNil(o.PageReturned) { + toSerialize["PageReturned"] = o.PageReturned + } + if !isNil(o.ReturnLimit) { + toSerialize["ReturnLimit"] = o.ReturnLimit + } + if !isNil(o.SortField) { + toSerialize["SortField"] = o.SortField + } + if !isNil(o.SortAscending) { + toSerialize["SortAscending"] = o.SortAscending + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsQueryModelsPagedAgentPoolAgentsQuery) UnmarshalJSON(bytes []byte) (err error) { + varModelsQueryModelsPagedAgentPoolAgentsQuery := _ModelsQueryModelsPagedAgentPoolAgentsQuery{} + + if err = json.Unmarshal(bytes, &varModelsQueryModelsPagedAgentPoolAgentsQuery); err == nil { + *o = ModelsQueryModelsPagedAgentPoolAgentsQuery(varModelsQueryModelsPagedAgentPoolAgentsQuery) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "QueryString") + delete(additionalProperties, "PageReturned") + delete(additionalProperties, "ReturnLimit") + delete(additionalProperties, "SortField") + delete(additionalProperties, "SortAscending") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsQueryModelsPagedAgentPoolAgentsQuery struct { + value *ModelsQueryModelsPagedAgentPoolAgentsQuery + isSet bool +} + +func (v NullableModelsQueryModelsPagedAgentPoolAgentsQuery) Get() *ModelsQueryModelsPagedAgentPoolAgentsQuery { + return v.value +} + +func (v *NullableModelsQueryModelsPagedAgentPoolAgentsQuery) Set(val *ModelsQueryModelsPagedAgentPoolAgentsQuery) { + v.value = val + v.isSet = true +} + +func (v NullableModelsQueryModelsPagedAgentPoolAgentsQuery) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsQueryModelsPagedAgentPoolAgentsQuery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsQueryModelsPagedAgentPoolAgentsQuery(val *ModelsQueryModelsPagedAgentPoolAgentsQuery) *NullableModelsQueryModelsPagedAgentPoolAgentsQuery { + return &NullableModelsQueryModelsPagedAgentPoolAgentsQuery{value: val, isSet: true} +} + +func (v NullableModelsQueryModelsPagedAgentPoolAgentsQuery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsQueryModelsPagedAgentPoolAgentsQuery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_query_models_paged_agent_pool_query.go b/v1/api/keyfactor/model_models_query_models_paged_agent_pool_query.go new file mode 100644 index 0000000..7a4a213 --- /dev/null +++ b/v1/api/keyfactor/model_models_query_models_paged_agent_pool_query.go @@ -0,0 +1,311 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsQueryModelsPagedAgentPoolQuery type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsQueryModelsPagedAgentPoolQuery{} + +// ModelsQueryModelsPagedAgentPoolQuery struct for ModelsQueryModelsPagedAgentPoolQuery +type ModelsQueryModelsPagedAgentPoolQuery struct { + // Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) + QueryString *string `json:"QueryString,omitempty"` + // The current page within the result set to be returned + PageReturned *int32 `json:"PageReturned,omitempty"` + // Maximum number of records to be returned in a single call + ReturnLimit *int32 `json:"ReturnLimit,omitempty"` + // Field by which the results should be sorted (view results via Management Portal for sortable columns) + SortField *string `json:"SortField,omitempty"` + // Field sort direction [0=ascending, 1=descending] + SortAscending *int32 `json:"SortAscending,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsQueryModelsPagedAgentPoolQuery ModelsQueryModelsPagedAgentPoolQuery + +// NewModelsQueryModelsPagedAgentPoolQuery instantiates a new ModelsQueryModelsPagedAgentPoolQuery object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsQueryModelsPagedAgentPoolQuery() *ModelsQueryModelsPagedAgentPoolQuery { + this := ModelsQueryModelsPagedAgentPoolQuery{} + return &this +} + +// NewModelsQueryModelsPagedAgentPoolQueryWithDefaults instantiates a new ModelsQueryModelsPagedAgentPoolQuery object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsQueryModelsPagedAgentPoolQueryWithDefaults() *ModelsQueryModelsPagedAgentPoolQuery { + this := ModelsQueryModelsPagedAgentPoolQuery{} + return &this +} + +// GetQueryString returns the QueryString field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedAgentPoolQuery) GetQueryString() string { + if o == nil || isNil(o.QueryString) { + var ret string + return ret + } + return *o.QueryString +} + +// GetQueryStringOk returns a tuple with the QueryString field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedAgentPoolQuery) GetQueryStringOk() (*string, bool) { + if o == nil || isNil(o.QueryString) { + return nil, false + } + return o.QueryString, true +} + +// HasQueryString returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedAgentPoolQuery) HasQueryString() bool { + if o != nil && !isNil(o.QueryString) { + return true + } + + return false +} + +// SetQueryString gets a reference to the given string and assigns it to the QueryString field. +func (o *ModelsQueryModelsPagedAgentPoolQuery) SetQueryString(v string) { + o.QueryString = &v +} + +// GetPageReturned returns the PageReturned field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedAgentPoolQuery) GetPageReturned() int32 { + if o == nil || isNil(o.PageReturned) { + var ret int32 + return ret + } + return *o.PageReturned +} + +// GetPageReturnedOk returns a tuple with the PageReturned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedAgentPoolQuery) GetPageReturnedOk() (*int32, bool) { + if o == nil || isNil(o.PageReturned) { + return nil, false + } + return o.PageReturned, true +} + +// HasPageReturned returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedAgentPoolQuery) HasPageReturned() bool { + if o != nil && !isNil(o.PageReturned) { + return true + } + + return false +} + +// SetPageReturned gets a reference to the given int32 and assigns it to the PageReturned field. +func (o *ModelsQueryModelsPagedAgentPoolQuery) SetPageReturned(v int32) { + o.PageReturned = &v +} + +// GetReturnLimit returns the ReturnLimit field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedAgentPoolQuery) GetReturnLimit() int32 { + if o == nil || isNil(o.ReturnLimit) { + var ret int32 + return ret + } + return *o.ReturnLimit +} + +// GetReturnLimitOk returns a tuple with the ReturnLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedAgentPoolQuery) GetReturnLimitOk() (*int32, bool) { + if o == nil || isNil(o.ReturnLimit) { + return nil, false + } + return o.ReturnLimit, true +} + +// HasReturnLimit returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedAgentPoolQuery) HasReturnLimit() bool { + if o != nil && !isNil(o.ReturnLimit) { + return true + } + + return false +} + +// SetReturnLimit gets a reference to the given int32 and assigns it to the ReturnLimit field. +func (o *ModelsQueryModelsPagedAgentPoolQuery) SetReturnLimit(v int32) { + o.ReturnLimit = &v +} + +// GetSortField returns the SortField field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedAgentPoolQuery) GetSortField() string { + if o == nil || isNil(o.SortField) { + var ret string + return ret + } + return *o.SortField +} + +// GetSortFieldOk returns a tuple with the SortField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedAgentPoolQuery) GetSortFieldOk() (*string, bool) { + if o == nil || isNil(o.SortField) { + return nil, false + } + return o.SortField, true +} + +// HasSortField returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedAgentPoolQuery) HasSortField() bool { + if o != nil && !isNil(o.SortField) { + return true + } + + return false +} + +// SetSortField gets a reference to the given string and assigns it to the SortField field. +func (o *ModelsQueryModelsPagedAgentPoolQuery) SetSortField(v string) { + o.SortField = &v +} + +// GetSortAscending returns the SortAscending field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedAgentPoolQuery) GetSortAscending() int32 { + if o == nil || isNil(o.SortAscending) { + var ret int32 + return ret + } + return *o.SortAscending +} + +// GetSortAscendingOk returns a tuple with the SortAscending field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedAgentPoolQuery) GetSortAscendingOk() (*int32, bool) { + if o == nil || isNil(o.SortAscending) { + return nil, false + } + return o.SortAscending, true +} + +// HasSortAscending returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedAgentPoolQuery) HasSortAscending() bool { + if o != nil && !isNil(o.SortAscending) { + return true + } + + return false +} + +// SetSortAscending gets a reference to the given int32 and assigns it to the SortAscending field. +func (o *ModelsQueryModelsPagedAgentPoolQuery) SetSortAscending(v int32) { + o.SortAscending = &v +} + +func (o ModelsQueryModelsPagedAgentPoolQuery) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsQueryModelsPagedAgentPoolQuery) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.QueryString) { + toSerialize["QueryString"] = o.QueryString + } + if !isNil(o.PageReturned) { + toSerialize["PageReturned"] = o.PageReturned + } + if !isNil(o.ReturnLimit) { + toSerialize["ReturnLimit"] = o.ReturnLimit + } + if !isNil(o.SortField) { + toSerialize["SortField"] = o.SortField + } + if !isNil(o.SortAscending) { + toSerialize["SortAscending"] = o.SortAscending + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsQueryModelsPagedAgentPoolQuery) UnmarshalJSON(bytes []byte) (err error) { + varModelsQueryModelsPagedAgentPoolQuery := _ModelsQueryModelsPagedAgentPoolQuery{} + + if err = json.Unmarshal(bytes, &varModelsQueryModelsPagedAgentPoolQuery); err == nil { + *o = ModelsQueryModelsPagedAgentPoolQuery(varModelsQueryModelsPagedAgentPoolQuery) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "QueryString") + delete(additionalProperties, "PageReturned") + delete(additionalProperties, "ReturnLimit") + delete(additionalProperties, "SortField") + delete(additionalProperties, "SortAscending") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsQueryModelsPagedAgentPoolQuery struct { + value *ModelsQueryModelsPagedAgentPoolQuery + isSet bool +} + +func (v NullableModelsQueryModelsPagedAgentPoolQuery) Get() *ModelsQueryModelsPagedAgentPoolQuery { + return v.value +} + +func (v *NullableModelsQueryModelsPagedAgentPoolQuery) Set(val *ModelsQueryModelsPagedAgentPoolQuery) { + v.value = val + v.isSet = true +} + +func (v NullableModelsQueryModelsPagedAgentPoolQuery) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsQueryModelsPagedAgentPoolQuery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsQueryModelsPagedAgentPoolQuery(val *ModelsQueryModelsPagedAgentPoolQuery) *NullableModelsQueryModelsPagedAgentPoolQuery { + return &NullableModelsQueryModelsPagedAgentPoolQuery{value: val, isSet: true} +} + +func (v NullableModelsQueryModelsPagedAgentPoolQuery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsQueryModelsPagedAgentPoolQuery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_query_models_paged_agent_query.go b/v1/api/keyfactor/model_models_query_models_paged_agent_query.go new file mode 100644 index 0000000..11da539 --- /dev/null +++ b/v1/api/keyfactor/model_models_query_models_paged_agent_query.go @@ -0,0 +1,311 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsQueryModelsPagedAgentQuery type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsQueryModelsPagedAgentQuery{} + +// ModelsQueryModelsPagedAgentQuery A query result set with parameters to define the format of Agent records +type ModelsQueryModelsPagedAgentQuery struct { + // Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) + QueryString *string `json:"QueryString,omitempty"` + // The current page within the result set to be returned + PageReturned *int32 `json:"PageReturned,omitempty"` + // Maximum number of records to be returned in a single call + ReturnLimit *int32 `json:"ReturnLimit,omitempty"` + // Field by which the results should be sorted (view results via Management Portal for sortable columns) + SortField *string `json:"SortField,omitempty"` + // Field sort direction [0=ascending, 1=descending] + SortAscending *int32 `json:"SortAscending,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsQueryModelsPagedAgentQuery ModelsQueryModelsPagedAgentQuery + +// NewModelsQueryModelsPagedAgentQuery instantiates a new ModelsQueryModelsPagedAgentQuery object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsQueryModelsPagedAgentQuery() *ModelsQueryModelsPagedAgentQuery { + this := ModelsQueryModelsPagedAgentQuery{} + return &this +} + +// NewModelsQueryModelsPagedAgentQueryWithDefaults instantiates a new ModelsQueryModelsPagedAgentQuery object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsQueryModelsPagedAgentQueryWithDefaults() *ModelsQueryModelsPagedAgentQuery { + this := ModelsQueryModelsPagedAgentQuery{} + return &this +} + +// GetQueryString returns the QueryString field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedAgentQuery) GetQueryString() string { + if o == nil || isNil(o.QueryString) { + var ret string + return ret + } + return *o.QueryString +} + +// GetQueryStringOk returns a tuple with the QueryString field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedAgentQuery) GetQueryStringOk() (*string, bool) { + if o == nil || isNil(o.QueryString) { + return nil, false + } + return o.QueryString, true +} + +// HasQueryString returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedAgentQuery) HasQueryString() bool { + if o != nil && !isNil(o.QueryString) { + return true + } + + return false +} + +// SetQueryString gets a reference to the given string and assigns it to the QueryString field. +func (o *ModelsQueryModelsPagedAgentQuery) SetQueryString(v string) { + o.QueryString = &v +} + +// GetPageReturned returns the PageReturned field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedAgentQuery) GetPageReturned() int32 { + if o == nil || isNil(o.PageReturned) { + var ret int32 + return ret + } + return *o.PageReturned +} + +// GetPageReturnedOk returns a tuple with the PageReturned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedAgentQuery) GetPageReturnedOk() (*int32, bool) { + if o == nil || isNil(o.PageReturned) { + return nil, false + } + return o.PageReturned, true +} + +// HasPageReturned returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedAgentQuery) HasPageReturned() bool { + if o != nil && !isNil(o.PageReturned) { + return true + } + + return false +} + +// SetPageReturned gets a reference to the given int32 and assigns it to the PageReturned field. +func (o *ModelsQueryModelsPagedAgentQuery) SetPageReturned(v int32) { + o.PageReturned = &v +} + +// GetReturnLimit returns the ReturnLimit field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedAgentQuery) GetReturnLimit() int32 { + if o == nil || isNil(o.ReturnLimit) { + var ret int32 + return ret + } + return *o.ReturnLimit +} + +// GetReturnLimitOk returns a tuple with the ReturnLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedAgentQuery) GetReturnLimitOk() (*int32, bool) { + if o == nil || isNil(o.ReturnLimit) { + return nil, false + } + return o.ReturnLimit, true +} + +// HasReturnLimit returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedAgentQuery) HasReturnLimit() bool { + if o != nil && !isNil(o.ReturnLimit) { + return true + } + + return false +} + +// SetReturnLimit gets a reference to the given int32 and assigns it to the ReturnLimit field. +func (o *ModelsQueryModelsPagedAgentQuery) SetReturnLimit(v int32) { + o.ReturnLimit = &v +} + +// GetSortField returns the SortField field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedAgentQuery) GetSortField() string { + if o == nil || isNil(o.SortField) { + var ret string + return ret + } + return *o.SortField +} + +// GetSortFieldOk returns a tuple with the SortField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedAgentQuery) GetSortFieldOk() (*string, bool) { + if o == nil || isNil(o.SortField) { + return nil, false + } + return o.SortField, true +} + +// HasSortField returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedAgentQuery) HasSortField() bool { + if o != nil && !isNil(o.SortField) { + return true + } + + return false +} + +// SetSortField gets a reference to the given string and assigns it to the SortField field. +func (o *ModelsQueryModelsPagedAgentQuery) SetSortField(v string) { + o.SortField = &v +} + +// GetSortAscending returns the SortAscending field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedAgentQuery) GetSortAscending() int32 { + if o == nil || isNil(o.SortAscending) { + var ret int32 + return ret + } + return *o.SortAscending +} + +// GetSortAscendingOk returns a tuple with the SortAscending field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedAgentQuery) GetSortAscendingOk() (*int32, bool) { + if o == nil || isNil(o.SortAscending) { + return nil, false + } + return o.SortAscending, true +} + +// HasSortAscending returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedAgentQuery) HasSortAscending() bool { + if o != nil && !isNil(o.SortAscending) { + return true + } + + return false +} + +// SetSortAscending gets a reference to the given int32 and assigns it to the SortAscending field. +func (o *ModelsQueryModelsPagedAgentQuery) SetSortAscending(v int32) { + o.SortAscending = &v +} + +func (o ModelsQueryModelsPagedAgentQuery) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsQueryModelsPagedAgentQuery) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.QueryString) { + toSerialize["QueryString"] = o.QueryString + } + if !isNil(o.PageReturned) { + toSerialize["PageReturned"] = o.PageReturned + } + if !isNil(o.ReturnLimit) { + toSerialize["ReturnLimit"] = o.ReturnLimit + } + if !isNil(o.SortField) { + toSerialize["SortField"] = o.SortField + } + if !isNil(o.SortAscending) { + toSerialize["SortAscending"] = o.SortAscending + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsQueryModelsPagedAgentQuery) UnmarshalJSON(bytes []byte) (err error) { + varModelsQueryModelsPagedAgentQuery := _ModelsQueryModelsPagedAgentQuery{} + + if err = json.Unmarshal(bytes, &varModelsQueryModelsPagedAgentQuery); err == nil { + *o = ModelsQueryModelsPagedAgentQuery(varModelsQueryModelsPagedAgentQuery) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "QueryString") + delete(additionalProperties, "PageReturned") + delete(additionalProperties, "ReturnLimit") + delete(additionalProperties, "SortField") + delete(additionalProperties, "SortAscending") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsQueryModelsPagedAgentQuery struct { + value *ModelsQueryModelsPagedAgentQuery + isSet bool +} + +func (v NullableModelsQueryModelsPagedAgentQuery) Get() *ModelsQueryModelsPagedAgentQuery { + return v.value +} + +func (v *NullableModelsQueryModelsPagedAgentQuery) Set(val *ModelsQueryModelsPagedAgentQuery) { + v.value = val + v.isSet = true +} + +func (v NullableModelsQueryModelsPagedAgentQuery) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsQueryModelsPagedAgentQuery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsQueryModelsPagedAgentQuery(val *ModelsQueryModelsPagedAgentQuery) *NullableModelsQueryModelsPagedAgentQuery { + return &NullableModelsQueryModelsPagedAgentQuery{value: val, isSet: true} +} + +func (v NullableModelsQueryModelsPagedAgentQuery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsQueryModelsPagedAgentQuery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_query_models_paged_audit_log_query.go b/v1/api/keyfactor/model_models_query_models_paged_audit_log_query.go new file mode 100644 index 0000000..38d6da7 --- /dev/null +++ b/v1/api/keyfactor/model_models_query_models_paged_audit_log_query.go @@ -0,0 +1,311 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsQueryModelsPagedAuditLogQuery type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsQueryModelsPagedAuditLogQuery{} + +// ModelsQueryModelsPagedAuditLogQuery struct for ModelsQueryModelsPagedAuditLogQuery +type ModelsQueryModelsPagedAuditLogQuery struct { + // Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) + QueryString *string `json:"QueryString,omitempty"` + // The current page within the result set to be returned + PageReturned *int32 `json:"PageReturned,omitempty"` + // Maximum number of records to be returned in a single call + ReturnLimit *int32 `json:"ReturnLimit,omitempty"` + // Field by which the results should be sorted (view results via Management Portal for sortable columns) + SortField *string `json:"SortField,omitempty"` + // Field sort direction [0=ascending, 1=descending] + SortAscending *int32 `json:"SortAscending,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsQueryModelsPagedAuditLogQuery ModelsQueryModelsPagedAuditLogQuery + +// NewModelsQueryModelsPagedAuditLogQuery instantiates a new ModelsQueryModelsPagedAuditLogQuery object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsQueryModelsPagedAuditLogQuery() *ModelsQueryModelsPagedAuditLogQuery { + this := ModelsQueryModelsPagedAuditLogQuery{} + return &this +} + +// NewModelsQueryModelsPagedAuditLogQueryWithDefaults instantiates a new ModelsQueryModelsPagedAuditLogQuery object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsQueryModelsPagedAuditLogQueryWithDefaults() *ModelsQueryModelsPagedAuditLogQuery { + this := ModelsQueryModelsPagedAuditLogQuery{} + return &this +} + +// GetQueryString returns the QueryString field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedAuditLogQuery) GetQueryString() string { + if o == nil || isNil(o.QueryString) { + var ret string + return ret + } + return *o.QueryString +} + +// GetQueryStringOk returns a tuple with the QueryString field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedAuditLogQuery) GetQueryStringOk() (*string, bool) { + if o == nil || isNil(o.QueryString) { + return nil, false + } + return o.QueryString, true +} + +// HasQueryString returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedAuditLogQuery) HasQueryString() bool { + if o != nil && !isNil(o.QueryString) { + return true + } + + return false +} + +// SetQueryString gets a reference to the given string and assigns it to the QueryString field. +func (o *ModelsQueryModelsPagedAuditLogQuery) SetQueryString(v string) { + o.QueryString = &v +} + +// GetPageReturned returns the PageReturned field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedAuditLogQuery) GetPageReturned() int32 { + if o == nil || isNil(o.PageReturned) { + var ret int32 + return ret + } + return *o.PageReturned +} + +// GetPageReturnedOk returns a tuple with the PageReturned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedAuditLogQuery) GetPageReturnedOk() (*int32, bool) { + if o == nil || isNil(o.PageReturned) { + return nil, false + } + return o.PageReturned, true +} + +// HasPageReturned returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedAuditLogQuery) HasPageReturned() bool { + if o != nil && !isNil(o.PageReturned) { + return true + } + + return false +} + +// SetPageReturned gets a reference to the given int32 and assigns it to the PageReturned field. +func (o *ModelsQueryModelsPagedAuditLogQuery) SetPageReturned(v int32) { + o.PageReturned = &v +} + +// GetReturnLimit returns the ReturnLimit field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedAuditLogQuery) GetReturnLimit() int32 { + if o == nil || isNil(o.ReturnLimit) { + var ret int32 + return ret + } + return *o.ReturnLimit +} + +// GetReturnLimitOk returns a tuple with the ReturnLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedAuditLogQuery) GetReturnLimitOk() (*int32, bool) { + if o == nil || isNil(o.ReturnLimit) { + return nil, false + } + return o.ReturnLimit, true +} + +// HasReturnLimit returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedAuditLogQuery) HasReturnLimit() bool { + if o != nil && !isNil(o.ReturnLimit) { + return true + } + + return false +} + +// SetReturnLimit gets a reference to the given int32 and assigns it to the ReturnLimit field. +func (o *ModelsQueryModelsPagedAuditLogQuery) SetReturnLimit(v int32) { + o.ReturnLimit = &v +} + +// GetSortField returns the SortField field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedAuditLogQuery) GetSortField() string { + if o == nil || isNil(o.SortField) { + var ret string + return ret + } + return *o.SortField +} + +// GetSortFieldOk returns a tuple with the SortField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedAuditLogQuery) GetSortFieldOk() (*string, bool) { + if o == nil || isNil(o.SortField) { + return nil, false + } + return o.SortField, true +} + +// HasSortField returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedAuditLogQuery) HasSortField() bool { + if o != nil && !isNil(o.SortField) { + return true + } + + return false +} + +// SetSortField gets a reference to the given string and assigns it to the SortField field. +func (o *ModelsQueryModelsPagedAuditLogQuery) SetSortField(v string) { + o.SortField = &v +} + +// GetSortAscending returns the SortAscending field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedAuditLogQuery) GetSortAscending() int32 { + if o == nil || isNil(o.SortAscending) { + var ret int32 + return ret + } + return *o.SortAscending +} + +// GetSortAscendingOk returns a tuple with the SortAscending field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedAuditLogQuery) GetSortAscendingOk() (*int32, bool) { + if o == nil || isNil(o.SortAscending) { + return nil, false + } + return o.SortAscending, true +} + +// HasSortAscending returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedAuditLogQuery) HasSortAscending() bool { + if o != nil && !isNil(o.SortAscending) { + return true + } + + return false +} + +// SetSortAscending gets a reference to the given int32 and assigns it to the SortAscending field. +func (o *ModelsQueryModelsPagedAuditLogQuery) SetSortAscending(v int32) { + o.SortAscending = &v +} + +func (o ModelsQueryModelsPagedAuditLogQuery) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsQueryModelsPagedAuditLogQuery) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.QueryString) { + toSerialize["QueryString"] = o.QueryString + } + if !isNil(o.PageReturned) { + toSerialize["PageReturned"] = o.PageReturned + } + if !isNil(o.ReturnLimit) { + toSerialize["ReturnLimit"] = o.ReturnLimit + } + if !isNil(o.SortField) { + toSerialize["SortField"] = o.SortField + } + if !isNil(o.SortAscending) { + toSerialize["SortAscending"] = o.SortAscending + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsQueryModelsPagedAuditLogQuery) UnmarshalJSON(bytes []byte) (err error) { + varModelsQueryModelsPagedAuditLogQuery := _ModelsQueryModelsPagedAuditLogQuery{} + + if err = json.Unmarshal(bytes, &varModelsQueryModelsPagedAuditLogQuery); err == nil { + *o = ModelsQueryModelsPagedAuditLogQuery(varModelsQueryModelsPagedAuditLogQuery) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "QueryString") + delete(additionalProperties, "PageReturned") + delete(additionalProperties, "ReturnLimit") + delete(additionalProperties, "SortField") + delete(additionalProperties, "SortAscending") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsQueryModelsPagedAuditLogQuery struct { + value *ModelsQueryModelsPagedAuditLogQuery + isSet bool +} + +func (v NullableModelsQueryModelsPagedAuditLogQuery) Get() *ModelsQueryModelsPagedAuditLogQuery { + return v.value +} + +func (v *NullableModelsQueryModelsPagedAuditLogQuery) Set(val *ModelsQueryModelsPagedAuditLogQuery) { + v.value = val + v.isSet = true +} + +func (v NullableModelsQueryModelsPagedAuditLogQuery) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsQueryModelsPagedAuditLogQuery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsQueryModelsPagedAuditLogQuery(val *ModelsQueryModelsPagedAuditLogQuery) *NullableModelsQueryModelsPagedAuditLogQuery { + return &NullableModelsQueryModelsPagedAuditLogQuery{value: val, isSet: true} +} + +func (v NullableModelsQueryModelsPagedAuditLogQuery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsQueryModelsPagedAuditLogQuery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_query_models_paged_certificate_authority_query.go b/v1/api/keyfactor/model_models_query_models_paged_certificate_authority_query.go new file mode 100644 index 0000000..d6935aa --- /dev/null +++ b/v1/api/keyfactor/model_models_query_models_paged_certificate_authority_query.go @@ -0,0 +1,311 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsQueryModelsPagedCertificateAuthorityQuery type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsQueryModelsPagedCertificateAuthorityQuery{} + +// ModelsQueryModelsPagedCertificateAuthorityQuery struct for ModelsQueryModelsPagedCertificateAuthorityQuery +type ModelsQueryModelsPagedCertificateAuthorityQuery struct { + // Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) + QueryString *string `json:"QueryString,omitempty"` + // The current page within the result set to be returned + PageReturned *int32 `json:"PageReturned,omitempty"` + // Maximum number of records to be returned in a single call + ReturnLimit *int32 `json:"ReturnLimit,omitempty"` + // Field by which the results should be sorted (view results via Management Portal for sortable columns) + SortField *string `json:"SortField,omitempty"` + // Field sort direction [0=ascending, 1=descending] + SortAscending *int32 `json:"SortAscending,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsQueryModelsPagedCertificateAuthorityQuery ModelsQueryModelsPagedCertificateAuthorityQuery + +// NewModelsQueryModelsPagedCertificateAuthorityQuery instantiates a new ModelsQueryModelsPagedCertificateAuthorityQuery object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsQueryModelsPagedCertificateAuthorityQuery() *ModelsQueryModelsPagedCertificateAuthorityQuery { + this := ModelsQueryModelsPagedCertificateAuthorityQuery{} + return &this +} + +// NewModelsQueryModelsPagedCertificateAuthorityQueryWithDefaults instantiates a new ModelsQueryModelsPagedCertificateAuthorityQuery object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsQueryModelsPagedCertificateAuthorityQueryWithDefaults() *ModelsQueryModelsPagedCertificateAuthorityQuery { + this := ModelsQueryModelsPagedCertificateAuthorityQuery{} + return &this +} + +// GetQueryString returns the QueryString field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedCertificateAuthorityQuery) GetQueryString() string { + if o == nil || isNil(o.QueryString) { + var ret string + return ret + } + return *o.QueryString +} + +// GetQueryStringOk returns a tuple with the QueryString field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedCertificateAuthorityQuery) GetQueryStringOk() (*string, bool) { + if o == nil || isNil(o.QueryString) { + return nil, false + } + return o.QueryString, true +} + +// HasQueryString returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedCertificateAuthorityQuery) HasQueryString() bool { + if o != nil && !isNil(o.QueryString) { + return true + } + + return false +} + +// SetQueryString gets a reference to the given string and assigns it to the QueryString field. +func (o *ModelsQueryModelsPagedCertificateAuthorityQuery) SetQueryString(v string) { + o.QueryString = &v +} + +// GetPageReturned returns the PageReturned field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedCertificateAuthorityQuery) GetPageReturned() int32 { + if o == nil || isNil(o.PageReturned) { + var ret int32 + return ret + } + return *o.PageReturned +} + +// GetPageReturnedOk returns a tuple with the PageReturned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedCertificateAuthorityQuery) GetPageReturnedOk() (*int32, bool) { + if o == nil || isNil(o.PageReturned) { + return nil, false + } + return o.PageReturned, true +} + +// HasPageReturned returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedCertificateAuthorityQuery) HasPageReturned() bool { + if o != nil && !isNil(o.PageReturned) { + return true + } + + return false +} + +// SetPageReturned gets a reference to the given int32 and assigns it to the PageReturned field. +func (o *ModelsQueryModelsPagedCertificateAuthorityQuery) SetPageReturned(v int32) { + o.PageReturned = &v +} + +// GetReturnLimit returns the ReturnLimit field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedCertificateAuthorityQuery) GetReturnLimit() int32 { + if o == nil || isNil(o.ReturnLimit) { + var ret int32 + return ret + } + return *o.ReturnLimit +} + +// GetReturnLimitOk returns a tuple with the ReturnLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedCertificateAuthorityQuery) GetReturnLimitOk() (*int32, bool) { + if o == nil || isNil(o.ReturnLimit) { + return nil, false + } + return o.ReturnLimit, true +} + +// HasReturnLimit returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedCertificateAuthorityQuery) HasReturnLimit() bool { + if o != nil && !isNil(o.ReturnLimit) { + return true + } + + return false +} + +// SetReturnLimit gets a reference to the given int32 and assigns it to the ReturnLimit field. +func (o *ModelsQueryModelsPagedCertificateAuthorityQuery) SetReturnLimit(v int32) { + o.ReturnLimit = &v +} + +// GetSortField returns the SortField field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedCertificateAuthorityQuery) GetSortField() string { + if o == nil || isNil(o.SortField) { + var ret string + return ret + } + return *o.SortField +} + +// GetSortFieldOk returns a tuple with the SortField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedCertificateAuthorityQuery) GetSortFieldOk() (*string, bool) { + if o == nil || isNil(o.SortField) { + return nil, false + } + return o.SortField, true +} + +// HasSortField returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedCertificateAuthorityQuery) HasSortField() bool { + if o != nil && !isNil(o.SortField) { + return true + } + + return false +} + +// SetSortField gets a reference to the given string and assigns it to the SortField field. +func (o *ModelsQueryModelsPagedCertificateAuthorityQuery) SetSortField(v string) { + o.SortField = &v +} + +// GetSortAscending returns the SortAscending field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedCertificateAuthorityQuery) GetSortAscending() int32 { + if o == nil || isNil(o.SortAscending) { + var ret int32 + return ret + } + return *o.SortAscending +} + +// GetSortAscendingOk returns a tuple with the SortAscending field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedCertificateAuthorityQuery) GetSortAscendingOk() (*int32, bool) { + if o == nil || isNil(o.SortAscending) { + return nil, false + } + return o.SortAscending, true +} + +// HasSortAscending returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedCertificateAuthorityQuery) HasSortAscending() bool { + if o != nil && !isNil(o.SortAscending) { + return true + } + + return false +} + +// SetSortAscending gets a reference to the given int32 and assigns it to the SortAscending field. +func (o *ModelsQueryModelsPagedCertificateAuthorityQuery) SetSortAscending(v int32) { + o.SortAscending = &v +} + +func (o ModelsQueryModelsPagedCertificateAuthorityQuery) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsQueryModelsPagedCertificateAuthorityQuery) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.QueryString) { + toSerialize["QueryString"] = o.QueryString + } + if !isNil(o.PageReturned) { + toSerialize["PageReturned"] = o.PageReturned + } + if !isNil(o.ReturnLimit) { + toSerialize["ReturnLimit"] = o.ReturnLimit + } + if !isNil(o.SortField) { + toSerialize["SortField"] = o.SortField + } + if !isNil(o.SortAscending) { + toSerialize["SortAscending"] = o.SortAscending + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsQueryModelsPagedCertificateAuthorityQuery) UnmarshalJSON(bytes []byte) (err error) { + varModelsQueryModelsPagedCertificateAuthorityQuery := _ModelsQueryModelsPagedCertificateAuthorityQuery{} + + if err = json.Unmarshal(bytes, &varModelsQueryModelsPagedCertificateAuthorityQuery); err == nil { + *o = ModelsQueryModelsPagedCertificateAuthorityQuery(varModelsQueryModelsPagedCertificateAuthorityQuery) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "QueryString") + delete(additionalProperties, "PageReturned") + delete(additionalProperties, "ReturnLimit") + delete(additionalProperties, "SortField") + delete(additionalProperties, "SortAscending") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsQueryModelsPagedCertificateAuthorityQuery struct { + value *ModelsQueryModelsPagedCertificateAuthorityQuery + isSet bool +} + +func (v NullableModelsQueryModelsPagedCertificateAuthorityQuery) Get() *ModelsQueryModelsPagedCertificateAuthorityQuery { + return v.value +} + +func (v *NullableModelsQueryModelsPagedCertificateAuthorityQuery) Set(val *ModelsQueryModelsPagedCertificateAuthorityQuery) { + v.value = val + v.isSet = true +} + +func (v NullableModelsQueryModelsPagedCertificateAuthorityQuery) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsQueryModelsPagedCertificateAuthorityQuery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsQueryModelsPagedCertificateAuthorityQuery(val *ModelsQueryModelsPagedCertificateAuthorityQuery) *NullableModelsQueryModelsPagedCertificateAuthorityQuery { + return &NullableModelsQueryModelsPagedCertificateAuthorityQuery{value: val, isSet: true} +} + +func (v NullableModelsQueryModelsPagedCertificateAuthorityQuery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsQueryModelsPagedCertificateAuthorityQuery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_query_models_paged_certificate_history_query.go b/v1/api/keyfactor/model_models_query_models_paged_certificate_history_query.go new file mode 100644 index 0000000..4603163 --- /dev/null +++ b/v1/api/keyfactor/model_models_query_models_paged_certificate_history_query.go @@ -0,0 +1,273 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsQueryModelsPagedCertificateHistoryQuery type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsQueryModelsPagedCertificateHistoryQuery{} + +// ModelsQueryModelsPagedCertificateHistoryQuery struct for ModelsQueryModelsPagedCertificateHistoryQuery +type ModelsQueryModelsPagedCertificateHistoryQuery struct { + // The current page within the result set to be returned + PageReturned *int32 `json:"PageReturned,omitempty"` + // Maximum number of records to be returned in a single call + ReturnLimit *int32 `json:"ReturnLimit,omitempty"` + // Field by which the results should be sorted (OperationStart, OperationEnd, UserName) + SortField *string `json:"SortField,omitempty"` + // Field sort direction [0=ascending, 1=descending] + SortAscending *int32 `json:"SortAscending,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsQueryModelsPagedCertificateHistoryQuery ModelsQueryModelsPagedCertificateHistoryQuery + +// NewModelsQueryModelsPagedCertificateHistoryQuery instantiates a new ModelsQueryModelsPagedCertificateHistoryQuery object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsQueryModelsPagedCertificateHistoryQuery() *ModelsQueryModelsPagedCertificateHistoryQuery { + this := ModelsQueryModelsPagedCertificateHistoryQuery{} + return &this +} + +// NewModelsQueryModelsPagedCertificateHistoryQueryWithDefaults instantiates a new ModelsQueryModelsPagedCertificateHistoryQuery object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsQueryModelsPagedCertificateHistoryQueryWithDefaults() *ModelsQueryModelsPagedCertificateHistoryQuery { + this := ModelsQueryModelsPagedCertificateHistoryQuery{} + return &this +} + +// GetPageReturned returns the PageReturned field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedCertificateHistoryQuery) GetPageReturned() int32 { + if o == nil || isNil(o.PageReturned) { + var ret int32 + return ret + } + return *o.PageReturned +} + +// GetPageReturnedOk returns a tuple with the PageReturned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedCertificateHistoryQuery) GetPageReturnedOk() (*int32, bool) { + if o == nil || isNil(o.PageReturned) { + return nil, false + } + return o.PageReturned, true +} + +// HasPageReturned returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedCertificateHistoryQuery) HasPageReturned() bool { + if o != nil && !isNil(o.PageReturned) { + return true + } + + return false +} + +// SetPageReturned gets a reference to the given int32 and assigns it to the PageReturned field. +func (o *ModelsQueryModelsPagedCertificateHistoryQuery) SetPageReturned(v int32) { + o.PageReturned = &v +} + +// GetReturnLimit returns the ReturnLimit field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedCertificateHistoryQuery) GetReturnLimit() int32 { + if o == nil || isNil(o.ReturnLimit) { + var ret int32 + return ret + } + return *o.ReturnLimit +} + +// GetReturnLimitOk returns a tuple with the ReturnLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedCertificateHistoryQuery) GetReturnLimitOk() (*int32, bool) { + if o == nil || isNil(o.ReturnLimit) { + return nil, false + } + return o.ReturnLimit, true +} + +// HasReturnLimit returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedCertificateHistoryQuery) HasReturnLimit() bool { + if o != nil && !isNil(o.ReturnLimit) { + return true + } + + return false +} + +// SetReturnLimit gets a reference to the given int32 and assigns it to the ReturnLimit field. +func (o *ModelsQueryModelsPagedCertificateHistoryQuery) SetReturnLimit(v int32) { + o.ReturnLimit = &v +} + +// GetSortField returns the SortField field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedCertificateHistoryQuery) GetSortField() string { + if o == nil || isNil(o.SortField) { + var ret string + return ret + } + return *o.SortField +} + +// GetSortFieldOk returns a tuple with the SortField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedCertificateHistoryQuery) GetSortFieldOk() (*string, bool) { + if o == nil || isNil(o.SortField) { + return nil, false + } + return o.SortField, true +} + +// HasSortField returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedCertificateHistoryQuery) HasSortField() bool { + if o != nil && !isNil(o.SortField) { + return true + } + + return false +} + +// SetSortField gets a reference to the given string and assigns it to the SortField field. +func (o *ModelsQueryModelsPagedCertificateHistoryQuery) SetSortField(v string) { + o.SortField = &v +} + +// GetSortAscending returns the SortAscending field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedCertificateHistoryQuery) GetSortAscending() int32 { + if o == nil || isNil(o.SortAscending) { + var ret int32 + return ret + } + return *o.SortAscending +} + +// GetSortAscendingOk returns a tuple with the SortAscending field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedCertificateHistoryQuery) GetSortAscendingOk() (*int32, bool) { + if o == nil || isNil(o.SortAscending) { + return nil, false + } + return o.SortAscending, true +} + +// HasSortAscending returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedCertificateHistoryQuery) HasSortAscending() bool { + if o != nil && !isNil(o.SortAscending) { + return true + } + + return false +} + +// SetSortAscending gets a reference to the given int32 and assigns it to the SortAscending field. +func (o *ModelsQueryModelsPagedCertificateHistoryQuery) SetSortAscending(v int32) { + o.SortAscending = &v +} + +func (o ModelsQueryModelsPagedCertificateHistoryQuery) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsQueryModelsPagedCertificateHistoryQuery) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.PageReturned) { + toSerialize["PageReturned"] = o.PageReturned + } + if !isNil(o.ReturnLimit) { + toSerialize["ReturnLimit"] = o.ReturnLimit + } + if !isNil(o.SortField) { + toSerialize["SortField"] = o.SortField + } + if !isNil(o.SortAscending) { + toSerialize["SortAscending"] = o.SortAscending + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsQueryModelsPagedCertificateHistoryQuery) UnmarshalJSON(bytes []byte) (err error) { + varModelsQueryModelsPagedCertificateHistoryQuery := _ModelsQueryModelsPagedCertificateHistoryQuery{} + + if err = json.Unmarshal(bytes, &varModelsQueryModelsPagedCertificateHistoryQuery); err == nil { + *o = ModelsQueryModelsPagedCertificateHistoryQuery(varModelsQueryModelsPagedCertificateHistoryQuery) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "PageReturned") + delete(additionalProperties, "ReturnLimit") + delete(additionalProperties, "SortField") + delete(additionalProperties, "SortAscending") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsQueryModelsPagedCertificateHistoryQuery struct { + value *ModelsQueryModelsPagedCertificateHistoryQuery + isSet bool +} + +func (v NullableModelsQueryModelsPagedCertificateHistoryQuery) Get() *ModelsQueryModelsPagedCertificateHistoryQuery { + return v.value +} + +func (v *NullableModelsQueryModelsPagedCertificateHistoryQuery) Set(val *ModelsQueryModelsPagedCertificateHistoryQuery) { + v.value = val + v.isSet = true +} + +func (v NullableModelsQueryModelsPagedCertificateHistoryQuery) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsQueryModelsPagedCertificateHistoryQuery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsQueryModelsPagedCertificateHistoryQuery(val *ModelsQueryModelsPagedCertificateHistoryQuery) *NullableModelsQueryModelsPagedCertificateHistoryQuery { + return &NullableModelsQueryModelsPagedCertificateHistoryQuery{value: val, isSet: true} +} + +func (v NullableModelsQueryModelsPagedCertificateHistoryQuery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsQueryModelsPagedCertificateHistoryQuery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_query_models_paged_certificate_request_query.go b/v1/api/keyfactor/model_models_query_models_paged_certificate_request_query.go new file mode 100644 index 0000000..bce74f8 --- /dev/null +++ b/v1/api/keyfactor/model_models_query_models_paged_certificate_request_query.go @@ -0,0 +1,311 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsQueryModelsPagedCertificateRequestQuery type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsQueryModelsPagedCertificateRequestQuery{} + +// ModelsQueryModelsPagedCertificateRequestQuery struct for ModelsQueryModelsPagedCertificateRequestQuery +type ModelsQueryModelsPagedCertificateRequestQuery struct { + // Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) + QueryString *string `json:"QueryString,omitempty"` + // The current page within the result set to be returned + PageReturned *int32 `json:"PageReturned,omitempty"` + // Maximum number of records to be returned in a single call + ReturnLimit *int32 `json:"ReturnLimit,omitempty"` + // Field by which the results should be sorted (view results via Management Portal for sortable columns) + SortField *string `json:"SortField,omitempty"` + // Field sort direction [0=ascending, 1=descending] + SortAscending *int32 `json:"SortAscending,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsQueryModelsPagedCertificateRequestQuery ModelsQueryModelsPagedCertificateRequestQuery + +// NewModelsQueryModelsPagedCertificateRequestQuery instantiates a new ModelsQueryModelsPagedCertificateRequestQuery object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsQueryModelsPagedCertificateRequestQuery() *ModelsQueryModelsPagedCertificateRequestQuery { + this := ModelsQueryModelsPagedCertificateRequestQuery{} + return &this +} + +// NewModelsQueryModelsPagedCertificateRequestQueryWithDefaults instantiates a new ModelsQueryModelsPagedCertificateRequestQuery object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsQueryModelsPagedCertificateRequestQueryWithDefaults() *ModelsQueryModelsPagedCertificateRequestQuery { + this := ModelsQueryModelsPagedCertificateRequestQuery{} + return &this +} + +// GetQueryString returns the QueryString field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedCertificateRequestQuery) GetQueryString() string { + if o == nil || isNil(o.QueryString) { + var ret string + return ret + } + return *o.QueryString +} + +// GetQueryStringOk returns a tuple with the QueryString field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedCertificateRequestQuery) GetQueryStringOk() (*string, bool) { + if o == nil || isNil(o.QueryString) { + return nil, false + } + return o.QueryString, true +} + +// HasQueryString returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedCertificateRequestQuery) HasQueryString() bool { + if o != nil && !isNil(o.QueryString) { + return true + } + + return false +} + +// SetQueryString gets a reference to the given string and assigns it to the QueryString field. +func (o *ModelsQueryModelsPagedCertificateRequestQuery) SetQueryString(v string) { + o.QueryString = &v +} + +// GetPageReturned returns the PageReturned field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedCertificateRequestQuery) GetPageReturned() int32 { + if o == nil || isNil(o.PageReturned) { + var ret int32 + return ret + } + return *o.PageReturned +} + +// GetPageReturnedOk returns a tuple with the PageReturned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedCertificateRequestQuery) GetPageReturnedOk() (*int32, bool) { + if o == nil || isNil(o.PageReturned) { + return nil, false + } + return o.PageReturned, true +} + +// HasPageReturned returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedCertificateRequestQuery) HasPageReturned() bool { + if o != nil && !isNil(o.PageReturned) { + return true + } + + return false +} + +// SetPageReturned gets a reference to the given int32 and assigns it to the PageReturned field. +func (o *ModelsQueryModelsPagedCertificateRequestQuery) SetPageReturned(v int32) { + o.PageReturned = &v +} + +// GetReturnLimit returns the ReturnLimit field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedCertificateRequestQuery) GetReturnLimit() int32 { + if o == nil || isNil(o.ReturnLimit) { + var ret int32 + return ret + } + return *o.ReturnLimit +} + +// GetReturnLimitOk returns a tuple with the ReturnLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedCertificateRequestQuery) GetReturnLimitOk() (*int32, bool) { + if o == nil || isNil(o.ReturnLimit) { + return nil, false + } + return o.ReturnLimit, true +} + +// HasReturnLimit returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedCertificateRequestQuery) HasReturnLimit() bool { + if o != nil && !isNil(o.ReturnLimit) { + return true + } + + return false +} + +// SetReturnLimit gets a reference to the given int32 and assigns it to the ReturnLimit field. +func (o *ModelsQueryModelsPagedCertificateRequestQuery) SetReturnLimit(v int32) { + o.ReturnLimit = &v +} + +// GetSortField returns the SortField field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedCertificateRequestQuery) GetSortField() string { + if o == nil || isNil(o.SortField) { + var ret string + return ret + } + return *o.SortField +} + +// GetSortFieldOk returns a tuple with the SortField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedCertificateRequestQuery) GetSortFieldOk() (*string, bool) { + if o == nil || isNil(o.SortField) { + return nil, false + } + return o.SortField, true +} + +// HasSortField returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedCertificateRequestQuery) HasSortField() bool { + if o != nil && !isNil(o.SortField) { + return true + } + + return false +} + +// SetSortField gets a reference to the given string and assigns it to the SortField field. +func (o *ModelsQueryModelsPagedCertificateRequestQuery) SetSortField(v string) { + o.SortField = &v +} + +// GetSortAscending returns the SortAscending field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedCertificateRequestQuery) GetSortAscending() int32 { + if o == nil || isNil(o.SortAscending) { + var ret int32 + return ret + } + return *o.SortAscending +} + +// GetSortAscendingOk returns a tuple with the SortAscending field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedCertificateRequestQuery) GetSortAscendingOk() (*int32, bool) { + if o == nil || isNil(o.SortAscending) { + return nil, false + } + return o.SortAscending, true +} + +// HasSortAscending returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedCertificateRequestQuery) HasSortAscending() bool { + if o != nil && !isNil(o.SortAscending) { + return true + } + + return false +} + +// SetSortAscending gets a reference to the given int32 and assigns it to the SortAscending field. +func (o *ModelsQueryModelsPagedCertificateRequestQuery) SetSortAscending(v int32) { + o.SortAscending = &v +} + +func (o ModelsQueryModelsPagedCertificateRequestQuery) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsQueryModelsPagedCertificateRequestQuery) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.QueryString) { + toSerialize["QueryString"] = o.QueryString + } + if !isNil(o.PageReturned) { + toSerialize["PageReturned"] = o.PageReturned + } + if !isNil(o.ReturnLimit) { + toSerialize["ReturnLimit"] = o.ReturnLimit + } + if !isNil(o.SortField) { + toSerialize["SortField"] = o.SortField + } + if !isNil(o.SortAscending) { + toSerialize["SortAscending"] = o.SortAscending + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsQueryModelsPagedCertificateRequestQuery) UnmarshalJSON(bytes []byte) (err error) { + varModelsQueryModelsPagedCertificateRequestQuery := _ModelsQueryModelsPagedCertificateRequestQuery{} + + if err = json.Unmarshal(bytes, &varModelsQueryModelsPagedCertificateRequestQuery); err == nil { + *o = ModelsQueryModelsPagedCertificateRequestQuery(varModelsQueryModelsPagedCertificateRequestQuery) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "QueryString") + delete(additionalProperties, "PageReturned") + delete(additionalProperties, "ReturnLimit") + delete(additionalProperties, "SortField") + delete(additionalProperties, "SortAscending") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsQueryModelsPagedCertificateRequestQuery struct { + value *ModelsQueryModelsPagedCertificateRequestQuery + isSet bool +} + +func (v NullableModelsQueryModelsPagedCertificateRequestQuery) Get() *ModelsQueryModelsPagedCertificateRequestQuery { + return v.value +} + +func (v *NullableModelsQueryModelsPagedCertificateRequestQuery) Set(val *ModelsQueryModelsPagedCertificateRequestQuery) { + v.value = val + v.isSet = true +} + +func (v NullableModelsQueryModelsPagedCertificateRequestQuery) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsQueryModelsPagedCertificateRequestQuery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsQueryModelsPagedCertificateRequestQuery(val *ModelsQueryModelsPagedCertificateRequestQuery) *NullableModelsQueryModelsPagedCertificateRequestQuery { + return &NullableModelsQueryModelsPagedCertificateRequestQuery{value: val, isSet: true} +} + +func (v NullableModelsQueryModelsPagedCertificateRequestQuery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsQueryModelsPagedCertificateRequestQuery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_query_models_paged_certificate_store_container_query.go b/v1/api/keyfactor/model_models_query_models_paged_certificate_store_container_query.go new file mode 100644 index 0000000..8510666 --- /dev/null +++ b/v1/api/keyfactor/model_models_query_models_paged_certificate_store_container_query.go @@ -0,0 +1,311 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsQueryModelsPagedCertificateStoreContainerQuery type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsQueryModelsPagedCertificateStoreContainerQuery{} + +// ModelsQueryModelsPagedCertificateStoreContainerQuery struct for ModelsQueryModelsPagedCertificateStoreContainerQuery +type ModelsQueryModelsPagedCertificateStoreContainerQuery struct { + // Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) + QueryString *string `json:"QueryString,omitempty"` + // The current page within the result set to be returned + PageReturned *int32 `json:"PageReturned,omitempty"` + // Maximum number of records to be returned in a single call + ReturnLimit *int32 `json:"ReturnLimit,omitempty"` + // Field by which the results should be sorted (view results via Management Portal for sortable columns) + SortField *string `json:"SortField,omitempty"` + // Field sort direction [0=ascending, 1=descending] + SortAscending *int32 `json:"SortAscending,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsQueryModelsPagedCertificateStoreContainerQuery ModelsQueryModelsPagedCertificateStoreContainerQuery + +// NewModelsQueryModelsPagedCertificateStoreContainerQuery instantiates a new ModelsQueryModelsPagedCertificateStoreContainerQuery object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsQueryModelsPagedCertificateStoreContainerQuery() *ModelsQueryModelsPagedCertificateStoreContainerQuery { + this := ModelsQueryModelsPagedCertificateStoreContainerQuery{} + return &this +} + +// NewModelsQueryModelsPagedCertificateStoreContainerQueryWithDefaults instantiates a new ModelsQueryModelsPagedCertificateStoreContainerQuery object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsQueryModelsPagedCertificateStoreContainerQueryWithDefaults() *ModelsQueryModelsPagedCertificateStoreContainerQuery { + this := ModelsQueryModelsPagedCertificateStoreContainerQuery{} + return &this +} + +// GetQueryString returns the QueryString field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedCertificateStoreContainerQuery) GetQueryString() string { + if o == nil || isNil(o.QueryString) { + var ret string + return ret + } + return *o.QueryString +} + +// GetQueryStringOk returns a tuple with the QueryString field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedCertificateStoreContainerQuery) GetQueryStringOk() (*string, bool) { + if o == nil || isNil(o.QueryString) { + return nil, false + } + return o.QueryString, true +} + +// HasQueryString returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedCertificateStoreContainerQuery) HasQueryString() bool { + if o != nil && !isNil(o.QueryString) { + return true + } + + return false +} + +// SetQueryString gets a reference to the given string and assigns it to the QueryString field. +func (o *ModelsQueryModelsPagedCertificateStoreContainerQuery) SetQueryString(v string) { + o.QueryString = &v +} + +// GetPageReturned returns the PageReturned field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedCertificateStoreContainerQuery) GetPageReturned() int32 { + if o == nil || isNil(o.PageReturned) { + var ret int32 + return ret + } + return *o.PageReturned +} + +// GetPageReturnedOk returns a tuple with the PageReturned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedCertificateStoreContainerQuery) GetPageReturnedOk() (*int32, bool) { + if o == nil || isNil(o.PageReturned) { + return nil, false + } + return o.PageReturned, true +} + +// HasPageReturned returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedCertificateStoreContainerQuery) HasPageReturned() bool { + if o != nil && !isNil(o.PageReturned) { + return true + } + + return false +} + +// SetPageReturned gets a reference to the given int32 and assigns it to the PageReturned field. +func (o *ModelsQueryModelsPagedCertificateStoreContainerQuery) SetPageReturned(v int32) { + o.PageReturned = &v +} + +// GetReturnLimit returns the ReturnLimit field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedCertificateStoreContainerQuery) GetReturnLimit() int32 { + if o == nil || isNil(o.ReturnLimit) { + var ret int32 + return ret + } + return *o.ReturnLimit +} + +// GetReturnLimitOk returns a tuple with the ReturnLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedCertificateStoreContainerQuery) GetReturnLimitOk() (*int32, bool) { + if o == nil || isNil(o.ReturnLimit) { + return nil, false + } + return o.ReturnLimit, true +} + +// HasReturnLimit returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedCertificateStoreContainerQuery) HasReturnLimit() bool { + if o != nil && !isNil(o.ReturnLimit) { + return true + } + + return false +} + +// SetReturnLimit gets a reference to the given int32 and assigns it to the ReturnLimit field. +func (o *ModelsQueryModelsPagedCertificateStoreContainerQuery) SetReturnLimit(v int32) { + o.ReturnLimit = &v +} + +// GetSortField returns the SortField field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedCertificateStoreContainerQuery) GetSortField() string { + if o == nil || isNil(o.SortField) { + var ret string + return ret + } + return *o.SortField +} + +// GetSortFieldOk returns a tuple with the SortField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedCertificateStoreContainerQuery) GetSortFieldOk() (*string, bool) { + if o == nil || isNil(o.SortField) { + return nil, false + } + return o.SortField, true +} + +// HasSortField returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedCertificateStoreContainerQuery) HasSortField() bool { + if o != nil && !isNil(o.SortField) { + return true + } + + return false +} + +// SetSortField gets a reference to the given string and assigns it to the SortField field. +func (o *ModelsQueryModelsPagedCertificateStoreContainerQuery) SetSortField(v string) { + o.SortField = &v +} + +// GetSortAscending returns the SortAscending field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedCertificateStoreContainerQuery) GetSortAscending() int32 { + if o == nil || isNil(o.SortAscending) { + var ret int32 + return ret + } + return *o.SortAscending +} + +// GetSortAscendingOk returns a tuple with the SortAscending field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedCertificateStoreContainerQuery) GetSortAscendingOk() (*int32, bool) { + if o == nil || isNil(o.SortAscending) { + return nil, false + } + return o.SortAscending, true +} + +// HasSortAscending returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedCertificateStoreContainerQuery) HasSortAscending() bool { + if o != nil && !isNil(o.SortAscending) { + return true + } + + return false +} + +// SetSortAscending gets a reference to the given int32 and assigns it to the SortAscending field. +func (o *ModelsQueryModelsPagedCertificateStoreContainerQuery) SetSortAscending(v int32) { + o.SortAscending = &v +} + +func (o ModelsQueryModelsPagedCertificateStoreContainerQuery) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsQueryModelsPagedCertificateStoreContainerQuery) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.QueryString) { + toSerialize["QueryString"] = o.QueryString + } + if !isNil(o.PageReturned) { + toSerialize["PageReturned"] = o.PageReturned + } + if !isNil(o.ReturnLimit) { + toSerialize["ReturnLimit"] = o.ReturnLimit + } + if !isNil(o.SortField) { + toSerialize["SortField"] = o.SortField + } + if !isNil(o.SortAscending) { + toSerialize["SortAscending"] = o.SortAscending + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsQueryModelsPagedCertificateStoreContainerQuery) UnmarshalJSON(bytes []byte) (err error) { + varModelsQueryModelsPagedCertificateStoreContainerQuery := _ModelsQueryModelsPagedCertificateStoreContainerQuery{} + + if err = json.Unmarshal(bytes, &varModelsQueryModelsPagedCertificateStoreContainerQuery); err == nil { + *o = ModelsQueryModelsPagedCertificateStoreContainerQuery(varModelsQueryModelsPagedCertificateStoreContainerQuery) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "QueryString") + delete(additionalProperties, "PageReturned") + delete(additionalProperties, "ReturnLimit") + delete(additionalProperties, "SortField") + delete(additionalProperties, "SortAscending") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsQueryModelsPagedCertificateStoreContainerQuery struct { + value *ModelsQueryModelsPagedCertificateStoreContainerQuery + isSet bool +} + +func (v NullableModelsQueryModelsPagedCertificateStoreContainerQuery) Get() *ModelsQueryModelsPagedCertificateStoreContainerQuery { + return v.value +} + +func (v *NullableModelsQueryModelsPagedCertificateStoreContainerQuery) Set(val *ModelsQueryModelsPagedCertificateStoreContainerQuery) { + v.value = val + v.isSet = true +} + +func (v NullableModelsQueryModelsPagedCertificateStoreContainerQuery) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsQueryModelsPagedCertificateStoreContainerQuery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsQueryModelsPagedCertificateStoreContainerQuery(val *ModelsQueryModelsPagedCertificateStoreContainerQuery) *NullableModelsQueryModelsPagedCertificateStoreContainerQuery { + return &NullableModelsQueryModelsPagedCertificateStoreContainerQuery{value: val, isSet: true} +} + +func (v NullableModelsQueryModelsPagedCertificateStoreContainerQuery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsQueryModelsPagedCertificateStoreContainerQuery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_query_models_paged_certificate_store_inventory_query.go b/v1/api/keyfactor/model_models_query_models_paged_certificate_store_inventory_query.go new file mode 100644 index 0000000..5697dce --- /dev/null +++ b/v1/api/keyfactor/model_models_query_models_paged_certificate_store_inventory_query.go @@ -0,0 +1,273 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsQueryModelsPagedCertificateStoreInventoryQuery type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsQueryModelsPagedCertificateStoreInventoryQuery{} + +// ModelsQueryModelsPagedCertificateStoreInventoryQuery struct for ModelsQueryModelsPagedCertificateStoreInventoryQuery +type ModelsQueryModelsPagedCertificateStoreInventoryQuery struct { + // The current page within the result set to be returned + PageReturned *int32 `json:"PageReturned,omitempty"` + // Maximum number of records to be returned in a single call + ReturnLimit *int32 `json:"ReturnLimit,omitempty"` + // Field by which the results should be sorted (OperationStart, OperationEnd, UserName) + SortField *string `json:"SortField,omitempty"` + // Field sort direction [0=ascending, 1=descending] + SortAscending *int32 `json:"SortAscending,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsQueryModelsPagedCertificateStoreInventoryQuery ModelsQueryModelsPagedCertificateStoreInventoryQuery + +// NewModelsQueryModelsPagedCertificateStoreInventoryQuery instantiates a new ModelsQueryModelsPagedCertificateStoreInventoryQuery object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsQueryModelsPagedCertificateStoreInventoryQuery() *ModelsQueryModelsPagedCertificateStoreInventoryQuery { + this := ModelsQueryModelsPagedCertificateStoreInventoryQuery{} + return &this +} + +// NewModelsQueryModelsPagedCertificateStoreInventoryQueryWithDefaults instantiates a new ModelsQueryModelsPagedCertificateStoreInventoryQuery object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsQueryModelsPagedCertificateStoreInventoryQueryWithDefaults() *ModelsQueryModelsPagedCertificateStoreInventoryQuery { + this := ModelsQueryModelsPagedCertificateStoreInventoryQuery{} + return &this +} + +// GetPageReturned returns the PageReturned field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedCertificateStoreInventoryQuery) GetPageReturned() int32 { + if o == nil || isNil(o.PageReturned) { + var ret int32 + return ret + } + return *o.PageReturned +} + +// GetPageReturnedOk returns a tuple with the PageReturned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedCertificateStoreInventoryQuery) GetPageReturnedOk() (*int32, bool) { + if o == nil || isNil(o.PageReturned) { + return nil, false + } + return o.PageReturned, true +} + +// HasPageReturned returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedCertificateStoreInventoryQuery) HasPageReturned() bool { + if o != nil && !isNil(o.PageReturned) { + return true + } + + return false +} + +// SetPageReturned gets a reference to the given int32 and assigns it to the PageReturned field. +func (o *ModelsQueryModelsPagedCertificateStoreInventoryQuery) SetPageReturned(v int32) { + o.PageReturned = &v +} + +// GetReturnLimit returns the ReturnLimit field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedCertificateStoreInventoryQuery) GetReturnLimit() int32 { + if o == nil || isNil(o.ReturnLimit) { + var ret int32 + return ret + } + return *o.ReturnLimit +} + +// GetReturnLimitOk returns a tuple with the ReturnLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedCertificateStoreInventoryQuery) GetReturnLimitOk() (*int32, bool) { + if o == nil || isNil(o.ReturnLimit) { + return nil, false + } + return o.ReturnLimit, true +} + +// HasReturnLimit returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedCertificateStoreInventoryQuery) HasReturnLimit() bool { + if o != nil && !isNil(o.ReturnLimit) { + return true + } + + return false +} + +// SetReturnLimit gets a reference to the given int32 and assigns it to the ReturnLimit field. +func (o *ModelsQueryModelsPagedCertificateStoreInventoryQuery) SetReturnLimit(v int32) { + o.ReturnLimit = &v +} + +// GetSortField returns the SortField field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedCertificateStoreInventoryQuery) GetSortField() string { + if o == nil || isNil(o.SortField) { + var ret string + return ret + } + return *o.SortField +} + +// GetSortFieldOk returns a tuple with the SortField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedCertificateStoreInventoryQuery) GetSortFieldOk() (*string, bool) { + if o == nil || isNil(o.SortField) { + return nil, false + } + return o.SortField, true +} + +// HasSortField returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedCertificateStoreInventoryQuery) HasSortField() bool { + if o != nil && !isNil(o.SortField) { + return true + } + + return false +} + +// SetSortField gets a reference to the given string and assigns it to the SortField field. +func (o *ModelsQueryModelsPagedCertificateStoreInventoryQuery) SetSortField(v string) { + o.SortField = &v +} + +// GetSortAscending returns the SortAscending field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedCertificateStoreInventoryQuery) GetSortAscending() int32 { + if o == nil || isNil(o.SortAscending) { + var ret int32 + return ret + } + return *o.SortAscending +} + +// GetSortAscendingOk returns a tuple with the SortAscending field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedCertificateStoreInventoryQuery) GetSortAscendingOk() (*int32, bool) { + if o == nil || isNil(o.SortAscending) { + return nil, false + } + return o.SortAscending, true +} + +// HasSortAscending returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedCertificateStoreInventoryQuery) HasSortAscending() bool { + if o != nil && !isNil(o.SortAscending) { + return true + } + + return false +} + +// SetSortAscending gets a reference to the given int32 and assigns it to the SortAscending field. +func (o *ModelsQueryModelsPagedCertificateStoreInventoryQuery) SetSortAscending(v int32) { + o.SortAscending = &v +} + +func (o ModelsQueryModelsPagedCertificateStoreInventoryQuery) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsQueryModelsPagedCertificateStoreInventoryQuery) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.PageReturned) { + toSerialize["PageReturned"] = o.PageReturned + } + if !isNil(o.ReturnLimit) { + toSerialize["ReturnLimit"] = o.ReturnLimit + } + if !isNil(o.SortField) { + toSerialize["SortField"] = o.SortField + } + if !isNil(o.SortAscending) { + toSerialize["SortAscending"] = o.SortAscending + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsQueryModelsPagedCertificateStoreInventoryQuery) UnmarshalJSON(bytes []byte) (err error) { + varModelsQueryModelsPagedCertificateStoreInventoryQuery := _ModelsQueryModelsPagedCertificateStoreInventoryQuery{} + + if err = json.Unmarshal(bytes, &varModelsQueryModelsPagedCertificateStoreInventoryQuery); err == nil { + *o = ModelsQueryModelsPagedCertificateStoreInventoryQuery(varModelsQueryModelsPagedCertificateStoreInventoryQuery) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "PageReturned") + delete(additionalProperties, "ReturnLimit") + delete(additionalProperties, "SortField") + delete(additionalProperties, "SortAscending") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsQueryModelsPagedCertificateStoreInventoryQuery struct { + value *ModelsQueryModelsPagedCertificateStoreInventoryQuery + isSet bool +} + +func (v NullableModelsQueryModelsPagedCertificateStoreInventoryQuery) Get() *ModelsQueryModelsPagedCertificateStoreInventoryQuery { + return v.value +} + +func (v *NullableModelsQueryModelsPagedCertificateStoreInventoryQuery) Set(val *ModelsQueryModelsPagedCertificateStoreInventoryQuery) { + v.value = val + v.isSet = true +} + +func (v NullableModelsQueryModelsPagedCertificateStoreInventoryQuery) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsQueryModelsPagedCertificateStoreInventoryQuery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsQueryModelsPagedCertificateStoreInventoryQuery(val *ModelsQueryModelsPagedCertificateStoreInventoryQuery) *NullableModelsQueryModelsPagedCertificateStoreInventoryQuery { + return &NullableModelsQueryModelsPagedCertificateStoreInventoryQuery{value: val, isSet: true} +} + +func (v NullableModelsQueryModelsPagedCertificateStoreInventoryQuery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsQueryModelsPagedCertificateStoreInventoryQuery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_query_models_paged_certificate_store_query.go b/v1/api/keyfactor/model_models_query_models_paged_certificate_store_query.go new file mode 100644 index 0000000..cea0ee1 --- /dev/null +++ b/v1/api/keyfactor/model_models_query_models_paged_certificate_store_query.go @@ -0,0 +1,311 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsQueryModelsPagedCertificateStoreQuery type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsQueryModelsPagedCertificateStoreQuery{} + +// ModelsQueryModelsPagedCertificateStoreQuery struct for ModelsQueryModelsPagedCertificateStoreQuery +type ModelsQueryModelsPagedCertificateStoreQuery struct { + // Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) + QueryString *string `json:"QueryString,omitempty"` + // The current page within the result set to be returned + PageReturned *int32 `json:"PageReturned,omitempty"` + // Maximum number of records to be returned in a single call + ReturnLimit *int32 `json:"ReturnLimit,omitempty"` + // Field by which the results should be sorted (view results via Management Portal for sortable columns) + SortField *string `json:"SortField,omitempty"` + // Field sort direction [0=ascending, 1=descending] + SortAscending *int32 `json:"SortAscending,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsQueryModelsPagedCertificateStoreQuery ModelsQueryModelsPagedCertificateStoreQuery + +// NewModelsQueryModelsPagedCertificateStoreQuery instantiates a new ModelsQueryModelsPagedCertificateStoreQuery object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsQueryModelsPagedCertificateStoreQuery() *ModelsQueryModelsPagedCertificateStoreQuery { + this := ModelsQueryModelsPagedCertificateStoreQuery{} + return &this +} + +// NewModelsQueryModelsPagedCertificateStoreQueryWithDefaults instantiates a new ModelsQueryModelsPagedCertificateStoreQuery object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsQueryModelsPagedCertificateStoreQueryWithDefaults() *ModelsQueryModelsPagedCertificateStoreQuery { + this := ModelsQueryModelsPagedCertificateStoreQuery{} + return &this +} + +// GetQueryString returns the QueryString field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedCertificateStoreQuery) GetQueryString() string { + if o == nil || isNil(o.QueryString) { + var ret string + return ret + } + return *o.QueryString +} + +// GetQueryStringOk returns a tuple with the QueryString field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedCertificateStoreQuery) GetQueryStringOk() (*string, bool) { + if o == nil || isNil(o.QueryString) { + return nil, false + } + return o.QueryString, true +} + +// HasQueryString returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedCertificateStoreQuery) HasQueryString() bool { + if o != nil && !isNil(o.QueryString) { + return true + } + + return false +} + +// SetQueryString gets a reference to the given string and assigns it to the QueryString field. +func (o *ModelsQueryModelsPagedCertificateStoreQuery) SetQueryString(v string) { + o.QueryString = &v +} + +// GetPageReturned returns the PageReturned field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedCertificateStoreQuery) GetPageReturned() int32 { + if o == nil || isNil(o.PageReturned) { + var ret int32 + return ret + } + return *o.PageReturned +} + +// GetPageReturnedOk returns a tuple with the PageReturned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedCertificateStoreQuery) GetPageReturnedOk() (*int32, bool) { + if o == nil || isNil(o.PageReturned) { + return nil, false + } + return o.PageReturned, true +} + +// HasPageReturned returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedCertificateStoreQuery) HasPageReturned() bool { + if o != nil && !isNil(o.PageReturned) { + return true + } + + return false +} + +// SetPageReturned gets a reference to the given int32 and assigns it to the PageReturned field. +func (o *ModelsQueryModelsPagedCertificateStoreQuery) SetPageReturned(v int32) { + o.PageReturned = &v +} + +// GetReturnLimit returns the ReturnLimit field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedCertificateStoreQuery) GetReturnLimit() int32 { + if o == nil || isNil(o.ReturnLimit) { + var ret int32 + return ret + } + return *o.ReturnLimit +} + +// GetReturnLimitOk returns a tuple with the ReturnLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedCertificateStoreQuery) GetReturnLimitOk() (*int32, bool) { + if o == nil || isNil(o.ReturnLimit) { + return nil, false + } + return o.ReturnLimit, true +} + +// HasReturnLimit returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedCertificateStoreQuery) HasReturnLimit() bool { + if o != nil && !isNil(o.ReturnLimit) { + return true + } + + return false +} + +// SetReturnLimit gets a reference to the given int32 and assigns it to the ReturnLimit field. +func (o *ModelsQueryModelsPagedCertificateStoreQuery) SetReturnLimit(v int32) { + o.ReturnLimit = &v +} + +// GetSortField returns the SortField field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedCertificateStoreQuery) GetSortField() string { + if o == nil || isNil(o.SortField) { + var ret string + return ret + } + return *o.SortField +} + +// GetSortFieldOk returns a tuple with the SortField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedCertificateStoreQuery) GetSortFieldOk() (*string, bool) { + if o == nil || isNil(o.SortField) { + return nil, false + } + return o.SortField, true +} + +// HasSortField returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedCertificateStoreQuery) HasSortField() bool { + if o != nil && !isNil(o.SortField) { + return true + } + + return false +} + +// SetSortField gets a reference to the given string and assigns it to the SortField field. +func (o *ModelsQueryModelsPagedCertificateStoreQuery) SetSortField(v string) { + o.SortField = &v +} + +// GetSortAscending returns the SortAscending field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedCertificateStoreQuery) GetSortAscending() int32 { + if o == nil || isNil(o.SortAscending) { + var ret int32 + return ret + } + return *o.SortAscending +} + +// GetSortAscendingOk returns a tuple with the SortAscending field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedCertificateStoreQuery) GetSortAscendingOk() (*int32, bool) { + if o == nil || isNil(o.SortAscending) { + return nil, false + } + return o.SortAscending, true +} + +// HasSortAscending returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedCertificateStoreQuery) HasSortAscending() bool { + if o != nil && !isNil(o.SortAscending) { + return true + } + + return false +} + +// SetSortAscending gets a reference to the given int32 and assigns it to the SortAscending field. +func (o *ModelsQueryModelsPagedCertificateStoreQuery) SetSortAscending(v int32) { + o.SortAscending = &v +} + +func (o ModelsQueryModelsPagedCertificateStoreQuery) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsQueryModelsPagedCertificateStoreQuery) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.QueryString) { + toSerialize["QueryString"] = o.QueryString + } + if !isNil(o.PageReturned) { + toSerialize["PageReturned"] = o.PageReturned + } + if !isNil(o.ReturnLimit) { + toSerialize["ReturnLimit"] = o.ReturnLimit + } + if !isNil(o.SortField) { + toSerialize["SortField"] = o.SortField + } + if !isNil(o.SortAscending) { + toSerialize["SortAscending"] = o.SortAscending + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsQueryModelsPagedCertificateStoreQuery) UnmarshalJSON(bytes []byte) (err error) { + varModelsQueryModelsPagedCertificateStoreQuery := _ModelsQueryModelsPagedCertificateStoreQuery{} + + if err = json.Unmarshal(bytes, &varModelsQueryModelsPagedCertificateStoreQuery); err == nil { + *o = ModelsQueryModelsPagedCertificateStoreQuery(varModelsQueryModelsPagedCertificateStoreQuery) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "QueryString") + delete(additionalProperties, "PageReturned") + delete(additionalProperties, "ReturnLimit") + delete(additionalProperties, "SortField") + delete(additionalProperties, "SortAscending") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsQueryModelsPagedCertificateStoreQuery struct { + value *ModelsQueryModelsPagedCertificateStoreQuery + isSet bool +} + +func (v NullableModelsQueryModelsPagedCertificateStoreQuery) Get() *ModelsQueryModelsPagedCertificateStoreQuery { + return v.value +} + +func (v *NullableModelsQueryModelsPagedCertificateStoreQuery) Set(val *ModelsQueryModelsPagedCertificateStoreQuery) { + v.value = val + v.isSet = true +} + +func (v NullableModelsQueryModelsPagedCertificateStoreQuery) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsQueryModelsPagedCertificateStoreQuery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsQueryModelsPagedCertificateStoreQuery(val *ModelsQueryModelsPagedCertificateStoreQuery) *NullableModelsQueryModelsPagedCertificateStoreQuery { + return &NullableModelsQueryModelsPagedCertificateStoreQuery{value: val, isSet: true} +} + +func (v NullableModelsQueryModelsPagedCertificateStoreQuery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsQueryModelsPagedCertificateStoreQuery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_query_models_paged_certificate_store_server_query.go b/v1/api/keyfactor/model_models_query_models_paged_certificate_store_server_query.go new file mode 100644 index 0000000..40f695e --- /dev/null +++ b/v1/api/keyfactor/model_models_query_models_paged_certificate_store_server_query.go @@ -0,0 +1,311 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsQueryModelsPagedCertificateStoreServerQuery type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsQueryModelsPagedCertificateStoreServerQuery{} + +// ModelsQueryModelsPagedCertificateStoreServerQuery struct for ModelsQueryModelsPagedCertificateStoreServerQuery +type ModelsQueryModelsPagedCertificateStoreServerQuery struct { + // Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) + QueryString *string `json:"QueryString,omitempty"` + // The current page within the result set to be returned + PageReturned *int32 `json:"PageReturned,omitempty"` + // Maximum number of records to be returned in a single call + ReturnLimit *int32 `json:"ReturnLimit,omitempty"` + // Field by which the results should be sorted (view results via Management Portal for sortable columns) + SortField *string `json:"SortField,omitempty"` + // Field sort direction [0=ascending, 1=descending] + SortAscending *int32 `json:"SortAscending,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsQueryModelsPagedCertificateStoreServerQuery ModelsQueryModelsPagedCertificateStoreServerQuery + +// NewModelsQueryModelsPagedCertificateStoreServerQuery instantiates a new ModelsQueryModelsPagedCertificateStoreServerQuery object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsQueryModelsPagedCertificateStoreServerQuery() *ModelsQueryModelsPagedCertificateStoreServerQuery { + this := ModelsQueryModelsPagedCertificateStoreServerQuery{} + return &this +} + +// NewModelsQueryModelsPagedCertificateStoreServerQueryWithDefaults instantiates a new ModelsQueryModelsPagedCertificateStoreServerQuery object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsQueryModelsPagedCertificateStoreServerQueryWithDefaults() *ModelsQueryModelsPagedCertificateStoreServerQuery { + this := ModelsQueryModelsPagedCertificateStoreServerQuery{} + return &this +} + +// GetQueryString returns the QueryString field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedCertificateStoreServerQuery) GetQueryString() string { + if o == nil || isNil(o.QueryString) { + var ret string + return ret + } + return *o.QueryString +} + +// GetQueryStringOk returns a tuple with the QueryString field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedCertificateStoreServerQuery) GetQueryStringOk() (*string, bool) { + if o == nil || isNil(o.QueryString) { + return nil, false + } + return o.QueryString, true +} + +// HasQueryString returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedCertificateStoreServerQuery) HasQueryString() bool { + if o != nil && !isNil(o.QueryString) { + return true + } + + return false +} + +// SetQueryString gets a reference to the given string and assigns it to the QueryString field. +func (o *ModelsQueryModelsPagedCertificateStoreServerQuery) SetQueryString(v string) { + o.QueryString = &v +} + +// GetPageReturned returns the PageReturned field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedCertificateStoreServerQuery) GetPageReturned() int32 { + if o == nil || isNil(o.PageReturned) { + var ret int32 + return ret + } + return *o.PageReturned +} + +// GetPageReturnedOk returns a tuple with the PageReturned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedCertificateStoreServerQuery) GetPageReturnedOk() (*int32, bool) { + if o == nil || isNil(o.PageReturned) { + return nil, false + } + return o.PageReturned, true +} + +// HasPageReturned returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedCertificateStoreServerQuery) HasPageReturned() bool { + if o != nil && !isNil(o.PageReturned) { + return true + } + + return false +} + +// SetPageReturned gets a reference to the given int32 and assigns it to the PageReturned field. +func (o *ModelsQueryModelsPagedCertificateStoreServerQuery) SetPageReturned(v int32) { + o.PageReturned = &v +} + +// GetReturnLimit returns the ReturnLimit field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedCertificateStoreServerQuery) GetReturnLimit() int32 { + if o == nil || isNil(o.ReturnLimit) { + var ret int32 + return ret + } + return *o.ReturnLimit +} + +// GetReturnLimitOk returns a tuple with the ReturnLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedCertificateStoreServerQuery) GetReturnLimitOk() (*int32, bool) { + if o == nil || isNil(o.ReturnLimit) { + return nil, false + } + return o.ReturnLimit, true +} + +// HasReturnLimit returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedCertificateStoreServerQuery) HasReturnLimit() bool { + if o != nil && !isNil(o.ReturnLimit) { + return true + } + + return false +} + +// SetReturnLimit gets a reference to the given int32 and assigns it to the ReturnLimit field. +func (o *ModelsQueryModelsPagedCertificateStoreServerQuery) SetReturnLimit(v int32) { + o.ReturnLimit = &v +} + +// GetSortField returns the SortField field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedCertificateStoreServerQuery) GetSortField() string { + if o == nil || isNil(o.SortField) { + var ret string + return ret + } + return *o.SortField +} + +// GetSortFieldOk returns a tuple with the SortField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedCertificateStoreServerQuery) GetSortFieldOk() (*string, bool) { + if o == nil || isNil(o.SortField) { + return nil, false + } + return o.SortField, true +} + +// HasSortField returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedCertificateStoreServerQuery) HasSortField() bool { + if o != nil && !isNil(o.SortField) { + return true + } + + return false +} + +// SetSortField gets a reference to the given string and assigns it to the SortField field. +func (o *ModelsQueryModelsPagedCertificateStoreServerQuery) SetSortField(v string) { + o.SortField = &v +} + +// GetSortAscending returns the SortAscending field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedCertificateStoreServerQuery) GetSortAscending() int32 { + if o == nil || isNil(o.SortAscending) { + var ret int32 + return ret + } + return *o.SortAscending +} + +// GetSortAscendingOk returns a tuple with the SortAscending field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedCertificateStoreServerQuery) GetSortAscendingOk() (*int32, bool) { + if o == nil || isNil(o.SortAscending) { + return nil, false + } + return o.SortAscending, true +} + +// HasSortAscending returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedCertificateStoreServerQuery) HasSortAscending() bool { + if o != nil && !isNil(o.SortAscending) { + return true + } + + return false +} + +// SetSortAscending gets a reference to the given int32 and assigns it to the SortAscending field. +func (o *ModelsQueryModelsPagedCertificateStoreServerQuery) SetSortAscending(v int32) { + o.SortAscending = &v +} + +func (o ModelsQueryModelsPagedCertificateStoreServerQuery) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsQueryModelsPagedCertificateStoreServerQuery) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.QueryString) { + toSerialize["QueryString"] = o.QueryString + } + if !isNil(o.PageReturned) { + toSerialize["PageReturned"] = o.PageReturned + } + if !isNil(o.ReturnLimit) { + toSerialize["ReturnLimit"] = o.ReturnLimit + } + if !isNil(o.SortField) { + toSerialize["SortField"] = o.SortField + } + if !isNil(o.SortAscending) { + toSerialize["SortAscending"] = o.SortAscending + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsQueryModelsPagedCertificateStoreServerQuery) UnmarshalJSON(bytes []byte) (err error) { + varModelsQueryModelsPagedCertificateStoreServerQuery := _ModelsQueryModelsPagedCertificateStoreServerQuery{} + + if err = json.Unmarshal(bytes, &varModelsQueryModelsPagedCertificateStoreServerQuery); err == nil { + *o = ModelsQueryModelsPagedCertificateStoreServerQuery(varModelsQueryModelsPagedCertificateStoreServerQuery) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "QueryString") + delete(additionalProperties, "PageReturned") + delete(additionalProperties, "ReturnLimit") + delete(additionalProperties, "SortField") + delete(additionalProperties, "SortAscending") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsQueryModelsPagedCertificateStoreServerQuery struct { + value *ModelsQueryModelsPagedCertificateStoreServerQuery + isSet bool +} + +func (v NullableModelsQueryModelsPagedCertificateStoreServerQuery) Get() *ModelsQueryModelsPagedCertificateStoreServerQuery { + return v.value +} + +func (v *NullableModelsQueryModelsPagedCertificateStoreServerQuery) Set(val *ModelsQueryModelsPagedCertificateStoreServerQuery) { + v.value = val + v.isSet = true +} + +func (v NullableModelsQueryModelsPagedCertificateStoreServerQuery) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsQueryModelsPagedCertificateStoreServerQuery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsQueryModelsPagedCertificateStoreServerQuery(val *ModelsQueryModelsPagedCertificateStoreServerQuery) *NullableModelsQueryModelsPagedCertificateStoreServerQuery { + return &NullableModelsQueryModelsPagedCertificateStoreServerQuery{value: val, isSet: true} +} + +func (v NullableModelsQueryModelsPagedCertificateStoreServerQuery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsQueryModelsPagedCertificateStoreServerQuery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_query_models_paged_custom_report_query.go b/v1/api/keyfactor/model_models_query_models_paged_custom_report_query.go new file mode 100644 index 0000000..f3b3068 --- /dev/null +++ b/v1/api/keyfactor/model_models_query_models_paged_custom_report_query.go @@ -0,0 +1,346 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsQueryModelsPagedCustomReportQuery type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsQueryModelsPagedCustomReportQuery{} + +// ModelsQueryModelsPagedCustomReportQuery struct for ModelsQueryModelsPagedCustomReportQuery +type ModelsQueryModelsPagedCustomReportQuery struct { + AmmendedQuery *string `json:"AmmendedQuery,omitempty"` + // Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) + QueryString *string `json:"QueryString,omitempty"` + // The current page within the result set to be returned + PageReturned *int32 `json:"PageReturned,omitempty"` + // Maximum number of records to be returned in a single call + ReturnLimit *int32 `json:"ReturnLimit,omitempty"` + // Field by which the results should be sorted (view results via Management Portal for sortable columns) + SortField *string `json:"SortField,omitempty"` + // Field sort direction [0=ascending, 1=descending] + SortAscending *int32 `json:"SortAscending,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsQueryModelsPagedCustomReportQuery ModelsQueryModelsPagedCustomReportQuery + +// NewModelsQueryModelsPagedCustomReportQuery instantiates a new ModelsQueryModelsPagedCustomReportQuery object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsQueryModelsPagedCustomReportQuery() *ModelsQueryModelsPagedCustomReportQuery { + this := ModelsQueryModelsPagedCustomReportQuery{} + return &this +} + +// NewModelsQueryModelsPagedCustomReportQueryWithDefaults instantiates a new ModelsQueryModelsPagedCustomReportQuery object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsQueryModelsPagedCustomReportQueryWithDefaults() *ModelsQueryModelsPagedCustomReportQuery { + this := ModelsQueryModelsPagedCustomReportQuery{} + return &this +} + +// GetAmmendedQuery returns the AmmendedQuery field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedCustomReportQuery) GetAmmendedQuery() string { + if o == nil || isNil(o.AmmendedQuery) { + var ret string + return ret + } + return *o.AmmendedQuery +} + +// GetAmmendedQueryOk returns a tuple with the AmmendedQuery field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedCustomReportQuery) GetAmmendedQueryOk() (*string, bool) { + if o == nil || isNil(o.AmmendedQuery) { + return nil, false + } + return o.AmmendedQuery, true +} + +// HasAmmendedQuery returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedCustomReportQuery) HasAmmendedQuery() bool { + if o != nil && !isNil(o.AmmendedQuery) { + return true + } + + return false +} + +// SetAmmendedQuery gets a reference to the given string and assigns it to the AmmendedQuery field. +func (o *ModelsQueryModelsPagedCustomReportQuery) SetAmmendedQuery(v string) { + o.AmmendedQuery = &v +} + +// GetQueryString returns the QueryString field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedCustomReportQuery) GetQueryString() string { + if o == nil || isNil(o.QueryString) { + var ret string + return ret + } + return *o.QueryString +} + +// GetQueryStringOk returns a tuple with the QueryString field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedCustomReportQuery) GetQueryStringOk() (*string, bool) { + if o == nil || isNil(o.QueryString) { + return nil, false + } + return o.QueryString, true +} + +// HasQueryString returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedCustomReportQuery) HasQueryString() bool { + if o != nil && !isNil(o.QueryString) { + return true + } + + return false +} + +// SetQueryString gets a reference to the given string and assigns it to the QueryString field. +func (o *ModelsQueryModelsPagedCustomReportQuery) SetQueryString(v string) { + o.QueryString = &v +} + +// GetPageReturned returns the PageReturned field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedCustomReportQuery) GetPageReturned() int32 { + if o == nil || isNil(o.PageReturned) { + var ret int32 + return ret + } + return *o.PageReturned +} + +// GetPageReturnedOk returns a tuple with the PageReturned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedCustomReportQuery) GetPageReturnedOk() (*int32, bool) { + if o == nil || isNil(o.PageReturned) { + return nil, false + } + return o.PageReturned, true +} + +// HasPageReturned returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedCustomReportQuery) HasPageReturned() bool { + if o != nil && !isNil(o.PageReturned) { + return true + } + + return false +} + +// SetPageReturned gets a reference to the given int32 and assigns it to the PageReturned field. +func (o *ModelsQueryModelsPagedCustomReportQuery) SetPageReturned(v int32) { + o.PageReturned = &v +} + +// GetReturnLimit returns the ReturnLimit field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedCustomReportQuery) GetReturnLimit() int32 { + if o == nil || isNil(o.ReturnLimit) { + var ret int32 + return ret + } + return *o.ReturnLimit +} + +// GetReturnLimitOk returns a tuple with the ReturnLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedCustomReportQuery) GetReturnLimitOk() (*int32, bool) { + if o == nil || isNil(o.ReturnLimit) { + return nil, false + } + return o.ReturnLimit, true +} + +// HasReturnLimit returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedCustomReportQuery) HasReturnLimit() bool { + if o != nil && !isNil(o.ReturnLimit) { + return true + } + + return false +} + +// SetReturnLimit gets a reference to the given int32 and assigns it to the ReturnLimit field. +func (o *ModelsQueryModelsPagedCustomReportQuery) SetReturnLimit(v int32) { + o.ReturnLimit = &v +} + +// GetSortField returns the SortField field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedCustomReportQuery) GetSortField() string { + if o == nil || isNil(o.SortField) { + var ret string + return ret + } + return *o.SortField +} + +// GetSortFieldOk returns a tuple with the SortField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedCustomReportQuery) GetSortFieldOk() (*string, bool) { + if o == nil || isNil(o.SortField) { + return nil, false + } + return o.SortField, true +} + +// HasSortField returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedCustomReportQuery) HasSortField() bool { + if o != nil && !isNil(o.SortField) { + return true + } + + return false +} + +// SetSortField gets a reference to the given string and assigns it to the SortField field. +func (o *ModelsQueryModelsPagedCustomReportQuery) SetSortField(v string) { + o.SortField = &v +} + +// GetSortAscending returns the SortAscending field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedCustomReportQuery) GetSortAscending() int32 { + if o == nil || isNil(o.SortAscending) { + var ret int32 + return ret + } + return *o.SortAscending +} + +// GetSortAscendingOk returns a tuple with the SortAscending field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedCustomReportQuery) GetSortAscendingOk() (*int32, bool) { + if o == nil || isNil(o.SortAscending) { + return nil, false + } + return o.SortAscending, true +} + +// HasSortAscending returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedCustomReportQuery) HasSortAscending() bool { + if o != nil && !isNil(o.SortAscending) { + return true + } + + return false +} + +// SetSortAscending gets a reference to the given int32 and assigns it to the SortAscending field. +func (o *ModelsQueryModelsPagedCustomReportQuery) SetSortAscending(v int32) { + o.SortAscending = &v +} + +func (o ModelsQueryModelsPagedCustomReportQuery) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsQueryModelsPagedCustomReportQuery) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + // skip: AmmendedQuery is readOnly + if !isNil(o.QueryString) { + toSerialize["QueryString"] = o.QueryString + } + if !isNil(o.PageReturned) { + toSerialize["PageReturned"] = o.PageReturned + } + if !isNil(o.ReturnLimit) { + toSerialize["ReturnLimit"] = o.ReturnLimit + } + if !isNil(o.SortField) { + toSerialize["SortField"] = o.SortField + } + if !isNil(o.SortAscending) { + toSerialize["SortAscending"] = o.SortAscending + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsQueryModelsPagedCustomReportQuery) UnmarshalJSON(bytes []byte) (err error) { + varModelsQueryModelsPagedCustomReportQuery := _ModelsQueryModelsPagedCustomReportQuery{} + + if err = json.Unmarshal(bytes, &varModelsQueryModelsPagedCustomReportQuery); err == nil { + *o = ModelsQueryModelsPagedCustomReportQuery(varModelsQueryModelsPagedCustomReportQuery) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "AmmendedQuery") + delete(additionalProperties, "QueryString") + delete(additionalProperties, "PageReturned") + delete(additionalProperties, "ReturnLimit") + delete(additionalProperties, "SortField") + delete(additionalProperties, "SortAscending") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsQueryModelsPagedCustomReportQuery struct { + value *ModelsQueryModelsPagedCustomReportQuery + isSet bool +} + +func (v NullableModelsQueryModelsPagedCustomReportQuery) Get() *ModelsQueryModelsPagedCustomReportQuery { + return v.value +} + +func (v *NullableModelsQueryModelsPagedCustomReportQuery) Set(val *ModelsQueryModelsPagedCustomReportQuery) { + v.value = val + v.isSet = true +} + +func (v NullableModelsQueryModelsPagedCustomReportQuery) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsQueryModelsPagedCustomReportQuery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsQueryModelsPagedCustomReportQuery(val *ModelsQueryModelsPagedCustomReportQuery) *NullableModelsQueryModelsPagedCustomReportQuery { + return &NullableModelsQueryModelsPagedCustomReportQuery{value: val, isSet: true} +} + +func (v NullableModelsQueryModelsPagedCustomReportQuery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsQueryModelsPagedCustomReportQuery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_query_models_paged_denied_alert_query.go b/v1/api/keyfactor/model_models_query_models_paged_denied_alert_query.go new file mode 100644 index 0000000..1ad5781 --- /dev/null +++ b/v1/api/keyfactor/model_models_query_models_paged_denied_alert_query.go @@ -0,0 +1,311 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsQueryModelsPagedDeniedAlertQuery type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsQueryModelsPagedDeniedAlertQuery{} + +// ModelsQueryModelsPagedDeniedAlertQuery struct for ModelsQueryModelsPagedDeniedAlertQuery +type ModelsQueryModelsPagedDeniedAlertQuery struct { + // Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) + QueryString *string `json:"QueryString,omitempty"` + // The current page within the result set to be returned + PageReturned *int32 `json:"PageReturned,omitempty"` + // Maximum number of records to be returned in a single call + ReturnLimit *int32 `json:"ReturnLimit,omitempty"` + // Field by which the results should be sorted (view results via Management Portal for sortable columns) + SortField *string `json:"SortField,omitempty"` + // Field sort direction [0=ascending, 1=descending] + SortAscending *int32 `json:"SortAscending,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsQueryModelsPagedDeniedAlertQuery ModelsQueryModelsPagedDeniedAlertQuery + +// NewModelsQueryModelsPagedDeniedAlertQuery instantiates a new ModelsQueryModelsPagedDeniedAlertQuery object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsQueryModelsPagedDeniedAlertQuery() *ModelsQueryModelsPagedDeniedAlertQuery { + this := ModelsQueryModelsPagedDeniedAlertQuery{} + return &this +} + +// NewModelsQueryModelsPagedDeniedAlertQueryWithDefaults instantiates a new ModelsQueryModelsPagedDeniedAlertQuery object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsQueryModelsPagedDeniedAlertQueryWithDefaults() *ModelsQueryModelsPagedDeniedAlertQuery { + this := ModelsQueryModelsPagedDeniedAlertQuery{} + return &this +} + +// GetQueryString returns the QueryString field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedDeniedAlertQuery) GetQueryString() string { + if o == nil || isNil(o.QueryString) { + var ret string + return ret + } + return *o.QueryString +} + +// GetQueryStringOk returns a tuple with the QueryString field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedDeniedAlertQuery) GetQueryStringOk() (*string, bool) { + if o == nil || isNil(o.QueryString) { + return nil, false + } + return o.QueryString, true +} + +// HasQueryString returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedDeniedAlertQuery) HasQueryString() bool { + if o != nil && !isNil(o.QueryString) { + return true + } + + return false +} + +// SetQueryString gets a reference to the given string and assigns it to the QueryString field. +func (o *ModelsQueryModelsPagedDeniedAlertQuery) SetQueryString(v string) { + o.QueryString = &v +} + +// GetPageReturned returns the PageReturned field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedDeniedAlertQuery) GetPageReturned() int32 { + if o == nil || isNil(o.PageReturned) { + var ret int32 + return ret + } + return *o.PageReturned +} + +// GetPageReturnedOk returns a tuple with the PageReturned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedDeniedAlertQuery) GetPageReturnedOk() (*int32, bool) { + if o == nil || isNil(o.PageReturned) { + return nil, false + } + return o.PageReturned, true +} + +// HasPageReturned returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedDeniedAlertQuery) HasPageReturned() bool { + if o != nil && !isNil(o.PageReturned) { + return true + } + + return false +} + +// SetPageReturned gets a reference to the given int32 and assigns it to the PageReturned field. +func (o *ModelsQueryModelsPagedDeniedAlertQuery) SetPageReturned(v int32) { + o.PageReturned = &v +} + +// GetReturnLimit returns the ReturnLimit field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedDeniedAlertQuery) GetReturnLimit() int32 { + if o == nil || isNil(o.ReturnLimit) { + var ret int32 + return ret + } + return *o.ReturnLimit +} + +// GetReturnLimitOk returns a tuple with the ReturnLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedDeniedAlertQuery) GetReturnLimitOk() (*int32, bool) { + if o == nil || isNil(o.ReturnLimit) { + return nil, false + } + return o.ReturnLimit, true +} + +// HasReturnLimit returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedDeniedAlertQuery) HasReturnLimit() bool { + if o != nil && !isNil(o.ReturnLimit) { + return true + } + + return false +} + +// SetReturnLimit gets a reference to the given int32 and assigns it to the ReturnLimit field. +func (o *ModelsQueryModelsPagedDeniedAlertQuery) SetReturnLimit(v int32) { + o.ReturnLimit = &v +} + +// GetSortField returns the SortField field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedDeniedAlertQuery) GetSortField() string { + if o == nil || isNil(o.SortField) { + var ret string + return ret + } + return *o.SortField +} + +// GetSortFieldOk returns a tuple with the SortField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedDeniedAlertQuery) GetSortFieldOk() (*string, bool) { + if o == nil || isNil(o.SortField) { + return nil, false + } + return o.SortField, true +} + +// HasSortField returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedDeniedAlertQuery) HasSortField() bool { + if o != nil && !isNil(o.SortField) { + return true + } + + return false +} + +// SetSortField gets a reference to the given string and assigns it to the SortField field. +func (o *ModelsQueryModelsPagedDeniedAlertQuery) SetSortField(v string) { + o.SortField = &v +} + +// GetSortAscending returns the SortAscending field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedDeniedAlertQuery) GetSortAscending() int32 { + if o == nil || isNil(o.SortAscending) { + var ret int32 + return ret + } + return *o.SortAscending +} + +// GetSortAscendingOk returns a tuple with the SortAscending field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedDeniedAlertQuery) GetSortAscendingOk() (*int32, bool) { + if o == nil || isNil(o.SortAscending) { + return nil, false + } + return o.SortAscending, true +} + +// HasSortAscending returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedDeniedAlertQuery) HasSortAscending() bool { + if o != nil && !isNil(o.SortAscending) { + return true + } + + return false +} + +// SetSortAscending gets a reference to the given int32 and assigns it to the SortAscending field. +func (o *ModelsQueryModelsPagedDeniedAlertQuery) SetSortAscending(v int32) { + o.SortAscending = &v +} + +func (o ModelsQueryModelsPagedDeniedAlertQuery) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsQueryModelsPagedDeniedAlertQuery) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.QueryString) { + toSerialize["QueryString"] = o.QueryString + } + if !isNil(o.PageReturned) { + toSerialize["PageReturned"] = o.PageReturned + } + if !isNil(o.ReturnLimit) { + toSerialize["ReturnLimit"] = o.ReturnLimit + } + if !isNil(o.SortField) { + toSerialize["SortField"] = o.SortField + } + if !isNil(o.SortAscending) { + toSerialize["SortAscending"] = o.SortAscending + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsQueryModelsPagedDeniedAlertQuery) UnmarshalJSON(bytes []byte) (err error) { + varModelsQueryModelsPagedDeniedAlertQuery := _ModelsQueryModelsPagedDeniedAlertQuery{} + + if err = json.Unmarshal(bytes, &varModelsQueryModelsPagedDeniedAlertQuery); err == nil { + *o = ModelsQueryModelsPagedDeniedAlertQuery(varModelsQueryModelsPagedDeniedAlertQuery) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "QueryString") + delete(additionalProperties, "PageReturned") + delete(additionalProperties, "ReturnLimit") + delete(additionalProperties, "SortField") + delete(additionalProperties, "SortAscending") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsQueryModelsPagedDeniedAlertQuery struct { + value *ModelsQueryModelsPagedDeniedAlertQuery + isSet bool +} + +func (v NullableModelsQueryModelsPagedDeniedAlertQuery) Get() *ModelsQueryModelsPagedDeniedAlertQuery { + return v.value +} + +func (v *NullableModelsQueryModelsPagedDeniedAlertQuery) Set(val *ModelsQueryModelsPagedDeniedAlertQuery) { + v.value = val + v.isSet = true +} + +func (v NullableModelsQueryModelsPagedDeniedAlertQuery) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsQueryModelsPagedDeniedAlertQuery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsQueryModelsPagedDeniedAlertQuery(val *ModelsQueryModelsPagedDeniedAlertQuery) *NullableModelsQueryModelsPagedDeniedAlertQuery { + return &NullableModelsQueryModelsPagedDeniedAlertQuery{value: val, isSet: true} +} + +func (v NullableModelsQueryModelsPagedDeniedAlertQuery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsQueryModelsPagedDeniedAlertQuery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_query_models_paged_expiration_alert_query.go b/v1/api/keyfactor/model_models_query_models_paged_expiration_alert_query.go new file mode 100644 index 0000000..bb86372 --- /dev/null +++ b/v1/api/keyfactor/model_models_query_models_paged_expiration_alert_query.go @@ -0,0 +1,311 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsQueryModelsPagedExpirationAlertQuery type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsQueryModelsPagedExpirationAlertQuery{} + +// ModelsQueryModelsPagedExpirationAlertQuery struct for ModelsQueryModelsPagedExpirationAlertQuery +type ModelsQueryModelsPagedExpirationAlertQuery struct { + // Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) + QueryString *string `json:"QueryString,omitempty"` + // The current page within the result set to be returned + PageReturned *int32 `json:"PageReturned,omitempty"` + // Maximum number of records to be returned in a single call + ReturnLimit *int32 `json:"ReturnLimit,omitempty"` + // Field by which the results should be sorted (view results via Management Portal for sortable columns) + SortField *string `json:"SortField,omitempty"` + // Field sort direction [0=ascending, 1=descending] + SortAscending *int32 `json:"SortAscending,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsQueryModelsPagedExpirationAlertQuery ModelsQueryModelsPagedExpirationAlertQuery + +// NewModelsQueryModelsPagedExpirationAlertQuery instantiates a new ModelsQueryModelsPagedExpirationAlertQuery object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsQueryModelsPagedExpirationAlertQuery() *ModelsQueryModelsPagedExpirationAlertQuery { + this := ModelsQueryModelsPagedExpirationAlertQuery{} + return &this +} + +// NewModelsQueryModelsPagedExpirationAlertQueryWithDefaults instantiates a new ModelsQueryModelsPagedExpirationAlertQuery object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsQueryModelsPagedExpirationAlertQueryWithDefaults() *ModelsQueryModelsPagedExpirationAlertQuery { + this := ModelsQueryModelsPagedExpirationAlertQuery{} + return &this +} + +// GetQueryString returns the QueryString field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedExpirationAlertQuery) GetQueryString() string { + if o == nil || isNil(o.QueryString) { + var ret string + return ret + } + return *o.QueryString +} + +// GetQueryStringOk returns a tuple with the QueryString field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedExpirationAlertQuery) GetQueryStringOk() (*string, bool) { + if o == nil || isNil(o.QueryString) { + return nil, false + } + return o.QueryString, true +} + +// HasQueryString returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedExpirationAlertQuery) HasQueryString() bool { + if o != nil && !isNil(o.QueryString) { + return true + } + + return false +} + +// SetQueryString gets a reference to the given string and assigns it to the QueryString field. +func (o *ModelsQueryModelsPagedExpirationAlertQuery) SetQueryString(v string) { + o.QueryString = &v +} + +// GetPageReturned returns the PageReturned field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedExpirationAlertQuery) GetPageReturned() int32 { + if o == nil || isNil(o.PageReturned) { + var ret int32 + return ret + } + return *o.PageReturned +} + +// GetPageReturnedOk returns a tuple with the PageReturned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedExpirationAlertQuery) GetPageReturnedOk() (*int32, bool) { + if o == nil || isNil(o.PageReturned) { + return nil, false + } + return o.PageReturned, true +} + +// HasPageReturned returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedExpirationAlertQuery) HasPageReturned() bool { + if o != nil && !isNil(o.PageReturned) { + return true + } + + return false +} + +// SetPageReturned gets a reference to the given int32 and assigns it to the PageReturned field. +func (o *ModelsQueryModelsPagedExpirationAlertQuery) SetPageReturned(v int32) { + o.PageReturned = &v +} + +// GetReturnLimit returns the ReturnLimit field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedExpirationAlertQuery) GetReturnLimit() int32 { + if o == nil || isNil(o.ReturnLimit) { + var ret int32 + return ret + } + return *o.ReturnLimit +} + +// GetReturnLimitOk returns a tuple with the ReturnLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedExpirationAlertQuery) GetReturnLimitOk() (*int32, bool) { + if o == nil || isNil(o.ReturnLimit) { + return nil, false + } + return o.ReturnLimit, true +} + +// HasReturnLimit returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedExpirationAlertQuery) HasReturnLimit() bool { + if o != nil && !isNil(o.ReturnLimit) { + return true + } + + return false +} + +// SetReturnLimit gets a reference to the given int32 and assigns it to the ReturnLimit field. +func (o *ModelsQueryModelsPagedExpirationAlertQuery) SetReturnLimit(v int32) { + o.ReturnLimit = &v +} + +// GetSortField returns the SortField field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedExpirationAlertQuery) GetSortField() string { + if o == nil || isNil(o.SortField) { + var ret string + return ret + } + return *o.SortField +} + +// GetSortFieldOk returns a tuple with the SortField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedExpirationAlertQuery) GetSortFieldOk() (*string, bool) { + if o == nil || isNil(o.SortField) { + return nil, false + } + return o.SortField, true +} + +// HasSortField returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedExpirationAlertQuery) HasSortField() bool { + if o != nil && !isNil(o.SortField) { + return true + } + + return false +} + +// SetSortField gets a reference to the given string and assigns it to the SortField field. +func (o *ModelsQueryModelsPagedExpirationAlertQuery) SetSortField(v string) { + o.SortField = &v +} + +// GetSortAscending returns the SortAscending field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedExpirationAlertQuery) GetSortAscending() int32 { + if o == nil || isNil(o.SortAscending) { + var ret int32 + return ret + } + return *o.SortAscending +} + +// GetSortAscendingOk returns a tuple with the SortAscending field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedExpirationAlertQuery) GetSortAscendingOk() (*int32, bool) { + if o == nil || isNil(o.SortAscending) { + return nil, false + } + return o.SortAscending, true +} + +// HasSortAscending returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedExpirationAlertQuery) HasSortAscending() bool { + if o != nil && !isNil(o.SortAscending) { + return true + } + + return false +} + +// SetSortAscending gets a reference to the given int32 and assigns it to the SortAscending field. +func (o *ModelsQueryModelsPagedExpirationAlertQuery) SetSortAscending(v int32) { + o.SortAscending = &v +} + +func (o ModelsQueryModelsPagedExpirationAlertQuery) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsQueryModelsPagedExpirationAlertQuery) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.QueryString) { + toSerialize["QueryString"] = o.QueryString + } + if !isNil(o.PageReturned) { + toSerialize["PageReturned"] = o.PageReturned + } + if !isNil(o.ReturnLimit) { + toSerialize["ReturnLimit"] = o.ReturnLimit + } + if !isNil(o.SortField) { + toSerialize["SortField"] = o.SortField + } + if !isNil(o.SortAscending) { + toSerialize["SortAscending"] = o.SortAscending + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsQueryModelsPagedExpirationAlertQuery) UnmarshalJSON(bytes []byte) (err error) { + varModelsQueryModelsPagedExpirationAlertQuery := _ModelsQueryModelsPagedExpirationAlertQuery{} + + if err = json.Unmarshal(bytes, &varModelsQueryModelsPagedExpirationAlertQuery); err == nil { + *o = ModelsQueryModelsPagedExpirationAlertQuery(varModelsQueryModelsPagedExpirationAlertQuery) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "QueryString") + delete(additionalProperties, "PageReturned") + delete(additionalProperties, "ReturnLimit") + delete(additionalProperties, "SortField") + delete(additionalProperties, "SortAscending") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsQueryModelsPagedExpirationAlertQuery struct { + value *ModelsQueryModelsPagedExpirationAlertQuery + isSet bool +} + +func (v NullableModelsQueryModelsPagedExpirationAlertQuery) Get() *ModelsQueryModelsPagedExpirationAlertQuery { + return v.value +} + +func (v *NullableModelsQueryModelsPagedExpirationAlertQuery) Set(val *ModelsQueryModelsPagedExpirationAlertQuery) { + v.value = val + v.isSet = true +} + +func (v NullableModelsQueryModelsPagedExpirationAlertQuery) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsQueryModelsPagedExpirationAlertQuery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsQueryModelsPagedExpirationAlertQuery(val *ModelsQueryModelsPagedExpirationAlertQuery) *NullableModelsQueryModelsPagedExpirationAlertQuery { + return &NullableModelsQueryModelsPagedExpirationAlertQuery{value: val, isSet: true} +} + +func (v NullableModelsQueryModelsPagedExpirationAlertQuery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsQueryModelsPagedExpirationAlertQuery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_query_models_paged_issued_alert_query.go b/v1/api/keyfactor/model_models_query_models_paged_issued_alert_query.go new file mode 100644 index 0000000..2df6b84 --- /dev/null +++ b/v1/api/keyfactor/model_models_query_models_paged_issued_alert_query.go @@ -0,0 +1,311 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsQueryModelsPagedIssuedAlertQuery type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsQueryModelsPagedIssuedAlertQuery{} + +// ModelsQueryModelsPagedIssuedAlertQuery struct for ModelsQueryModelsPagedIssuedAlertQuery +type ModelsQueryModelsPagedIssuedAlertQuery struct { + // Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) + QueryString *string `json:"QueryString,omitempty"` + // The current page within the result set to be returned + PageReturned *int32 `json:"PageReturned,omitempty"` + // Maximum number of records to be returned in a single call + ReturnLimit *int32 `json:"ReturnLimit,omitempty"` + // Field by which the results should be sorted (view results via Management Portal for sortable columns) + SortField *string `json:"SortField,omitempty"` + // Field sort direction [0=ascending, 1=descending] + SortAscending *int32 `json:"SortAscending,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsQueryModelsPagedIssuedAlertQuery ModelsQueryModelsPagedIssuedAlertQuery + +// NewModelsQueryModelsPagedIssuedAlertQuery instantiates a new ModelsQueryModelsPagedIssuedAlertQuery object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsQueryModelsPagedIssuedAlertQuery() *ModelsQueryModelsPagedIssuedAlertQuery { + this := ModelsQueryModelsPagedIssuedAlertQuery{} + return &this +} + +// NewModelsQueryModelsPagedIssuedAlertQueryWithDefaults instantiates a new ModelsQueryModelsPagedIssuedAlertQuery object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsQueryModelsPagedIssuedAlertQueryWithDefaults() *ModelsQueryModelsPagedIssuedAlertQuery { + this := ModelsQueryModelsPagedIssuedAlertQuery{} + return &this +} + +// GetQueryString returns the QueryString field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedIssuedAlertQuery) GetQueryString() string { + if o == nil || isNil(o.QueryString) { + var ret string + return ret + } + return *o.QueryString +} + +// GetQueryStringOk returns a tuple with the QueryString field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedIssuedAlertQuery) GetQueryStringOk() (*string, bool) { + if o == nil || isNil(o.QueryString) { + return nil, false + } + return o.QueryString, true +} + +// HasQueryString returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedIssuedAlertQuery) HasQueryString() bool { + if o != nil && !isNil(o.QueryString) { + return true + } + + return false +} + +// SetQueryString gets a reference to the given string and assigns it to the QueryString field. +func (o *ModelsQueryModelsPagedIssuedAlertQuery) SetQueryString(v string) { + o.QueryString = &v +} + +// GetPageReturned returns the PageReturned field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedIssuedAlertQuery) GetPageReturned() int32 { + if o == nil || isNil(o.PageReturned) { + var ret int32 + return ret + } + return *o.PageReturned +} + +// GetPageReturnedOk returns a tuple with the PageReturned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedIssuedAlertQuery) GetPageReturnedOk() (*int32, bool) { + if o == nil || isNil(o.PageReturned) { + return nil, false + } + return o.PageReturned, true +} + +// HasPageReturned returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedIssuedAlertQuery) HasPageReturned() bool { + if o != nil && !isNil(o.PageReturned) { + return true + } + + return false +} + +// SetPageReturned gets a reference to the given int32 and assigns it to the PageReturned field. +func (o *ModelsQueryModelsPagedIssuedAlertQuery) SetPageReturned(v int32) { + o.PageReturned = &v +} + +// GetReturnLimit returns the ReturnLimit field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedIssuedAlertQuery) GetReturnLimit() int32 { + if o == nil || isNil(o.ReturnLimit) { + var ret int32 + return ret + } + return *o.ReturnLimit +} + +// GetReturnLimitOk returns a tuple with the ReturnLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedIssuedAlertQuery) GetReturnLimitOk() (*int32, bool) { + if o == nil || isNil(o.ReturnLimit) { + return nil, false + } + return o.ReturnLimit, true +} + +// HasReturnLimit returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedIssuedAlertQuery) HasReturnLimit() bool { + if o != nil && !isNil(o.ReturnLimit) { + return true + } + + return false +} + +// SetReturnLimit gets a reference to the given int32 and assigns it to the ReturnLimit field. +func (o *ModelsQueryModelsPagedIssuedAlertQuery) SetReturnLimit(v int32) { + o.ReturnLimit = &v +} + +// GetSortField returns the SortField field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedIssuedAlertQuery) GetSortField() string { + if o == nil || isNil(o.SortField) { + var ret string + return ret + } + return *o.SortField +} + +// GetSortFieldOk returns a tuple with the SortField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedIssuedAlertQuery) GetSortFieldOk() (*string, bool) { + if o == nil || isNil(o.SortField) { + return nil, false + } + return o.SortField, true +} + +// HasSortField returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedIssuedAlertQuery) HasSortField() bool { + if o != nil && !isNil(o.SortField) { + return true + } + + return false +} + +// SetSortField gets a reference to the given string and assigns it to the SortField field. +func (o *ModelsQueryModelsPagedIssuedAlertQuery) SetSortField(v string) { + o.SortField = &v +} + +// GetSortAscending returns the SortAscending field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedIssuedAlertQuery) GetSortAscending() int32 { + if o == nil || isNil(o.SortAscending) { + var ret int32 + return ret + } + return *o.SortAscending +} + +// GetSortAscendingOk returns a tuple with the SortAscending field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedIssuedAlertQuery) GetSortAscendingOk() (*int32, bool) { + if o == nil || isNil(o.SortAscending) { + return nil, false + } + return o.SortAscending, true +} + +// HasSortAscending returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedIssuedAlertQuery) HasSortAscending() bool { + if o != nil && !isNil(o.SortAscending) { + return true + } + + return false +} + +// SetSortAscending gets a reference to the given int32 and assigns it to the SortAscending field. +func (o *ModelsQueryModelsPagedIssuedAlertQuery) SetSortAscending(v int32) { + o.SortAscending = &v +} + +func (o ModelsQueryModelsPagedIssuedAlertQuery) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsQueryModelsPagedIssuedAlertQuery) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.QueryString) { + toSerialize["QueryString"] = o.QueryString + } + if !isNil(o.PageReturned) { + toSerialize["PageReturned"] = o.PageReturned + } + if !isNil(o.ReturnLimit) { + toSerialize["ReturnLimit"] = o.ReturnLimit + } + if !isNil(o.SortField) { + toSerialize["SortField"] = o.SortField + } + if !isNil(o.SortAscending) { + toSerialize["SortAscending"] = o.SortAscending + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsQueryModelsPagedIssuedAlertQuery) UnmarshalJSON(bytes []byte) (err error) { + varModelsQueryModelsPagedIssuedAlertQuery := _ModelsQueryModelsPagedIssuedAlertQuery{} + + if err = json.Unmarshal(bytes, &varModelsQueryModelsPagedIssuedAlertQuery); err == nil { + *o = ModelsQueryModelsPagedIssuedAlertQuery(varModelsQueryModelsPagedIssuedAlertQuery) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "QueryString") + delete(additionalProperties, "PageReturned") + delete(additionalProperties, "ReturnLimit") + delete(additionalProperties, "SortField") + delete(additionalProperties, "SortAscending") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsQueryModelsPagedIssuedAlertQuery struct { + value *ModelsQueryModelsPagedIssuedAlertQuery + isSet bool +} + +func (v NullableModelsQueryModelsPagedIssuedAlertQuery) Get() *ModelsQueryModelsPagedIssuedAlertQuery { + return v.value +} + +func (v *NullableModelsQueryModelsPagedIssuedAlertQuery) Set(val *ModelsQueryModelsPagedIssuedAlertQuery) { + v.value = val + v.isSet = true +} + +func (v NullableModelsQueryModelsPagedIssuedAlertQuery) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsQueryModelsPagedIssuedAlertQuery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsQueryModelsPagedIssuedAlertQuery(val *ModelsQueryModelsPagedIssuedAlertQuery) *NullableModelsQueryModelsPagedIssuedAlertQuery { + return &NullableModelsQueryModelsPagedIssuedAlertQuery{value: val, isSet: true} +} + +func (v NullableModelsQueryModelsPagedIssuedAlertQuery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsQueryModelsPagedIssuedAlertQuery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_query_models_paged_key_rotation_alert_query.go b/v1/api/keyfactor/model_models_query_models_paged_key_rotation_alert_query.go new file mode 100644 index 0000000..5e12d41 --- /dev/null +++ b/v1/api/keyfactor/model_models_query_models_paged_key_rotation_alert_query.go @@ -0,0 +1,311 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsQueryModelsPagedKeyRotationAlertQuery type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsQueryModelsPagedKeyRotationAlertQuery{} + +// ModelsQueryModelsPagedKeyRotationAlertQuery struct for ModelsQueryModelsPagedKeyRotationAlertQuery +type ModelsQueryModelsPagedKeyRotationAlertQuery struct { + // Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) + QueryString *string `json:"QueryString,omitempty"` + // The current page within the result set to be returned + PageReturned *int32 `json:"PageReturned,omitempty"` + // Maximum number of records to be returned in a single call + ReturnLimit *int32 `json:"ReturnLimit,omitempty"` + // Field by which the results should be sorted (view results via Management Portal for sortable columns) + SortField *string `json:"SortField,omitempty"` + // Field sort direction [0=ascending, 1=descending] + SortAscending *int32 `json:"SortAscending,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsQueryModelsPagedKeyRotationAlertQuery ModelsQueryModelsPagedKeyRotationAlertQuery + +// NewModelsQueryModelsPagedKeyRotationAlertQuery instantiates a new ModelsQueryModelsPagedKeyRotationAlertQuery object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsQueryModelsPagedKeyRotationAlertQuery() *ModelsQueryModelsPagedKeyRotationAlertQuery { + this := ModelsQueryModelsPagedKeyRotationAlertQuery{} + return &this +} + +// NewModelsQueryModelsPagedKeyRotationAlertQueryWithDefaults instantiates a new ModelsQueryModelsPagedKeyRotationAlertQuery object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsQueryModelsPagedKeyRotationAlertQueryWithDefaults() *ModelsQueryModelsPagedKeyRotationAlertQuery { + this := ModelsQueryModelsPagedKeyRotationAlertQuery{} + return &this +} + +// GetQueryString returns the QueryString field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedKeyRotationAlertQuery) GetQueryString() string { + if o == nil || isNil(o.QueryString) { + var ret string + return ret + } + return *o.QueryString +} + +// GetQueryStringOk returns a tuple with the QueryString field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedKeyRotationAlertQuery) GetQueryStringOk() (*string, bool) { + if o == nil || isNil(o.QueryString) { + return nil, false + } + return o.QueryString, true +} + +// HasQueryString returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedKeyRotationAlertQuery) HasQueryString() bool { + if o != nil && !isNil(o.QueryString) { + return true + } + + return false +} + +// SetQueryString gets a reference to the given string and assigns it to the QueryString field. +func (o *ModelsQueryModelsPagedKeyRotationAlertQuery) SetQueryString(v string) { + o.QueryString = &v +} + +// GetPageReturned returns the PageReturned field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedKeyRotationAlertQuery) GetPageReturned() int32 { + if o == nil || isNil(o.PageReturned) { + var ret int32 + return ret + } + return *o.PageReturned +} + +// GetPageReturnedOk returns a tuple with the PageReturned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedKeyRotationAlertQuery) GetPageReturnedOk() (*int32, bool) { + if o == nil || isNil(o.PageReturned) { + return nil, false + } + return o.PageReturned, true +} + +// HasPageReturned returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedKeyRotationAlertQuery) HasPageReturned() bool { + if o != nil && !isNil(o.PageReturned) { + return true + } + + return false +} + +// SetPageReturned gets a reference to the given int32 and assigns it to the PageReturned field. +func (o *ModelsQueryModelsPagedKeyRotationAlertQuery) SetPageReturned(v int32) { + o.PageReturned = &v +} + +// GetReturnLimit returns the ReturnLimit field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedKeyRotationAlertQuery) GetReturnLimit() int32 { + if o == nil || isNil(o.ReturnLimit) { + var ret int32 + return ret + } + return *o.ReturnLimit +} + +// GetReturnLimitOk returns a tuple with the ReturnLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedKeyRotationAlertQuery) GetReturnLimitOk() (*int32, bool) { + if o == nil || isNil(o.ReturnLimit) { + return nil, false + } + return o.ReturnLimit, true +} + +// HasReturnLimit returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedKeyRotationAlertQuery) HasReturnLimit() bool { + if o != nil && !isNil(o.ReturnLimit) { + return true + } + + return false +} + +// SetReturnLimit gets a reference to the given int32 and assigns it to the ReturnLimit field. +func (o *ModelsQueryModelsPagedKeyRotationAlertQuery) SetReturnLimit(v int32) { + o.ReturnLimit = &v +} + +// GetSortField returns the SortField field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedKeyRotationAlertQuery) GetSortField() string { + if o == nil || isNil(o.SortField) { + var ret string + return ret + } + return *o.SortField +} + +// GetSortFieldOk returns a tuple with the SortField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedKeyRotationAlertQuery) GetSortFieldOk() (*string, bool) { + if o == nil || isNil(o.SortField) { + return nil, false + } + return o.SortField, true +} + +// HasSortField returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedKeyRotationAlertQuery) HasSortField() bool { + if o != nil && !isNil(o.SortField) { + return true + } + + return false +} + +// SetSortField gets a reference to the given string and assigns it to the SortField field. +func (o *ModelsQueryModelsPagedKeyRotationAlertQuery) SetSortField(v string) { + o.SortField = &v +} + +// GetSortAscending returns the SortAscending field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedKeyRotationAlertQuery) GetSortAscending() int32 { + if o == nil || isNil(o.SortAscending) { + var ret int32 + return ret + } + return *o.SortAscending +} + +// GetSortAscendingOk returns a tuple with the SortAscending field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedKeyRotationAlertQuery) GetSortAscendingOk() (*int32, bool) { + if o == nil || isNil(o.SortAscending) { + return nil, false + } + return o.SortAscending, true +} + +// HasSortAscending returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedKeyRotationAlertQuery) HasSortAscending() bool { + if o != nil && !isNil(o.SortAscending) { + return true + } + + return false +} + +// SetSortAscending gets a reference to the given int32 and assigns it to the SortAscending field. +func (o *ModelsQueryModelsPagedKeyRotationAlertQuery) SetSortAscending(v int32) { + o.SortAscending = &v +} + +func (o ModelsQueryModelsPagedKeyRotationAlertQuery) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsQueryModelsPagedKeyRotationAlertQuery) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.QueryString) { + toSerialize["QueryString"] = o.QueryString + } + if !isNil(o.PageReturned) { + toSerialize["PageReturned"] = o.PageReturned + } + if !isNil(o.ReturnLimit) { + toSerialize["ReturnLimit"] = o.ReturnLimit + } + if !isNil(o.SortField) { + toSerialize["SortField"] = o.SortField + } + if !isNil(o.SortAscending) { + toSerialize["SortAscending"] = o.SortAscending + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsQueryModelsPagedKeyRotationAlertQuery) UnmarshalJSON(bytes []byte) (err error) { + varModelsQueryModelsPagedKeyRotationAlertQuery := _ModelsQueryModelsPagedKeyRotationAlertQuery{} + + if err = json.Unmarshal(bytes, &varModelsQueryModelsPagedKeyRotationAlertQuery); err == nil { + *o = ModelsQueryModelsPagedKeyRotationAlertQuery(varModelsQueryModelsPagedKeyRotationAlertQuery) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "QueryString") + delete(additionalProperties, "PageReturned") + delete(additionalProperties, "ReturnLimit") + delete(additionalProperties, "SortField") + delete(additionalProperties, "SortAscending") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsQueryModelsPagedKeyRotationAlertQuery struct { + value *ModelsQueryModelsPagedKeyRotationAlertQuery + isSet bool +} + +func (v NullableModelsQueryModelsPagedKeyRotationAlertQuery) Get() *ModelsQueryModelsPagedKeyRotationAlertQuery { + return v.value +} + +func (v *NullableModelsQueryModelsPagedKeyRotationAlertQuery) Set(val *ModelsQueryModelsPagedKeyRotationAlertQuery) { + v.value = val + v.isSet = true +} + +func (v NullableModelsQueryModelsPagedKeyRotationAlertQuery) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsQueryModelsPagedKeyRotationAlertQuery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsQueryModelsPagedKeyRotationAlertQuery(val *ModelsQueryModelsPagedKeyRotationAlertQuery) *NullableModelsQueryModelsPagedKeyRotationAlertQuery { + return &NullableModelsQueryModelsPagedKeyRotationAlertQuery{value: val, isSet: true} +} + +func (v NullableModelsQueryModelsPagedKeyRotationAlertQuery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsQueryModelsPagedKeyRotationAlertQuery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_query_models_paged_legacy_denied_request_query.go b/v1/api/keyfactor/model_models_query_models_paged_legacy_denied_request_query.go new file mode 100644 index 0000000..d9ad19c --- /dev/null +++ b/v1/api/keyfactor/model_models_query_models_paged_legacy_denied_request_query.go @@ -0,0 +1,311 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsQueryModelsPagedLegacyDeniedRequestQuery type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsQueryModelsPagedLegacyDeniedRequestQuery{} + +// ModelsQueryModelsPagedLegacyDeniedRequestQuery struct for ModelsQueryModelsPagedLegacyDeniedRequestQuery +type ModelsQueryModelsPagedLegacyDeniedRequestQuery struct { + // Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) + QueryString *string `json:"QueryString,omitempty"` + // The current page within the result set to be returned + PageReturned *int32 `json:"PageReturned,omitempty"` + // Maximum number of records to be returned in a single call + ReturnLimit *int32 `json:"ReturnLimit,omitempty"` + // Field by which the results should be sorted (view results via Management Portal for sortable columns) + SortField *string `json:"SortField,omitempty"` + // Field sort direction [0=ascending, 1=descending] + SortAscending *int32 `json:"SortAscending,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsQueryModelsPagedLegacyDeniedRequestQuery ModelsQueryModelsPagedLegacyDeniedRequestQuery + +// NewModelsQueryModelsPagedLegacyDeniedRequestQuery instantiates a new ModelsQueryModelsPagedLegacyDeniedRequestQuery object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsQueryModelsPagedLegacyDeniedRequestQuery() *ModelsQueryModelsPagedLegacyDeniedRequestQuery { + this := ModelsQueryModelsPagedLegacyDeniedRequestQuery{} + return &this +} + +// NewModelsQueryModelsPagedLegacyDeniedRequestQueryWithDefaults instantiates a new ModelsQueryModelsPagedLegacyDeniedRequestQuery object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsQueryModelsPagedLegacyDeniedRequestQueryWithDefaults() *ModelsQueryModelsPagedLegacyDeniedRequestQuery { + this := ModelsQueryModelsPagedLegacyDeniedRequestQuery{} + return &this +} + +// GetQueryString returns the QueryString field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedLegacyDeniedRequestQuery) GetQueryString() string { + if o == nil || isNil(o.QueryString) { + var ret string + return ret + } + return *o.QueryString +} + +// GetQueryStringOk returns a tuple with the QueryString field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedLegacyDeniedRequestQuery) GetQueryStringOk() (*string, bool) { + if o == nil || isNil(o.QueryString) { + return nil, false + } + return o.QueryString, true +} + +// HasQueryString returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedLegacyDeniedRequestQuery) HasQueryString() bool { + if o != nil && !isNil(o.QueryString) { + return true + } + + return false +} + +// SetQueryString gets a reference to the given string and assigns it to the QueryString field. +func (o *ModelsQueryModelsPagedLegacyDeniedRequestQuery) SetQueryString(v string) { + o.QueryString = &v +} + +// GetPageReturned returns the PageReturned field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedLegacyDeniedRequestQuery) GetPageReturned() int32 { + if o == nil || isNil(o.PageReturned) { + var ret int32 + return ret + } + return *o.PageReturned +} + +// GetPageReturnedOk returns a tuple with the PageReturned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedLegacyDeniedRequestQuery) GetPageReturnedOk() (*int32, bool) { + if o == nil || isNil(o.PageReturned) { + return nil, false + } + return o.PageReturned, true +} + +// HasPageReturned returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedLegacyDeniedRequestQuery) HasPageReturned() bool { + if o != nil && !isNil(o.PageReturned) { + return true + } + + return false +} + +// SetPageReturned gets a reference to the given int32 and assigns it to the PageReturned field. +func (o *ModelsQueryModelsPagedLegacyDeniedRequestQuery) SetPageReturned(v int32) { + o.PageReturned = &v +} + +// GetReturnLimit returns the ReturnLimit field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedLegacyDeniedRequestQuery) GetReturnLimit() int32 { + if o == nil || isNil(o.ReturnLimit) { + var ret int32 + return ret + } + return *o.ReturnLimit +} + +// GetReturnLimitOk returns a tuple with the ReturnLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedLegacyDeniedRequestQuery) GetReturnLimitOk() (*int32, bool) { + if o == nil || isNil(o.ReturnLimit) { + return nil, false + } + return o.ReturnLimit, true +} + +// HasReturnLimit returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedLegacyDeniedRequestQuery) HasReturnLimit() bool { + if o != nil && !isNil(o.ReturnLimit) { + return true + } + + return false +} + +// SetReturnLimit gets a reference to the given int32 and assigns it to the ReturnLimit field. +func (o *ModelsQueryModelsPagedLegacyDeniedRequestQuery) SetReturnLimit(v int32) { + o.ReturnLimit = &v +} + +// GetSortField returns the SortField field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedLegacyDeniedRequestQuery) GetSortField() string { + if o == nil || isNil(o.SortField) { + var ret string + return ret + } + return *o.SortField +} + +// GetSortFieldOk returns a tuple with the SortField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedLegacyDeniedRequestQuery) GetSortFieldOk() (*string, bool) { + if o == nil || isNil(o.SortField) { + return nil, false + } + return o.SortField, true +} + +// HasSortField returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedLegacyDeniedRequestQuery) HasSortField() bool { + if o != nil && !isNil(o.SortField) { + return true + } + + return false +} + +// SetSortField gets a reference to the given string and assigns it to the SortField field. +func (o *ModelsQueryModelsPagedLegacyDeniedRequestQuery) SetSortField(v string) { + o.SortField = &v +} + +// GetSortAscending returns the SortAscending field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedLegacyDeniedRequestQuery) GetSortAscending() int32 { + if o == nil || isNil(o.SortAscending) { + var ret int32 + return ret + } + return *o.SortAscending +} + +// GetSortAscendingOk returns a tuple with the SortAscending field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedLegacyDeniedRequestQuery) GetSortAscendingOk() (*int32, bool) { + if o == nil || isNil(o.SortAscending) { + return nil, false + } + return o.SortAscending, true +} + +// HasSortAscending returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedLegacyDeniedRequestQuery) HasSortAscending() bool { + if o != nil && !isNil(o.SortAscending) { + return true + } + + return false +} + +// SetSortAscending gets a reference to the given int32 and assigns it to the SortAscending field. +func (o *ModelsQueryModelsPagedLegacyDeniedRequestQuery) SetSortAscending(v int32) { + o.SortAscending = &v +} + +func (o ModelsQueryModelsPagedLegacyDeniedRequestQuery) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsQueryModelsPagedLegacyDeniedRequestQuery) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.QueryString) { + toSerialize["QueryString"] = o.QueryString + } + if !isNil(o.PageReturned) { + toSerialize["PageReturned"] = o.PageReturned + } + if !isNil(o.ReturnLimit) { + toSerialize["ReturnLimit"] = o.ReturnLimit + } + if !isNil(o.SortField) { + toSerialize["SortField"] = o.SortField + } + if !isNil(o.SortAscending) { + toSerialize["SortAscending"] = o.SortAscending + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsQueryModelsPagedLegacyDeniedRequestQuery) UnmarshalJSON(bytes []byte) (err error) { + varModelsQueryModelsPagedLegacyDeniedRequestQuery := _ModelsQueryModelsPagedLegacyDeniedRequestQuery{} + + if err = json.Unmarshal(bytes, &varModelsQueryModelsPagedLegacyDeniedRequestQuery); err == nil { + *o = ModelsQueryModelsPagedLegacyDeniedRequestQuery(varModelsQueryModelsPagedLegacyDeniedRequestQuery) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "QueryString") + delete(additionalProperties, "PageReturned") + delete(additionalProperties, "ReturnLimit") + delete(additionalProperties, "SortField") + delete(additionalProperties, "SortAscending") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsQueryModelsPagedLegacyDeniedRequestQuery struct { + value *ModelsQueryModelsPagedLegacyDeniedRequestQuery + isSet bool +} + +func (v NullableModelsQueryModelsPagedLegacyDeniedRequestQuery) Get() *ModelsQueryModelsPagedLegacyDeniedRequestQuery { + return v.value +} + +func (v *NullableModelsQueryModelsPagedLegacyDeniedRequestQuery) Set(val *ModelsQueryModelsPagedLegacyDeniedRequestQuery) { + v.value = val + v.isSet = true +} + +func (v NullableModelsQueryModelsPagedLegacyDeniedRequestQuery) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsQueryModelsPagedLegacyDeniedRequestQuery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsQueryModelsPagedLegacyDeniedRequestQuery(val *ModelsQueryModelsPagedLegacyDeniedRequestQuery) *NullableModelsQueryModelsPagedLegacyDeniedRequestQuery { + return &NullableModelsQueryModelsPagedLegacyDeniedRequestQuery{value: val, isSet: true} +} + +func (v NullableModelsQueryModelsPagedLegacyDeniedRequestQuery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsQueryModelsPagedLegacyDeniedRequestQuery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_query_models_paged_metadata_field_query.go b/v1/api/keyfactor/model_models_query_models_paged_metadata_field_query.go new file mode 100644 index 0000000..21656e0 --- /dev/null +++ b/v1/api/keyfactor/model_models_query_models_paged_metadata_field_query.go @@ -0,0 +1,311 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsQueryModelsPagedMetadataFieldQuery type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsQueryModelsPagedMetadataFieldQuery{} + +// ModelsQueryModelsPagedMetadataFieldQuery struct for ModelsQueryModelsPagedMetadataFieldQuery +type ModelsQueryModelsPagedMetadataFieldQuery struct { + // Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) + QueryString *string `json:"QueryString,omitempty"` + // The current page within the result set to be returned + PageReturned *int32 `json:"PageReturned,omitempty"` + // Maximum number of records to be returned in a single call + ReturnLimit *int32 `json:"ReturnLimit,omitempty"` + // Field by which the results should be sorted (view results via Management Portal for sortable columns) + SortField *string `json:"SortField,omitempty"` + // Field sort direction [0=ascending, 1=descending] + SortAscending *int32 `json:"SortAscending,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsQueryModelsPagedMetadataFieldQuery ModelsQueryModelsPagedMetadataFieldQuery + +// NewModelsQueryModelsPagedMetadataFieldQuery instantiates a new ModelsQueryModelsPagedMetadataFieldQuery object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsQueryModelsPagedMetadataFieldQuery() *ModelsQueryModelsPagedMetadataFieldQuery { + this := ModelsQueryModelsPagedMetadataFieldQuery{} + return &this +} + +// NewModelsQueryModelsPagedMetadataFieldQueryWithDefaults instantiates a new ModelsQueryModelsPagedMetadataFieldQuery object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsQueryModelsPagedMetadataFieldQueryWithDefaults() *ModelsQueryModelsPagedMetadataFieldQuery { + this := ModelsQueryModelsPagedMetadataFieldQuery{} + return &this +} + +// GetQueryString returns the QueryString field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedMetadataFieldQuery) GetQueryString() string { + if o == nil || isNil(o.QueryString) { + var ret string + return ret + } + return *o.QueryString +} + +// GetQueryStringOk returns a tuple with the QueryString field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedMetadataFieldQuery) GetQueryStringOk() (*string, bool) { + if o == nil || isNil(o.QueryString) { + return nil, false + } + return o.QueryString, true +} + +// HasQueryString returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedMetadataFieldQuery) HasQueryString() bool { + if o != nil && !isNil(o.QueryString) { + return true + } + + return false +} + +// SetQueryString gets a reference to the given string and assigns it to the QueryString field. +func (o *ModelsQueryModelsPagedMetadataFieldQuery) SetQueryString(v string) { + o.QueryString = &v +} + +// GetPageReturned returns the PageReturned field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedMetadataFieldQuery) GetPageReturned() int32 { + if o == nil || isNil(o.PageReturned) { + var ret int32 + return ret + } + return *o.PageReturned +} + +// GetPageReturnedOk returns a tuple with the PageReturned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedMetadataFieldQuery) GetPageReturnedOk() (*int32, bool) { + if o == nil || isNil(o.PageReturned) { + return nil, false + } + return o.PageReturned, true +} + +// HasPageReturned returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedMetadataFieldQuery) HasPageReturned() bool { + if o != nil && !isNil(o.PageReturned) { + return true + } + + return false +} + +// SetPageReturned gets a reference to the given int32 and assigns it to the PageReturned field. +func (o *ModelsQueryModelsPagedMetadataFieldQuery) SetPageReturned(v int32) { + o.PageReturned = &v +} + +// GetReturnLimit returns the ReturnLimit field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedMetadataFieldQuery) GetReturnLimit() int32 { + if o == nil || isNil(o.ReturnLimit) { + var ret int32 + return ret + } + return *o.ReturnLimit +} + +// GetReturnLimitOk returns a tuple with the ReturnLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedMetadataFieldQuery) GetReturnLimitOk() (*int32, bool) { + if o == nil || isNil(o.ReturnLimit) { + return nil, false + } + return o.ReturnLimit, true +} + +// HasReturnLimit returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedMetadataFieldQuery) HasReturnLimit() bool { + if o != nil && !isNil(o.ReturnLimit) { + return true + } + + return false +} + +// SetReturnLimit gets a reference to the given int32 and assigns it to the ReturnLimit field. +func (o *ModelsQueryModelsPagedMetadataFieldQuery) SetReturnLimit(v int32) { + o.ReturnLimit = &v +} + +// GetSortField returns the SortField field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedMetadataFieldQuery) GetSortField() string { + if o == nil || isNil(o.SortField) { + var ret string + return ret + } + return *o.SortField +} + +// GetSortFieldOk returns a tuple with the SortField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedMetadataFieldQuery) GetSortFieldOk() (*string, bool) { + if o == nil || isNil(o.SortField) { + return nil, false + } + return o.SortField, true +} + +// HasSortField returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedMetadataFieldQuery) HasSortField() bool { + if o != nil && !isNil(o.SortField) { + return true + } + + return false +} + +// SetSortField gets a reference to the given string and assigns it to the SortField field. +func (o *ModelsQueryModelsPagedMetadataFieldQuery) SetSortField(v string) { + o.SortField = &v +} + +// GetSortAscending returns the SortAscending field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedMetadataFieldQuery) GetSortAscending() int32 { + if o == nil || isNil(o.SortAscending) { + var ret int32 + return ret + } + return *o.SortAscending +} + +// GetSortAscendingOk returns a tuple with the SortAscending field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedMetadataFieldQuery) GetSortAscendingOk() (*int32, bool) { + if o == nil || isNil(o.SortAscending) { + return nil, false + } + return o.SortAscending, true +} + +// HasSortAscending returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedMetadataFieldQuery) HasSortAscending() bool { + if o != nil && !isNil(o.SortAscending) { + return true + } + + return false +} + +// SetSortAscending gets a reference to the given int32 and assigns it to the SortAscending field. +func (o *ModelsQueryModelsPagedMetadataFieldQuery) SetSortAscending(v int32) { + o.SortAscending = &v +} + +func (o ModelsQueryModelsPagedMetadataFieldQuery) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsQueryModelsPagedMetadataFieldQuery) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.QueryString) { + toSerialize["QueryString"] = o.QueryString + } + if !isNil(o.PageReturned) { + toSerialize["PageReturned"] = o.PageReturned + } + if !isNil(o.ReturnLimit) { + toSerialize["ReturnLimit"] = o.ReturnLimit + } + if !isNil(o.SortField) { + toSerialize["SortField"] = o.SortField + } + if !isNil(o.SortAscending) { + toSerialize["SortAscending"] = o.SortAscending + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsQueryModelsPagedMetadataFieldQuery) UnmarshalJSON(bytes []byte) (err error) { + varModelsQueryModelsPagedMetadataFieldQuery := _ModelsQueryModelsPagedMetadataFieldQuery{} + + if err = json.Unmarshal(bytes, &varModelsQueryModelsPagedMetadataFieldQuery); err == nil { + *o = ModelsQueryModelsPagedMetadataFieldQuery(varModelsQueryModelsPagedMetadataFieldQuery) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "QueryString") + delete(additionalProperties, "PageReturned") + delete(additionalProperties, "ReturnLimit") + delete(additionalProperties, "SortField") + delete(additionalProperties, "SortAscending") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsQueryModelsPagedMetadataFieldQuery struct { + value *ModelsQueryModelsPagedMetadataFieldQuery + isSet bool +} + +func (v NullableModelsQueryModelsPagedMetadataFieldQuery) Get() *ModelsQueryModelsPagedMetadataFieldQuery { + return v.value +} + +func (v *NullableModelsQueryModelsPagedMetadataFieldQuery) Set(val *ModelsQueryModelsPagedMetadataFieldQuery) { + v.value = val + v.isSet = true +} + +func (v NullableModelsQueryModelsPagedMetadataFieldQuery) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsQueryModelsPagedMetadataFieldQuery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsQueryModelsPagedMetadataFieldQuery(val *ModelsQueryModelsPagedMetadataFieldQuery) *NullableModelsQueryModelsPagedMetadataFieldQuery { + return &NullableModelsQueryModelsPagedMetadataFieldQuery{value: val, isSet: true} +} + +func (v NullableModelsQueryModelsPagedMetadataFieldQuery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsQueryModelsPagedMetadataFieldQuery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_query_models_paged_pending_alert_query.go b/v1/api/keyfactor/model_models_query_models_paged_pending_alert_query.go new file mode 100644 index 0000000..736457b --- /dev/null +++ b/v1/api/keyfactor/model_models_query_models_paged_pending_alert_query.go @@ -0,0 +1,311 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsQueryModelsPagedPendingAlertQuery type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsQueryModelsPagedPendingAlertQuery{} + +// ModelsQueryModelsPagedPendingAlertQuery struct for ModelsQueryModelsPagedPendingAlertQuery +type ModelsQueryModelsPagedPendingAlertQuery struct { + // Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) + QueryString *string `json:"QueryString,omitempty"` + // The current page within the result set to be returned + PageReturned *int32 `json:"PageReturned,omitempty"` + // Maximum number of records to be returned in a single call + ReturnLimit *int32 `json:"ReturnLimit,omitempty"` + // Field by which the results should be sorted (view results via Management Portal for sortable columns) + SortField *string `json:"SortField,omitempty"` + // Field sort direction [0=ascending, 1=descending] + SortAscending *int32 `json:"SortAscending,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsQueryModelsPagedPendingAlertQuery ModelsQueryModelsPagedPendingAlertQuery + +// NewModelsQueryModelsPagedPendingAlertQuery instantiates a new ModelsQueryModelsPagedPendingAlertQuery object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsQueryModelsPagedPendingAlertQuery() *ModelsQueryModelsPagedPendingAlertQuery { + this := ModelsQueryModelsPagedPendingAlertQuery{} + return &this +} + +// NewModelsQueryModelsPagedPendingAlertQueryWithDefaults instantiates a new ModelsQueryModelsPagedPendingAlertQuery object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsQueryModelsPagedPendingAlertQueryWithDefaults() *ModelsQueryModelsPagedPendingAlertQuery { + this := ModelsQueryModelsPagedPendingAlertQuery{} + return &this +} + +// GetQueryString returns the QueryString field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedPendingAlertQuery) GetQueryString() string { + if o == nil || isNil(o.QueryString) { + var ret string + return ret + } + return *o.QueryString +} + +// GetQueryStringOk returns a tuple with the QueryString field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedPendingAlertQuery) GetQueryStringOk() (*string, bool) { + if o == nil || isNil(o.QueryString) { + return nil, false + } + return o.QueryString, true +} + +// HasQueryString returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedPendingAlertQuery) HasQueryString() bool { + if o != nil && !isNil(o.QueryString) { + return true + } + + return false +} + +// SetQueryString gets a reference to the given string and assigns it to the QueryString field. +func (o *ModelsQueryModelsPagedPendingAlertQuery) SetQueryString(v string) { + o.QueryString = &v +} + +// GetPageReturned returns the PageReturned field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedPendingAlertQuery) GetPageReturned() int32 { + if o == nil || isNil(o.PageReturned) { + var ret int32 + return ret + } + return *o.PageReturned +} + +// GetPageReturnedOk returns a tuple with the PageReturned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedPendingAlertQuery) GetPageReturnedOk() (*int32, bool) { + if o == nil || isNil(o.PageReturned) { + return nil, false + } + return o.PageReturned, true +} + +// HasPageReturned returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedPendingAlertQuery) HasPageReturned() bool { + if o != nil && !isNil(o.PageReturned) { + return true + } + + return false +} + +// SetPageReturned gets a reference to the given int32 and assigns it to the PageReturned field. +func (o *ModelsQueryModelsPagedPendingAlertQuery) SetPageReturned(v int32) { + o.PageReturned = &v +} + +// GetReturnLimit returns the ReturnLimit field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedPendingAlertQuery) GetReturnLimit() int32 { + if o == nil || isNil(o.ReturnLimit) { + var ret int32 + return ret + } + return *o.ReturnLimit +} + +// GetReturnLimitOk returns a tuple with the ReturnLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedPendingAlertQuery) GetReturnLimitOk() (*int32, bool) { + if o == nil || isNil(o.ReturnLimit) { + return nil, false + } + return o.ReturnLimit, true +} + +// HasReturnLimit returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedPendingAlertQuery) HasReturnLimit() bool { + if o != nil && !isNil(o.ReturnLimit) { + return true + } + + return false +} + +// SetReturnLimit gets a reference to the given int32 and assigns it to the ReturnLimit field. +func (o *ModelsQueryModelsPagedPendingAlertQuery) SetReturnLimit(v int32) { + o.ReturnLimit = &v +} + +// GetSortField returns the SortField field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedPendingAlertQuery) GetSortField() string { + if o == nil || isNil(o.SortField) { + var ret string + return ret + } + return *o.SortField +} + +// GetSortFieldOk returns a tuple with the SortField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedPendingAlertQuery) GetSortFieldOk() (*string, bool) { + if o == nil || isNil(o.SortField) { + return nil, false + } + return o.SortField, true +} + +// HasSortField returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedPendingAlertQuery) HasSortField() bool { + if o != nil && !isNil(o.SortField) { + return true + } + + return false +} + +// SetSortField gets a reference to the given string and assigns it to the SortField field. +func (o *ModelsQueryModelsPagedPendingAlertQuery) SetSortField(v string) { + o.SortField = &v +} + +// GetSortAscending returns the SortAscending field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedPendingAlertQuery) GetSortAscending() int32 { + if o == nil || isNil(o.SortAscending) { + var ret int32 + return ret + } + return *o.SortAscending +} + +// GetSortAscendingOk returns a tuple with the SortAscending field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedPendingAlertQuery) GetSortAscendingOk() (*int32, bool) { + if o == nil || isNil(o.SortAscending) { + return nil, false + } + return o.SortAscending, true +} + +// HasSortAscending returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedPendingAlertQuery) HasSortAscending() bool { + if o != nil && !isNil(o.SortAscending) { + return true + } + + return false +} + +// SetSortAscending gets a reference to the given int32 and assigns it to the SortAscending field. +func (o *ModelsQueryModelsPagedPendingAlertQuery) SetSortAscending(v int32) { + o.SortAscending = &v +} + +func (o ModelsQueryModelsPagedPendingAlertQuery) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsQueryModelsPagedPendingAlertQuery) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.QueryString) { + toSerialize["QueryString"] = o.QueryString + } + if !isNil(o.PageReturned) { + toSerialize["PageReturned"] = o.PageReturned + } + if !isNil(o.ReturnLimit) { + toSerialize["ReturnLimit"] = o.ReturnLimit + } + if !isNil(o.SortField) { + toSerialize["SortField"] = o.SortField + } + if !isNil(o.SortAscending) { + toSerialize["SortAscending"] = o.SortAscending + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsQueryModelsPagedPendingAlertQuery) UnmarshalJSON(bytes []byte) (err error) { + varModelsQueryModelsPagedPendingAlertQuery := _ModelsQueryModelsPagedPendingAlertQuery{} + + if err = json.Unmarshal(bytes, &varModelsQueryModelsPagedPendingAlertQuery); err == nil { + *o = ModelsQueryModelsPagedPendingAlertQuery(varModelsQueryModelsPagedPendingAlertQuery) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "QueryString") + delete(additionalProperties, "PageReturned") + delete(additionalProperties, "ReturnLimit") + delete(additionalProperties, "SortField") + delete(additionalProperties, "SortAscending") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsQueryModelsPagedPendingAlertQuery struct { + value *ModelsQueryModelsPagedPendingAlertQuery + isSet bool +} + +func (v NullableModelsQueryModelsPagedPendingAlertQuery) Get() *ModelsQueryModelsPagedPendingAlertQuery { + return v.value +} + +func (v *NullableModelsQueryModelsPagedPendingAlertQuery) Set(val *ModelsQueryModelsPagedPendingAlertQuery) { + v.value = val + v.isSet = true +} + +func (v NullableModelsQueryModelsPagedPendingAlertQuery) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsQueryModelsPagedPendingAlertQuery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsQueryModelsPagedPendingAlertQuery(val *ModelsQueryModelsPagedPendingAlertQuery) *NullableModelsQueryModelsPagedPendingAlertQuery { + return &NullableModelsQueryModelsPagedPendingAlertQuery{value: val, isSet: true} +} + +func (v NullableModelsQueryModelsPagedPendingAlertQuery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsQueryModelsPagedPendingAlertQuery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_query_models_paged_pending_csr_query.go b/v1/api/keyfactor/model_models_query_models_paged_pending_csr_query.go new file mode 100644 index 0000000..7cc5292 --- /dev/null +++ b/v1/api/keyfactor/model_models_query_models_paged_pending_csr_query.go @@ -0,0 +1,311 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsQueryModelsPagedPendingCSRQuery type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsQueryModelsPagedPendingCSRQuery{} + +// ModelsQueryModelsPagedPendingCSRQuery struct for ModelsQueryModelsPagedPendingCSRQuery +type ModelsQueryModelsPagedPendingCSRQuery struct { + // Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) + QueryString *string `json:"QueryString,omitempty"` + // The current page within the result set to be returned + PageReturned *int32 `json:"PageReturned,omitempty"` + // Maximum number of records to be returned in a single call + ReturnLimit *int32 `json:"ReturnLimit,omitempty"` + // Field by which the results should be sorted (view results via Management Portal for sortable columns) + SortField *string `json:"SortField,omitempty"` + // Field sort direction [0=ascending, 1=descending] + SortAscending *int32 `json:"SortAscending,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsQueryModelsPagedPendingCSRQuery ModelsQueryModelsPagedPendingCSRQuery + +// NewModelsQueryModelsPagedPendingCSRQuery instantiates a new ModelsQueryModelsPagedPendingCSRQuery object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsQueryModelsPagedPendingCSRQuery() *ModelsQueryModelsPagedPendingCSRQuery { + this := ModelsQueryModelsPagedPendingCSRQuery{} + return &this +} + +// NewModelsQueryModelsPagedPendingCSRQueryWithDefaults instantiates a new ModelsQueryModelsPagedPendingCSRQuery object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsQueryModelsPagedPendingCSRQueryWithDefaults() *ModelsQueryModelsPagedPendingCSRQuery { + this := ModelsQueryModelsPagedPendingCSRQuery{} + return &this +} + +// GetQueryString returns the QueryString field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedPendingCSRQuery) GetQueryString() string { + if o == nil || isNil(o.QueryString) { + var ret string + return ret + } + return *o.QueryString +} + +// GetQueryStringOk returns a tuple with the QueryString field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedPendingCSRQuery) GetQueryStringOk() (*string, bool) { + if o == nil || isNil(o.QueryString) { + return nil, false + } + return o.QueryString, true +} + +// HasQueryString returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedPendingCSRQuery) HasQueryString() bool { + if o != nil && !isNil(o.QueryString) { + return true + } + + return false +} + +// SetQueryString gets a reference to the given string and assigns it to the QueryString field. +func (o *ModelsQueryModelsPagedPendingCSRQuery) SetQueryString(v string) { + o.QueryString = &v +} + +// GetPageReturned returns the PageReturned field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedPendingCSRQuery) GetPageReturned() int32 { + if o == nil || isNil(o.PageReturned) { + var ret int32 + return ret + } + return *o.PageReturned +} + +// GetPageReturnedOk returns a tuple with the PageReturned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedPendingCSRQuery) GetPageReturnedOk() (*int32, bool) { + if o == nil || isNil(o.PageReturned) { + return nil, false + } + return o.PageReturned, true +} + +// HasPageReturned returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedPendingCSRQuery) HasPageReturned() bool { + if o != nil && !isNil(o.PageReturned) { + return true + } + + return false +} + +// SetPageReturned gets a reference to the given int32 and assigns it to the PageReturned field. +func (o *ModelsQueryModelsPagedPendingCSRQuery) SetPageReturned(v int32) { + o.PageReturned = &v +} + +// GetReturnLimit returns the ReturnLimit field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedPendingCSRQuery) GetReturnLimit() int32 { + if o == nil || isNil(o.ReturnLimit) { + var ret int32 + return ret + } + return *o.ReturnLimit +} + +// GetReturnLimitOk returns a tuple with the ReturnLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedPendingCSRQuery) GetReturnLimitOk() (*int32, bool) { + if o == nil || isNil(o.ReturnLimit) { + return nil, false + } + return o.ReturnLimit, true +} + +// HasReturnLimit returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedPendingCSRQuery) HasReturnLimit() bool { + if o != nil && !isNil(o.ReturnLimit) { + return true + } + + return false +} + +// SetReturnLimit gets a reference to the given int32 and assigns it to the ReturnLimit field. +func (o *ModelsQueryModelsPagedPendingCSRQuery) SetReturnLimit(v int32) { + o.ReturnLimit = &v +} + +// GetSortField returns the SortField field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedPendingCSRQuery) GetSortField() string { + if o == nil || isNil(o.SortField) { + var ret string + return ret + } + return *o.SortField +} + +// GetSortFieldOk returns a tuple with the SortField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedPendingCSRQuery) GetSortFieldOk() (*string, bool) { + if o == nil || isNil(o.SortField) { + return nil, false + } + return o.SortField, true +} + +// HasSortField returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedPendingCSRQuery) HasSortField() bool { + if o != nil && !isNil(o.SortField) { + return true + } + + return false +} + +// SetSortField gets a reference to the given string and assigns it to the SortField field. +func (o *ModelsQueryModelsPagedPendingCSRQuery) SetSortField(v string) { + o.SortField = &v +} + +// GetSortAscending returns the SortAscending field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedPendingCSRQuery) GetSortAscending() int32 { + if o == nil || isNil(o.SortAscending) { + var ret int32 + return ret + } + return *o.SortAscending +} + +// GetSortAscendingOk returns a tuple with the SortAscending field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedPendingCSRQuery) GetSortAscendingOk() (*int32, bool) { + if o == nil || isNil(o.SortAscending) { + return nil, false + } + return o.SortAscending, true +} + +// HasSortAscending returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedPendingCSRQuery) HasSortAscending() bool { + if o != nil && !isNil(o.SortAscending) { + return true + } + + return false +} + +// SetSortAscending gets a reference to the given int32 and assigns it to the SortAscending field. +func (o *ModelsQueryModelsPagedPendingCSRQuery) SetSortAscending(v int32) { + o.SortAscending = &v +} + +func (o ModelsQueryModelsPagedPendingCSRQuery) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsQueryModelsPagedPendingCSRQuery) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.QueryString) { + toSerialize["QueryString"] = o.QueryString + } + if !isNil(o.PageReturned) { + toSerialize["PageReturned"] = o.PageReturned + } + if !isNil(o.ReturnLimit) { + toSerialize["ReturnLimit"] = o.ReturnLimit + } + if !isNil(o.SortField) { + toSerialize["SortField"] = o.SortField + } + if !isNil(o.SortAscending) { + toSerialize["SortAscending"] = o.SortAscending + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsQueryModelsPagedPendingCSRQuery) UnmarshalJSON(bytes []byte) (err error) { + varModelsQueryModelsPagedPendingCSRQuery := _ModelsQueryModelsPagedPendingCSRQuery{} + + if err = json.Unmarshal(bytes, &varModelsQueryModelsPagedPendingCSRQuery); err == nil { + *o = ModelsQueryModelsPagedPendingCSRQuery(varModelsQueryModelsPagedPendingCSRQuery) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "QueryString") + delete(additionalProperties, "PageReturned") + delete(additionalProperties, "ReturnLimit") + delete(additionalProperties, "SortField") + delete(additionalProperties, "SortAscending") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsQueryModelsPagedPendingCSRQuery struct { + value *ModelsQueryModelsPagedPendingCSRQuery + isSet bool +} + +func (v NullableModelsQueryModelsPagedPendingCSRQuery) Get() *ModelsQueryModelsPagedPendingCSRQuery { + return v.value +} + +func (v *NullableModelsQueryModelsPagedPendingCSRQuery) Set(val *ModelsQueryModelsPagedPendingCSRQuery) { + v.value = val + v.isSet = true +} + +func (v NullableModelsQueryModelsPagedPendingCSRQuery) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsQueryModelsPagedPendingCSRQuery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsQueryModelsPagedPendingCSRQuery(val *ModelsQueryModelsPagedPendingCSRQuery) *NullableModelsQueryModelsPagedPendingCSRQuery { + return &NullableModelsQueryModelsPagedPendingCSRQuery{value: val, isSet: true} +} + +func (v NullableModelsQueryModelsPagedPendingCSRQuery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsQueryModelsPagedPendingCSRQuery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_query_models_paged_report_query.go b/v1/api/keyfactor/model_models_query_models_paged_report_query.go new file mode 100644 index 0000000..c8a795a --- /dev/null +++ b/v1/api/keyfactor/model_models_query_models_paged_report_query.go @@ -0,0 +1,346 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsQueryModelsPagedReportQuery type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsQueryModelsPagedReportQuery{} + +// ModelsQueryModelsPagedReportQuery struct for ModelsQueryModelsPagedReportQuery +type ModelsQueryModelsPagedReportQuery struct { + AmmendedQuery *string `json:"AmmendedQuery,omitempty"` + // Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) + QueryString *string `json:"QueryString,omitempty"` + // The current page within the result set to be returned + PageReturned *int32 `json:"PageReturned,omitempty"` + // Maximum number of records to be returned in a single call + ReturnLimit *int32 `json:"ReturnLimit,omitempty"` + // Field by which the results should be sorted (view results via Management Portal for sortable columns) + SortField *string `json:"SortField,omitempty"` + // Field sort direction [0=ascending, 1=descending] + SortAscending *int32 `json:"SortAscending,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsQueryModelsPagedReportQuery ModelsQueryModelsPagedReportQuery + +// NewModelsQueryModelsPagedReportQuery instantiates a new ModelsQueryModelsPagedReportQuery object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsQueryModelsPagedReportQuery() *ModelsQueryModelsPagedReportQuery { + this := ModelsQueryModelsPagedReportQuery{} + return &this +} + +// NewModelsQueryModelsPagedReportQueryWithDefaults instantiates a new ModelsQueryModelsPagedReportQuery object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsQueryModelsPagedReportQueryWithDefaults() *ModelsQueryModelsPagedReportQuery { + this := ModelsQueryModelsPagedReportQuery{} + return &this +} + +// GetAmmendedQuery returns the AmmendedQuery field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedReportQuery) GetAmmendedQuery() string { + if o == nil || isNil(o.AmmendedQuery) { + var ret string + return ret + } + return *o.AmmendedQuery +} + +// GetAmmendedQueryOk returns a tuple with the AmmendedQuery field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedReportQuery) GetAmmendedQueryOk() (*string, bool) { + if o == nil || isNil(o.AmmendedQuery) { + return nil, false + } + return o.AmmendedQuery, true +} + +// HasAmmendedQuery returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedReportQuery) HasAmmendedQuery() bool { + if o != nil && !isNil(o.AmmendedQuery) { + return true + } + + return false +} + +// SetAmmendedQuery gets a reference to the given string and assigns it to the AmmendedQuery field. +func (o *ModelsQueryModelsPagedReportQuery) SetAmmendedQuery(v string) { + o.AmmendedQuery = &v +} + +// GetQueryString returns the QueryString field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedReportQuery) GetQueryString() string { + if o == nil || isNil(o.QueryString) { + var ret string + return ret + } + return *o.QueryString +} + +// GetQueryStringOk returns a tuple with the QueryString field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedReportQuery) GetQueryStringOk() (*string, bool) { + if o == nil || isNil(o.QueryString) { + return nil, false + } + return o.QueryString, true +} + +// HasQueryString returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedReportQuery) HasQueryString() bool { + if o != nil && !isNil(o.QueryString) { + return true + } + + return false +} + +// SetQueryString gets a reference to the given string and assigns it to the QueryString field. +func (o *ModelsQueryModelsPagedReportQuery) SetQueryString(v string) { + o.QueryString = &v +} + +// GetPageReturned returns the PageReturned field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedReportQuery) GetPageReturned() int32 { + if o == nil || isNil(o.PageReturned) { + var ret int32 + return ret + } + return *o.PageReturned +} + +// GetPageReturnedOk returns a tuple with the PageReturned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedReportQuery) GetPageReturnedOk() (*int32, bool) { + if o == nil || isNil(o.PageReturned) { + return nil, false + } + return o.PageReturned, true +} + +// HasPageReturned returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedReportQuery) HasPageReturned() bool { + if o != nil && !isNil(o.PageReturned) { + return true + } + + return false +} + +// SetPageReturned gets a reference to the given int32 and assigns it to the PageReturned field. +func (o *ModelsQueryModelsPagedReportQuery) SetPageReturned(v int32) { + o.PageReturned = &v +} + +// GetReturnLimit returns the ReturnLimit field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedReportQuery) GetReturnLimit() int32 { + if o == nil || isNil(o.ReturnLimit) { + var ret int32 + return ret + } + return *o.ReturnLimit +} + +// GetReturnLimitOk returns a tuple with the ReturnLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedReportQuery) GetReturnLimitOk() (*int32, bool) { + if o == nil || isNil(o.ReturnLimit) { + return nil, false + } + return o.ReturnLimit, true +} + +// HasReturnLimit returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedReportQuery) HasReturnLimit() bool { + if o != nil && !isNil(o.ReturnLimit) { + return true + } + + return false +} + +// SetReturnLimit gets a reference to the given int32 and assigns it to the ReturnLimit field. +func (o *ModelsQueryModelsPagedReportQuery) SetReturnLimit(v int32) { + o.ReturnLimit = &v +} + +// GetSortField returns the SortField field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedReportQuery) GetSortField() string { + if o == nil || isNil(o.SortField) { + var ret string + return ret + } + return *o.SortField +} + +// GetSortFieldOk returns a tuple with the SortField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedReportQuery) GetSortFieldOk() (*string, bool) { + if o == nil || isNil(o.SortField) { + return nil, false + } + return o.SortField, true +} + +// HasSortField returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedReportQuery) HasSortField() bool { + if o != nil && !isNil(o.SortField) { + return true + } + + return false +} + +// SetSortField gets a reference to the given string and assigns it to the SortField field. +func (o *ModelsQueryModelsPagedReportQuery) SetSortField(v string) { + o.SortField = &v +} + +// GetSortAscending returns the SortAscending field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedReportQuery) GetSortAscending() int32 { + if o == nil || isNil(o.SortAscending) { + var ret int32 + return ret + } + return *o.SortAscending +} + +// GetSortAscendingOk returns a tuple with the SortAscending field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedReportQuery) GetSortAscendingOk() (*int32, bool) { + if o == nil || isNil(o.SortAscending) { + return nil, false + } + return o.SortAscending, true +} + +// HasSortAscending returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedReportQuery) HasSortAscending() bool { + if o != nil && !isNil(o.SortAscending) { + return true + } + + return false +} + +// SetSortAscending gets a reference to the given int32 and assigns it to the SortAscending field. +func (o *ModelsQueryModelsPagedReportQuery) SetSortAscending(v int32) { + o.SortAscending = &v +} + +func (o ModelsQueryModelsPagedReportQuery) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsQueryModelsPagedReportQuery) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + // skip: AmmendedQuery is readOnly + if !isNil(o.QueryString) { + toSerialize["QueryString"] = o.QueryString + } + if !isNil(o.PageReturned) { + toSerialize["PageReturned"] = o.PageReturned + } + if !isNil(o.ReturnLimit) { + toSerialize["ReturnLimit"] = o.ReturnLimit + } + if !isNil(o.SortField) { + toSerialize["SortField"] = o.SortField + } + if !isNil(o.SortAscending) { + toSerialize["SortAscending"] = o.SortAscending + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsQueryModelsPagedReportQuery) UnmarshalJSON(bytes []byte) (err error) { + varModelsQueryModelsPagedReportQuery := _ModelsQueryModelsPagedReportQuery{} + + if err = json.Unmarshal(bytes, &varModelsQueryModelsPagedReportQuery); err == nil { + *o = ModelsQueryModelsPagedReportQuery(varModelsQueryModelsPagedReportQuery) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "AmmendedQuery") + delete(additionalProperties, "QueryString") + delete(additionalProperties, "PageReturned") + delete(additionalProperties, "ReturnLimit") + delete(additionalProperties, "SortField") + delete(additionalProperties, "SortAscending") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsQueryModelsPagedReportQuery struct { + value *ModelsQueryModelsPagedReportQuery + isSet bool +} + +func (v NullableModelsQueryModelsPagedReportQuery) Get() *ModelsQueryModelsPagedReportQuery { + return v.value +} + +func (v *NullableModelsQueryModelsPagedReportQuery) Set(val *ModelsQueryModelsPagedReportQuery) { + v.value = val + v.isSet = true +} + +func (v NullableModelsQueryModelsPagedReportQuery) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsQueryModelsPagedReportQuery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsQueryModelsPagedReportQuery(val *ModelsQueryModelsPagedReportQuery) *NullableModelsQueryModelsPagedReportQuery { + return &NullableModelsQueryModelsPagedReportQuery{value: val, isSet: true} +} + +func (v NullableModelsQueryModelsPagedReportQuery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsQueryModelsPagedReportQuery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_query_models_paged_report_schedule_query.go b/v1/api/keyfactor/model_models_query_models_paged_report_schedule_query.go new file mode 100644 index 0000000..3a4fcc1 --- /dev/null +++ b/v1/api/keyfactor/model_models_query_models_paged_report_schedule_query.go @@ -0,0 +1,311 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsQueryModelsPagedReportScheduleQuery type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsQueryModelsPagedReportScheduleQuery{} + +// ModelsQueryModelsPagedReportScheduleQuery struct for ModelsQueryModelsPagedReportScheduleQuery +type ModelsQueryModelsPagedReportScheduleQuery struct { + // Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) + QueryString *string `json:"QueryString,omitempty"` + // The current page within the result set to be returned + PageReturned *int32 `json:"PageReturned,omitempty"` + // Maximum number of records to be returned in a single call + ReturnLimit *int32 `json:"ReturnLimit,omitempty"` + // Field by which the results should be sorted (view results via Management Portal for sortable columns) + SortField *string `json:"SortField,omitempty"` + // Field sort direction [0=ascending, 1=descending] + SortAscending *int32 `json:"SortAscending,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsQueryModelsPagedReportScheduleQuery ModelsQueryModelsPagedReportScheduleQuery + +// NewModelsQueryModelsPagedReportScheduleQuery instantiates a new ModelsQueryModelsPagedReportScheduleQuery object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsQueryModelsPagedReportScheduleQuery() *ModelsQueryModelsPagedReportScheduleQuery { + this := ModelsQueryModelsPagedReportScheduleQuery{} + return &this +} + +// NewModelsQueryModelsPagedReportScheduleQueryWithDefaults instantiates a new ModelsQueryModelsPagedReportScheduleQuery object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsQueryModelsPagedReportScheduleQueryWithDefaults() *ModelsQueryModelsPagedReportScheduleQuery { + this := ModelsQueryModelsPagedReportScheduleQuery{} + return &this +} + +// GetQueryString returns the QueryString field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedReportScheduleQuery) GetQueryString() string { + if o == nil || isNil(o.QueryString) { + var ret string + return ret + } + return *o.QueryString +} + +// GetQueryStringOk returns a tuple with the QueryString field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedReportScheduleQuery) GetQueryStringOk() (*string, bool) { + if o == nil || isNil(o.QueryString) { + return nil, false + } + return o.QueryString, true +} + +// HasQueryString returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedReportScheduleQuery) HasQueryString() bool { + if o != nil && !isNil(o.QueryString) { + return true + } + + return false +} + +// SetQueryString gets a reference to the given string and assigns it to the QueryString field. +func (o *ModelsQueryModelsPagedReportScheduleQuery) SetQueryString(v string) { + o.QueryString = &v +} + +// GetPageReturned returns the PageReturned field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedReportScheduleQuery) GetPageReturned() int32 { + if o == nil || isNil(o.PageReturned) { + var ret int32 + return ret + } + return *o.PageReturned +} + +// GetPageReturnedOk returns a tuple with the PageReturned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedReportScheduleQuery) GetPageReturnedOk() (*int32, bool) { + if o == nil || isNil(o.PageReturned) { + return nil, false + } + return o.PageReturned, true +} + +// HasPageReturned returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedReportScheduleQuery) HasPageReturned() bool { + if o != nil && !isNil(o.PageReturned) { + return true + } + + return false +} + +// SetPageReturned gets a reference to the given int32 and assigns it to the PageReturned field. +func (o *ModelsQueryModelsPagedReportScheduleQuery) SetPageReturned(v int32) { + o.PageReturned = &v +} + +// GetReturnLimit returns the ReturnLimit field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedReportScheduleQuery) GetReturnLimit() int32 { + if o == nil || isNil(o.ReturnLimit) { + var ret int32 + return ret + } + return *o.ReturnLimit +} + +// GetReturnLimitOk returns a tuple with the ReturnLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedReportScheduleQuery) GetReturnLimitOk() (*int32, bool) { + if o == nil || isNil(o.ReturnLimit) { + return nil, false + } + return o.ReturnLimit, true +} + +// HasReturnLimit returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedReportScheduleQuery) HasReturnLimit() bool { + if o != nil && !isNil(o.ReturnLimit) { + return true + } + + return false +} + +// SetReturnLimit gets a reference to the given int32 and assigns it to the ReturnLimit field. +func (o *ModelsQueryModelsPagedReportScheduleQuery) SetReturnLimit(v int32) { + o.ReturnLimit = &v +} + +// GetSortField returns the SortField field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedReportScheduleQuery) GetSortField() string { + if o == nil || isNil(o.SortField) { + var ret string + return ret + } + return *o.SortField +} + +// GetSortFieldOk returns a tuple with the SortField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedReportScheduleQuery) GetSortFieldOk() (*string, bool) { + if o == nil || isNil(o.SortField) { + return nil, false + } + return o.SortField, true +} + +// HasSortField returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedReportScheduleQuery) HasSortField() bool { + if o != nil && !isNil(o.SortField) { + return true + } + + return false +} + +// SetSortField gets a reference to the given string and assigns it to the SortField field. +func (o *ModelsQueryModelsPagedReportScheduleQuery) SetSortField(v string) { + o.SortField = &v +} + +// GetSortAscending returns the SortAscending field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedReportScheduleQuery) GetSortAscending() int32 { + if o == nil || isNil(o.SortAscending) { + var ret int32 + return ret + } + return *o.SortAscending +} + +// GetSortAscendingOk returns a tuple with the SortAscending field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedReportScheduleQuery) GetSortAscendingOk() (*int32, bool) { + if o == nil || isNil(o.SortAscending) { + return nil, false + } + return o.SortAscending, true +} + +// HasSortAscending returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedReportScheduleQuery) HasSortAscending() bool { + if o != nil && !isNil(o.SortAscending) { + return true + } + + return false +} + +// SetSortAscending gets a reference to the given int32 and assigns it to the SortAscending field. +func (o *ModelsQueryModelsPagedReportScheduleQuery) SetSortAscending(v int32) { + o.SortAscending = &v +} + +func (o ModelsQueryModelsPagedReportScheduleQuery) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsQueryModelsPagedReportScheduleQuery) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.QueryString) { + toSerialize["QueryString"] = o.QueryString + } + if !isNil(o.PageReturned) { + toSerialize["PageReturned"] = o.PageReturned + } + if !isNil(o.ReturnLimit) { + toSerialize["ReturnLimit"] = o.ReturnLimit + } + if !isNil(o.SortField) { + toSerialize["SortField"] = o.SortField + } + if !isNil(o.SortAscending) { + toSerialize["SortAscending"] = o.SortAscending + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsQueryModelsPagedReportScheduleQuery) UnmarshalJSON(bytes []byte) (err error) { + varModelsQueryModelsPagedReportScheduleQuery := _ModelsQueryModelsPagedReportScheduleQuery{} + + if err = json.Unmarshal(bytes, &varModelsQueryModelsPagedReportScheduleQuery); err == nil { + *o = ModelsQueryModelsPagedReportScheduleQuery(varModelsQueryModelsPagedReportScheduleQuery) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "QueryString") + delete(additionalProperties, "PageReturned") + delete(additionalProperties, "ReturnLimit") + delete(additionalProperties, "SortField") + delete(additionalProperties, "SortAscending") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsQueryModelsPagedReportScheduleQuery struct { + value *ModelsQueryModelsPagedReportScheduleQuery + isSet bool +} + +func (v NullableModelsQueryModelsPagedReportScheduleQuery) Get() *ModelsQueryModelsPagedReportScheduleQuery { + return v.value +} + +func (v *NullableModelsQueryModelsPagedReportScheduleQuery) Set(val *ModelsQueryModelsPagedReportScheduleQuery) { + v.value = val + v.isSet = true +} + +func (v NullableModelsQueryModelsPagedReportScheduleQuery) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsQueryModelsPagedReportScheduleQuery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsQueryModelsPagedReportScheduleQuery(val *ModelsQueryModelsPagedReportScheduleQuery) *NullableModelsQueryModelsPagedReportScheduleQuery { + return &NullableModelsQueryModelsPagedReportScheduleQuery{value: val, isSet: true} +} + +func (v NullableModelsQueryModelsPagedReportScheduleQuery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsQueryModelsPagedReportScheduleQuery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_query_models_paged_revocation_monitoring_query.go b/v1/api/keyfactor/model_models_query_models_paged_revocation_monitoring_query.go new file mode 100644 index 0000000..67addf2 --- /dev/null +++ b/v1/api/keyfactor/model_models_query_models_paged_revocation_monitoring_query.go @@ -0,0 +1,311 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsQueryModelsPagedRevocationMonitoringQuery type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsQueryModelsPagedRevocationMonitoringQuery{} + +// ModelsQueryModelsPagedRevocationMonitoringQuery struct for ModelsQueryModelsPagedRevocationMonitoringQuery +type ModelsQueryModelsPagedRevocationMonitoringQuery struct { + // Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) + QueryString *string `json:"QueryString,omitempty"` + // The current page within the result set to be returned + PageReturned *int32 `json:"PageReturned,omitempty"` + // Maximum number of records to be returned in a single call + ReturnLimit *int32 `json:"ReturnLimit,omitempty"` + // Field by which the results should be sorted (view results via Management Portal for sortable columns) + SortField *string `json:"SortField,omitempty"` + // Field sort direction [0=ascending, 1=descending] + SortAscending *int32 `json:"SortAscending,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsQueryModelsPagedRevocationMonitoringQuery ModelsQueryModelsPagedRevocationMonitoringQuery + +// NewModelsQueryModelsPagedRevocationMonitoringQuery instantiates a new ModelsQueryModelsPagedRevocationMonitoringQuery object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsQueryModelsPagedRevocationMonitoringQuery() *ModelsQueryModelsPagedRevocationMonitoringQuery { + this := ModelsQueryModelsPagedRevocationMonitoringQuery{} + return &this +} + +// NewModelsQueryModelsPagedRevocationMonitoringQueryWithDefaults instantiates a new ModelsQueryModelsPagedRevocationMonitoringQuery object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsQueryModelsPagedRevocationMonitoringQueryWithDefaults() *ModelsQueryModelsPagedRevocationMonitoringQuery { + this := ModelsQueryModelsPagedRevocationMonitoringQuery{} + return &this +} + +// GetQueryString returns the QueryString field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedRevocationMonitoringQuery) GetQueryString() string { + if o == nil || isNil(o.QueryString) { + var ret string + return ret + } + return *o.QueryString +} + +// GetQueryStringOk returns a tuple with the QueryString field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedRevocationMonitoringQuery) GetQueryStringOk() (*string, bool) { + if o == nil || isNil(o.QueryString) { + return nil, false + } + return o.QueryString, true +} + +// HasQueryString returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedRevocationMonitoringQuery) HasQueryString() bool { + if o != nil && !isNil(o.QueryString) { + return true + } + + return false +} + +// SetQueryString gets a reference to the given string and assigns it to the QueryString field. +func (o *ModelsQueryModelsPagedRevocationMonitoringQuery) SetQueryString(v string) { + o.QueryString = &v +} + +// GetPageReturned returns the PageReturned field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedRevocationMonitoringQuery) GetPageReturned() int32 { + if o == nil || isNil(o.PageReturned) { + var ret int32 + return ret + } + return *o.PageReturned +} + +// GetPageReturnedOk returns a tuple with the PageReturned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedRevocationMonitoringQuery) GetPageReturnedOk() (*int32, bool) { + if o == nil || isNil(o.PageReturned) { + return nil, false + } + return o.PageReturned, true +} + +// HasPageReturned returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedRevocationMonitoringQuery) HasPageReturned() bool { + if o != nil && !isNil(o.PageReturned) { + return true + } + + return false +} + +// SetPageReturned gets a reference to the given int32 and assigns it to the PageReturned field. +func (o *ModelsQueryModelsPagedRevocationMonitoringQuery) SetPageReturned(v int32) { + o.PageReturned = &v +} + +// GetReturnLimit returns the ReturnLimit field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedRevocationMonitoringQuery) GetReturnLimit() int32 { + if o == nil || isNil(o.ReturnLimit) { + var ret int32 + return ret + } + return *o.ReturnLimit +} + +// GetReturnLimitOk returns a tuple with the ReturnLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedRevocationMonitoringQuery) GetReturnLimitOk() (*int32, bool) { + if o == nil || isNil(o.ReturnLimit) { + return nil, false + } + return o.ReturnLimit, true +} + +// HasReturnLimit returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedRevocationMonitoringQuery) HasReturnLimit() bool { + if o != nil && !isNil(o.ReturnLimit) { + return true + } + + return false +} + +// SetReturnLimit gets a reference to the given int32 and assigns it to the ReturnLimit field. +func (o *ModelsQueryModelsPagedRevocationMonitoringQuery) SetReturnLimit(v int32) { + o.ReturnLimit = &v +} + +// GetSortField returns the SortField field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedRevocationMonitoringQuery) GetSortField() string { + if o == nil || isNil(o.SortField) { + var ret string + return ret + } + return *o.SortField +} + +// GetSortFieldOk returns a tuple with the SortField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedRevocationMonitoringQuery) GetSortFieldOk() (*string, bool) { + if o == nil || isNil(o.SortField) { + return nil, false + } + return o.SortField, true +} + +// HasSortField returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedRevocationMonitoringQuery) HasSortField() bool { + if o != nil && !isNil(o.SortField) { + return true + } + + return false +} + +// SetSortField gets a reference to the given string and assigns it to the SortField field. +func (o *ModelsQueryModelsPagedRevocationMonitoringQuery) SetSortField(v string) { + o.SortField = &v +} + +// GetSortAscending returns the SortAscending field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedRevocationMonitoringQuery) GetSortAscending() int32 { + if o == nil || isNil(o.SortAscending) { + var ret int32 + return ret + } + return *o.SortAscending +} + +// GetSortAscendingOk returns a tuple with the SortAscending field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedRevocationMonitoringQuery) GetSortAscendingOk() (*int32, bool) { + if o == nil || isNil(o.SortAscending) { + return nil, false + } + return o.SortAscending, true +} + +// HasSortAscending returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedRevocationMonitoringQuery) HasSortAscending() bool { + if o != nil && !isNil(o.SortAscending) { + return true + } + + return false +} + +// SetSortAscending gets a reference to the given int32 and assigns it to the SortAscending field. +func (o *ModelsQueryModelsPagedRevocationMonitoringQuery) SetSortAscending(v int32) { + o.SortAscending = &v +} + +func (o ModelsQueryModelsPagedRevocationMonitoringQuery) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsQueryModelsPagedRevocationMonitoringQuery) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.QueryString) { + toSerialize["QueryString"] = o.QueryString + } + if !isNil(o.PageReturned) { + toSerialize["PageReturned"] = o.PageReturned + } + if !isNil(o.ReturnLimit) { + toSerialize["ReturnLimit"] = o.ReturnLimit + } + if !isNil(o.SortField) { + toSerialize["SortField"] = o.SortField + } + if !isNil(o.SortAscending) { + toSerialize["SortAscending"] = o.SortAscending + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsQueryModelsPagedRevocationMonitoringQuery) UnmarshalJSON(bytes []byte) (err error) { + varModelsQueryModelsPagedRevocationMonitoringQuery := _ModelsQueryModelsPagedRevocationMonitoringQuery{} + + if err = json.Unmarshal(bytes, &varModelsQueryModelsPagedRevocationMonitoringQuery); err == nil { + *o = ModelsQueryModelsPagedRevocationMonitoringQuery(varModelsQueryModelsPagedRevocationMonitoringQuery) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "QueryString") + delete(additionalProperties, "PageReturned") + delete(additionalProperties, "ReturnLimit") + delete(additionalProperties, "SortField") + delete(additionalProperties, "SortAscending") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsQueryModelsPagedRevocationMonitoringQuery struct { + value *ModelsQueryModelsPagedRevocationMonitoringQuery + isSet bool +} + +func (v NullableModelsQueryModelsPagedRevocationMonitoringQuery) Get() *ModelsQueryModelsPagedRevocationMonitoringQuery { + return v.value +} + +func (v *NullableModelsQueryModelsPagedRevocationMonitoringQuery) Set(val *ModelsQueryModelsPagedRevocationMonitoringQuery) { + v.value = val + v.isSet = true +} + +func (v NullableModelsQueryModelsPagedRevocationMonitoringQuery) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsQueryModelsPagedRevocationMonitoringQuery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsQueryModelsPagedRevocationMonitoringQuery(val *ModelsQueryModelsPagedRevocationMonitoringQuery) *NullableModelsQueryModelsPagedRevocationMonitoringQuery { + return &NullableModelsQueryModelsPagedRevocationMonitoringQuery{value: val, isSet: true} +} + +func (v NullableModelsQueryModelsPagedRevocationMonitoringQuery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsQueryModelsPagedRevocationMonitoringQuery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_query_models_paged_scan_job_parts_query.go b/v1/api/keyfactor/model_models_query_models_paged_scan_job_parts_query.go new file mode 100644 index 0000000..00ede71 --- /dev/null +++ b/v1/api/keyfactor/model_models_query_models_paged_scan_job_parts_query.go @@ -0,0 +1,348 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsQueryModelsPagedScanJobPartsQuery type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsQueryModelsPagedScanJobPartsQuery{} + +// ModelsQueryModelsPagedScanJobPartsQuery struct for ModelsQueryModelsPagedScanJobPartsQuery +type ModelsQueryModelsPagedScanJobPartsQuery struct { + JobType *int32 `json:"JobType,omitempty"` + // Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) + QueryString *string `json:"QueryString,omitempty"` + // The current page within the result set to be returned + PageReturned *int32 `json:"PageReturned,omitempty"` + // Maximum number of records to be returned in a single call + ReturnLimit *int32 `json:"ReturnLimit,omitempty"` + // Field by which the results should be sorted (view results via Management Portal for sortable columns) + SortField *string `json:"SortField,omitempty"` + // Field sort direction [0=ascending, 1=descending] + SortAscending *int32 `json:"SortAscending,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsQueryModelsPagedScanJobPartsQuery ModelsQueryModelsPagedScanJobPartsQuery + +// NewModelsQueryModelsPagedScanJobPartsQuery instantiates a new ModelsQueryModelsPagedScanJobPartsQuery object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsQueryModelsPagedScanJobPartsQuery() *ModelsQueryModelsPagedScanJobPartsQuery { + this := ModelsQueryModelsPagedScanJobPartsQuery{} + return &this +} + +// NewModelsQueryModelsPagedScanJobPartsQueryWithDefaults instantiates a new ModelsQueryModelsPagedScanJobPartsQuery object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsQueryModelsPagedScanJobPartsQueryWithDefaults() *ModelsQueryModelsPagedScanJobPartsQuery { + this := ModelsQueryModelsPagedScanJobPartsQuery{} + return &this +} + +// GetJobType returns the JobType field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedScanJobPartsQuery) GetJobType() int32 { + if o == nil || isNil(o.JobType) { + var ret int32 + return ret + } + return *o.JobType +} + +// GetJobTypeOk returns a tuple with the JobType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedScanJobPartsQuery) GetJobTypeOk() (*int32, bool) { + if o == nil || isNil(o.JobType) { + return nil, false + } + return o.JobType, true +} + +// HasJobType returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedScanJobPartsQuery) HasJobType() bool { + if o != nil && !isNil(o.JobType) { + return true + } + + return false +} + +// SetJobType gets a reference to the given int32 and assigns it to the JobType field. +func (o *ModelsQueryModelsPagedScanJobPartsQuery) SetJobType(v int32) { + o.JobType = &v +} + +// GetQueryString returns the QueryString field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedScanJobPartsQuery) GetQueryString() string { + if o == nil || isNil(o.QueryString) { + var ret string + return ret + } + return *o.QueryString +} + +// GetQueryStringOk returns a tuple with the QueryString field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedScanJobPartsQuery) GetQueryStringOk() (*string, bool) { + if o == nil || isNil(o.QueryString) { + return nil, false + } + return o.QueryString, true +} + +// HasQueryString returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedScanJobPartsQuery) HasQueryString() bool { + if o != nil && !isNil(o.QueryString) { + return true + } + + return false +} + +// SetQueryString gets a reference to the given string and assigns it to the QueryString field. +func (o *ModelsQueryModelsPagedScanJobPartsQuery) SetQueryString(v string) { + o.QueryString = &v +} + +// GetPageReturned returns the PageReturned field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedScanJobPartsQuery) GetPageReturned() int32 { + if o == nil || isNil(o.PageReturned) { + var ret int32 + return ret + } + return *o.PageReturned +} + +// GetPageReturnedOk returns a tuple with the PageReturned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedScanJobPartsQuery) GetPageReturnedOk() (*int32, bool) { + if o == nil || isNil(o.PageReturned) { + return nil, false + } + return o.PageReturned, true +} + +// HasPageReturned returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedScanJobPartsQuery) HasPageReturned() bool { + if o != nil && !isNil(o.PageReturned) { + return true + } + + return false +} + +// SetPageReturned gets a reference to the given int32 and assigns it to the PageReturned field. +func (o *ModelsQueryModelsPagedScanJobPartsQuery) SetPageReturned(v int32) { + o.PageReturned = &v +} + +// GetReturnLimit returns the ReturnLimit field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedScanJobPartsQuery) GetReturnLimit() int32 { + if o == nil || isNil(o.ReturnLimit) { + var ret int32 + return ret + } + return *o.ReturnLimit +} + +// GetReturnLimitOk returns a tuple with the ReturnLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedScanJobPartsQuery) GetReturnLimitOk() (*int32, bool) { + if o == nil || isNil(o.ReturnLimit) { + return nil, false + } + return o.ReturnLimit, true +} + +// HasReturnLimit returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedScanJobPartsQuery) HasReturnLimit() bool { + if o != nil && !isNil(o.ReturnLimit) { + return true + } + + return false +} + +// SetReturnLimit gets a reference to the given int32 and assigns it to the ReturnLimit field. +func (o *ModelsQueryModelsPagedScanJobPartsQuery) SetReturnLimit(v int32) { + o.ReturnLimit = &v +} + +// GetSortField returns the SortField field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedScanJobPartsQuery) GetSortField() string { + if o == nil || isNil(o.SortField) { + var ret string + return ret + } + return *o.SortField +} + +// GetSortFieldOk returns a tuple with the SortField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedScanJobPartsQuery) GetSortFieldOk() (*string, bool) { + if o == nil || isNil(o.SortField) { + return nil, false + } + return o.SortField, true +} + +// HasSortField returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedScanJobPartsQuery) HasSortField() bool { + if o != nil && !isNil(o.SortField) { + return true + } + + return false +} + +// SetSortField gets a reference to the given string and assigns it to the SortField field. +func (o *ModelsQueryModelsPagedScanJobPartsQuery) SetSortField(v string) { + o.SortField = &v +} + +// GetSortAscending returns the SortAscending field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedScanJobPartsQuery) GetSortAscending() int32 { + if o == nil || isNil(o.SortAscending) { + var ret int32 + return ret + } + return *o.SortAscending +} + +// GetSortAscendingOk returns a tuple with the SortAscending field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedScanJobPartsQuery) GetSortAscendingOk() (*int32, bool) { + if o == nil || isNil(o.SortAscending) { + return nil, false + } + return o.SortAscending, true +} + +// HasSortAscending returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedScanJobPartsQuery) HasSortAscending() bool { + if o != nil && !isNil(o.SortAscending) { + return true + } + + return false +} + +// SetSortAscending gets a reference to the given int32 and assigns it to the SortAscending field. +func (o *ModelsQueryModelsPagedScanJobPartsQuery) SetSortAscending(v int32) { + o.SortAscending = &v +} + +func (o ModelsQueryModelsPagedScanJobPartsQuery) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsQueryModelsPagedScanJobPartsQuery) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.JobType) { + toSerialize["JobType"] = o.JobType + } + if !isNil(o.QueryString) { + toSerialize["QueryString"] = o.QueryString + } + if !isNil(o.PageReturned) { + toSerialize["PageReturned"] = o.PageReturned + } + if !isNil(o.ReturnLimit) { + toSerialize["ReturnLimit"] = o.ReturnLimit + } + if !isNil(o.SortField) { + toSerialize["SortField"] = o.SortField + } + if !isNil(o.SortAscending) { + toSerialize["SortAscending"] = o.SortAscending + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsQueryModelsPagedScanJobPartsQuery) UnmarshalJSON(bytes []byte) (err error) { + varModelsQueryModelsPagedScanJobPartsQuery := _ModelsQueryModelsPagedScanJobPartsQuery{} + + if err = json.Unmarshal(bytes, &varModelsQueryModelsPagedScanJobPartsQuery); err == nil { + *o = ModelsQueryModelsPagedScanJobPartsQuery(varModelsQueryModelsPagedScanJobPartsQuery) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "JobType") + delete(additionalProperties, "QueryString") + delete(additionalProperties, "PageReturned") + delete(additionalProperties, "ReturnLimit") + delete(additionalProperties, "SortField") + delete(additionalProperties, "SortAscending") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsQueryModelsPagedScanJobPartsQuery struct { + value *ModelsQueryModelsPagedScanJobPartsQuery + isSet bool +} + +func (v NullableModelsQueryModelsPagedScanJobPartsQuery) Get() *ModelsQueryModelsPagedScanJobPartsQuery { + return v.value +} + +func (v *NullableModelsQueryModelsPagedScanJobPartsQuery) Set(val *ModelsQueryModelsPagedScanJobPartsQuery) { + v.value = val + v.isSet = true +} + +func (v NullableModelsQueryModelsPagedScanJobPartsQuery) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsQueryModelsPagedScanJobPartsQuery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsQueryModelsPagedScanJobPartsQuery(val *ModelsQueryModelsPagedScanJobPartsQuery) *NullableModelsQueryModelsPagedScanJobPartsQuery { + return &NullableModelsQueryModelsPagedScanJobPartsQuery{value: val, isSet: true} +} + +func (v NullableModelsQueryModelsPagedScanJobPartsQuery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsQueryModelsPagedScanJobPartsQuery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_query_models_paged_security_identity_query.go b/v1/api/keyfactor/model_models_query_models_paged_security_identity_query.go new file mode 100644 index 0000000..e514717 --- /dev/null +++ b/v1/api/keyfactor/model_models_query_models_paged_security_identity_query.go @@ -0,0 +1,349 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsQueryModelsPagedSecurityIdentityQuery type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsQueryModelsPagedSecurityIdentityQuery{} + +// ModelsQueryModelsPagedSecurityIdentityQuery Paged query for security identities. +type ModelsQueryModelsPagedSecurityIdentityQuery struct { + // Whether to audit the signed xml for every identity requested by the query + Validate *bool `json:"Validate,omitempty"` + // Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) + QueryString *string `json:"QueryString,omitempty"` + // The current page within the result set to be returned + PageReturned *int32 `json:"PageReturned,omitempty"` + // Maximum number of records to be returned in a single call + ReturnLimit *int32 `json:"ReturnLimit,omitempty"` + // Field by which the results should be sorted (view results via Management Portal for sortable columns) + SortField *string `json:"SortField,omitempty"` + // Field sort direction [0=ascending, 1=descending] + SortAscending *int32 `json:"SortAscending,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsQueryModelsPagedSecurityIdentityQuery ModelsQueryModelsPagedSecurityIdentityQuery + +// NewModelsQueryModelsPagedSecurityIdentityQuery instantiates a new ModelsQueryModelsPagedSecurityIdentityQuery object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsQueryModelsPagedSecurityIdentityQuery() *ModelsQueryModelsPagedSecurityIdentityQuery { + this := ModelsQueryModelsPagedSecurityIdentityQuery{} + return &this +} + +// NewModelsQueryModelsPagedSecurityIdentityQueryWithDefaults instantiates a new ModelsQueryModelsPagedSecurityIdentityQuery object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsQueryModelsPagedSecurityIdentityQueryWithDefaults() *ModelsQueryModelsPagedSecurityIdentityQuery { + this := ModelsQueryModelsPagedSecurityIdentityQuery{} + return &this +} + +// GetValidate returns the Validate field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedSecurityIdentityQuery) GetValidate() bool { + if o == nil || isNil(o.Validate) { + var ret bool + return ret + } + return *o.Validate +} + +// GetValidateOk returns a tuple with the Validate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedSecurityIdentityQuery) GetValidateOk() (*bool, bool) { + if o == nil || isNil(o.Validate) { + return nil, false + } + return o.Validate, true +} + +// HasValidate returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedSecurityIdentityQuery) HasValidate() bool { + if o != nil && !isNil(o.Validate) { + return true + } + + return false +} + +// SetValidate gets a reference to the given bool and assigns it to the Validate field. +func (o *ModelsQueryModelsPagedSecurityIdentityQuery) SetValidate(v bool) { + o.Validate = &v +} + +// GetQueryString returns the QueryString field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedSecurityIdentityQuery) GetQueryString() string { + if o == nil || isNil(o.QueryString) { + var ret string + return ret + } + return *o.QueryString +} + +// GetQueryStringOk returns a tuple with the QueryString field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedSecurityIdentityQuery) GetQueryStringOk() (*string, bool) { + if o == nil || isNil(o.QueryString) { + return nil, false + } + return o.QueryString, true +} + +// HasQueryString returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedSecurityIdentityQuery) HasQueryString() bool { + if o != nil && !isNil(o.QueryString) { + return true + } + + return false +} + +// SetQueryString gets a reference to the given string and assigns it to the QueryString field. +func (o *ModelsQueryModelsPagedSecurityIdentityQuery) SetQueryString(v string) { + o.QueryString = &v +} + +// GetPageReturned returns the PageReturned field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedSecurityIdentityQuery) GetPageReturned() int32 { + if o == nil || isNil(o.PageReturned) { + var ret int32 + return ret + } + return *o.PageReturned +} + +// GetPageReturnedOk returns a tuple with the PageReturned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedSecurityIdentityQuery) GetPageReturnedOk() (*int32, bool) { + if o == nil || isNil(o.PageReturned) { + return nil, false + } + return o.PageReturned, true +} + +// HasPageReturned returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedSecurityIdentityQuery) HasPageReturned() bool { + if o != nil && !isNil(o.PageReturned) { + return true + } + + return false +} + +// SetPageReturned gets a reference to the given int32 and assigns it to the PageReturned field. +func (o *ModelsQueryModelsPagedSecurityIdentityQuery) SetPageReturned(v int32) { + o.PageReturned = &v +} + +// GetReturnLimit returns the ReturnLimit field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedSecurityIdentityQuery) GetReturnLimit() int32 { + if o == nil || isNil(o.ReturnLimit) { + var ret int32 + return ret + } + return *o.ReturnLimit +} + +// GetReturnLimitOk returns a tuple with the ReturnLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedSecurityIdentityQuery) GetReturnLimitOk() (*int32, bool) { + if o == nil || isNil(o.ReturnLimit) { + return nil, false + } + return o.ReturnLimit, true +} + +// HasReturnLimit returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedSecurityIdentityQuery) HasReturnLimit() bool { + if o != nil && !isNil(o.ReturnLimit) { + return true + } + + return false +} + +// SetReturnLimit gets a reference to the given int32 and assigns it to the ReturnLimit field. +func (o *ModelsQueryModelsPagedSecurityIdentityQuery) SetReturnLimit(v int32) { + o.ReturnLimit = &v +} + +// GetSortField returns the SortField field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedSecurityIdentityQuery) GetSortField() string { + if o == nil || isNil(o.SortField) { + var ret string + return ret + } + return *o.SortField +} + +// GetSortFieldOk returns a tuple with the SortField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedSecurityIdentityQuery) GetSortFieldOk() (*string, bool) { + if o == nil || isNil(o.SortField) { + return nil, false + } + return o.SortField, true +} + +// HasSortField returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedSecurityIdentityQuery) HasSortField() bool { + if o != nil && !isNil(o.SortField) { + return true + } + + return false +} + +// SetSortField gets a reference to the given string and assigns it to the SortField field. +func (o *ModelsQueryModelsPagedSecurityIdentityQuery) SetSortField(v string) { + o.SortField = &v +} + +// GetSortAscending returns the SortAscending field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedSecurityIdentityQuery) GetSortAscending() int32 { + if o == nil || isNil(o.SortAscending) { + var ret int32 + return ret + } + return *o.SortAscending +} + +// GetSortAscendingOk returns a tuple with the SortAscending field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedSecurityIdentityQuery) GetSortAscendingOk() (*int32, bool) { + if o == nil || isNil(o.SortAscending) { + return nil, false + } + return o.SortAscending, true +} + +// HasSortAscending returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedSecurityIdentityQuery) HasSortAscending() bool { + if o != nil && !isNil(o.SortAscending) { + return true + } + + return false +} + +// SetSortAscending gets a reference to the given int32 and assigns it to the SortAscending field. +func (o *ModelsQueryModelsPagedSecurityIdentityQuery) SetSortAscending(v int32) { + o.SortAscending = &v +} + +func (o ModelsQueryModelsPagedSecurityIdentityQuery) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsQueryModelsPagedSecurityIdentityQuery) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Validate) { + toSerialize["Validate"] = o.Validate + } + if !isNil(o.QueryString) { + toSerialize["QueryString"] = o.QueryString + } + if !isNil(o.PageReturned) { + toSerialize["PageReturned"] = o.PageReturned + } + if !isNil(o.ReturnLimit) { + toSerialize["ReturnLimit"] = o.ReturnLimit + } + if !isNil(o.SortField) { + toSerialize["SortField"] = o.SortField + } + if !isNil(o.SortAscending) { + toSerialize["SortAscending"] = o.SortAscending + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsQueryModelsPagedSecurityIdentityQuery) UnmarshalJSON(bytes []byte) (err error) { + varModelsQueryModelsPagedSecurityIdentityQuery := _ModelsQueryModelsPagedSecurityIdentityQuery{} + + if err = json.Unmarshal(bytes, &varModelsQueryModelsPagedSecurityIdentityQuery); err == nil { + *o = ModelsQueryModelsPagedSecurityIdentityQuery(varModelsQueryModelsPagedSecurityIdentityQuery) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Validate") + delete(additionalProperties, "QueryString") + delete(additionalProperties, "PageReturned") + delete(additionalProperties, "ReturnLimit") + delete(additionalProperties, "SortField") + delete(additionalProperties, "SortAscending") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsQueryModelsPagedSecurityIdentityQuery struct { + value *ModelsQueryModelsPagedSecurityIdentityQuery + isSet bool +} + +func (v NullableModelsQueryModelsPagedSecurityIdentityQuery) Get() *ModelsQueryModelsPagedSecurityIdentityQuery { + return v.value +} + +func (v *NullableModelsQueryModelsPagedSecurityIdentityQuery) Set(val *ModelsQueryModelsPagedSecurityIdentityQuery) { + v.value = val + v.isSet = true +} + +func (v NullableModelsQueryModelsPagedSecurityIdentityQuery) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsQueryModelsPagedSecurityIdentityQuery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsQueryModelsPagedSecurityIdentityQuery(val *ModelsQueryModelsPagedSecurityIdentityQuery) *NullableModelsQueryModelsPagedSecurityIdentityQuery { + return &NullableModelsQueryModelsPagedSecurityIdentityQuery{value: val, isSet: true} +} + +func (v NullableModelsQueryModelsPagedSecurityIdentityQuery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsQueryModelsPagedSecurityIdentityQuery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_query_models_paged_security_role_query.go b/v1/api/keyfactor/model_models_query_models_paged_security_role_query.go new file mode 100644 index 0000000..27aa20d --- /dev/null +++ b/v1/api/keyfactor/model_models_query_models_paged_security_role_query.go @@ -0,0 +1,349 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsQueryModelsPagedSecurityRoleQuery type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsQueryModelsPagedSecurityRoleQuery{} + +// ModelsQueryModelsPagedSecurityRoleQuery Paged query for security identities. +type ModelsQueryModelsPagedSecurityRoleQuery struct { + // Whether to audit the signed xml for every role requested by the query + Validate *bool `json:"Validate,omitempty"` + // Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) + QueryString *string `json:"QueryString,omitempty"` + // The current page within the result set to be returned + PageReturned *int32 `json:"PageReturned,omitempty"` + // Maximum number of records to be returned in a single call + ReturnLimit *int32 `json:"ReturnLimit,omitempty"` + // Field by which the results should be sorted (view results via Management Portal for sortable columns) + SortField *string `json:"SortField,omitempty"` + // Field sort direction [0=ascending, 1=descending] + SortAscending *int32 `json:"SortAscending,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsQueryModelsPagedSecurityRoleQuery ModelsQueryModelsPagedSecurityRoleQuery + +// NewModelsQueryModelsPagedSecurityRoleQuery instantiates a new ModelsQueryModelsPagedSecurityRoleQuery object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsQueryModelsPagedSecurityRoleQuery() *ModelsQueryModelsPagedSecurityRoleQuery { + this := ModelsQueryModelsPagedSecurityRoleQuery{} + return &this +} + +// NewModelsQueryModelsPagedSecurityRoleQueryWithDefaults instantiates a new ModelsQueryModelsPagedSecurityRoleQuery object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsQueryModelsPagedSecurityRoleQueryWithDefaults() *ModelsQueryModelsPagedSecurityRoleQuery { + this := ModelsQueryModelsPagedSecurityRoleQuery{} + return &this +} + +// GetValidate returns the Validate field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedSecurityRoleQuery) GetValidate() bool { + if o == nil || isNil(o.Validate) { + var ret bool + return ret + } + return *o.Validate +} + +// GetValidateOk returns a tuple with the Validate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedSecurityRoleQuery) GetValidateOk() (*bool, bool) { + if o == nil || isNil(o.Validate) { + return nil, false + } + return o.Validate, true +} + +// HasValidate returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedSecurityRoleQuery) HasValidate() bool { + if o != nil && !isNil(o.Validate) { + return true + } + + return false +} + +// SetValidate gets a reference to the given bool and assigns it to the Validate field. +func (o *ModelsQueryModelsPagedSecurityRoleQuery) SetValidate(v bool) { + o.Validate = &v +} + +// GetQueryString returns the QueryString field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedSecurityRoleQuery) GetQueryString() string { + if o == nil || isNil(o.QueryString) { + var ret string + return ret + } + return *o.QueryString +} + +// GetQueryStringOk returns a tuple with the QueryString field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedSecurityRoleQuery) GetQueryStringOk() (*string, bool) { + if o == nil || isNil(o.QueryString) { + return nil, false + } + return o.QueryString, true +} + +// HasQueryString returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedSecurityRoleQuery) HasQueryString() bool { + if o != nil && !isNil(o.QueryString) { + return true + } + + return false +} + +// SetQueryString gets a reference to the given string and assigns it to the QueryString field. +func (o *ModelsQueryModelsPagedSecurityRoleQuery) SetQueryString(v string) { + o.QueryString = &v +} + +// GetPageReturned returns the PageReturned field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedSecurityRoleQuery) GetPageReturned() int32 { + if o == nil || isNil(o.PageReturned) { + var ret int32 + return ret + } + return *o.PageReturned +} + +// GetPageReturnedOk returns a tuple with the PageReturned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedSecurityRoleQuery) GetPageReturnedOk() (*int32, bool) { + if o == nil || isNil(o.PageReturned) { + return nil, false + } + return o.PageReturned, true +} + +// HasPageReturned returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedSecurityRoleQuery) HasPageReturned() bool { + if o != nil && !isNil(o.PageReturned) { + return true + } + + return false +} + +// SetPageReturned gets a reference to the given int32 and assigns it to the PageReturned field. +func (o *ModelsQueryModelsPagedSecurityRoleQuery) SetPageReturned(v int32) { + o.PageReturned = &v +} + +// GetReturnLimit returns the ReturnLimit field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedSecurityRoleQuery) GetReturnLimit() int32 { + if o == nil || isNil(o.ReturnLimit) { + var ret int32 + return ret + } + return *o.ReturnLimit +} + +// GetReturnLimitOk returns a tuple with the ReturnLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedSecurityRoleQuery) GetReturnLimitOk() (*int32, bool) { + if o == nil || isNil(o.ReturnLimit) { + return nil, false + } + return o.ReturnLimit, true +} + +// HasReturnLimit returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedSecurityRoleQuery) HasReturnLimit() bool { + if o != nil && !isNil(o.ReturnLimit) { + return true + } + + return false +} + +// SetReturnLimit gets a reference to the given int32 and assigns it to the ReturnLimit field. +func (o *ModelsQueryModelsPagedSecurityRoleQuery) SetReturnLimit(v int32) { + o.ReturnLimit = &v +} + +// GetSortField returns the SortField field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedSecurityRoleQuery) GetSortField() string { + if o == nil || isNil(o.SortField) { + var ret string + return ret + } + return *o.SortField +} + +// GetSortFieldOk returns a tuple with the SortField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedSecurityRoleQuery) GetSortFieldOk() (*string, bool) { + if o == nil || isNil(o.SortField) { + return nil, false + } + return o.SortField, true +} + +// HasSortField returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedSecurityRoleQuery) HasSortField() bool { + if o != nil && !isNil(o.SortField) { + return true + } + + return false +} + +// SetSortField gets a reference to the given string and assigns it to the SortField field. +func (o *ModelsQueryModelsPagedSecurityRoleQuery) SetSortField(v string) { + o.SortField = &v +} + +// GetSortAscending returns the SortAscending field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedSecurityRoleQuery) GetSortAscending() int32 { + if o == nil || isNil(o.SortAscending) { + var ret int32 + return ret + } + return *o.SortAscending +} + +// GetSortAscendingOk returns a tuple with the SortAscending field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedSecurityRoleQuery) GetSortAscendingOk() (*int32, bool) { + if o == nil || isNil(o.SortAscending) { + return nil, false + } + return o.SortAscending, true +} + +// HasSortAscending returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedSecurityRoleQuery) HasSortAscending() bool { + if o != nil && !isNil(o.SortAscending) { + return true + } + + return false +} + +// SetSortAscending gets a reference to the given int32 and assigns it to the SortAscending field. +func (o *ModelsQueryModelsPagedSecurityRoleQuery) SetSortAscending(v int32) { + o.SortAscending = &v +} + +func (o ModelsQueryModelsPagedSecurityRoleQuery) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsQueryModelsPagedSecurityRoleQuery) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Validate) { + toSerialize["Validate"] = o.Validate + } + if !isNil(o.QueryString) { + toSerialize["QueryString"] = o.QueryString + } + if !isNil(o.PageReturned) { + toSerialize["PageReturned"] = o.PageReturned + } + if !isNil(o.ReturnLimit) { + toSerialize["ReturnLimit"] = o.ReturnLimit + } + if !isNil(o.SortField) { + toSerialize["SortField"] = o.SortField + } + if !isNil(o.SortAscending) { + toSerialize["SortAscending"] = o.SortAscending + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsQueryModelsPagedSecurityRoleQuery) UnmarshalJSON(bytes []byte) (err error) { + varModelsQueryModelsPagedSecurityRoleQuery := _ModelsQueryModelsPagedSecurityRoleQuery{} + + if err = json.Unmarshal(bytes, &varModelsQueryModelsPagedSecurityRoleQuery); err == nil { + *o = ModelsQueryModelsPagedSecurityRoleQuery(varModelsQueryModelsPagedSecurityRoleQuery) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Validate") + delete(additionalProperties, "QueryString") + delete(additionalProperties, "PageReturned") + delete(additionalProperties, "ReturnLimit") + delete(additionalProperties, "SortField") + delete(additionalProperties, "SortAscending") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsQueryModelsPagedSecurityRoleQuery struct { + value *ModelsQueryModelsPagedSecurityRoleQuery + isSet bool +} + +func (v NullableModelsQueryModelsPagedSecurityRoleQuery) Get() *ModelsQueryModelsPagedSecurityRoleQuery { + return v.value +} + +func (v *NullableModelsQueryModelsPagedSecurityRoleQuery) Set(val *ModelsQueryModelsPagedSecurityRoleQuery) { + v.value = val + v.isSet = true +} + +func (v NullableModelsQueryModelsPagedSecurityRoleQuery) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsQueryModelsPagedSecurityRoleQuery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsQueryModelsPagedSecurityRoleQuery(val *ModelsQueryModelsPagedSecurityRoleQuery) *NullableModelsQueryModelsPagedSecurityRoleQuery { + return &NullableModelsQueryModelsPagedSecurityRoleQuery{value: val, isSet: true} +} + +func (v NullableModelsQueryModelsPagedSecurityRoleQuery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsQueryModelsPagedSecurityRoleQuery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_query_models_paged_ssh_logon_query.go b/v1/api/keyfactor/model_models_query_models_paged_ssh_logon_query.go new file mode 100644 index 0000000..ed150c2 --- /dev/null +++ b/v1/api/keyfactor/model_models_query_models_paged_ssh_logon_query.go @@ -0,0 +1,311 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsQueryModelsPagedSSHLogonQuery type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsQueryModelsPagedSSHLogonQuery{} + +// ModelsQueryModelsPagedSSHLogonQuery struct for ModelsQueryModelsPagedSSHLogonQuery +type ModelsQueryModelsPagedSSHLogonQuery struct { + // Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) + QueryString *string `json:"QueryString,omitempty"` + // The current page within the result set to be returned + PageReturned *int32 `json:"PageReturned,omitempty"` + // Maximum number of records to be returned in a single call + ReturnLimit *int32 `json:"ReturnLimit,omitempty"` + // Field by which the results should be sorted (view results via Management Portal for sortable columns) + SortField *string `json:"SortField,omitempty"` + // Field sort direction [0=ascending, 1=descending] + SortAscending *int32 `json:"SortAscending,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsQueryModelsPagedSSHLogonQuery ModelsQueryModelsPagedSSHLogonQuery + +// NewModelsQueryModelsPagedSSHLogonQuery instantiates a new ModelsQueryModelsPagedSSHLogonQuery object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsQueryModelsPagedSSHLogonQuery() *ModelsQueryModelsPagedSSHLogonQuery { + this := ModelsQueryModelsPagedSSHLogonQuery{} + return &this +} + +// NewModelsQueryModelsPagedSSHLogonQueryWithDefaults instantiates a new ModelsQueryModelsPagedSSHLogonQuery object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsQueryModelsPagedSSHLogonQueryWithDefaults() *ModelsQueryModelsPagedSSHLogonQuery { + this := ModelsQueryModelsPagedSSHLogonQuery{} + return &this +} + +// GetQueryString returns the QueryString field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedSSHLogonQuery) GetQueryString() string { + if o == nil || isNil(o.QueryString) { + var ret string + return ret + } + return *o.QueryString +} + +// GetQueryStringOk returns a tuple with the QueryString field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedSSHLogonQuery) GetQueryStringOk() (*string, bool) { + if o == nil || isNil(o.QueryString) { + return nil, false + } + return o.QueryString, true +} + +// HasQueryString returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedSSHLogonQuery) HasQueryString() bool { + if o != nil && !isNil(o.QueryString) { + return true + } + + return false +} + +// SetQueryString gets a reference to the given string and assigns it to the QueryString field. +func (o *ModelsQueryModelsPagedSSHLogonQuery) SetQueryString(v string) { + o.QueryString = &v +} + +// GetPageReturned returns the PageReturned field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedSSHLogonQuery) GetPageReturned() int32 { + if o == nil || isNil(o.PageReturned) { + var ret int32 + return ret + } + return *o.PageReturned +} + +// GetPageReturnedOk returns a tuple with the PageReturned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedSSHLogonQuery) GetPageReturnedOk() (*int32, bool) { + if o == nil || isNil(o.PageReturned) { + return nil, false + } + return o.PageReturned, true +} + +// HasPageReturned returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedSSHLogonQuery) HasPageReturned() bool { + if o != nil && !isNil(o.PageReturned) { + return true + } + + return false +} + +// SetPageReturned gets a reference to the given int32 and assigns it to the PageReturned field. +func (o *ModelsQueryModelsPagedSSHLogonQuery) SetPageReturned(v int32) { + o.PageReturned = &v +} + +// GetReturnLimit returns the ReturnLimit field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedSSHLogonQuery) GetReturnLimit() int32 { + if o == nil || isNil(o.ReturnLimit) { + var ret int32 + return ret + } + return *o.ReturnLimit +} + +// GetReturnLimitOk returns a tuple with the ReturnLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedSSHLogonQuery) GetReturnLimitOk() (*int32, bool) { + if o == nil || isNil(o.ReturnLimit) { + return nil, false + } + return o.ReturnLimit, true +} + +// HasReturnLimit returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedSSHLogonQuery) HasReturnLimit() bool { + if o != nil && !isNil(o.ReturnLimit) { + return true + } + + return false +} + +// SetReturnLimit gets a reference to the given int32 and assigns it to the ReturnLimit field. +func (o *ModelsQueryModelsPagedSSHLogonQuery) SetReturnLimit(v int32) { + o.ReturnLimit = &v +} + +// GetSortField returns the SortField field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedSSHLogonQuery) GetSortField() string { + if o == nil || isNil(o.SortField) { + var ret string + return ret + } + return *o.SortField +} + +// GetSortFieldOk returns a tuple with the SortField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedSSHLogonQuery) GetSortFieldOk() (*string, bool) { + if o == nil || isNil(o.SortField) { + return nil, false + } + return o.SortField, true +} + +// HasSortField returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedSSHLogonQuery) HasSortField() bool { + if o != nil && !isNil(o.SortField) { + return true + } + + return false +} + +// SetSortField gets a reference to the given string and assigns it to the SortField field. +func (o *ModelsQueryModelsPagedSSHLogonQuery) SetSortField(v string) { + o.SortField = &v +} + +// GetSortAscending returns the SortAscending field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedSSHLogonQuery) GetSortAscending() int32 { + if o == nil || isNil(o.SortAscending) { + var ret int32 + return ret + } + return *o.SortAscending +} + +// GetSortAscendingOk returns a tuple with the SortAscending field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedSSHLogonQuery) GetSortAscendingOk() (*int32, bool) { + if o == nil || isNil(o.SortAscending) { + return nil, false + } + return o.SortAscending, true +} + +// HasSortAscending returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedSSHLogonQuery) HasSortAscending() bool { + if o != nil && !isNil(o.SortAscending) { + return true + } + + return false +} + +// SetSortAscending gets a reference to the given int32 and assigns it to the SortAscending field. +func (o *ModelsQueryModelsPagedSSHLogonQuery) SetSortAscending(v int32) { + o.SortAscending = &v +} + +func (o ModelsQueryModelsPagedSSHLogonQuery) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsQueryModelsPagedSSHLogonQuery) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.QueryString) { + toSerialize["QueryString"] = o.QueryString + } + if !isNil(o.PageReturned) { + toSerialize["PageReturned"] = o.PageReturned + } + if !isNil(o.ReturnLimit) { + toSerialize["ReturnLimit"] = o.ReturnLimit + } + if !isNil(o.SortField) { + toSerialize["SortField"] = o.SortField + } + if !isNil(o.SortAscending) { + toSerialize["SortAscending"] = o.SortAscending + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsQueryModelsPagedSSHLogonQuery) UnmarshalJSON(bytes []byte) (err error) { + varModelsQueryModelsPagedSSHLogonQuery := _ModelsQueryModelsPagedSSHLogonQuery{} + + if err = json.Unmarshal(bytes, &varModelsQueryModelsPagedSSHLogonQuery); err == nil { + *o = ModelsQueryModelsPagedSSHLogonQuery(varModelsQueryModelsPagedSSHLogonQuery) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "QueryString") + delete(additionalProperties, "PageReturned") + delete(additionalProperties, "ReturnLimit") + delete(additionalProperties, "SortField") + delete(additionalProperties, "SortAscending") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsQueryModelsPagedSSHLogonQuery struct { + value *ModelsQueryModelsPagedSSHLogonQuery + isSet bool +} + +func (v NullableModelsQueryModelsPagedSSHLogonQuery) Get() *ModelsQueryModelsPagedSSHLogonQuery { + return v.value +} + +func (v *NullableModelsQueryModelsPagedSSHLogonQuery) Set(val *ModelsQueryModelsPagedSSHLogonQuery) { + v.value = val + v.isSet = true +} + +func (v NullableModelsQueryModelsPagedSSHLogonQuery) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsQueryModelsPagedSSHLogonQuery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsQueryModelsPagedSSHLogonQuery(val *ModelsQueryModelsPagedSSHLogonQuery) *NullableModelsQueryModelsPagedSSHLogonQuery { + return &NullableModelsQueryModelsPagedSSHLogonQuery{value: val, isSet: true} +} + +func (v NullableModelsQueryModelsPagedSSHLogonQuery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsQueryModelsPagedSSHLogonQuery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_query_models_paged_ssh_server_group_query.go b/v1/api/keyfactor/model_models_query_models_paged_ssh_server_group_query.go new file mode 100644 index 0000000..21d5157 --- /dev/null +++ b/v1/api/keyfactor/model_models_query_models_paged_ssh_server_group_query.go @@ -0,0 +1,311 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsQueryModelsPagedSSHServerGroupQuery type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsQueryModelsPagedSSHServerGroupQuery{} + +// ModelsQueryModelsPagedSSHServerGroupQuery struct for ModelsQueryModelsPagedSSHServerGroupQuery +type ModelsQueryModelsPagedSSHServerGroupQuery struct { + // Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) + QueryString *string `json:"QueryString,omitempty"` + // The current page within the result set to be returned + PageReturned *int32 `json:"PageReturned,omitempty"` + // Maximum number of records to be returned in a single call + ReturnLimit *int32 `json:"ReturnLimit,omitempty"` + // Field by which the results should be sorted (view results via Management Portal for sortable columns) + SortField *string `json:"SortField,omitempty"` + // Field sort direction [0=ascending, 1=descending] + SortAscending *int32 `json:"SortAscending,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsQueryModelsPagedSSHServerGroupQuery ModelsQueryModelsPagedSSHServerGroupQuery + +// NewModelsQueryModelsPagedSSHServerGroupQuery instantiates a new ModelsQueryModelsPagedSSHServerGroupQuery object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsQueryModelsPagedSSHServerGroupQuery() *ModelsQueryModelsPagedSSHServerGroupQuery { + this := ModelsQueryModelsPagedSSHServerGroupQuery{} + return &this +} + +// NewModelsQueryModelsPagedSSHServerGroupQueryWithDefaults instantiates a new ModelsQueryModelsPagedSSHServerGroupQuery object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsQueryModelsPagedSSHServerGroupQueryWithDefaults() *ModelsQueryModelsPagedSSHServerGroupQuery { + this := ModelsQueryModelsPagedSSHServerGroupQuery{} + return &this +} + +// GetQueryString returns the QueryString field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedSSHServerGroupQuery) GetQueryString() string { + if o == nil || isNil(o.QueryString) { + var ret string + return ret + } + return *o.QueryString +} + +// GetQueryStringOk returns a tuple with the QueryString field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedSSHServerGroupQuery) GetQueryStringOk() (*string, bool) { + if o == nil || isNil(o.QueryString) { + return nil, false + } + return o.QueryString, true +} + +// HasQueryString returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedSSHServerGroupQuery) HasQueryString() bool { + if o != nil && !isNil(o.QueryString) { + return true + } + + return false +} + +// SetQueryString gets a reference to the given string and assigns it to the QueryString field. +func (o *ModelsQueryModelsPagedSSHServerGroupQuery) SetQueryString(v string) { + o.QueryString = &v +} + +// GetPageReturned returns the PageReturned field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedSSHServerGroupQuery) GetPageReturned() int32 { + if o == nil || isNil(o.PageReturned) { + var ret int32 + return ret + } + return *o.PageReturned +} + +// GetPageReturnedOk returns a tuple with the PageReturned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedSSHServerGroupQuery) GetPageReturnedOk() (*int32, bool) { + if o == nil || isNil(o.PageReturned) { + return nil, false + } + return o.PageReturned, true +} + +// HasPageReturned returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedSSHServerGroupQuery) HasPageReturned() bool { + if o != nil && !isNil(o.PageReturned) { + return true + } + + return false +} + +// SetPageReturned gets a reference to the given int32 and assigns it to the PageReturned field. +func (o *ModelsQueryModelsPagedSSHServerGroupQuery) SetPageReturned(v int32) { + o.PageReturned = &v +} + +// GetReturnLimit returns the ReturnLimit field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedSSHServerGroupQuery) GetReturnLimit() int32 { + if o == nil || isNil(o.ReturnLimit) { + var ret int32 + return ret + } + return *o.ReturnLimit +} + +// GetReturnLimitOk returns a tuple with the ReturnLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedSSHServerGroupQuery) GetReturnLimitOk() (*int32, bool) { + if o == nil || isNil(o.ReturnLimit) { + return nil, false + } + return o.ReturnLimit, true +} + +// HasReturnLimit returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedSSHServerGroupQuery) HasReturnLimit() bool { + if o != nil && !isNil(o.ReturnLimit) { + return true + } + + return false +} + +// SetReturnLimit gets a reference to the given int32 and assigns it to the ReturnLimit field. +func (o *ModelsQueryModelsPagedSSHServerGroupQuery) SetReturnLimit(v int32) { + o.ReturnLimit = &v +} + +// GetSortField returns the SortField field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedSSHServerGroupQuery) GetSortField() string { + if o == nil || isNil(o.SortField) { + var ret string + return ret + } + return *o.SortField +} + +// GetSortFieldOk returns a tuple with the SortField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedSSHServerGroupQuery) GetSortFieldOk() (*string, bool) { + if o == nil || isNil(o.SortField) { + return nil, false + } + return o.SortField, true +} + +// HasSortField returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedSSHServerGroupQuery) HasSortField() bool { + if o != nil && !isNil(o.SortField) { + return true + } + + return false +} + +// SetSortField gets a reference to the given string and assigns it to the SortField field. +func (o *ModelsQueryModelsPagedSSHServerGroupQuery) SetSortField(v string) { + o.SortField = &v +} + +// GetSortAscending returns the SortAscending field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedSSHServerGroupQuery) GetSortAscending() int32 { + if o == nil || isNil(o.SortAscending) { + var ret int32 + return ret + } + return *o.SortAscending +} + +// GetSortAscendingOk returns a tuple with the SortAscending field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedSSHServerGroupQuery) GetSortAscendingOk() (*int32, bool) { + if o == nil || isNil(o.SortAscending) { + return nil, false + } + return o.SortAscending, true +} + +// HasSortAscending returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedSSHServerGroupQuery) HasSortAscending() bool { + if o != nil && !isNil(o.SortAscending) { + return true + } + + return false +} + +// SetSortAscending gets a reference to the given int32 and assigns it to the SortAscending field. +func (o *ModelsQueryModelsPagedSSHServerGroupQuery) SetSortAscending(v int32) { + o.SortAscending = &v +} + +func (o ModelsQueryModelsPagedSSHServerGroupQuery) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsQueryModelsPagedSSHServerGroupQuery) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.QueryString) { + toSerialize["QueryString"] = o.QueryString + } + if !isNil(o.PageReturned) { + toSerialize["PageReturned"] = o.PageReturned + } + if !isNil(o.ReturnLimit) { + toSerialize["ReturnLimit"] = o.ReturnLimit + } + if !isNil(o.SortField) { + toSerialize["SortField"] = o.SortField + } + if !isNil(o.SortAscending) { + toSerialize["SortAscending"] = o.SortAscending + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsQueryModelsPagedSSHServerGroupQuery) UnmarshalJSON(bytes []byte) (err error) { + varModelsQueryModelsPagedSSHServerGroupQuery := _ModelsQueryModelsPagedSSHServerGroupQuery{} + + if err = json.Unmarshal(bytes, &varModelsQueryModelsPagedSSHServerGroupQuery); err == nil { + *o = ModelsQueryModelsPagedSSHServerGroupQuery(varModelsQueryModelsPagedSSHServerGroupQuery) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "QueryString") + delete(additionalProperties, "PageReturned") + delete(additionalProperties, "ReturnLimit") + delete(additionalProperties, "SortField") + delete(additionalProperties, "SortAscending") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsQueryModelsPagedSSHServerGroupQuery struct { + value *ModelsQueryModelsPagedSSHServerGroupQuery + isSet bool +} + +func (v NullableModelsQueryModelsPagedSSHServerGroupQuery) Get() *ModelsQueryModelsPagedSSHServerGroupQuery { + return v.value +} + +func (v *NullableModelsQueryModelsPagedSSHServerGroupQuery) Set(val *ModelsQueryModelsPagedSSHServerGroupQuery) { + v.value = val + v.isSet = true +} + +func (v NullableModelsQueryModelsPagedSSHServerGroupQuery) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsQueryModelsPagedSSHServerGroupQuery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsQueryModelsPagedSSHServerGroupQuery(val *ModelsQueryModelsPagedSSHServerGroupQuery) *NullableModelsQueryModelsPagedSSHServerGroupQuery { + return &NullableModelsQueryModelsPagedSSHServerGroupQuery{value: val, isSet: true} +} + +func (v NullableModelsQueryModelsPagedSSHServerGroupQuery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsQueryModelsPagedSSHServerGroupQuery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_query_models_paged_ssh_server_query.go b/v1/api/keyfactor/model_models_query_models_paged_ssh_server_query.go new file mode 100644 index 0000000..21aa4eb --- /dev/null +++ b/v1/api/keyfactor/model_models_query_models_paged_ssh_server_query.go @@ -0,0 +1,311 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsQueryModelsPagedSSHServerQuery type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsQueryModelsPagedSSHServerQuery{} + +// ModelsQueryModelsPagedSSHServerQuery struct for ModelsQueryModelsPagedSSHServerQuery +type ModelsQueryModelsPagedSSHServerQuery struct { + // Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) + QueryString *string `json:"QueryString,omitempty"` + // The current page within the result set to be returned + PageReturned *int32 `json:"PageReturned,omitempty"` + // Maximum number of records to be returned in a single call + ReturnLimit *int32 `json:"ReturnLimit,omitempty"` + // Field by which the results should be sorted (view results via Management Portal for sortable columns) + SortField *string `json:"SortField,omitempty"` + // Field sort direction [0=ascending, 1=descending] + SortAscending *int32 `json:"SortAscending,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsQueryModelsPagedSSHServerQuery ModelsQueryModelsPagedSSHServerQuery + +// NewModelsQueryModelsPagedSSHServerQuery instantiates a new ModelsQueryModelsPagedSSHServerQuery object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsQueryModelsPagedSSHServerQuery() *ModelsQueryModelsPagedSSHServerQuery { + this := ModelsQueryModelsPagedSSHServerQuery{} + return &this +} + +// NewModelsQueryModelsPagedSSHServerQueryWithDefaults instantiates a new ModelsQueryModelsPagedSSHServerQuery object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsQueryModelsPagedSSHServerQueryWithDefaults() *ModelsQueryModelsPagedSSHServerQuery { + this := ModelsQueryModelsPagedSSHServerQuery{} + return &this +} + +// GetQueryString returns the QueryString field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedSSHServerQuery) GetQueryString() string { + if o == nil || isNil(o.QueryString) { + var ret string + return ret + } + return *o.QueryString +} + +// GetQueryStringOk returns a tuple with the QueryString field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedSSHServerQuery) GetQueryStringOk() (*string, bool) { + if o == nil || isNil(o.QueryString) { + return nil, false + } + return o.QueryString, true +} + +// HasQueryString returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedSSHServerQuery) HasQueryString() bool { + if o != nil && !isNil(o.QueryString) { + return true + } + + return false +} + +// SetQueryString gets a reference to the given string and assigns it to the QueryString field. +func (o *ModelsQueryModelsPagedSSHServerQuery) SetQueryString(v string) { + o.QueryString = &v +} + +// GetPageReturned returns the PageReturned field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedSSHServerQuery) GetPageReturned() int32 { + if o == nil || isNil(o.PageReturned) { + var ret int32 + return ret + } + return *o.PageReturned +} + +// GetPageReturnedOk returns a tuple with the PageReturned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedSSHServerQuery) GetPageReturnedOk() (*int32, bool) { + if o == nil || isNil(o.PageReturned) { + return nil, false + } + return o.PageReturned, true +} + +// HasPageReturned returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedSSHServerQuery) HasPageReturned() bool { + if o != nil && !isNil(o.PageReturned) { + return true + } + + return false +} + +// SetPageReturned gets a reference to the given int32 and assigns it to the PageReturned field. +func (o *ModelsQueryModelsPagedSSHServerQuery) SetPageReturned(v int32) { + o.PageReturned = &v +} + +// GetReturnLimit returns the ReturnLimit field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedSSHServerQuery) GetReturnLimit() int32 { + if o == nil || isNil(o.ReturnLimit) { + var ret int32 + return ret + } + return *o.ReturnLimit +} + +// GetReturnLimitOk returns a tuple with the ReturnLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedSSHServerQuery) GetReturnLimitOk() (*int32, bool) { + if o == nil || isNil(o.ReturnLimit) { + return nil, false + } + return o.ReturnLimit, true +} + +// HasReturnLimit returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedSSHServerQuery) HasReturnLimit() bool { + if o != nil && !isNil(o.ReturnLimit) { + return true + } + + return false +} + +// SetReturnLimit gets a reference to the given int32 and assigns it to the ReturnLimit field. +func (o *ModelsQueryModelsPagedSSHServerQuery) SetReturnLimit(v int32) { + o.ReturnLimit = &v +} + +// GetSortField returns the SortField field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedSSHServerQuery) GetSortField() string { + if o == nil || isNil(o.SortField) { + var ret string + return ret + } + return *o.SortField +} + +// GetSortFieldOk returns a tuple with the SortField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedSSHServerQuery) GetSortFieldOk() (*string, bool) { + if o == nil || isNil(o.SortField) { + return nil, false + } + return o.SortField, true +} + +// HasSortField returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedSSHServerQuery) HasSortField() bool { + if o != nil && !isNil(o.SortField) { + return true + } + + return false +} + +// SetSortField gets a reference to the given string and assigns it to the SortField field. +func (o *ModelsQueryModelsPagedSSHServerQuery) SetSortField(v string) { + o.SortField = &v +} + +// GetSortAscending returns the SortAscending field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedSSHServerQuery) GetSortAscending() int32 { + if o == nil || isNil(o.SortAscending) { + var ret int32 + return ret + } + return *o.SortAscending +} + +// GetSortAscendingOk returns a tuple with the SortAscending field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedSSHServerQuery) GetSortAscendingOk() (*int32, bool) { + if o == nil || isNil(o.SortAscending) { + return nil, false + } + return o.SortAscending, true +} + +// HasSortAscending returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedSSHServerQuery) HasSortAscending() bool { + if o != nil && !isNil(o.SortAscending) { + return true + } + + return false +} + +// SetSortAscending gets a reference to the given int32 and assigns it to the SortAscending field. +func (o *ModelsQueryModelsPagedSSHServerQuery) SetSortAscending(v int32) { + o.SortAscending = &v +} + +func (o ModelsQueryModelsPagedSSHServerQuery) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsQueryModelsPagedSSHServerQuery) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.QueryString) { + toSerialize["QueryString"] = o.QueryString + } + if !isNil(o.PageReturned) { + toSerialize["PageReturned"] = o.PageReturned + } + if !isNil(o.ReturnLimit) { + toSerialize["ReturnLimit"] = o.ReturnLimit + } + if !isNil(o.SortField) { + toSerialize["SortField"] = o.SortField + } + if !isNil(o.SortAscending) { + toSerialize["SortAscending"] = o.SortAscending + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsQueryModelsPagedSSHServerQuery) UnmarshalJSON(bytes []byte) (err error) { + varModelsQueryModelsPagedSSHServerQuery := _ModelsQueryModelsPagedSSHServerQuery{} + + if err = json.Unmarshal(bytes, &varModelsQueryModelsPagedSSHServerQuery); err == nil { + *o = ModelsQueryModelsPagedSSHServerQuery(varModelsQueryModelsPagedSSHServerQuery) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "QueryString") + delete(additionalProperties, "PageReturned") + delete(additionalProperties, "ReturnLimit") + delete(additionalProperties, "SortField") + delete(additionalProperties, "SortAscending") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsQueryModelsPagedSSHServerQuery struct { + value *ModelsQueryModelsPagedSSHServerQuery + isSet bool +} + +func (v NullableModelsQueryModelsPagedSSHServerQuery) Get() *ModelsQueryModelsPagedSSHServerQuery { + return v.value +} + +func (v *NullableModelsQueryModelsPagedSSHServerQuery) Set(val *ModelsQueryModelsPagedSSHServerQuery) { + v.value = val + v.isSet = true +} + +func (v NullableModelsQueryModelsPagedSSHServerQuery) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsQueryModelsPagedSSHServerQuery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsQueryModelsPagedSSHServerQuery(val *ModelsQueryModelsPagedSSHServerQuery) *NullableModelsQueryModelsPagedSSHServerQuery { + return &NullableModelsQueryModelsPagedSSHServerQuery{value: val, isSet: true} +} + +func (v NullableModelsQueryModelsPagedSSHServerQuery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsQueryModelsPagedSSHServerQuery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_query_models_paged_ssh_service_account_query.go b/v1/api/keyfactor/model_models_query_models_paged_ssh_service_account_query.go new file mode 100644 index 0000000..ad5688b --- /dev/null +++ b/v1/api/keyfactor/model_models_query_models_paged_ssh_service_account_query.go @@ -0,0 +1,311 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsQueryModelsPagedSSHServiceAccountQuery type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsQueryModelsPagedSSHServiceAccountQuery{} + +// ModelsQueryModelsPagedSSHServiceAccountQuery struct for ModelsQueryModelsPagedSSHServiceAccountQuery +type ModelsQueryModelsPagedSSHServiceAccountQuery struct { + // Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) + QueryString *string `json:"QueryString,omitempty"` + // The current page within the result set to be returned + PageReturned *int32 `json:"PageReturned,omitempty"` + // Maximum number of records to be returned in a single call + ReturnLimit *int32 `json:"ReturnLimit,omitempty"` + // Field by which the results should be sorted (view results via Management Portal for sortable columns) + SortField *string `json:"SortField,omitempty"` + // Field sort direction [0=ascending, 1=descending] + SortAscending *int32 `json:"SortAscending,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsQueryModelsPagedSSHServiceAccountQuery ModelsQueryModelsPagedSSHServiceAccountQuery + +// NewModelsQueryModelsPagedSSHServiceAccountQuery instantiates a new ModelsQueryModelsPagedSSHServiceAccountQuery object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsQueryModelsPagedSSHServiceAccountQuery() *ModelsQueryModelsPagedSSHServiceAccountQuery { + this := ModelsQueryModelsPagedSSHServiceAccountQuery{} + return &this +} + +// NewModelsQueryModelsPagedSSHServiceAccountQueryWithDefaults instantiates a new ModelsQueryModelsPagedSSHServiceAccountQuery object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsQueryModelsPagedSSHServiceAccountQueryWithDefaults() *ModelsQueryModelsPagedSSHServiceAccountQuery { + this := ModelsQueryModelsPagedSSHServiceAccountQuery{} + return &this +} + +// GetQueryString returns the QueryString field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedSSHServiceAccountQuery) GetQueryString() string { + if o == nil || isNil(o.QueryString) { + var ret string + return ret + } + return *o.QueryString +} + +// GetQueryStringOk returns a tuple with the QueryString field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedSSHServiceAccountQuery) GetQueryStringOk() (*string, bool) { + if o == nil || isNil(o.QueryString) { + return nil, false + } + return o.QueryString, true +} + +// HasQueryString returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedSSHServiceAccountQuery) HasQueryString() bool { + if o != nil && !isNil(o.QueryString) { + return true + } + + return false +} + +// SetQueryString gets a reference to the given string and assigns it to the QueryString field. +func (o *ModelsQueryModelsPagedSSHServiceAccountQuery) SetQueryString(v string) { + o.QueryString = &v +} + +// GetPageReturned returns the PageReturned field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedSSHServiceAccountQuery) GetPageReturned() int32 { + if o == nil || isNil(o.PageReturned) { + var ret int32 + return ret + } + return *o.PageReturned +} + +// GetPageReturnedOk returns a tuple with the PageReturned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedSSHServiceAccountQuery) GetPageReturnedOk() (*int32, bool) { + if o == nil || isNil(o.PageReturned) { + return nil, false + } + return o.PageReturned, true +} + +// HasPageReturned returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedSSHServiceAccountQuery) HasPageReturned() bool { + if o != nil && !isNil(o.PageReturned) { + return true + } + + return false +} + +// SetPageReturned gets a reference to the given int32 and assigns it to the PageReturned field. +func (o *ModelsQueryModelsPagedSSHServiceAccountQuery) SetPageReturned(v int32) { + o.PageReturned = &v +} + +// GetReturnLimit returns the ReturnLimit field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedSSHServiceAccountQuery) GetReturnLimit() int32 { + if o == nil || isNil(o.ReturnLimit) { + var ret int32 + return ret + } + return *o.ReturnLimit +} + +// GetReturnLimitOk returns a tuple with the ReturnLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedSSHServiceAccountQuery) GetReturnLimitOk() (*int32, bool) { + if o == nil || isNil(o.ReturnLimit) { + return nil, false + } + return o.ReturnLimit, true +} + +// HasReturnLimit returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedSSHServiceAccountQuery) HasReturnLimit() bool { + if o != nil && !isNil(o.ReturnLimit) { + return true + } + + return false +} + +// SetReturnLimit gets a reference to the given int32 and assigns it to the ReturnLimit field. +func (o *ModelsQueryModelsPagedSSHServiceAccountQuery) SetReturnLimit(v int32) { + o.ReturnLimit = &v +} + +// GetSortField returns the SortField field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedSSHServiceAccountQuery) GetSortField() string { + if o == nil || isNil(o.SortField) { + var ret string + return ret + } + return *o.SortField +} + +// GetSortFieldOk returns a tuple with the SortField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedSSHServiceAccountQuery) GetSortFieldOk() (*string, bool) { + if o == nil || isNil(o.SortField) { + return nil, false + } + return o.SortField, true +} + +// HasSortField returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedSSHServiceAccountQuery) HasSortField() bool { + if o != nil && !isNil(o.SortField) { + return true + } + + return false +} + +// SetSortField gets a reference to the given string and assigns it to the SortField field. +func (o *ModelsQueryModelsPagedSSHServiceAccountQuery) SetSortField(v string) { + o.SortField = &v +} + +// GetSortAscending returns the SortAscending field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedSSHServiceAccountQuery) GetSortAscending() int32 { + if o == nil || isNil(o.SortAscending) { + var ret int32 + return ret + } + return *o.SortAscending +} + +// GetSortAscendingOk returns a tuple with the SortAscending field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedSSHServiceAccountQuery) GetSortAscendingOk() (*int32, bool) { + if o == nil || isNil(o.SortAscending) { + return nil, false + } + return o.SortAscending, true +} + +// HasSortAscending returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedSSHServiceAccountQuery) HasSortAscending() bool { + if o != nil && !isNil(o.SortAscending) { + return true + } + + return false +} + +// SetSortAscending gets a reference to the given int32 and assigns it to the SortAscending field. +func (o *ModelsQueryModelsPagedSSHServiceAccountQuery) SetSortAscending(v int32) { + o.SortAscending = &v +} + +func (o ModelsQueryModelsPagedSSHServiceAccountQuery) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsQueryModelsPagedSSHServiceAccountQuery) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.QueryString) { + toSerialize["QueryString"] = o.QueryString + } + if !isNil(o.PageReturned) { + toSerialize["PageReturned"] = o.PageReturned + } + if !isNil(o.ReturnLimit) { + toSerialize["ReturnLimit"] = o.ReturnLimit + } + if !isNil(o.SortField) { + toSerialize["SortField"] = o.SortField + } + if !isNil(o.SortAscending) { + toSerialize["SortAscending"] = o.SortAscending + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsQueryModelsPagedSSHServiceAccountQuery) UnmarshalJSON(bytes []byte) (err error) { + varModelsQueryModelsPagedSSHServiceAccountQuery := _ModelsQueryModelsPagedSSHServiceAccountQuery{} + + if err = json.Unmarshal(bytes, &varModelsQueryModelsPagedSSHServiceAccountQuery); err == nil { + *o = ModelsQueryModelsPagedSSHServiceAccountQuery(varModelsQueryModelsPagedSSHServiceAccountQuery) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "QueryString") + delete(additionalProperties, "PageReturned") + delete(additionalProperties, "ReturnLimit") + delete(additionalProperties, "SortField") + delete(additionalProperties, "SortAscending") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsQueryModelsPagedSSHServiceAccountQuery struct { + value *ModelsQueryModelsPagedSSHServiceAccountQuery + isSet bool +} + +func (v NullableModelsQueryModelsPagedSSHServiceAccountQuery) Get() *ModelsQueryModelsPagedSSHServiceAccountQuery { + return v.value +} + +func (v *NullableModelsQueryModelsPagedSSHServiceAccountQuery) Set(val *ModelsQueryModelsPagedSSHServiceAccountQuery) { + v.value = val + v.isSet = true +} + +func (v NullableModelsQueryModelsPagedSSHServiceAccountQuery) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsQueryModelsPagedSSHServiceAccountQuery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsQueryModelsPagedSSHServiceAccountQuery(val *ModelsQueryModelsPagedSSHServiceAccountQuery) *NullableModelsQueryModelsPagedSSHServiceAccountQuery { + return &NullableModelsQueryModelsPagedSSHServiceAccountQuery{value: val, isSet: true} +} + +func (v NullableModelsQueryModelsPagedSSHServiceAccountQuery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsQueryModelsPagedSSHServiceAccountQuery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_query_models_paged_ssh_unmanaged_key_query.go b/v1/api/keyfactor/model_models_query_models_paged_ssh_unmanaged_key_query.go new file mode 100644 index 0000000..02aa04d --- /dev/null +++ b/v1/api/keyfactor/model_models_query_models_paged_ssh_unmanaged_key_query.go @@ -0,0 +1,311 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsQueryModelsPagedSSHUnmanagedKeyQuery type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsQueryModelsPagedSSHUnmanagedKeyQuery{} + +// ModelsQueryModelsPagedSSHUnmanagedKeyQuery struct for ModelsQueryModelsPagedSSHUnmanagedKeyQuery +type ModelsQueryModelsPagedSSHUnmanagedKeyQuery struct { + // Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) + QueryString *string `json:"QueryString,omitempty"` + // The current page within the result set to be returned + PageReturned *int32 `json:"PageReturned,omitempty"` + // Maximum number of records to be returned in a single call + ReturnLimit *int32 `json:"ReturnLimit,omitempty"` + // Field by which the results should be sorted (view results via Management Portal for sortable columns) + SortField *string `json:"SortField,omitempty"` + // Field sort direction [0=ascending, 1=descending] + SortAscending *int32 `json:"SortAscending,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsQueryModelsPagedSSHUnmanagedKeyQuery ModelsQueryModelsPagedSSHUnmanagedKeyQuery + +// NewModelsQueryModelsPagedSSHUnmanagedKeyQuery instantiates a new ModelsQueryModelsPagedSSHUnmanagedKeyQuery object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsQueryModelsPagedSSHUnmanagedKeyQuery() *ModelsQueryModelsPagedSSHUnmanagedKeyQuery { + this := ModelsQueryModelsPagedSSHUnmanagedKeyQuery{} + return &this +} + +// NewModelsQueryModelsPagedSSHUnmanagedKeyQueryWithDefaults instantiates a new ModelsQueryModelsPagedSSHUnmanagedKeyQuery object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsQueryModelsPagedSSHUnmanagedKeyQueryWithDefaults() *ModelsQueryModelsPagedSSHUnmanagedKeyQuery { + this := ModelsQueryModelsPagedSSHUnmanagedKeyQuery{} + return &this +} + +// GetQueryString returns the QueryString field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedSSHUnmanagedKeyQuery) GetQueryString() string { + if o == nil || isNil(o.QueryString) { + var ret string + return ret + } + return *o.QueryString +} + +// GetQueryStringOk returns a tuple with the QueryString field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedSSHUnmanagedKeyQuery) GetQueryStringOk() (*string, bool) { + if o == nil || isNil(o.QueryString) { + return nil, false + } + return o.QueryString, true +} + +// HasQueryString returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedSSHUnmanagedKeyQuery) HasQueryString() bool { + if o != nil && !isNil(o.QueryString) { + return true + } + + return false +} + +// SetQueryString gets a reference to the given string and assigns it to the QueryString field. +func (o *ModelsQueryModelsPagedSSHUnmanagedKeyQuery) SetQueryString(v string) { + o.QueryString = &v +} + +// GetPageReturned returns the PageReturned field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedSSHUnmanagedKeyQuery) GetPageReturned() int32 { + if o == nil || isNil(o.PageReturned) { + var ret int32 + return ret + } + return *o.PageReturned +} + +// GetPageReturnedOk returns a tuple with the PageReturned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedSSHUnmanagedKeyQuery) GetPageReturnedOk() (*int32, bool) { + if o == nil || isNil(o.PageReturned) { + return nil, false + } + return o.PageReturned, true +} + +// HasPageReturned returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedSSHUnmanagedKeyQuery) HasPageReturned() bool { + if o != nil && !isNil(o.PageReturned) { + return true + } + + return false +} + +// SetPageReturned gets a reference to the given int32 and assigns it to the PageReturned field. +func (o *ModelsQueryModelsPagedSSHUnmanagedKeyQuery) SetPageReturned(v int32) { + o.PageReturned = &v +} + +// GetReturnLimit returns the ReturnLimit field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedSSHUnmanagedKeyQuery) GetReturnLimit() int32 { + if o == nil || isNil(o.ReturnLimit) { + var ret int32 + return ret + } + return *o.ReturnLimit +} + +// GetReturnLimitOk returns a tuple with the ReturnLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedSSHUnmanagedKeyQuery) GetReturnLimitOk() (*int32, bool) { + if o == nil || isNil(o.ReturnLimit) { + return nil, false + } + return o.ReturnLimit, true +} + +// HasReturnLimit returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedSSHUnmanagedKeyQuery) HasReturnLimit() bool { + if o != nil && !isNil(o.ReturnLimit) { + return true + } + + return false +} + +// SetReturnLimit gets a reference to the given int32 and assigns it to the ReturnLimit field. +func (o *ModelsQueryModelsPagedSSHUnmanagedKeyQuery) SetReturnLimit(v int32) { + o.ReturnLimit = &v +} + +// GetSortField returns the SortField field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedSSHUnmanagedKeyQuery) GetSortField() string { + if o == nil || isNil(o.SortField) { + var ret string + return ret + } + return *o.SortField +} + +// GetSortFieldOk returns a tuple with the SortField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedSSHUnmanagedKeyQuery) GetSortFieldOk() (*string, bool) { + if o == nil || isNil(o.SortField) { + return nil, false + } + return o.SortField, true +} + +// HasSortField returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedSSHUnmanagedKeyQuery) HasSortField() bool { + if o != nil && !isNil(o.SortField) { + return true + } + + return false +} + +// SetSortField gets a reference to the given string and assigns it to the SortField field. +func (o *ModelsQueryModelsPagedSSHUnmanagedKeyQuery) SetSortField(v string) { + o.SortField = &v +} + +// GetSortAscending returns the SortAscending field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedSSHUnmanagedKeyQuery) GetSortAscending() int32 { + if o == nil || isNil(o.SortAscending) { + var ret int32 + return ret + } + return *o.SortAscending +} + +// GetSortAscendingOk returns a tuple with the SortAscending field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedSSHUnmanagedKeyQuery) GetSortAscendingOk() (*int32, bool) { + if o == nil || isNil(o.SortAscending) { + return nil, false + } + return o.SortAscending, true +} + +// HasSortAscending returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedSSHUnmanagedKeyQuery) HasSortAscending() bool { + if o != nil && !isNil(o.SortAscending) { + return true + } + + return false +} + +// SetSortAscending gets a reference to the given int32 and assigns it to the SortAscending field. +func (o *ModelsQueryModelsPagedSSHUnmanagedKeyQuery) SetSortAscending(v int32) { + o.SortAscending = &v +} + +func (o ModelsQueryModelsPagedSSHUnmanagedKeyQuery) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsQueryModelsPagedSSHUnmanagedKeyQuery) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.QueryString) { + toSerialize["QueryString"] = o.QueryString + } + if !isNil(o.PageReturned) { + toSerialize["PageReturned"] = o.PageReturned + } + if !isNil(o.ReturnLimit) { + toSerialize["ReturnLimit"] = o.ReturnLimit + } + if !isNil(o.SortField) { + toSerialize["SortField"] = o.SortField + } + if !isNil(o.SortAscending) { + toSerialize["SortAscending"] = o.SortAscending + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsQueryModelsPagedSSHUnmanagedKeyQuery) UnmarshalJSON(bytes []byte) (err error) { + varModelsQueryModelsPagedSSHUnmanagedKeyQuery := _ModelsQueryModelsPagedSSHUnmanagedKeyQuery{} + + if err = json.Unmarshal(bytes, &varModelsQueryModelsPagedSSHUnmanagedKeyQuery); err == nil { + *o = ModelsQueryModelsPagedSSHUnmanagedKeyQuery(varModelsQueryModelsPagedSSHUnmanagedKeyQuery) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "QueryString") + delete(additionalProperties, "PageReturned") + delete(additionalProperties, "ReturnLimit") + delete(additionalProperties, "SortField") + delete(additionalProperties, "SortAscending") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsQueryModelsPagedSSHUnmanagedKeyQuery struct { + value *ModelsQueryModelsPagedSSHUnmanagedKeyQuery + isSet bool +} + +func (v NullableModelsQueryModelsPagedSSHUnmanagedKeyQuery) Get() *ModelsQueryModelsPagedSSHUnmanagedKeyQuery { + return v.value +} + +func (v *NullableModelsQueryModelsPagedSSHUnmanagedKeyQuery) Set(val *ModelsQueryModelsPagedSSHUnmanagedKeyQuery) { + v.value = val + v.isSet = true +} + +func (v NullableModelsQueryModelsPagedSSHUnmanagedKeyQuery) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsQueryModelsPagedSSHUnmanagedKeyQuery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsQueryModelsPagedSSHUnmanagedKeyQuery(val *ModelsQueryModelsPagedSSHUnmanagedKeyQuery) *NullableModelsQueryModelsPagedSSHUnmanagedKeyQuery { + return &NullableModelsQueryModelsPagedSSHUnmanagedKeyQuery{value: val, isSet: true} +} + +func (v NullableModelsQueryModelsPagedSSHUnmanagedKeyQuery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsQueryModelsPagedSSHUnmanagedKeyQuery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_query_models_paged_ssh_user_query.go b/v1/api/keyfactor/model_models_query_models_paged_ssh_user_query.go new file mode 100644 index 0000000..bbfb206 --- /dev/null +++ b/v1/api/keyfactor/model_models_query_models_paged_ssh_user_query.go @@ -0,0 +1,311 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsQueryModelsPagedSSHUserQuery type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsQueryModelsPagedSSHUserQuery{} + +// ModelsQueryModelsPagedSSHUserQuery struct for ModelsQueryModelsPagedSSHUserQuery +type ModelsQueryModelsPagedSSHUserQuery struct { + // Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) + QueryString *string `json:"QueryString,omitempty"` + // The current page within the result set to be returned + PageReturned *int32 `json:"PageReturned,omitempty"` + // Maximum number of records to be returned in a single call + ReturnLimit *int32 `json:"ReturnLimit,omitempty"` + // Field by which the results should be sorted (view results via Management Portal for sortable columns) + SortField *string `json:"SortField,omitempty"` + // Field sort direction [0=ascending, 1=descending] + SortAscending *int32 `json:"SortAscending,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsQueryModelsPagedSSHUserQuery ModelsQueryModelsPagedSSHUserQuery + +// NewModelsQueryModelsPagedSSHUserQuery instantiates a new ModelsQueryModelsPagedSSHUserQuery object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsQueryModelsPagedSSHUserQuery() *ModelsQueryModelsPagedSSHUserQuery { + this := ModelsQueryModelsPagedSSHUserQuery{} + return &this +} + +// NewModelsQueryModelsPagedSSHUserQueryWithDefaults instantiates a new ModelsQueryModelsPagedSSHUserQuery object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsQueryModelsPagedSSHUserQueryWithDefaults() *ModelsQueryModelsPagedSSHUserQuery { + this := ModelsQueryModelsPagedSSHUserQuery{} + return &this +} + +// GetQueryString returns the QueryString field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedSSHUserQuery) GetQueryString() string { + if o == nil || isNil(o.QueryString) { + var ret string + return ret + } + return *o.QueryString +} + +// GetQueryStringOk returns a tuple with the QueryString field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedSSHUserQuery) GetQueryStringOk() (*string, bool) { + if o == nil || isNil(o.QueryString) { + return nil, false + } + return o.QueryString, true +} + +// HasQueryString returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedSSHUserQuery) HasQueryString() bool { + if o != nil && !isNil(o.QueryString) { + return true + } + + return false +} + +// SetQueryString gets a reference to the given string and assigns it to the QueryString field. +func (o *ModelsQueryModelsPagedSSHUserQuery) SetQueryString(v string) { + o.QueryString = &v +} + +// GetPageReturned returns the PageReturned field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedSSHUserQuery) GetPageReturned() int32 { + if o == nil || isNil(o.PageReturned) { + var ret int32 + return ret + } + return *o.PageReturned +} + +// GetPageReturnedOk returns a tuple with the PageReturned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedSSHUserQuery) GetPageReturnedOk() (*int32, bool) { + if o == nil || isNil(o.PageReturned) { + return nil, false + } + return o.PageReturned, true +} + +// HasPageReturned returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedSSHUserQuery) HasPageReturned() bool { + if o != nil && !isNil(o.PageReturned) { + return true + } + + return false +} + +// SetPageReturned gets a reference to the given int32 and assigns it to the PageReturned field. +func (o *ModelsQueryModelsPagedSSHUserQuery) SetPageReturned(v int32) { + o.PageReturned = &v +} + +// GetReturnLimit returns the ReturnLimit field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedSSHUserQuery) GetReturnLimit() int32 { + if o == nil || isNil(o.ReturnLimit) { + var ret int32 + return ret + } + return *o.ReturnLimit +} + +// GetReturnLimitOk returns a tuple with the ReturnLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedSSHUserQuery) GetReturnLimitOk() (*int32, bool) { + if o == nil || isNil(o.ReturnLimit) { + return nil, false + } + return o.ReturnLimit, true +} + +// HasReturnLimit returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedSSHUserQuery) HasReturnLimit() bool { + if o != nil && !isNil(o.ReturnLimit) { + return true + } + + return false +} + +// SetReturnLimit gets a reference to the given int32 and assigns it to the ReturnLimit field. +func (o *ModelsQueryModelsPagedSSHUserQuery) SetReturnLimit(v int32) { + o.ReturnLimit = &v +} + +// GetSortField returns the SortField field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedSSHUserQuery) GetSortField() string { + if o == nil || isNil(o.SortField) { + var ret string + return ret + } + return *o.SortField +} + +// GetSortFieldOk returns a tuple with the SortField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedSSHUserQuery) GetSortFieldOk() (*string, bool) { + if o == nil || isNil(o.SortField) { + return nil, false + } + return o.SortField, true +} + +// HasSortField returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedSSHUserQuery) HasSortField() bool { + if o != nil && !isNil(o.SortField) { + return true + } + + return false +} + +// SetSortField gets a reference to the given string and assigns it to the SortField field. +func (o *ModelsQueryModelsPagedSSHUserQuery) SetSortField(v string) { + o.SortField = &v +} + +// GetSortAscending returns the SortAscending field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedSSHUserQuery) GetSortAscending() int32 { + if o == nil || isNil(o.SortAscending) { + var ret int32 + return ret + } + return *o.SortAscending +} + +// GetSortAscendingOk returns a tuple with the SortAscending field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedSSHUserQuery) GetSortAscendingOk() (*int32, bool) { + if o == nil || isNil(o.SortAscending) { + return nil, false + } + return o.SortAscending, true +} + +// HasSortAscending returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedSSHUserQuery) HasSortAscending() bool { + if o != nil && !isNil(o.SortAscending) { + return true + } + + return false +} + +// SetSortAscending gets a reference to the given int32 and assigns it to the SortAscending field. +func (o *ModelsQueryModelsPagedSSHUserQuery) SetSortAscending(v int32) { + o.SortAscending = &v +} + +func (o ModelsQueryModelsPagedSSHUserQuery) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsQueryModelsPagedSSHUserQuery) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.QueryString) { + toSerialize["QueryString"] = o.QueryString + } + if !isNil(o.PageReturned) { + toSerialize["PageReturned"] = o.PageReturned + } + if !isNil(o.ReturnLimit) { + toSerialize["ReturnLimit"] = o.ReturnLimit + } + if !isNil(o.SortField) { + toSerialize["SortField"] = o.SortField + } + if !isNil(o.SortAscending) { + toSerialize["SortAscending"] = o.SortAscending + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsQueryModelsPagedSSHUserQuery) UnmarshalJSON(bytes []byte) (err error) { + varModelsQueryModelsPagedSSHUserQuery := _ModelsQueryModelsPagedSSHUserQuery{} + + if err = json.Unmarshal(bytes, &varModelsQueryModelsPagedSSHUserQuery); err == nil { + *o = ModelsQueryModelsPagedSSHUserQuery(varModelsQueryModelsPagedSSHUserQuery) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "QueryString") + delete(additionalProperties, "PageReturned") + delete(additionalProperties, "ReturnLimit") + delete(additionalProperties, "SortField") + delete(additionalProperties, "SortAscending") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsQueryModelsPagedSSHUserQuery struct { + value *ModelsQueryModelsPagedSSHUserQuery + isSet bool +} + +func (v NullableModelsQueryModelsPagedSSHUserQuery) Get() *ModelsQueryModelsPagedSSHUserQuery { + return v.value +} + +func (v *NullableModelsQueryModelsPagedSSHUserQuery) Set(val *ModelsQueryModelsPagedSSHUserQuery) { + v.value = val + v.isSet = true +} + +func (v NullableModelsQueryModelsPagedSSHUserQuery) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsQueryModelsPagedSSHUserQuery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsQueryModelsPagedSSHUserQuery(val *ModelsQueryModelsPagedSSHUserQuery) *NullableModelsQueryModelsPagedSSHUserQuery { + return &NullableModelsQueryModelsPagedSSHUserQuery{value: val, isSet: true} +} + +func (v NullableModelsQueryModelsPagedSSHUserQuery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsQueryModelsPagedSSHUserQuery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_query_models_paged_ssl_result_query.go b/v1/api/keyfactor/model_models_query_models_paged_ssl_result_query.go new file mode 100644 index 0000000..e7afb84 --- /dev/null +++ b/v1/api/keyfactor/model_models_query_models_paged_ssl_result_query.go @@ -0,0 +1,311 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsQueryModelsPagedSslResultQuery type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsQueryModelsPagedSslResultQuery{} + +// ModelsQueryModelsPagedSslResultQuery struct for ModelsQueryModelsPagedSslResultQuery +type ModelsQueryModelsPagedSslResultQuery struct { + // Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) + QueryString *string `json:"QueryString,omitempty"` + // The current page within the result set to be returned + PageReturned *int32 `json:"PageReturned,omitempty"` + // Maximum number of records to be returned in a single call + ReturnLimit *int32 `json:"ReturnLimit,omitempty"` + // Field by which the results should be sorted (view results via Management Portal for sortable columns) + SortField *string `json:"SortField,omitempty"` + // Field sort direction [0=ascending, 1=descending] + SortAscending *int32 `json:"SortAscending,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsQueryModelsPagedSslResultQuery ModelsQueryModelsPagedSslResultQuery + +// NewModelsQueryModelsPagedSslResultQuery instantiates a new ModelsQueryModelsPagedSslResultQuery object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsQueryModelsPagedSslResultQuery() *ModelsQueryModelsPagedSslResultQuery { + this := ModelsQueryModelsPagedSslResultQuery{} + return &this +} + +// NewModelsQueryModelsPagedSslResultQueryWithDefaults instantiates a new ModelsQueryModelsPagedSslResultQuery object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsQueryModelsPagedSslResultQueryWithDefaults() *ModelsQueryModelsPagedSslResultQuery { + this := ModelsQueryModelsPagedSslResultQuery{} + return &this +} + +// GetQueryString returns the QueryString field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedSslResultQuery) GetQueryString() string { + if o == nil || isNil(o.QueryString) { + var ret string + return ret + } + return *o.QueryString +} + +// GetQueryStringOk returns a tuple with the QueryString field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedSslResultQuery) GetQueryStringOk() (*string, bool) { + if o == nil || isNil(o.QueryString) { + return nil, false + } + return o.QueryString, true +} + +// HasQueryString returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedSslResultQuery) HasQueryString() bool { + if o != nil && !isNil(o.QueryString) { + return true + } + + return false +} + +// SetQueryString gets a reference to the given string and assigns it to the QueryString field. +func (o *ModelsQueryModelsPagedSslResultQuery) SetQueryString(v string) { + o.QueryString = &v +} + +// GetPageReturned returns the PageReturned field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedSslResultQuery) GetPageReturned() int32 { + if o == nil || isNil(o.PageReturned) { + var ret int32 + return ret + } + return *o.PageReturned +} + +// GetPageReturnedOk returns a tuple with the PageReturned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedSslResultQuery) GetPageReturnedOk() (*int32, bool) { + if o == nil || isNil(o.PageReturned) { + return nil, false + } + return o.PageReturned, true +} + +// HasPageReturned returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedSslResultQuery) HasPageReturned() bool { + if o != nil && !isNil(o.PageReturned) { + return true + } + + return false +} + +// SetPageReturned gets a reference to the given int32 and assigns it to the PageReturned field. +func (o *ModelsQueryModelsPagedSslResultQuery) SetPageReturned(v int32) { + o.PageReturned = &v +} + +// GetReturnLimit returns the ReturnLimit field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedSslResultQuery) GetReturnLimit() int32 { + if o == nil || isNil(o.ReturnLimit) { + var ret int32 + return ret + } + return *o.ReturnLimit +} + +// GetReturnLimitOk returns a tuple with the ReturnLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedSslResultQuery) GetReturnLimitOk() (*int32, bool) { + if o == nil || isNil(o.ReturnLimit) { + return nil, false + } + return o.ReturnLimit, true +} + +// HasReturnLimit returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedSslResultQuery) HasReturnLimit() bool { + if o != nil && !isNil(o.ReturnLimit) { + return true + } + + return false +} + +// SetReturnLimit gets a reference to the given int32 and assigns it to the ReturnLimit field. +func (o *ModelsQueryModelsPagedSslResultQuery) SetReturnLimit(v int32) { + o.ReturnLimit = &v +} + +// GetSortField returns the SortField field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedSslResultQuery) GetSortField() string { + if o == nil || isNil(o.SortField) { + var ret string + return ret + } + return *o.SortField +} + +// GetSortFieldOk returns a tuple with the SortField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedSslResultQuery) GetSortFieldOk() (*string, bool) { + if o == nil || isNil(o.SortField) { + return nil, false + } + return o.SortField, true +} + +// HasSortField returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedSslResultQuery) HasSortField() bool { + if o != nil && !isNil(o.SortField) { + return true + } + + return false +} + +// SetSortField gets a reference to the given string and assigns it to the SortField field. +func (o *ModelsQueryModelsPagedSslResultQuery) SetSortField(v string) { + o.SortField = &v +} + +// GetSortAscending returns the SortAscending field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedSslResultQuery) GetSortAscending() int32 { + if o == nil || isNil(o.SortAscending) { + var ret int32 + return ret + } + return *o.SortAscending +} + +// GetSortAscendingOk returns a tuple with the SortAscending field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedSslResultQuery) GetSortAscendingOk() (*int32, bool) { + if o == nil || isNil(o.SortAscending) { + return nil, false + } + return o.SortAscending, true +} + +// HasSortAscending returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedSslResultQuery) HasSortAscending() bool { + if o != nil && !isNil(o.SortAscending) { + return true + } + + return false +} + +// SetSortAscending gets a reference to the given int32 and assigns it to the SortAscending field. +func (o *ModelsQueryModelsPagedSslResultQuery) SetSortAscending(v int32) { + o.SortAscending = &v +} + +func (o ModelsQueryModelsPagedSslResultQuery) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsQueryModelsPagedSslResultQuery) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.QueryString) { + toSerialize["QueryString"] = o.QueryString + } + if !isNil(o.PageReturned) { + toSerialize["PageReturned"] = o.PageReturned + } + if !isNil(o.ReturnLimit) { + toSerialize["ReturnLimit"] = o.ReturnLimit + } + if !isNil(o.SortField) { + toSerialize["SortField"] = o.SortField + } + if !isNil(o.SortAscending) { + toSerialize["SortAscending"] = o.SortAscending + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsQueryModelsPagedSslResultQuery) UnmarshalJSON(bytes []byte) (err error) { + varModelsQueryModelsPagedSslResultQuery := _ModelsQueryModelsPagedSslResultQuery{} + + if err = json.Unmarshal(bytes, &varModelsQueryModelsPagedSslResultQuery); err == nil { + *o = ModelsQueryModelsPagedSslResultQuery(varModelsQueryModelsPagedSslResultQuery) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "QueryString") + delete(additionalProperties, "PageReturned") + delete(additionalProperties, "ReturnLimit") + delete(additionalProperties, "SortField") + delete(additionalProperties, "SortAscending") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsQueryModelsPagedSslResultQuery struct { + value *ModelsQueryModelsPagedSslResultQuery + isSet bool +} + +func (v NullableModelsQueryModelsPagedSslResultQuery) Get() *ModelsQueryModelsPagedSslResultQuery { + return v.value +} + +func (v *NullableModelsQueryModelsPagedSslResultQuery) Set(val *ModelsQueryModelsPagedSslResultQuery) { + v.value = val + v.isSet = true +} + +func (v NullableModelsQueryModelsPagedSslResultQuery) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsQueryModelsPagedSslResultQuery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsQueryModelsPagedSslResultQuery(val *ModelsQueryModelsPagedSslResultQuery) *NullableModelsQueryModelsPagedSslResultQuery { + return &NullableModelsQueryModelsPagedSslResultQuery{value: val, isSet: true} +} + +func (v NullableModelsQueryModelsPagedSslResultQuery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsQueryModelsPagedSslResultQuery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_query_models_paged_template_query.go b/v1/api/keyfactor/model_models_query_models_paged_template_query.go new file mode 100644 index 0000000..9c5835a --- /dev/null +++ b/v1/api/keyfactor/model_models_query_models_paged_template_query.go @@ -0,0 +1,311 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsQueryModelsPagedTemplateQuery type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsQueryModelsPagedTemplateQuery{} + +// ModelsQueryModelsPagedTemplateQuery struct for ModelsQueryModelsPagedTemplateQuery +type ModelsQueryModelsPagedTemplateQuery struct { + // Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) + QueryString *string `json:"QueryString,omitempty"` + // The current page within the result set to be returned + PageReturned *int32 `json:"PageReturned,omitempty"` + // Maximum number of records to be returned in a single call + ReturnLimit *int32 `json:"ReturnLimit,omitempty"` + // Field by which the results should be sorted (view results via Management Portal for sortable columns) + SortField *string `json:"SortField,omitempty"` + // Field sort direction [0=ascending, 1=descending] + SortAscending *int32 `json:"SortAscending,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsQueryModelsPagedTemplateQuery ModelsQueryModelsPagedTemplateQuery + +// NewModelsQueryModelsPagedTemplateQuery instantiates a new ModelsQueryModelsPagedTemplateQuery object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsQueryModelsPagedTemplateQuery() *ModelsQueryModelsPagedTemplateQuery { + this := ModelsQueryModelsPagedTemplateQuery{} + return &this +} + +// NewModelsQueryModelsPagedTemplateQueryWithDefaults instantiates a new ModelsQueryModelsPagedTemplateQuery object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsQueryModelsPagedTemplateQueryWithDefaults() *ModelsQueryModelsPagedTemplateQuery { + this := ModelsQueryModelsPagedTemplateQuery{} + return &this +} + +// GetQueryString returns the QueryString field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedTemplateQuery) GetQueryString() string { + if o == nil || isNil(o.QueryString) { + var ret string + return ret + } + return *o.QueryString +} + +// GetQueryStringOk returns a tuple with the QueryString field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedTemplateQuery) GetQueryStringOk() (*string, bool) { + if o == nil || isNil(o.QueryString) { + return nil, false + } + return o.QueryString, true +} + +// HasQueryString returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedTemplateQuery) HasQueryString() bool { + if o != nil && !isNil(o.QueryString) { + return true + } + + return false +} + +// SetQueryString gets a reference to the given string and assigns it to the QueryString field. +func (o *ModelsQueryModelsPagedTemplateQuery) SetQueryString(v string) { + o.QueryString = &v +} + +// GetPageReturned returns the PageReturned field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedTemplateQuery) GetPageReturned() int32 { + if o == nil || isNil(o.PageReturned) { + var ret int32 + return ret + } + return *o.PageReturned +} + +// GetPageReturnedOk returns a tuple with the PageReturned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedTemplateQuery) GetPageReturnedOk() (*int32, bool) { + if o == nil || isNil(o.PageReturned) { + return nil, false + } + return o.PageReturned, true +} + +// HasPageReturned returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedTemplateQuery) HasPageReturned() bool { + if o != nil && !isNil(o.PageReturned) { + return true + } + + return false +} + +// SetPageReturned gets a reference to the given int32 and assigns it to the PageReturned field. +func (o *ModelsQueryModelsPagedTemplateQuery) SetPageReturned(v int32) { + o.PageReturned = &v +} + +// GetReturnLimit returns the ReturnLimit field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedTemplateQuery) GetReturnLimit() int32 { + if o == nil || isNil(o.ReturnLimit) { + var ret int32 + return ret + } + return *o.ReturnLimit +} + +// GetReturnLimitOk returns a tuple with the ReturnLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedTemplateQuery) GetReturnLimitOk() (*int32, bool) { + if o == nil || isNil(o.ReturnLimit) { + return nil, false + } + return o.ReturnLimit, true +} + +// HasReturnLimit returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedTemplateQuery) HasReturnLimit() bool { + if o != nil && !isNil(o.ReturnLimit) { + return true + } + + return false +} + +// SetReturnLimit gets a reference to the given int32 and assigns it to the ReturnLimit field. +func (o *ModelsQueryModelsPagedTemplateQuery) SetReturnLimit(v int32) { + o.ReturnLimit = &v +} + +// GetSortField returns the SortField field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedTemplateQuery) GetSortField() string { + if o == nil || isNil(o.SortField) { + var ret string + return ret + } + return *o.SortField +} + +// GetSortFieldOk returns a tuple with the SortField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedTemplateQuery) GetSortFieldOk() (*string, bool) { + if o == nil || isNil(o.SortField) { + return nil, false + } + return o.SortField, true +} + +// HasSortField returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedTemplateQuery) HasSortField() bool { + if o != nil && !isNil(o.SortField) { + return true + } + + return false +} + +// SetSortField gets a reference to the given string and assigns it to the SortField field. +func (o *ModelsQueryModelsPagedTemplateQuery) SetSortField(v string) { + o.SortField = &v +} + +// GetSortAscending returns the SortAscending field value if set, zero value otherwise. +func (o *ModelsQueryModelsPagedTemplateQuery) GetSortAscending() int32 { + if o == nil || isNil(o.SortAscending) { + var ret int32 + return ret + } + return *o.SortAscending +} + +// GetSortAscendingOk returns a tuple with the SortAscending field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsPagedTemplateQuery) GetSortAscendingOk() (*int32, bool) { + if o == nil || isNil(o.SortAscending) { + return nil, false + } + return o.SortAscending, true +} + +// HasSortAscending returns a boolean if a field has been set. +func (o *ModelsQueryModelsPagedTemplateQuery) HasSortAscending() bool { + if o != nil && !isNil(o.SortAscending) { + return true + } + + return false +} + +// SetSortAscending gets a reference to the given int32 and assigns it to the SortAscending field. +func (o *ModelsQueryModelsPagedTemplateQuery) SetSortAscending(v int32) { + o.SortAscending = &v +} + +func (o ModelsQueryModelsPagedTemplateQuery) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsQueryModelsPagedTemplateQuery) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.QueryString) { + toSerialize["QueryString"] = o.QueryString + } + if !isNil(o.PageReturned) { + toSerialize["PageReturned"] = o.PageReturned + } + if !isNil(o.ReturnLimit) { + toSerialize["ReturnLimit"] = o.ReturnLimit + } + if !isNil(o.SortField) { + toSerialize["SortField"] = o.SortField + } + if !isNil(o.SortAscending) { + toSerialize["SortAscending"] = o.SortAscending + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsQueryModelsPagedTemplateQuery) UnmarshalJSON(bytes []byte) (err error) { + varModelsQueryModelsPagedTemplateQuery := _ModelsQueryModelsPagedTemplateQuery{} + + if err = json.Unmarshal(bytes, &varModelsQueryModelsPagedTemplateQuery); err == nil { + *o = ModelsQueryModelsPagedTemplateQuery(varModelsQueryModelsPagedTemplateQuery) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "QueryString") + delete(additionalProperties, "PageReturned") + delete(additionalProperties, "ReturnLimit") + delete(additionalProperties, "SortField") + delete(additionalProperties, "SortAscending") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsQueryModelsPagedTemplateQuery struct { + value *ModelsQueryModelsPagedTemplateQuery + isSet bool +} + +func (v NullableModelsQueryModelsPagedTemplateQuery) Get() *ModelsQueryModelsPagedTemplateQuery { + return v.value +} + +func (v *NullableModelsQueryModelsPagedTemplateQuery) Set(val *ModelsQueryModelsPagedTemplateQuery) { + v.value = val + v.isSet = true +} + +func (v NullableModelsQueryModelsPagedTemplateQuery) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsQueryModelsPagedTemplateQuery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsQueryModelsPagedTemplateQuery(val *ModelsQueryModelsPagedTemplateQuery) *NullableModelsQueryModelsPagedTemplateQuery { + return &NullableModelsQueryModelsPagedTemplateQuery{value: val, isSet: true} +} + +func (v NullableModelsQueryModelsPagedTemplateQuery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsQueryModelsPagedTemplateQuery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_query_models_workflow_workflow_definition_query.go b/v1/api/keyfactor/model_models_query_models_workflow_workflow_definition_query.go new file mode 100644 index 0000000..e353cee --- /dev/null +++ b/v1/api/keyfactor/model_models_query_models_workflow_workflow_definition_query.go @@ -0,0 +1,311 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsQueryModelsWorkflowWorkflowDefinitionQuery type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsQueryModelsWorkflowWorkflowDefinitionQuery{} + +// ModelsQueryModelsWorkflowWorkflowDefinitionQuery struct for ModelsQueryModelsWorkflowWorkflowDefinitionQuery +type ModelsQueryModelsWorkflowWorkflowDefinitionQuery struct { + // Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) + QueryString *string `json:"QueryString,omitempty"` + // The current page within the result set to be returned + PageReturned *int32 `json:"PageReturned,omitempty"` + // Maximum number of records to be returned in a single call + ReturnLimit *int32 `json:"ReturnLimit,omitempty"` + // Field by which the results should be sorted (view results via Management Portal for sortable columns) + SortField *string `json:"SortField,omitempty"` + // Field sort direction [0=ascending, 1=descending] + SortAscending *int32 `json:"SortAscending,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsQueryModelsWorkflowWorkflowDefinitionQuery ModelsQueryModelsWorkflowWorkflowDefinitionQuery + +// NewModelsQueryModelsWorkflowWorkflowDefinitionQuery instantiates a new ModelsQueryModelsWorkflowWorkflowDefinitionQuery object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsQueryModelsWorkflowWorkflowDefinitionQuery() *ModelsQueryModelsWorkflowWorkflowDefinitionQuery { + this := ModelsQueryModelsWorkflowWorkflowDefinitionQuery{} + return &this +} + +// NewModelsQueryModelsWorkflowWorkflowDefinitionQueryWithDefaults instantiates a new ModelsQueryModelsWorkflowWorkflowDefinitionQuery object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsQueryModelsWorkflowWorkflowDefinitionQueryWithDefaults() *ModelsQueryModelsWorkflowWorkflowDefinitionQuery { + this := ModelsQueryModelsWorkflowWorkflowDefinitionQuery{} + return &this +} + +// GetQueryString returns the QueryString field value if set, zero value otherwise. +func (o *ModelsQueryModelsWorkflowWorkflowDefinitionQuery) GetQueryString() string { + if o == nil || isNil(o.QueryString) { + var ret string + return ret + } + return *o.QueryString +} + +// GetQueryStringOk returns a tuple with the QueryString field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsWorkflowWorkflowDefinitionQuery) GetQueryStringOk() (*string, bool) { + if o == nil || isNil(o.QueryString) { + return nil, false + } + return o.QueryString, true +} + +// HasQueryString returns a boolean if a field has been set. +func (o *ModelsQueryModelsWorkflowWorkflowDefinitionQuery) HasQueryString() bool { + if o != nil && !isNil(o.QueryString) { + return true + } + + return false +} + +// SetQueryString gets a reference to the given string and assigns it to the QueryString field. +func (o *ModelsQueryModelsWorkflowWorkflowDefinitionQuery) SetQueryString(v string) { + o.QueryString = &v +} + +// GetPageReturned returns the PageReturned field value if set, zero value otherwise. +func (o *ModelsQueryModelsWorkflowWorkflowDefinitionQuery) GetPageReturned() int32 { + if o == nil || isNil(o.PageReturned) { + var ret int32 + return ret + } + return *o.PageReturned +} + +// GetPageReturnedOk returns a tuple with the PageReturned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsWorkflowWorkflowDefinitionQuery) GetPageReturnedOk() (*int32, bool) { + if o == nil || isNil(o.PageReturned) { + return nil, false + } + return o.PageReturned, true +} + +// HasPageReturned returns a boolean if a field has been set. +func (o *ModelsQueryModelsWorkflowWorkflowDefinitionQuery) HasPageReturned() bool { + if o != nil && !isNil(o.PageReturned) { + return true + } + + return false +} + +// SetPageReturned gets a reference to the given int32 and assigns it to the PageReturned field. +func (o *ModelsQueryModelsWorkflowWorkflowDefinitionQuery) SetPageReturned(v int32) { + o.PageReturned = &v +} + +// GetReturnLimit returns the ReturnLimit field value if set, zero value otherwise. +func (o *ModelsQueryModelsWorkflowWorkflowDefinitionQuery) GetReturnLimit() int32 { + if o == nil || isNil(o.ReturnLimit) { + var ret int32 + return ret + } + return *o.ReturnLimit +} + +// GetReturnLimitOk returns a tuple with the ReturnLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsWorkflowWorkflowDefinitionQuery) GetReturnLimitOk() (*int32, bool) { + if o == nil || isNil(o.ReturnLimit) { + return nil, false + } + return o.ReturnLimit, true +} + +// HasReturnLimit returns a boolean if a field has been set. +func (o *ModelsQueryModelsWorkflowWorkflowDefinitionQuery) HasReturnLimit() bool { + if o != nil && !isNil(o.ReturnLimit) { + return true + } + + return false +} + +// SetReturnLimit gets a reference to the given int32 and assigns it to the ReturnLimit field. +func (o *ModelsQueryModelsWorkflowWorkflowDefinitionQuery) SetReturnLimit(v int32) { + o.ReturnLimit = &v +} + +// GetSortField returns the SortField field value if set, zero value otherwise. +func (o *ModelsQueryModelsWorkflowWorkflowDefinitionQuery) GetSortField() string { + if o == nil || isNil(o.SortField) { + var ret string + return ret + } + return *o.SortField +} + +// GetSortFieldOk returns a tuple with the SortField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsWorkflowWorkflowDefinitionQuery) GetSortFieldOk() (*string, bool) { + if o == nil || isNil(o.SortField) { + return nil, false + } + return o.SortField, true +} + +// HasSortField returns a boolean if a field has been set. +func (o *ModelsQueryModelsWorkflowWorkflowDefinitionQuery) HasSortField() bool { + if o != nil && !isNil(o.SortField) { + return true + } + + return false +} + +// SetSortField gets a reference to the given string and assigns it to the SortField field. +func (o *ModelsQueryModelsWorkflowWorkflowDefinitionQuery) SetSortField(v string) { + o.SortField = &v +} + +// GetSortAscending returns the SortAscending field value if set, zero value otherwise. +func (o *ModelsQueryModelsWorkflowWorkflowDefinitionQuery) GetSortAscending() int32 { + if o == nil || isNil(o.SortAscending) { + var ret int32 + return ret + } + return *o.SortAscending +} + +// GetSortAscendingOk returns a tuple with the SortAscending field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsWorkflowWorkflowDefinitionQuery) GetSortAscendingOk() (*int32, bool) { + if o == nil || isNil(o.SortAscending) { + return nil, false + } + return o.SortAscending, true +} + +// HasSortAscending returns a boolean if a field has been set. +func (o *ModelsQueryModelsWorkflowWorkflowDefinitionQuery) HasSortAscending() bool { + if o != nil && !isNil(o.SortAscending) { + return true + } + + return false +} + +// SetSortAscending gets a reference to the given int32 and assigns it to the SortAscending field. +func (o *ModelsQueryModelsWorkflowWorkflowDefinitionQuery) SetSortAscending(v int32) { + o.SortAscending = &v +} + +func (o ModelsQueryModelsWorkflowWorkflowDefinitionQuery) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsQueryModelsWorkflowWorkflowDefinitionQuery) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.QueryString) { + toSerialize["QueryString"] = o.QueryString + } + if !isNil(o.PageReturned) { + toSerialize["PageReturned"] = o.PageReturned + } + if !isNil(o.ReturnLimit) { + toSerialize["ReturnLimit"] = o.ReturnLimit + } + if !isNil(o.SortField) { + toSerialize["SortField"] = o.SortField + } + if !isNil(o.SortAscending) { + toSerialize["SortAscending"] = o.SortAscending + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsQueryModelsWorkflowWorkflowDefinitionQuery) UnmarshalJSON(bytes []byte) (err error) { + varModelsQueryModelsWorkflowWorkflowDefinitionQuery := _ModelsQueryModelsWorkflowWorkflowDefinitionQuery{} + + if err = json.Unmarshal(bytes, &varModelsQueryModelsWorkflowWorkflowDefinitionQuery); err == nil { + *o = ModelsQueryModelsWorkflowWorkflowDefinitionQuery(varModelsQueryModelsWorkflowWorkflowDefinitionQuery) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "QueryString") + delete(additionalProperties, "PageReturned") + delete(additionalProperties, "ReturnLimit") + delete(additionalProperties, "SortField") + delete(additionalProperties, "SortAscending") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsQueryModelsWorkflowWorkflowDefinitionQuery struct { + value *ModelsQueryModelsWorkflowWorkflowDefinitionQuery + isSet bool +} + +func (v NullableModelsQueryModelsWorkflowWorkflowDefinitionQuery) Get() *ModelsQueryModelsWorkflowWorkflowDefinitionQuery { + return v.value +} + +func (v *NullableModelsQueryModelsWorkflowWorkflowDefinitionQuery) Set(val *ModelsQueryModelsWorkflowWorkflowDefinitionQuery) { + v.value = val + v.isSet = true +} + +func (v NullableModelsQueryModelsWorkflowWorkflowDefinitionQuery) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsQueryModelsWorkflowWorkflowDefinitionQuery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsQueryModelsWorkflowWorkflowDefinitionQuery(val *ModelsQueryModelsWorkflowWorkflowDefinitionQuery) *NullableModelsQueryModelsWorkflowWorkflowDefinitionQuery { + return &NullableModelsQueryModelsWorkflowWorkflowDefinitionQuery{value: val, isSet: true} +} + +func (v NullableModelsQueryModelsWorkflowWorkflowDefinitionQuery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsQueryModelsWorkflowWorkflowDefinitionQuery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_query_models_workflow_workflow_instance_query.go b/v1/api/keyfactor/model_models_query_models_workflow_workflow_instance_query.go new file mode 100644 index 0000000..9c2c6f1 --- /dev/null +++ b/v1/api/keyfactor/model_models_query_models_workflow_workflow_instance_query.go @@ -0,0 +1,311 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsQueryModelsWorkflowWorkflowInstanceQuery type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsQueryModelsWorkflowWorkflowInstanceQuery{} + +// ModelsQueryModelsWorkflowWorkflowInstanceQuery struct for ModelsQueryModelsWorkflowWorkflowInstanceQuery +type ModelsQueryModelsWorkflowWorkflowInstanceQuery struct { + // Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) + QueryString *string `json:"QueryString,omitempty"` + // The current page within the result set to be returned + PageReturned *int32 `json:"PageReturned,omitempty"` + // Maximum number of records to be returned in a single call + ReturnLimit *int32 `json:"ReturnLimit,omitempty"` + // Field by which the results should be sorted (view results via Management Portal for sortable columns) + SortField *string `json:"SortField,omitempty"` + // Field sort direction [0=ascending, 1=descending] + SortAscending *int32 `json:"SortAscending,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsQueryModelsWorkflowWorkflowInstanceQuery ModelsQueryModelsWorkflowWorkflowInstanceQuery + +// NewModelsQueryModelsWorkflowWorkflowInstanceQuery instantiates a new ModelsQueryModelsWorkflowWorkflowInstanceQuery object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsQueryModelsWorkflowWorkflowInstanceQuery() *ModelsQueryModelsWorkflowWorkflowInstanceQuery { + this := ModelsQueryModelsWorkflowWorkflowInstanceQuery{} + return &this +} + +// NewModelsQueryModelsWorkflowWorkflowInstanceQueryWithDefaults instantiates a new ModelsQueryModelsWorkflowWorkflowInstanceQuery object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsQueryModelsWorkflowWorkflowInstanceQueryWithDefaults() *ModelsQueryModelsWorkflowWorkflowInstanceQuery { + this := ModelsQueryModelsWorkflowWorkflowInstanceQuery{} + return &this +} + +// GetQueryString returns the QueryString field value if set, zero value otherwise. +func (o *ModelsQueryModelsWorkflowWorkflowInstanceQuery) GetQueryString() string { + if o == nil || isNil(o.QueryString) { + var ret string + return ret + } + return *o.QueryString +} + +// GetQueryStringOk returns a tuple with the QueryString field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsWorkflowWorkflowInstanceQuery) GetQueryStringOk() (*string, bool) { + if o == nil || isNil(o.QueryString) { + return nil, false + } + return o.QueryString, true +} + +// HasQueryString returns a boolean if a field has been set. +func (o *ModelsQueryModelsWorkflowWorkflowInstanceQuery) HasQueryString() bool { + if o != nil && !isNil(o.QueryString) { + return true + } + + return false +} + +// SetQueryString gets a reference to the given string and assigns it to the QueryString field. +func (o *ModelsQueryModelsWorkflowWorkflowInstanceQuery) SetQueryString(v string) { + o.QueryString = &v +} + +// GetPageReturned returns the PageReturned field value if set, zero value otherwise. +func (o *ModelsQueryModelsWorkflowWorkflowInstanceQuery) GetPageReturned() int32 { + if o == nil || isNil(o.PageReturned) { + var ret int32 + return ret + } + return *o.PageReturned +} + +// GetPageReturnedOk returns a tuple with the PageReturned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsWorkflowWorkflowInstanceQuery) GetPageReturnedOk() (*int32, bool) { + if o == nil || isNil(o.PageReturned) { + return nil, false + } + return o.PageReturned, true +} + +// HasPageReturned returns a boolean if a field has been set. +func (o *ModelsQueryModelsWorkflowWorkflowInstanceQuery) HasPageReturned() bool { + if o != nil && !isNil(o.PageReturned) { + return true + } + + return false +} + +// SetPageReturned gets a reference to the given int32 and assigns it to the PageReturned field. +func (o *ModelsQueryModelsWorkflowWorkflowInstanceQuery) SetPageReturned(v int32) { + o.PageReturned = &v +} + +// GetReturnLimit returns the ReturnLimit field value if set, zero value otherwise. +func (o *ModelsQueryModelsWorkflowWorkflowInstanceQuery) GetReturnLimit() int32 { + if o == nil || isNil(o.ReturnLimit) { + var ret int32 + return ret + } + return *o.ReturnLimit +} + +// GetReturnLimitOk returns a tuple with the ReturnLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsWorkflowWorkflowInstanceQuery) GetReturnLimitOk() (*int32, bool) { + if o == nil || isNil(o.ReturnLimit) { + return nil, false + } + return o.ReturnLimit, true +} + +// HasReturnLimit returns a boolean if a field has been set. +func (o *ModelsQueryModelsWorkflowWorkflowInstanceQuery) HasReturnLimit() bool { + if o != nil && !isNil(o.ReturnLimit) { + return true + } + + return false +} + +// SetReturnLimit gets a reference to the given int32 and assigns it to the ReturnLimit field. +func (o *ModelsQueryModelsWorkflowWorkflowInstanceQuery) SetReturnLimit(v int32) { + o.ReturnLimit = &v +} + +// GetSortField returns the SortField field value if set, zero value otherwise. +func (o *ModelsQueryModelsWorkflowWorkflowInstanceQuery) GetSortField() string { + if o == nil || isNil(o.SortField) { + var ret string + return ret + } + return *o.SortField +} + +// GetSortFieldOk returns a tuple with the SortField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsWorkflowWorkflowInstanceQuery) GetSortFieldOk() (*string, bool) { + if o == nil || isNil(o.SortField) { + return nil, false + } + return o.SortField, true +} + +// HasSortField returns a boolean if a field has been set. +func (o *ModelsQueryModelsWorkflowWorkflowInstanceQuery) HasSortField() bool { + if o != nil && !isNil(o.SortField) { + return true + } + + return false +} + +// SetSortField gets a reference to the given string and assigns it to the SortField field. +func (o *ModelsQueryModelsWorkflowWorkflowInstanceQuery) SetSortField(v string) { + o.SortField = &v +} + +// GetSortAscending returns the SortAscending field value if set, zero value otherwise. +func (o *ModelsQueryModelsWorkflowWorkflowInstanceQuery) GetSortAscending() int32 { + if o == nil || isNil(o.SortAscending) { + var ret int32 + return ret + } + return *o.SortAscending +} + +// GetSortAscendingOk returns a tuple with the SortAscending field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsWorkflowWorkflowInstanceQuery) GetSortAscendingOk() (*int32, bool) { + if o == nil || isNil(o.SortAscending) { + return nil, false + } + return o.SortAscending, true +} + +// HasSortAscending returns a boolean if a field has been set. +func (o *ModelsQueryModelsWorkflowWorkflowInstanceQuery) HasSortAscending() bool { + if o != nil && !isNil(o.SortAscending) { + return true + } + + return false +} + +// SetSortAscending gets a reference to the given int32 and assigns it to the SortAscending field. +func (o *ModelsQueryModelsWorkflowWorkflowInstanceQuery) SetSortAscending(v int32) { + o.SortAscending = &v +} + +func (o ModelsQueryModelsWorkflowWorkflowInstanceQuery) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsQueryModelsWorkflowWorkflowInstanceQuery) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.QueryString) { + toSerialize["QueryString"] = o.QueryString + } + if !isNil(o.PageReturned) { + toSerialize["PageReturned"] = o.PageReturned + } + if !isNil(o.ReturnLimit) { + toSerialize["ReturnLimit"] = o.ReturnLimit + } + if !isNil(o.SortField) { + toSerialize["SortField"] = o.SortField + } + if !isNil(o.SortAscending) { + toSerialize["SortAscending"] = o.SortAscending + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsQueryModelsWorkflowWorkflowInstanceQuery) UnmarshalJSON(bytes []byte) (err error) { + varModelsQueryModelsWorkflowWorkflowInstanceQuery := _ModelsQueryModelsWorkflowWorkflowInstanceQuery{} + + if err = json.Unmarshal(bytes, &varModelsQueryModelsWorkflowWorkflowInstanceQuery); err == nil { + *o = ModelsQueryModelsWorkflowWorkflowInstanceQuery(varModelsQueryModelsWorkflowWorkflowInstanceQuery) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "QueryString") + delete(additionalProperties, "PageReturned") + delete(additionalProperties, "ReturnLimit") + delete(additionalProperties, "SortField") + delete(additionalProperties, "SortAscending") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsQueryModelsWorkflowWorkflowInstanceQuery struct { + value *ModelsQueryModelsWorkflowWorkflowInstanceQuery + isSet bool +} + +func (v NullableModelsQueryModelsWorkflowWorkflowInstanceQuery) Get() *ModelsQueryModelsWorkflowWorkflowInstanceQuery { + return v.value +} + +func (v *NullableModelsQueryModelsWorkflowWorkflowInstanceQuery) Set(val *ModelsQueryModelsWorkflowWorkflowInstanceQuery) { + v.value = val + v.isSet = true +} + +func (v NullableModelsQueryModelsWorkflowWorkflowInstanceQuery) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsQueryModelsWorkflowWorkflowInstanceQuery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsQueryModelsWorkflowWorkflowInstanceQuery(val *ModelsQueryModelsWorkflowWorkflowInstanceQuery) *NullableModelsQueryModelsWorkflowWorkflowInstanceQuery { + return &NullableModelsQueryModelsWorkflowWorkflowInstanceQuery{value: val, isSet: true} +} + +func (v NullableModelsQueryModelsWorkflowWorkflowInstanceQuery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsQueryModelsWorkflowWorkflowInstanceQuery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_query_models_workflow_workflow_step_schema_query.go b/v1/api/keyfactor/model_models_query_models_workflow_workflow_step_schema_query.go new file mode 100644 index 0000000..9d73679 --- /dev/null +++ b/v1/api/keyfactor/model_models_query_models_workflow_workflow_step_schema_query.go @@ -0,0 +1,311 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsQueryModelsWorkflowWorkflowStepSchemaQuery type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsQueryModelsWorkflowWorkflowStepSchemaQuery{} + +// ModelsQueryModelsWorkflowWorkflowStepSchemaQuery struct for ModelsQueryModelsWorkflowWorkflowStepSchemaQuery +type ModelsQueryModelsWorkflowWorkflowStepSchemaQuery struct { + // Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) + QueryString *string `json:"QueryString,omitempty"` + // The current page within the result set to be returned + PageReturned *int32 `json:"PageReturned,omitempty"` + // Maximum number of records to be returned in a single call + ReturnLimit *int32 `json:"ReturnLimit,omitempty"` + // Field by which the results should be sorted (view results via Management Portal for sortable columns) + SortField *string `json:"SortField,omitempty"` + // Field sort direction [0=ascending, 1=descending] + SortAscending *int32 `json:"SortAscending,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsQueryModelsWorkflowWorkflowStepSchemaQuery ModelsQueryModelsWorkflowWorkflowStepSchemaQuery + +// NewModelsQueryModelsWorkflowWorkflowStepSchemaQuery instantiates a new ModelsQueryModelsWorkflowWorkflowStepSchemaQuery object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsQueryModelsWorkflowWorkflowStepSchemaQuery() *ModelsQueryModelsWorkflowWorkflowStepSchemaQuery { + this := ModelsQueryModelsWorkflowWorkflowStepSchemaQuery{} + return &this +} + +// NewModelsQueryModelsWorkflowWorkflowStepSchemaQueryWithDefaults instantiates a new ModelsQueryModelsWorkflowWorkflowStepSchemaQuery object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsQueryModelsWorkflowWorkflowStepSchemaQueryWithDefaults() *ModelsQueryModelsWorkflowWorkflowStepSchemaQuery { + this := ModelsQueryModelsWorkflowWorkflowStepSchemaQuery{} + return &this +} + +// GetQueryString returns the QueryString field value if set, zero value otherwise. +func (o *ModelsQueryModelsWorkflowWorkflowStepSchemaQuery) GetQueryString() string { + if o == nil || isNil(o.QueryString) { + var ret string + return ret + } + return *o.QueryString +} + +// GetQueryStringOk returns a tuple with the QueryString field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsWorkflowWorkflowStepSchemaQuery) GetQueryStringOk() (*string, bool) { + if o == nil || isNil(o.QueryString) { + return nil, false + } + return o.QueryString, true +} + +// HasQueryString returns a boolean if a field has been set. +func (o *ModelsQueryModelsWorkflowWorkflowStepSchemaQuery) HasQueryString() bool { + if o != nil && !isNil(o.QueryString) { + return true + } + + return false +} + +// SetQueryString gets a reference to the given string and assigns it to the QueryString field. +func (o *ModelsQueryModelsWorkflowWorkflowStepSchemaQuery) SetQueryString(v string) { + o.QueryString = &v +} + +// GetPageReturned returns the PageReturned field value if set, zero value otherwise. +func (o *ModelsQueryModelsWorkflowWorkflowStepSchemaQuery) GetPageReturned() int32 { + if o == nil || isNil(o.PageReturned) { + var ret int32 + return ret + } + return *o.PageReturned +} + +// GetPageReturnedOk returns a tuple with the PageReturned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsWorkflowWorkflowStepSchemaQuery) GetPageReturnedOk() (*int32, bool) { + if o == nil || isNil(o.PageReturned) { + return nil, false + } + return o.PageReturned, true +} + +// HasPageReturned returns a boolean if a field has been set. +func (o *ModelsQueryModelsWorkflowWorkflowStepSchemaQuery) HasPageReturned() bool { + if o != nil && !isNil(o.PageReturned) { + return true + } + + return false +} + +// SetPageReturned gets a reference to the given int32 and assigns it to the PageReturned field. +func (o *ModelsQueryModelsWorkflowWorkflowStepSchemaQuery) SetPageReturned(v int32) { + o.PageReturned = &v +} + +// GetReturnLimit returns the ReturnLimit field value if set, zero value otherwise. +func (o *ModelsQueryModelsWorkflowWorkflowStepSchemaQuery) GetReturnLimit() int32 { + if o == nil || isNil(o.ReturnLimit) { + var ret int32 + return ret + } + return *o.ReturnLimit +} + +// GetReturnLimitOk returns a tuple with the ReturnLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsWorkflowWorkflowStepSchemaQuery) GetReturnLimitOk() (*int32, bool) { + if o == nil || isNil(o.ReturnLimit) { + return nil, false + } + return o.ReturnLimit, true +} + +// HasReturnLimit returns a boolean if a field has been set. +func (o *ModelsQueryModelsWorkflowWorkflowStepSchemaQuery) HasReturnLimit() bool { + if o != nil && !isNil(o.ReturnLimit) { + return true + } + + return false +} + +// SetReturnLimit gets a reference to the given int32 and assigns it to the ReturnLimit field. +func (o *ModelsQueryModelsWorkflowWorkflowStepSchemaQuery) SetReturnLimit(v int32) { + o.ReturnLimit = &v +} + +// GetSortField returns the SortField field value if set, zero value otherwise. +func (o *ModelsQueryModelsWorkflowWorkflowStepSchemaQuery) GetSortField() string { + if o == nil || isNil(o.SortField) { + var ret string + return ret + } + return *o.SortField +} + +// GetSortFieldOk returns a tuple with the SortField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsWorkflowWorkflowStepSchemaQuery) GetSortFieldOk() (*string, bool) { + if o == nil || isNil(o.SortField) { + return nil, false + } + return o.SortField, true +} + +// HasSortField returns a boolean if a field has been set. +func (o *ModelsQueryModelsWorkflowWorkflowStepSchemaQuery) HasSortField() bool { + if o != nil && !isNil(o.SortField) { + return true + } + + return false +} + +// SetSortField gets a reference to the given string and assigns it to the SortField field. +func (o *ModelsQueryModelsWorkflowWorkflowStepSchemaQuery) SetSortField(v string) { + o.SortField = &v +} + +// GetSortAscending returns the SortAscending field value if set, zero value otherwise. +func (o *ModelsQueryModelsWorkflowWorkflowStepSchemaQuery) GetSortAscending() int32 { + if o == nil || isNil(o.SortAscending) { + var ret int32 + return ret + } + return *o.SortAscending +} + +// GetSortAscendingOk returns a tuple with the SortAscending field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsWorkflowWorkflowStepSchemaQuery) GetSortAscendingOk() (*int32, bool) { + if o == nil || isNil(o.SortAscending) { + return nil, false + } + return o.SortAscending, true +} + +// HasSortAscending returns a boolean if a field has been set. +func (o *ModelsQueryModelsWorkflowWorkflowStepSchemaQuery) HasSortAscending() bool { + if o != nil && !isNil(o.SortAscending) { + return true + } + + return false +} + +// SetSortAscending gets a reference to the given int32 and assigns it to the SortAscending field. +func (o *ModelsQueryModelsWorkflowWorkflowStepSchemaQuery) SetSortAscending(v int32) { + o.SortAscending = &v +} + +func (o ModelsQueryModelsWorkflowWorkflowStepSchemaQuery) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsQueryModelsWorkflowWorkflowStepSchemaQuery) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.QueryString) { + toSerialize["QueryString"] = o.QueryString + } + if !isNil(o.PageReturned) { + toSerialize["PageReturned"] = o.PageReturned + } + if !isNil(o.ReturnLimit) { + toSerialize["ReturnLimit"] = o.ReturnLimit + } + if !isNil(o.SortField) { + toSerialize["SortField"] = o.SortField + } + if !isNil(o.SortAscending) { + toSerialize["SortAscending"] = o.SortAscending + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsQueryModelsWorkflowWorkflowStepSchemaQuery) UnmarshalJSON(bytes []byte) (err error) { + varModelsQueryModelsWorkflowWorkflowStepSchemaQuery := _ModelsQueryModelsWorkflowWorkflowStepSchemaQuery{} + + if err = json.Unmarshal(bytes, &varModelsQueryModelsWorkflowWorkflowStepSchemaQuery); err == nil { + *o = ModelsQueryModelsWorkflowWorkflowStepSchemaQuery(varModelsQueryModelsWorkflowWorkflowStepSchemaQuery) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "QueryString") + delete(additionalProperties, "PageReturned") + delete(additionalProperties, "ReturnLimit") + delete(additionalProperties, "SortField") + delete(additionalProperties, "SortAscending") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsQueryModelsWorkflowWorkflowStepSchemaQuery struct { + value *ModelsQueryModelsWorkflowWorkflowStepSchemaQuery + isSet bool +} + +func (v NullableModelsQueryModelsWorkflowWorkflowStepSchemaQuery) Get() *ModelsQueryModelsWorkflowWorkflowStepSchemaQuery { + return v.value +} + +func (v *NullableModelsQueryModelsWorkflowWorkflowStepSchemaQuery) Set(val *ModelsQueryModelsWorkflowWorkflowStepSchemaQuery) { + v.value = val + v.isSet = true +} + +func (v NullableModelsQueryModelsWorkflowWorkflowStepSchemaQuery) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsQueryModelsWorkflowWorkflowStepSchemaQuery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsQueryModelsWorkflowWorkflowStepSchemaQuery(val *ModelsQueryModelsWorkflowWorkflowStepSchemaQuery) *NullableModelsQueryModelsWorkflowWorkflowStepSchemaQuery { + return &NullableModelsQueryModelsWorkflowWorkflowStepSchemaQuery{value: val, isSet: true} +} + +func (v NullableModelsQueryModelsWorkflowWorkflowStepSchemaQuery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsQueryModelsWorkflowWorkflowStepSchemaQuery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_query_models_workflow_workflow_type_query.go b/v1/api/keyfactor/model_models_query_models_workflow_workflow_type_query.go new file mode 100644 index 0000000..6efecfc --- /dev/null +++ b/v1/api/keyfactor/model_models_query_models_workflow_workflow_type_query.go @@ -0,0 +1,311 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsQueryModelsWorkflowWorkflowTypeQuery type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsQueryModelsWorkflowWorkflowTypeQuery{} + +// ModelsQueryModelsWorkflowWorkflowTypeQuery struct for ModelsQueryModelsWorkflowWorkflowTypeQuery +type ModelsQueryModelsWorkflowWorkflowTypeQuery struct { + // Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) + QueryString *string `json:"QueryString,omitempty"` + // The current page within the result set to be returned + PageReturned *int32 `json:"PageReturned,omitempty"` + // Maximum number of records to be returned in a single call + ReturnLimit *int32 `json:"ReturnLimit,omitempty"` + // Field by which the results should be sorted (view results via Management Portal for sortable columns) + SortField *string `json:"SortField,omitempty"` + // Field sort direction [0=ascending, 1=descending] + SortAscending *int32 `json:"SortAscending,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsQueryModelsWorkflowWorkflowTypeQuery ModelsQueryModelsWorkflowWorkflowTypeQuery + +// NewModelsQueryModelsWorkflowWorkflowTypeQuery instantiates a new ModelsQueryModelsWorkflowWorkflowTypeQuery object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsQueryModelsWorkflowWorkflowTypeQuery() *ModelsQueryModelsWorkflowWorkflowTypeQuery { + this := ModelsQueryModelsWorkflowWorkflowTypeQuery{} + return &this +} + +// NewModelsQueryModelsWorkflowWorkflowTypeQueryWithDefaults instantiates a new ModelsQueryModelsWorkflowWorkflowTypeQuery object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsQueryModelsWorkflowWorkflowTypeQueryWithDefaults() *ModelsQueryModelsWorkflowWorkflowTypeQuery { + this := ModelsQueryModelsWorkflowWorkflowTypeQuery{} + return &this +} + +// GetQueryString returns the QueryString field value if set, zero value otherwise. +func (o *ModelsQueryModelsWorkflowWorkflowTypeQuery) GetQueryString() string { + if o == nil || isNil(o.QueryString) { + var ret string + return ret + } + return *o.QueryString +} + +// GetQueryStringOk returns a tuple with the QueryString field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsWorkflowWorkflowTypeQuery) GetQueryStringOk() (*string, bool) { + if o == nil || isNil(o.QueryString) { + return nil, false + } + return o.QueryString, true +} + +// HasQueryString returns a boolean if a field has been set. +func (o *ModelsQueryModelsWorkflowWorkflowTypeQuery) HasQueryString() bool { + if o != nil && !isNil(o.QueryString) { + return true + } + + return false +} + +// SetQueryString gets a reference to the given string and assigns it to the QueryString field. +func (o *ModelsQueryModelsWorkflowWorkflowTypeQuery) SetQueryString(v string) { + o.QueryString = &v +} + +// GetPageReturned returns the PageReturned field value if set, zero value otherwise. +func (o *ModelsQueryModelsWorkflowWorkflowTypeQuery) GetPageReturned() int32 { + if o == nil || isNil(o.PageReturned) { + var ret int32 + return ret + } + return *o.PageReturned +} + +// GetPageReturnedOk returns a tuple with the PageReturned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsWorkflowWorkflowTypeQuery) GetPageReturnedOk() (*int32, bool) { + if o == nil || isNil(o.PageReturned) { + return nil, false + } + return o.PageReturned, true +} + +// HasPageReturned returns a boolean if a field has been set. +func (o *ModelsQueryModelsWorkflowWorkflowTypeQuery) HasPageReturned() bool { + if o != nil && !isNil(o.PageReturned) { + return true + } + + return false +} + +// SetPageReturned gets a reference to the given int32 and assigns it to the PageReturned field. +func (o *ModelsQueryModelsWorkflowWorkflowTypeQuery) SetPageReturned(v int32) { + o.PageReturned = &v +} + +// GetReturnLimit returns the ReturnLimit field value if set, zero value otherwise. +func (o *ModelsQueryModelsWorkflowWorkflowTypeQuery) GetReturnLimit() int32 { + if o == nil || isNil(o.ReturnLimit) { + var ret int32 + return ret + } + return *o.ReturnLimit +} + +// GetReturnLimitOk returns a tuple with the ReturnLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsWorkflowWorkflowTypeQuery) GetReturnLimitOk() (*int32, bool) { + if o == nil || isNil(o.ReturnLimit) { + return nil, false + } + return o.ReturnLimit, true +} + +// HasReturnLimit returns a boolean if a field has been set. +func (o *ModelsQueryModelsWorkflowWorkflowTypeQuery) HasReturnLimit() bool { + if o != nil && !isNil(o.ReturnLimit) { + return true + } + + return false +} + +// SetReturnLimit gets a reference to the given int32 and assigns it to the ReturnLimit field. +func (o *ModelsQueryModelsWorkflowWorkflowTypeQuery) SetReturnLimit(v int32) { + o.ReturnLimit = &v +} + +// GetSortField returns the SortField field value if set, zero value otherwise. +func (o *ModelsQueryModelsWorkflowWorkflowTypeQuery) GetSortField() string { + if o == nil || isNil(o.SortField) { + var ret string + return ret + } + return *o.SortField +} + +// GetSortFieldOk returns a tuple with the SortField field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsWorkflowWorkflowTypeQuery) GetSortFieldOk() (*string, bool) { + if o == nil || isNil(o.SortField) { + return nil, false + } + return o.SortField, true +} + +// HasSortField returns a boolean if a field has been set. +func (o *ModelsQueryModelsWorkflowWorkflowTypeQuery) HasSortField() bool { + if o != nil && !isNil(o.SortField) { + return true + } + + return false +} + +// SetSortField gets a reference to the given string and assigns it to the SortField field. +func (o *ModelsQueryModelsWorkflowWorkflowTypeQuery) SetSortField(v string) { + o.SortField = &v +} + +// GetSortAscending returns the SortAscending field value if set, zero value otherwise. +func (o *ModelsQueryModelsWorkflowWorkflowTypeQuery) GetSortAscending() int32 { + if o == nil || isNil(o.SortAscending) { + var ret int32 + return ret + } + return *o.SortAscending +} + +// GetSortAscendingOk returns a tuple with the SortAscending field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsQueryModelsWorkflowWorkflowTypeQuery) GetSortAscendingOk() (*int32, bool) { + if o == nil || isNil(o.SortAscending) { + return nil, false + } + return o.SortAscending, true +} + +// HasSortAscending returns a boolean if a field has been set. +func (o *ModelsQueryModelsWorkflowWorkflowTypeQuery) HasSortAscending() bool { + if o != nil && !isNil(o.SortAscending) { + return true + } + + return false +} + +// SetSortAscending gets a reference to the given int32 and assigns it to the SortAscending field. +func (o *ModelsQueryModelsWorkflowWorkflowTypeQuery) SetSortAscending(v int32) { + o.SortAscending = &v +} + +func (o ModelsQueryModelsWorkflowWorkflowTypeQuery) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsQueryModelsWorkflowWorkflowTypeQuery) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.QueryString) { + toSerialize["QueryString"] = o.QueryString + } + if !isNil(o.PageReturned) { + toSerialize["PageReturned"] = o.PageReturned + } + if !isNil(o.ReturnLimit) { + toSerialize["ReturnLimit"] = o.ReturnLimit + } + if !isNil(o.SortField) { + toSerialize["SortField"] = o.SortField + } + if !isNil(o.SortAscending) { + toSerialize["SortAscending"] = o.SortAscending + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsQueryModelsWorkflowWorkflowTypeQuery) UnmarshalJSON(bytes []byte) (err error) { + varModelsQueryModelsWorkflowWorkflowTypeQuery := _ModelsQueryModelsWorkflowWorkflowTypeQuery{} + + if err = json.Unmarshal(bytes, &varModelsQueryModelsWorkflowWorkflowTypeQuery); err == nil { + *o = ModelsQueryModelsWorkflowWorkflowTypeQuery(varModelsQueryModelsWorkflowWorkflowTypeQuery) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "QueryString") + delete(additionalProperties, "PageReturned") + delete(additionalProperties, "ReturnLimit") + delete(additionalProperties, "SortField") + delete(additionalProperties, "SortAscending") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsQueryModelsWorkflowWorkflowTypeQuery struct { + value *ModelsQueryModelsWorkflowWorkflowTypeQuery + isSet bool +} + +func (v NullableModelsQueryModelsWorkflowWorkflowTypeQuery) Get() *ModelsQueryModelsWorkflowWorkflowTypeQuery { + return v.value +} + +func (v *NullableModelsQueryModelsWorkflowWorkflowTypeQuery) Set(val *ModelsQueryModelsWorkflowWorkflowTypeQuery) { + v.value = val + v.isSet = true +} + +func (v NullableModelsQueryModelsWorkflowWorkflowTypeQuery) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsQueryModelsWorkflowWorkflowTypeQuery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsQueryModelsWorkflowWorkflowTypeQuery(val *ModelsQueryModelsWorkflowWorkflowTypeQuery) *NullableModelsQueryModelsWorkflowWorkflowTypeQuery { + return &NullableModelsQueryModelsWorkflowWorkflowTypeQuery{value: val, isSet: true} +} + +func (v NullableModelsQueryModelsWorkflowWorkflowTypeQuery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsQueryModelsWorkflowWorkflowTypeQuery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_recovery_response.go b/v1/api/keyfactor/model_models_recovery_response.go new file mode 100644 index 0000000..89e43d7 --- /dev/null +++ b/v1/api/keyfactor/model_models_recovery_response.go @@ -0,0 +1,195 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsRecoveryResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsRecoveryResponse{} + +// ModelsRecoveryResponse struct for ModelsRecoveryResponse +type ModelsRecoveryResponse struct { + PFX *string `json:"PFX,omitempty"` + FileName *string `json:"FileName,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsRecoveryResponse ModelsRecoveryResponse + +// NewModelsRecoveryResponse instantiates a new ModelsRecoveryResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsRecoveryResponse() *ModelsRecoveryResponse { + this := ModelsRecoveryResponse{} + return &this +} + +// NewModelsRecoveryResponseWithDefaults instantiates a new ModelsRecoveryResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsRecoveryResponseWithDefaults() *ModelsRecoveryResponse { + this := ModelsRecoveryResponse{} + return &this +} + +// GetPFX returns the PFX field value if set, zero value otherwise. +func (o *ModelsRecoveryResponse) GetPFX() string { + if o == nil || isNil(o.PFX) { + var ret string + return ret + } + return *o.PFX +} + +// GetPFXOk returns a tuple with the PFX field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsRecoveryResponse) GetPFXOk() (*string, bool) { + if o == nil || isNil(o.PFX) { + return nil, false + } + return o.PFX, true +} + +// HasPFX returns a boolean if a field has been set. +func (o *ModelsRecoveryResponse) HasPFX() bool { + if o != nil && !isNil(o.PFX) { + return true + } + + return false +} + +// SetPFX gets a reference to the given string and assigns it to the PFX field. +func (o *ModelsRecoveryResponse) SetPFX(v string) { + o.PFX = &v +} + +// GetFileName returns the FileName field value if set, zero value otherwise. +func (o *ModelsRecoveryResponse) GetFileName() string { + if o == nil || isNil(o.FileName) { + var ret string + return ret + } + return *o.FileName +} + +// GetFileNameOk returns a tuple with the FileName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsRecoveryResponse) GetFileNameOk() (*string, bool) { + if o == nil || isNil(o.FileName) { + return nil, false + } + return o.FileName, true +} + +// HasFileName returns a boolean if a field has been set. +func (o *ModelsRecoveryResponse) HasFileName() bool { + if o != nil && !isNil(o.FileName) { + return true + } + + return false +} + +// SetFileName gets a reference to the given string and assigns it to the FileName field. +func (o *ModelsRecoveryResponse) SetFileName(v string) { + o.FileName = &v +} + +func (o ModelsRecoveryResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsRecoveryResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.PFX) { + toSerialize["PFX"] = o.PFX + } + if !isNil(o.FileName) { + toSerialize["FileName"] = o.FileName + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsRecoveryResponse) UnmarshalJSON(bytes []byte) (err error) { + varModelsRecoveryResponse := _ModelsRecoveryResponse{} + + if err = json.Unmarshal(bytes, &varModelsRecoveryResponse); err == nil { + *o = ModelsRecoveryResponse(varModelsRecoveryResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "PFX") + delete(additionalProperties, "FileName") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsRecoveryResponse struct { + value *ModelsRecoveryResponse + isSet bool +} + +func (v NullableModelsRecoveryResponse) Get() *ModelsRecoveryResponse { + return v.value +} + +func (v *NullableModelsRecoveryResponse) Set(val *ModelsRecoveryResponse) { + v.value = val + v.isSet = true +} + +func (v NullableModelsRecoveryResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsRecoveryResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsRecoveryResponse(val *ModelsRecoveryResponse) *NullableModelsRecoveryResponse { + return &NullableModelsRecoveryResponse{value: val, isSet: true} +} + +func (v NullableModelsRecoveryResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsRecoveryResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_reenrollment_status.go b/v1/api/keyfactor/model_models_reenrollment_status.go new file mode 100644 index 0000000..9c3f3a9 --- /dev/null +++ b/v1/api/keyfactor/model_models_reenrollment_status.go @@ -0,0 +1,343 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsReenrollmentStatus type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsReenrollmentStatus{} + +// ModelsReenrollmentStatus struct for ModelsReenrollmentStatus +type ModelsReenrollmentStatus struct { + Data *bool `json:"Data,omitempty"` + AgentId *string `json:"AgentId,omitempty"` + Message *string `json:"Message,omitempty"` + JobProperties *string `json:"JobProperties,omitempty"` + CustomAliasAllowed *int32 `json:"CustomAliasAllowed,omitempty"` + EntryParameters []ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter `json:"EntryParameters,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsReenrollmentStatus ModelsReenrollmentStatus + +// NewModelsReenrollmentStatus instantiates a new ModelsReenrollmentStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsReenrollmentStatus() *ModelsReenrollmentStatus { + this := ModelsReenrollmentStatus{} + return &this +} + +// NewModelsReenrollmentStatusWithDefaults instantiates a new ModelsReenrollmentStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsReenrollmentStatusWithDefaults() *ModelsReenrollmentStatus { + this := ModelsReenrollmentStatus{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *ModelsReenrollmentStatus) GetData() bool { + if o == nil || isNil(o.Data) { + var ret bool + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsReenrollmentStatus) GetDataOk() (*bool, bool) { + if o == nil || isNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *ModelsReenrollmentStatus) HasData() bool { + if o != nil && !isNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given bool and assigns it to the Data field. +func (o *ModelsReenrollmentStatus) SetData(v bool) { + o.Data = &v +} + +// GetAgentId returns the AgentId field value if set, zero value otherwise. +func (o *ModelsReenrollmentStatus) GetAgentId() string { + if o == nil || isNil(o.AgentId) { + var ret string + return ret + } + return *o.AgentId +} + +// GetAgentIdOk returns a tuple with the AgentId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsReenrollmentStatus) GetAgentIdOk() (*string, bool) { + if o == nil || isNil(o.AgentId) { + return nil, false + } + return o.AgentId, true +} + +// HasAgentId returns a boolean if a field has been set. +func (o *ModelsReenrollmentStatus) HasAgentId() bool { + if o != nil && !isNil(o.AgentId) { + return true + } + + return false +} + +// SetAgentId gets a reference to the given string and assigns it to the AgentId field. +func (o *ModelsReenrollmentStatus) SetAgentId(v string) { + o.AgentId = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *ModelsReenrollmentStatus) GetMessage() string { + if o == nil || isNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsReenrollmentStatus) GetMessageOk() (*string, bool) { + if o == nil || isNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *ModelsReenrollmentStatus) HasMessage() bool { + if o != nil && !isNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *ModelsReenrollmentStatus) SetMessage(v string) { + o.Message = &v +} + +// GetJobProperties returns the JobProperties field value if set, zero value otherwise. +func (o *ModelsReenrollmentStatus) GetJobProperties() string { + if o == nil || isNil(o.JobProperties) { + var ret string + return ret + } + return *o.JobProperties +} + +// GetJobPropertiesOk returns a tuple with the JobProperties field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsReenrollmentStatus) GetJobPropertiesOk() (*string, bool) { + if o == nil || isNil(o.JobProperties) { + return nil, false + } + return o.JobProperties, true +} + +// HasJobProperties returns a boolean if a field has been set. +func (o *ModelsReenrollmentStatus) HasJobProperties() bool { + if o != nil && !isNil(o.JobProperties) { + return true + } + + return false +} + +// SetJobProperties gets a reference to the given string and assigns it to the JobProperties field. +func (o *ModelsReenrollmentStatus) SetJobProperties(v string) { + o.JobProperties = &v +} + +// GetCustomAliasAllowed returns the CustomAliasAllowed field value if set, zero value otherwise. +func (o *ModelsReenrollmentStatus) GetCustomAliasAllowed() int32 { + if o == nil || isNil(o.CustomAliasAllowed) { + var ret int32 + return ret + } + return *o.CustomAliasAllowed +} + +// GetCustomAliasAllowedOk returns a tuple with the CustomAliasAllowed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsReenrollmentStatus) GetCustomAliasAllowedOk() (*int32, bool) { + if o == nil || isNil(o.CustomAliasAllowed) { + return nil, false + } + return o.CustomAliasAllowed, true +} + +// HasCustomAliasAllowed returns a boolean if a field has been set. +func (o *ModelsReenrollmentStatus) HasCustomAliasAllowed() bool { + if o != nil && !isNil(o.CustomAliasAllowed) { + return true + } + + return false +} + +// SetCustomAliasAllowed gets a reference to the given int32 and assigns it to the CustomAliasAllowed field. +func (o *ModelsReenrollmentStatus) SetCustomAliasAllowed(v int32) { + o.CustomAliasAllowed = &v +} + +// GetEntryParameters returns the EntryParameters field value if set, zero value otherwise. +func (o *ModelsReenrollmentStatus) GetEntryParameters() []ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter { + if o == nil || isNil(o.EntryParameters) { + var ret []ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter + return ret + } + return o.EntryParameters +} + +// GetEntryParametersOk returns a tuple with the EntryParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsReenrollmentStatus) GetEntryParametersOk() ([]ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter, bool) { + if o == nil || isNil(o.EntryParameters) { + return nil, false + } + return o.EntryParameters, true +} + +// HasEntryParameters returns a boolean if a field has been set. +func (o *ModelsReenrollmentStatus) HasEntryParameters() bool { + if o != nil && !isNil(o.EntryParameters) { + return true + } + + return false +} + +// SetEntryParameters gets a reference to the given []ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter and assigns it to the EntryParameters field. +func (o *ModelsReenrollmentStatus) SetEntryParameters(v []ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) { + o.EntryParameters = v +} + +func (o ModelsReenrollmentStatus) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsReenrollmentStatus) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Data) { + toSerialize["Data"] = o.Data + } + if !isNil(o.AgentId) { + toSerialize["AgentId"] = o.AgentId + } + if !isNil(o.Message) { + toSerialize["Message"] = o.Message + } + if !isNil(o.JobProperties) { + toSerialize["JobProperties"] = o.JobProperties + } + if !isNil(o.CustomAliasAllowed) { + toSerialize["CustomAliasAllowed"] = o.CustomAliasAllowed + } + if !isNil(o.EntryParameters) { + toSerialize["EntryParameters"] = o.EntryParameters + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsReenrollmentStatus) UnmarshalJSON(bytes []byte) (err error) { + varModelsReenrollmentStatus := _ModelsReenrollmentStatus{} + + if err = json.Unmarshal(bytes, &varModelsReenrollmentStatus); err == nil { + *o = ModelsReenrollmentStatus(varModelsReenrollmentStatus) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Data") + delete(additionalProperties, "AgentId") + delete(additionalProperties, "Message") + delete(additionalProperties, "JobProperties") + delete(additionalProperties, "CustomAliasAllowed") + delete(additionalProperties, "EntryParameters") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsReenrollmentStatus struct { + value *ModelsReenrollmentStatus + isSet bool +} + +func (v NullableModelsReenrollmentStatus) Get() *ModelsReenrollmentStatus { + return v.value +} + +func (v *NullableModelsReenrollmentStatus) Set(val *ModelsReenrollmentStatus) { + v.value = val + v.isSet = true +} + +func (v NullableModelsReenrollmentStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsReenrollmentStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsReenrollmentStatus(val *ModelsReenrollmentStatus) *NullableModelsReenrollmentStatus { + return &NullableModelsReenrollmentStatus{value: val, isSet: true} +} + +func (v NullableModelsReenrollmentStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsReenrollmentStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_report.go b/v1/api/keyfactor/model_models_report.go new file mode 100644 index 0000000..721ae1b --- /dev/null +++ b/v1/api/keyfactor/model_models_report.go @@ -0,0 +1,676 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsReport type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsReport{} + +// ModelsReport struct for ModelsReport +type ModelsReport struct { + Id *int32 `json:"Id,omitempty"` + Scheduled *int32 `json:"Scheduled,omitempty"` + DisplayName *string `json:"DisplayName,omitempty"` + Description *string `json:"Description,omitempty"` + ReportPath *string `json:"ReportPath,omitempty"` + VersionNumber *string `json:"VersionNumber,omitempty"` + Categories *string `json:"Categories,omitempty"` + ShortName *string `json:"ShortName,omitempty"` + InNavigator *bool `json:"InNavigator,omitempty"` + Favorite *bool `json:"Favorite,omitempty"` + RemoveDuplicates *bool `json:"RemoveDuplicates,omitempty"` + UsesCollection *bool `json:"UsesCollection,omitempty"` + ReportParameter []ModelsReportParameters `json:"ReportParameter,omitempty"` + Schedules []ModelsReportSchedule `json:"Schedules,omitempty"` + AcceptedScheduleFormats []string `json:"AcceptedScheduleFormats,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsReport ModelsReport + +// NewModelsReport instantiates a new ModelsReport object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsReport() *ModelsReport { + this := ModelsReport{} + return &this +} + +// NewModelsReportWithDefaults instantiates a new ModelsReport object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsReportWithDefaults() *ModelsReport { + this := ModelsReport{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ModelsReport) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsReport) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ModelsReport) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *ModelsReport) SetId(v int32) { + o.Id = &v +} + +// GetScheduled returns the Scheduled field value if set, zero value otherwise. +func (o *ModelsReport) GetScheduled() int32 { + if o == nil || isNil(o.Scheduled) { + var ret int32 + return ret + } + return *o.Scheduled +} + +// GetScheduledOk returns a tuple with the Scheduled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsReport) GetScheduledOk() (*int32, bool) { + if o == nil || isNil(o.Scheduled) { + return nil, false + } + return o.Scheduled, true +} + +// HasScheduled returns a boolean if a field has been set. +func (o *ModelsReport) HasScheduled() bool { + if o != nil && !isNil(o.Scheduled) { + return true + } + + return false +} + +// SetScheduled gets a reference to the given int32 and assigns it to the Scheduled field. +func (o *ModelsReport) SetScheduled(v int32) { + o.Scheduled = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *ModelsReport) GetDisplayName() string { + if o == nil || isNil(o.DisplayName) { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsReport) GetDisplayNameOk() (*string, bool) { + if o == nil || isNil(o.DisplayName) { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *ModelsReport) HasDisplayName() bool { + if o != nil && !isNil(o.DisplayName) { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *ModelsReport) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ModelsReport) GetDescription() string { + if o == nil || isNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsReport) GetDescriptionOk() (*string, bool) { + if o == nil || isNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *ModelsReport) HasDescription() bool { + if o != nil && !isNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *ModelsReport) SetDescription(v string) { + o.Description = &v +} + +// GetReportPath returns the ReportPath field value if set, zero value otherwise. +func (o *ModelsReport) GetReportPath() string { + if o == nil || isNil(o.ReportPath) { + var ret string + return ret + } + return *o.ReportPath +} + +// GetReportPathOk returns a tuple with the ReportPath field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsReport) GetReportPathOk() (*string, bool) { + if o == nil || isNil(o.ReportPath) { + return nil, false + } + return o.ReportPath, true +} + +// HasReportPath returns a boolean if a field has been set. +func (o *ModelsReport) HasReportPath() bool { + if o != nil && !isNil(o.ReportPath) { + return true + } + + return false +} + +// SetReportPath gets a reference to the given string and assigns it to the ReportPath field. +func (o *ModelsReport) SetReportPath(v string) { + o.ReportPath = &v +} + +// GetVersionNumber returns the VersionNumber field value if set, zero value otherwise. +func (o *ModelsReport) GetVersionNumber() string { + if o == nil || isNil(o.VersionNumber) { + var ret string + return ret + } + return *o.VersionNumber +} + +// GetVersionNumberOk returns a tuple with the VersionNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsReport) GetVersionNumberOk() (*string, bool) { + if o == nil || isNil(o.VersionNumber) { + return nil, false + } + return o.VersionNumber, true +} + +// HasVersionNumber returns a boolean if a field has been set. +func (o *ModelsReport) HasVersionNumber() bool { + if o != nil && !isNil(o.VersionNumber) { + return true + } + + return false +} + +// SetVersionNumber gets a reference to the given string and assigns it to the VersionNumber field. +func (o *ModelsReport) SetVersionNumber(v string) { + o.VersionNumber = &v +} + +// GetCategories returns the Categories field value if set, zero value otherwise. +func (o *ModelsReport) GetCategories() string { + if o == nil || isNil(o.Categories) { + var ret string + return ret + } + return *o.Categories +} + +// GetCategoriesOk returns a tuple with the Categories field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsReport) GetCategoriesOk() (*string, bool) { + if o == nil || isNil(o.Categories) { + return nil, false + } + return o.Categories, true +} + +// HasCategories returns a boolean if a field has been set. +func (o *ModelsReport) HasCategories() bool { + if o != nil && !isNil(o.Categories) { + return true + } + + return false +} + +// SetCategories gets a reference to the given string and assigns it to the Categories field. +func (o *ModelsReport) SetCategories(v string) { + o.Categories = &v +} + +// GetShortName returns the ShortName field value if set, zero value otherwise. +func (o *ModelsReport) GetShortName() string { + if o == nil || isNil(o.ShortName) { + var ret string + return ret + } + return *o.ShortName +} + +// GetShortNameOk returns a tuple with the ShortName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsReport) GetShortNameOk() (*string, bool) { + if o == nil || isNil(o.ShortName) { + return nil, false + } + return o.ShortName, true +} + +// HasShortName returns a boolean if a field has been set. +func (o *ModelsReport) HasShortName() bool { + if o != nil && !isNil(o.ShortName) { + return true + } + + return false +} + +// SetShortName gets a reference to the given string and assigns it to the ShortName field. +func (o *ModelsReport) SetShortName(v string) { + o.ShortName = &v +} + +// GetInNavigator returns the InNavigator field value if set, zero value otherwise. +func (o *ModelsReport) GetInNavigator() bool { + if o == nil || isNil(o.InNavigator) { + var ret bool + return ret + } + return *o.InNavigator +} + +// GetInNavigatorOk returns a tuple with the InNavigator field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsReport) GetInNavigatorOk() (*bool, bool) { + if o == nil || isNil(o.InNavigator) { + return nil, false + } + return o.InNavigator, true +} + +// HasInNavigator returns a boolean if a field has been set. +func (o *ModelsReport) HasInNavigator() bool { + if o != nil && !isNil(o.InNavigator) { + return true + } + + return false +} + +// SetInNavigator gets a reference to the given bool and assigns it to the InNavigator field. +func (o *ModelsReport) SetInNavigator(v bool) { + o.InNavigator = &v +} + +// GetFavorite returns the Favorite field value if set, zero value otherwise. +func (o *ModelsReport) GetFavorite() bool { + if o == nil || isNil(o.Favorite) { + var ret bool + return ret + } + return *o.Favorite +} + +// GetFavoriteOk returns a tuple with the Favorite field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsReport) GetFavoriteOk() (*bool, bool) { + if o == nil || isNil(o.Favorite) { + return nil, false + } + return o.Favorite, true +} + +// HasFavorite returns a boolean if a field has been set. +func (o *ModelsReport) HasFavorite() bool { + if o != nil && !isNil(o.Favorite) { + return true + } + + return false +} + +// SetFavorite gets a reference to the given bool and assigns it to the Favorite field. +func (o *ModelsReport) SetFavorite(v bool) { + o.Favorite = &v +} + +// GetRemoveDuplicates returns the RemoveDuplicates field value if set, zero value otherwise. +func (o *ModelsReport) GetRemoveDuplicates() bool { + if o == nil || isNil(o.RemoveDuplicates) { + var ret bool + return ret + } + return *o.RemoveDuplicates +} + +// GetRemoveDuplicatesOk returns a tuple with the RemoveDuplicates field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsReport) GetRemoveDuplicatesOk() (*bool, bool) { + if o == nil || isNil(o.RemoveDuplicates) { + return nil, false + } + return o.RemoveDuplicates, true +} + +// HasRemoveDuplicates returns a boolean if a field has been set. +func (o *ModelsReport) HasRemoveDuplicates() bool { + if o != nil && !isNil(o.RemoveDuplicates) { + return true + } + + return false +} + +// SetRemoveDuplicates gets a reference to the given bool and assigns it to the RemoveDuplicates field. +func (o *ModelsReport) SetRemoveDuplicates(v bool) { + o.RemoveDuplicates = &v +} + +// GetUsesCollection returns the UsesCollection field value if set, zero value otherwise. +func (o *ModelsReport) GetUsesCollection() bool { + if o == nil || isNil(o.UsesCollection) { + var ret bool + return ret + } + return *o.UsesCollection +} + +// GetUsesCollectionOk returns a tuple with the UsesCollection field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsReport) GetUsesCollectionOk() (*bool, bool) { + if o == nil || isNil(o.UsesCollection) { + return nil, false + } + return o.UsesCollection, true +} + +// HasUsesCollection returns a boolean if a field has been set. +func (o *ModelsReport) HasUsesCollection() bool { + if o != nil && !isNil(o.UsesCollection) { + return true + } + + return false +} + +// SetUsesCollection gets a reference to the given bool and assigns it to the UsesCollection field. +func (o *ModelsReport) SetUsesCollection(v bool) { + o.UsesCollection = &v +} + +// GetReportParameter returns the ReportParameter field value if set, zero value otherwise. +func (o *ModelsReport) GetReportParameter() []ModelsReportParameters { + if o == nil || isNil(o.ReportParameter) { + var ret []ModelsReportParameters + return ret + } + return o.ReportParameter +} + +// GetReportParameterOk returns a tuple with the ReportParameter field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsReport) GetReportParameterOk() ([]ModelsReportParameters, bool) { + if o == nil || isNil(o.ReportParameter) { + return nil, false + } + return o.ReportParameter, true +} + +// HasReportParameter returns a boolean if a field has been set. +func (o *ModelsReport) HasReportParameter() bool { + if o != nil && !isNil(o.ReportParameter) { + return true + } + + return false +} + +// SetReportParameter gets a reference to the given []ModelsReportParameters and assigns it to the ReportParameter field. +func (o *ModelsReport) SetReportParameter(v []ModelsReportParameters) { + o.ReportParameter = v +} + +// GetSchedules returns the Schedules field value if set, zero value otherwise. +func (o *ModelsReport) GetSchedules() []ModelsReportSchedule { + if o == nil || isNil(o.Schedules) { + var ret []ModelsReportSchedule + return ret + } + return o.Schedules +} + +// GetSchedulesOk returns a tuple with the Schedules field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsReport) GetSchedulesOk() ([]ModelsReportSchedule, bool) { + if o == nil || isNil(o.Schedules) { + return nil, false + } + return o.Schedules, true +} + +// HasSchedules returns a boolean if a field has been set. +func (o *ModelsReport) HasSchedules() bool { + if o != nil && !isNil(o.Schedules) { + return true + } + + return false +} + +// SetSchedules gets a reference to the given []ModelsReportSchedule and assigns it to the Schedules field. +func (o *ModelsReport) SetSchedules(v []ModelsReportSchedule) { + o.Schedules = v +} + +// GetAcceptedScheduleFormats returns the AcceptedScheduleFormats field value if set, zero value otherwise. +func (o *ModelsReport) GetAcceptedScheduleFormats() []string { + if o == nil || isNil(o.AcceptedScheduleFormats) { + var ret []string + return ret + } + return o.AcceptedScheduleFormats +} + +// GetAcceptedScheduleFormatsOk returns a tuple with the AcceptedScheduleFormats field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsReport) GetAcceptedScheduleFormatsOk() ([]string, bool) { + if o == nil || isNil(o.AcceptedScheduleFormats) { + return nil, false + } + return o.AcceptedScheduleFormats, true +} + +// HasAcceptedScheduleFormats returns a boolean if a field has been set. +func (o *ModelsReport) HasAcceptedScheduleFormats() bool { + if o != nil && !isNil(o.AcceptedScheduleFormats) { + return true + } + + return false +} + +// SetAcceptedScheduleFormats gets a reference to the given []string and assigns it to the AcceptedScheduleFormats field. +func (o *ModelsReport) SetAcceptedScheduleFormats(v []string) { + o.AcceptedScheduleFormats = v +} + +func (o ModelsReport) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsReport) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.Scheduled) { + toSerialize["Scheduled"] = o.Scheduled + } + if !isNil(o.DisplayName) { + toSerialize["DisplayName"] = o.DisplayName + } + if !isNil(o.Description) { + toSerialize["Description"] = o.Description + } + if !isNil(o.ReportPath) { + toSerialize["ReportPath"] = o.ReportPath + } + if !isNil(o.VersionNumber) { + toSerialize["VersionNumber"] = o.VersionNumber + } + if !isNil(o.Categories) { + toSerialize["Categories"] = o.Categories + } + if !isNil(o.ShortName) { + toSerialize["ShortName"] = o.ShortName + } + if !isNil(o.InNavigator) { + toSerialize["InNavigator"] = o.InNavigator + } + if !isNil(o.Favorite) { + toSerialize["Favorite"] = o.Favorite + } + if !isNil(o.RemoveDuplicates) { + toSerialize["RemoveDuplicates"] = o.RemoveDuplicates + } + if !isNil(o.UsesCollection) { + toSerialize["UsesCollection"] = o.UsesCollection + } + if !isNil(o.ReportParameter) { + toSerialize["ReportParameter"] = o.ReportParameter + } + if !isNil(o.Schedules) { + toSerialize["Schedules"] = o.Schedules + } + if !isNil(o.AcceptedScheduleFormats) { + toSerialize["AcceptedScheduleFormats"] = o.AcceptedScheduleFormats + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsReport) UnmarshalJSON(bytes []byte) (err error) { + varModelsReport := _ModelsReport{} + + if err = json.Unmarshal(bytes, &varModelsReport); err == nil { + *o = ModelsReport(varModelsReport) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "Scheduled") + delete(additionalProperties, "DisplayName") + delete(additionalProperties, "Description") + delete(additionalProperties, "ReportPath") + delete(additionalProperties, "VersionNumber") + delete(additionalProperties, "Categories") + delete(additionalProperties, "ShortName") + delete(additionalProperties, "InNavigator") + delete(additionalProperties, "Favorite") + delete(additionalProperties, "RemoveDuplicates") + delete(additionalProperties, "UsesCollection") + delete(additionalProperties, "ReportParameter") + delete(additionalProperties, "Schedules") + delete(additionalProperties, "AcceptedScheduleFormats") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsReport struct { + value *ModelsReport + isSet bool +} + +func (v NullableModelsReport) Get() *ModelsReport { + return v.value +} + +func (v *NullableModelsReport) Set(val *ModelsReport) { + v.value = val + v.isSet = true +} + +func (v NullableModelsReport) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsReport) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsReport(val *ModelsReport) *NullableModelsReport { + return &NullableModelsReport{value: val, isSet: true} +} + +func (v NullableModelsReport) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsReport) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_report_parameters.go b/v1/api/keyfactor/model_models_report_parameters.go new file mode 100644 index 0000000..70de742 --- /dev/null +++ b/v1/api/keyfactor/model_models_report_parameters.go @@ -0,0 +1,417 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsReportParameters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsReportParameters{} + +// ModelsReportParameters struct for ModelsReportParameters +type ModelsReportParameters struct { + Id *int32 `json:"Id,omitempty"` + ParameterName *string `json:"ParameterName,omitempty"` + ParameterType *int32 `json:"ParameterType,omitempty"` + DisplayName *string `json:"DisplayName,omitempty"` + Description *string `json:"Description,omitempty"` + DefaultValue *string `json:"DefaultValue,omitempty"` + DisplayOrder *int32 `json:"DisplayOrder,omitempty"` + ParameterVisibility *int32 `json:"ParameterVisibility,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsReportParameters ModelsReportParameters + +// NewModelsReportParameters instantiates a new ModelsReportParameters object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsReportParameters() *ModelsReportParameters { + this := ModelsReportParameters{} + return &this +} + +// NewModelsReportParametersWithDefaults instantiates a new ModelsReportParameters object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsReportParametersWithDefaults() *ModelsReportParameters { + this := ModelsReportParameters{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ModelsReportParameters) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsReportParameters) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ModelsReportParameters) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *ModelsReportParameters) SetId(v int32) { + o.Id = &v +} + +// GetParameterName returns the ParameterName field value if set, zero value otherwise. +func (o *ModelsReportParameters) GetParameterName() string { + if o == nil || isNil(o.ParameterName) { + var ret string + return ret + } + return *o.ParameterName +} + +// GetParameterNameOk returns a tuple with the ParameterName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsReportParameters) GetParameterNameOk() (*string, bool) { + if o == nil || isNil(o.ParameterName) { + return nil, false + } + return o.ParameterName, true +} + +// HasParameterName returns a boolean if a field has been set. +func (o *ModelsReportParameters) HasParameterName() bool { + if o != nil && !isNil(o.ParameterName) { + return true + } + + return false +} + +// SetParameterName gets a reference to the given string and assigns it to the ParameterName field. +func (o *ModelsReportParameters) SetParameterName(v string) { + o.ParameterName = &v +} + +// GetParameterType returns the ParameterType field value if set, zero value otherwise. +func (o *ModelsReportParameters) GetParameterType() int32 { + if o == nil || isNil(o.ParameterType) { + var ret int32 + return ret + } + return *o.ParameterType +} + +// GetParameterTypeOk returns a tuple with the ParameterType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsReportParameters) GetParameterTypeOk() (*int32, bool) { + if o == nil || isNil(o.ParameterType) { + return nil, false + } + return o.ParameterType, true +} + +// HasParameterType returns a boolean if a field has been set. +func (o *ModelsReportParameters) HasParameterType() bool { + if o != nil && !isNil(o.ParameterType) { + return true + } + + return false +} + +// SetParameterType gets a reference to the given int32 and assigns it to the ParameterType field. +func (o *ModelsReportParameters) SetParameterType(v int32) { + o.ParameterType = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *ModelsReportParameters) GetDisplayName() string { + if o == nil || isNil(o.DisplayName) { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsReportParameters) GetDisplayNameOk() (*string, bool) { + if o == nil || isNil(o.DisplayName) { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *ModelsReportParameters) HasDisplayName() bool { + if o != nil && !isNil(o.DisplayName) { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *ModelsReportParameters) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ModelsReportParameters) GetDescription() string { + if o == nil || isNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsReportParameters) GetDescriptionOk() (*string, bool) { + if o == nil || isNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *ModelsReportParameters) HasDescription() bool { + if o != nil && !isNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *ModelsReportParameters) SetDescription(v string) { + o.Description = &v +} + +// GetDefaultValue returns the DefaultValue field value if set, zero value otherwise. +func (o *ModelsReportParameters) GetDefaultValue() string { + if o == nil || isNil(o.DefaultValue) { + var ret string + return ret + } + return *o.DefaultValue +} + +// GetDefaultValueOk returns a tuple with the DefaultValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsReportParameters) GetDefaultValueOk() (*string, bool) { + if o == nil || isNil(o.DefaultValue) { + return nil, false + } + return o.DefaultValue, true +} + +// HasDefaultValue returns a boolean if a field has been set. +func (o *ModelsReportParameters) HasDefaultValue() bool { + if o != nil && !isNil(o.DefaultValue) { + return true + } + + return false +} + +// SetDefaultValue gets a reference to the given string and assigns it to the DefaultValue field. +func (o *ModelsReportParameters) SetDefaultValue(v string) { + o.DefaultValue = &v +} + +// GetDisplayOrder returns the DisplayOrder field value if set, zero value otherwise. +func (o *ModelsReportParameters) GetDisplayOrder() int32 { + if o == nil || isNil(o.DisplayOrder) { + var ret int32 + return ret + } + return *o.DisplayOrder +} + +// GetDisplayOrderOk returns a tuple with the DisplayOrder field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsReportParameters) GetDisplayOrderOk() (*int32, bool) { + if o == nil || isNil(o.DisplayOrder) { + return nil, false + } + return o.DisplayOrder, true +} + +// HasDisplayOrder returns a boolean if a field has been set. +func (o *ModelsReportParameters) HasDisplayOrder() bool { + if o != nil && !isNil(o.DisplayOrder) { + return true + } + + return false +} + +// SetDisplayOrder gets a reference to the given int32 and assigns it to the DisplayOrder field. +func (o *ModelsReportParameters) SetDisplayOrder(v int32) { + o.DisplayOrder = &v +} + +// GetParameterVisibility returns the ParameterVisibility field value if set, zero value otherwise. +func (o *ModelsReportParameters) GetParameterVisibility() int32 { + if o == nil || isNil(o.ParameterVisibility) { + var ret int32 + return ret + } + return *o.ParameterVisibility +} + +// GetParameterVisibilityOk returns a tuple with the ParameterVisibility field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsReportParameters) GetParameterVisibilityOk() (*int32, bool) { + if o == nil || isNil(o.ParameterVisibility) { + return nil, false + } + return o.ParameterVisibility, true +} + +// HasParameterVisibility returns a boolean if a field has been set. +func (o *ModelsReportParameters) HasParameterVisibility() bool { + if o != nil && !isNil(o.ParameterVisibility) { + return true + } + + return false +} + +// SetParameterVisibility gets a reference to the given int32 and assigns it to the ParameterVisibility field. +func (o *ModelsReportParameters) SetParameterVisibility(v int32) { + o.ParameterVisibility = &v +} + +func (o ModelsReportParameters) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsReportParameters) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.ParameterName) { + toSerialize["ParameterName"] = o.ParameterName + } + if !isNil(o.ParameterType) { + toSerialize["ParameterType"] = o.ParameterType + } + if !isNil(o.DisplayName) { + toSerialize["DisplayName"] = o.DisplayName + } + if !isNil(o.Description) { + toSerialize["Description"] = o.Description + } + if !isNil(o.DefaultValue) { + toSerialize["DefaultValue"] = o.DefaultValue + } + if !isNil(o.DisplayOrder) { + toSerialize["DisplayOrder"] = o.DisplayOrder + } + if !isNil(o.ParameterVisibility) { + toSerialize["ParameterVisibility"] = o.ParameterVisibility + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsReportParameters) UnmarshalJSON(bytes []byte) (err error) { + varModelsReportParameters := _ModelsReportParameters{} + + if err = json.Unmarshal(bytes, &varModelsReportParameters); err == nil { + *o = ModelsReportParameters(varModelsReportParameters) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "ParameterName") + delete(additionalProperties, "ParameterType") + delete(additionalProperties, "DisplayName") + delete(additionalProperties, "Description") + delete(additionalProperties, "DefaultValue") + delete(additionalProperties, "DisplayOrder") + delete(additionalProperties, "ParameterVisibility") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsReportParameters struct { + value *ModelsReportParameters + isSet bool +} + +func (v NullableModelsReportParameters) Get() *ModelsReportParameters { + return v.value +} + +func (v *NullableModelsReportParameters) Set(val *ModelsReportParameters) { + v.value = val + v.isSet = true +} + +func (v NullableModelsReportParameters) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsReportParameters) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsReportParameters(val *ModelsReportParameters) *NullableModelsReportParameters { + return &NullableModelsReportParameters{value: val, isSet: true} +} + +func (v NullableModelsReportParameters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsReportParameters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_report_parameters_request.go b/v1/api/keyfactor/model_models_report_parameters_request.go new file mode 100644 index 0000000..9e27214 --- /dev/null +++ b/v1/api/keyfactor/model_models_report_parameters_request.go @@ -0,0 +1,269 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsReportParametersRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsReportParametersRequest{} + +// ModelsReportParametersRequest struct for ModelsReportParametersRequest +type ModelsReportParametersRequest struct { + Id *int32 `json:"Id,omitempty"` + DisplayName *string `json:"DisplayName,omitempty"` + Description *string `json:"Description,omitempty"` + DefaultValue *string `json:"DefaultValue,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsReportParametersRequest ModelsReportParametersRequest + +// NewModelsReportParametersRequest instantiates a new ModelsReportParametersRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsReportParametersRequest() *ModelsReportParametersRequest { + this := ModelsReportParametersRequest{} + return &this +} + +// NewModelsReportParametersRequestWithDefaults instantiates a new ModelsReportParametersRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsReportParametersRequestWithDefaults() *ModelsReportParametersRequest { + this := ModelsReportParametersRequest{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ModelsReportParametersRequest) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsReportParametersRequest) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ModelsReportParametersRequest) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *ModelsReportParametersRequest) SetId(v int32) { + o.Id = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *ModelsReportParametersRequest) GetDisplayName() string { + if o == nil || isNil(o.DisplayName) { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsReportParametersRequest) GetDisplayNameOk() (*string, bool) { + if o == nil || isNil(o.DisplayName) { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *ModelsReportParametersRequest) HasDisplayName() bool { + if o != nil && !isNil(o.DisplayName) { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *ModelsReportParametersRequest) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ModelsReportParametersRequest) GetDescription() string { + if o == nil || isNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsReportParametersRequest) GetDescriptionOk() (*string, bool) { + if o == nil || isNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *ModelsReportParametersRequest) HasDescription() bool { + if o != nil && !isNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *ModelsReportParametersRequest) SetDescription(v string) { + o.Description = &v +} + +// GetDefaultValue returns the DefaultValue field value if set, zero value otherwise. +func (o *ModelsReportParametersRequest) GetDefaultValue() string { + if o == nil || isNil(o.DefaultValue) { + var ret string + return ret + } + return *o.DefaultValue +} + +// GetDefaultValueOk returns a tuple with the DefaultValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsReportParametersRequest) GetDefaultValueOk() (*string, bool) { + if o == nil || isNil(o.DefaultValue) { + return nil, false + } + return o.DefaultValue, true +} + +// HasDefaultValue returns a boolean if a field has been set. +func (o *ModelsReportParametersRequest) HasDefaultValue() bool { + if o != nil && !isNil(o.DefaultValue) { + return true + } + + return false +} + +// SetDefaultValue gets a reference to the given string and assigns it to the DefaultValue field. +func (o *ModelsReportParametersRequest) SetDefaultValue(v string) { + o.DefaultValue = &v +} + +func (o ModelsReportParametersRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsReportParametersRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.DisplayName) { + toSerialize["DisplayName"] = o.DisplayName + } + if !isNil(o.Description) { + toSerialize["Description"] = o.Description + } + if !isNil(o.DefaultValue) { + toSerialize["DefaultValue"] = o.DefaultValue + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsReportParametersRequest) UnmarshalJSON(bytes []byte) (err error) { + varModelsReportParametersRequest := _ModelsReportParametersRequest{} + + if err = json.Unmarshal(bytes, &varModelsReportParametersRequest); err == nil { + *o = ModelsReportParametersRequest(varModelsReportParametersRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "DisplayName") + delete(additionalProperties, "Description") + delete(additionalProperties, "DefaultValue") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsReportParametersRequest struct { + value *ModelsReportParametersRequest + isSet bool +} + +func (v NullableModelsReportParametersRequest) Get() *ModelsReportParametersRequest { + return v.value +} + +func (v *NullableModelsReportParametersRequest) Set(val *ModelsReportParametersRequest) { + v.value = val + v.isSet = true +} + +func (v NullableModelsReportParametersRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsReportParametersRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsReportParametersRequest(val *ModelsReportParametersRequest) *NullableModelsReportParametersRequest { + return &NullableModelsReportParametersRequest{value: val, isSet: true} +} + +func (v NullableModelsReportParametersRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsReportParametersRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_report_request_model.go b/v1/api/keyfactor/model_models_report_request_model.go new file mode 100644 index 0000000..ce4e76a --- /dev/null +++ b/v1/api/keyfactor/model_models_report_request_model.go @@ -0,0 +1,269 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsReportRequestModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsReportRequestModel{} + +// ModelsReportRequestModel The ReportRequestModel can be used to update a report. +type ModelsReportRequestModel struct { + Id *int32 `json:"Id,omitempty"` + InNavigator *bool `json:"InNavigator,omitempty"` + Favorite *bool `json:"Favorite,omitempty"` + RemoveDuplicates *bool `json:"RemoveDuplicates,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsReportRequestModel ModelsReportRequestModel + +// NewModelsReportRequestModel instantiates a new ModelsReportRequestModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsReportRequestModel() *ModelsReportRequestModel { + this := ModelsReportRequestModel{} + return &this +} + +// NewModelsReportRequestModelWithDefaults instantiates a new ModelsReportRequestModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsReportRequestModelWithDefaults() *ModelsReportRequestModel { + this := ModelsReportRequestModel{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ModelsReportRequestModel) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsReportRequestModel) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ModelsReportRequestModel) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *ModelsReportRequestModel) SetId(v int32) { + o.Id = &v +} + +// GetInNavigator returns the InNavigator field value if set, zero value otherwise. +func (o *ModelsReportRequestModel) GetInNavigator() bool { + if o == nil || isNil(o.InNavigator) { + var ret bool + return ret + } + return *o.InNavigator +} + +// GetInNavigatorOk returns a tuple with the InNavigator field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsReportRequestModel) GetInNavigatorOk() (*bool, bool) { + if o == nil || isNil(o.InNavigator) { + return nil, false + } + return o.InNavigator, true +} + +// HasInNavigator returns a boolean if a field has been set. +func (o *ModelsReportRequestModel) HasInNavigator() bool { + if o != nil && !isNil(o.InNavigator) { + return true + } + + return false +} + +// SetInNavigator gets a reference to the given bool and assigns it to the InNavigator field. +func (o *ModelsReportRequestModel) SetInNavigator(v bool) { + o.InNavigator = &v +} + +// GetFavorite returns the Favorite field value if set, zero value otherwise. +func (o *ModelsReportRequestModel) GetFavorite() bool { + if o == nil || isNil(o.Favorite) { + var ret bool + return ret + } + return *o.Favorite +} + +// GetFavoriteOk returns a tuple with the Favorite field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsReportRequestModel) GetFavoriteOk() (*bool, bool) { + if o == nil || isNil(o.Favorite) { + return nil, false + } + return o.Favorite, true +} + +// HasFavorite returns a boolean if a field has been set. +func (o *ModelsReportRequestModel) HasFavorite() bool { + if o != nil && !isNil(o.Favorite) { + return true + } + + return false +} + +// SetFavorite gets a reference to the given bool and assigns it to the Favorite field. +func (o *ModelsReportRequestModel) SetFavorite(v bool) { + o.Favorite = &v +} + +// GetRemoveDuplicates returns the RemoveDuplicates field value if set, zero value otherwise. +func (o *ModelsReportRequestModel) GetRemoveDuplicates() bool { + if o == nil || isNil(o.RemoveDuplicates) { + var ret bool + return ret + } + return *o.RemoveDuplicates +} + +// GetRemoveDuplicatesOk returns a tuple with the RemoveDuplicates field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsReportRequestModel) GetRemoveDuplicatesOk() (*bool, bool) { + if o == nil || isNil(o.RemoveDuplicates) { + return nil, false + } + return o.RemoveDuplicates, true +} + +// HasRemoveDuplicates returns a boolean if a field has been set. +func (o *ModelsReportRequestModel) HasRemoveDuplicates() bool { + if o != nil && !isNil(o.RemoveDuplicates) { + return true + } + + return false +} + +// SetRemoveDuplicates gets a reference to the given bool and assigns it to the RemoveDuplicates field. +func (o *ModelsReportRequestModel) SetRemoveDuplicates(v bool) { + o.RemoveDuplicates = &v +} + +func (o ModelsReportRequestModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsReportRequestModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.InNavigator) { + toSerialize["InNavigator"] = o.InNavigator + } + if !isNil(o.Favorite) { + toSerialize["Favorite"] = o.Favorite + } + if !isNil(o.RemoveDuplicates) { + toSerialize["RemoveDuplicates"] = o.RemoveDuplicates + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsReportRequestModel) UnmarshalJSON(bytes []byte) (err error) { + varModelsReportRequestModel := _ModelsReportRequestModel{} + + if err = json.Unmarshal(bytes, &varModelsReportRequestModel); err == nil { + *o = ModelsReportRequestModel(varModelsReportRequestModel) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "InNavigator") + delete(additionalProperties, "Favorite") + delete(additionalProperties, "RemoveDuplicates") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsReportRequestModel struct { + value *ModelsReportRequestModel + isSet bool +} + +func (v NullableModelsReportRequestModel) Get() *ModelsReportRequestModel { + return v.value +} + +func (v *NullableModelsReportRequestModel) Set(val *ModelsReportRequestModel) { + v.value = val + v.isSet = true +} + +func (v NullableModelsReportRequestModel) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsReportRequestModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsReportRequestModel(val *ModelsReportRequestModel) *NullableModelsReportRequestModel { + return &NullableModelsReportRequestModel{value: val, isSet: true} +} + +func (v NullableModelsReportRequestModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsReportRequestModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_report_schedule.go b/v1/api/keyfactor/model_models_report_schedule.go new file mode 100644 index 0000000..a3f985c --- /dev/null +++ b/v1/api/keyfactor/model_models_report_schedule.go @@ -0,0 +1,454 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsReportSchedule type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsReportSchedule{} + +// ModelsReportSchedule struct for ModelsReportSchedule +type ModelsReportSchedule struct { + Id *int32 `json:"Id,omitempty"` + SendReport *bool `json:"SendReport,omitempty"` + SaveReport *bool `json:"SaveReport,omitempty"` + SaveReportPath *string `json:"SaveReportPath,omitempty"` + ReportFormat *string `json:"ReportFormat,omitempty"` + KeyfactorSchedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"KeyfactorSchedule,omitempty"` + CertificateCollectionId *int32 `json:"CertificateCollectionId,omitempty"` + EmailRecipients []string `json:"EmailRecipients,omitempty"` + RuntimeParameters *map[string]string `json:"RuntimeParameters,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsReportSchedule ModelsReportSchedule + +// NewModelsReportSchedule instantiates a new ModelsReportSchedule object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsReportSchedule() *ModelsReportSchedule { + this := ModelsReportSchedule{} + return &this +} + +// NewModelsReportScheduleWithDefaults instantiates a new ModelsReportSchedule object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsReportScheduleWithDefaults() *ModelsReportSchedule { + this := ModelsReportSchedule{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ModelsReportSchedule) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsReportSchedule) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ModelsReportSchedule) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *ModelsReportSchedule) SetId(v int32) { + o.Id = &v +} + +// GetSendReport returns the SendReport field value if set, zero value otherwise. +func (o *ModelsReportSchedule) GetSendReport() bool { + if o == nil || isNil(o.SendReport) { + var ret bool + return ret + } + return *o.SendReport +} + +// GetSendReportOk returns a tuple with the SendReport field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsReportSchedule) GetSendReportOk() (*bool, bool) { + if o == nil || isNil(o.SendReport) { + return nil, false + } + return o.SendReport, true +} + +// HasSendReport returns a boolean if a field has been set. +func (o *ModelsReportSchedule) HasSendReport() bool { + if o != nil && !isNil(o.SendReport) { + return true + } + + return false +} + +// SetSendReport gets a reference to the given bool and assigns it to the SendReport field. +func (o *ModelsReportSchedule) SetSendReport(v bool) { + o.SendReport = &v +} + +// GetSaveReport returns the SaveReport field value if set, zero value otherwise. +func (o *ModelsReportSchedule) GetSaveReport() bool { + if o == nil || isNil(o.SaveReport) { + var ret bool + return ret + } + return *o.SaveReport +} + +// GetSaveReportOk returns a tuple with the SaveReport field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsReportSchedule) GetSaveReportOk() (*bool, bool) { + if o == nil || isNil(o.SaveReport) { + return nil, false + } + return o.SaveReport, true +} + +// HasSaveReport returns a boolean if a field has been set. +func (o *ModelsReportSchedule) HasSaveReport() bool { + if o != nil && !isNil(o.SaveReport) { + return true + } + + return false +} + +// SetSaveReport gets a reference to the given bool and assigns it to the SaveReport field. +func (o *ModelsReportSchedule) SetSaveReport(v bool) { + o.SaveReport = &v +} + +// GetSaveReportPath returns the SaveReportPath field value if set, zero value otherwise. +func (o *ModelsReportSchedule) GetSaveReportPath() string { + if o == nil || isNil(o.SaveReportPath) { + var ret string + return ret + } + return *o.SaveReportPath +} + +// GetSaveReportPathOk returns a tuple with the SaveReportPath field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsReportSchedule) GetSaveReportPathOk() (*string, bool) { + if o == nil || isNil(o.SaveReportPath) { + return nil, false + } + return o.SaveReportPath, true +} + +// HasSaveReportPath returns a boolean if a field has been set. +func (o *ModelsReportSchedule) HasSaveReportPath() bool { + if o != nil && !isNil(o.SaveReportPath) { + return true + } + + return false +} + +// SetSaveReportPath gets a reference to the given string and assigns it to the SaveReportPath field. +func (o *ModelsReportSchedule) SetSaveReportPath(v string) { + o.SaveReportPath = &v +} + +// GetReportFormat returns the ReportFormat field value if set, zero value otherwise. +func (o *ModelsReportSchedule) GetReportFormat() string { + if o == nil || isNil(o.ReportFormat) { + var ret string + return ret + } + return *o.ReportFormat +} + +// GetReportFormatOk returns a tuple with the ReportFormat field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsReportSchedule) GetReportFormatOk() (*string, bool) { + if o == nil || isNil(o.ReportFormat) { + return nil, false + } + return o.ReportFormat, true +} + +// HasReportFormat returns a boolean if a field has been set. +func (o *ModelsReportSchedule) HasReportFormat() bool { + if o != nil && !isNil(o.ReportFormat) { + return true + } + + return false +} + +// SetReportFormat gets a reference to the given string and assigns it to the ReportFormat field. +func (o *ModelsReportSchedule) SetReportFormat(v string) { + o.ReportFormat = &v +} + +// GetKeyfactorSchedule returns the KeyfactorSchedule field value if set, zero value otherwise. +func (o *ModelsReportSchedule) GetKeyfactorSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.KeyfactorSchedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.KeyfactorSchedule +} + +// GetKeyfactorScheduleOk returns a tuple with the KeyfactorSchedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsReportSchedule) GetKeyfactorScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.KeyfactorSchedule) { + return nil, false + } + return o.KeyfactorSchedule, true +} + +// HasKeyfactorSchedule returns a boolean if a field has been set. +func (o *ModelsReportSchedule) HasKeyfactorSchedule() bool { + if o != nil && !isNil(o.KeyfactorSchedule) { + return true + } + + return false +} + +// SetKeyfactorSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the KeyfactorSchedule field. +func (o *ModelsReportSchedule) SetKeyfactorSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.KeyfactorSchedule = &v +} + +// GetCertificateCollectionId returns the CertificateCollectionId field value if set, zero value otherwise. +func (o *ModelsReportSchedule) GetCertificateCollectionId() int32 { + if o == nil || isNil(o.CertificateCollectionId) { + var ret int32 + return ret + } + return *o.CertificateCollectionId +} + +// GetCertificateCollectionIdOk returns a tuple with the CertificateCollectionId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsReportSchedule) GetCertificateCollectionIdOk() (*int32, bool) { + if o == nil || isNil(o.CertificateCollectionId) { + return nil, false + } + return o.CertificateCollectionId, true +} + +// HasCertificateCollectionId returns a boolean if a field has been set. +func (o *ModelsReportSchedule) HasCertificateCollectionId() bool { + if o != nil && !isNil(o.CertificateCollectionId) { + return true + } + + return false +} + +// SetCertificateCollectionId gets a reference to the given int32 and assigns it to the CertificateCollectionId field. +func (o *ModelsReportSchedule) SetCertificateCollectionId(v int32) { + o.CertificateCollectionId = &v +} + +// GetEmailRecipients returns the EmailRecipients field value if set, zero value otherwise. +func (o *ModelsReportSchedule) GetEmailRecipients() []string { + if o == nil || isNil(o.EmailRecipients) { + var ret []string + return ret + } + return o.EmailRecipients +} + +// GetEmailRecipientsOk returns a tuple with the EmailRecipients field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsReportSchedule) GetEmailRecipientsOk() ([]string, bool) { + if o == nil || isNil(o.EmailRecipients) { + return nil, false + } + return o.EmailRecipients, true +} + +// HasEmailRecipients returns a boolean if a field has been set. +func (o *ModelsReportSchedule) HasEmailRecipients() bool { + if o != nil && !isNil(o.EmailRecipients) { + return true + } + + return false +} + +// SetEmailRecipients gets a reference to the given []string and assigns it to the EmailRecipients field. +func (o *ModelsReportSchedule) SetEmailRecipients(v []string) { + o.EmailRecipients = v +} + +// GetRuntimeParameters returns the RuntimeParameters field value if set, zero value otherwise. +func (o *ModelsReportSchedule) GetRuntimeParameters() map[string]string { + if o == nil || isNil(o.RuntimeParameters) { + var ret map[string]string + return ret + } + return *o.RuntimeParameters +} + +// GetRuntimeParametersOk returns a tuple with the RuntimeParameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsReportSchedule) GetRuntimeParametersOk() (*map[string]string, bool) { + if o == nil || isNil(o.RuntimeParameters) { + return nil, false + } + return o.RuntimeParameters, true +} + +// HasRuntimeParameters returns a boolean if a field has been set. +func (o *ModelsReportSchedule) HasRuntimeParameters() bool { + if o != nil && !isNil(o.RuntimeParameters) { + return true + } + + return false +} + +// SetRuntimeParameters gets a reference to the given map[string]string and assigns it to the RuntimeParameters field. +func (o *ModelsReportSchedule) SetRuntimeParameters(v map[string]string) { + o.RuntimeParameters = &v +} + +func (o ModelsReportSchedule) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsReportSchedule) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.SendReport) { + toSerialize["SendReport"] = o.SendReport + } + if !isNil(o.SaveReport) { + toSerialize["SaveReport"] = o.SaveReport + } + if !isNil(o.SaveReportPath) { + toSerialize["SaveReportPath"] = o.SaveReportPath + } + if !isNil(o.ReportFormat) { + toSerialize["ReportFormat"] = o.ReportFormat + } + if !isNil(o.KeyfactorSchedule) { + toSerialize["KeyfactorSchedule"] = o.KeyfactorSchedule + } + if !isNil(o.CertificateCollectionId) { + toSerialize["CertificateCollectionId"] = o.CertificateCollectionId + } + if !isNil(o.EmailRecipients) { + toSerialize["EmailRecipients"] = o.EmailRecipients + } + if !isNil(o.RuntimeParameters) { + toSerialize["RuntimeParameters"] = o.RuntimeParameters + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsReportSchedule) UnmarshalJSON(bytes []byte) (err error) { + varModelsReportSchedule := _ModelsReportSchedule{} + + if err = json.Unmarshal(bytes, &varModelsReportSchedule); err == nil { + *o = ModelsReportSchedule(varModelsReportSchedule) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "SendReport") + delete(additionalProperties, "SaveReport") + delete(additionalProperties, "SaveReportPath") + delete(additionalProperties, "ReportFormat") + delete(additionalProperties, "KeyfactorSchedule") + delete(additionalProperties, "CertificateCollectionId") + delete(additionalProperties, "EmailRecipients") + delete(additionalProperties, "RuntimeParameters") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsReportSchedule struct { + value *ModelsReportSchedule + isSet bool +} + +func (v NullableModelsReportSchedule) Get() *ModelsReportSchedule { + return v.value +} + +func (v *NullableModelsReportSchedule) Set(val *ModelsReportSchedule) { + v.value = val + v.isSet = true +} + +func (v NullableModelsReportSchedule) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsReportSchedule) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsReportSchedule(val *ModelsReportSchedule) *NullableModelsReportSchedule { + return &NullableModelsReportSchedule{value: val, isSet: true} +} + +func (v NullableModelsReportSchedule) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsReportSchedule) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_revocation_revocation_response.go b/v1/api/keyfactor/model_models_revocation_revocation_response.go new file mode 100644 index 0000000..c7f0ee5 --- /dev/null +++ b/v1/api/keyfactor/model_models_revocation_revocation_response.go @@ -0,0 +1,195 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsRevocationRevocationResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsRevocationRevocationResponse{} + +// ModelsRevocationRevocationResponse struct for ModelsRevocationRevocationResponse +type ModelsRevocationRevocationResponse struct { + RevokedIds []int32 `json:"RevokedIds,omitempty"` + SuspendedCerts []ModelsRevocationSuspendedRevocationResponse `json:"SuspendedCerts,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsRevocationRevocationResponse ModelsRevocationRevocationResponse + +// NewModelsRevocationRevocationResponse instantiates a new ModelsRevocationRevocationResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsRevocationRevocationResponse() *ModelsRevocationRevocationResponse { + this := ModelsRevocationRevocationResponse{} + return &this +} + +// NewModelsRevocationRevocationResponseWithDefaults instantiates a new ModelsRevocationRevocationResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsRevocationRevocationResponseWithDefaults() *ModelsRevocationRevocationResponse { + this := ModelsRevocationRevocationResponse{} + return &this +} + +// GetRevokedIds returns the RevokedIds field value if set, zero value otherwise. +func (o *ModelsRevocationRevocationResponse) GetRevokedIds() []int32 { + if o == nil || isNil(o.RevokedIds) { + var ret []int32 + return ret + } + return o.RevokedIds +} + +// GetRevokedIdsOk returns a tuple with the RevokedIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsRevocationRevocationResponse) GetRevokedIdsOk() ([]int32, bool) { + if o == nil || isNil(o.RevokedIds) { + return nil, false + } + return o.RevokedIds, true +} + +// HasRevokedIds returns a boolean if a field has been set. +func (o *ModelsRevocationRevocationResponse) HasRevokedIds() bool { + if o != nil && !isNil(o.RevokedIds) { + return true + } + + return false +} + +// SetRevokedIds gets a reference to the given []int32 and assigns it to the RevokedIds field. +func (o *ModelsRevocationRevocationResponse) SetRevokedIds(v []int32) { + o.RevokedIds = v +} + +// GetSuspendedCerts returns the SuspendedCerts field value if set, zero value otherwise. +func (o *ModelsRevocationRevocationResponse) GetSuspendedCerts() []ModelsRevocationSuspendedRevocationResponse { + if o == nil || isNil(o.SuspendedCerts) { + var ret []ModelsRevocationSuspendedRevocationResponse + return ret + } + return o.SuspendedCerts +} + +// GetSuspendedCertsOk returns a tuple with the SuspendedCerts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsRevocationRevocationResponse) GetSuspendedCertsOk() ([]ModelsRevocationSuspendedRevocationResponse, bool) { + if o == nil || isNil(o.SuspendedCerts) { + return nil, false + } + return o.SuspendedCerts, true +} + +// HasSuspendedCerts returns a boolean if a field has been set. +func (o *ModelsRevocationRevocationResponse) HasSuspendedCerts() bool { + if o != nil && !isNil(o.SuspendedCerts) { + return true + } + + return false +} + +// SetSuspendedCerts gets a reference to the given []ModelsRevocationSuspendedRevocationResponse and assigns it to the SuspendedCerts field. +func (o *ModelsRevocationRevocationResponse) SetSuspendedCerts(v []ModelsRevocationSuspendedRevocationResponse) { + o.SuspendedCerts = v +} + +func (o ModelsRevocationRevocationResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsRevocationRevocationResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.RevokedIds) { + toSerialize["RevokedIds"] = o.RevokedIds + } + if !isNil(o.SuspendedCerts) { + toSerialize["SuspendedCerts"] = o.SuspendedCerts + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsRevocationRevocationResponse) UnmarshalJSON(bytes []byte) (err error) { + varModelsRevocationRevocationResponse := _ModelsRevocationRevocationResponse{} + + if err = json.Unmarshal(bytes, &varModelsRevocationRevocationResponse); err == nil { + *o = ModelsRevocationRevocationResponse(varModelsRevocationRevocationResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "RevokedIds") + delete(additionalProperties, "SuspendedCerts") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsRevocationRevocationResponse struct { + value *ModelsRevocationRevocationResponse + isSet bool +} + +func (v NullableModelsRevocationRevocationResponse) Get() *ModelsRevocationRevocationResponse { + return v.value +} + +func (v *NullableModelsRevocationRevocationResponse) Set(val *ModelsRevocationRevocationResponse) { + v.value = val + v.isSet = true +} + +func (v NullableModelsRevocationRevocationResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsRevocationRevocationResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsRevocationRevocationResponse(val *ModelsRevocationRevocationResponse) *NullableModelsRevocationRevocationResponse { + return &NullableModelsRevocationRevocationResponse{value: val, isSet: true} +} + +func (v NullableModelsRevocationRevocationResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsRevocationRevocationResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_revocation_suspended_revocation_response.go b/v1/api/keyfactor/model_models_revocation_suspended_revocation_response.go new file mode 100644 index 0000000..7dca7ca --- /dev/null +++ b/v1/api/keyfactor/model_models_revocation_suspended_revocation_response.go @@ -0,0 +1,232 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsRevocationSuspendedRevocationResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsRevocationSuspendedRevocationResponse{} + +// ModelsRevocationSuspendedRevocationResponse struct for ModelsRevocationSuspendedRevocationResponse +type ModelsRevocationSuspendedRevocationResponse struct { + CertId *int32 `json:"CertId,omitempty"` + WorkflowId *string `json:"WorkflowId,omitempty"` + Message *string `json:"Message,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsRevocationSuspendedRevocationResponse ModelsRevocationSuspendedRevocationResponse + +// NewModelsRevocationSuspendedRevocationResponse instantiates a new ModelsRevocationSuspendedRevocationResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsRevocationSuspendedRevocationResponse() *ModelsRevocationSuspendedRevocationResponse { + this := ModelsRevocationSuspendedRevocationResponse{} + return &this +} + +// NewModelsRevocationSuspendedRevocationResponseWithDefaults instantiates a new ModelsRevocationSuspendedRevocationResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsRevocationSuspendedRevocationResponseWithDefaults() *ModelsRevocationSuspendedRevocationResponse { + this := ModelsRevocationSuspendedRevocationResponse{} + return &this +} + +// GetCertId returns the CertId field value if set, zero value otherwise. +func (o *ModelsRevocationSuspendedRevocationResponse) GetCertId() int32 { + if o == nil || isNil(o.CertId) { + var ret int32 + return ret + } + return *o.CertId +} + +// GetCertIdOk returns a tuple with the CertId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsRevocationSuspendedRevocationResponse) GetCertIdOk() (*int32, bool) { + if o == nil || isNil(o.CertId) { + return nil, false + } + return o.CertId, true +} + +// HasCertId returns a boolean if a field has been set. +func (o *ModelsRevocationSuspendedRevocationResponse) HasCertId() bool { + if o != nil && !isNil(o.CertId) { + return true + } + + return false +} + +// SetCertId gets a reference to the given int32 and assigns it to the CertId field. +func (o *ModelsRevocationSuspendedRevocationResponse) SetCertId(v int32) { + o.CertId = &v +} + +// GetWorkflowId returns the WorkflowId field value if set, zero value otherwise. +func (o *ModelsRevocationSuspendedRevocationResponse) GetWorkflowId() string { + if o == nil || isNil(o.WorkflowId) { + var ret string + return ret + } + return *o.WorkflowId +} + +// GetWorkflowIdOk returns a tuple with the WorkflowId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsRevocationSuspendedRevocationResponse) GetWorkflowIdOk() (*string, bool) { + if o == nil || isNil(o.WorkflowId) { + return nil, false + } + return o.WorkflowId, true +} + +// HasWorkflowId returns a boolean if a field has been set. +func (o *ModelsRevocationSuspendedRevocationResponse) HasWorkflowId() bool { + if o != nil && !isNil(o.WorkflowId) { + return true + } + + return false +} + +// SetWorkflowId gets a reference to the given string and assigns it to the WorkflowId field. +func (o *ModelsRevocationSuspendedRevocationResponse) SetWorkflowId(v string) { + o.WorkflowId = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *ModelsRevocationSuspendedRevocationResponse) GetMessage() string { + if o == nil || isNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsRevocationSuspendedRevocationResponse) GetMessageOk() (*string, bool) { + if o == nil || isNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *ModelsRevocationSuspendedRevocationResponse) HasMessage() bool { + if o != nil && !isNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *ModelsRevocationSuspendedRevocationResponse) SetMessage(v string) { + o.Message = &v +} + +func (o ModelsRevocationSuspendedRevocationResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsRevocationSuspendedRevocationResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.CertId) { + toSerialize["CertId"] = o.CertId + } + if !isNil(o.WorkflowId) { + toSerialize["WorkflowId"] = o.WorkflowId + } + if !isNil(o.Message) { + toSerialize["Message"] = o.Message + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsRevocationSuspendedRevocationResponse) UnmarshalJSON(bytes []byte) (err error) { + varModelsRevocationSuspendedRevocationResponse := _ModelsRevocationSuspendedRevocationResponse{} + + if err = json.Unmarshal(bytes, &varModelsRevocationSuspendedRevocationResponse); err == nil { + *o = ModelsRevocationSuspendedRevocationResponse(varModelsRevocationSuspendedRevocationResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "CertId") + delete(additionalProperties, "WorkflowId") + delete(additionalProperties, "Message") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsRevocationSuspendedRevocationResponse struct { + value *ModelsRevocationSuspendedRevocationResponse + isSet bool +} + +func (v NullableModelsRevocationSuspendedRevocationResponse) Get() *ModelsRevocationSuspendedRevocationResponse { + return v.value +} + +func (v *NullableModelsRevocationSuspendedRevocationResponse) Set(val *ModelsRevocationSuspendedRevocationResponse) { + v.value = val + v.isSet = true +} + +func (v NullableModelsRevocationSuspendedRevocationResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsRevocationSuspendedRevocationResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsRevocationSuspendedRevocationResponse(val *ModelsRevocationSuspendedRevocationResponse) *NullableModelsRevocationSuspendedRevocationResponse { + return &NullableModelsRevocationSuspendedRevocationResponse{value: val, isSet: true} +} + +func (v NullableModelsRevocationSuspendedRevocationResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsRevocationSuspendedRevocationResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_revoke_all_certificates_request.go b/v1/api/keyfactor/model_models_revoke_all_certificates_request.go new file mode 100644 index 0000000..81b4e92 --- /dev/null +++ b/v1/api/keyfactor/model_models_revoke_all_certificates_request.go @@ -0,0 +1,332 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" + "time" +) + +// checks if the ModelsRevokeAllCertificatesRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsRevokeAllCertificatesRequest{} + +// ModelsRevokeAllCertificatesRequest Information for revoking all certifictes in a query +type ModelsRevokeAllCertificatesRequest struct { + // The query string of the certificates to revoke + Query *string `json:"Query,omitempty"` + // The Reason for revocation + Reason int32 `json:"Reason"` + // A comment for auditing purposes + Comment string `json:"Comment"` + // The date when the certificates are to appear on the revocation list + EffectiveDate *time.Time `json:"EffectiveDate,omitempty"` + // A flag telling the query to include revoked certificates + IncludeRevoked *bool `json:"IncludeRevoked,omitempty"` + // A flag telling the query to include expired certificates + IncludeExpired *bool `json:"IncludeExpired,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsRevokeAllCertificatesRequest ModelsRevokeAllCertificatesRequest + +// NewModelsRevokeAllCertificatesRequest instantiates a new ModelsRevokeAllCertificatesRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsRevokeAllCertificatesRequest(reason int32, comment string) *ModelsRevokeAllCertificatesRequest { + this := ModelsRevokeAllCertificatesRequest{} + this.Reason = reason + this.Comment = comment + return &this +} + +// NewModelsRevokeAllCertificatesRequestWithDefaults instantiates a new ModelsRevokeAllCertificatesRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsRevokeAllCertificatesRequestWithDefaults() *ModelsRevokeAllCertificatesRequest { + this := ModelsRevokeAllCertificatesRequest{} + return &this +} + +// GetQuery returns the Query field value if set, zero value otherwise. +func (o *ModelsRevokeAllCertificatesRequest) GetQuery() string { + if o == nil || isNil(o.Query) { + var ret string + return ret + } + return *o.Query +} + +// GetQueryOk returns a tuple with the Query field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsRevokeAllCertificatesRequest) GetQueryOk() (*string, bool) { + if o == nil || isNil(o.Query) { + return nil, false + } + return o.Query, true +} + +// HasQuery returns a boolean if a field has been set. +func (o *ModelsRevokeAllCertificatesRequest) HasQuery() bool { + if o != nil && !isNil(o.Query) { + return true + } + + return false +} + +// SetQuery gets a reference to the given string and assigns it to the Query field. +func (o *ModelsRevokeAllCertificatesRequest) SetQuery(v string) { + o.Query = &v +} + +// GetReason returns the Reason field value +func (o *ModelsRevokeAllCertificatesRequest) GetReason() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value +// and a boolean to check if the value has been set. +func (o *ModelsRevokeAllCertificatesRequest) GetReasonOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Reason, true +} + +// SetReason sets field value +func (o *ModelsRevokeAllCertificatesRequest) SetReason(v int32) { + o.Reason = v +} + +// GetComment returns the Comment field value +func (o *ModelsRevokeAllCertificatesRequest) GetComment() string { + if o == nil { + var ret string + return ret + } + + return o.Comment +} + +// GetCommentOk returns a tuple with the Comment field value +// and a boolean to check if the value has been set. +func (o *ModelsRevokeAllCertificatesRequest) GetCommentOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Comment, true +} + +// SetComment sets field value +func (o *ModelsRevokeAllCertificatesRequest) SetComment(v string) { + o.Comment = v +} + +// GetEffectiveDate returns the EffectiveDate field value if set, zero value otherwise. +func (o *ModelsRevokeAllCertificatesRequest) GetEffectiveDate() time.Time { + if o == nil || isNil(o.EffectiveDate) { + var ret time.Time + return ret + } + return *o.EffectiveDate +} + +// GetEffectiveDateOk returns a tuple with the EffectiveDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsRevokeAllCertificatesRequest) GetEffectiveDateOk() (*time.Time, bool) { + if o == nil || isNil(o.EffectiveDate) { + return nil, false + } + return o.EffectiveDate, true +} + +// HasEffectiveDate returns a boolean if a field has been set. +func (o *ModelsRevokeAllCertificatesRequest) HasEffectiveDate() bool { + if o != nil && !isNil(o.EffectiveDate) { + return true + } + + return false +} + +// SetEffectiveDate gets a reference to the given time.Time and assigns it to the EffectiveDate field. +func (o *ModelsRevokeAllCertificatesRequest) SetEffectiveDate(v time.Time) { + o.EffectiveDate = &v +} + +// GetIncludeRevoked returns the IncludeRevoked field value if set, zero value otherwise. +func (o *ModelsRevokeAllCertificatesRequest) GetIncludeRevoked() bool { + if o == nil || isNil(o.IncludeRevoked) { + var ret bool + return ret + } + return *o.IncludeRevoked +} + +// GetIncludeRevokedOk returns a tuple with the IncludeRevoked field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsRevokeAllCertificatesRequest) GetIncludeRevokedOk() (*bool, bool) { + if o == nil || isNil(o.IncludeRevoked) { + return nil, false + } + return o.IncludeRevoked, true +} + +// HasIncludeRevoked returns a boolean if a field has been set. +func (o *ModelsRevokeAllCertificatesRequest) HasIncludeRevoked() bool { + if o != nil && !isNil(o.IncludeRevoked) { + return true + } + + return false +} + +// SetIncludeRevoked gets a reference to the given bool and assigns it to the IncludeRevoked field. +func (o *ModelsRevokeAllCertificatesRequest) SetIncludeRevoked(v bool) { + o.IncludeRevoked = &v +} + +// GetIncludeExpired returns the IncludeExpired field value if set, zero value otherwise. +func (o *ModelsRevokeAllCertificatesRequest) GetIncludeExpired() bool { + if o == nil || isNil(o.IncludeExpired) { + var ret bool + return ret + } + return *o.IncludeExpired +} + +// GetIncludeExpiredOk returns a tuple with the IncludeExpired field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsRevokeAllCertificatesRequest) GetIncludeExpiredOk() (*bool, bool) { + if o == nil || isNil(o.IncludeExpired) { + return nil, false + } + return o.IncludeExpired, true +} + +// HasIncludeExpired returns a boolean if a field has been set. +func (o *ModelsRevokeAllCertificatesRequest) HasIncludeExpired() bool { + if o != nil && !isNil(o.IncludeExpired) { + return true + } + + return false +} + +// SetIncludeExpired gets a reference to the given bool and assigns it to the IncludeExpired field. +func (o *ModelsRevokeAllCertificatesRequest) SetIncludeExpired(v bool) { + o.IncludeExpired = &v +} + +func (o ModelsRevokeAllCertificatesRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsRevokeAllCertificatesRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Query) { + toSerialize["Query"] = o.Query + } + toSerialize["Reason"] = o.Reason + toSerialize["Comment"] = o.Comment + if !isNil(o.EffectiveDate) { + toSerialize["EffectiveDate"] = o.EffectiveDate + } + if !isNil(o.IncludeRevoked) { + toSerialize["IncludeRevoked"] = o.IncludeRevoked + } + if !isNil(o.IncludeExpired) { + toSerialize["IncludeExpired"] = o.IncludeExpired + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsRevokeAllCertificatesRequest) UnmarshalJSON(bytes []byte) (err error) { + varModelsRevokeAllCertificatesRequest := _ModelsRevokeAllCertificatesRequest{} + + if err = json.Unmarshal(bytes, &varModelsRevokeAllCertificatesRequest); err == nil { + *o = ModelsRevokeAllCertificatesRequest(varModelsRevokeAllCertificatesRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Query") + delete(additionalProperties, "Reason") + delete(additionalProperties, "Comment") + delete(additionalProperties, "EffectiveDate") + delete(additionalProperties, "IncludeRevoked") + delete(additionalProperties, "IncludeExpired") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsRevokeAllCertificatesRequest struct { + value *ModelsRevokeAllCertificatesRequest + isSet bool +} + +func (v NullableModelsRevokeAllCertificatesRequest) Get() *ModelsRevokeAllCertificatesRequest { + return v.value +} + +func (v *NullableModelsRevokeAllCertificatesRequest) Set(val *ModelsRevokeAllCertificatesRequest) { + v.value = val + v.isSet = true +} + +func (v NullableModelsRevokeAllCertificatesRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsRevokeAllCertificatesRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsRevokeAllCertificatesRequest(val *ModelsRevokeAllCertificatesRequest) *NullableModelsRevokeAllCertificatesRequest { + return &NullableModelsRevokeAllCertificatesRequest{value: val, isSet: true} +} + +func (v NullableModelsRevokeAllCertificatesRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsRevokeAllCertificatesRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_revoke_certificate_request.go b/v1/api/keyfactor/model_models_revoke_certificate_request.go new file mode 100644 index 0000000..6ecb845 --- /dev/null +++ b/v1/api/keyfactor/model_models_revoke_certificate_request.go @@ -0,0 +1,307 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" + "time" +) + +// checks if the ModelsRevokeCertificateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsRevokeCertificateRequest{} + +// ModelsRevokeCertificateRequest struct for ModelsRevokeCertificateRequest +type ModelsRevokeCertificateRequest struct { + CertificateIds []int32 `json:"CertificateIds,omitempty"` + Reason *int32 `json:"Reason,omitempty"` + Comment *string `json:"Comment,omitempty"` + EffectiveDate *time.Time `json:"EffectiveDate,omitempty"` + CollectionId *int32 `json:"CollectionId,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsRevokeCertificateRequest ModelsRevokeCertificateRequest + +// NewModelsRevokeCertificateRequest instantiates a new ModelsRevokeCertificateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsRevokeCertificateRequest() *ModelsRevokeCertificateRequest { + this := ModelsRevokeCertificateRequest{} + return &this +} + +// NewModelsRevokeCertificateRequestWithDefaults instantiates a new ModelsRevokeCertificateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsRevokeCertificateRequestWithDefaults() *ModelsRevokeCertificateRequest { + this := ModelsRevokeCertificateRequest{} + return &this +} + +// GetCertificateIds returns the CertificateIds field value if set, zero value otherwise. +func (o *ModelsRevokeCertificateRequest) GetCertificateIds() []int32 { + if o == nil || isNil(o.CertificateIds) { + var ret []int32 + return ret + } + return o.CertificateIds +} + +// GetCertificateIdsOk returns a tuple with the CertificateIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsRevokeCertificateRequest) GetCertificateIdsOk() ([]int32, bool) { + if o == nil || isNil(o.CertificateIds) { + return nil, false + } + return o.CertificateIds, true +} + +// HasCertificateIds returns a boolean if a field has been set. +func (o *ModelsRevokeCertificateRequest) HasCertificateIds() bool { + if o != nil && !isNil(o.CertificateIds) { + return true + } + + return false +} + +// SetCertificateIds gets a reference to the given []int32 and assigns it to the CertificateIds field. +func (o *ModelsRevokeCertificateRequest) SetCertificateIds(v []int32) { + o.CertificateIds = v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *ModelsRevokeCertificateRequest) GetReason() int32 { + if o == nil || isNil(o.Reason) { + var ret int32 + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsRevokeCertificateRequest) GetReasonOk() (*int32, bool) { + if o == nil || isNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *ModelsRevokeCertificateRequest) HasReason() bool { + if o != nil && !isNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given int32 and assigns it to the Reason field. +func (o *ModelsRevokeCertificateRequest) SetReason(v int32) { + o.Reason = &v +} + +// GetComment returns the Comment field value if set, zero value otherwise. +func (o *ModelsRevokeCertificateRequest) GetComment() string { + if o == nil || isNil(o.Comment) { + var ret string + return ret + } + return *o.Comment +} + +// GetCommentOk returns a tuple with the Comment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsRevokeCertificateRequest) GetCommentOk() (*string, bool) { + if o == nil || isNil(o.Comment) { + return nil, false + } + return o.Comment, true +} + +// HasComment returns a boolean if a field has been set. +func (o *ModelsRevokeCertificateRequest) HasComment() bool { + if o != nil && !isNil(o.Comment) { + return true + } + + return false +} + +// SetComment gets a reference to the given string and assigns it to the Comment field. +func (o *ModelsRevokeCertificateRequest) SetComment(v string) { + o.Comment = &v +} + +// GetEffectiveDate returns the EffectiveDate field value if set, zero value otherwise. +func (o *ModelsRevokeCertificateRequest) GetEffectiveDate() time.Time { + if o == nil || isNil(o.EffectiveDate) { + var ret time.Time + return ret + } + return *o.EffectiveDate +} + +// GetEffectiveDateOk returns a tuple with the EffectiveDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsRevokeCertificateRequest) GetEffectiveDateOk() (*time.Time, bool) { + if o == nil || isNil(o.EffectiveDate) { + return nil, false + } + return o.EffectiveDate, true +} + +// HasEffectiveDate returns a boolean if a field has been set. +func (o *ModelsRevokeCertificateRequest) HasEffectiveDate() bool { + if o != nil && !isNil(o.EffectiveDate) { + return true + } + + return false +} + +// SetEffectiveDate gets a reference to the given time.Time and assigns it to the EffectiveDate field. +func (o *ModelsRevokeCertificateRequest) SetEffectiveDate(v time.Time) { + o.EffectiveDate = &v +} + +// GetCollectionId returns the CollectionId field value if set, zero value otherwise. +func (o *ModelsRevokeCertificateRequest) GetCollectionId() int32 { + if o == nil || isNil(o.CollectionId) { + var ret int32 + return ret + } + return *o.CollectionId +} + +// GetCollectionIdOk returns a tuple with the CollectionId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsRevokeCertificateRequest) GetCollectionIdOk() (*int32, bool) { + if o == nil || isNil(o.CollectionId) { + return nil, false + } + return o.CollectionId, true +} + +// HasCollectionId returns a boolean if a field has been set. +func (o *ModelsRevokeCertificateRequest) HasCollectionId() bool { + if o != nil && !isNil(o.CollectionId) { + return true + } + + return false +} + +// SetCollectionId gets a reference to the given int32 and assigns it to the CollectionId field. +func (o *ModelsRevokeCertificateRequest) SetCollectionId(v int32) { + o.CollectionId = &v +} + +func (o ModelsRevokeCertificateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsRevokeCertificateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.CertificateIds) { + toSerialize["CertificateIds"] = o.CertificateIds + } + if !isNil(o.Reason) { + toSerialize["Reason"] = o.Reason + } + if !isNil(o.Comment) { + toSerialize["Comment"] = o.Comment + } + if !isNil(o.EffectiveDate) { + toSerialize["EffectiveDate"] = o.EffectiveDate + } + if !isNil(o.CollectionId) { + toSerialize["CollectionId"] = o.CollectionId + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsRevokeCertificateRequest) UnmarshalJSON(bytes []byte) (err error) { + varModelsRevokeCertificateRequest := _ModelsRevokeCertificateRequest{} + + if err = json.Unmarshal(bytes, &varModelsRevokeCertificateRequest); err == nil { + *o = ModelsRevokeCertificateRequest(varModelsRevokeCertificateRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "CertificateIds") + delete(additionalProperties, "Reason") + delete(additionalProperties, "Comment") + delete(additionalProperties, "EffectiveDate") + delete(additionalProperties, "CollectionId") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsRevokeCertificateRequest struct { + value *ModelsRevokeCertificateRequest + isSet bool +} + +func (v NullableModelsRevokeCertificateRequest) Get() *ModelsRevokeCertificateRequest { + return v.value +} + +func (v *NullableModelsRevokeCertificateRequest) Set(val *ModelsRevokeCertificateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableModelsRevokeCertificateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsRevokeCertificateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsRevokeCertificateRequest(val *ModelsRevokeCertificateRequest) *NullableModelsRevokeCertificateRequest { + return &NullableModelsRevokeCertificateRequest{value: val, isSet: true} +} + +func (v NullableModelsRevokeCertificateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsRevokeCertificateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_security_certificate_permissions.go b/v1/api/keyfactor/model_models_security_certificate_permissions.go new file mode 100644 index 0000000..b04eab6 --- /dev/null +++ b/v1/api/keyfactor/model_models_security_certificate_permissions.go @@ -0,0 +1,158 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsSecurityCertificatePermissions type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsSecurityCertificatePermissions{} + +// ModelsSecurityCertificatePermissions A list of permissions for a given certificate and which security role(s) granted them. +type ModelsSecurityCertificatePermissions struct { + Roles []ModelsSecuritySecurityRolesSecurityRoleResponseBase `json:"Roles,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsSecurityCertificatePermissions ModelsSecurityCertificatePermissions + +// NewModelsSecurityCertificatePermissions instantiates a new ModelsSecurityCertificatePermissions object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsSecurityCertificatePermissions() *ModelsSecurityCertificatePermissions { + this := ModelsSecurityCertificatePermissions{} + return &this +} + +// NewModelsSecurityCertificatePermissionsWithDefaults instantiates a new ModelsSecurityCertificatePermissions object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsSecurityCertificatePermissionsWithDefaults() *ModelsSecurityCertificatePermissions { + this := ModelsSecurityCertificatePermissions{} + return &this +} + +// GetRoles returns the Roles field value if set, zero value otherwise. +func (o *ModelsSecurityCertificatePermissions) GetRoles() []ModelsSecuritySecurityRolesSecurityRoleResponseBase { + if o == nil || isNil(o.Roles) { + var ret []ModelsSecuritySecurityRolesSecurityRoleResponseBase + return ret + } + return o.Roles +} + +// GetRolesOk returns a tuple with the Roles field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSecurityCertificatePermissions) GetRolesOk() ([]ModelsSecuritySecurityRolesSecurityRoleResponseBase, bool) { + if o == nil || isNil(o.Roles) { + return nil, false + } + return o.Roles, true +} + +// HasRoles returns a boolean if a field has been set. +func (o *ModelsSecurityCertificatePermissions) HasRoles() bool { + if o != nil && !isNil(o.Roles) { + return true + } + + return false +} + +// SetRoles gets a reference to the given []ModelsSecuritySecurityRolesSecurityRoleResponseBase and assigns it to the Roles field. +func (o *ModelsSecurityCertificatePermissions) SetRoles(v []ModelsSecuritySecurityRolesSecurityRoleResponseBase) { + o.Roles = v +} + +func (o ModelsSecurityCertificatePermissions) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsSecurityCertificatePermissions) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Roles) { + toSerialize["Roles"] = o.Roles + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsSecurityCertificatePermissions) UnmarshalJSON(bytes []byte) (err error) { + varModelsSecurityCertificatePermissions := _ModelsSecurityCertificatePermissions{} + + if err = json.Unmarshal(bytes, &varModelsSecurityCertificatePermissions); err == nil { + *o = ModelsSecurityCertificatePermissions(varModelsSecurityCertificatePermissions) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Roles") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsSecurityCertificatePermissions struct { + value *ModelsSecurityCertificatePermissions + isSet bool +} + +func (v NullableModelsSecurityCertificatePermissions) Get() *ModelsSecurityCertificatePermissions { + return v.value +} + +func (v *NullableModelsSecurityCertificatePermissions) Set(val *ModelsSecurityCertificatePermissions) { + v.value = val + v.isSet = true +} + +func (v NullableModelsSecurityCertificatePermissions) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsSecurityCertificatePermissions) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsSecurityCertificatePermissions(val *ModelsSecurityCertificatePermissions) *NullableModelsSecurityCertificatePermissions { + return &NullableModelsSecurityCertificatePermissions{value: val, isSet: true} +} + +func (v NullableModelsSecurityCertificatePermissions) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsSecurityCertificatePermissions) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_security_identities_permission_roles_pair_response.go b/v1/api/keyfactor/model_models_security_identities_permission_roles_pair_response.go new file mode 100644 index 0000000..ed5505c --- /dev/null +++ b/v1/api/keyfactor/model_models_security_identities_permission_roles_pair_response.go @@ -0,0 +1,195 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsSecurityIdentitiesPermissionRolesPairResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsSecurityIdentitiesPermissionRolesPairResponse{} + +// ModelsSecurityIdentitiesPermissionRolesPairResponse struct for ModelsSecurityIdentitiesPermissionRolesPairResponse +type ModelsSecurityIdentitiesPermissionRolesPairResponse struct { + Permission *string `json:"Permission,omitempty"` + GrantedByRoles []string `json:"GrantedByRoles,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsSecurityIdentitiesPermissionRolesPairResponse ModelsSecurityIdentitiesPermissionRolesPairResponse + +// NewModelsSecurityIdentitiesPermissionRolesPairResponse instantiates a new ModelsSecurityIdentitiesPermissionRolesPairResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsSecurityIdentitiesPermissionRolesPairResponse() *ModelsSecurityIdentitiesPermissionRolesPairResponse { + this := ModelsSecurityIdentitiesPermissionRolesPairResponse{} + return &this +} + +// NewModelsSecurityIdentitiesPermissionRolesPairResponseWithDefaults instantiates a new ModelsSecurityIdentitiesPermissionRolesPairResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsSecurityIdentitiesPermissionRolesPairResponseWithDefaults() *ModelsSecurityIdentitiesPermissionRolesPairResponse { + this := ModelsSecurityIdentitiesPermissionRolesPairResponse{} + return &this +} + +// GetPermission returns the Permission field value if set, zero value otherwise. +func (o *ModelsSecurityIdentitiesPermissionRolesPairResponse) GetPermission() string { + if o == nil || isNil(o.Permission) { + var ret string + return ret + } + return *o.Permission +} + +// GetPermissionOk returns a tuple with the Permission field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSecurityIdentitiesPermissionRolesPairResponse) GetPermissionOk() (*string, bool) { + if o == nil || isNil(o.Permission) { + return nil, false + } + return o.Permission, true +} + +// HasPermission returns a boolean if a field has been set. +func (o *ModelsSecurityIdentitiesPermissionRolesPairResponse) HasPermission() bool { + if o != nil && !isNil(o.Permission) { + return true + } + + return false +} + +// SetPermission gets a reference to the given string and assigns it to the Permission field. +func (o *ModelsSecurityIdentitiesPermissionRolesPairResponse) SetPermission(v string) { + o.Permission = &v +} + +// GetGrantedByRoles returns the GrantedByRoles field value if set, zero value otherwise. +func (o *ModelsSecurityIdentitiesPermissionRolesPairResponse) GetGrantedByRoles() []string { + if o == nil || isNil(o.GrantedByRoles) { + var ret []string + return ret + } + return o.GrantedByRoles +} + +// GetGrantedByRolesOk returns a tuple with the GrantedByRoles field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSecurityIdentitiesPermissionRolesPairResponse) GetGrantedByRolesOk() ([]string, bool) { + if o == nil || isNil(o.GrantedByRoles) { + return nil, false + } + return o.GrantedByRoles, true +} + +// HasGrantedByRoles returns a boolean if a field has been set. +func (o *ModelsSecurityIdentitiesPermissionRolesPairResponse) HasGrantedByRoles() bool { + if o != nil && !isNil(o.GrantedByRoles) { + return true + } + + return false +} + +// SetGrantedByRoles gets a reference to the given []string and assigns it to the GrantedByRoles field. +func (o *ModelsSecurityIdentitiesPermissionRolesPairResponse) SetGrantedByRoles(v []string) { + o.GrantedByRoles = v +} + +func (o ModelsSecurityIdentitiesPermissionRolesPairResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsSecurityIdentitiesPermissionRolesPairResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Permission) { + toSerialize["Permission"] = o.Permission + } + if !isNil(o.GrantedByRoles) { + toSerialize["GrantedByRoles"] = o.GrantedByRoles + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsSecurityIdentitiesPermissionRolesPairResponse) UnmarshalJSON(bytes []byte) (err error) { + varModelsSecurityIdentitiesPermissionRolesPairResponse := _ModelsSecurityIdentitiesPermissionRolesPairResponse{} + + if err = json.Unmarshal(bytes, &varModelsSecurityIdentitiesPermissionRolesPairResponse); err == nil { + *o = ModelsSecurityIdentitiesPermissionRolesPairResponse(varModelsSecurityIdentitiesPermissionRolesPairResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Permission") + delete(additionalProperties, "GrantedByRoles") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsSecurityIdentitiesPermissionRolesPairResponse struct { + value *ModelsSecurityIdentitiesPermissionRolesPairResponse + isSet bool +} + +func (v NullableModelsSecurityIdentitiesPermissionRolesPairResponse) Get() *ModelsSecurityIdentitiesPermissionRolesPairResponse { + return v.value +} + +func (v *NullableModelsSecurityIdentitiesPermissionRolesPairResponse) Set(val *ModelsSecurityIdentitiesPermissionRolesPairResponse) { + v.value = val + v.isSet = true +} + +func (v NullableModelsSecurityIdentitiesPermissionRolesPairResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsSecurityIdentitiesPermissionRolesPairResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsSecurityIdentitiesPermissionRolesPairResponse(val *ModelsSecurityIdentitiesPermissionRolesPairResponse) *NullableModelsSecurityIdentitiesPermissionRolesPairResponse { + return &NullableModelsSecurityIdentitiesPermissionRolesPairResponse{value: val, isSet: true} +} + +func (v NullableModelsSecurityIdentitiesPermissionRolesPairResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsSecurityIdentitiesPermissionRolesPairResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_security_identities_security_identity_identifier.go b/v1/api/keyfactor/model_models_security_identities_security_identity_identifier.go new file mode 100644 index 0000000..3d17952 --- /dev/null +++ b/v1/api/keyfactor/model_models_security_identities_security_identity_identifier.go @@ -0,0 +1,197 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsSecurityIdentitiesSecurityIdentityIdentifier type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsSecurityIdentitiesSecurityIdentityIdentifier{} + +// ModelsSecurityIdentitiesSecurityIdentityIdentifier Model for looking up a security identity +type ModelsSecurityIdentitiesSecurityIdentityIdentifier struct { + // The username of the security identity. + AccountName *string `json:"AccountName,omitempty"` + // The SID of the security identity. + SID *string `json:"SID,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsSecurityIdentitiesSecurityIdentityIdentifier ModelsSecurityIdentitiesSecurityIdentityIdentifier + +// NewModelsSecurityIdentitiesSecurityIdentityIdentifier instantiates a new ModelsSecurityIdentitiesSecurityIdentityIdentifier object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsSecurityIdentitiesSecurityIdentityIdentifier() *ModelsSecurityIdentitiesSecurityIdentityIdentifier { + this := ModelsSecurityIdentitiesSecurityIdentityIdentifier{} + return &this +} + +// NewModelsSecurityIdentitiesSecurityIdentityIdentifierWithDefaults instantiates a new ModelsSecurityIdentitiesSecurityIdentityIdentifier object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsSecurityIdentitiesSecurityIdentityIdentifierWithDefaults() *ModelsSecurityIdentitiesSecurityIdentityIdentifier { + this := ModelsSecurityIdentitiesSecurityIdentityIdentifier{} + return &this +} + +// GetAccountName returns the AccountName field value if set, zero value otherwise. +func (o *ModelsSecurityIdentitiesSecurityIdentityIdentifier) GetAccountName() string { + if o == nil || isNil(o.AccountName) { + var ret string + return ret + } + return *o.AccountName +} + +// GetAccountNameOk returns a tuple with the AccountName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSecurityIdentitiesSecurityIdentityIdentifier) GetAccountNameOk() (*string, bool) { + if o == nil || isNil(o.AccountName) { + return nil, false + } + return o.AccountName, true +} + +// HasAccountName returns a boolean if a field has been set. +func (o *ModelsSecurityIdentitiesSecurityIdentityIdentifier) HasAccountName() bool { + if o != nil && !isNil(o.AccountName) { + return true + } + + return false +} + +// SetAccountName gets a reference to the given string and assigns it to the AccountName field. +func (o *ModelsSecurityIdentitiesSecurityIdentityIdentifier) SetAccountName(v string) { + o.AccountName = &v +} + +// GetSID returns the SID field value if set, zero value otherwise. +func (o *ModelsSecurityIdentitiesSecurityIdentityIdentifier) GetSID() string { + if o == nil || isNil(o.SID) { + var ret string + return ret + } + return *o.SID +} + +// GetSIDOk returns a tuple with the SID field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSecurityIdentitiesSecurityIdentityIdentifier) GetSIDOk() (*string, bool) { + if o == nil || isNil(o.SID) { + return nil, false + } + return o.SID, true +} + +// HasSID returns a boolean if a field has been set. +func (o *ModelsSecurityIdentitiesSecurityIdentityIdentifier) HasSID() bool { + if o != nil && !isNil(o.SID) { + return true + } + + return false +} + +// SetSID gets a reference to the given string and assigns it to the SID field. +func (o *ModelsSecurityIdentitiesSecurityIdentityIdentifier) SetSID(v string) { + o.SID = &v +} + +func (o ModelsSecurityIdentitiesSecurityIdentityIdentifier) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsSecurityIdentitiesSecurityIdentityIdentifier) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.AccountName) { + toSerialize["AccountName"] = o.AccountName + } + if !isNil(o.SID) { + toSerialize["SID"] = o.SID + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsSecurityIdentitiesSecurityIdentityIdentifier) UnmarshalJSON(bytes []byte) (err error) { + varModelsSecurityIdentitiesSecurityIdentityIdentifier := _ModelsSecurityIdentitiesSecurityIdentityIdentifier{} + + if err = json.Unmarshal(bytes, &varModelsSecurityIdentitiesSecurityIdentityIdentifier); err == nil { + *o = ModelsSecurityIdentitiesSecurityIdentityIdentifier(varModelsSecurityIdentitiesSecurityIdentityIdentifier) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "AccountName") + delete(additionalProperties, "SID") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsSecurityIdentitiesSecurityIdentityIdentifier struct { + value *ModelsSecurityIdentitiesSecurityIdentityIdentifier + isSet bool +} + +func (v NullableModelsSecurityIdentitiesSecurityIdentityIdentifier) Get() *ModelsSecurityIdentitiesSecurityIdentityIdentifier { + return v.value +} + +func (v *NullableModelsSecurityIdentitiesSecurityIdentityIdentifier) Set(val *ModelsSecurityIdentitiesSecurityIdentityIdentifier) { + v.value = val + v.isSet = true +} + +func (v NullableModelsSecurityIdentitiesSecurityIdentityIdentifier) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsSecurityIdentitiesSecurityIdentityIdentifier) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsSecurityIdentitiesSecurityIdentityIdentifier(val *ModelsSecurityIdentitiesSecurityIdentityIdentifier) *NullableModelsSecurityIdentitiesSecurityIdentityIdentifier { + return &NullableModelsSecurityIdentitiesSecurityIdentityIdentifier{value: val, isSet: true} +} + +func (v NullableModelsSecurityIdentitiesSecurityIdentityIdentifier) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsSecurityIdentitiesSecurityIdentityIdentifier) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_security_identities_security_identity_lookup_response.go b/v1/api/keyfactor/model_models_security_identities_security_identity_lookup_response.go new file mode 100644 index 0000000..b0a8bdb --- /dev/null +++ b/v1/api/keyfactor/model_models_security_identities_security_identity_lookup_response.go @@ -0,0 +1,159 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsSecurityIdentitiesSecurityIdentityLookupResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsSecurityIdentitiesSecurityIdentityLookupResponse{} + +// ModelsSecurityIdentitiesSecurityIdentityLookupResponse A public DTO representing the result of a security identity lookup. +type ModelsSecurityIdentitiesSecurityIdentityLookupResponse struct { + // Whether or not the identity is valid. + Valid *bool `json:"Valid,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsSecurityIdentitiesSecurityIdentityLookupResponse ModelsSecurityIdentitiesSecurityIdentityLookupResponse + +// NewModelsSecurityIdentitiesSecurityIdentityLookupResponse instantiates a new ModelsSecurityIdentitiesSecurityIdentityLookupResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsSecurityIdentitiesSecurityIdentityLookupResponse() *ModelsSecurityIdentitiesSecurityIdentityLookupResponse { + this := ModelsSecurityIdentitiesSecurityIdentityLookupResponse{} + return &this +} + +// NewModelsSecurityIdentitiesSecurityIdentityLookupResponseWithDefaults instantiates a new ModelsSecurityIdentitiesSecurityIdentityLookupResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsSecurityIdentitiesSecurityIdentityLookupResponseWithDefaults() *ModelsSecurityIdentitiesSecurityIdentityLookupResponse { + this := ModelsSecurityIdentitiesSecurityIdentityLookupResponse{} + return &this +} + +// GetValid returns the Valid field value if set, zero value otherwise. +func (o *ModelsSecurityIdentitiesSecurityIdentityLookupResponse) GetValid() bool { + if o == nil || isNil(o.Valid) { + var ret bool + return ret + } + return *o.Valid +} + +// GetValidOk returns a tuple with the Valid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSecurityIdentitiesSecurityIdentityLookupResponse) GetValidOk() (*bool, bool) { + if o == nil || isNil(o.Valid) { + return nil, false + } + return o.Valid, true +} + +// HasValid returns a boolean if a field has been set. +func (o *ModelsSecurityIdentitiesSecurityIdentityLookupResponse) HasValid() bool { + if o != nil && !isNil(o.Valid) { + return true + } + + return false +} + +// SetValid gets a reference to the given bool and assigns it to the Valid field. +func (o *ModelsSecurityIdentitiesSecurityIdentityLookupResponse) SetValid(v bool) { + o.Valid = &v +} + +func (o ModelsSecurityIdentitiesSecurityIdentityLookupResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsSecurityIdentitiesSecurityIdentityLookupResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Valid) { + toSerialize["Valid"] = o.Valid + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsSecurityIdentitiesSecurityIdentityLookupResponse) UnmarshalJSON(bytes []byte) (err error) { + varModelsSecurityIdentitiesSecurityIdentityLookupResponse := _ModelsSecurityIdentitiesSecurityIdentityLookupResponse{} + + if err = json.Unmarshal(bytes, &varModelsSecurityIdentitiesSecurityIdentityLookupResponse); err == nil { + *o = ModelsSecurityIdentitiesSecurityIdentityLookupResponse(varModelsSecurityIdentitiesSecurityIdentityLookupResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Valid") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsSecurityIdentitiesSecurityIdentityLookupResponse struct { + value *ModelsSecurityIdentitiesSecurityIdentityLookupResponse + isSet bool +} + +func (v NullableModelsSecurityIdentitiesSecurityIdentityLookupResponse) Get() *ModelsSecurityIdentitiesSecurityIdentityLookupResponse { + return v.value +} + +func (v *NullableModelsSecurityIdentitiesSecurityIdentityLookupResponse) Set(val *ModelsSecurityIdentitiesSecurityIdentityLookupResponse) { + v.value = val + v.isSet = true +} + +func (v NullableModelsSecurityIdentitiesSecurityIdentityLookupResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsSecurityIdentitiesSecurityIdentityLookupResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsSecurityIdentitiesSecurityIdentityLookupResponse(val *ModelsSecurityIdentitiesSecurityIdentityLookupResponse) *NullableModelsSecurityIdentitiesSecurityIdentityLookupResponse { + return &NullableModelsSecurityIdentitiesSecurityIdentityLookupResponse{value: val, isSet: true} +} + +func (v NullableModelsSecurityIdentitiesSecurityIdentityLookupResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsSecurityIdentitiesSecurityIdentityLookupResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_security_identities_security_identity_permissions_response.go b/v1/api/keyfactor/model_models_security_identities_security_identity_permissions_response.go new file mode 100644 index 0000000..18e3ebd --- /dev/null +++ b/v1/api/keyfactor/model_models_security_identities_security_identity_permissions_response.go @@ -0,0 +1,269 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse{} + +// ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse struct for ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse +type ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse struct { + Identity *string `json:"Identity,omitempty"` + SecuredAreaPermissions []ModelsSecurityIdentitiesPermissionRolesPairResponse `json:"SecuredAreaPermissions,omitempty"` + CollectionPermissions []ModelsSecurityIdentitiesPermissionRolesPairResponse `json:"CollectionPermissions,omitempty"` + ContainerPermissions []ModelsSecurityIdentitiesPermissionRolesPairResponse `json:"ContainerPermissions,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse + +// NewModelsSecurityIdentitiesSecurityIdentityPermissionsResponse instantiates a new ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsSecurityIdentitiesSecurityIdentityPermissionsResponse() *ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse { + this := ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse{} + return &this +} + +// NewModelsSecurityIdentitiesSecurityIdentityPermissionsResponseWithDefaults instantiates a new ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsSecurityIdentitiesSecurityIdentityPermissionsResponseWithDefaults() *ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse { + this := ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse{} + return &this +} + +// GetIdentity returns the Identity field value if set, zero value otherwise. +func (o *ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse) GetIdentity() string { + if o == nil || isNil(o.Identity) { + var ret string + return ret + } + return *o.Identity +} + +// GetIdentityOk returns a tuple with the Identity field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse) GetIdentityOk() (*string, bool) { + if o == nil || isNil(o.Identity) { + return nil, false + } + return o.Identity, true +} + +// HasIdentity returns a boolean if a field has been set. +func (o *ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse) HasIdentity() bool { + if o != nil && !isNil(o.Identity) { + return true + } + + return false +} + +// SetIdentity gets a reference to the given string and assigns it to the Identity field. +func (o *ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse) SetIdentity(v string) { + o.Identity = &v +} + +// GetSecuredAreaPermissions returns the SecuredAreaPermissions field value if set, zero value otherwise. +func (o *ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse) GetSecuredAreaPermissions() []ModelsSecurityIdentitiesPermissionRolesPairResponse { + if o == nil || isNil(o.SecuredAreaPermissions) { + var ret []ModelsSecurityIdentitiesPermissionRolesPairResponse + return ret + } + return o.SecuredAreaPermissions +} + +// GetSecuredAreaPermissionsOk returns a tuple with the SecuredAreaPermissions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse) GetSecuredAreaPermissionsOk() ([]ModelsSecurityIdentitiesPermissionRolesPairResponse, bool) { + if o == nil || isNil(o.SecuredAreaPermissions) { + return nil, false + } + return o.SecuredAreaPermissions, true +} + +// HasSecuredAreaPermissions returns a boolean if a field has been set. +func (o *ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse) HasSecuredAreaPermissions() bool { + if o != nil && !isNil(o.SecuredAreaPermissions) { + return true + } + + return false +} + +// SetSecuredAreaPermissions gets a reference to the given []ModelsSecurityIdentitiesPermissionRolesPairResponse and assigns it to the SecuredAreaPermissions field. +func (o *ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse) SetSecuredAreaPermissions(v []ModelsSecurityIdentitiesPermissionRolesPairResponse) { + o.SecuredAreaPermissions = v +} + +// GetCollectionPermissions returns the CollectionPermissions field value if set, zero value otherwise. +func (o *ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse) GetCollectionPermissions() []ModelsSecurityIdentitiesPermissionRolesPairResponse { + if o == nil || isNil(o.CollectionPermissions) { + var ret []ModelsSecurityIdentitiesPermissionRolesPairResponse + return ret + } + return o.CollectionPermissions +} + +// GetCollectionPermissionsOk returns a tuple with the CollectionPermissions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse) GetCollectionPermissionsOk() ([]ModelsSecurityIdentitiesPermissionRolesPairResponse, bool) { + if o == nil || isNil(o.CollectionPermissions) { + return nil, false + } + return o.CollectionPermissions, true +} + +// HasCollectionPermissions returns a boolean if a field has been set. +func (o *ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse) HasCollectionPermissions() bool { + if o != nil && !isNil(o.CollectionPermissions) { + return true + } + + return false +} + +// SetCollectionPermissions gets a reference to the given []ModelsSecurityIdentitiesPermissionRolesPairResponse and assigns it to the CollectionPermissions field. +func (o *ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse) SetCollectionPermissions(v []ModelsSecurityIdentitiesPermissionRolesPairResponse) { + o.CollectionPermissions = v +} + +// GetContainerPermissions returns the ContainerPermissions field value if set, zero value otherwise. +func (o *ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse) GetContainerPermissions() []ModelsSecurityIdentitiesPermissionRolesPairResponse { + if o == nil || isNil(o.ContainerPermissions) { + var ret []ModelsSecurityIdentitiesPermissionRolesPairResponse + return ret + } + return o.ContainerPermissions +} + +// GetContainerPermissionsOk returns a tuple with the ContainerPermissions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse) GetContainerPermissionsOk() ([]ModelsSecurityIdentitiesPermissionRolesPairResponse, bool) { + if o == nil || isNil(o.ContainerPermissions) { + return nil, false + } + return o.ContainerPermissions, true +} + +// HasContainerPermissions returns a boolean if a field has been set. +func (o *ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse) HasContainerPermissions() bool { + if o != nil && !isNil(o.ContainerPermissions) { + return true + } + + return false +} + +// SetContainerPermissions gets a reference to the given []ModelsSecurityIdentitiesPermissionRolesPairResponse and assigns it to the ContainerPermissions field. +func (o *ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse) SetContainerPermissions(v []ModelsSecurityIdentitiesPermissionRolesPairResponse) { + o.ContainerPermissions = v +} + +func (o ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Identity) { + toSerialize["Identity"] = o.Identity + } + if !isNil(o.SecuredAreaPermissions) { + toSerialize["SecuredAreaPermissions"] = o.SecuredAreaPermissions + } + if !isNil(o.CollectionPermissions) { + toSerialize["CollectionPermissions"] = o.CollectionPermissions + } + if !isNil(o.ContainerPermissions) { + toSerialize["ContainerPermissions"] = o.ContainerPermissions + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse) UnmarshalJSON(bytes []byte) (err error) { + varModelsSecurityIdentitiesSecurityIdentityPermissionsResponse := _ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse{} + + if err = json.Unmarshal(bytes, &varModelsSecurityIdentitiesSecurityIdentityPermissionsResponse); err == nil { + *o = ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse(varModelsSecurityIdentitiesSecurityIdentityPermissionsResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Identity") + delete(additionalProperties, "SecuredAreaPermissions") + delete(additionalProperties, "CollectionPermissions") + delete(additionalProperties, "ContainerPermissions") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsSecurityIdentitiesSecurityIdentityPermissionsResponse struct { + value *ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse + isSet bool +} + +func (v NullableModelsSecurityIdentitiesSecurityIdentityPermissionsResponse) Get() *ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse { + return v.value +} + +func (v *NullableModelsSecurityIdentitiesSecurityIdentityPermissionsResponse) Set(val *ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse) { + v.value = val + v.isSet = true +} + +func (v NullableModelsSecurityIdentitiesSecurityIdentityPermissionsResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsSecurityIdentitiesSecurityIdentityPermissionsResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsSecurityIdentitiesSecurityIdentityPermissionsResponse(val *ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse) *NullableModelsSecurityIdentitiesSecurityIdentityPermissionsResponse { + return &NullableModelsSecurityIdentitiesSecurityIdentityPermissionsResponse{value: val, isSet: true} +} + +func (v NullableModelsSecurityIdentitiesSecurityIdentityPermissionsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsSecurityIdentitiesSecurityIdentityPermissionsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_security_identities_security_identity_request.go b/v1/api/keyfactor/model_models_security_identities_security_identity_request.go new file mode 100644 index 0000000..ba091af --- /dev/null +++ b/v1/api/keyfactor/model_models_security_identities_security_identity_request.go @@ -0,0 +1,150 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsSecurityIdentitiesSecurityIdentityRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsSecurityIdentitiesSecurityIdentityRequest{} + +// ModelsSecurityIdentitiesSecurityIdentityRequest Model for requesting a security identity. +type ModelsSecurityIdentitiesSecurityIdentityRequest struct { + // The username of the security identity. + AccountName string `json:"AccountName"` + AdditionalProperties map[string]interface{} +} + +type _ModelsSecurityIdentitiesSecurityIdentityRequest ModelsSecurityIdentitiesSecurityIdentityRequest + +// NewModelsSecurityIdentitiesSecurityIdentityRequest instantiates a new ModelsSecurityIdentitiesSecurityIdentityRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsSecurityIdentitiesSecurityIdentityRequest(accountName string) *ModelsSecurityIdentitiesSecurityIdentityRequest { + this := ModelsSecurityIdentitiesSecurityIdentityRequest{} + this.AccountName = accountName + return &this +} + +// NewModelsSecurityIdentitiesSecurityIdentityRequestWithDefaults instantiates a new ModelsSecurityIdentitiesSecurityIdentityRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsSecurityIdentitiesSecurityIdentityRequestWithDefaults() *ModelsSecurityIdentitiesSecurityIdentityRequest { + this := ModelsSecurityIdentitiesSecurityIdentityRequest{} + return &this +} + +// GetAccountName returns the AccountName field value +func (o *ModelsSecurityIdentitiesSecurityIdentityRequest) GetAccountName() string { + if o == nil { + var ret string + return ret + } + + return o.AccountName +} + +// GetAccountNameOk returns a tuple with the AccountName field value +// and a boolean to check if the value has been set. +func (o *ModelsSecurityIdentitiesSecurityIdentityRequest) GetAccountNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AccountName, true +} + +// SetAccountName sets field value +func (o *ModelsSecurityIdentitiesSecurityIdentityRequest) SetAccountName(v string) { + o.AccountName = v +} + +func (o ModelsSecurityIdentitiesSecurityIdentityRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsSecurityIdentitiesSecurityIdentityRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["AccountName"] = o.AccountName + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsSecurityIdentitiesSecurityIdentityRequest) UnmarshalJSON(bytes []byte) (err error) { + varModelsSecurityIdentitiesSecurityIdentityRequest := _ModelsSecurityIdentitiesSecurityIdentityRequest{} + + if err = json.Unmarshal(bytes, &varModelsSecurityIdentitiesSecurityIdentityRequest); err == nil { + *o = ModelsSecurityIdentitiesSecurityIdentityRequest(varModelsSecurityIdentitiesSecurityIdentityRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "AccountName") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsSecurityIdentitiesSecurityIdentityRequest struct { + value *ModelsSecurityIdentitiesSecurityIdentityRequest + isSet bool +} + +func (v NullableModelsSecurityIdentitiesSecurityIdentityRequest) Get() *ModelsSecurityIdentitiesSecurityIdentityRequest { + return v.value +} + +func (v *NullableModelsSecurityIdentitiesSecurityIdentityRequest) Set(val *ModelsSecurityIdentitiesSecurityIdentityRequest) { + v.value = val + v.isSet = true +} + +func (v NullableModelsSecurityIdentitiesSecurityIdentityRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsSecurityIdentitiesSecurityIdentityRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsSecurityIdentitiesSecurityIdentityRequest(val *ModelsSecurityIdentitiesSecurityIdentityRequest) *NullableModelsSecurityIdentitiesSecurityIdentityRequest { + return &NullableModelsSecurityIdentitiesSecurityIdentityRequest{value: val, isSet: true} +} + +func (v NullableModelsSecurityIdentitiesSecurityIdentityRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsSecurityIdentitiesSecurityIdentityRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_security_security_roles_security_role_creation_request.go b/v1/api/keyfactor/model_models_security_security_roles_security_role_creation_request.go new file mode 100644 index 0000000..c02ca40 --- /dev/null +++ b/v1/api/keyfactor/model_models_security_security_roles_security_role_creation_request.go @@ -0,0 +1,331 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsSecuritySecurityRolesSecurityRoleCreationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsSecuritySecurityRolesSecurityRoleCreationRequest{} + +// ModelsSecuritySecurityRolesSecurityRoleCreationRequest struct for ModelsSecuritySecurityRolesSecurityRoleCreationRequest +type ModelsSecuritySecurityRolesSecurityRoleCreationRequest struct { + // The name of the security role to create + Name string `json:"Name"` + // The description to be used on the created security role + Description string `json:"Description"` + // Whether or not the security role should be enabled + Enabled *bool `json:"Enabled,omitempty"` + // Whether or not the security role should be private + Private *bool `json:"Private,omitempty"` + // The permissions to include in the role. These must be supplied in the format \"Area:Permission\" + Permissions []string `json:"Permissions,omitempty"` + // The Keyfactor identities to assign to the created role + Identities []ModelsSecurityIdentitiesSecurityIdentityIdentifier `json:"Identities,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsSecuritySecurityRolesSecurityRoleCreationRequest ModelsSecuritySecurityRolesSecurityRoleCreationRequest + +// NewModelsSecuritySecurityRolesSecurityRoleCreationRequest instantiates a new ModelsSecuritySecurityRolesSecurityRoleCreationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsSecuritySecurityRolesSecurityRoleCreationRequest(name string, description string) *ModelsSecuritySecurityRolesSecurityRoleCreationRequest { + this := ModelsSecuritySecurityRolesSecurityRoleCreationRequest{} + this.Name = name + this.Description = description + return &this +} + +// NewModelsSecuritySecurityRolesSecurityRoleCreationRequestWithDefaults instantiates a new ModelsSecuritySecurityRolesSecurityRoleCreationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsSecuritySecurityRolesSecurityRoleCreationRequestWithDefaults() *ModelsSecuritySecurityRolesSecurityRoleCreationRequest { + this := ModelsSecuritySecurityRolesSecurityRoleCreationRequest{} + return &this +} + +// GetName returns the Name field value +func (o *ModelsSecuritySecurityRolesSecurityRoleCreationRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ModelsSecuritySecurityRolesSecurityRoleCreationRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ModelsSecuritySecurityRolesSecurityRoleCreationRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value +func (o *ModelsSecuritySecurityRolesSecurityRoleCreationRequest) GetDescription() string { + if o == nil { + var ret string + return ret + } + + return o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +func (o *ModelsSecuritySecurityRolesSecurityRoleCreationRequest) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Description, true +} + +// SetDescription sets field value +func (o *ModelsSecuritySecurityRolesSecurityRoleCreationRequest) SetDescription(v string) { + o.Description = v +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *ModelsSecuritySecurityRolesSecurityRoleCreationRequest) GetEnabled() bool { + if o == nil || isNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSecuritySecurityRolesSecurityRoleCreationRequest) GetEnabledOk() (*bool, bool) { + if o == nil || isNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *ModelsSecuritySecurityRolesSecurityRoleCreationRequest) HasEnabled() bool { + if o != nil && !isNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *ModelsSecuritySecurityRolesSecurityRoleCreationRequest) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetPrivate returns the Private field value if set, zero value otherwise. +func (o *ModelsSecuritySecurityRolesSecurityRoleCreationRequest) GetPrivate() bool { + if o == nil || isNil(o.Private) { + var ret bool + return ret + } + return *o.Private +} + +// GetPrivateOk returns a tuple with the Private field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSecuritySecurityRolesSecurityRoleCreationRequest) GetPrivateOk() (*bool, bool) { + if o == nil || isNil(o.Private) { + return nil, false + } + return o.Private, true +} + +// HasPrivate returns a boolean if a field has been set. +func (o *ModelsSecuritySecurityRolesSecurityRoleCreationRequest) HasPrivate() bool { + if o != nil && !isNil(o.Private) { + return true + } + + return false +} + +// SetPrivate gets a reference to the given bool and assigns it to the Private field. +func (o *ModelsSecuritySecurityRolesSecurityRoleCreationRequest) SetPrivate(v bool) { + o.Private = &v +} + +// GetPermissions returns the Permissions field value if set, zero value otherwise. +func (o *ModelsSecuritySecurityRolesSecurityRoleCreationRequest) GetPermissions() []string { + if o == nil || isNil(o.Permissions) { + var ret []string + return ret + } + return o.Permissions +} + +// GetPermissionsOk returns a tuple with the Permissions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSecuritySecurityRolesSecurityRoleCreationRequest) GetPermissionsOk() ([]string, bool) { + if o == nil || isNil(o.Permissions) { + return nil, false + } + return o.Permissions, true +} + +// HasPermissions returns a boolean if a field has been set. +func (o *ModelsSecuritySecurityRolesSecurityRoleCreationRequest) HasPermissions() bool { + if o != nil && !isNil(o.Permissions) { + return true + } + + return false +} + +// SetPermissions gets a reference to the given []string and assigns it to the Permissions field. +func (o *ModelsSecuritySecurityRolesSecurityRoleCreationRequest) SetPermissions(v []string) { + o.Permissions = v +} + +// GetIdentities returns the Identities field value if set, zero value otherwise. +func (o *ModelsSecuritySecurityRolesSecurityRoleCreationRequest) GetIdentities() []ModelsSecurityIdentitiesSecurityIdentityIdentifier { + if o == nil || isNil(o.Identities) { + var ret []ModelsSecurityIdentitiesSecurityIdentityIdentifier + return ret + } + return o.Identities +} + +// GetIdentitiesOk returns a tuple with the Identities field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSecuritySecurityRolesSecurityRoleCreationRequest) GetIdentitiesOk() ([]ModelsSecurityIdentitiesSecurityIdentityIdentifier, bool) { + if o == nil || isNil(o.Identities) { + return nil, false + } + return o.Identities, true +} + +// HasIdentities returns a boolean if a field has been set. +func (o *ModelsSecuritySecurityRolesSecurityRoleCreationRequest) HasIdentities() bool { + if o != nil && !isNil(o.Identities) { + return true + } + + return false +} + +// SetIdentities gets a reference to the given []ModelsSecurityIdentitiesSecurityIdentityIdentifier and assigns it to the Identities field. +func (o *ModelsSecuritySecurityRolesSecurityRoleCreationRequest) SetIdentities(v []ModelsSecurityIdentitiesSecurityIdentityIdentifier) { + o.Identities = v +} + +func (o ModelsSecuritySecurityRolesSecurityRoleCreationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsSecuritySecurityRolesSecurityRoleCreationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Name"] = o.Name + toSerialize["Description"] = o.Description + if !isNil(o.Enabled) { + toSerialize["Enabled"] = o.Enabled + } + if !isNil(o.Private) { + toSerialize["Private"] = o.Private + } + if !isNil(o.Permissions) { + toSerialize["Permissions"] = o.Permissions + } + if !isNil(o.Identities) { + toSerialize["Identities"] = o.Identities + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsSecuritySecurityRolesSecurityRoleCreationRequest) UnmarshalJSON(bytes []byte) (err error) { + varModelsSecuritySecurityRolesSecurityRoleCreationRequest := _ModelsSecuritySecurityRolesSecurityRoleCreationRequest{} + + if err = json.Unmarshal(bytes, &varModelsSecuritySecurityRolesSecurityRoleCreationRequest); err == nil { + *o = ModelsSecuritySecurityRolesSecurityRoleCreationRequest(varModelsSecuritySecurityRolesSecurityRoleCreationRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Name") + delete(additionalProperties, "Description") + delete(additionalProperties, "Enabled") + delete(additionalProperties, "Private") + delete(additionalProperties, "Permissions") + delete(additionalProperties, "Identities") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsSecuritySecurityRolesSecurityRoleCreationRequest struct { + value *ModelsSecuritySecurityRolesSecurityRoleCreationRequest + isSet bool +} + +func (v NullableModelsSecuritySecurityRolesSecurityRoleCreationRequest) Get() *ModelsSecuritySecurityRolesSecurityRoleCreationRequest { + return v.value +} + +func (v *NullableModelsSecuritySecurityRolesSecurityRoleCreationRequest) Set(val *ModelsSecuritySecurityRolesSecurityRoleCreationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableModelsSecuritySecurityRolesSecurityRoleCreationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsSecuritySecurityRolesSecurityRoleCreationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsSecuritySecurityRolesSecurityRoleCreationRequest(val *ModelsSecuritySecurityRolesSecurityRoleCreationRequest) *NullableModelsSecuritySecurityRolesSecurityRoleCreationRequest { + return &NullableModelsSecuritySecurityRolesSecurityRoleCreationRequest{value: val, isSet: true} +} + +func (v NullableModelsSecuritySecurityRolesSecurityRoleCreationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsSecuritySecurityRolesSecurityRoleCreationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_security_security_roles_security_role_response_base.go b/v1/api/keyfactor/model_models_security_security_roles_security_role_response_base.go new file mode 100644 index 0000000..0442737 --- /dev/null +++ b/v1/api/keyfactor/model_models_security_security_roles_security_role_response_base.go @@ -0,0 +1,197 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsSecuritySecurityRolesSecurityRoleResponseBase type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsSecuritySecurityRolesSecurityRoleResponseBase{} + +// ModelsSecuritySecurityRolesSecurityRoleResponseBase struct for ModelsSecuritySecurityRolesSecurityRoleResponseBase +type ModelsSecuritySecurityRolesSecurityRoleResponseBase struct { + // The name of the created role + Name *string `json:"Name,omitempty"` + // The permissions included in the created security role + Permissions []string `json:"Permissions,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsSecuritySecurityRolesSecurityRoleResponseBase ModelsSecuritySecurityRolesSecurityRoleResponseBase + +// NewModelsSecuritySecurityRolesSecurityRoleResponseBase instantiates a new ModelsSecuritySecurityRolesSecurityRoleResponseBase object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsSecuritySecurityRolesSecurityRoleResponseBase() *ModelsSecuritySecurityRolesSecurityRoleResponseBase { + this := ModelsSecuritySecurityRolesSecurityRoleResponseBase{} + return &this +} + +// NewModelsSecuritySecurityRolesSecurityRoleResponseBaseWithDefaults instantiates a new ModelsSecuritySecurityRolesSecurityRoleResponseBase object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsSecuritySecurityRolesSecurityRoleResponseBaseWithDefaults() *ModelsSecuritySecurityRolesSecurityRoleResponseBase { + this := ModelsSecuritySecurityRolesSecurityRoleResponseBase{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ModelsSecuritySecurityRolesSecurityRoleResponseBase) GetName() string { + if o == nil || isNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSecuritySecurityRolesSecurityRoleResponseBase) GetNameOk() (*string, bool) { + if o == nil || isNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ModelsSecuritySecurityRolesSecurityRoleResponseBase) HasName() bool { + if o != nil && !isNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ModelsSecuritySecurityRolesSecurityRoleResponseBase) SetName(v string) { + o.Name = &v +} + +// GetPermissions returns the Permissions field value if set, zero value otherwise. +func (o *ModelsSecuritySecurityRolesSecurityRoleResponseBase) GetPermissions() []string { + if o == nil || isNil(o.Permissions) { + var ret []string + return ret + } + return o.Permissions +} + +// GetPermissionsOk returns a tuple with the Permissions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSecuritySecurityRolesSecurityRoleResponseBase) GetPermissionsOk() ([]string, bool) { + if o == nil || isNil(o.Permissions) { + return nil, false + } + return o.Permissions, true +} + +// HasPermissions returns a boolean if a field has been set. +func (o *ModelsSecuritySecurityRolesSecurityRoleResponseBase) HasPermissions() bool { + if o != nil && !isNil(o.Permissions) { + return true + } + + return false +} + +// SetPermissions gets a reference to the given []string and assigns it to the Permissions field. +func (o *ModelsSecuritySecurityRolesSecurityRoleResponseBase) SetPermissions(v []string) { + o.Permissions = v +} + +func (o ModelsSecuritySecurityRolesSecurityRoleResponseBase) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsSecuritySecurityRolesSecurityRoleResponseBase) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Name) { + toSerialize["Name"] = o.Name + } + if !isNil(o.Permissions) { + toSerialize["Permissions"] = o.Permissions + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsSecuritySecurityRolesSecurityRoleResponseBase) UnmarshalJSON(bytes []byte) (err error) { + varModelsSecuritySecurityRolesSecurityRoleResponseBase := _ModelsSecuritySecurityRolesSecurityRoleResponseBase{} + + if err = json.Unmarshal(bytes, &varModelsSecuritySecurityRolesSecurityRoleResponseBase); err == nil { + *o = ModelsSecuritySecurityRolesSecurityRoleResponseBase(varModelsSecuritySecurityRolesSecurityRoleResponseBase) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Name") + delete(additionalProperties, "Permissions") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsSecuritySecurityRolesSecurityRoleResponseBase struct { + value *ModelsSecuritySecurityRolesSecurityRoleResponseBase + isSet bool +} + +func (v NullableModelsSecuritySecurityRolesSecurityRoleResponseBase) Get() *ModelsSecuritySecurityRolesSecurityRoleResponseBase { + return v.value +} + +func (v *NullableModelsSecuritySecurityRolesSecurityRoleResponseBase) Set(val *ModelsSecuritySecurityRolesSecurityRoleResponseBase) { + v.value = val + v.isSet = true +} + +func (v NullableModelsSecuritySecurityRolesSecurityRoleResponseBase) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsSecuritySecurityRolesSecurityRoleResponseBase) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsSecuritySecurityRolesSecurityRoleResponseBase(val *ModelsSecuritySecurityRolesSecurityRoleResponseBase) *NullableModelsSecuritySecurityRolesSecurityRoleResponseBase { + return &NullableModelsSecuritySecurityRolesSecurityRoleResponseBase{value: val, isSet: true} +} + +func (v NullableModelsSecuritySecurityRolesSecurityRoleResponseBase) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsSecuritySecurityRolesSecurityRoleResponseBase) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_security_security_roles_security_role_update_request.go b/v1/api/keyfactor/model_models_security_security_roles_security_role_update_request.go new file mode 100644 index 0000000..5c7c480 --- /dev/null +++ b/v1/api/keyfactor/model_models_security_security_roles_security_role_update_request.go @@ -0,0 +1,360 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsSecuritySecurityRolesSecurityRoleUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsSecuritySecurityRolesSecurityRoleUpdateRequest{} + +// ModelsSecuritySecurityRolesSecurityRoleUpdateRequest struct for ModelsSecuritySecurityRolesSecurityRoleUpdateRequest +type ModelsSecuritySecurityRolesSecurityRoleUpdateRequest struct { + // The Id of the security role to update + Id int32 `json:"Id"` + // The name of the security role to update + Name string `json:"Name"` + // The description to be used on the updated security role + Description string `json:"Description"` + // Whether or not the security role should be enabled + Enabled *bool `json:"Enabled,omitempty"` + // Whether or not the security role should be private + Private *bool `json:"Private,omitempty"` + // The permissions to include in the role. These must be supplied in the format \"Area:Permission\" + Permissions []string `json:"Permissions,omitempty"` + // The Keyfactor identities to assign to the updated role + Identities []ModelsSecurityIdentitiesSecurityIdentityIdentifier `json:"Identities,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsSecuritySecurityRolesSecurityRoleUpdateRequest ModelsSecuritySecurityRolesSecurityRoleUpdateRequest + +// NewModelsSecuritySecurityRolesSecurityRoleUpdateRequest instantiates a new ModelsSecuritySecurityRolesSecurityRoleUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsSecuritySecurityRolesSecurityRoleUpdateRequest(id int32, name string, description string) *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest { + this := ModelsSecuritySecurityRolesSecurityRoleUpdateRequest{} + this.Id = id + this.Name = name + this.Description = description + return &this +} + +// NewModelsSecuritySecurityRolesSecurityRoleUpdateRequestWithDefaults instantiates a new ModelsSecuritySecurityRolesSecurityRoleUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsSecuritySecurityRolesSecurityRoleUpdateRequestWithDefaults() *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest { + this := ModelsSecuritySecurityRolesSecurityRoleUpdateRequest{} + return &this +} + +// GetId returns the Id field value +func (o *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) SetId(v int32) { + o.Id = v +} + +// GetName returns the Name field value +func (o *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value +func (o *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) GetDescription() string { + if o == nil { + var ret string + return ret + } + + return o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +func (o *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Description, true +} + +// SetDescription sets field value +func (o *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) SetDescription(v string) { + o.Description = v +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) GetEnabled() bool { + if o == nil || isNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) GetEnabledOk() (*bool, bool) { + if o == nil || isNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) HasEnabled() bool { + if o != nil && !isNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetPrivate returns the Private field value if set, zero value otherwise. +func (o *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) GetPrivate() bool { + if o == nil || isNil(o.Private) { + var ret bool + return ret + } + return *o.Private +} + +// GetPrivateOk returns a tuple with the Private field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) GetPrivateOk() (*bool, bool) { + if o == nil || isNil(o.Private) { + return nil, false + } + return o.Private, true +} + +// HasPrivate returns a boolean if a field has been set. +func (o *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) HasPrivate() bool { + if o != nil && !isNil(o.Private) { + return true + } + + return false +} + +// SetPrivate gets a reference to the given bool and assigns it to the Private field. +func (o *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) SetPrivate(v bool) { + o.Private = &v +} + +// GetPermissions returns the Permissions field value if set, zero value otherwise. +func (o *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) GetPermissions() []string { + if o == nil || isNil(o.Permissions) { + var ret []string + return ret + } + return o.Permissions +} + +// GetPermissionsOk returns a tuple with the Permissions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) GetPermissionsOk() ([]string, bool) { + if o == nil || isNil(o.Permissions) { + return nil, false + } + return o.Permissions, true +} + +// HasPermissions returns a boolean if a field has been set. +func (o *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) HasPermissions() bool { + if o != nil && !isNil(o.Permissions) { + return true + } + + return false +} + +// SetPermissions gets a reference to the given []string and assigns it to the Permissions field. +func (o *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) SetPermissions(v []string) { + o.Permissions = v +} + +// GetIdentities returns the Identities field value if set, zero value otherwise. +func (o *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) GetIdentities() []ModelsSecurityIdentitiesSecurityIdentityIdentifier { + if o == nil || isNil(o.Identities) { + var ret []ModelsSecurityIdentitiesSecurityIdentityIdentifier + return ret + } + return o.Identities +} + +// GetIdentitiesOk returns a tuple with the Identities field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) GetIdentitiesOk() ([]ModelsSecurityIdentitiesSecurityIdentityIdentifier, bool) { + if o == nil || isNil(o.Identities) { + return nil, false + } + return o.Identities, true +} + +// HasIdentities returns a boolean if a field has been set. +func (o *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) HasIdentities() bool { + if o != nil && !isNil(o.Identities) { + return true + } + + return false +} + +// SetIdentities gets a reference to the given []ModelsSecurityIdentitiesSecurityIdentityIdentifier and assigns it to the Identities field. +func (o *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) SetIdentities(v []ModelsSecurityIdentitiesSecurityIdentityIdentifier) { + o.Identities = v +} + +func (o ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Id"] = o.Id + toSerialize["Name"] = o.Name + toSerialize["Description"] = o.Description + if !isNil(o.Enabled) { + toSerialize["Enabled"] = o.Enabled + } + if !isNil(o.Private) { + toSerialize["Private"] = o.Private + } + if !isNil(o.Permissions) { + toSerialize["Permissions"] = o.Permissions + } + if !isNil(o.Identities) { + toSerialize["Identities"] = o.Identities + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) UnmarshalJSON(bytes []byte) (err error) { + varModelsSecuritySecurityRolesSecurityRoleUpdateRequest := _ModelsSecuritySecurityRolesSecurityRoleUpdateRequest{} + + if err = json.Unmarshal(bytes, &varModelsSecuritySecurityRolesSecurityRoleUpdateRequest); err == nil { + *o = ModelsSecuritySecurityRolesSecurityRoleUpdateRequest(varModelsSecuritySecurityRolesSecurityRoleUpdateRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "Name") + delete(additionalProperties, "Description") + delete(additionalProperties, "Enabled") + delete(additionalProperties, "Private") + delete(additionalProperties, "Permissions") + delete(additionalProperties, "Identities") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsSecuritySecurityRolesSecurityRoleUpdateRequest struct { + value *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest + isSet bool +} + +func (v NullableModelsSecuritySecurityRolesSecurityRoleUpdateRequest) Get() *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest { + return v.value +} + +func (v *NullableModelsSecuritySecurityRolesSecurityRoleUpdateRequest) Set(val *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableModelsSecuritySecurityRolesSecurityRoleUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsSecuritySecurityRolesSecurityRoleUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsSecuritySecurityRolesSecurityRoleUpdateRequest(val *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) *NullableModelsSecuritySecurityRolesSecurityRoleUpdateRequest { + return &NullableModelsSecuritySecurityRolesSecurityRoleUpdateRequest{value: val, isSet: true} +} + +func (v NullableModelsSecuritySecurityRolesSecurityRoleUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsSecuritySecurityRolesSecurityRoleUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_ssh_access_logon_user_access_request.go b/v1/api/keyfactor/model_models_ssh_access_logon_user_access_request.go new file mode 100644 index 0000000..8a5d90d --- /dev/null +++ b/v1/api/keyfactor/model_models_ssh_access_logon_user_access_request.go @@ -0,0 +1,195 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsSSHAccessLogonUserAccessRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsSSHAccessLogonUserAccessRequest{} + +// ModelsSSHAccessLogonUserAccessRequest struct for ModelsSSHAccessLogonUserAccessRequest +type ModelsSSHAccessLogonUserAccessRequest struct { + LogonName *string `json:"LogonName,omitempty"` + Users []string `json:"Users,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsSSHAccessLogonUserAccessRequest ModelsSSHAccessLogonUserAccessRequest + +// NewModelsSSHAccessLogonUserAccessRequest instantiates a new ModelsSSHAccessLogonUserAccessRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsSSHAccessLogonUserAccessRequest() *ModelsSSHAccessLogonUserAccessRequest { + this := ModelsSSHAccessLogonUserAccessRequest{} + return &this +} + +// NewModelsSSHAccessLogonUserAccessRequestWithDefaults instantiates a new ModelsSSHAccessLogonUserAccessRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsSSHAccessLogonUserAccessRequestWithDefaults() *ModelsSSHAccessLogonUserAccessRequest { + this := ModelsSSHAccessLogonUserAccessRequest{} + return &this +} + +// GetLogonName returns the LogonName field value if set, zero value otherwise. +func (o *ModelsSSHAccessLogonUserAccessRequest) GetLogonName() string { + if o == nil || isNil(o.LogonName) { + var ret string + return ret + } + return *o.LogonName +} + +// GetLogonNameOk returns a tuple with the LogonName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHAccessLogonUserAccessRequest) GetLogonNameOk() (*string, bool) { + if o == nil || isNil(o.LogonName) { + return nil, false + } + return o.LogonName, true +} + +// HasLogonName returns a boolean if a field has been set. +func (o *ModelsSSHAccessLogonUserAccessRequest) HasLogonName() bool { + if o != nil && !isNil(o.LogonName) { + return true + } + + return false +} + +// SetLogonName gets a reference to the given string and assigns it to the LogonName field. +func (o *ModelsSSHAccessLogonUserAccessRequest) SetLogonName(v string) { + o.LogonName = &v +} + +// GetUsers returns the Users field value if set, zero value otherwise. +func (o *ModelsSSHAccessLogonUserAccessRequest) GetUsers() []string { + if o == nil || isNil(o.Users) { + var ret []string + return ret + } + return o.Users +} + +// GetUsersOk returns a tuple with the Users field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHAccessLogonUserAccessRequest) GetUsersOk() ([]string, bool) { + if o == nil || isNil(o.Users) { + return nil, false + } + return o.Users, true +} + +// HasUsers returns a boolean if a field has been set. +func (o *ModelsSSHAccessLogonUserAccessRequest) HasUsers() bool { + if o != nil && !isNil(o.Users) { + return true + } + + return false +} + +// SetUsers gets a reference to the given []string and assigns it to the Users field. +func (o *ModelsSSHAccessLogonUserAccessRequest) SetUsers(v []string) { + o.Users = v +} + +func (o ModelsSSHAccessLogonUserAccessRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsSSHAccessLogonUserAccessRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.LogonName) { + toSerialize["LogonName"] = o.LogonName + } + if !isNil(o.Users) { + toSerialize["Users"] = o.Users + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsSSHAccessLogonUserAccessRequest) UnmarshalJSON(bytes []byte) (err error) { + varModelsSSHAccessLogonUserAccessRequest := _ModelsSSHAccessLogonUserAccessRequest{} + + if err = json.Unmarshal(bytes, &varModelsSSHAccessLogonUserAccessRequest); err == nil { + *o = ModelsSSHAccessLogonUserAccessRequest(varModelsSSHAccessLogonUserAccessRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "LogonName") + delete(additionalProperties, "Users") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsSSHAccessLogonUserAccessRequest struct { + value *ModelsSSHAccessLogonUserAccessRequest + isSet bool +} + +func (v NullableModelsSSHAccessLogonUserAccessRequest) Get() *ModelsSSHAccessLogonUserAccessRequest { + return v.value +} + +func (v *NullableModelsSSHAccessLogonUserAccessRequest) Set(val *ModelsSSHAccessLogonUserAccessRequest) { + v.value = val + v.isSet = true +} + +func (v NullableModelsSSHAccessLogonUserAccessRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsSSHAccessLogonUserAccessRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsSSHAccessLogonUserAccessRequest(val *ModelsSSHAccessLogonUserAccessRequest) *NullableModelsSSHAccessLogonUserAccessRequest { + return &NullableModelsSSHAccessLogonUserAccessRequest{value: val, isSet: true} +} + +func (v NullableModelsSSHAccessLogonUserAccessRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsSSHAccessLogonUserAccessRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_ssh_access_logon_user_access_response.go b/v1/api/keyfactor/model_models_ssh_access_logon_user_access_response.go new file mode 100644 index 0000000..431732a --- /dev/null +++ b/v1/api/keyfactor/model_models_ssh_access_logon_user_access_response.go @@ -0,0 +1,232 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsSSHAccessLogonUserAccessResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsSSHAccessLogonUserAccessResponse{} + +// ModelsSSHAccessLogonUserAccessResponse struct for ModelsSSHAccessLogonUserAccessResponse +type ModelsSSHAccessLogonUserAccessResponse struct { + LogonId *int32 `json:"LogonId,omitempty"` + LogonName *string `json:"LogonName,omitempty"` + Users []ModelsSSHUsersSshUserResponse `json:"Users,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsSSHAccessLogonUserAccessResponse ModelsSSHAccessLogonUserAccessResponse + +// NewModelsSSHAccessLogonUserAccessResponse instantiates a new ModelsSSHAccessLogonUserAccessResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsSSHAccessLogonUserAccessResponse() *ModelsSSHAccessLogonUserAccessResponse { + this := ModelsSSHAccessLogonUserAccessResponse{} + return &this +} + +// NewModelsSSHAccessLogonUserAccessResponseWithDefaults instantiates a new ModelsSSHAccessLogonUserAccessResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsSSHAccessLogonUserAccessResponseWithDefaults() *ModelsSSHAccessLogonUserAccessResponse { + this := ModelsSSHAccessLogonUserAccessResponse{} + return &this +} + +// GetLogonId returns the LogonId field value if set, zero value otherwise. +func (o *ModelsSSHAccessLogonUserAccessResponse) GetLogonId() int32 { + if o == nil || isNil(o.LogonId) { + var ret int32 + return ret + } + return *o.LogonId +} + +// GetLogonIdOk returns a tuple with the LogonId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHAccessLogonUserAccessResponse) GetLogonIdOk() (*int32, bool) { + if o == nil || isNil(o.LogonId) { + return nil, false + } + return o.LogonId, true +} + +// HasLogonId returns a boolean if a field has been set. +func (o *ModelsSSHAccessLogonUserAccessResponse) HasLogonId() bool { + if o != nil && !isNil(o.LogonId) { + return true + } + + return false +} + +// SetLogonId gets a reference to the given int32 and assigns it to the LogonId field. +func (o *ModelsSSHAccessLogonUserAccessResponse) SetLogonId(v int32) { + o.LogonId = &v +} + +// GetLogonName returns the LogonName field value if set, zero value otherwise. +func (o *ModelsSSHAccessLogonUserAccessResponse) GetLogonName() string { + if o == nil || isNil(o.LogonName) { + var ret string + return ret + } + return *o.LogonName +} + +// GetLogonNameOk returns a tuple with the LogonName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHAccessLogonUserAccessResponse) GetLogonNameOk() (*string, bool) { + if o == nil || isNil(o.LogonName) { + return nil, false + } + return o.LogonName, true +} + +// HasLogonName returns a boolean if a field has been set. +func (o *ModelsSSHAccessLogonUserAccessResponse) HasLogonName() bool { + if o != nil && !isNil(o.LogonName) { + return true + } + + return false +} + +// SetLogonName gets a reference to the given string and assigns it to the LogonName field. +func (o *ModelsSSHAccessLogonUserAccessResponse) SetLogonName(v string) { + o.LogonName = &v +} + +// GetUsers returns the Users field value if set, zero value otherwise. +func (o *ModelsSSHAccessLogonUserAccessResponse) GetUsers() []ModelsSSHUsersSshUserResponse { + if o == nil || isNil(o.Users) { + var ret []ModelsSSHUsersSshUserResponse + return ret + } + return o.Users +} + +// GetUsersOk returns a tuple with the Users field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHAccessLogonUserAccessResponse) GetUsersOk() ([]ModelsSSHUsersSshUserResponse, bool) { + if o == nil || isNil(o.Users) { + return nil, false + } + return o.Users, true +} + +// HasUsers returns a boolean if a field has been set. +func (o *ModelsSSHAccessLogonUserAccessResponse) HasUsers() bool { + if o != nil && !isNil(o.Users) { + return true + } + + return false +} + +// SetUsers gets a reference to the given []ModelsSSHUsersSshUserResponse and assigns it to the Users field. +func (o *ModelsSSHAccessLogonUserAccessResponse) SetUsers(v []ModelsSSHUsersSshUserResponse) { + o.Users = v +} + +func (o ModelsSSHAccessLogonUserAccessResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsSSHAccessLogonUserAccessResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.LogonId) { + toSerialize["LogonId"] = o.LogonId + } + if !isNil(o.LogonName) { + toSerialize["LogonName"] = o.LogonName + } + if !isNil(o.Users) { + toSerialize["Users"] = o.Users + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsSSHAccessLogonUserAccessResponse) UnmarshalJSON(bytes []byte) (err error) { + varModelsSSHAccessLogonUserAccessResponse := _ModelsSSHAccessLogonUserAccessResponse{} + + if err = json.Unmarshal(bytes, &varModelsSSHAccessLogonUserAccessResponse); err == nil { + *o = ModelsSSHAccessLogonUserAccessResponse(varModelsSSHAccessLogonUserAccessResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "LogonId") + delete(additionalProperties, "LogonName") + delete(additionalProperties, "Users") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsSSHAccessLogonUserAccessResponse struct { + value *ModelsSSHAccessLogonUserAccessResponse + isSet bool +} + +func (v NullableModelsSSHAccessLogonUserAccessResponse) Get() *ModelsSSHAccessLogonUserAccessResponse { + return v.value +} + +func (v *NullableModelsSSHAccessLogonUserAccessResponse) Set(val *ModelsSSHAccessLogonUserAccessResponse) { + v.value = val + v.isSet = true +} + +func (v NullableModelsSSHAccessLogonUserAccessResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsSSHAccessLogonUserAccessResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsSSHAccessLogonUserAccessResponse(val *ModelsSSHAccessLogonUserAccessResponse) *NullableModelsSSHAccessLogonUserAccessResponse { + return &NullableModelsSSHAccessLogonUserAccessResponse{value: val, isSet: true} +} + +func (v NullableModelsSSHAccessLogonUserAccessResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsSSHAccessLogonUserAccessResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_ssh_access_server_access_request.go b/v1/api/keyfactor/model_models_ssh_access_server_access_request.go new file mode 100644 index 0000000..d954bae --- /dev/null +++ b/v1/api/keyfactor/model_models_ssh_access_server_access_request.go @@ -0,0 +1,177 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsSSHAccessServerAccessRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsSSHAccessServerAccessRequest{} + +// ModelsSSHAccessServerAccessRequest struct for ModelsSSHAccessServerAccessRequest +type ModelsSSHAccessServerAccessRequest struct { + ServerId int32 `json:"ServerId"` + LogonUsers []ModelsSSHAccessLogonUserAccessRequest `json:"LogonUsers"` + AdditionalProperties map[string]interface{} +} + +type _ModelsSSHAccessServerAccessRequest ModelsSSHAccessServerAccessRequest + +// NewModelsSSHAccessServerAccessRequest instantiates a new ModelsSSHAccessServerAccessRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsSSHAccessServerAccessRequest(serverId int32, logonUsers []ModelsSSHAccessLogonUserAccessRequest) *ModelsSSHAccessServerAccessRequest { + this := ModelsSSHAccessServerAccessRequest{} + this.ServerId = serverId + this.LogonUsers = logonUsers + return &this +} + +// NewModelsSSHAccessServerAccessRequestWithDefaults instantiates a new ModelsSSHAccessServerAccessRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsSSHAccessServerAccessRequestWithDefaults() *ModelsSSHAccessServerAccessRequest { + this := ModelsSSHAccessServerAccessRequest{} + return &this +} + +// GetServerId returns the ServerId field value +func (o *ModelsSSHAccessServerAccessRequest) GetServerId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.ServerId +} + +// GetServerIdOk returns a tuple with the ServerId field value +// and a boolean to check if the value has been set. +func (o *ModelsSSHAccessServerAccessRequest) GetServerIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.ServerId, true +} + +// SetServerId sets field value +func (o *ModelsSSHAccessServerAccessRequest) SetServerId(v int32) { + o.ServerId = v +} + +// GetLogonUsers returns the LogonUsers field value +func (o *ModelsSSHAccessServerAccessRequest) GetLogonUsers() []ModelsSSHAccessLogonUserAccessRequest { + if o == nil { + var ret []ModelsSSHAccessLogonUserAccessRequest + return ret + } + + return o.LogonUsers +} + +// GetLogonUsersOk returns a tuple with the LogonUsers field value +// and a boolean to check if the value has been set. +func (o *ModelsSSHAccessServerAccessRequest) GetLogonUsersOk() ([]ModelsSSHAccessLogonUserAccessRequest, bool) { + if o == nil { + return nil, false + } + return o.LogonUsers, true +} + +// SetLogonUsers sets field value +func (o *ModelsSSHAccessServerAccessRequest) SetLogonUsers(v []ModelsSSHAccessLogonUserAccessRequest) { + o.LogonUsers = v +} + +func (o ModelsSSHAccessServerAccessRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsSSHAccessServerAccessRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["ServerId"] = o.ServerId + toSerialize["LogonUsers"] = o.LogonUsers + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsSSHAccessServerAccessRequest) UnmarshalJSON(bytes []byte) (err error) { + varModelsSSHAccessServerAccessRequest := _ModelsSSHAccessServerAccessRequest{} + + if err = json.Unmarshal(bytes, &varModelsSSHAccessServerAccessRequest); err == nil { + *o = ModelsSSHAccessServerAccessRequest(varModelsSSHAccessServerAccessRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "ServerId") + delete(additionalProperties, "LogonUsers") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsSSHAccessServerAccessRequest struct { + value *ModelsSSHAccessServerAccessRequest + isSet bool +} + +func (v NullableModelsSSHAccessServerAccessRequest) Get() *ModelsSSHAccessServerAccessRequest { + return v.value +} + +func (v *NullableModelsSSHAccessServerAccessRequest) Set(val *ModelsSSHAccessServerAccessRequest) { + v.value = val + v.isSet = true +} + +func (v NullableModelsSSHAccessServerAccessRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsSSHAccessServerAccessRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsSSHAccessServerAccessRequest(val *ModelsSSHAccessServerAccessRequest) *NullableModelsSSHAccessServerAccessRequest { + return &NullableModelsSSHAccessServerAccessRequest{value: val, isSet: true} +} + +func (v NullableModelsSSHAccessServerAccessRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsSSHAccessServerAccessRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_ssh_access_server_access_response.go b/v1/api/keyfactor/model_models_ssh_access_server_access_response.go new file mode 100644 index 0000000..e5bc133 --- /dev/null +++ b/v1/api/keyfactor/model_models_ssh_access_server_access_response.go @@ -0,0 +1,195 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsSSHAccessServerAccessResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsSSHAccessServerAccessResponse{} + +// ModelsSSHAccessServerAccessResponse struct for ModelsSSHAccessServerAccessResponse +type ModelsSSHAccessServerAccessResponse struct { + ServerId *int32 `json:"ServerId,omitempty"` + LogonUsers []ModelsSSHAccessLogonUserAccessResponse `json:"LogonUsers,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsSSHAccessServerAccessResponse ModelsSSHAccessServerAccessResponse + +// NewModelsSSHAccessServerAccessResponse instantiates a new ModelsSSHAccessServerAccessResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsSSHAccessServerAccessResponse() *ModelsSSHAccessServerAccessResponse { + this := ModelsSSHAccessServerAccessResponse{} + return &this +} + +// NewModelsSSHAccessServerAccessResponseWithDefaults instantiates a new ModelsSSHAccessServerAccessResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsSSHAccessServerAccessResponseWithDefaults() *ModelsSSHAccessServerAccessResponse { + this := ModelsSSHAccessServerAccessResponse{} + return &this +} + +// GetServerId returns the ServerId field value if set, zero value otherwise. +func (o *ModelsSSHAccessServerAccessResponse) GetServerId() int32 { + if o == nil || isNil(o.ServerId) { + var ret int32 + return ret + } + return *o.ServerId +} + +// GetServerIdOk returns a tuple with the ServerId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHAccessServerAccessResponse) GetServerIdOk() (*int32, bool) { + if o == nil || isNil(o.ServerId) { + return nil, false + } + return o.ServerId, true +} + +// HasServerId returns a boolean if a field has been set. +func (o *ModelsSSHAccessServerAccessResponse) HasServerId() bool { + if o != nil && !isNil(o.ServerId) { + return true + } + + return false +} + +// SetServerId gets a reference to the given int32 and assigns it to the ServerId field. +func (o *ModelsSSHAccessServerAccessResponse) SetServerId(v int32) { + o.ServerId = &v +} + +// GetLogonUsers returns the LogonUsers field value if set, zero value otherwise. +func (o *ModelsSSHAccessServerAccessResponse) GetLogonUsers() []ModelsSSHAccessLogonUserAccessResponse { + if o == nil || isNil(o.LogonUsers) { + var ret []ModelsSSHAccessLogonUserAccessResponse + return ret + } + return o.LogonUsers +} + +// GetLogonUsersOk returns a tuple with the LogonUsers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHAccessServerAccessResponse) GetLogonUsersOk() ([]ModelsSSHAccessLogonUserAccessResponse, bool) { + if o == nil || isNil(o.LogonUsers) { + return nil, false + } + return o.LogonUsers, true +} + +// HasLogonUsers returns a boolean if a field has been set. +func (o *ModelsSSHAccessServerAccessResponse) HasLogonUsers() bool { + if o != nil && !isNil(o.LogonUsers) { + return true + } + + return false +} + +// SetLogonUsers gets a reference to the given []ModelsSSHAccessLogonUserAccessResponse and assigns it to the LogonUsers field. +func (o *ModelsSSHAccessServerAccessResponse) SetLogonUsers(v []ModelsSSHAccessLogonUserAccessResponse) { + o.LogonUsers = v +} + +func (o ModelsSSHAccessServerAccessResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsSSHAccessServerAccessResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.ServerId) { + toSerialize["ServerId"] = o.ServerId + } + if !isNil(o.LogonUsers) { + toSerialize["LogonUsers"] = o.LogonUsers + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsSSHAccessServerAccessResponse) UnmarshalJSON(bytes []byte) (err error) { + varModelsSSHAccessServerAccessResponse := _ModelsSSHAccessServerAccessResponse{} + + if err = json.Unmarshal(bytes, &varModelsSSHAccessServerAccessResponse); err == nil { + *o = ModelsSSHAccessServerAccessResponse(varModelsSSHAccessServerAccessResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "ServerId") + delete(additionalProperties, "LogonUsers") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsSSHAccessServerAccessResponse struct { + value *ModelsSSHAccessServerAccessResponse + isSet bool +} + +func (v NullableModelsSSHAccessServerAccessResponse) Get() *ModelsSSHAccessServerAccessResponse { + return v.value +} + +func (v *NullableModelsSSHAccessServerAccessResponse) Set(val *ModelsSSHAccessServerAccessResponse) { + v.value = val + v.isSet = true +} + +func (v NullableModelsSSHAccessServerAccessResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsSSHAccessServerAccessResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsSSHAccessServerAccessResponse(val *ModelsSSHAccessServerAccessResponse) *NullableModelsSSHAccessServerAccessResponse { + return &NullableModelsSSHAccessServerAccessResponse{value: val, isSet: true} +} + +func (v NullableModelsSSHAccessServerAccessResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsSSHAccessServerAccessResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_ssh_access_server_group_access_request.go b/v1/api/keyfactor/model_models_ssh_access_server_group_access_request.go new file mode 100644 index 0000000..3b6b617 --- /dev/null +++ b/v1/api/keyfactor/model_models_ssh_access_server_group_access_request.go @@ -0,0 +1,177 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsSSHAccessServerGroupAccessRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsSSHAccessServerGroupAccessRequest{} + +// ModelsSSHAccessServerGroupAccessRequest struct for ModelsSSHAccessServerGroupAccessRequest +type ModelsSSHAccessServerGroupAccessRequest struct { + ServerGroupId string `json:"ServerGroupId"` + LogonUsers []ModelsSSHAccessLogonUserAccessRequest `json:"LogonUsers"` + AdditionalProperties map[string]interface{} +} + +type _ModelsSSHAccessServerGroupAccessRequest ModelsSSHAccessServerGroupAccessRequest + +// NewModelsSSHAccessServerGroupAccessRequest instantiates a new ModelsSSHAccessServerGroupAccessRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsSSHAccessServerGroupAccessRequest(serverGroupId string, logonUsers []ModelsSSHAccessLogonUserAccessRequest) *ModelsSSHAccessServerGroupAccessRequest { + this := ModelsSSHAccessServerGroupAccessRequest{} + this.ServerGroupId = serverGroupId + this.LogonUsers = logonUsers + return &this +} + +// NewModelsSSHAccessServerGroupAccessRequestWithDefaults instantiates a new ModelsSSHAccessServerGroupAccessRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsSSHAccessServerGroupAccessRequestWithDefaults() *ModelsSSHAccessServerGroupAccessRequest { + this := ModelsSSHAccessServerGroupAccessRequest{} + return &this +} + +// GetServerGroupId returns the ServerGroupId field value +func (o *ModelsSSHAccessServerGroupAccessRequest) GetServerGroupId() string { + if o == nil { + var ret string + return ret + } + + return o.ServerGroupId +} + +// GetServerGroupIdOk returns a tuple with the ServerGroupId field value +// and a boolean to check if the value has been set. +func (o *ModelsSSHAccessServerGroupAccessRequest) GetServerGroupIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ServerGroupId, true +} + +// SetServerGroupId sets field value +func (o *ModelsSSHAccessServerGroupAccessRequest) SetServerGroupId(v string) { + o.ServerGroupId = v +} + +// GetLogonUsers returns the LogonUsers field value +func (o *ModelsSSHAccessServerGroupAccessRequest) GetLogonUsers() []ModelsSSHAccessLogonUserAccessRequest { + if o == nil { + var ret []ModelsSSHAccessLogonUserAccessRequest + return ret + } + + return o.LogonUsers +} + +// GetLogonUsersOk returns a tuple with the LogonUsers field value +// and a boolean to check if the value has been set. +func (o *ModelsSSHAccessServerGroupAccessRequest) GetLogonUsersOk() ([]ModelsSSHAccessLogonUserAccessRequest, bool) { + if o == nil { + return nil, false + } + return o.LogonUsers, true +} + +// SetLogonUsers sets field value +func (o *ModelsSSHAccessServerGroupAccessRequest) SetLogonUsers(v []ModelsSSHAccessLogonUserAccessRequest) { + o.LogonUsers = v +} + +func (o ModelsSSHAccessServerGroupAccessRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsSSHAccessServerGroupAccessRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["ServerGroupId"] = o.ServerGroupId + toSerialize["LogonUsers"] = o.LogonUsers + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsSSHAccessServerGroupAccessRequest) UnmarshalJSON(bytes []byte) (err error) { + varModelsSSHAccessServerGroupAccessRequest := _ModelsSSHAccessServerGroupAccessRequest{} + + if err = json.Unmarshal(bytes, &varModelsSSHAccessServerGroupAccessRequest); err == nil { + *o = ModelsSSHAccessServerGroupAccessRequest(varModelsSSHAccessServerGroupAccessRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "ServerGroupId") + delete(additionalProperties, "LogonUsers") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsSSHAccessServerGroupAccessRequest struct { + value *ModelsSSHAccessServerGroupAccessRequest + isSet bool +} + +func (v NullableModelsSSHAccessServerGroupAccessRequest) Get() *ModelsSSHAccessServerGroupAccessRequest { + return v.value +} + +func (v *NullableModelsSSHAccessServerGroupAccessRequest) Set(val *ModelsSSHAccessServerGroupAccessRequest) { + v.value = val + v.isSet = true +} + +func (v NullableModelsSSHAccessServerGroupAccessRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsSSHAccessServerGroupAccessRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsSSHAccessServerGroupAccessRequest(val *ModelsSSHAccessServerGroupAccessRequest) *NullableModelsSSHAccessServerGroupAccessRequest { + return &NullableModelsSSHAccessServerGroupAccessRequest{value: val, isSet: true} +} + +func (v NullableModelsSSHAccessServerGroupAccessRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsSSHAccessServerGroupAccessRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_ssh_access_server_group_access_response.go b/v1/api/keyfactor/model_models_ssh_access_server_group_access_response.go new file mode 100644 index 0000000..6839795 --- /dev/null +++ b/v1/api/keyfactor/model_models_ssh_access_server_group_access_response.go @@ -0,0 +1,195 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsSSHAccessServerGroupAccessResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsSSHAccessServerGroupAccessResponse{} + +// ModelsSSHAccessServerGroupAccessResponse struct for ModelsSSHAccessServerGroupAccessResponse +type ModelsSSHAccessServerGroupAccessResponse struct { + ServerGroupId *string `json:"ServerGroupId,omitempty"` + LogonUsers []ModelsSSHAccessLogonUserAccessResponse `json:"LogonUsers,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsSSHAccessServerGroupAccessResponse ModelsSSHAccessServerGroupAccessResponse + +// NewModelsSSHAccessServerGroupAccessResponse instantiates a new ModelsSSHAccessServerGroupAccessResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsSSHAccessServerGroupAccessResponse() *ModelsSSHAccessServerGroupAccessResponse { + this := ModelsSSHAccessServerGroupAccessResponse{} + return &this +} + +// NewModelsSSHAccessServerGroupAccessResponseWithDefaults instantiates a new ModelsSSHAccessServerGroupAccessResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsSSHAccessServerGroupAccessResponseWithDefaults() *ModelsSSHAccessServerGroupAccessResponse { + this := ModelsSSHAccessServerGroupAccessResponse{} + return &this +} + +// GetServerGroupId returns the ServerGroupId field value if set, zero value otherwise. +func (o *ModelsSSHAccessServerGroupAccessResponse) GetServerGroupId() string { + if o == nil || isNil(o.ServerGroupId) { + var ret string + return ret + } + return *o.ServerGroupId +} + +// GetServerGroupIdOk returns a tuple with the ServerGroupId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHAccessServerGroupAccessResponse) GetServerGroupIdOk() (*string, bool) { + if o == nil || isNil(o.ServerGroupId) { + return nil, false + } + return o.ServerGroupId, true +} + +// HasServerGroupId returns a boolean if a field has been set. +func (o *ModelsSSHAccessServerGroupAccessResponse) HasServerGroupId() bool { + if o != nil && !isNil(o.ServerGroupId) { + return true + } + + return false +} + +// SetServerGroupId gets a reference to the given string and assigns it to the ServerGroupId field. +func (o *ModelsSSHAccessServerGroupAccessResponse) SetServerGroupId(v string) { + o.ServerGroupId = &v +} + +// GetLogonUsers returns the LogonUsers field value if set, zero value otherwise. +func (o *ModelsSSHAccessServerGroupAccessResponse) GetLogonUsers() []ModelsSSHAccessLogonUserAccessResponse { + if o == nil || isNil(o.LogonUsers) { + var ret []ModelsSSHAccessLogonUserAccessResponse + return ret + } + return o.LogonUsers +} + +// GetLogonUsersOk returns a tuple with the LogonUsers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHAccessServerGroupAccessResponse) GetLogonUsersOk() ([]ModelsSSHAccessLogonUserAccessResponse, bool) { + if o == nil || isNil(o.LogonUsers) { + return nil, false + } + return o.LogonUsers, true +} + +// HasLogonUsers returns a boolean if a field has been set. +func (o *ModelsSSHAccessServerGroupAccessResponse) HasLogonUsers() bool { + if o != nil && !isNil(o.LogonUsers) { + return true + } + + return false +} + +// SetLogonUsers gets a reference to the given []ModelsSSHAccessLogonUserAccessResponse and assigns it to the LogonUsers field. +func (o *ModelsSSHAccessServerGroupAccessResponse) SetLogonUsers(v []ModelsSSHAccessLogonUserAccessResponse) { + o.LogonUsers = v +} + +func (o ModelsSSHAccessServerGroupAccessResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsSSHAccessServerGroupAccessResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.ServerGroupId) { + toSerialize["ServerGroupId"] = o.ServerGroupId + } + if !isNil(o.LogonUsers) { + toSerialize["LogonUsers"] = o.LogonUsers + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsSSHAccessServerGroupAccessResponse) UnmarshalJSON(bytes []byte) (err error) { + varModelsSSHAccessServerGroupAccessResponse := _ModelsSSHAccessServerGroupAccessResponse{} + + if err = json.Unmarshal(bytes, &varModelsSSHAccessServerGroupAccessResponse); err == nil { + *o = ModelsSSHAccessServerGroupAccessResponse(varModelsSSHAccessServerGroupAccessResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "ServerGroupId") + delete(additionalProperties, "LogonUsers") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsSSHAccessServerGroupAccessResponse struct { + value *ModelsSSHAccessServerGroupAccessResponse + isSet bool +} + +func (v NullableModelsSSHAccessServerGroupAccessResponse) Get() *ModelsSSHAccessServerGroupAccessResponse { + return v.value +} + +func (v *NullableModelsSSHAccessServerGroupAccessResponse) Set(val *ModelsSSHAccessServerGroupAccessResponse) { + v.value = val + v.isSet = true +} + +func (v NullableModelsSSHAccessServerGroupAccessResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsSSHAccessServerGroupAccessResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsSSHAccessServerGroupAccessResponse(val *ModelsSSHAccessServerGroupAccessResponse) *NullableModelsSSHAccessServerGroupAccessResponse { + return &NullableModelsSSHAccessServerGroupAccessResponse{value: val, isSet: true} +} + +func (v NullableModelsSSHAccessServerGroupAccessResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsSSHAccessServerGroupAccessResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_ssh_keys_key_generation_request.go b/v1/api/keyfactor/model_models_ssh_keys_key_generation_request.go new file mode 100644 index 0000000..0fbcede --- /dev/null +++ b/v1/api/keyfactor/model_models_ssh_keys_key_generation_request.go @@ -0,0 +1,298 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsSSHKeysKeyGenerationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsSSHKeysKeyGenerationRequest{} + +// ModelsSSHKeysKeyGenerationRequest struct for ModelsSSHKeysKeyGenerationRequest +type ModelsSSHKeysKeyGenerationRequest struct { + KeyType string `json:"KeyType"` + PrivateKeyFormat string `json:"PrivateKeyFormat"` + KeyLength int32 `json:"KeyLength"` + Email string `json:"Email"` + Password string `json:"Password"` + Comment *string `json:"Comment,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsSSHKeysKeyGenerationRequest ModelsSSHKeysKeyGenerationRequest + +// NewModelsSSHKeysKeyGenerationRequest instantiates a new ModelsSSHKeysKeyGenerationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsSSHKeysKeyGenerationRequest(keyType string, privateKeyFormat string, keyLength int32, email string, password string) *ModelsSSHKeysKeyGenerationRequest { + this := ModelsSSHKeysKeyGenerationRequest{} + this.KeyType = keyType + this.PrivateKeyFormat = privateKeyFormat + this.KeyLength = keyLength + this.Email = email + this.Password = password + return &this +} + +// NewModelsSSHKeysKeyGenerationRequestWithDefaults instantiates a new ModelsSSHKeysKeyGenerationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsSSHKeysKeyGenerationRequestWithDefaults() *ModelsSSHKeysKeyGenerationRequest { + this := ModelsSSHKeysKeyGenerationRequest{} + return &this +} + +// GetKeyType returns the KeyType field value +func (o *ModelsSSHKeysKeyGenerationRequest) GetKeyType() string { + if o == nil { + var ret string + return ret + } + + return o.KeyType +} + +// GetKeyTypeOk returns a tuple with the KeyType field value +// and a boolean to check if the value has been set. +func (o *ModelsSSHKeysKeyGenerationRequest) GetKeyTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.KeyType, true +} + +// SetKeyType sets field value +func (o *ModelsSSHKeysKeyGenerationRequest) SetKeyType(v string) { + o.KeyType = v +} + +// GetPrivateKeyFormat returns the PrivateKeyFormat field value +func (o *ModelsSSHKeysKeyGenerationRequest) GetPrivateKeyFormat() string { + if o == nil { + var ret string + return ret + } + + return o.PrivateKeyFormat +} + +// GetPrivateKeyFormatOk returns a tuple with the PrivateKeyFormat field value +// and a boolean to check if the value has been set. +func (o *ModelsSSHKeysKeyGenerationRequest) GetPrivateKeyFormatOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PrivateKeyFormat, true +} + +// SetPrivateKeyFormat sets field value +func (o *ModelsSSHKeysKeyGenerationRequest) SetPrivateKeyFormat(v string) { + o.PrivateKeyFormat = v +} + +// GetKeyLength returns the KeyLength field value +func (o *ModelsSSHKeysKeyGenerationRequest) GetKeyLength() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.KeyLength +} + +// GetKeyLengthOk returns a tuple with the KeyLength field value +// and a boolean to check if the value has been set. +func (o *ModelsSSHKeysKeyGenerationRequest) GetKeyLengthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.KeyLength, true +} + +// SetKeyLength sets field value +func (o *ModelsSSHKeysKeyGenerationRequest) SetKeyLength(v int32) { + o.KeyLength = v +} + +// GetEmail returns the Email field value +func (o *ModelsSSHKeysKeyGenerationRequest) GetEmail() string { + if o == nil { + var ret string + return ret + } + + return o.Email +} + +// GetEmailOk returns a tuple with the Email field value +// and a boolean to check if the value has been set. +func (o *ModelsSSHKeysKeyGenerationRequest) GetEmailOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Email, true +} + +// SetEmail sets field value +func (o *ModelsSSHKeysKeyGenerationRequest) SetEmail(v string) { + o.Email = v +} + +// GetPassword returns the Password field value +func (o *ModelsSSHKeysKeyGenerationRequest) GetPassword() string { + if o == nil { + var ret string + return ret + } + + return o.Password +} + +// GetPasswordOk returns a tuple with the Password field value +// and a boolean to check if the value has been set. +func (o *ModelsSSHKeysKeyGenerationRequest) GetPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Password, true +} + +// SetPassword sets field value +func (o *ModelsSSHKeysKeyGenerationRequest) SetPassword(v string) { + o.Password = v +} + +// GetComment returns the Comment field value if set, zero value otherwise. +func (o *ModelsSSHKeysKeyGenerationRequest) GetComment() string { + if o == nil || isNil(o.Comment) { + var ret string + return ret + } + return *o.Comment +} + +// GetCommentOk returns a tuple with the Comment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHKeysKeyGenerationRequest) GetCommentOk() (*string, bool) { + if o == nil || isNil(o.Comment) { + return nil, false + } + return o.Comment, true +} + +// HasComment returns a boolean if a field has been set. +func (o *ModelsSSHKeysKeyGenerationRequest) HasComment() bool { + if o != nil && !isNil(o.Comment) { + return true + } + + return false +} + +// SetComment gets a reference to the given string and assigns it to the Comment field. +func (o *ModelsSSHKeysKeyGenerationRequest) SetComment(v string) { + o.Comment = &v +} + +func (o ModelsSSHKeysKeyGenerationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsSSHKeysKeyGenerationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["KeyType"] = o.KeyType + toSerialize["PrivateKeyFormat"] = o.PrivateKeyFormat + toSerialize["KeyLength"] = o.KeyLength + toSerialize["Email"] = o.Email + toSerialize["Password"] = o.Password + if !isNil(o.Comment) { + toSerialize["Comment"] = o.Comment + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsSSHKeysKeyGenerationRequest) UnmarshalJSON(bytes []byte) (err error) { + varModelsSSHKeysKeyGenerationRequest := _ModelsSSHKeysKeyGenerationRequest{} + + if err = json.Unmarshal(bytes, &varModelsSSHKeysKeyGenerationRequest); err == nil { + *o = ModelsSSHKeysKeyGenerationRequest(varModelsSSHKeysKeyGenerationRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "KeyType") + delete(additionalProperties, "PrivateKeyFormat") + delete(additionalProperties, "KeyLength") + delete(additionalProperties, "Email") + delete(additionalProperties, "Password") + delete(additionalProperties, "Comment") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsSSHKeysKeyGenerationRequest struct { + value *ModelsSSHKeysKeyGenerationRequest + isSet bool +} + +func (v NullableModelsSSHKeysKeyGenerationRequest) Get() *ModelsSSHKeysKeyGenerationRequest { + return v.value +} + +func (v *NullableModelsSSHKeysKeyGenerationRequest) Set(val *ModelsSSHKeysKeyGenerationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableModelsSSHKeysKeyGenerationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsSSHKeysKeyGenerationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsSSHKeysKeyGenerationRequest(val *ModelsSSHKeysKeyGenerationRequest) *NullableModelsSSHKeysKeyGenerationRequest { + return &NullableModelsSSHKeysKeyGenerationRequest{value: val, isSet: true} +} + +func (v NullableModelsSSHKeysKeyGenerationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsSSHKeysKeyGenerationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_ssh_keys_key_response.go b/v1/api/keyfactor/model_models_ssh_keys_key_response.go new file mode 100644 index 0000000..ee6bbc1 --- /dev/null +++ b/v1/api/keyfactor/model_models_ssh_keys_key_response.go @@ -0,0 +1,529 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" + "time" +) + +// checks if the ModelsSSHKeysKeyResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsSSHKeysKeyResponse{} + +// ModelsSSHKeysKeyResponse struct for ModelsSSHKeysKeyResponse +type ModelsSSHKeysKeyResponse struct { + Id *int32 `json:"Id,omitempty"` + Fingerprint *string `json:"Fingerprint,omitempty"` + PublicKey *string `json:"PublicKey,omitempty"` + PrivateKey *string `json:"PrivateKey,omitempty"` + KeyType *string `json:"KeyType,omitempty"` + KeyLength *int32 `json:"KeyLength,omitempty"` + CreationDate *time.Time `json:"CreationDate,omitempty"` + StaleDate *time.Time `json:"StaleDate,omitempty"` + Email *string `json:"Email,omitempty"` + Comments []string `json:"Comments,omitempty"` + LogonCount *int32 `json:"LogonCount,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsSSHKeysKeyResponse ModelsSSHKeysKeyResponse + +// NewModelsSSHKeysKeyResponse instantiates a new ModelsSSHKeysKeyResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsSSHKeysKeyResponse() *ModelsSSHKeysKeyResponse { + this := ModelsSSHKeysKeyResponse{} + return &this +} + +// NewModelsSSHKeysKeyResponseWithDefaults instantiates a new ModelsSSHKeysKeyResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsSSHKeysKeyResponseWithDefaults() *ModelsSSHKeysKeyResponse { + this := ModelsSSHKeysKeyResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ModelsSSHKeysKeyResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHKeysKeyResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ModelsSSHKeysKeyResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *ModelsSSHKeysKeyResponse) SetId(v int32) { + o.Id = &v +} + +// GetFingerprint returns the Fingerprint field value if set, zero value otherwise. +func (o *ModelsSSHKeysKeyResponse) GetFingerprint() string { + if o == nil || isNil(o.Fingerprint) { + var ret string + return ret + } + return *o.Fingerprint +} + +// GetFingerprintOk returns a tuple with the Fingerprint field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHKeysKeyResponse) GetFingerprintOk() (*string, bool) { + if o == nil || isNil(o.Fingerprint) { + return nil, false + } + return o.Fingerprint, true +} + +// HasFingerprint returns a boolean if a field has been set. +func (o *ModelsSSHKeysKeyResponse) HasFingerprint() bool { + if o != nil && !isNil(o.Fingerprint) { + return true + } + + return false +} + +// SetFingerprint gets a reference to the given string and assigns it to the Fingerprint field. +func (o *ModelsSSHKeysKeyResponse) SetFingerprint(v string) { + o.Fingerprint = &v +} + +// GetPublicKey returns the PublicKey field value if set, zero value otherwise. +func (o *ModelsSSHKeysKeyResponse) GetPublicKey() string { + if o == nil || isNil(o.PublicKey) { + var ret string + return ret + } + return *o.PublicKey +} + +// GetPublicKeyOk returns a tuple with the PublicKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHKeysKeyResponse) GetPublicKeyOk() (*string, bool) { + if o == nil || isNil(o.PublicKey) { + return nil, false + } + return o.PublicKey, true +} + +// HasPublicKey returns a boolean if a field has been set. +func (o *ModelsSSHKeysKeyResponse) HasPublicKey() bool { + if o != nil && !isNil(o.PublicKey) { + return true + } + + return false +} + +// SetPublicKey gets a reference to the given string and assigns it to the PublicKey field. +func (o *ModelsSSHKeysKeyResponse) SetPublicKey(v string) { + o.PublicKey = &v +} + +// GetPrivateKey returns the PrivateKey field value if set, zero value otherwise. +func (o *ModelsSSHKeysKeyResponse) GetPrivateKey() string { + if o == nil || isNil(o.PrivateKey) { + var ret string + return ret + } + return *o.PrivateKey +} + +// GetPrivateKeyOk returns a tuple with the PrivateKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHKeysKeyResponse) GetPrivateKeyOk() (*string, bool) { + if o == nil || isNil(o.PrivateKey) { + return nil, false + } + return o.PrivateKey, true +} + +// HasPrivateKey returns a boolean if a field has been set. +func (o *ModelsSSHKeysKeyResponse) HasPrivateKey() bool { + if o != nil && !isNil(o.PrivateKey) { + return true + } + + return false +} + +// SetPrivateKey gets a reference to the given string and assigns it to the PrivateKey field. +func (o *ModelsSSHKeysKeyResponse) SetPrivateKey(v string) { + o.PrivateKey = &v +} + +// GetKeyType returns the KeyType field value if set, zero value otherwise. +func (o *ModelsSSHKeysKeyResponse) GetKeyType() string { + if o == nil || isNil(o.KeyType) { + var ret string + return ret + } + return *o.KeyType +} + +// GetKeyTypeOk returns a tuple with the KeyType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHKeysKeyResponse) GetKeyTypeOk() (*string, bool) { + if o == nil || isNil(o.KeyType) { + return nil, false + } + return o.KeyType, true +} + +// HasKeyType returns a boolean if a field has been set. +func (o *ModelsSSHKeysKeyResponse) HasKeyType() bool { + if o != nil && !isNil(o.KeyType) { + return true + } + + return false +} + +// SetKeyType gets a reference to the given string and assigns it to the KeyType field. +func (o *ModelsSSHKeysKeyResponse) SetKeyType(v string) { + o.KeyType = &v +} + +// GetKeyLength returns the KeyLength field value if set, zero value otherwise. +func (o *ModelsSSHKeysKeyResponse) GetKeyLength() int32 { + if o == nil || isNil(o.KeyLength) { + var ret int32 + return ret + } + return *o.KeyLength +} + +// GetKeyLengthOk returns a tuple with the KeyLength field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHKeysKeyResponse) GetKeyLengthOk() (*int32, bool) { + if o == nil || isNil(o.KeyLength) { + return nil, false + } + return o.KeyLength, true +} + +// HasKeyLength returns a boolean if a field has been set. +func (o *ModelsSSHKeysKeyResponse) HasKeyLength() bool { + if o != nil && !isNil(o.KeyLength) { + return true + } + + return false +} + +// SetKeyLength gets a reference to the given int32 and assigns it to the KeyLength field. +func (o *ModelsSSHKeysKeyResponse) SetKeyLength(v int32) { + o.KeyLength = &v +} + +// GetCreationDate returns the CreationDate field value if set, zero value otherwise. +func (o *ModelsSSHKeysKeyResponse) GetCreationDate() time.Time { + if o == nil || isNil(o.CreationDate) { + var ret time.Time + return ret + } + return *o.CreationDate +} + +// GetCreationDateOk returns a tuple with the CreationDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHKeysKeyResponse) GetCreationDateOk() (*time.Time, bool) { + if o == nil || isNil(o.CreationDate) { + return nil, false + } + return o.CreationDate, true +} + +// HasCreationDate returns a boolean if a field has been set. +func (o *ModelsSSHKeysKeyResponse) HasCreationDate() bool { + if o != nil && !isNil(o.CreationDate) { + return true + } + + return false +} + +// SetCreationDate gets a reference to the given time.Time and assigns it to the CreationDate field. +func (o *ModelsSSHKeysKeyResponse) SetCreationDate(v time.Time) { + o.CreationDate = &v +} + +// GetStaleDate returns the StaleDate field value if set, zero value otherwise. +func (o *ModelsSSHKeysKeyResponse) GetStaleDate() time.Time { + if o == nil || isNil(o.StaleDate) { + var ret time.Time + return ret + } + return *o.StaleDate +} + +// GetStaleDateOk returns a tuple with the StaleDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHKeysKeyResponse) GetStaleDateOk() (*time.Time, bool) { + if o == nil || isNil(o.StaleDate) { + return nil, false + } + return o.StaleDate, true +} + +// HasStaleDate returns a boolean if a field has been set. +func (o *ModelsSSHKeysKeyResponse) HasStaleDate() bool { + if o != nil && !isNil(o.StaleDate) { + return true + } + + return false +} + +// SetStaleDate gets a reference to the given time.Time and assigns it to the StaleDate field. +func (o *ModelsSSHKeysKeyResponse) SetStaleDate(v time.Time) { + o.StaleDate = &v +} + +// GetEmail returns the Email field value if set, zero value otherwise. +func (o *ModelsSSHKeysKeyResponse) GetEmail() string { + if o == nil || isNil(o.Email) { + var ret string + return ret + } + return *o.Email +} + +// GetEmailOk returns a tuple with the Email field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHKeysKeyResponse) GetEmailOk() (*string, bool) { + if o == nil || isNil(o.Email) { + return nil, false + } + return o.Email, true +} + +// HasEmail returns a boolean if a field has been set. +func (o *ModelsSSHKeysKeyResponse) HasEmail() bool { + if o != nil && !isNil(o.Email) { + return true + } + + return false +} + +// SetEmail gets a reference to the given string and assigns it to the Email field. +func (o *ModelsSSHKeysKeyResponse) SetEmail(v string) { + o.Email = &v +} + +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *ModelsSSHKeysKeyResponse) GetComments() []string { + if o == nil || isNil(o.Comments) { + var ret []string + return ret + } + return o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHKeysKeyResponse) GetCommentsOk() ([]string, bool) { + if o == nil || isNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *ModelsSSHKeysKeyResponse) HasComments() bool { + if o != nil && !isNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given []string and assigns it to the Comments field. +func (o *ModelsSSHKeysKeyResponse) SetComments(v []string) { + o.Comments = v +} + +// GetLogonCount returns the LogonCount field value if set, zero value otherwise. +func (o *ModelsSSHKeysKeyResponse) GetLogonCount() int32 { + if o == nil || isNil(o.LogonCount) { + var ret int32 + return ret + } + return *o.LogonCount +} + +// GetLogonCountOk returns a tuple with the LogonCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHKeysKeyResponse) GetLogonCountOk() (*int32, bool) { + if o == nil || isNil(o.LogonCount) { + return nil, false + } + return o.LogonCount, true +} + +// HasLogonCount returns a boolean if a field has been set. +func (o *ModelsSSHKeysKeyResponse) HasLogonCount() bool { + if o != nil && !isNil(o.LogonCount) { + return true + } + + return false +} + +// SetLogonCount gets a reference to the given int32 and assigns it to the LogonCount field. +func (o *ModelsSSHKeysKeyResponse) SetLogonCount(v int32) { + o.LogonCount = &v +} + +func (o ModelsSSHKeysKeyResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsSSHKeysKeyResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.Fingerprint) { + toSerialize["Fingerprint"] = o.Fingerprint + } + if !isNil(o.PublicKey) { + toSerialize["PublicKey"] = o.PublicKey + } + if !isNil(o.PrivateKey) { + toSerialize["PrivateKey"] = o.PrivateKey + } + if !isNil(o.KeyType) { + toSerialize["KeyType"] = o.KeyType + } + if !isNil(o.KeyLength) { + toSerialize["KeyLength"] = o.KeyLength + } + if !isNil(o.CreationDate) { + toSerialize["CreationDate"] = o.CreationDate + } + if !isNil(o.StaleDate) { + toSerialize["StaleDate"] = o.StaleDate + } + if !isNil(o.Email) { + toSerialize["Email"] = o.Email + } + if !isNil(o.Comments) { + toSerialize["Comments"] = o.Comments + } + if !isNil(o.LogonCount) { + toSerialize["LogonCount"] = o.LogonCount + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsSSHKeysKeyResponse) UnmarshalJSON(bytes []byte) (err error) { + varModelsSSHKeysKeyResponse := _ModelsSSHKeysKeyResponse{} + + if err = json.Unmarshal(bytes, &varModelsSSHKeysKeyResponse); err == nil { + *o = ModelsSSHKeysKeyResponse(varModelsSSHKeysKeyResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "Fingerprint") + delete(additionalProperties, "PublicKey") + delete(additionalProperties, "PrivateKey") + delete(additionalProperties, "KeyType") + delete(additionalProperties, "KeyLength") + delete(additionalProperties, "CreationDate") + delete(additionalProperties, "StaleDate") + delete(additionalProperties, "Email") + delete(additionalProperties, "Comments") + delete(additionalProperties, "LogonCount") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsSSHKeysKeyResponse struct { + value *ModelsSSHKeysKeyResponse + isSet bool +} + +func (v NullableModelsSSHKeysKeyResponse) Get() *ModelsSSHKeysKeyResponse { + return v.value +} + +func (v *NullableModelsSSHKeysKeyResponse) Set(val *ModelsSSHKeysKeyResponse) { + v.value = val + v.isSet = true +} + +func (v NullableModelsSSHKeysKeyResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsSSHKeysKeyResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsSSHKeysKeyResponse(val *ModelsSSHKeysKeyResponse) *NullableModelsSSHKeysKeyResponse { + return &NullableModelsSSHKeysKeyResponse{value: val, isSet: true} +} + +func (v NullableModelsSSHKeysKeyResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsSSHKeysKeyResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_ssh_keys_key_update_request.go b/v1/api/keyfactor/model_models_ssh_keys_key_update_request.go new file mode 100644 index 0000000..d680b6d --- /dev/null +++ b/v1/api/keyfactor/model_models_ssh_keys_key_update_request.go @@ -0,0 +1,214 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsSSHKeysKeyUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsSSHKeysKeyUpdateRequest{} + +// ModelsSSHKeysKeyUpdateRequest struct for ModelsSSHKeysKeyUpdateRequest +type ModelsSSHKeysKeyUpdateRequest struct { + Id int32 `json:"Id"` + Email string `json:"Email"` + Comment *string `json:"Comment,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsSSHKeysKeyUpdateRequest ModelsSSHKeysKeyUpdateRequest + +// NewModelsSSHKeysKeyUpdateRequest instantiates a new ModelsSSHKeysKeyUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsSSHKeysKeyUpdateRequest(id int32, email string) *ModelsSSHKeysKeyUpdateRequest { + this := ModelsSSHKeysKeyUpdateRequest{} + this.Id = id + this.Email = email + return &this +} + +// NewModelsSSHKeysKeyUpdateRequestWithDefaults instantiates a new ModelsSSHKeysKeyUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsSSHKeysKeyUpdateRequestWithDefaults() *ModelsSSHKeysKeyUpdateRequest { + this := ModelsSSHKeysKeyUpdateRequest{} + return &this +} + +// GetId returns the Id field value +func (o *ModelsSSHKeysKeyUpdateRequest) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *ModelsSSHKeysKeyUpdateRequest) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ModelsSSHKeysKeyUpdateRequest) SetId(v int32) { + o.Id = v +} + +// GetEmail returns the Email field value +func (o *ModelsSSHKeysKeyUpdateRequest) GetEmail() string { + if o == nil { + var ret string + return ret + } + + return o.Email +} + +// GetEmailOk returns a tuple with the Email field value +// and a boolean to check if the value has been set. +func (o *ModelsSSHKeysKeyUpdateRequest) GetEmailOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Email, true +} + +// SetEmail sets field value +func (o *ModelsSSHKeysKeyUpdateRequest) SetEmail(v string) { + o.Email = v +} + +// GetComment returns the Comment field value if set, zero value otherwise. +func (o *ModelsSSHKeysKeyUpdateRequest) GetComment() string { + if o == nil || isNil(o.Comment) { + var ret string + return ret + } + return *o.Comment +} + +// GetCommentOk returns a tuple with the Comment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHKeysKeyUpdateRequest) GetCommentOk() (*string, bool) { + if o == nil || isNil(o.Comment) { + return nil, false + } + return o.Comment, true +} + +// HasComment returns a boolean if a field has been set. +func (o *ModelsSSHKeysKeyUpdateRequest) HasComment() bool { + if o != nil && !isNil(o.Comment) { + return true + } + + return false +} + +// SetComment gets a reference to the given string and assigns it to the Comment field. +func (o *ModelsSSHKeysKeyUpdateRequest) SetComment(v string) { + o.Comment = &v +} + +func (o ModelsSSHKeysKeyUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsSSHKeysKeyUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Id"] = o.Id + toSerialize["Email"] = o.Email + if !isNil(o.Comment) { + toSerialize["Comment"] = o.Comment + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsSSHKeysKeyUpdateRequest) UnmarshalJSON(bytes []byte) (err error) { + varModelsSSHKeysKeyUpdateRequest := _ModelsSSHKeysKeyUpdateRequest{} + + if err = json.Unmarshal(bytes, &varModelsSSHKeysKeyUpdateRequest); err == nil { + *o = ModelsSSHKeysKeyUpdateRequest(varModelsSSHKeysKeyUpdateRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "Email") + delete(additionalProperties, "Comment") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsSSHKeysKeyUpdateRequest struct { + value *ModelsSSHKeysKeyUpdateRequest + isSet bool +} + +func (v NullableModelsSSHKeysKeyUpdateRequest) Get() *ModelsSSHKeysKeyUpdateRequest { + return v.value +} + +func (v *NullableModelsSSHKeysKeyUpdateRequest) Set(val *ModelsSSHKeysKeyUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableModelsSSHKeysKeyUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsSSHKeysKeyUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsSSHKeysKeyUpdateRequest(val *ModelsSSHKeysKeyUpdateRequest) *NullableModelsSSHKeysKeyUpdateRequest { + return &NullableModelsSSHKeysKeyUpdateRequest{value: val, isSet: true} +} + +func (v NullableModelsSSHKeysKeyUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsSSHKeysKeyUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_ssh_keys_unmanaged_key_response.go b/v1/api/keyfactor/model_models_ssh_keys_unmanaged_key_response.go new file mode 100644 index 0000000..d9e9d49 --- /dev/null +++ b/v1/api/keyfactor/model_models_ssh_keys_unmanaged_key_response.go @@ -0,0 +1,529 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" + "time" +) + +// checks if the ModelsSSHKeysUnmanagedKeyResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsSSHKeysUnmanagedKeyResponse{} + +// ModelsSSHKeysUnmanagedKeyResponse struct for ModelsSSHKeysUnmanagedKeyResponse +type ModelsSSHKeysUnmanagedKeyResponse struct { + Id *int32 `json:"Id,omitempty"` + Fingerprint *string `json:"Fingerprint,omitempty"` + PublicKey *string `json:"PublicKey,omitempty"` + PrivateKey *string `json:"PrivateKey,omitempty"` + KeyType *string `json:"KeyType,omitempty"` + KeyLength *int32 `json:"KeyLength,omitempty"` + DiscoveredDate *time.Time `json:"DiscoveredDate,omitempty"` + Email *string `json:"Email,omitempty"` + Comments []string `json:"Comments,omitempty"` + Username *string `json:"Username,omitempty"` + LogonCount *int32 `json:"LogonCount,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsSSHKeysUnmanagedKeyResponse ModelsSSHKeysUnmanagedKeyResponse + +// NewModelsSSHKeysUnmanagedKeyResponse instantiates a new ModelsSSHKeysUnmanagedKeyResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsSSHKeysUnmanagedKeyResponse() *ModelsSSHKeysUnmanagedKeyResponse { + this := ModelsSSHKeysUnmanagedKeyResponse{} + return &this +} + +// NewModelsSSHKeysUnmanagedKeyResponseWithDefaults instantiates a new ModelsSSHKeysUnmanagedKeyResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsSSHKeysUnmanagedKeyResponseWithDefaults() *ModelsSSHKeysUnmanagedKeyResponse { + this := ModelsSSHKeysUnmanagedKeyResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ModelsSSHKeysUnmanagedKeyResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHKeysUnmanagedKeyResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ModelsSSHKeysUnmanagedKeyResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *ModelsSSHKeysUnmanagedKeyResponse) SetId(v int32) { + o.Id = &v +} + +// GetFingerprint returns the Fingerprint field value if set, zero value otherwise. +func (o *ModelsSSHKeysUnmanagedKeyResponse) GetFingerprint() string { + if o == nil || isNil(o.Fingerprint) { + var ret string + return ret + } + return *o.Fingerprint +} + +// GetFingerprintOk returns a tuple with the Fingerprint field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHKeysUnmanagedKeyResponse) GetFingerprintOk() (*string, bool) { + if o == nil || isNil(o.Fingerprint) { + return nil, false + } + return o.Fingerprint, true +} + +// HasFingerprint returns a boolean if a field has been set. +func (o *ModelsSSHKeysUnmanagedKeyResponse) HasFingerprint() bool { + if o != nil && !isNil(o.Fingerprint) { + return true + } + + return false +} + +// SetFingerprint gets a reference to the given string and assigns it to the Fingerprint field. +func (o *ModelsSSHKeysUnmanagedKeyResponse) SetFingerprint(v string) { + o.Fingerprint = &v +} + +// GetPublicKey returns the PublicKey field value if set, zero value otherwise. +func (o *ModelsSSHKeysUnmanagedKeyResponse) GetPublicKey() string { + if o == nil || isNil(o.PublicKey) { + var ret string + return ret + } + return *o.PublicKey +} + +// GetPublicKeyOk returns a tuple with the PublicKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHKeysUnmanagedKeyResponse) GetPublicKeyOk() (*string, bool) { + if o == nil || isNil(o.PublicKey) { + return nil, false + } + return o.PublicKey, true +} + +// HasPublicKey returns a boolean if a field has been set. +func (o *ModelsSSHKeysUnmanagedKeyResponse) HasPublicKey() bool { + if o != nil && !isNil(o.PublicKey) { + return true + } + + return false +} + +// SetPublicKey gets a reference to the given string and assigns it to the PublicKey field. +func (o *ModelsSSHKeysUnmanagedKeyResponse) SetPublicKey(v string) { + o.PublicKey = &v +} + +// GetPrivateKey returns the PrivateKey field value if set, zero value otherwise. +func (o *ModelsSSHKeysUnmanagedKeyResponse) GetPrivateKey() string { + if o == nil || isNil(o.PrivateKey) { + var ret string + return ret + } + return *o.PrivateKey +} + +// GetPrivateKeyOk returns a tuple with the PrivateKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHKeysUnmanagedKeyResponse) GetPrivateKeyOk() (*string, bool) { + if o == nil || isNil(o.PrivateKey) { + return nil, false + } + return o.PrivateKey, true +} + +// HasPrivateKey returns a boolean if a field has been set. +func (o *ModelsSSHKeysUnmanagedKeyResponse) HasPrivateKey() bool { + if o != nil && !isNil(o.PrivateKey) { + return true + } + + return false +} + +// SetPrivateKey gets a reference to the given string and assigns it to the PrivateKey field. +func (o *ModelsSSHKeysUnmanagedKeyResponse) SetPrivateKey(v string) { + o.PrivateKey = &v +} + +// GetKeyType returns the KeyType field value if set, zero value otherwise. +func (o *ModelsSSHKeysUnmanagedKeyResponse) GetKeyType() string { + if o == nil || isNil(o.KeyType) { + var ret string + return ret + } + return *o.KeyType +} + +// GetKeyTypeOk returns a tuple with the KeyType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHKeysUnmanagedKeyResponse) GetKeyTypeOk() (*string, bool) { + if o == nil || isNil(o.KeyType) { + return nil, false + } + return o.KeyType, true +} + +// HasKeyType returns a boolean if a field has been set. +func (o *ModelsSSHKeysUnmanagedKeyResponse) HasKeyType() bool { + if o != nil && !isNil(o.KeyType) { + return true + } + + return false +} + +// SetKeyType gets a reference to the given string and assigns it to the KeyType field. +func (o *ModelsSSHKeysUnmanagedKeyResponse) SetKeyType(v string) { + o.KeyType = &v +} + +// GetKeyLength returns the KeyLength field value if set, zero value otherwise. +func (o *ModelsSSHKeysUnmanagedKeyResponse) GetKeyLength() int32 { + if o == nil || isNil(o.KeyLength) { + var ret int32 + return ret + } + return *o.KeyLength +} + +// GetKeyLengthOk returns a tuple with the KeyLength field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHKeysUnmanagedKeyResponse) GetKeyLengthOk() (*int32, bool) { + if o == nil || isNil(o.KeyLength) { + return nil, false + } + return o.KeyLength, true +} + +// HasKeyLength returns a boolean if a field has been set. +func (o *ModelsSSHKeysUnmanagedKeyResponse) HasKeyLength() bool { + if o != nil && !isNil(o.KeyLength) { + return true + } + + return false +} + +// SetKeyLength gets a reference to the given int32 and assigns it to the KeyLength field. +func (o *ModelsSSHKeysUnmanagedKeyResponse) SetKeyLength(v int32) { + o.KeyLength = &v +} + +// GetDiscoveredDate returns the DiscoveredDate field value if set, zero value otherwise. +func (o *ModelsSSHKeysUnmanagedKeyResponse) GetDiscoveredDate() time.Time { + if o == nil || isNil(o.DiscoveredDate) { + var ret time.Time + return ret + } + return *o.DiscoveredDate +} + +// GetDiscoveredDateOk returns a tuple with the DiscoveredDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHKeysUnmanagedKeyResponse) GetDiscoveredDateOk() (*time.Time, bool) { + if o == nil || isNil(o.DiscoveredDate) { + return nil, false + } + return o.DiscoveredDate, true +} + +// HasDiscoveredDate returns a boolean if a field has been set. +func (o *ModelsSSHKeysUnmanagedKeyResponse) HasDiscoveredDate() bool { + if o != nil && !isNil(o.DiscoveredDate) { + return true + } + + return false +} + +// SetDiscoveredDate gets a reference to the given time.Time and assigns it to the DiscoveredDate field. +func (o *ModelsSSHKeysUnmanagedKeyResponse) SetDiscoveredDate(v time.Time) { + o.DiscoveredDate = &v +} + +// GetEmail returns the Email field value if set, zero value otherwise. +func (o *ModelsSSHKeysUnmanagedKeyResponse) GetEmail() string { + if o == nil || isNil(o.Email) { + var ret string + return ret + } + return *o.Email +} + +// GetEmailOk returns a tuple with the Email field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHKeysUnmanagedKeyResponse) GetEmailOk() (*string, bool) { + if o == nil || isNil(o.Email) { + return nil, false + } + return o.Email, true +} + +// HasEmail returns a boolean if a field has been set. +func (o *ModelsSSHKeysUnmanagedKeyResponse) HasEmail() bool { + if o != nil && !isNil(o.Email) { + return true + } + + return false +} + +// SetEmail gets a reference to the given string and assigns it to the Email field. +func (o *ModelsSSHKeysUnmanagedKeyResponse) SetEmail(v string) { + o.Email = &v +} + +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *ModelsSSHKeysUnmanagedKeyResponse) GetComments() []string { + if o == nil || isNil(o.Comments) { + var ret []string + return ret + } + return o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHKeysUnmanagedKeyResponse) GetCommentsOk() ([]string, bool) { + if o == nil || isNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *ModelsSSHKeysUnmanagedKeyResponse) HasComments() bool { + if o != nil && !isNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given []string and assigns it to the Comments field. +func (o *ModelsSSHKeysUnmanagedKeyResponse) SetComments(v []string) { + o.Comments = v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *ModelsSSHKeysUnmanagedKeyResponse) GetUsername() string { + if o == nil || isNil(o.Username) { + var ret string + return ret + } + return *o.Username +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHKeysUnmanagedKeyResponse) GetUsernameOk() (*string, bool) { + if o == nil || isNil(o.Username) { + return nil, false + } + return o.Username, true +} + +// HasUsername returns a boolean if a field has been set. +func (o *ModelsSSHKeysUnmanagedKeyResponse) HasUsername() bool { + if o != nil && !isNil(o.Username) { + return true + } + + return false +} + +// SetUsername gets a reference to the given string and assigns it to the Username field. +func (o *ModelsSSHKeysUnmanagedKeyResponse) SetUsername(v string) { + o.Username = &v +} + +// GetLogonCount returns the LogonCount field value if set, zero value otherwise. +func (o *ModelsSSHKeysUnmanagedKeyResponse) GetLogonCount() int32 { + if o == nil || isNil(o.LogonCount) { + var ret int32 + return ret + } + return *o.LogonCount +} + +// GetLogonCountOk returns a tuple with the LogonCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHKeysUnmanagedKeyResponse) GetLogonCountOk() (*int32, bool) { + if o == nil || isNil(o.LogonCount) { + return nil, false + } + return o.LogonCount, true +} + +// HasLogonCount returns a boolean if a field has been set. +func (o *ModelsSSHKeysUnmanagedKeyResponse) HasLogonCount() bool { + if o != nil && !isNil(o.LogonCount) { + return true + } + + return false +} + +// SetLogonCount gets a reference to the given int32 and assigns it to the LogonCount field. +func (o *ModelsSSHKeysUnmanagedKeyResponse) SetLogonCount(v int32) { + o.LogonCount = &v +} + +func (o ModelsSSHKeysUnmanagedKeyResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsSSHKeysUnmanagedKeyResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.Fingerprint) { + toSerialize["Fingerprint"] = o.Fingerprint + } + if !isNil(o.PublicKey) { + toSerialize["PublicKey"] = o.PublicKey + } + if !isNil(o.PrivateKey) { + toSerialize["PrivateKey"] = o.PrivateKey + } + if !isNil(o.KeyType) { + toSerialize["KeyType"] = o.KeyType + } + if !isNil(o.KeyLength) { + toSerialize["KeyLength"] = o.KeyLength + } + if !isNil(o.DiscoveredDate) { + toSerialize["DiscoveredDate"] = o.DiscoveredDate + } + if !isNil(o.Email) { + toSerialize["Email"] = o.Email + } + if !isNil(o.Comments) { + toSerialize["Comments"] = o.Comments + } + if !isNil(o.Username) { + toSerialize["Username"] = o.Username + } + if !isNil(o.LogonCount) { + toSerialize["LogonCount"] = o.LogonCount + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsSSHKeysUnmanagedKeyResponse) UnmarshalJSON(bytes []byte) (err error) { + varModelsSSHKeysUnmanagedKeyResponse := _ModelsSSHKeysUnmanagedKeyResponse{} + + if err = json.Unmarshal(bytes, &varModelsSSHKeysUnmanagedKeyResponse); err == nil { + *o = ModelsSSHKeysUnmanagedKeyResponse(varModelsSSHKeysUnmanagedKeyResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "Fingerprint") + delete(additionalProperties, "PublicKey") + delete(additionalProperties, "PrivateKey") + delete(additionalProperties, "KeyType") + delete(additionalProperties, "KeyLength") + delete(additionalProperties, "DiscoveredDate") + delete(additionalProperties, "Email") + delete(additionalProperties, "Comments") + delete(additionalProperties, "Username") + delete(additionalProperties, "LogonCount") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsSSHKeysUnmanagedKeyResponse struct { + value *ModelsSSHKeysUnmanagedKeyResponse + isSet bool +} + +func (v NullableModelsSSHKeysUnmanagedKeyResponse) Get() *ModelsSSHKeysUnmanagedKeyResponse { + return v.value +} + +func (v *NullableModelsSSHKeysUnmanagedKeyResponse) Set(val *ModelsSSHKeysUnmanagedKeyResponse) { + v.value = val + v.isSet = true +} + +func (v NullableModelsSSHKeysUnmanagedKeyResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsSSHKeysUnmanagedKeyResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsSSHKeysUnmanagedKeyResponse(val *ModelsSSHKeysUnmanagedKeyResponse) *NullableModelsSSHKeysUnmanagedKeyResponse { + return &NullableModelsSSHKeysUnmanagedKeyResponse{value: val, isSet: true} +} + +func (v NullableModelsSSHKeysUnmanagedKeyResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsSSHKeysUnmanagedKeyResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_ssh_logons_logon_access_request.go b/v1/api/keyfactor/model_models_ssh_logons_logon_access_request.go new file mode 100644 index 0000000..eb9c531 --- /dev/null +++ b/v1/api/keyfactor/model_models_ssh_logons_logon_access_request.go @@ -0,0 +1,186 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsSSHLogonsLogonAccessRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsSSHLogonsLogonAccessRequest{} + +// ModelsSSHLogonsLogonAccessRequest struct for ModelsSSHLogonsLogonAccessRequest +type ModelsSSHLogonsLogonAccessRequest struct { + LogonId int32 `json:"LogonId"` + UserIds []int32 `json:"UserIds,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsSSHLogonsLogonAccessRequest ModelsSSHLogonsLogonAccessRequest + +// NewModelsSSHLogonsLogonAccessRequest instantiates a new ModelsSSHLogonsLogonAccessRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsSSHLogonsLogonAccessRequest(logonId int32) *ModelsSSHLogonsLogonAccessRequest { + this := ModelsSSHLogonsLogonAccessRequest{} + this.LogonId = logonId + return &this +} + +// NewModelsSSHLogonsLogonAccessRequestWithDefaults instantiates a new ModelsSSHLogonsLogonAccessRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsSSHLogonsLogonAccessRequestWithDefaults() *ModelsSSHLogonsLogonAccessRequest { + this := ModelsSSHLogonsLogonAccessRequest{} + return &this +} + +// GetLogonId returns the LogonId field value +func (o *ModelsSSHLogonsLogonAccessRequest) GetLogonId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.LogonId +} + +// GetLogonIdOk returns a tuple with the LogonId field value +// and a boolean to check if the value has been set. +func (o *ModelsSSHLogonsLogonAccessRequest) GetLogonIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.LogonId, true +} + +// SetLogonId sets field value +func (o *ModelsSSHLogonsLogonAccessRequest) SetLogonId(v int32) { + o.LogonId = v +} + +// GetUserIds returns the UserIds field value if set, zero value otherwise. +func (o *ModelsSSHLogonsLogonAccessRequest) GetUserIds() []int32 { + if o == nil || isNil(o.UserIds) { + var ret []int32 + return ret + } + return o.UserIds +} + +// GetUserIdsOk returns a tuple with the UserIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHLogonsLogonAccessRequest) GetUserIdsOk() ([]int32, bool) { + if o == nil || isNil(o.UserIds) { + return nil, false + } + return o.UserIds, true +} + +// HasUserIds returns a boolean if a field has been set. +func (o *ModelsSSHLogonsLogonAccessRequest) HasUserIds() bool { + if o != nil && !isNil(o.UserIds) { + return true + } + + return false +} + +// SetUserIds gets a reference to the given []int32 and assigns it to the UserIds field. +func (o *ModelsSSHLogonsLogonAccessRequest) SetUserIds(v []int32) { + o.UserIds = v +} + +func (o ModelsSSHLogonsLogonAccessRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsSSHLogonsLogonAccessRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["LogonId"] = o.LogonId + if !isNil(o.UserIds) { + toSerialize["UserIds"] = o.UserIds + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsSSHLogonsLogonAccessRequest) UnmarshalJSON(bytes []byte) (err error) { + varModelsSSHLogonsLogonAccessRequest := _ModelsSSHLogonsLogonAccessRequest{} + + if err = json.Unmarshal(bytes, &varModelsSSHLogonsLogonAccessRequest); err == nil { + *o = ModelsSSHLogonsLogonAccessRequest(varModelsSSHLogonsLogonAccessRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "LogonId") + delete(additionalProperties, "UserIds") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsSSHLogonsLogonAccessRequest struct { + value *ModelsSSHLogonsLogonAccessRequest + isSet bool +} + +func (v NullableModelsSSHLogonsLogonAccessRequest) Get() *ModelsSSHLogonsLogonAccessRequest { + return v.value +} + +func (v *NullableModelsSSHLogonsLogonAccessRequest) Set(val *ModelsSSHLogonsLogonAccessRequest) { + v.value = val + v.isSet = true +} + +func (v NullableModelsSSHLogonsLogonAccessRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsSSHLogonsLogonAccessRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsSSHLogonsLogonAccessRequest(val *ModelsSSHLogonsLogonAccessRequest) *NullableModelsSSHLogonsLogonAccessRequest { + return &NullableModelsSSHLogonsLogonAccessRequest{value: val, isSet: true} +} + +func (v NullableModelsSSHLogonsLogonAccessRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsSSHLogonsLogonAccessRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_ssh_logons_logon_creation_request.go b/v1/api/keyfactor/model_models_ssh_logons_logon_creation_request.go new file mode 100644 index 0000000..7642388 --- /dev/null +++ b/v1/api/keyfactor/model_models_ssh_logons_logon_creation_request.go @@ -0,0 +1,214 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsSSHLogonsLogonCreationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsSSHLogonsLogonCreationRequest{} + +// ModelsSSHLogonsLogonCreationRequest struct for ModelsSSHLogonsLogonCreationRequest +type ModelsSSHLogonsLogonCreationRequest struct { + Username string `json:"Username"` + ServerId int32 `json:"ServerId"` + UserIds []int32 `json:"UserIds,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsSSHLogonsLogonCreationRequest ModelsSSHLogonsLogonCreationRequest + +// NewModelsSSHLogonsLogonCreationRequest instantiates a new ModelsSSHLogonsLogonCreationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsSSHLogonsLogonCreationRequest(username string, serverId int32) *ModelsSSHLogonsLogonCreationRequest { + this := ModelsSSHLogonsLogonCreationRequest{} + this.Username = username + this.ServerId = serverId + return &this +} + +// NewModelsSSHLogonsLogonCreationRequestWithDefaults instantiates a new ModelsSSHLogonsLogonCreationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsSSHLogonsLogonCreationRequestWithDefaults() *ModelsSSHLogonsLogonCreationRequest { + this := ModelsSSHLogonsLogonCreationRequest{} + return &this +} + +// GetUsername returns the Username field value +func (o *ModelsSSHLogonsLogonCreationRequest) GetUsername() string { + if o == nil { + var ret string + return ret + } + + return o.Username +} + +// GetUsernameOk returns a tuple with the Username field value +// and a boolean to check if the value has been set. +func (o *ModelsSSHLogonsLogonCreationRequest) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Username, true +} + +// SetUsername sets field value +func (o *ModelsSSHLogonsLogonCreationRequest) SetUsername(v string) { + o.Username = v +} + +// GetServerId returns the ServerId field value +func (o *ModelsSSHLogonsLogonCreationRequest) GetServerId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.ServerId +} + +// GetServerIdOk returns a tuple with the ServerId field value +// and a boolean to check if the value has been set. +func (o *ModelsSSHLogonsLogonCreationRequest) GetServerIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.ServerId, true +} + +// SetServerId sets field value +func (o *ModelsSSHLogonsLogonCreationRequest) SetServerId(v int32) { + o.ServerId = v +} + +// GetUserIds returns the UserIds field value if set, zero value otherwise. +func (o *ModelsSSHLogonsLogonCreationRequest) GetUserIds() []int32 { + if o == nil || isNil(o.UserIds) { + var ret []int32 + return ret + } + return o.UserIds +} + +// GetUserIdsOk returns a tuple with the UserIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHLogonsLogonCreationRequest) GetUserIdsOk() ([]int32, bool) { + if o == nil || isNil(o.UserIds) { + return nil, false + } + return o.UserIds, true +} + +// HasUserIds returns a boolean if a field has been set. +func (o *ModelsSSHLogonsLogonCreationRequest) HasUserIds() bool { + if o != nil && !isNil(o.UserIds) { + return true + } + + return false +} + +// SetUserIds gets a reference to the given []int32 and assigns it to the UserIds field. +func (o *ModelsSSHLogonsLogonCreationRequest) SetUserIds(v []int32) { + o.UserIds = v +} + +func (o ModelsSSHLogonsLogonCreationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsSSHLogonsLogonCreationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Username"] = o.Username + toSerialize["ServerId"] = o.ServerId + if !isNil(o.UserIds) { + toSerialize["UserIds"] = o.UserIds + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsSSHLogonsLogonCreationRequest) UnmarshalJSON(bytes []byte) (err error) { + varModelsSSHLogonsLogonCreationRequest := _ModelsSSHLogonsLogonCreationRequest{} + + if err = json.Unmarshal(bytes, &varModelsSSHLogonsLogonCreationRequest); err == nil { + *o = ModelsSSHLogonsLogonCreationRequest(varModelsSSHLogonsLogonCreationRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Username") + delete(additionalProperties, "ServerId") + delete(additionalProperties, "UserIds") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsSSHLogonsLogonCreationRequest struct { + value *ModelsSSHLogonsLogonCreationRequest + isSet bool +} + +func (v NullableModelsSSHLogonsLogonCreationRequest) Get() *ModelsSSHLogonsLogonCreationRequest { + return v.value +} + +func (v *NullableModelsSSHLogonsLogonCreationRequest) Set(val *ModelsSSHLogonsLogonCreationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableModelsSSHLogonsLogonCreationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsSSHLogonsLogonCreationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsSSHLogonsLogonCreationRequest(val *ModelsSSHLogonsLogonCreationRequest) *NullableModelsSSHLogonsLogonCreationRequest { + return &NullableModelsSSHLogonsLogonCreationRequest{value: val, isSet: true} +} + +func (v NullableModelsSSHLogonsLogonCreationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsSSHLogonsLogonCreationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_ssh_logons_logon_query_response.go b/v1/api/keyfactor/model_models_ssh_logons_logon_query_response.go new file mode 100644 index 0000000..dcc1b66 --- /dev/null +++ b/v1/api/keyfactor/model_models_ssh_logons_logon_query_response.go @@ -0,0 +1,418 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" + "time" +) + +// checks if the ModelsSSHLogonsLogonQueryResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsSSHLogonsLogonQueryResponse{} + +// ModelsSSHLogonsLogonQueryResponse struct for ModelsSSHLogonsLogonQueryResponse +type ModelsSSHLogonsLogonQueryResponse struct { + Id *int32 `json:"Id,omitempty"` + Username *string `json:"Username,omitempty"` + LastLogon *time.Time `json:"LastLogon,omitempty"` + ServerId *int32 `json:"ServerId,omitempty"` + ServerName *string `json:"ServerName,omitempty"` + GroupName *string `json:"GroupName,omitempty"` + KeyCount *int32 `json:"KeyCount,omitempty"` + ServerUnderManagement *bool `json:"ServerUnderManagement,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsSSHLogonsLogonQueryResponse ModelsSSHLogonsLogonQueryResponse + +// NewModelsSSHLogonsLogonQueryResponse instantiates a new ModelsSSHLogonsLogonQueryResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsSSHLogonsLogonQueryResponse() *ModelsSSHLogonsLogonQueryResponse { + this := ModelsSSHLogonsLogonQueryResponse{} + return &this +} + +// NewModelsSSHLogonsLogonQueryResponseWithDefaults instantiates a new ModelsSSHLogonsLogonQueryResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsSSHLogonsLogonQueryResponseWithDefaults() *ModelsSSHLogonsLogonQueryResponse { + this := ModelsSSHLogonsLogonQueryResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ModelsSSHLogonsLogonQueryResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHLogonsLogonQueryResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ModelsSSHLogonsLogonQueryResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *ModelsSSHLogonsLogonQueryResponse) SetId(v int32) { + o.Id = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *ModelsSSHLogonsLogonQueryResponse) GetUsername() string { + if o == nil || isNil(o.Username) { + var ret string + return ret + } + return *o.Username +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHLogonsLogonQueryResponse) GetUsernameOk() (*string, bool) { + if o == nil || isNil(o.Username) { + return nil, false + } + return o.Username, true +} + +// HasUsername returns a boolean if a field has been set. +func (o *ModelsSSHLogonsLogonQueryResponse) HasUsername() bool { + if o != nil && !isNil(o.Username) { + return true + } + + return false +} + +// SetUsername gets a reference to the given string and assigns it to the Username field. +func (o *ModelsSSHLogonsLogonQueryResponse) SetUsername(v string) { + o.Username = &v +} + +// GetLastLogon returns the LastLogon field value if set, zero value otherwise. +func (o *ModelsSSHLogonsLogonQueryResponse) GetLastLogon() time.Time { + if o == nil || isNil(o.LastLogon) { + var ret time.Time + return ret + } + return *o.LastLogon +} + +// GetLastLogonOk returns a tuple with the LastLogon field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHLogonsLogonQueryResponse) GetLastLogonOk() (*time.Time, bool) { + if o == nil || isNil(o.LastLogon) { + return nil, false + } + return o.LastLogon, true +} + +// HasLastLogon returns a boolean if a field has been set. +func (o *ModelsSSHLogonsLogonQueryResponse) HasLastLogon() bool { + if o != nil && !isNil(o.LastLogon) { + return true + } + + return false +} + +// SetLastLogon gets a reference to the given time.Time and assigns it to the LastLogon field. +func (o *ModelsSSHLogonsLogonQueryResponse) SetLastLogon(v time.Time) { + o.LastLogon = &v +} + +// GetServerId returns the ServerId field value if set, zero value otherwise. +func (o *ModelsSSHLogonsLogonQueryResponse) GetServerId() int32 { + if o == nil || isNil(o.ServerId) { + var ret int32 + return ret + } + return *o.ServerId +} + +// GetServerIdOk returns a tuple with the ServerId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHLogonsLogonQueryResponse) GetServerIdOk() (*int32, bool) { + if o == nil || isNil(o.ServerId) { + return nil, false + } + return o.ServerId, true +} + +// HasServerId returns a boolean if a field has been set. +func (o *ModelsSSHLogonsLogonQueryResponse) HasServerId() bool { + if o != nil && !isNil(o.ServerId) { + return true + } + + return false +} + +// SetServerId gets a reference to the given int32 and assigns it to the ServerId field. +func (o *ModelsSSHLogonsLogonQueryResponse) SetServerId(v int32) { + o.ServerId = &v +} + +// GetServerName returns the ServerName field value if set, zero value otherwise. +func (o *ModelsSSHLogonsLogonQueryResponse) GetServerName() string { + if o == nil || isNil(o.ServerName) { + var ret string + return ret + } + return *o.ServerName +} + +// GetServerNameOk returns a tuple with the ServerName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHLogonsLogonQueryResponse) GetServerNameOk() (*string, bool) { + if o == nil || isNil(o.ServerName) { + return nil, false + } + return o.ServerName, true +} + +// HasServerName returns a boolean if a field has been set. +func (o *ModelsSSHLogonsLogonQueryResponse) HasServerName() bool { + if o != nil && !isNil(o.ServerName) { + return true + } + + return false +} + +// SetServerName gets a reference to the given string and assigns it to the ServerName field. +func (o *ModelsSSHLogonsLogonQueryResponse) SetServerName(v string) { + o.ServerName = &v +} + +// GetGroupName returns the GroupName field value if set, zero value otherwise. +func (o *ModelsSSHLogonsLogonQueryResponse) GetGroupName() string { + if o == nil || isNil(o.GroupName) { + var ret string + return ret + } + return *o.GroupName +} + +// GetGroupNameOk returns a tuple with the GroupName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHLogonsLogonQueryResponse) GetGroupNameOk() (*string, bool) { + if o == nil || isNil(o.GroupName) { + return nil, false + } + return o.GroupName, true +} + +// HasGroupName returns a boolean if a field has been set. +func (o *ModelsSSHLogonsLogonQueryResponse) HasGroupName() bool { + if o != nil && !isNil(o.GroupName) { + return true + } + + return false +} + +// SetGroupName gets a reference to the given string and assigns it to the GroupName field. +func (o *ModelsSSHLogonsLogonQueryResponse) SetGroupName(v string) { + o.GroupName = &v +} + +// GetKeyCount returns the KeyCount field value if set, zero value otherwise. +func (o *ModelsSSHLogonsLogonQueryResponse) GetKeyCount() int32 { + if o == nil || isNil(o.KeyCount) { + var ret int32 + return ret + } + return *o.KeyCount +} + +// GetKeyCountOk returns a tuple with the KeyCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHLogonsLogonQueryResponse) GetKeyCountOk() (*int32, bool) { + if o == nil || isNil(o.KeyCount) { + return nil, false + } + return o.KeyCount, true +} + +// HasKeyCount returns a boolean if a field has been set. +func (o *ModelsSSHLogonsLogonQueryResponse) HasKeyCount() bool { + if o != nil && !isNil(o.KeyCount) { + return true + } + + return false +} + +// SetKeyCount gets a reference to the given int32 and assigns it to the KeyCount field. +func (o *ModelsSSHLogonsLogonQueryResponse) SetKeyCount(v int32) { + o.KeyCount = &v +} + +// GetServerUnderManagement returns the ServerUnderManagement field value if set, zero value otherwise. +func (o *ModelsSSHLogonsLogonQueryResponse) GetServerUnderManagement() bool { + if o == nil || isNil(o.ServerUnderManagement) { + var ret bool + return ret + } + return *o.ServerUnderManagement +} + +// GetServerUnderManagementOk returns a tuple with the ServerUnderManagement field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHLogonsLogonQueryResponse) GetServerUnderManagementOk() (*bool, bool) { + if o == nil || isNil(o.ServerUnderManagement) { + return nil, false + } + return o.ServerUnderManagement, true +} + +// HasServerUnderManagement returns a boolean if a field has been set. +func (o *ModelsSSHLogonsLogonQueryResponse) HasServerUnderManagement() bool { + if o != nil && !isNil(o.ServerUnderManagement) { + return true + } + + return false +} + +// SetServerUnderManagement gets a reference to the given bool and assigns it to the ServerUnderManagement field. +func (o *ModelsSSHLogonsLogonQueryResponse) SetServerUnderManagement(v bool) { + o.ServerUnderManagement = &v +} + +func (o ModelsSSHLogonsLogonQueryResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsSSHLogonsLogonQueryResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.Username) { + toSerialize["Username"] = o.Username + } + if !isNil(o.LastLogon) { + toSerialize["LastLogon"] = o.LastLogon + } + if !isNil(o.ServerId) { + toSerialize["ServerId"] = o.ServerId + } + if !isNil(o.ServerName) { + toSerialize["ServerName"] = o.ServerName + } + if !isNil(o.GroupName) { + toSerialize["GroupName"] = o.GroupName + } + if !isNil(o.KeyCount) { + toSerialize["KeyCount"] = o.KeyCount + } + if !isNil(o.ServerUnderManagement) { + toSerialize["ServerUnderManagement"] = o.ServerUnderManagement + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsSSHLogonsLogonQueryResponse) UnmarshalJSON(bytes []byte) (err error) { + varModelsSSHLogonsLogonQueryResponse := _ModelsSSHLogonsLogonQueryResponse{} + + if err = json.Unmarshal(bytes, &varModelsSSHLogonsLogonQueryResponse); err == nil { + *o = ModelsSSHLogonsLogonQueryResponse(varModelsSSHLogonsLogonQueryResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "Username") + delete(additionalProperties, "LastLogon") + delete(additionalProperties, "ServerId") + delete(additionalProperties, "ServerName") + delete(additionalProperties, "GroupName") + delete(additionalProperties, "KeyCount") + delete(additionalProperties, "ServerUnderManagement") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsSSHLogonsLogonQueryResponse struct { + value *ModelsSSHLogonsLogonQueryResponse + isSet bool +} + +func (v NullableModelsSSHLogonsLogonQueryResponse) Get() *ModelsSSHLogonsLogonQueryResponse { + return v.value +} + +func (v *NullableModelsSSHLogonsLogonQueryResponse) Set(val *ModelsSSHLogonsLogonQueryResponse) { + v.value = val + v.isSet = true +} + +func (v NullableModelsSSHLogonsLogonQueryResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsSSHLogonsLogonQueryResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsSSHLogonsLogonQueryResponse(val *ModelsSSHLogonsLogonQueryResponse) *NullableModelsSSHLogonsLogonQueryResponse { + return &NullableModelsSSHLogonsLogonQueryResponse{value: val, isSet: true} +} + +func (v NullableModelsSSHLogonsLogonQueryResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsSSHLogonsLogonQueryResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_ssh_logons_logon_response.go b/v1/api/keyfactor/model_models_ssh_logons_logon_response.go new file mode 100644 index 0000000..00c4cf7 --- /dev/null +++ b/v1/api/keyfactor/model_models_ssh_logons_logon_response.go @@ -0,0 +1,344 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" + "time" +) + +// checks if the ModelsSSHLogonsLogonResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsSSHLogonsLogonResponse{} + +// ModelsSSHLogonsLogonResponse struct for ModelsSSHLogonsLogonResponse +type ModelsSSHLogonsLogonResponse struct { + Id *int32 `json:"Id,omitempty"` + Username *string `json:"Username,omitempty"` + LastLogon *time.Time `json:"LastLogon,omitempty"` + Server *ModelsSSHServersServerResponse `json:"Server,omitempty"` + KeyCount *int32 `json:"KeyCount,omitempty"` + Access []ModelsSSHUsersSshUserResponse `json:"Access,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsSSHLogonsLogonResponse ModelsSSHLogonsLogonResponse + +// NewModelsSSHLogonsLogonResponse instantiates a new ModelsSSHLogonsLogonResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsSSHLogonsLogonResponse() *ModelsSSHLogonsLogonResponse { + this := ModelsSSHLogonsLogonResponse{} + return &this +} + +// NewModelsSSHLogonsLogonResponseWithDefaults instantiates a new ModelsSSHLogonsLogonResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsSSHLogonsLogonResponseWithDefaults() *ModelsSSHLogonsLogonResponse { + this := ModelsSSHLogonsLogonResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ModelsSSHLogonsLogonResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHLogonsLogonResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ModelsSSHLogonsLogonResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *ModelsSSHLogonsLogonResponse) SetId(v int32) { + o.Id = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *ModelsSSHLogonsLogonResponse) GetUsername() string { + if o == nil || isNil(o.Username) { + var ret string + return ret + } + return *o.Username +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHLogonsLogonResponse) GetUsernameOk() (*string, bool) { + if o == nil || isNil(o.Username) { + return nil, false + } + return o.Username, true +} + +// HasUsername returns a boolean if a field has been set. +func (o *ModelsSSHLogonsLogonResponse) HasUsername() bool { + if o != nil && !isNil(o.Username) { + return true + } + + return false +} + +// SetUsername gets a reference to the given string and assigns it to the Username field. +func (o *ModelsSSHLogonsLogonResponse) SetUsername(v string) { + o.Username = &v +} + +// GetLastLogon returns the LastLogon field value if set, zero value otherwise. +func (o *ModelsSSHLogonsLogonResponse) GetLastLogon() time.Time { + if o == nil || isNil(o.LastLogon) { + var ret time.Time + return ret + } + return *o.LastLogon +} + +// GetLastLogonOk returns a tuple with the LastLogon field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHLogonsLogonResponse) GetLastLogonOk() (*time.Time, bool) { + if o == nil || isNil(o.LastLogon) { + return nil, false + } + return o.LastLogon, true +} + +// HasLastLogon returns a boolean if a field has been set. +func (o *ModelsSSHLogonsLogonResponse) HasLastLogon() bool { + if o != nil && !isNil(o.LastLogon) { + return true + } + + return false +} + +// SetLastLogon gets a reference to the given time.Time and assigns it to the LastLogon field. +func (o *ModelsSSHLogonsLogonResponse) SetLastLogon(v time.Time) { + o.LastLogon = &v +} + +// GetServer returns the Server field value if set, zero value otherwise. +func (o *ModelsSSHLogonsLogonResponse) GetServer() ModelsSSHServersServerResponse { + if o == nil || isNil(o.Server) { + var ret ModelsSSHServersServerResponse + return ret + } + return *o.Server +} + +// GetServerOk returns a tuple with the Server field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHLogonsLogonResponse) GetServerOk() (*ModelsSSHServersServerResponse, bool) { + if o == nil || isNil(o.Server) { + return nil, false + } + return o.Server, true +} + +// HasServer returns a boolean if a field has been set. +func (o *ModelsSSHLogonsLogonResponse) HasServer() bool { + if o != nil && !isNil(o.Server) { + return true + } + + return false +} + +// SetServer gets a reference to the given ModelsSSHServersServerResponse and assigns it to the Server field. +func (o *ModelsSSHLogonsLogonResponse) SetServer(v ModelsSSHServersServerResponse) { + o.Server = &v +} + +// GetKeyCount returns the KeyCount field value if set, zero value otherwise. +func (o *ModelsSSHLogonsLogonResponse) GetKeyCount() int32 { + if o == nil || isNil(o.KeyCount) { + var ret int32 + return ret + } + return *o.KeyCount +} + +// GetKeyCountOk returns a tuple with the KeyCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHLogonsLogonResponse) GetKeyCountOk() (*int32, bool) { + if o == nil || isNil(o.KeyCount) { + return nil, false + } + return o.KeyCount, true +} + +// HasKeyCount returns a boolean if a field has been set. +func (o *ModelsSSHLogonsLogonResponse) HasKeyCount() bool { + if o != nil && !isNil(o.KeyCount) { + return true + } + + return false +} + +// SetKeyCount gets a reference to the given int32 and assigns it to the KeyCount field. +func (o *ModelsSSHLogonsLogonResponse) SetKeyCount(v int32) { + o.KeyCount = &v +} + +// GetAccess returns the Access field value if set, zero value otherwise. +func (o *ModelsSSHLogonsLogonResponse) GetAccess() []ModelsSSHUsersSshUserResponse { + if o == nil || isNil(o.Access) { + var ret []ModelsSSHUsersSshUserResponse + return ret + } + return o.Access +} + +// GetAccessOk returns a tuple with the Access field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHLogonsLogonResponse) GetAccessOk() ([]ModelsSSHUsersSshUserResponse, bool) { + if o == nil || isNil(o.Access) { + return nil, false + } + return o.Access, true +} + +// HasAccess returns a boolean if a field has been set. +func (o *ModelsSSHLogonsLogonResponse) HasAccess() bool { + if o != nil && !isNil(o.Access) { + return true + } + + return false +} + +// SetAccess gets a reference to the given []ModelsSSHUsersSshUserResponse and assigns it to the Access field. +func (o *ModelsSSHLogonsLogonResponse) SetAccess(v []ModelsSSHUsersSshUserResponse) { + o.Access = v +} + +func (o ModelsSSHLogonsLogonResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsSSHLogonsLogonResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.Username) { + toSerialize["Username"] = o.Username + } + if !isNil(o.LastLogon) { + toSerialize["LastLogon"] = o.LastLogon + } + if !isNil(o.Server) { + toSerialize["Server"] = o.Server + } + if !isNil(o.KeyCount) { + toSerialize["KeyCount"] = o.KeyCount + } + if !isNil(o.Access) { + toSerialize["Access"] = o.Access + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsSSHLogonsLogonResponse) UnmarshalJSON(bytes []byte) (err error) { + varModelsSSHLogonsLogonResponse := _ModelsSSHLogonsLogonResponse{} + + if err = json.Unmarshal(bytes, &varModelsSSHLogonsLogonResponse); err == nil { + *o = ModelsSSHLogonsLogonResponse(varModelsSSHLogonsLogonResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "Username") + delete(additionalProperties, "LastLogon") + delete(additionalProperties, "Server") + delete(additionalProperties, "KeyCount") + delete(additionalProperties, "Access") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsSSHLogonsLogonResponse struct { + value *ModelsSSHLogonsLogonResponse + isSet bool +} + +func (v NullableModelsSSHLogonsLogonResponse) Get() *ModelsSSHLogonsLogonResponse { + return v.value +} + +func (v *NullableModelsSSHLogonsLogonResponse) Set(val *ModelsSSHLogonsLogonResponse) { + v.value = val + v.isSet = true +} + +func (v NullableModelsSSHLogonsLogonResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsSSHLogonsLogonResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsSSHLogonsLogonResponse(val *ModelsSSHLogonsLogonResponse) *NullableModelsSSHLogonsLogonResponse { + return &NullableModelsSSHLogonsLogonResponse{value: val, isSet: true} +} + +func (v NullableModelsSSHLogonsLogonResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsSSHLogonsLogonResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_ssh_server_groups_server_group_creation_request.go b/v1/api/keyfactor/model_models_ssh_server_groups_server_group_creation_request.go new file mode 100644 index 0000000..64f935a --- /dev/null +++ b/v1/api/keyfactor/model_models_ssh_server_groups_server_group_creation_request.go @@ -0,0 +1,251 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsSSHServerGroupsServerGroupCreationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsSSHServerGroupsServerGroupCreationRequest{} + +// ModelsSSHServerGroupsServerGroupCreationRequest struct for ModelsSSHServerGroupsServerGroupCreationRequest +type ModelsSSHServerGroupsServerGroupCreationRequest struct { + OwnerName string `json:"OwnerName"` + GroupName string `json:"GroupName"` + SyncSchedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"SyncSchedule,omitempty"` + UnderManagement *bool `json:"UnderManagement,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsSSHServerGroupsServerGroupCreationRequest ModelsSSHServerGroupsServerGroupCreationRequest + +// NewModelsSSHServerGroupsServerGroupCreationRequest instantiates a new ModelsSSHServerGroupsServerGroupCreationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsSSHServerGroupsServerGroupCreationRequest(ownerName string, groupName string) *ModelsSSHServerGroupsServerGroupCreationRequest { + this := ModelsSSHServerGroupsServerGroupCreationRequest{} + this.OwnerName = ownerName + this.GroupName = groupName + return &this +} + +// NewModelsSSHServerGroupsServerGroupCreationRequestWithDefaults instantiates a new ModelsSSHServerGroupsServerGroupCreationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsSSHServerGroupsServerGroupCreationRequestWithDefaults() *ModelsSSHServerGroupsServerGroupCreationRequest { + this := ModelsSSHServerGroupsServerGroupCreationRequest{} + return &this +} + +// GetOwnerName returns the OwnerName field value +func (o *ModelsSSHServerGroupsServerGroupCreationRequest) GetOwnerName() string { + if o == nil { + var ret string + return ret + } + + return o.OwnerName +} + +// GetOwnerNameOk returns a tuple with the OwnerName field value +// and a boolean to check if the value has been set. +func (o *ModelsSSHServerGroupsServerGroupCreationRequest) GetOwnerNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OwnerName, true +} + +// SetOwnerName sets field value +func (o *ModelsSSHServerGroupsServerGroupCreationRequest) SetOwnerName(v string) { + o.OwnerName = v +} + +// GetGroupName returns the GroupName field value +func (o *ModelsSSHServerGroupsServerGroupCreationRequest) GetGroupName() string { + if o == nil { + var ret string + return ret + } + + return o.GroupName +} + +// GetGroupNameOk returns a tuple with the GroupName field value +// and a boolean to check if the value has been set. +func (o *ModelsSSHServerGroupsServerGroupCreationRequest) GetGroupNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.GroupName, true +} + +// SetGroupName sets field value +func (o *ModelsSSHServerGroupsServerGroupCreationRequest) SetGroupName(v string) { + o.GroupName = v +} + +// GetSyncSchedule returns the SyncSchedule field value if set, zero value otherwise. +func (o *ModelsSSHServerGroupsServerGroupCreationRequest) GetSyncSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.SyncSchedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.SyncSchedule +} + +// GetSyncScheduleOk returns a tuple with the SyncSchedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHServerGroupsServerGroupCreationRequest) GetSyncScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.SyncSchedule) { + return nil, false + } + return o.SyncSchedule, true +} + +// HasSyncSchedule returns a boolean if a field has been set. +func (o *ModelsSSHServerGroupsServerGroupCreationRequest) HasSyncSchedule() bool { + if o != nil && !isNil(o.SyncSchedule) { + return true + } + + return false +} + +// SetSyncSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the SyncSchedule field. +func (o *ModelsSSHServerGroupsServerGroupCreationRequest) SetSyncSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.SyncSchedule = &v +} + +// GetUnderManagement returns the UnderManagement field value if set, zero value otherwise. +func (o *ModelsSSHServerGroupsServerGroupCreationRequest) GetUnderManagement() bool { + if o == nil || isNil(o.UnderManagement) { + var ret bool + return ret + } + return *o.UnderManagement +} + +// GetUnderManagementOk returns a tuple with the UnderManagement field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHServerGroupsServerGroupCreationRequest) GetUnderManagementOk() (*bool, bool) { + if o == nil || isNil(o.UnderManagement) { + return nil, false + } + return o.UnderManagement, true +} + +// HasUnderManagement returns a boolean if a field has been set. +func (o *ModelsSSHServerGroupsServerGroupCreationRequest) HasUnderManagement() bool { + if o != nil && !isNil(o.UnderManagement) { + return true + } + + return false +} + +// SetUnderManagement gets a reference to the given bool and assigns it to the UnderManagement field. +func (o *ModelsSSHServerGroupsServerGroupCreationRequest) SetUnderManagement(v bool) { + o.UnderManagement = &v +} + +func (o ModelsSSHServerGroupsServerGroupCreationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsSSHServerGroupsServerGroupCreationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["OwnerName"] = o.OwnerName + toSerialize["GroupName"] = o.GroupName + if !isNil(o.SyncSchedule) { + toSerialize["SyncSchedule"] = o.SyncSchedule + } + if !isNil(o.UnderManagement) { + toSerialize["UnderManagement"] = o.UnderManagement + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsSSHServerGroupsServerGroupCreationRequest) UnmarshalJSON(bytes []byte) (err error) { + varModelsSSHServerGroupsServerGroupCreationRequest := _ModelsSSHServerGroupsServerGroupCreationRequest{} + + if err = json.Unmarshal(bytes, &varModelsSSHServerGroupsServerGroupCreationRequest); err == nil { + *o = ModelsSSHServerGroupsServerGroupCreationRequest(varModelsSSHServerGroupsServerGroupCreationRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "OwnerName") + delete(additionalProperties, "GroupName") + delete(additionalProperties, "SyncSchedule") + delete(additionalProperties, "UnderManagement") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsSSHServerGroupsServerGroupCreationRequest struct { + value *ModelsSSHServerGroupsServerGroupCreationRequest + isSet bool +} + +func (v NullableModelsSSHServerGroupsServerGroupCreationRequest) Get() *ModelsSSHServerGroupsServerGroupCreationRequest { + return v.value +} + +func (v *NullableModelsSSHServerGroupsServerGroupCreationRequest) Set(val *ModelsSSHServerGroupsServerGroupCreationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableModelsSSHServerGroupsServerGroupCreationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsSSHServerGroupsServerGroupCreationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsSSHServerGroupsServerGroupCreationRequest(val *ModelsSSHServerGroupsServerGroupCreationRequest) *NullableModelsSSHServerGroupsServerGroupCreationRequest { + return &NullableModelsSSHServerGroupsServerGroupCreationRequest{value: val, isSet: true} +} + +func (v NullableModelsSSHServerGroupsServerGroupCreationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsSSHServerGroupsServerGroupCreationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_ssh_server_groups_server_group_response.go b/v1/api/keyfactor/model_models_ssh_server_groups_server_group_response.go new file mode 100644 index 0000000..c213b7d --- /dev/null +++ b/v1/api/keyfactor/model_models_ssh_server_groups_server_group_response.go @@ -0,0 +1,343 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsSSHServerGroupsServerGroupResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsSSHServerGroupsServerGroupResponse{} + +// ModelsSSHServerGroupsServerGroupResponse struct for ModelsSSHServerGroupsServerGroupResponse +type ModelsSSHServerGroupsServerGroupResponse struct { + Id *string `json:"Id,omitempty"` + Owner *ModelsSSHUsersSshUserResponse `json:"Owner,omitempty"` + GroupName *string `json:"GroupName,omitempty"` + SyncSchedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"SyncSchedule,omitempty"` + UnderManagement *bool `json:"UnderManagement,omitempty"` + ServerCount *int32 `json:"ServerCount,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsSSHServerGroupsServerGroupResponse ModelsSSHServerGroupsServerGroupResponse + +// NewModelsSSHServerGroupsServerGroupResponse instantiates a new ModelsSSHServerGroupsServerGroupResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsSSHServerGroupsServerGroupResponse() *ModelsSSHServerGroupsServerGroupResponse { + this := ModelsSSHServerGroupsServerGroupResponse{} + return &this +} + +// NewModelsSSHServerGroupsServerGroupResponseWithDefaults instantiates a new ModelsSSHServerGroupsServerGroupResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsSSHServerGroupsServerGroupResponseWithDefaults() *ModelsSSHServerGroupsServerGroupResponse { + this := ModelsSSHServerGroupsServerGroupResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ModelsSSHServerGroupsServerGroupResponse) GetId() string { + if o == nil || isNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHServerGroupsServerGroupResponse) GetIdOk() (*string, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ModelsSSHServerGroupsServerGroupResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *ModelsSSHServerGroupsServerGroupResponse) SetId(v string) { + o.Id = &v +} + +// GetOwner returns the Owner field value if set, zero value otherwise. +func (o *ModelsSSHServerGroupsServerGroupResponse) GetOwner() ModelsSSHUsersSshUserResponse { + if o == nil || isNil(o.Owner) { + var ret ModelsSSHUsersSshUserResponse + return ret + } + return *o.Owner +} + +// GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHServerGroupsServerGroupResponse) GetOwnerOk() (*ModelsSSHUsersSshUserResponse, bool) { + if o == nil || isNil(o.Owner) { + return nil, false + } + return o.Owner, true +} + +// HasOwner returns a boolean if a field has been set. +func (o *ModelsSSHServerGroupsServerGroupResponse) HasOwner() bool { + if o != nil && !isNil(o.Owner) { + return true + } + + return false +} + +// SetOwner gets a reference to the given ModelsSSHUsersSshUserResponse and assigns it to the Owner field. +func (o *ModelsSSHServerGroupsServerGroupResponse) SetOwner(v ModelsSSHUsersSshUserResponse) { + o.Owner = &v +} + +// GetGroupName returns the GroupName field value if set, zero value otherwise. +func (o *ModelsSSHServerGroupsServerGroupResponse) GetGroupName() string { + if o == nil || isNil(o.GroupName) { + var ret string + return ret + } + return *o.GroupName +} + +// GetGroupNameOk returns a tuple with the GroupName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHServerGroupsServerGroupResponse) GetGroupNameOk() (*string, bool) { + if o == nil || isNil(o.GroupName) { + return nil, false + } + return o.GroupName, true +} + +// HasGroupName returns a boolean if a field has been set. +func (o *ModelsSSHServerGroupsServerGroupResponse) HasGroupName() bool { + if o != nil && !isNil(o.GroupName) { + return true + } + + return false +} + +// SetGroupName gets a reference to the given string and assigns it to the GroupName field. +func (o *ModelsSSHServerGroupsServerGroupResponse) SetGroupName(v string) { + o.GroupName = &v +} + +// GetSyncSchedule returns the SyncSchedule field value if set, zero value otherwise. +func (o *ModelsSSHServerGroupsServerGroupResponse) GetSyncSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.SyncSchedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.SyncSchedule +} + +// GetSyncScheduleOk returns a tuple with the SyncSchedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHServerGroupsServerGroupResponse) GetSyncScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.SyncSchedule) { + return nil, false + } + return o.SyncSchedule, true +} + +// HasSyncSchedule returns a boolean if a field has been set. +func (o *ModelsSSHServerGroupsServerGroupResponse) HasSyncSchedule() bool { + if o != nil && !isNil(o.SyncSchedule) { + return true + } + + return false +} + +// SetSyncSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the SyncSchedule field. +func (o *ModelsSSHServerGroupsServerGroupResponse) SetSyncSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.SyncSchedule = &v +} + +// GetUnderManagement returns the UnderManagement field value if set, zero value otherwise. +func (o *ModelsSSHServerGroupsServerGroupResponse) GetUnderManagement() bool { + if o == nil || isNil(o.UnderManagement) { + var ret bool + return ret + } + return *o.UnderManagement +} + +// GetUnderManagementOk returns a tuple with the UnderManagement field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHServerGroupsServerGroupResponse) GetUnderManagementOk() (*bool, bool) { + if o == nil || isNil(o.UnderManagement) { + return nil, false + } + return o.UnderManagement, true +} + +// HasUnderManagement returns a boolean if a field has been set. +func (o *ModelsSSHServerGroupsServerGroupResponse) HasUnderManagement() bool { + if o != nil && !isNil(o.UnderManagement) { + return true + } + + return false +} + +// SetUnderManagement gets a reference to the given bool and assigns it to the UnderManagement field. +func (o *ModelsSSHServerGroupsServerGroupResponse) SetUnderManagement(v bool) { + o.UnderManagement = &v +} + +// GetServerCount returns the ServerCount field value if set, zero value otherwise. +func (o *ModelsSSHServerGroupsServerGroupResponse) GetServerCount() int32 { + if o == nil || isNil(o.ServerCount) { + var ret int32 + return ret + } + return *o.ServerCount +} + +// GetServerCountOk returns a tuple with the ServerCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHServerGroupsServerGroupResponse) GetServerCountOk() (*int32, bool) { + if o == nil || isNil(o.ServerCount) { + return nil, false + } + return o.ServerCount, true +} + +// HasServerCount returns a boolean if a field has been set. +func (o *ModelsSSHServerGroupsServerGroupResponse) HasServerCount() bool { + if o != nil && !isNil(o.ServerCount) { + return true + } + + return false +} + +// SetServerCount gets a reference to the given int32 and assigns it to the ServerCount field. +func (o *ModelsSSHServerGroupsServerGroupResponse) SetServerCount(v int32) { + o.ServerCount = &v +} + +func (o ModelsSSHServerGroupsServerGroupResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsSSHServerGroupsServerGroupResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.Owner) { + toSerialize["Owner"] = o.Owner + } + if !isNil(o.GroupName) { + toSerialize["GroupName"] = o.GroupName + } + if !isNil(o.SyncSchedule) { + toSerialize["SyncSchedule"] = o.SyncSchedule + } + if !isNil(o.UnderManagement) { + toSerialize["UnderManagement"] = o.UnderManagement + } + if !isNil(o.ServerCount) { + toSerialize["ServerCount"] = o.ServerCount + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsSSHServerGroupsServerGroupResponse) UnmarshalJSON(bytes []byte) (err error) { + varModelsSSHServerGroupsServerGroupResponse := _ModelsSSHServerGroupsServerGroupResponse{} + + if err = json.Unmarshal(bytes, &varModelsSSHServerGroupsServerGroupResponse); err == nil { + *o = ModelsSSHServerGroupsServerGroupResponse(varModelsSSHServerGroupsServerGroupResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "Owner") + delete(additionalProperties, "GroupName") + delete(additionalProperties, "SyncSchedule") + delete(additionalProperties, "UnderManagement") + delete(additionalProperties, "ServerCount") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsSSHServerGroupsServerGroupResponse struct { + value *ModelsSSHServerGroupsServerGroupResponse + isSet bool +} + +func (v NullableModelsSSHServerGroupsServerGroupResponse) Get() *ModelsSSHServerGroupsServerGroupResponse { + return v.value +} + +func (v *NullableModelsSSHServerGroupsServerGroupResponse) Set(val *ModelsSSHServerGroupsServerGroupResponse) { + v.value = val + v.isSet = true +} + +func (v NullableModelsSSHServerGroupsServerGroupResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsSSHServerGroupsServerGroupResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsSSHServerGroupsServerGroupResponse(val *ModelsSSHServerGroupsServerGroupResponse) *NullableModelsSSHServerGroupsServerGroupResponse { + return &NullableModelsSSHServerGroupsServerGroupResponse{value: val, isSet: true} +} + +func (v NullableModelsSSHServerGroupsServerGroupResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsSSHServerGroupsServerGroupResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_ssh_server_groups_server_group_update_request.go b/v1/api/keyfactor/model_models_ssh_server_groups_server_group_update_request.go new file mode 100644 index 0000000..ed5de29 --- /dev/null +++ b/v1/api/keyfactor/model_models_ssh_server_groups_server_group_update_request.go @@ -0,0 +1,270 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsSSHServerGroupsServerGroupUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsSSHServerGroupsServerGroupUpdateRequest{} + +// ModelsSSHServerGroupsServerGroupUpdateRequest struct for ModelsSSHServerGroupsServerGroupUpdateRequest +type ModelsSSHServerGroupsServerGroupUpdateRequest struct { + Id string `json:"Id"` + OwnerName string `json:"OwnerName"` + GroupName string `json:"GroupName"` + SyncSchedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"SyncSchedule,omitempty"` + UnderManagement bool `json:"UnderManagement"` + AdditionalProperties map[string]interface{} +} + +type _ModelsSSHServerGroupsServerGroupUpdateRequest ModelsSSHServerGroupsServerGroupUpdateRequest + +// NewModelsSSHServerGroupsServerGroupUpdateRequest instantiates a new ModelsSSHServerGroupsServerGroupUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsSSHServerGroupsServerGroupUpdateRequest(id string, ownerName string, groupName string, underManagement bool) *ModelsSSHServerGroupsServerGroupUpdateRequest { + this := ModelsSSHServerGroupsServerGroupUpdateRequest{} + this.Id = id + this.OwnerName = ownerName + this.GroupName = groupName + this.UnderManagement = underManagement + return &this +} + +// NewModelsSSHServerGroupsServerGroupUpdateRequestWithDefaults instantiates a new ModelsSSHServerGroupsServerGroupUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsSSHServerGroupsServerGroupUpdateRequestWithDefaults() *ModelsSSHServerGroupsServerGroupUpdateRequest { + this := ModelsSSHServerGroupsServerGroupUpdateRequest{} + return &this +} + +// GetId returns the Id field value +func (o *ModelsSSHServerGroupsServerGroupUpdateRequest) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *ModelsSSHServerGroupsServerGroupUpdateRequest) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ModelsSSHServerGroupsServerGroupUpdateRequest) SetId(v string) { + o.Id = v +} + +// GetOwnerName returns the OwnerName field value +func (o *ModelsSSHServerGroupsServerGroupUpdateRequest) GetOwnerName() string { + if o == nil { + var ret string + return ret + } + + return o.OwnerName +} + +// GetOwnerNameOk returns a tuple with the OwnerName field value +// and a boolean to check if the value has been set. +func (o *ModelsSSHServerGroupsServerGroupUpdateRequest) GetOwnerNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OwnerName, true +} + +// SetOwnerName sets field value +func (o *ModelsSSHServerGroupsServerGroupUpdateRequest) SetOwnerName(v string) { + o.OwnerName = v +} + +// GetGroupName returns the GroupName field value +func (o *ModelsSSHServerGroupsServerGroupUpdateRequest) GetGroupName() string { + if o == nil { + var ret string + return ret + } + + return o.GroupName +} + +// GetGroupNameOk returns a tuple with the GroupName field value +// and a boolean to check if the value has been set. +func (o *ModelsSSHServerGroupsServerGroupUpdateRequest) GetGroupNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.GroupName, true +} + +// SetGroupName sets field value +func (o *ModelsSSHServerGroupsServerGroupUpdateRequest) SetGroupName(v string) { + o.GroupName = v +} + +// GetSyncSchedule returns the SyncSchedule field value if set, zero value otherwise. +func (o *ModelsSSHServerGroupsServerGroupUpdateRequest) GetSyncSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.SyncSchedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.SyncSchedule +} + +// GetSyncScheduleOk returns a tuple with the SyncSchedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHServerGroupsServerGroupUpdateRequest) GetSyncScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.SyncSchedule) { + return nil, false + } + return o.SyncSchedule, true +} + +// HasSyncSchedule returns a boolean if a field has been set. +func (o *ModelsSSHServerGroupsServerGroupUpdateRequest) HasSyncSchedule() bool { + if o != nil && !isNil(o.SyncSchedule) { + return true + } + + return false +} + +// SetSyncSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the SyncSchedule field. +func (o *ModelsSSHServerGroupsServerGroupUpdateRequest) SetSyncSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.SyncSchedule = &v +} + +// GetUnderManagement returns the UnderManagement field value +func (o *ModelsSSHServerGroupsServerGroupUpdateRequest) GetUnderManagement() bool { + if o == nil { + var ret bool + return ret + } + + return o.UnderManagement +} + +// GetUnderManagementOk returns a tuple with the UnderManagement field value +// and a boolean to check if the value has been set. +func (o *ModelsSSHServerGroupsServerGroupUpdateRequest) GetUnderManagementOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.UnderManagement, true +} + +// SetUnderManagement sets field value +func (o *ModelsSSHServerGroupsServerGroupUpdateRequest) SetUnderManagement(v bool) { + o.UnderManagement = v +} + +func (o ModelsSSHServerGroupsServerGroupUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsSSHServerGroupsServerGroupUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Id"] = o.Id + toSerialize["OwnerName"] = o.OwnerName + toSerialize["GroupName"] = o.GroupName + if !isNil(o.SyncSchedule) { + toSerialize["SyncSchedule"] = o.SyncSchedule + } + toSerialize["UnderManagement"] = o.UnderManagement + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsSSHServerGroupsServerGroupUpdateRequest) UnmarshalJSON(bytes []byte) (err error) { + varModelsSSHServerGroupsServerGroupUpdateRequest := _ModelsSSHServerGroupsServerGroupUpdateRequest{} + + if err = json.Unmarshal(bytes, &varModelsSSHServerGroupsServerGroupUpdateRequest); err == nil { + *o = ModelsSSHServerGroupsServerGroupUpdateRequest(varModelsSSHServerGroupsServerGroupUpdateRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "OwnerName") + delete(additionalProperties, "GroupName") + delete(additionalProperties, "SyncSchedule") + delete(additionalProperties, "UnderManagement") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsSSHServerGroupsServerGroupUpdateRequest struct { + value *ModelsSSHServerGroupsServerGroupUpdateRequest + isSet bool +} + +func (v NullableModelsSSHServerGroupsServerGroupUpdateRequest) Get() *ModelsSSHServerGroupsServerGroupUpdateRequest { + return v.value +} + +func (v *NullableModelsSSHServerGroupsServerGroupUpdateRequest) Set(val *ModelsSSHServerGroupsServerGroupUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableModelsSSHServerGroupsServerGroupUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsSSHServerGroupsServerGroupUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsSSHServerGroupsServerGroupUpdateRequest(val *ModelsSSHServerGroupsServerGroupUpdateRequest) *NullableModelsSSHServerGroupsServerGroupUpdateRequest { + return &NullableModelsSSHServerGroupsServerGroupUpdateRequest{value: val, isSet: true} +} + +func (v NullableModelsSSHServerGroupsServerGroupUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsSSHServerGroupsServerGroupUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_ssh_servers_server_creation_request.go b/v1/api/keyfactor/model_models_ssh_servers_server_creation_request.go new file mode 100644 index 0000000..801ede2 --- /dev/null +++ b/v1/api/keyfactor/model_models_ssh_servers_server_creation_request.go @@ -0,0 +1,279 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsSSHServersServerCreationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsSSHServersServerCreationRequest{} + +// ModelsSSHServersServerCreationRequest struct for ModelsSSHServersServerCreationRequest +type ModelsSSHServersServerCreationRequest struct { + AgentId string `json:"AgentId"` + Hostname string `json:"Hostname"` + ServerGroupId string `json:"ServerGroupId"` + UnderManagement *bool `json:"UnderManagement,omitempty"` + Port *int32 `json:"Port,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsSSHServersServerCreationRequest ModelsSSHServersServerCreationRequest + +// NewModelsSSHServersServerCreationRequest instantiates a new ModelsSSHServersServerCreationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsSSHServersServerCreationRequest(agentId string, hostname string, serverGroupId string) *ModelsSSHServersServerCreationRequest { + this := ModelsSSHServersServerCreationRequest{} + this.AgentId = agentId + this.Hostname = hostname + this.ServerGroupId = serverGroupId + return &this +} + +// NewModelsSSHServersServerCreationRequestWithDefaults instantiates a new ModelsSSHServersServerCreationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsSSHServersServerCreationRequestWithDefaults() *ModelsSSHServersServerCreationRequest { + this := ModelsSSHServersServerCreationRequest{} + return &this +} + +// GetAgentId returns the AgentId field value +func (o *ModelsSSHServersServerCreationRequest) GetAgentId() string { + if o == nil { + var ret string + return ret + } + + return o.AgentId +} + +// GetAgentIdOk returns a tuple with the AgentId field value +// and a boolean to check if the value has been set. +func (o *ModelsSSHServersServerCreationRequest) GetAgentIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AgentId, true +} + +// SetAgentId sets field value +func (o *ModelsSSHServersServerCreationRequest) SetAgentId(v string) { + o.AgentId = v +} + +// GetHostname returns the Hostname field value +func (o *ModelsSSHServersServerCreationRequest) GetHostname() string { + if o == nil { + var ret string + return ret + } + + return o.Hostname +} + +// GetHostnameOk returns a tuple with the Hostname field value +// and a boolean to check if the value has been set. +func (o *ModelsSSHServersServerCreationRequest) GetHostnameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Hostname, true +} + +// SetHostname sets field value +func (o *ModelsSSHServersServerCreationRequest) SetHostname(v string) { + o.Hostname = v +} + +// GetServerGroupId returns the ServerGroupId field value +func (o *ModelsSSHServersServerCreationRequest) GetServerGroupId() string { + if o == nil { + var ret string + return ret + } + + return o.ServerGroupId +} + +// GetServerGroupIdOk returns a tuple with the ServerGroupId field value +// and a boolean to check if the value has been set. +func (o *ModelsSSHServersServerCreationRequest) GetServerGroupIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ServerGroupId, true +} + +// SetServerGroupId sets field value +func (o *ModelsSSHServersServerCreationRequest) SetServerGroupId(v string) { + o.ServerGroupId = v +} + +// GetUnderManagement returns the UnderManagement field value if set, zero value otherwise. +func (o *ModelsSSHServersServerCreationRequest) GetUnderManagement() bool { + if o == nil || isNil(o.UnderManagement) { + var ret bool + return ret + } + return *o.UnderManagement +} + +// GetUnderManagementOk returns a tuple with the UnderManagement field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHServersServerCreationRequest) GetUnderManagementOk() (*bool, bool) { + if o == nil || isNil(o.UnderManagement) { + return nil, false + } + return o.UnderManagement, true +} + +// HasUnderManagement returns a boolean if a field has been set. +func (o *ModelsSSHServersServerCreationRequest) HasUnderManagement() bool { + if o != nil && !isNil(o.UnderManagement) { + return true + } + + return false +} + +// SetUnderManagement gets a reference to the given bool and assigns it to the UnderManagement field. +func (o *ModelsSSHServersServerCreationRequest) SetUnderManagement(v bool) { + o.UnderManagement = &v +} + +// GetPort returns the Port field value if set, zero value otherwise. +func (o *ModelsSSHServersServerCreationRequest) GetPort() int32 { + if o == nil || isNil(o.Port) { + var ret int32 + return ret + } + return *o.Port +} + +// GetPortOk returns a tuple with the Port field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHServersServerCreationRequest) GetPortOk() (*int32, bool) { + if o == nil || isNil(o.Port) { + return nil, false + } + return o.Port, true +} + +// HasPort returns a boolean if a field has been set. +func (o *ModelsSSHServersServerCreationRequest) HasPort() bool { + if o != nil && !isNil(o.Port) { + return true + } + + return false +} + +// SetPort gets a reference to the given int32 and assigns it to the Port field. +func (o *ModelsSSHServersServerCreationRequest) SetPort(v int32) { + o.Port = &v +} + +func (o ModelsSSHServersServerCreationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsSSHServersServerCreationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["AgentId"] = o.AgentId + toSerialize["Hostname"] = o.Hostname + toSerialize["ServerGroupId"] = o.ServerGroupId + if !isNil(o.UnderManagement) { + toSerialize["UnderManagement"] = o.UnderManagement + } + if !isNil(o.Port) { + toSerialize["Port"] = o.Port + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsSSHServersServerCreationRequest) UnmarshalJSON(bytes []byte) (err error) { + varModelsSSHServersServerCreationRequest := _ModelsSSHServersServerCreationRequest{} + + if err = json.Unmarshal(bytes, &varModelsSSHServersServerCreationRequest); err == nil { + *o = ModelsSSHServersServerCreationRequest(varModelsSSHServersServerCreationRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "AgentId") + delete(additionalProperties, "Hostname") + delete(additionalProperties, "ServerGroupId") + delete(additionalProperties, "UnderManagement") + delete(additionalProperties, "Port") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsSSHServersServerCreationRequest struct { + value *ModelsSSHServersServerCreationRequest + isSet bool +} + +func (v NullableModelsSSHServersServerCreationRequest) Get() *ModelsSSHServersServerCreationRequest { + return v.value +} + +func (v *NullableModelsSSHServersServerCreationRequest) Set(val *ModelsSSHServersServerCreationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableModelsSSHServersServerCreationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsSSHServersServerCreationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsSSHServersServerCreationRequest(val *ModelsSSHServersServerCreationRequest) *NullableModelsSSHServersServerCreationRequest { + return &NullableModelsSSHServersServerCreationRequest{value: val, isSet: true} +} + +func (v NullableModelsSSHServersServerCreationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsSSHServersServerCreationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_ssh_servers_server_response.go b/v1/api/keyfactor/model_models_ssh_servers_server_response.go new file mode 100644 index 0000000..336d485 --- /dev/null +++ b/v1/api/keyfactor/model_models_ssh_servers_server_response.go @@ -0,0 +1,491 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsSSHServersServerResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsSSHServersServerResponse{} + +// ModelsSSHServersServerResponse struct for ModelsSSHServersServerResponse +type ModelsSSHServersServerResponse struct { + Id *int32 `json:"Id,omitempty"` + AgentId *string `json:"AgentId,omitempty"` + Hostname *string `json:"Hostname,omitempty"` + ServerGroupId *string `json:"ServerGroupId,omitempty"` + SyncSchedule *KeyfactorCommonSchedulingKeyfactorSchedule `json:"SyncSchedule,omitempty"` + UnderManagement *bool `json:"UnderManagement,omitempty"` + Owner *ModelsSSHUsersSshUserResponse `json:"Owner,omitempty"` + GroupName *string `json:"GroupName,omitempty"` + Orchestrator *string `json:"Orchestrator,omitempty"` + Port *int32 `json:"Port,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsSSHServersServerResponse ModelsSSHServersServerResponse + +// NewModelsSSHServersServerResponse instantiates a new ModelsSSHServersServerResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsSSHServersServerResponse() *ModelsSSHServersServerResponse { + this := ModelsSSHServersServerResponse{} + return &this +} + +// NewModelsSSHServersServerResponseWithDefaults instantiates a new ModelsSSHServersServerResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsSSHServersServerResponseWithDefaults() *ModelsSSHServersServerResponse { + this := ModelsSSHServersServerResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ModelsSSHServersServerResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHServersServerResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ModelsSSHServersServerResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *ModelsSSHServersServerResponse) SetId(v int32) { + o.Id = &v +} + +// GetAgentId returns the AgentId field value if set, zero value otherwise. +func (o *ModelsSSHServersServerResponse) GetAgentId() string { + if o == nil || isNil(o.AgentId) { + var ret string + return ret + } + return *o.AgentId +} + +// GetAgentIdOk returns a tuple with the AgentId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHServersServerResponse) GetAgentIdOk() (*string, bool) { + if o == nil || isNil(o.AgentId) { + return nil, false + } + return o.AgentId, true +} + +// HasAgentId returns a boolean if a field has been set. +func (o *ModelsSSHServersServerResponse) HasAgentId() bool { + if o != nil && !isNil(o.AgentId) { + return true + } + + return false +} + +// SetAgentId gets a reference to the given string and assigns it to the AgentId field. +func (o *ModelsSSHServersServerResponse) SetAgentId(v string) { + o.AgentId = &v +} + +// GetHostname returns the Hostname field value if set, zero value otherwise. +func (o *ModelsSSHServersServerResponse) GetHostname() string { + if o == nil || isNil(o.Hostname) { + var ret string + return ret + } + return *o.Hostname +} + +// GetHostnameOk returns a tuple with the Hostname field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHServersServerResponse) GetHostnameOk() (*string, bool) { + if o == nil || isNil(o.Hostname) { + return nil, false + } + return o.Hostname, true +} + +// HasHostname returns a boolean if a field has been set. +func (o *ModelsSSHServersServerResponse) HasHostname() bool { + if o != nil && !isNil(o.Hostname) { + return true + } + + return false +} + +// SetHostname gets a reference to the given string and assigns it to the Hostname field. +func (o *ModelsSSHServersServerResponse) SetHostname(v string) { + o.Hostname = &v +} + +// GetServerGroupId returns the ServerGroupId field value if set, zero value otherwise. +func (o *ModelsSSHServersServerResponse) GetServerGroupId() string { + if o == nil || isNil(o.ServerGroupId) { + var ret string + return ret + } + return *o.ServerGroupId +} + +// GetServerGroupIdOk returns a tuple with the ServerGroupId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHServersServerResponse) GetServerGroupIdOk() (*string, bool) { + if o == nil || isNil(o.ServerGroupId) { + return nil, false + } + return o.ServerGroupId, true +} + +// HasServerGroupId returns a boolean if a field has been set. +func (o *ModelsSSHServersServerResponse) HasServerGroupId() bool { + if o != nil && !isNil(o.ServerGroupId) { + return true + } + + return false +} + +// SetServerGroupId gets a reference to the given string and assigns it to the ServerGroupId field. +func (o *ModelsSSHServersServerResponse) SetServerGroupId(v string) { + o.ServerGroupId = &v +} + +// GetSyncSchedule returns the SyncSchedule field value if set, zero value otherwise. +func (o *ModelsSSHServersServerResponse) GetSyncSchedule() KeyfactorCommonSchedulingKeyfactorSchedule { + if o == nil || isNil(o.SyncSchedule) { + var ret KeyfactorCommonSchedulingKeyfactorSchedule + return ret + } + return *o.SyncSchedule +} + +// GetSyncScheduleOk returns a tuple with the SyncSchedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHServersServerResponse) GetSyncScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool) { + if o == nil || isNil(o.SyncSchedule) { + return nil, false + } + return o.SyncSchedule, true +} + +// HasSyncSchedule returns a boolean if a field has been set. +func (o *ModelsSSHServersServerResponse) HasSyncSchedule() bool { + if o != nil && !isNil(o.SyncSchedule) { + return true + } + + return false +} + +// SetSyncSchedule gets a reference to the given KeyfactorCommonSchedulingKeyfactorSchedule and assigns it to the SyncSchedule field. +func (o *ModelsSSHServersServerResponse) SetSyncSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule) { + o.SyncSchedule = &v +} + +// GetUnderManagement returns the UnderManagement field value if set, zero value otherwise. +func (o *ModelsSSHServersServerResponse) GetUnderManagement() bool { + if o == nil || isNil(o.UnderManagement) { + var ret bool + return ret + } + return *o.UnderManagement +} + +// GetUnderManagementOk returns a tuple with the UnderManagement field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHServersServerResponse) GetUnderManagementOk() (*bool, bool) { + if o == nil || isNil(o.UnderManagement) { + return nil, false + } + return o.UnderManagement, true +} + +// HasUnderManagement returns a boolean if a field has been set. +func (o *ModelsSSHServersServerResponse) HasUnderManagement() bool { + if o != nil && !isNil(o.UnderManagement) { + return true + } + + return false +} + +// SetUnderManagement gets a reference to the given bool and assigns it to the UnderManagement field. +func (o *ModelsSSHServersServerResponse) SetUnderManagement(v bool) { + o.UnderManagement = &v +} + +// GetOwner returns the Owner field value if set, zero value otherwise. +func (o *ModelsSSHServersServerResponse) GetOwner() ModelsSSHUsersSshUserResponse { + if o == nil || isNil(o.Owner) { + var ret ModelsSSHUsersSshUserResponse + return ret + } + return *o.Owner +} + +// GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHServersServerResponse) GetOwnerOk() (*ModelsSSHUsersSshUserResponse, bool) { + if o == nil || isNil(o.Owner) { + return nil, false + } + return o.Owner, true +} + +// HasOwner returns a boolean if a field has been set. +func (o *ModelsSSHServersServerResponse) HasOwner() bool { + if o != nil && !isNil(o.Owner) { + return true + } + + return false +} + +// SetOwner gets a reference to the given ModelsSSHUsersSshUserResponse and assigns it to the Owner field. +func (o *ModelsSSHServersServerResponse) SetOwner(v ModelsSSHUsersSshUserResponse) { + o.Owner = &v +} + +// GetGroupName returns the GroupName field value if set, zero value otherwise. +func (o *ModelsSSHServersServerResponse) GetGroupName() string { + if o == nil || isNil(o.GroupName) { + var ret string + return ret + } + return *o.GroupName +} + +// GetGroupNameOk returns a tuple with the GroupName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHServersServerResponse) GetGroupNameOk() (*string, bool) { + if o == nil || isNil(o.GroupName) { + return nil, false + } + return o.GroupName, true +} + +// HasGroupName returns a boolean if a field has been set. +func (o *ModelsSSHServersServerResponse) HasGroupName() bool { + if o != nil && !isNil(o.GroupName) { + return true + } + + return false +} + +// SetGroupName gets a reference to the given string and assigns it to the GroupName field. +func (o *ModelsSSHServersServerResponse) SetGroupName(v string) { + o.GroupName = &v +} + +// GetOrchestrator returns the Orchestrator field value if set, zero value otherwise. +func (o *ModelsSSHServersServerResponse) GetOrchestrator() string { + if o == nil || isNil(o.Orchestrator) { + var ret string + return ret + } + return *o.Orchestrator +} + +// GetOrchestratorOk returns a tuple with the Orchestrator field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHServersServerResponse) GetOrchestratorOk() (*string, bool) { + if o == nil || isNil(o.Orchestrator) { + return nil, false + } + return o.Orchestrator, true +} + +// HasOrchestrator returns a boolean if a field has been set. +func (o *ModelsSSHServersServerResponse) HasOrchestrator() bool { + if o != nil && !isNil(o.Orchestrator) { + return true + } + + return false +} + +// SetOrchestrator gets a reference to the given string and assigns it to the Orchestrator field. +func (o *ModelsSSHServersServerResponse) SetOrchestrator(v string) { + o.Orchestrator = &v +} + +// GetPort returns the Port field value if set, zero value otherwise. +func (o *ModelsSSHServersServerResponse) GetPort() int32 { + if o == nil || isNil(o.Port) { + var ret int32 + return ret + } + return *o.Port +} + +// GetPortOk returns a tuple with the Port field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHServersServerResponse) GetPortOk() (*int32, bool) { + if o == nil || isNil(o.Port) { + return nil, false + } + return o.Port, true +} + +// HasPort returns a boolean if a field has been set. +func (o *ModelsSSHServersServerResponse) HasPort() bool { + if o != nil && !isNil(o.Port) { + return true + } + + return false +} + +// SetPort gets a reference to the given int32 and assigns it to the Port field. +func (o *ModelsSSHServersServerResponse) SetPort(v int32) { + o.Port = &v +} + +func (o ModelsSSHServersServerResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsSSHServersServerResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.AgentId) { + toSerialize["AgentId"] = o.AgentId + } + if !isNil(o.Hostname) { + toSerialize["Hostname"] = o.Hostname + } + if !isNil(o.ServerGroupId) { + toSerialize["ServerGroupId"] = o.ServerGroupId + } + if !isNil(o.SyncSchedule) { + toSerialize["SyncSchedule"] = o.SyncSchedule + } + if !isNil(o.UnderManagement) { + toSerialize["UnderManagement"] = o.UnderManagement + } + if !isNil(o.Owner) { + toSerialize["Owner"] = o.Owner + } + if !isNil(o.GroupName) { + toSerialize["GroupName"] = o.GroupName + } + if !isNil(o.Orchestrator) { + toSerialize["Orchestrator"] = o.Orchestrator + } + if !isNil(o.Port) { + toSerialize["Port"] = o.Port + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsSSHServersServerResponse) UnmarshalJSON(bytes []byte) (err error) { + varModelsSSHServersServerResponse := _ModelsSSHServersServerResponse{} + + if err = json.Unmarshal(bytes, &varModelsSSHServersServerResponse); err == nil { + *o = ModelsSSHServersServerResponse(varModelsSSHServersServerResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "AgentId") + delete(additionalProperties, "Hostname") + delete(additionalProperties, "ServerGroupId") + delete(additionalProperties, "SyncSchedule") + delete(additionalProperties, "UnderManagement") + delete(additionalProperties, "Owner") + delete(additionalProperties, "GroupName") + delete(additionalProperties, "Orchestrator") + delete(additionalProperties, "Port") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsSSHServersServerResponse struct { + value *ModelsSSHServersServerResponse + isSet bool +} + +func (v NullableModelsSSHServersServerResponse) Get() *ModelsSSHServersServerResponse { + return v.value +} + +func (v *NullableModelsSSHServersServerResponse) Set(val *ModelsSSHServersServerResponse) { + v.value = val + v.isSet = true +} + +func (v NullableModelsSSHServersServerResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsSSHServersServerResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsSSHServersServerResponse(val *ModelsSSHServersServerResponse) *NullableModelsSSHServersServerResponse { + return &NullableModelsSSHServersServerResponse{value: val, isSet: true} +} + +func (v NullableModelsSSHServersServerResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsSSHServersServerResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_ssh_servers_server_update_request.go b/v1/api/keyfactor/model_models_ssh_servers_server_update_request.go new file mode 100644 index 0000000..6d4e7e2 --- /dev/null +++ b/v1/api/keyfactor/model_models_ssh_servers_server_update_request.go @@ -0,0 +1,223 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsSSHServersServerUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsSSHServersServerUpdateRequest{} + +// ModelsSSHServersServerUpdateRequest struct for ModelsSSHServersServerUpdateRequest +type ModelsSSHServersServerUpdateRequest struct { + Id int32 `json:"Id"` + UnderManagement *bool `json:"UnderManagement,omitempty"` + Port *int32 `json:"Port,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsSSHServersServerUpdateRequest ModelsSSHServersServerUpdateRequest + +// NewModelsSSHServersServerUpdateRequest instantiates a new ModelsSSHServersServerUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsSSHServersServerUpdateRequest(id int32) *ModelsSSHServersServerUpdateRequest { + this := ModelsSSHServersServerUpdateRequest{} + this.Id = id + return &this +} + +// NewModelsSSHServersServerUpdateRequestWithDefaults instantiates a new ModelsSSHServersServerUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsSSHServersServerUpdateRequestWithDefaults() *ModelsSSHServersServerUpdateRequest { + this := ModelsSSHServersServerUpdateRequest{} + return &this +} + +// GetId returns the Id field value +func (o *ModelsSSHServersServerUpdateRequest) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *ModelsSSHServersServerUpdateRequest) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ModelsSSHServersServerUpdateRequest) SetId(v int32) { + o.Id = v +} + +// GetUnderManagement returns the UnderManagement field value if set, zero value otherwise. +func (o *ModelsSSHServersServerUpdateRequest) GetUnderManagement() bool { + if o == nil || isNil(o.UnderManagement) { + var ret bool + return ret + } + return *o.UnderManagement +} + +// GetUnderManagementOk returns a tuple with the UnderManagement field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHServersServerUpdateRequest) GetUnderManagementOk() (*bool, bool) { + if o == nil || isNil(o.UnderManagement) { + return nil, false + } + return o.UnderManagement, true +} + +// HasUnderManagement returns a boolean if a field has been set. +func (o *ModelsSSHServersServerUpdateRequest) HasUnderManagement() bool { + if o != nil && !isNil(o.UnderManagement) { + return true + } + + return false +} + +// SetUnderManagement gets a reference to the given bool and assigns it to the UnderManagement field. +func (o *ModelsSSHServersServerUpdateRequest) SetUnderManagement(v bool) { + o.UnderManagement = &v +} + +// GetPort returns the Port field value if set, zero value otherwise. +func (o *ModelsSSHServersServerUpdateRequest) GetPort() int32 { + if o == nil || isNil(o.Port) { + var ret int32 + return ret + } + return *o.Port +} + +// GetPortOk returns a tuple with the Port field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHServersServerUpdateRequest) GetPortOk() (*int32, bool) { + if o == nil || isNil(o.Port) { + return nil, false + } + return o.Port, true +} + +// HasPort returns a boolean if a field has been set. +func (o *ModelsSSHServersServerUpdateRequest) HasPort() bool { + if o != nil && !isNil(o.Port) { + return true + } + + return false +} + +// SetPort gets a reference to the given int32 and assigns it to the Port field. +func (o *ModelsSSHServersServerUpdateRequest) SetPort(v int32) { + o.Port = &v +} + +func (o ModelsSSHServersServerUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsSSHServersServerUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Id"] = o.Id + if !isNil(o.UnderManagement) { + toSerialize["UnderManagement"] = o.UnderManagement + } + if !isNil(o.Port) { + toSerialize["Port"] = o.Port + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsSSHServersServerUpdateRequest) UnmarshalJSON(bytes []byte) (err error) { + varModelsSSHServersServerUpdateRequest := _ModelsSSHServersServerUpdateRequest{} + + if err = json.Unmarshal(bytes, &varModelsSSHServersServerUpdateRequest); err == nil { + *o = ModelsSSHServersServerUpdateRequest(varModelsSSHServersServerUpdateRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "UnderManagement") + delete(additionalProperties, "Port") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsSSHServersServerUpdateRequest struct { + value *ModelsSSHServersServerUpdateRequest + isSet bool +} + +func (v NullableModelsSSHServersServerUpdateRequest) Get() *ModelsSSHServersServerUpdateRequest { + return v.value +} + +func (v *NullableModelsSSHServersServerUpdateRequest) Set(val *ModelsSSHServersServerUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableModelsSSHServersServerUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsSSHServersServerUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsSSHServersServerUpdateRequest(val *ModelsSSHServersServerUpdateRequest) *NullableModelsSSHServersServerUpdateRequest { + return &NullableModelsSSHServersServerUpdateRequest{value: val, isSet: true} +} + +func (v NullableModelsSSHServersServerUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsSSHServersServerUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_ssh_service_accounts_service_account_creation_request.go b/v1/api/keyfactor/model_models_ssh_service_accounts_service_account_creation_request.go new file mode 100644 index 0000000..30909ef --- /dev/null +++ b/v1/api/keyfactor/model_models_ssh_service_accounts_service_account_creation_request.go @@ -0,0 +1,233 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsSSHServiceAccountsServiceAccountCreationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsSSHServiceAccountsServiceAccountCreationRequest{} + +// ModelsSSHServiceAccountsServiceAccountCreationRequest struct for ModelsSSHServiceAccountsServiceAccountCreationRequest +type ModelsSSHServiceAccountsServiceAccountCreationRequest struct { + KeyGenerationRequest ModelsSSHKeysKeyGenerationRequest `json:"KeyGenerationRequest"` + User ModelsSSHServiceAccountsServiceAccountUserCreationRequest `json:"User"` + ClientHostname string `json:"ClientHostname"` + ServerGroupId string `json:"ServerGroupId"` + AdditionalProperties map[string]interface{} +} + +type _ModelsSSHServiceAccountsServiceAccountCreationRequest ModelsSSHServiceAccountsServiceAccountCreationRequest + +// NewModelsSSHServiceAccountsServiceAccountCreationRequest instantiates a new ModelsSSHServiceAccountsServiceAccountCreationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsSSHServiceAccountsServiceAccountCreationRequest(keyGenerationRequest ModelsSSHKeysKeyGenerationRequest, user ModelsSSHServiceAccountsServiceAccountUserCreationRequest, clientHostname string, serverGroupId string) *ModelsSSHServiceAccountsServiceAccountCreationRequest { + this := ModelsSSHServiceAccountsServiceAccountCreationRequest{} + this.KeyGenerationRequest = keyGenerationRequest + this.User = user + this.ClientHostname = clientHostname + this.ServerGroupId = serverGroupId + return &this +} + +// NewModelsSSHServiceAccountsServiceAccountCreationRequestWithDefaults instantiates a new ModelsSSHServiceAccountsServiceAccountCreationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsSSHServiceAccountsServiceAccountCreationRequestWithDefaults() *ModelsSSHServiceAccountsServiceAccountCreationRequest { + this := ModelsSSHServiceAccountsServiceAccountCreationRequest{} + return &this +} + +// GetKeyGenerationRequest returns the KeyGenerationRequest field value +func (o *ModelsSSHServiceAccountsServiceAccountCreationRequest) GetKeyGenerationRequest() ModelsSSHKeysKeyGenerationRequest { + if o == nil { + var ret ModelsSSHKeysKeyGenerationRequest + return ret + } + + return o.KeyGenerationRequest +} + +// GetKeyGenerationRequestOk returns a tuple with the KeyGenerationRequest field value +// and a boolean to check if the value has been set. +func (o *ModelsSSHServiceAccountsServiceAccountCreationRequest) GetKeyGenerationRequestOk() (*ModelsSSHKeysKeyGenerationRequest, bool) { + if o == nil { + return nil, false + } + return &o.KeyGenerationRequest, true +} + +// SetKeyGenerationRequest sets field value +func (o *ModelsSSHServiceAccountsServiceAccountCreationRequest) SetKeyGenerationRequest(v ModelsSSHKeysKeyGenerationRequest) { + o.KeyGenerationRequest = v +} + +// GetUser returns the User field value +func (o *ModelsSSHServiceAccountsServiceAccountCreationRequest) GetUser() ModelsSSHServiceAccountsServiceAccountUserCreationRequest { + if o == nil { + var ret ModelsSSHServiceAccountsServiceAccountUserCreationRequest + return ret + } + + return o.User +} + +// GetUserOk returns a tuple with the User field value +// and a boolean to check if the value has been set. +func (o *ModelsSSHServiceAccountsServiceAccountCreationRequest) GetUserOk() (*ModelsSSHServiceAccountsServiceAccountUserCreationRequest, bool) { + if o == nil { + return nil, false + } + return &o.User, true +} + +// SetUser sets field value +func (o *ModelsSSHServiceAccountsServiceAccountCreationRequest) SetUser(v ModelsSSHServiceAccountsServiceAccountUserCreationRequest) { + o.User = v +} + +// GetClientHostname returns the ClientHostname field value +func (o *ModelsSSHServiceAccountsServiceAccountCreationRequest) GetClientHostname() string { + if o == nil { + var ret string + return ret + } + + return o.ClientHostname +} + +// GetClientHostnameOk returns a tuple with the ClientHostname field value +// and a boolean to check if the value has been set. +func (o *ModelsSSHServiceAccountsServiceAccountCreationRequest) GetClientHostnameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClientHostname, true +} + +// SetClientHostname sets field value +func (o *ModelsSSHServiceAccountsServiceAccountCreationRequest) SetClientHostname(v string) { + o.ClientHostname = v +} + +// GetServerGroupId returns the ServerGroupId field value +func (o *ModelsSSHServiceAccountsServiceAccountCreationRequest) GetServerGroupId() string { + if o == nil { + var ret string + return ret + } + + return o.ServerGroupId +} + +// GetServerGroupIdOk returns a tuple with the ServerGroupId field value +// and a boolean to check if the value has been set. +func (o *ModelsSSHServiceAccountsServiceAccountCreationRequest) GetServerGroupIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ServerGroupId, true +} + +// SetServerGroupId sets field value +func (o *ModelsSSHServiceAccountsServiceAccountCreationRequest) SetServerGroupId(v string) { + o.ServerGroupId = v +} + +func (o ModelsSSHServiceAccountsServiceAccountCreationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsSSHServiceAccountsServiceAccountCreationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["KeyGenerationRequest"] = o.KeyGenerationRequest + toSerialize["User"] = o.User + toSerialize["ClientHostname"] = o.ClientHostname + toSerialize["ServerGroupId"] = o.ServerGroupId + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsSSHServiceAccountsServiceAccountCreationRequest) UnmarshalJSON(bytes []byte) (err error) { + varModelsSSHServiceAccountsServiceAccountCreationRequest := _ModelsSSHServiceAccountsServiceAccountCreationRequest{} + + if err = json.Unmarshal(bytes, &varModelsSSHServiceAccountsServiceAccountCreationRequest); err == nil { + *o = ModelsSSHServiceAccountsServiceAccountCreationRequest(varModelsSSHServiceAccountsServiceAccountCreationRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "KeyGenerationRequest") + delete(additionalProperties, "User") + delete(additionalProperties, "ClientHostname") + delete(additionalProperties, "ServerGroupId") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsSSHServiceAccountsServiceAccountCreationRequest struct { + value *ModelsSSHServiceAccountsServiceAccountCreationRequest + isSet bool +} + +func (v NullableModelsSSHServiceAccountsServiceAccountCreationRequest) Get() *ModelsSSHServiceAccountsServiceAccountCreationRequest { + return v.value +} + +func (v *NullableModelsSSHServiceAccountsServiceAccountCreationRequest) Set(val *ModelsSSHServiceAccountsServiceAccountCreationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableModelsSSHServiceAccountsServiceAccountCreationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsSSHServiceAccountsServiceAccountCreationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsSSHServiceAccountsServiceAccountCreationRequest(val *ModelsSSHServiceAccountsServiceAccountCreationRequest) *NullableModelsSSHServiceAccountsServiceAccountCreationRequest { + return &NullableModelsSSHServiceAccountsServiceAccountCreationRequest{value: val, isSet: true} +} + +func (v NullableModelsSSHServiceAccountsServiceAccountCreationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsSSHServiceAccountsServiceAccountCreationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_ssh_service_accounts_service_account_response.go b/v1/api/keyfactor/model_models_ssh_service_accounts_service_account_response.go new file mode 100644 index 0000000..9ea000a --- /dev/null +++ b/v1/api/keyfactor/model_models_ssh_service_accounts_service_account_response.go @@ -0,0 +1,269 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsSSHServiceAccountsServiceAccountResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsSSHServiceAccountsServiceAccountResponse{} + +// ModelsSSHServiceAccountsServiceAccountResponse struct for ModelsSSHServiceAccountsServiceAccountResponse +type ModelsSSHServiceAccountsServiceAccountResponse struct { + Id *int32 `json:"Id,omitempty"` + ClientHostname *string `json:"ClientHostname,omitempty"` + ServerGroup *ModelsSSHServerGroupsServerGroupResponse `json:"ServerGroup,omitempty"` + User *ModelsSSHUsersSshUserResponse `json:"User,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsSSHServiceAccountsServiceAccountResponse ModelsSSHServiceAccountsServiceAccountResponse + +// NewModelsSSHServiceAccountsServiceAccountResponse instantiates a new ModelsSSHServiceAccountsServiceAccountResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsSSHServiceAccountsServiceAccountResponse() *ModelsSSHServiceAccountsServiceAccountResponse { + this := ModelsSSHServiceAccountsServiceAccountResponse{} + return &this +} + +// NewModelsSSHServiceAccountsServiceAccountResponseWithDefaults instantiates a new ModelsSSHServiceAccountsServiceAccountResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsSSHServiceAccountsServiceAccountResponseWithDefaults() *ModelsSSHServiceAccountsServiceAccountResponse { + this := ModelsSSHServiceAccountsServiceAccountResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ModelsSSHServiceAccountsServiceAccountResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHServiceAccountsServiceAccountResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ModelsSSHServiceAccountsServiceAccountResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *ModelsSSHServiceAccountsServiceAccountResponse) SetId(v int32) { + o.Id = &v +} + +// GetClientHostname returns the ClientHostname field value if set, zero value otherwise. +func (o *ModelsSSHServiceAccountsServiceAccountResponse) GetClientHostname() string { + if o == nil || isNil(o.ClientHostname) { + var ret string + return ret + } + return *o.ClientHostname +} + +// GetClientHostnameOk returns a tuple with the ClientHostname field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHServiceAccountsServiceAccountResponse) GetClientHostnameOk() (*string, bool) { + if o == nil || isNil(o.ClientHostname) { + return nil, false + } + return o.ClientHostname, true +} + +// HasClientHostname returns a boolean if a field has been set. +func (o *ModelsSSHServiceAccountsServiceAccountResponse) HasClientHostname() bool { + if o != nil && !isNil(o.ClientHostname) { + return true + } + + return false +} + +// SetClientHostname gets a reference to the given string and assigns it to the ClientHostname field. +func (o *ModelsSSHServiceAccountsServiceAccountResponse) SetClientHostname(v string) { + o.ClientHostname = &v +} + +// GetServerGroup returns the ServerGroup field value if set, zero value otherwise. +func (o *ModelsSSHServiceAccountsServiceAccountResponse) GetServerGroup() ModelsSSHServerGroupsServerGroupResponse { + if o == nil || isNil(o.ServerGroup) { + var ret ModelsSSHServerGroupsServerGroupResponse + return ret + } + return *o.ServerGroup +} + +// GetServerGroupOk returns a tuple with the ServerGroup field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHServiceAccountsServiceAccountResponse) GetServerGroupOk() (*ModelsSSHServerGroupsServerGroupResponse, bool) { + if o == nil || isNil(o.ServerGroup) { + return nil, false + } + return o.ServerGroup, true +} + +// HasServerGroup returns a boolean if a field has been set. +func (o *ModelsSSHServiceAccountsServiceAccountResponse) HasServerGroup() bool { + if o != nil && !isNil(o.ServerGroup) { + return true + } + + return false +} + +// SetServerGroup gets a reference to the given ModelsSSHServerGroupsServerGroupResponse and assigns it to the ServerGroup field. +func (o *ModelsSSHServiceAccountsServiceAccountResponse) SetServerGroup(v ModelsSSHServerGroupsServerGroupResponse) { + o.ServerGroup = &v +} + +// GetUser returns the User field value if set, zero value otherwise. +func (o *ModelsSSHServiceAccountsServiceAccountResponse) GetUser() ModelsSSHUsersSshUserResponse { + if o == nil || isNil(o.User) { + var ret ModelsSSHUsersSshUserResponse + return ret + } + return *o.User +} + +// GetUserOk returns a tuple with the User field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHServiceAccountsServiceAccountResponse) GetUserOk() (*ModelsSSHUsersSshUserResponse, bool) { + if o == nil || isNil(o.User) { + return nil, false + } + return o.User, true +} + +// HasUser returns a boolean if a field has been set. +func (o *ModelsSSHServiceAccountsServiceAccountResponse) HasUser() bool { + if o != nil && !isNil(o.User) { + return true + } + + return false +} + +// SetUser gets a reference to the given ModelsSSHUsersSshUserResponse and assigns it to the User field. +func (o *ModelsSSHServiceAccountsServiceAccountResponse) SetUser(v ModelsSSHUsersSshUserResponse) { + o.User = &v +} + +func (o ModelsSSHServiceAccountsServiceAccountResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsSSHServiceAccountsServiceAccountResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.ClientHostname) { + toSerialize["ClientHostname"] = o.ClientHostname + } + if !isNil(o.ServerGroup) { + toSerialize["ServerGroup"] = o.ServerGroup + } + if !isNil(o.User) { + toSerialize["User"] = o.User + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsSSHServiceAccountsServiceAccountResponse) UnmarshalJSON(bytes []byte) (err error) { + varModelsSSHServiceAccountsServiceAccountResponse := _ModelsSSHServiceAccountsServiceAccountResponse{} + + if err = json.Unmarshal(bytes, &varModelsSSHServiceAccountsServiceAccountResponse); err == nil { + *o = ModelsSSHServiceAccountsServiceAccountResponse(varModelsSSHServiceAccountsServiceAccountResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "ClientHostname") + delete(additionalProperties, "ServerGroup") + delete(additionalProperties, "User") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsSSHServiceAccountsServiceAccountResponse struct { + value *ModelsSSHServiceAccountsServiceAccountResponse + isSet bool +} + +func (v NullableModelsSSHServiceAccountsServiceAccountResponse) Get() *ModelsSSHServiceAccountsServiceAccountResponse { + return v.value +} + +func (v *NullableModelsSSHServiceAccountsServiceAccountResponse) Set(val *ModelsSSHServiceAccountsServiceAccountResponse) { + v.value = val + v.isSet = true +} + +func (v NullableModelsSSHServiceAccountsServiceAccountResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsSSHServiceAccountsServiceAccountResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsSSHServiceAccountsServiceAccountResponse(val *ModelsSSHServiceAccountsServiceAccountResponse) *NullableModelsSSHServiceAccountsServiceAccountResponse { + return &NullableModelsSSHServiceAccountsServiceAccountResponse{value: val, isSet: true} +} + +func (v NullableModelsSSHServiceAccountsServiceAccountResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsSSHServiceAccountsServiceAccountResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_ssh_service_accounts_service_account_update_request.go b/v1/api/keyfactor/model_models_ssh_service_accounts_service_account_update_request.go new file mode 100644 index 0000000..05368a1 --- /dev/null +++ b/v1/api/keyfactor/model_models_ssh_service_accounts_service_account_update_request.go @@ -0,0 +1,177 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsSSHServiceAccountsServiceAccountUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsSSHServiceAccountsServiceAccountUpdateRequest{} + +// ModelsSSHServiceAccountsServiceAccountUpdateRequest struct for ModelsSSHServiceAccountsServiceAccountUpdateRequest +type ModelsSSHServiceAccountsServiceAccountUpdateRequest struct { + KeyUpdateRequest ModelsSSHKeysKeyUpdateRequest `json:"KeyUpdateRequest"` + Id int32 `json:"Id"` + AdditionalProperties map[string]interface{} +} + +type _ModelsSSHServiceAccountsServiceAccountUpdateRequest ModelsSSHServiceAccountsServiceAccountUpdateRequest + +// NewModelsSSHServiceAccountsServiceAccountUpdateRequest instantiates a new ModelsSSHServiceAccountsServiceAccountUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsSSHServiceAccountsServiceAccountUpdateRequest(keyUpdateRequest ModelsSSHKeysKeyUpdateRequest, id int32) *ModelsSSHServiceAccountsServiceAccountUpdateRequest { + this := ModelsSSHServiceAccountsServiceAccountUpdateRequest{} + this.KeyUpdateRequest = keyUpdateRequest + this.Id = id + return &this +} + +// NewModelsSSHServiceAccountsServiceAccountUpdateRequestWithDefaults instantiates a new ModelsSSHServiceAccountsServiceAccountUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsSSHServiceAccountsServiceAccountUpdateRequestWithDefaults() *ModelsSSHServiceAccountsServiceAccountUpdateRequest { + this := ModelsSSHServiceAccountsServiceAccountUpdateRequest{} + return &this +} + +// GetKeyUpdateRequest returns the KeyUpdateRequest field value +func (o *ModelsSSHServiceAccountsServiceAccountUpdateRequest) GetKeyUpdateRequest() ModelsSSHKeysKeyUpdateRequest { + if o == nil { + var ret ModelsSSHKeysKeyUpdateRequest + return ret + } + + return o.KeyUpdateRequest +} + +// GetKeyUpdateRequestOk returns a tuple with the KeyUpdateRequest field value +// and a boolean to check if the value has been set. +func (o *ModelsSSHServiceAccountsServiceAccountUpdateRequest) GetKeyUpdateRequestOk() (*ModelsSSHKeysKeyUpdateRequest, bool) { + if o == nil { + return nil, false + } + return &o.KeyUpdateRequest, true +} + +// SetKeyUpdateRequest sets field value +func (o *ModelsSSHServiceAccountsServiceAccountUpdateRequest) SetKeyUpdateRequest(v ModelsSSHKeysKeyUpdateRequest) { + o.KeyUpdateRequest = v +} + +// GetId returns the Id field value +func (o *ModelsSSHServiceAccountsServiceAccountUpdateRequest) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *ModelsSSHServiceAccountsServiceAccountUpdateRequest) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ModelsSSHServiceAccountsServiceAccountUpdateRequest) SetId(v int32) { + o.Id = v +} + +func (o ModelsSSHServiceAccountsServiceAccountUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsSSHServiceAccountsServiceAccountUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["KeyUpdateRequest"] = o.KeyUpdateRequest + toSerialize["Id"] = o.Id + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsSSHServiceAccountsServiceAccountUpdateRequest) UnmarshalJSON(bytes []byte) (err error) { + varModelsSSHServiceAccountsServiceAccountUpdateRequest := _ModelsSSHServiceAccountsServiceAccountUpdateRequest{} + + if err = json.Unmarshal(bytes, &varModelsSSHServiceAccountsServiceAccountUpdateRequest); err == nil { + *o = ModelsSSHServiceAccountsServiceAccountUpdateRequest(varModelsSSHServiceAccountsServiceAccountUpdateRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "KeyUpdateRequest") + delete(additionalProperties, "Id") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsSSHServiceAccountsServiceAccountUpdateRequest struct { + value *ModelsSSHServiceAccountsServiceAccountUpdateRequest + isSet bool +} + +func (v NullableModelsSSHServiceAccountsServiceAccountUpdateRequest) Get() *ModelsSSHServiceAccountsServiceAccountUpdateRequest { + return v.value +} + +func (v *NullableModelsSSHServiceAccountsServiceAccountUpdateRequest) Set(val *ModelsSSHServiceAccountsServiceAccountUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableModelsSSHServiceAccountsServiceAccountUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsSSHServiceAccountsServiceAccountUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsSSHServiceAccountsServiceAccountUpdateRequest(val *ModelsSSHServiceAccountsServiceAccountUpdateRequest) *NullableModelsSSHServiceAccountsServiceAccountUpdateRequest { + return &NullableModelsSSHServiceAccountsServiceAccountUpdateRequest{value: val, isSet: true} +} + +func (v NullableModelsSSHServiceAccountsServiceAccountUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsSSHServiceAccountsServiceAccountUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_ssh_service_accounts_service_account_user_creation_request.go b/v1/api/keyfactor/model_models_ssh_service_accounts_service_account_user_creation_request.go new file mode 100644 index 0000000..56333b5 --- /dev/null +++ b/v1/api/keyfactor/model_models_ssh_service_accounts_service_account_user_creation_request.go @@ -0,0 +1,186 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsSSHServiceAccountsServiceAccountUserCreationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsSSHServiceAccountsServiceAccountUserCreationRequest{} + +// ModelsSSHServiceAccountsServiceAccountUserCreationRequest struct for ModelsSSHServiceAccountsServiceAccountUserCreationRequest +type ModelsSSHServiceAccountsServiceAccountUserCreationRequest struct { + Username string `json:"Username"` + LogonIds []int32 `json:"LogonIds,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsSSHServiceAccountsServiceAccountUserCreationRequest ModelsSSHServiceAccountsServiceAccountUserCreationRequest + +// NewModelsSSHServiceAccountsServiceAccountUserCreationRequest instantiates a new ModelsSSHServiceAccountsServiceAccountUserCreationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsSSHServiceAccountsServiceAccountUserCreationRequest(username string) *ModelsSSHServiceAccountsServiceAccountUserCreationRequest { + this := ModelsSSHServiceAccountsServiceAccountUserCreationRequest{} + this.Username = username + return &this +} + +// NewModelsSSHServiceAccountsServiceAccountUserCreationRequestWithDefaults instantiates a new ModelsSSHServiceAccountsServiceAccountUserCreationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsSSHServiceAccountsServiceAccountUserCreationRequestWithDefaults() *ModelsSSHServiceAccountsServiceAccountUserCreationRequest { + this := ModelsSSHServiceAccountsServiceAccountUserCreationRequest{} + return &this +} + +// GetUsername returns the Username field value +func (o *ModelsSSHServiceAccountsServiceAccountUserCreationRequest) GetUsername() string { + if o == nil { + var ret string + return ret + } + + return o.Username +} + +// GetUsernameOk returns a tuple with the Username field value +// and a boolean to check if the value has been set. +func (o *ModelsSSHServiceAccountsServiceAccountUserCreationRequest) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Username, true +} + +// SetUsername sets field value +func (o *ModelsSSHServiceAccountsServiceAccountUserCreationRequest) SetUsername(v string) { + o.Username = v +} + +// GetLogonIds returns the LogonIds field value if set, zero value otherwise. +func (o *ModelsSSHServiceAccountsServiceAccountUserCreationRequest) GetLogonIds() []int32 { + if o == nil || isNil(o.LogonIds) { + var ret []int32 + return ret + } + return o.LogonIds +} + +// GetLogonIdsOk returns a tuple with the LogonIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHServiceAccountsServiceAccountUserCreationRequest) GetLogonIdsOk() ([]int32, bool) { + if o == nil || isNil(o.LogonIds) { + return nil, false + } + return o.LogonIds, true +} + +// HasLogonIds returns a boolean if a field has been set. +func (o *ModelsSSHServiceAccountsServiceAccountUserCreationRequest) HasLogonIds() bool { + if o != nil && !isNil(o.LogonIds) { + return true + } + + return false +} + +// SetLogonIds gets a reference to the given []int32 and assigns it to the LogonIds field. +func (o *ModelsSSHServiceAccountsServiceAccountUserCreationRequest) SetLogonIds(v []int32) { + o.LogonIds = v +} + +func (o ModelsSSHServiceAccountsServiceAccountUserCreationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsSSHServiceAccountsServiceAccountUserCreationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Username"] = o.Username + if !isNil(o.LogonIds) { + toSerialize["LogonIds"] = o.LogonIds + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsSSHServiceAccountsServiceAccountUserCreationRequest) UnmarshalJSON(bytes []byte) (err error) { + varModelsSSHServiceAccountsServiceAccountUserCreationRequest := _ModelsSSHServiceAccountsServiceAccountUserCreationRequest{} + + if err = json.Unmarshal(bytes, &varModelsSSHServiceAccountsServiceAccountUserCreationRequest); err == nil { + *o = ModelsSSHServiceAccountsServiceAccountUserCreationRequest(varModelsSSHServiceAccountsServiceAccountUserCreationRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Username") + delete(additionalProperties, "LogonIds") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsSSHServiceAccountsServiceAccountUserCreationRequest struct { + value *ModelsSSHServiceAccountsServiceAccountUserCreationRequest + isSet bool +} + +func (v NullableModelsSSHServiceAccountsServiceAccountUserCreationRequest) Get() *ModelsSSHServiceAccountsServiceAccountUserCreationRequest { + return v.value +} + +func (v *NullableModelsSSHServiceAccountsServiceAccountUserCreationRequest) Set(val *ModelsSSHServiceAccountsServiceAccountUserCreationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableModelsSSHServiceAccountsServiceAccountUserCreationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsSSHServiceAccountsServiceAccountUserCreationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsSSHServiceAccountsServiceAccountUserCreationRequest(val *ModelsSSHServiceAccountsServiceAccountUserCreationRequest) *NullableModelsSSHServiceAccountsServiceAccountUserCreationRequest { + return &NullableModelsSSHServiceAccountsServiceAccountUserCreationRequest{value: val, isSet: true} +} + +func (v NullableModelsSSHServiceAccountsServiceAccountUserCreationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsSSHServiceAccountsServiceAccountUserCreationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_ssh_users_ssh_user_access_response.go b/v1/api/keyfactor/model_models_ssh_users_ssh_user_access_response.go new file mode 100644 index 0000000..43090a5 --- /dev/null +++ b/v1/api/keyfactor/model_models_ssh_users_ssh_user_access_response.go @@ -0,0 +1,306 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsSSHUsersSshUserAccessResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsSSHUsersSshUserAccessResponse{} + +// ModelsSSHUsersSshUserAccessResponse struct for ModelsSSHUsersSshUserAccessResponse +type ModelsSSHUsersSshUserAccessResponse struct { + Id *int32 `json:"Id,omitempty"` + Key *ModelsSSHKeysKeyResponse `json:"Key,omitempty"` + Username *string `json:"Username,omitempty"` + Access []ModelsSSHLogonsLogonResponse `json:"Access,omitempty"` + IsGroup *bool `json:"IsGroup,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsSSHUsersSshUserAccessResponse ModelsSSHUsersSshUserAccessResponse + +// NewModelsSSHUsersSshUserAccessResponse instantiates a new ModelsSSHUsersSshUserAccessResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsSSHUsersSshUserAccessResponse() *ModelsSSHUsersSshUserAccessResponse { + this := ModelsSSHUsersSshUserAccessResponse{} + return &this +} + +// NewModelsSSHUsersSshUserAccessResponseWithDefaults instantiates a new ModelsSSHUsersSshUserAccessResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsSSHUsersSshUserAccessResponseWithDefaults() *ModelsSSHUsersSshUserAccessResponse { + this := ModelsSSHUsersSshUserAccessResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ModelsSSHUsersSshUserAccessResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHUsersSshUserAccessResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ModelsSSHUsersSshUserAccessResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *ModelsSSHUsersSshUserAccessResponse) SetId(v int32) { + o.Id = &v +} + +// GetKey returns the Key field value if set, zero value otherwise. +func (o *ModelsSSHUsersSshUserAccessResponse) GetKey() ModelsSSHKeysKeyResponse { + if o == nil || isNil(o.Key) { + var ret ModelsSSHKeysKeyResponse + return ret + } + return *o.Key +} + +// GetKeyOk returns a tuple with the Key field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHUsersSshUserAccessResponse) GetKeyOk() (*ModelsSSHKeysKeyResponse, bool) { + if o == nil || isNil(o.Key) { + return nil, false + } + return o.Key, true +} + +// HasKey returns a boolean if a field has been set. +func (o *ModelsSSHUsersSshUserAccessResponse) HasKey() bool { + if o != nil && !isNil(o.Key) { + return true + } + + return false +} + +// SetKey gets a reference to the given ModelsSSHKeysKeyResponse and assigns it to the Key field. +func (o *ModelsSSHUsersSshUserAccessResponse) SetKey(v ModelsSSHKeysKeyResponse) { + o.Key = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *ModelsSSHUsersSshUserAccessResponse) GetUsername() string { + if o == nil || isNil(o.Username) { + var ret string + return ret + } + return *o.Username +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHUsersSshUserAccessResponse) GetUsernameOk() (*string, bool) { + if o == nil || isNil(o.Username) { + return nil, false + } + return o.Username, true +} + +// HasUsername returns a boolean if a field has been set. +func (o *ModelsSSHUsersSshUserAccessResponse) HasUsername() bool { + if o != nil && !isNil(o.Username) { + return true + } + + return false +} + +// SetUsername gets a reference to the given string and assigns it to the Username field. +func (o *ModelsSSHUsersSshUserAccessResponse) SetUsername(v string) { + o.Username = &v +} + +// GetAccess returns the Access field value if set, zero value otherwise. +func (o *ModelsSSHUsersSshUserAccessResponse) GetAccess() []ModelsSSHLogonsLogonResponse { + if o == nil || isNil(o.Access) { + var ret []ModelsSSHLogonsLogonResponse + return ret + } + return o.Access +} + +// GetAccessOk returns a tuple with the Access field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHUsersSshUserAccessResponse) GetAccessOk() ([]ModelsSSHLogonsLogonResponse, bool) { + if o == nil || isNil(o.Access) { + return nil, false + } + return o.Access, true +} + +// HasAccess returns a boolean if a field has been set. +func (o *ModelsSSHUsersSshUserAccessResponse) HasAccess() bool { + if o != nil && !isNil(o.Access) { + return true + } + + return false +} + +// SetAccess gets a reference to the given []ModelsSSHLogonsLogonResponse and assigns it to the Access field. +func (o *ModelsSSHUsersSshUserAccessResponse) SetAccess(v []ModelsSSHLogonsLogonResponse) { + o.Access = v +} + +// GetIsGroup returns the IsGroup field value if set, zero value otherwise. +func (o *ModelsSSHUsersSshUserAccessResponse) GetIsGroup() bool { + if o == nil || isNil(o.IsGroup) { + var ret bool + return ret + } + return *o.IsGroup +} + +// GetIsGroupOk returns a tuple with the IsGroup field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHUsersSshUserAccessResponse) GetIsGroupOk() (*bool, bool) { + if o == nil || isNil(o.IsGroup) { + return nil, false + } + return o.IsGroup, true +} + +// HasIsGroup returns a boolean if a field has been set. +func (o *ModelsSSHUsersSshUserAccessResponse) HasIsGroup() bool { + if o != nil && !isNil(o.IsGroup) { + return true + } + + return false +} + +// SetIsGroup gets a reference to the given bool and assigns it to the IsGroup field. +func (o *ModelsSSHUsersSshUserAccessResponse) SetIsGroup(v bool) { + o.IsGroup = &v +} + +func (o ModelsSSHUsersSshUserAccessResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsSSHUsersSshUserAccessResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.Key) { + toSerialize["Key"] = o.Key + } + if !isNil(o.Username) { + toSerialize["Username"] = o.Username + } + if !isNil(o.Access) { + toSerialize["Access"] = o.Access + } + if !isNil(o.IsGroup) { + toSerialize["IsGroup"] = o.IsGroup + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsSSHUsersSshUserAccessResponse) UnmarshalJSON(bytes []byte) (err error) { + varModelsSSHUsersSshUserAccessResponse := _ModelsSSHUsersSshUserAccessResponse{} + + if err = json.Unmarshal(bytes, &varModelsSSHUsersSshUserAccessResponse); err == nil { + *o = ModelsSSHUsersSshUserAccessResponse(varModelsSSHUsersSshUserAccessResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "Key") + delete(additionalProperties, "Username") + delete(additionalProperties, "Access") + delete(additionalProperties, "IsGroup") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsSSHUsersSshUserAccessResponse struct { + value *ModelsSSHUsersSshUserAccessResponse + isSet bool +} + +func (v NullableModelsSSHUsersSshUserAccessResponse) Get() *ModelsSSHUsersSshUserAccessResponse { + return v.value +} + +func (v *NullableModelsSSHUsersSshUserAccessResponse) Set(val *ModelsSSHUsersSshUserAccessResponse) { + v.value = val + v.isSet = true +} + +func (v NullableModelsSSHUsersSshUserAccessResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsSSHUsersSshUserAccessResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsSSHUsersSshUserAccessResponse(val *ModelsSSHUsersSshUserAccessResponse) *NullableModelsSSHUsersSshUserAccessResponse { + return &NullableModelsSSHUsersSshUserAccessResponse{value: val, isSet: true} +} + +func (v NullableModelsSSHUsersSshUserAccessResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsSSHUsersSshUserAccessResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_ssh_users_ssh_user_creation_request.go b/v1/api/keyfactor/model_models_ssh_users_ssh_user_creation_request.go new file mode 100644 index 0000000..3a10052 --- /dev/null +++ b/v1/api/keyfactor/model_models_ssh_users_ssh_user_creation_request.go @@ -0,0 +1,186 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsSSHUsersSshUserCreationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsSSHUsersSshUserCreationRequest{} + +// ModelsSSHUsersSshUserCreationRequest struct for ModelsSSHUsersSshUserCreationRequest +type ModelsSSHUsersSshUserCreationRequest struct { + Username string `json:"Username"` + LogonIds []int32 `json:"LogonIds,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsSSHUsersSshUserCreationRequest ModelsSSHUsersSshUserCreationRequest + +// NewModelsSSHUsersSshUserCreationRequest instantiates a new ModelsSSHUsersSshUserCreationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsSSHUsersSshUserCreationRequest(username string) *ModelsSSHUsersSshUserCreationRequest { + this := ModelsSSHUsersSshUserCreationRequest{} + this.Username = username + return &this +} + +// NewModelsSSHUsersSshUserCreationRequestWithDefaults instantiates a new ModelsSSHUsersSshUserCreationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsSSHUsersSshUserCreationRequestWithDefaults() *ModelsSSHUsersSshUserCreationRequest { + this := ModelsSSHUsersSshUserCreationRequest{} + return &this +} + +// GetUsername returns the Username field value +func (o *ModelsSSHUsersSshUserCreationRequest) GetUsername() string { + if o == nil { + var ret string + return ret + } + + return o.Username +} + +// GetUsernameOk returns a tuple with the Username field value +// and a boolean to check if the value has been set. +func (o *ModelsSSHUsersSshUserCreationRequest) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Username, true +} + +// SetUsername sets field value +func (o *ModelsSSHUsersSshUserCreationRequest) SetUsername(v string) { + o.Username = v +} + +// GetLogonIds returns the LogonIds field value if set, zero value otherwise. +func (o *ModelsSSHUsersSshUserCreationRequest) GetLogonIds() []int32 { + if o == nil || isNil(o.LogonIds) { + var ret []int32 + return ret + } + return o.LogonIds +} + +// GetLogonIdsOk returns a tuple with the LogonIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHUsersSshUserCreationRequest) GetLogonIdsOk() ([]int32, bool) { + if o == nil || isNil(o.LogonIds) { + return nil, false + } + return o.LogonIds, true +} + +// HasLogonIds returns a boolean if a field has been set. +func (o *ModelsSSHUsersSshUserCreationRequest) HasLogonIds() bool { + if o != nil && !isNil(o.LogonIds) { + return true + } + + return false +} + +// SetLogonIds gets a reference to the given []int32 and assigns it to the LogonIds field. +func (o *ModelsSSHUsersSshUserCreationRequest) SetLogonIds(v []int32) { + o.LogonIds = v +} + +func (o ModelsSSHUsersSshUserCreationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsSSHUsersSshUserCreationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Username"] = o.Username + if !isNil(o.LogonIds) { + toSerialize["LogonIds"] = o.LogonIds + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsSSHUsersSshUserCreationRequest) UnmarshalJSON(bytes []byte) (err error) { + varModelsSSHUsersSshUserCreationRequest := _ModelsSSHUsersSshUserCreationRequest{} + + if err = json.Unmarshal(bytes, &varModelsSSHUsersSshUserCreationRequest); err == nil { + *o = ModelsSSHUsersSshUserCreationRequest(varModelsSSHUsersSshUserCreationRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Username") + delete(additionalProperties, "LogonIds") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsSSHUsersSshUserCreationRequest struct { + value *ModelsSSHUsersSshUserCreationRequest + isSet bool +} + +func (v NullableModelsSSHUsersSshUserCreationRequest) Get() *ModelsSSHUsersSshUserCreationRequest { + return v.value +} + +func (v *NullableModelsSSHUsersSshUserCreationRequest) Set(val *ModelsSSHUsersSshUserCreationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableModelsSSHUsersSshUserCreationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsSSHUsersSshUserCreationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsSSHUsersSshUserCreationRequest(val *ModelsSSHUsersSshUserCreationRequest) *NullableModelsSSHUsersSshUserCreationRequest { + return &NullableModelsSSHUsersSshUserCreationRequest{value: val, isSet: true} +} + +func (v NullableModelsSSHUsersSshUserCreationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsSSHUsersSshUserCreationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_ssh_users_ssh_user_response.go b/v1/api/keyfactor/model_models_ssh_users_ssh_user_response.go new file mode 100644 index 0000000..205f60f --- /dev/null +++ b/v1/api/keyfactor/model_models_ssh_users_ssh_user_response.go @@ -0,0 +1,269 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsSSHUsersSshUserResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsSSHUsersSshUserResponse{} + +// ModelsSSHUsersSshUserResponse struct for ModelsSSHUsersSshUserResponse +type ModelsSSHUsersSshUserResponse struct { + Id *int32 `json:"Id,omitempty"` + Key *ModelsSSHKeysKeyResponse `json:"Key,omitempty"` + Username *string `json:"Username,omitempty"` + LogonIds []int32 `json:"LogonIds,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsSSHUsersSshUserResponse ModelsSSHUsersSshUserResponse + +// NewModelsSSHUsersSshUserResponse instantiates a new ModelsSSHUsersSshUserResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsSSHUsersSshUserResponse() *ModelsSSHUsersSshUserResponse { + this := ModelsSSHUsersSshUserResponse{} + return &this +} + +// NewModelsSSHUsersSshUserResponseWithDefaults instantiates a new ModelsSSHUsersSshUserResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsSSHUsersSshUserResponseWithDefaults() *ModelsSSHUsersSshUserResponse { + this := ModelsSSHUsersSshUserResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ModelsSSHUsersSshUserResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHUsersSshUserResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ModelsSSHUsersSshUserResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *ModelsSSHUsersSshUserResponse) SetId(v int32) { + o.Id = &v +} + +// GetKey returns the Key field value if set, zero value otherwise. +func (o *ModelsSSHUsersSshUserResponse) GetKey() ModelsSSHKeysKeyResponse { + if o == nil || isNil(o.Key) { + var ret ModelsSSHKeysKeyResponse + return ret + } + return *o.Key +} + +// GetKeyOk returns a tuple with the Key field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHUsersSshUserResponse) GetKeyOk() (*ModelsSSHKeysKeyResponse, bool) { + if o == nil || isNil(o.Key) { + return nil, false + } + return o.Key, true +} + +// HasKey returns a boolean if a field has been set. +func (o *ModelsSSHUsersSshUserResponse) HasKey() bool { + if o != nil && !isNil(o.Key) { + return true + } + + return false +} + +// SetKey gets a reference to the given ModelsSSHKeysKeyResponse and assigns it to the Key field. +func (o *ModelsSSHUsersSshUserResponse) SetKey(v ModelsSSHKeysKeyResponse) { + o.Key = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *ModelsSSHUsersSshUserResponse) GetUsername() string { + if o == nil || isNil(o.Username) { + var ret string + return ret + } + return *o.Username +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHUsersSshUserResponse) GetUsernameOk() (*string, bool) { + if o == nil || isNil(o.Username) { + return nil, false + } + return o.Username, true +} + +// HasUsername returns a boolean if a field has been set. +func (o *ModelsSSHUsersSshUserResponse) HasUsername() bool { + if o != nil && !isNil(o.Username) { + return true + } + + return false +} + +// SetUsername gets a reference to the given string and assigns it to the Username field. +func (o *ModelsSSHUsersSshUserResponse) SetUsername(v string) { + o.Username = &v +} + +// GetLogonIds returns the LogonIds field value if set, zero value otherwise. +func (o *ModelsSSHUsersSshUserResponse) GetLogonIds() []int32 { + if o == nil || isNil(o.LogonIds) { + var ret []int32 + return ret + } + return o.LogonIds +} + +// GetLogonIdsOk returns a tuple with the LogonIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHUsersSshUserResponse) GetLogonIdsOk() ([]int32, bool) { + if o == nil || isNil(o.LogonIds) { + return nil, false + } + return o.LogonIds, true +} + +// HasLogonIds returns a boolean if a field has been set. +func (o *ModelsSSHUsersSshUserResponse) HasLogonIds() bool { + if o != nil && !isNil(o.LogonIds) { + return true + } + + return false +} + +// SetLogonIds gets a reference to the given []int32 and assigns it to the LogonIds field. +func (o *ModelsSSHUsersSshUserResponse) SetLogonIds(v []int32) { + o.LogonIds = v +} + +func (o ModelsSSHUsersSshUserResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsSSHUsersSshUserResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.Key) { + toSerialize["Key"] = o.Key + } + if !isNil(o.Username) { + toSerialize["Username"] = o.Username + } + if !isNil(o.LogonIds) { + toSerialize["LogonIds"] = o.LogonIds + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsSSHUsersSshUserResponse) UnmarshalJSON(bytes []byte) (err error) { + varModelsSSHUsersSshUserResponse := _ModelsSSHUsersSshUserResponse{} + + if err = json.Unmarshal(bytes, &varModelsSSHUsersSshUserResponse); err == nil { + *o = ModelsSSHUsersSshUserResponse(varModelsSSHUsersSshUserResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "Key") + delete(additionalProperties, "Username") + delete(additionalProperties, "LogonIds") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsSSHUsersSshUserResponse struct { + value *ModelsSSHUsersSshUserResponse + isSet bool +} + +func (v NullableModelsSSHUsersSshUserResponse) Get() *ModelsSSHUsersSshUserResponse { + return v.value +} + +func (v *NullableModelsSSHUsersSshUserResponse) Set(val *ModelsSSHUsersSshUserResponse) { + v.value = val + v.isSet = true +} + +func (v NullableModelsSSHUsersSshUserResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsSSHUsersSshUserResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsSSHUsersSshUserResponse(val *ModelsSSHUsersSshUserResponse) *NullableModelsSSHUsersSshUserResponse { + return &NullableModelsSSHUsersSshUserResponse{value: val, isSet: true} +} + +func (v NullableModelsSSHUsersSshUserResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsSSHUsersSshUserResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_ssh_users_ssh_user_update_request.go b/v1/api/keyfactor/model_models_ssh_users_ssh_user_update_request.go new file mode 100644 index 0000000..7dd22c9 --- /dev/null +++ b/v1/api/keyfactor/model_models_ssh_users_ssh_user_update_request.go @@ -0,0 +1,186 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsSSHUsersSshUserUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsSSHUsersSshUserUpdateRequest{} + +// ModelsSSHUsersSshUserUpdateRequest struct for ModelsSSHUsersSshUserUpdateRequest +type ModelsSSHUsersSshUserUpdateRequest struct { + Id int32 `json:"Id"` + LogonIds []int32 `json:"LogonIds,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsSSHUsersSshUserUpdateRequest ModelsSSHUsersSshUserUpdateRequest + +// NewModelsSSHUsersSshUserUpdateRequest instantiates a new ModelsSSHUsersSshUserUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsSSHUsersSshUserUpdateRequest(id int32) *ModelsSSHUsersSshUserUpdateRequest { + this := ModelsSSHUsersSshUserUpdateRequest{} + this.Id = id + return &this +} + +// NewModelsSSHUsersSshUserUpdateRequestWithDefaults instantiates a new ModelsSSHUsersSshUserUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsSSHUsersSshUserUpdateRequestWithDefaults() *ModelsSSHUsersSshUserUpdateRequest { + this := ModelsSSHUsersSshUserUpdateRequest{} + return &this +} + +// GetId returns the Id field value +func (o *ModelsSSHUsersSshUserUpdateRequest) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *ModelsSSHUsersSshUserUpdateRequest) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ModelsSSHUsersSshUserUpdateRequest) SetId(v int32) { + o.Id = v +} + +// GetLogonIds returns the LogonIds field value if set, zero value otherwise. +func (o *ModelsSSHUsersSshUserUpdateRequest) GetLogonIds() []int32 { + if o == nil || isNil(o.LogonIds) { + var ret []int32 + return ret + } + return o.LogonIds +} + +// GetLogonIdsOk returns a tuple with the LogonIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSHUsersSshUserUpdateRequest) GetLogonIdsOk() ([]int32, bool) { + if o == nil || isNil(o.LogonIds) { + return nil, false + } + return o.LogonIds, true +} + +// HasLogonIds returns a boolean if a field has been set. +func (o *ModelsSSHUsersSshUserUpdateRequest) HasLogonIds() bool { + if o != nil && !isNil(o.LogonIds) { + return true + } + + return false +} + +// SetLogonIds gets a reference to the given []int32 and assigns it to the LogonIds field. +func (o *ModelsSSHUsersSshUserUpdateRequest) SetLogonIds(v []int32) { + o.LogonIds = v +} + +func (o ModelsSSHUsersSshUserUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsSSHUsersSshUserUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Id"] = o.Id + if !isNil(o.LogonIds) { + toSerialize["LogonIds"] = o.LogonIds + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsSSHUsersSshUserUpdateRequest) UnmarshalJSON(bytes []byte) (err error) { + varModelsSSHUsersSshUserUpdateRequest := _ModelsSSHUsersSshUserUpdateRequest{} + + if err = json.Unmarshal(bytes, &varModelsSSHUsersSshUserUpdateRequest); err == nil { + *o = ModelsSSHUsersSshUserUpdateRequest(varModelsSSHUsersSshUserUpdateRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "LogonIds") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsSSHUsersSshUserUpdateRequest struct { + value *ModelsSSHUsersSshUserUpdateRequest + isSet bool +} + +func (v NullableModelsSSHUsersSshUserUpdateRequest) Get() *ModelsSSHUsersSshUserUpdateRequest { + return v.value +} + +func (v *NullableModelsSSHUsersSshUserUpdateRequest) Set(val *ModelsSSHUsersSshUserUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableModelsSSHUsersSshUserUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsSSHUsersSshUserUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsSSHUsersSshUserUpdateRequest(val *ModelsSSHUsersSshUserUpdateRequest) *NullableModelsSSHUsersSshUserUpdateRequest { + return &NullableModelsSSHUsersSshUserUpdateRequest{value: val, isSet: true} +} + +func (v NullableModelsSSHUsersSshUserUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsSSHUsersSshUserUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_ssl_display_scan_job_part.go b/v1/api/keyfactor/model_models_ssl_display_scan_job_part.go new file mode 100644 index 0000000..8080754 --- /dev/null +++ b/v1/api/keyfactor/model_models_ssl_display_scan_job_part.go @@ -0,0 +1,344 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" + "time" +) + +// checks if the ModelsSSLDisplayScanJobPart type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsSSLDisplayScanJobPart{} + +// ModelsSSLDisplayScanJobPart struct for ModelsSSLDisplayScanJobPart +type ModelsSSLDisplayScanJobPart struct { + ScanJobPartId *string `json:"ScanJobPartId,omitempty"` + Agent *string `json:"Agent,omitempty"` + Status *int32 `json:"Status,omitempty"` + StartTime *time.Time `json:"StartTime,omitempty"` + EndTime *time.Time `json:"EndTime,omitempty"` + EndpointCount *int32 `json:"EndpointCount,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsSSLDisplayScanJobPart ModelsSSLDisplayScanJobPart + +// NewModelsSSLDisplayScanJobPart instantiates a new ModelsSSLDisplayScanJobPart object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsSSLDisplayScanJobPart() *ModelsSSLDisplayScanJobPart { + this := ModelsSSLDisplayScanJobPart{} + return &this +} + +// NewModelsSSLDisplayScanJobPartWithDefaults instantiates a new ModelsSSLDisplayScanJobPart object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsSSLDisplayScanJobPartWithDefaults() *ModelsSSLDisplayScanJobPart { + this := ModelsSSLDisplayScanJobPart{} + return &this +} + +// GetScanJobPartId returns the ScanJobPartId field value if set, zero value otherwise. +func (o *ModelsSSLDisplayScanJobPart) GetScanJobPartId() string { + if o == nil || isNil(o.ScanJobPartId) { + var ret string + return ret + } + return *o.ScanJobPartId +} + +// GetScanJobPartIdOk returns a tuple with the ScanJobPartId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLDisplayScanJobPart) GetScanJobPartIdOk() (*string, bool) { + if o == nil || isNil(o.ScanJobPartId) { + return nil, false + } + return o.ScanJobPartId, true +} + +// HasScanJobPartId returns a boolean if a field has been set. +func (o *ModelsSSLDisplayScanJobPart) HasScanJobPartId() bool { + if o != nil && !isNil(o.ScanJobPartId) { + return true + } + + return false +} + +// SetScanJobPartId gets a reference to the given string and assigns it to the ScanJobPartId field. +func (o *ModelsSSLDisplayScanJobPart) SetScanJobPartId(v string) { + o.ScanJobPartId = &v +} + +// GetAgent returns the Agent field value if set, zero value otherwise. +func (o *ModelsSSLDisplayScanJobPart) GetAgent() string { + if o == nil || isNil(o.Agent) { + var ret string + return ret + } + return *o.Agent +} + +// GetAgentOk returns a tuple with the Agent field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLDisplayScanJobPart) GetAgentOk() (*string, bool) { + if o == nil || isNil(o.Agent) { + return nil, false + } + return o.Agent, true +} + +// HasAgent returns a boolean if a field has been set. +func (o *ModelsSSLDisplayScanJobPart) HasAgent() bool { + if o != nil && !isNil(o.Agent) { + return true + } + + return false +} + +// SetAgent gets a reference to the given string and assigns it to the Agent field. +func (o *ModelsSSLDisplayScanJobPart) SetAgent(v string) { + o.Agent = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ModelsSSLDisplayScanJobPart) GetStatus() int32 { + if o == nil || isNil(o.Status) { + var ret int32 + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLDisplayScanJobPart) GetStatusOk() (*int32, bool) { + if o == nil || isNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ModelsSSLDisplayScanJobPart) HasStatus() bool { + if o != nil && !isNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given int32 and assigns it to the Status field. +func (o *ModelsSSLDisplayScanJobPart) SetStatus(v int32) { + o.Status = &v +} + +// GetStartTime returns the StartTime field value if set, zero value otherwise. +func (o *ModelsSSLDisplayScanJobPart) GetStartTime() time.Time { + if o == nil || isNil(o.StartTime) { + var ret time.Time + return ret + } + return *o.StartTime +} + +// GetStartTimeOk returns a tuple with the StartTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLDisplayScanJobPart) GetStartTimeOk() (*time.Time, bool) { + if o == nil || isNil(o.StartTime) { + return nil, false + } + return o.StartTime, true +} + +// HasStartTime returns a boolean if a field has been set. +func (o *ModelsSSLDisplayScanJobPart) HasStartTime() bool { + if o != nil && !isNil(o.StartTime) { + return true + } + + return false +} + +// SetStartTime gets a reference to the given time.Time and assigns it to the StartTime field. +func (o *ModelsSSLDisplayScanJobPart) SetStartTime(v time.Time) { + o.StartTime = &v +} + +// GetEndTime returns the EndTime field value if set, zero value otherwise. +func (o *ModelsSSLDisplayScanJobPart) GetEndTime() time.Time { + if o == nil || isNil(o.EndTime) { + var ret time.Time + return ret + } + return *o.EndTime +} + +// GetEndTimeOk returns a tuple with the EndTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLDisplayScanJobPart) GetEndTimeOk() (*time.Time, bool) { + if o == nil || isNil(o.EndTime) { + return nil, false + } + return o.EndTime, true +} + +// HasEndTime returns a boolean if a field has been set. +func (o *ModelsSSLDisplayScanJobPart) HasEndTime() bool { + if o != nil && !isNil(o.EndTime) { + return true + } + + return false +} + +// SetEndTime gets a reference to the given time.Time and assigns it to the EndTime field. +func (o *ModelsSSLDisplayScanJobPart) SetEndTime(v time.Time) { + o.EndTime = &v +} + +// GetEndpointCount returns the EndpointCount field value if set, zero value otherwise. +func (o *ModelsSSLDisplayScanJobPart) GetEndpointCount() int32 { + if o == nil || isNil(o.EndpointCount) { + var ret int32 + return ret + } + return *o.EndpointCount +} + +// GetEndpointCountOk returns a tuple with the EndpointCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLDisplayScanJobPart) GetEndpointCountOk() (*int32, bool) { + if o == nil || isNil(o.EndpointCount) { + return nil, false + } + return o.EndpointCount, true +} + +// HasEndpointCount returns a boolean if a field has been set. +func (o *ModelsSSLDisplayScanJobPart) HasEndpointCount() bool { + if o != nil && !isNil(o.EndpointCount) { + return true + } + + return false +} + +// SetEndpointCount gets a reference to the given int32 and assigns it to the EndpointCount field. +func (o *ModelsSSLDisplayScanJobPart) SetEndpointCount(v int32) { + o.EndpointCount = &v +} + +func (o ModelsSSLDisplayScanJobPart) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsSSLDisplayScanJobPart) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.ScanJobPartId) { + toSerialize["ScanJobPartId"] = o.ScanJobPartId + } + if !isNil(o.Agent) { + toSerialize["Agent"] = o.Agent + } + if !isNil(o.Status) { + toSerialize["Status"] = o.Status + } + if !isNil(o.StartTime) { + toSerialize["StartTime"] = o.StartTime + } + if !isNil(o.EndTime) { + toSerialize["EndTime"] = o.EndTime + } + if !isNil(o.EndpointCount) { + toSerialize["EndpointCount"] = o.EndpointCount + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsSSLDisplayScanJobPart) UnmarshalJSON(bytes []byte) (err error) { + varModelsSSLDisplayScanJobPart := _ModelsSSLDisplayScanJobPart{} + + if err = json.Unmarshal(bytes, &varModelsSSLDisplayScanJobPart); err == nil { + *o = ModelsSSLDisplayScanJobPart(varModelsSSLDisplayScanJobPart) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "ScanJobPartId") + delete(additionalProperties, "Agent") + delete(additionalProperties, "Status") + delete(additionalProperties, "StartTime") + delete(additionalProperties, "EndTime") + delete(additionalProperties, "EndpointCount") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsSSLDisplayScanJobPart struct { + value *ModelsSSLDisplayScanJobPart + isSet bool +} + +func (v NullableModelsSSLDisplayScanJobPart) Get() *ModelsSSLDisplayScanJobPart { + return v.value +} + +func (v *NullableModelsSSLDisplayScanJobPart) Set(val *ModelsSSLDisplayScanJobPart) { + v.value = val + v.isSet = true +} + +func (v NullableModelsSSLDisplayScanJobPart) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsSSLDisplayScanJobPart) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsSSLDisplayScanJobPart(val *ModelsSSLDisplayScanJobPart) *NullableModelsSSLDisplayScanJobPart { + return &NullableModelsSSLDisplayScanJobPart{value: val, isSet: true} +} + +func (v NullableModelsSSLDisplayScanJobPart) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsSSLDisplayScanJobPart) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_ssl_endpoint.go b/v1/api/keyfactor/model_models_ssl_endpoint.go new file mode 100644 index 0000000..43afd9c --- /dev/null +++ b/v1/api/keyfactor/model_models_ssl_endpoint.go @@ -0,0 +1,417 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsSSLEndpoint type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsSSLEndpoint{} + +// ModelsSSLEndpoint struct for ModelsSSLEndpoint +type ModelsSSLEndpoint struct { + EndpointId *string `json:"EndpointId,omitempty"` + NetworkId *string `json:"NetworkId,omitempty"` + LastHistoryId *string `json:"LastHistoryId,omitempty"` + IpAddressBytes *string `json:"IpAddressBytes,omitempty"` + Port *int32 `json:"Port,omitempty"` + SNIName *string `json:"SNIName,omitempty"` + EnableMonitor *bool `json:"EnableMonitor,omitempty"` + Reviewed *bool `json:"Reviewed,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsSSLEndpoint ModelsSSLEndpoint + +// NewModelsSSLEndpoint instantiates a new ModelsSSLEndpoint object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsSSLEndpoint() *ModelsSSLEndpoint { + this := ModelsSSLEndpoint{} + return &this +} + +// NewModelsSSLEndpointWithDefaults instantiates a new ModelsSSLEndpoint object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsSSLEndpointWithDefaults() *ModelsSSLEndpoint { + this := ModelsSSLEndpoint{} + return &this +} + +// GetEndpointId returns the EndpointId field value if set, zero value otherwise. +func (o *ModelsSSLEndpoint) GetEndpointId() string { + if o == nil || isNil(o.EndpointId) { + var ret string + return ret + } + return *o.EndpointId +} + +// GetEndpointIdOk returns a tuple with the EndpointId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLEndpoint) GetEndpointIdOk() (*string, bool) { + if o == nil || isNil(o.EndpointId) { + return nil, false + } + return o.EndpointId, true +} + +// HasEndpointId returns a boolean if a field has been set. +func (o *ModelsSSLEndpoint) HasEndpointId() bool { + if o != nil && !isNil(o.EndpointId) { + return true + } + + return false +} + +// SetEndpointId gets a reference to the given string and assigns it to the EndpointId field. +func (o *ModelsSSLEndpoint) SetEndpointId(v string) { + o.EndpointId = &v +} + +// GetNetworkId returns the NetworkId field value if set, zero value otherwise. +func (o *ModelsSSLEndpoint) GetNetworkId() string { + if o == nil || isNil(o.NetworkId) { + var ret string + return ret + } + return *o.NetworkId +} + +// GetNetworkIdOk returns a tuple with the NetworkId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLEndpoint) GetNetworkIdOk() (*string, bool) { + if o == nil || isNil(o.NetworkId) { + return nil, false + } + return o.NetworkId, true +} + +// HasNetworkId returns a boolean if a field has been set. +func (o *ModelsSSLEndpoint) HasNetworkId() bool { + if o != nil && !isNil(o.NetworkId) { + return true + } + + return false +} + +// SetNetworkId gets a reference to the given string and assigns it to the NetworkId field. +func (o *ModelsSSLEndpoint) SetNetworkId(v string) { + o.NetworkId = &v +} + +// GetLastHistoryId returns the LastHistoryId field value if set, zero value otherwise. +func (o *ModelsSSLEndpoint) GetLastHistoryId() string { + if o == nil || isNil(o.LastHistoryId) { + var ret string + return ret + } + return *o.LastHistoryId +} + +// GetLastHistoryIdOk returns a tuple with the LastHistoryId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLEndpoint) GetLastHistoryIdOk() (*string, bool) { + if o == nil || isNil(o.LastHistoryId) { + return nil, false + } + return o.LastHistoryId, true +} + +// HasLastHistoryId returns a boolean if a field has been set. +func (o *ModelsSSLEndpoint) HasLastHistoryId() bool { + if o != nil && !isNil(o.LastHistoryId) { + return true + } + + return false +} + +// SetLastHistoryId gets a reference to the given string and assigns it to the LastHistoryId field. +func (o *ModelsSSLEndpoint) SetLastHistoryId(v string) { + o.LastHistoryId = &v +} + +// GetIpAddressBytes returns the IpAddressBytes field value if set, zero value otherwise. +func (o *ModelsSSLEndpoint) GetIpAddressBytes() string { + if o == nil || isNil(o.IpAddressBytes) { + var ret string + return ret + } + return *o.IpAddressBytes +} + +// GetIpAddressBytesOk returns a tuple with the IpAddressBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLEndpoint) GetIpAddressBytesOk() (*string, bool) { + if o == nil || isNil(o.IpAddressBytes) { + return nil, false + } + return o.IpAddressBytes, true +} + +// HasIpAddressBytes returns a boolean if a field has been set. +func (o *ModelsSSLEndpoint) HasIpAddressBytes() bool { + if o != nil && !isNil(o.IpAddressBytes) { + return true + } + + return false +} + +// SetIpAddressBytes gets a reference to the given string and assigns it to the IpAddressBytes field. +func (o *ModelsSSLEndpoint) SetIpAddressBytes(v string) { + o.IpAddressBytes = &v +} + +// GetPort returns the Port field value if set, zero value otherwise. +func (o *ModelsSSLEndpoint) GetPort() int32 { + if o == nil || isNil(o.Port) { + var ret int32 + return ret + } + return *o.Port +} + +// GetPortOk returns a tuple with the Port field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLEndpoint) GetPortOk() (*int32, bool) { + if o == nil || isNil(o.Port) { + return nil, false + } + return o.Port, true +} + +// HasPort returns a boolean if a field has been set. +func (o *ModelsSSLEndpoint) HasPort() bool { + if o != nil && !isNil(o.Port) { + return true + } + + return false +} + +// SetPort gets a reference to the given int32 and assigns it to the Port field. +func (o *ModelsSSLEndpoint) SetPort(v int32) { + o.Port = &v +} + +// GetSNIName returns the SNIName field value if set, zero value otherwise. +func (o *ModelsSSLEndpoint) GetSNIName() string { + if o == nil || isNil(o.SNIName) { + var ret string + return ret + } + return *o.SNIName +} + +// GetSNINameOk returns a tuple with the SNIName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLEndpoint) GetSNINameOk() (*string, bool) { + if o == nil || isNil(o.SNIName) { + return nil, false + } + return o.SNIName, true +} + +// HasSNIName returns a boolean if a field has been set. +func (o *ModelsSSLEndpoint) HasSNIName() bool { + if o != nil && !isNil(o.SNIName) { + return true + } + + return false +} + +// SetSNIName gets a reference to the given string and assigns it to the SNIName field. +func (o *ModelsSSLEndpoint) SetSNIName(v string) { + o.SNIName = &v +} + +// GetEnableMonitor returns the EnableMonitor field value if set, zero value otherwise. +func (o *ModelsSSLEndpoint) GetEnableMonitor() bool { + if o == nil || isNil(o.EnableMonitor) { + var ret bool + return ret + } + return *o.EnableMonitor +} + +// GetEnableMonitorOk returns a tuple with the EnableMonitor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLEndpoint) GetEnableMonitorOk() (*bool, bool) { + if o == nil || isNil(o.EnableMonitor) { + return nil, false + } + return o.EnableMonitor, true +} + +// HasEnableMonitor returns a boolean if a field has been set. +func (o *ModelsSSLEndpoint) HasEnableMonitor() bool { + if o != nil && !isNil(o.EnableMonitor) { + return true + } + + return false +} + +// SetEnableMonitor gets a reference to the given bool and assigns it to the EnableMonitor field. +func (o *ModelsSSLEndpoint) SetEnableMonitor(v bool) { + o.EnableMonitor = &v +} + +// GetReviewed returns the Reviewed field value if set, zero value otherwise. +func (o *ModelsSSLEndpoint) GetReviewed() bool { + if o == nil || isNil(o.Reviewed) { + var ret bool + return ret + } + return *o.Reviewed +} + +// GetReviewedOk returns a tuple with the Reviewed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLEndpoint) GetReviewedOk() (*bool, bool) { + if o == nil || isNil(o.Reviewed) { + return nil, false + } + return o.Reviewed, true +} + +// HasReviewed returns a boolean if a field has been set. +func (o *ModelsSSLEndpoint) HasReviewed() bool { + if o != nil && !isNil(o.Reviewed) { + return true + } + + return false +} + +// SetReviewed gets a reference to the given bool and assigns it to the Reviewed field. +func (o *ModelsSSLEndpoint) SetReviewed(v bool) { + o.Reviewed = &v +} + +func (o ModelsSSLEndpoint) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsSSLEndpoint) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.EndpointId) { + toSerialize["EndpointId"] = o.EndpointId + } + if !isNil(o.NetworkId) { + toSerialize["NetworkId"] = o.NetworkId + } + if !isNil(o.LastHistoryId) { + toSerialize["LastHistoryId"] = o.LastHistoryId + } + if !isNil(o.IpAddressBytes) { + toSerialize["IpAddressBytes"] = o.IpAddressBytes + } + if !isNil(o.Port) { + toSerialize["Port"] = o.Port + } + if !isNil(o.SNIName) { + toSerialize["SNIName"] = o.SNIName + } + if !isNil(o.EnableMonitor) { + toSerialize["EnableMonitor"] = o.EnableMonitor + } + if !isNil(o.Reviewed) { + toSerialize["Reviewed"] = o.Reviewed + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsSSLEndpoint) UnmarshalJSON(bytes []byte) (err error) { + varModelsSSLEndpoint := _ModelsSSLEndpoint{} + + if err = json.Unmarshal(bytes, &varModelsSSLEndpoint); err == nil { + *o = ModelsSSLEndpoint(varModelsSSLEndpoint) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "EndpointId") + delete(additionalProperties, "NetworkId") + delete(additionalProperties, "LastHistoryId") + delete(additionalProperties, "IpAddressBytes") + delete(additionalProperties, "Port") + delete(additionalProperties, "SNIName") + delete(additionalProperties, "EnableMonitor") + delete(additionalProperties, "Reviewed") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsSSLEndpoint struct { + value *ModelsSSLEndpoint + isSet bool +} + +func (v NullableModelsSSLEndpoint) Get() *ModelsSSLEndpoint { + return v.value +} + +func (v *NullableModelsSSLEndpoint) Set(val *ModelsSSLEndpoint) { + v.value = val + v.isSet = true +} + +func (v NullableModelsSSLEndpoint) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsSSLEndpoint) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsSSLEndpoint(val *ModelsSSLEndpoint) *NullableModelsSSLEndpoint { + return &NullableModelsSSLEndpoint{value: val, isSet: true} +} + +func (v NullableModelsSSLEndpoint) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsSSLEndpoint) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_ssl_endpoint_history_response.go b/v1/api/keyfactor/model_models_ssl_endpoint_history_response.go new file mode 100644 index 0000000..dc874a1 --- /dev/null +++ b/v1/api/keyfactor/model_models_ssl_endpoint_history_response.go @@ -0,0 +1,455 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" + "time" +) + +// checks if the ModelsSSLEndpointHistoryResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsSSLEndpointHistoryResponse{} + +// ModelsSSLEndpointHistoryResponse struct for ModelsSSLEndpointHistoryResponse +type ModelsSSLEndpointHistoryResponse struct { + HistoryId *string `json:"HistoryId,omitempty"` + EndpointId *string `json:"EndpointId,omitempty"` + AuditId *int64 `json:"AuditId,omitempty"` + Timestamp *time.Time `json:"Timestamp,omitempty"` + Status *int32 `json:"Status,omitempty"` + JobType *int32 `json:"JobType,omitempty"` + ProbeType *int32 `json:"ProbeType,omitempty"` + ReverseDNS *string `json:"ReverseDNS,omitempty"` + HistoryCertificates []ModelsSSLEndpointHistoryResponseCertificateModel `json:"HistoryCertificates,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsSSLEndpointHistoryResponse ModelsSSLEndpointHistoryResponse + +// NewModelsSSLEndpointHistoryResponse instantiates a new ModelsSSLEndpointHistoryResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsSSLEndpointHistoryResponse() *ModelsSSLEndpointHistoryResponse { + this := ModelsSSLEndpointHistoryResponse{} + return &this +} + +// NewModelsSSLEndpointHistoryResponseWithDefaults instantiates a new ModelsSSLEndpointHistoryResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsSSLEndpointHistoryResponseWithDefaults() *ModelsSSLEndpointHistoryResponse { + this := ModelsSSLEndpointHistoryResponse{} + return &this +} + +// GetHistoryId returns the HistoryId field value if set, zero value otherwise. +func (o *ModelsSSLEndpointHistoryResponse) GetHistoryId() string { + if o == nil || isNil(o.HistoryId) { + var ret string + return ret + } + return *o.HistoryId +} + +// GetHistoryIdOk returns a tuple with the HistoryId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLEndpointHistoryResponse) GetHistoryIdOk() (*string, bool) { + if o == nil || isNil(o.HistoryId) { + return nil, false + } + return o.HistoryId, true +} + +// HasHistoryId returns a boolean if a field has been set. +func (o *ModelsSSLEndpointHistoryResponse) HasHistoryId() bool { + if o != nil && !isNil(o.HistoryId) { + return true + } + + return false +} + +// SetHistoryId gets a reference to the given string and assigns it to the HistoryId field. +func (o *ModelsSSLEndpointHistoryResponse) SetHistoryId(v string) { + o.HistoryId = &v +} + +// GetEndpointId returns the EndpointId field value if set, zero value otherwise. +func (o *ModelsSSLEndpointHistoryResponse) GetEndpointId() string { + if o == nil || isNil(o.EndpointId) { + var ret string + return ret + } + return *o.EndpointId +} + +// GetEndpointIdOk returns a tuple with the EndpointId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLEndpointHistoryResponse) GetEndpointIdOk() (*string, bool) { + if o == nil || isNil(o.EndpointId) { + return nil, false + } + return o.EndpointId, true +} + +// HasEndpointId returns a boolean if a field has been set. +func (o *ModelsSSLEndpointHistoryResponse) HasEndpointId() bool { + if o != nil && !isNil(o.EndpointId) { + return true + } + + return false +} + +// SetEndpointId gets a reference to the given string and assigns it to the EndpointId field. +func (o *ModelsSSLEndpointHistoryResponse) SetEndpointId(v string) { + o.EndpointId = &v +} + +// GetAuditId returns the AuditId field value if set, zero value otherwise. +func (o *ModelsSSLEndpointHistoryResponse) GetAuditId() int64 { + if o == nil || isNil(o.AuditId) { + var ret int64 + return ret + } + return *o.AuditId +} + +// GetAuditIdOk returns a tuple with the AuditId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLEndpointHistoryResponse) GetAuditIdOk() (*int64, bool) { + if o == nil || isNil(o.AuditId) { + return nil, false + } + return o.AuditId, true +} + +// HasAuditId returns a boolean if a field has been set. +func (o *ModelsSSLEndpointHistoryResponse) HasAuditId() bool { + if o != nil && !isNil(o.AuditId) { + return true + } + + return false +} + +// SetAuditId gets a reference to the given int64 and assigns it to the AuditId field. +func (o *ModelsSSLEndpointHistoryResponse) SetAuditId(v int64) { + o.AuditId = &v +} + +// GetTimestamp returns the Timestamp field value if set, zero value otherwise. +func (o *ModelsSSLEndpointHistoryResponse) GetTimestamp() time.Time { + if o == nil || isNil(o.Timestamp) { + var ret time.Time + return ret + } + return *o.Timestamp +} + +// GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLEndpointHistoryResponse) GetTimestampOk() (*time.Time, bool) { + if o == nil || isNil(o.Timestamp) { + return nil, false + } + return o.Timestamp, true +} + +// HasTimestamp returns a boolean if a field has been set. +func (o *ModelsSSLEndpointHistoryResponse) HasTimestamp() bool { + if o != nil && !isNil(o.Timestamp) { + return true + } + + return false +} + +// SetTimestamp gets a reference to the given time.Time and assigns it to the Timestamp field. +func (o *ModelsSSLEndpointHistoryResponse) SetTimestamp(v time.Time) { + o.Timestamp = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ModelsSSLEndpointHistoryResponse) GetStatus() int32 { + if o == nil || isNil(o.Status) { + var ret int32 + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLEndpointHistoryResponse) GetStatusOk() (*int32, bool) { + if o == nil || isNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ModelsSSLEndpointHistoryResponse) HasStatus() bool { + if o != nil && !isNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given int32 and assigns it to the Status field. +func (o *ModelsSSLEndpointHistoryResponse) SetStatus(v int32) { + o.Status = &v +} + +// GetJobType returns the JobType field value if set, zero value otherwise. +func (o *ModelsSSLEndpointHistoryResponse) GetJobType() int32 { + if o == nil || isNil(o.JobType) { + var ret int32 + return ret + } + return *o.JobType +} + +// GetJobTypeOk returns a tuple with the JobType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLEndpointHistoryResponse) GetJobTypeOk() (*int32, bool) { + if o == nil || isNil(o.JobType) { + return nil, false + } + return o.JobType, true +} + +// HasJobType returns a boolean if a field has been set. +func (o *ModelsSSLEndpointHistoryResponse) HasJobType() bool { + if o != nil && !isNil(o.JobType) { + return true + } + + return false +} + +// SetJobType gets a reference to the given int32 and assigns it to the JobType field. +func (o *ModelsSSLEndpointHistoryResponse) SetJobType(v int32) { + o.JobType = &v +} + +// GetProbeType returns the ProbeType field value if set, zero value otherwise. +func (o *ModelsSSLEndpointHistoryResponse) GetProbeType() int32 { + if o == nil || isNil(o.ProbeType) { + var ret int32 + return ret + } + return *o.ProbeType +} + +// GetProbeTypeOk returns a tuple with the ProbeType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLEndpointHistoryResponse) GetProbeTypeOk() (*int32, bool) { + if o == nil || isNil(o.ProbeType) { + return nil, false + } + return o.ProbeType, true +} + +// HasProbeType returns a boolean if a field has been set. +func (o *ModelsSSLEndpointHistoryResponse) HasProbeType() bool { + if o != nil && !isNil(o.ProbeType) { + return true + } + + return false +} + +// SetProbeType gets a reference to the given int32 and assigns it to the ProbeType field. +func (o *ModelsSSLEndpointHistoryResponse) SetProbeType(v int32) { + o.ProbeType = &v +} + +// GetReverseDNS returns the ReverseDNS field value if set, zero value otherwise. +func (o *ModelsSSLEndpointHistoryResponse) GetReverseDNS() string { + if o == nil || isNil(o.ReverseDNS) { + var ret string + return ret + } + return *o.ReverseDNS +} + +// GetReverseDNSOk returns a tuple with the ReverseDNS field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLEndpointHistoryResponse) GetReverseDNSOk() (*string, bool) { + if o == nil || isNil(o.ReverseDNS) { + return nil, false + } + return o.ReverseDNS, true +} + +// HasReverseDNS returns a boolean if a field has been set. +func (o *ModelsSSLEndpointHistoryResponse) HasReverseDNS() bool { + if o != nil && !isNil(o.ReverseDNS) { + return true + } + + return false +} + +// SetReverseDNS gets a reference to the given string and assigns it to the ReverseDNS field. +func (o *ModelsSSLEndpointHistoryResponse) SetReverseDNS(v string) { + o.ReverseDNS = &v +} + +// GetHistoryCertificates returns the HistoryCertificates field value if set, zero value otherwise. +func (o *ModelsSSLEndpointHistoryResponse) GetHistoryCertificates() []ModelsSSLEndpointHistoryResponseCertificateModel { + if o == nil || isNil(o.HistoryCertificates) { + var ret []ModelsSSLEndpointHistoryResponseCertificateModel + return ret + } + return o.HistoryCertificates +} + +// GetHistoryCertificatesOk returns a tuple with the HistoryCertificates field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLEndpointHistoryResponse) GetHistoryCertificatesOk() ([]ModelsSSLEndpointHistoryResponseCertificateModel, bool) { + if o == nil || isNil(o.HistoryCertificates) { + return nil, false + } + return o.HistoryCertificates, true +} + +// HasHistoryCertificates returns a boolean if a field has been set. +func (o *ModelsSSLEndpointHistoryResponse) HasHistoryCertificates() bool { + if o != nil && !isNil(o.HistoryCertificates) { + return true + } + + return false +} + +// SetHistoryCertificates gets a reference to the given []ModelsSSLEndpointHistoryResponseCertificateModel and assigns it to the HistoryCertificates field. +func (o *ModelsSSLEndpointHistoryResponse) SetHistoryCertificates(v []ModelsSSLEndpointHistoryResponseCertificateModel) { + o.HistoryCertificates = v +} + +func (o ModelsSSLEndpointHistoryResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsSSLEndpointHistoryResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.HistoryId) { + toSerialize["HistoryId"] = o.HistoryId + } + if !isNil(o.EndpointId) { + toSerialize["EndpointId"] = o.EndpointId + } + if !isNil(o.AuditId) { + toSerialize["AuditId"] = o.AuditId + } + if !isNil(o.Timestamp) { + toSerialize["Timestamp"] = o.Timestamp + } + if !isNil(o.Status) { + toSerialize["Status"] = o.Status + } + if !isNil(o.JobType) { + toSerialize["JobType"] = o.JobType + } + if !isNil(o.ProbeType) { + toSerialize["ProbeType"] = o.ProbeType + } + if !isNil(o.ReverseDNS) { + toSerialize["ReverseDNS"] = o.ReverseDNS + } + if !isNil(o.HistoryCertificates) { + toSerialize["HistoryCertificates"] = o.HistoryCertificates + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsSSLEndpointHistoryResponse) UnmarshalJSON(bytes []byte) (err error) { + varModelsSSLEndpointHistoryResponse := _ModelsSSLEndpointHistoryResponse{} + + if err = json.Unmarshal(bytes, &varModelsSSLEndpointHistoryResponse); err == nil { + *o = ModelsSSLEndpointHistoryResponse(varModelsSSLEndpointHistoryResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "HistoryId") + delete(additionalProperties, "EndpointId") + delete(additionalProperties, "AuditId") + delete(additionalProperties, "Timestamp") + delete(additionalProperties, "Status") + delete(additionalProperties, "JobType") + delete(additionalProperties, "ProbeType") + delete(additionalProperties, "ReverseDNS") + delete(additionalProperties, "HistoryCertificates") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsSSLEndpointHistoryResponse struct { + value *ModelsSSLEndpointHistoryResponse + isSet bool +} + +func (v NullableModelsSSLEndpointHistoryResponse) Get() *ModelsSSLEndpointHistoryResponse { + return v.value +} + +func (v *NullableModelsSSLEndpointHistoryResponse) Set(val *ModelsSSLEndpointHistoryResponse) { + v.value = val + v.isSet = true +} + +func (v NullableModelsSSLEndpointHistoryResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsSSLEndpointHistoryResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsSSLEndpointHistoryResponse(val *ModelsSSLEndpointHistoryResponse) *NullableModelsSSLEndpointHistoryResponse { + return &NullableModelsSSLEndpointHistoryResponse{value: val, isSet: true} +} + +func (v NullableModelsSSLEndpointHistoryResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsSSLEndpointHistoryResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_ssl_endpoint_history_response_certificate_model.go b/v1/api/keyfactor/model_models_ssl_endpoint_history_response_certificate_model.go new file mode 100644 index 0000000..0188186 --- /dev/null +++ b/v1/api/keyfactor/model_models_ssl_endpoint_history_response_certificate_model.go @@ -0,0 +1,525 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" + "time" +) + +// checks if the ModelsSSLEndpointHistoryResponseCertificateModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsSSLEndpointHistoryResponseCertificateModel{} + +// ModelsSSLEndpointHistoryResponseCertificateModel struct for ModelsSSLEndpointHistoryResponseCertificateModel +type ModelsSSLEndpointHistoryResponseCertificateModel struct { + Id *int32 `json:"Id,omitempty"` + IssuedDN NullableString `json:"IssuedDN,omitempty"` + SerialNumber *string `json:"SerialNumber,omitempty"` + NotBefore *time.Time `json:"NotBefore,omitempty"` + NotAfter *time.Time `json:"NotAfter,omitempty"` + SigningAlgorithm *string `json:"SigningAlgorithm,omitempty"` + Thumbprint *string `json:"Thumbprint,omitempty"` + IssuerDN NullableString `json:"IssuerDN,omitempty"` + IssuedCN NullableString `json:"IssuedCN,omitempty"` + SubjectAltNameElements []ModelsSubjectAlternativeName `json:"SubjectAltNameElements,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsSSLEndpointHistoryResponseCertificateModel ModelsSSLEndpointHistoryResponseCertificateModel + +// NewModelsSSLEndpointHistoryResponseCertificateModel instantiates a new ModelsSSLEndpointHistoryResponseCertificateModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsSSLEndpointHistoryResponseCertificateModel() *ModelsSSLEndpointHistoryResponseCertificateModel { + this := ModelsSSLEndpointHistoryResponseCertificateModel{} + return &this +} + +// NewModelsSSLEndpointHistoryResponseCertificateModelWithDefaults instantiates a new ModelsSSLEndpointHistoryResponseCertificateModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsSSLEndpointHistoryResponseCertificateModelWithDefaults() *ModelsSSLEndpointHistoryResponseCertificateModel { + this := ModelsSSLEndpointHistoryResponseCertificateModel{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ModelsSSLEndpointHistoryResponseCertificateModel) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLEndpointHistoryResponseCertificateModel) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ModelsSSLEndpointHistoryResponseCertificateModel) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *ModelsSSLEndpointHistoryResponseCertificateModel) SetId(v int32) { + o.Id = &v +} + +// GetIssuedDN returns the IssuedDN field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModelsSSLEndpointHistoryResponseCertificateModel) GetIssuedDN() string { + if o == nil || isNil(o.IssuedDN.Get()) { + var ret string + return ret + } + return *o.IssuedDN.Get() +} + +// GetIssuedDNOk returns a tuple with the IssuedDN field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModelsSSLEndpointHistoryResponseCertificateModel) GetIssuedDNOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IssuedDN.Get(), o.IssuedDN.IsSet() +} + +// HasIssuedDN returns a boolean if a field has been set. +func (o *ModelsSSLEndpointHistoryResponseCertificateModel) HasIssuedDN() bool { + if o != nil && o.IssuedDN.IsSet() { + return true + } + + return false +} + +// SetIssuedDN gets a reference to the given NullableString and assigns it to the IssuedDN field. +func (o *ModelsSSLEndpointHistoryResponseCertificateModel) SetIssuedDN(v string) { + o.IssuedDN.Set(&v) +} + +// SetIssuedDNNil sets the value for IssuedDN to be an explicit nil +func (o *ModelsSSLEndpointHistoryResponseCertificateModel) SetIssuedDNNil() { + o.IssuedDN.Set(nil) +} + +// UnsetIssuedDN ensures that no value is present for IssuedDN, not even an explicit nil +func (o *ModelsSSLEndpointHistoryResponseCertificateModel) UnsetIssuedDN() { + o.IssuedDN.Unset() +} + +// GetSerialNumber returns the SerialNumber field value if set, zero value otherwise. +func (o *ModelsSSLEndpointHistoryResponseCertificateModel) GetSerialNumber() string { + if o == nil || isNil(o.SerialNumber) { + var ret string + return ret + } + return *o.SerialNumber +} + +// GetSerialNumberOk returns a tuple with the SerialNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLEndpointHistoryResponseCertificateModel) GetSerialNumberOk() (*string, bool) { + if o == nil || isNil(o.SerialNumber) { + return nil, false + } + return o.SerialNumber, true +} + +// HasSerialNumber returns a boolean if a field has been set. +func (o *ModelsSSLEndpointHistoryResponseCertificateModel) HasSerialNumber() bool { + if o != nil && !isNil(o.SerialNumber) { + return true + } + + return false +} + +// SetSerialNumber gets a reference to the given string and assigns it to the SerialNumber field. +func (o *ModelsSSLEndpointHistoryResponseCertificateModel) SetSerialNumber(v string) { + o.SerialNumber = &v +} + +// GetNotBefore returns the NotBefore field value if set, zero value otherwise. +func (o *ModelsSSLEndpointHistoryResponseCertificateModel) GetNotBefore() time.Time { + if o == nil || isNil(o.NotBefore) { + var ret time.Time + return ret + } + return *o.NotBefore +} + +// GetNotBeforeOk returns a tuple with the NotBefore field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLEndpointHistoryResponseCertificateModel) GetNotBeforeOk() (*time.Time, bool) { + if o == nil || isNil(o.NotBefore) { + return nil, false + } + return o.NotBefore, true +} + +// HasNotBefore returns a boolean if a field has been set. +func (o *ModelsSSLEndpointHistoryResponseCertificateModel) HasNotBefore() bool { + if o != nil && !isNil(o.NotBefore) { + return true + } + + return false +} + +// SetNotBefore gets a reference to the given time.Time and assigns it to the NotBefore field. +func (o *ModelsSSLEndpointHistoryResponseCertificateModel) SetNotBefore(v time.Time) { + o.NotBefore = &v +} + +// GetNotAfter returns the NotAfter field value if set, zero value otherwise. +func (o *ModelsSSLEndpointHistoryResponseCertificateModel) GetNotAfter() time.Time { + if o == nil || isNil(o.NotAfter) { + var ret time.Time + return ret + } + return *o.NotAfter +} + +// GetNotAfterOk returns a tuple with the NotAfter field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLEndpointHistoryResponseCertificateModel) GetNotAfterOk() (*time.Time, bool) { + if o == nil || isNil(o.NotAfter) { + return nil, false + } + return o.NotAfter, true +} + +// HasNotAfter returns a boolean if a field has been set. +func (o *ModelsSSLEndpointHistoryResponseCertificateModel) HasNotAfter() bool { + if o != nil && !isNil(o.NotAfter) { + return true + } + + return false +} + +// SetNotAfter gets a reference to the given time.Time and assigns it to the NotAfter field. +func (o *ModelsSSLEndpointHistoryResponseCertificateModel) SetNotAfter(v time.Time) { + o.NotAfter = &v +} + +// GetSigningAlgorithm returns the SigningAlgorithm field value if set, zero value otherwise. +func (o *ModelsSSLEndpointHistoryResponseCertificateModel) GetSigningAlgorithm() string { + if o == nil || isNil(o.SigningAlgorithm) { + var ret string + return ret + } + return *o.SigningAlgorithm +} + +// GetSigningAlgorithmOk returns a tuple with the SigningAlgorithm field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLEndpointHistoryResponseCertificateModel) GetSigningAlgorithmOk() (*string, bool) { + if o == nil || isNil(o.SigningAlgorithm) { + return nil, false + } + return o.SigningAlgorithm, true +} + +// HasSigningAlgorithm returns a boolean if a field has been set. +func (o *ModelsSSLEndpointHistoryResponseCertificateModel) HasSigningAlgorithm() bool { + if o != nil && !isNil(o.SigningAlgorithm) { + return true + } + + return false +} + +// SetSigningAlgorithm gets a reference to the given string and assigns it to the SigningAlgorithm field. +func (o *ModelsSSLEndpointHistoryResponseCertificateModel) SetSigningAlgorithm(v string) { + o.SigningAlgorithm = &v +} + +// GetThumbprint returns the Thumbprint field value if set, zero value otherwise. +func (o *ModelsSSLEndpointHistoryResponseCertificateModel) GetThumbprint() string { + if o == nil || isNil(o.Thumbprint) { + var ret string + return ret + } + return *o.Thumbprint +} + +// GetThumbprintOk returns a tuple with the Thumbprint field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLEndpointHistoryResponseCertificateModel) GetThumbprintOk() (*string, bool) { + if o == nil || isNil(o.Thumbprint) { + return nil, false + } + return o.Thumbprint, true +} + +// HasThumbprint returns a boolean if a field has been set. +func (o *ModelsSSLEndpointHistoryResponseCertificateModel) HasThumbprint() bool { + if o != nil && !isNil(o.Thumbprint) { + return true + } + + return false +} + +// SetThumbprint gets a reference to the given string and assigns it to the Thumbprint field. +func (o *ModelsSSLEndpointHistoryResponseCertificateModel) SetThumbprint(v string) { + o.Thumbprint = &v +} + +// GetIssuerDN returns the IssuerDN field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModelsSSLEndpointHistoryResponseCertificateModel) GetIssuerDN() string { + if o == nil || isNil(o.IssuerDN.Get()) { + var ret string + return ret + } + return *o.IssuerDN.Get() +} + +// GetIssuerDNOk returns a tuple with the IssuerDN field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModelsSSLEndpointHistoryResponseCertificateModel) GetIssuerDNOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IssuerDN.Get(), o.IssuerDN.IsSet() +} + +// HasIssuerDN returns a boolean if a field has been set. +func (o *ModelsSSLEndpointHistoryResponseCertificateModel) HasIssuerDN() bool { + if o != nil && o.IssuerDN.IsSet() { + return true + } + + return false +} + +// SetIssuerDN gets a reference to the given NullableString and assigns it to the IssuerDN field. +func (o *ModelsSSLEndpointHistoryResponseCertificateModel) SetIssuerDN(v string) { + o.IssuerDN.Set(&v) +} + +// SetIssuerDNNil sets the value for IssuerDN to be an explicit nil +func (o *ModelsSSLEndpointHistoryResponseCertificateModel) SetIssuerDNNil() { + o.IssuerDN.Set(nil) +} + +// UnsetIssuerDN ensures that no value is present for IssuerDN, not even an explicit nil +func (o *ModelsSSLEndpointHistoryResponseCertificateModel) UnsetIssuerDN() { + o.IssuerDN.Unset() +} + +// GetIssuedCN returns the IssuedCN field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModelsSSLEndpointHistoryResponseCertificateModel) GetIssuedCN() string { + if o == nil || isNil(o.IssuedCN.Get()) { + var ret string + return ret + } + return *o.IssuedCN.Get() +} + +// GetIssuedCNOk returns a tuple with the IssuedCN field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModelsSSLEndpointHistoryResponseCertificateModel) GetIssuedCNOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.IssuedCN.Get(), o.IssuedCN.IsSet() +} + +// HasIssuedCN returns a boolean if a field has been set. +func (o *ModelsSSLEndpointHistoryResponseCertificateModel) HasIssuedCN() bool { + if o != nil && o.IssuedCN.IsSet() { + return true + } + + return false +} + +// SetIssuedCN gets a reference to the given NullableString and assigns it to the IssuedCN field. +func (o *ModelsSSLEndpointHistoryResponseCertificateModel) SetIssuedCN(v string) { + o.IssuedCN.Set(&v) +} + +// SetIssuedCNNil sets the value for IssuedCN to be an explicit nil +func (o *ModelsSSLEndpointHistoryResponseCertificateModel) SetIssuedCNNil() { + o.IssuedCN.Set(nil) +} + +// UnsetIssuedCN ensures that no value is present for IssuedCN, not even an explicit nil +func (o *ModelsSSLEndpointHistoryResponseCertificateModel) UnsetIssuedCN() { + o.IssuedCN.Unset() +} + +// GetSubjectAltNameElements returns the SubjectAltNameElements field value if set, zero value otherwise. +func (o *ModelsSSLEndpointHistoryResponseCertificateModel) GetSubjectAltNameElements() []ModelsSubjectAlternativeName { + if o == nil || isNil(o.SubjectAltNameElements) { + var ret []ModelsSubjectAlternativeName + return ret + } + return o.SubjectAltNameElements +} + +// GetSubjectAltNameElementsOk returns a tuple with the SubjectAltNameElements field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLEndpointHistoryResponseCertificateModel) GetSubjectAltNameElementsOk() ([]ModelsSubjectAlternativeName, bool) { + if o == nil || isNil(o.SubjectAltNameElements) { + return nil, false + } + return o.SubjectAltNameElements, true +} + +// HasSubjectAltNameElements returns a boolean if a field has been set. +func (o *ModelsSSLEndpointHistoryResponseCertificateModel) HasSubjectAltNameElements() bool { + if o != nil && !isNil(o.SubjectAltNameElements) { + return true + } + + return false +} + +// SetSubjectAltNameElements gets a reference to the given []ModelsSubjectAlternativeName and assigns it to the SubjectAltNameElements field. +func (o *ModelsSSLEndpointHistoryResponseCertificateModel) SetSubjectAltNameElements(v []ModelsSubjectAlternativeName) { + o.SubjectAltNameElements = v +} + +func (o ModelsSSLEndpointHistoryResponseCertificateModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsSSLEndpointHistoryResponseCertificateModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if o.IssuedDN.IsSet() { + toSerialize["IssuedDN"] = o.IssuedDN.Get() + } + if !isNil(o.SerialNumber) { + toSerialize["SerialNumber"] = o.SerialNumber + } + if !isNil(o.NotBefore) { + toSerialize["NotBefore"] = o.NotBefore + } + if !isNil(o.NotAfter) { + toSerialize["NotAfter"] = o.NotAfter + } + if !isNil(o.SigningAlgorithm) { + toSerialize["SigningAlgorithm"] = o.SigningAlgorithm + } + if !isNil(o.Thumbprint) { + toSerialize["Thumbprint"] = o.Thumbprint + } + if o.IssuerDN.IsSet() { + toSerialize["IssuerDN"] = o.IssuerDN.Get() + } + if o.IssuedCN.IsSet() { + toSerialize["IssuedCN"] = o.IssuedCN.Get() + } + if !isNil(o.SubjectAltNameElements) { + toSerialize["SubjectAltNameElements"] = o.SubjectAltNameElements + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsSSLEndpointHistoryResponseCertificateModel) UnmarshalJSON(bytes []byte) (err error) { + varModelsSSLEndpointHistoryResponseCertificateModel := _ModelsSSLEndpointHistoryResponseCertificateModel{} + + if err = json.Unmarshal(bytes, &varModelsSSLEndpointHistoryResponseCertificateModel); err == nil { + *o = ModelsSSLEndpointHistoryResponseCertificateModel(varModelsSSLEndpointHistoryResponseCertificateModel) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "IssuedDN") + delete(additionalProperties, "SerialNumber") + delete(additionalProperties, "NotBefore") + delete(additionalProperties, "NotAfter") + delete(additionalProperties, "SigningAlgorithm") + delete(additionalProperties, "Thumbprint") + delete(additionalProperties, "IssuerDN") + delete(additionalProperties, "IssuedCN") + delete(additionalProperties, "SubjectAltNameElements") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsSSLEndpointHistoryResponseCertificateModel struct { + value *ModelsSSLEndpointHistoryResponseCertificateModel + isSet bool +} + +func (v NullableModelsSSLEndpointHistoryResponseCertificateModel) Get() *ModelsSSLEndpointHistoryResponseCertificateModel { + return v.value +} + +func (v *NullableModelsSSLEndpointHistoryResponseCertificateModel) Set(val *ModelsSSLEndpointHistoryResponseCertificateModel) { + v.value = val + v.isSet = true +} + +func (v NullableModelsSSLEndpointHistoryResponseCertificateModel) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsSSLEndpointHistoryResponseCertificateModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsSSLEndpointHistoryResponseCertificateModel(val *ModelsSSLEndpointHistoryResponseCertificateModel) *NullableModelsSSLEndpointHistoryResponseCertificateModel { + return &NullableModelsSSLEndpointHistoryResponseCertificateModel{value: val, isSet: true} +} + +func (v NullableModelsSSLEndpointHistoryResponseCertificateModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsSSLEndpointHistoryResponseCertificateModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_ssl_endpoint_status_request.go b/v1/api/keyfactor/model_models_ssl_endpoint_status_request.go new file mode 100644 index 0000000..abc12a9 --- /dev/null +++ b/v1/api/keyfactor/model_models_ssl_endpoint_status_request.go @@ -0,0 +1,177 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsSSLEndpointStatusRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsSSLEndpointStatusRequest{} + +// ModelsSSLEndpointStatusRequest struct for ModelsSSLEndpointStatusRequest +type ModelsSSLEndpointStatusRequest struct { + Id string `json:"Id"` + Status bool `json:"Status"` + AdditionalProperties map[string]interface{} +} + +type _ModelsSSLEndpointStatusRequest ModelsSSLEndpointStatusRequest + +// NewModelsSSLEndpointStatusRequest instantiates a new ModelsSSLEndpointStatusRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsSSLEndpointStatusRequest(id string, status bool) *ModelsSSLEndpointStatusRequest { + this := ModelsSSLEndpointStatusRequest{} + this.Id = id + this.Status = status + return &this +} + +// NewModelsSSLEndpointStatusRequestWithDefaults instantiates a new ModelsSSLEndpointStatusRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsSSLEndpointStatusRequestWithDefaults() *ModelsSSLEndpointStatusRequest { + this := ModelsSSLEndpointStatusRequest{} + return &this +} + +// GetId returns the Id field value +func (o *ModelsSSLEndpointStatusRequest) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *ModelsSSLEndpointStatusRequest) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ModelsSSLEndpointStatusRequest) SetId(v string) { + o.Id = v +} + +// GetStatus returns the Status field value +func (o *ModelsSSLEndpointStatusRequest) GetStatus() bool { + if o == nil { + var ret bool + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *ModelsSSLEndpointStatusRequest) GetStatusOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *ModelsSSLEndpointStatusRequest) SetStatus(v bool) { + o.Status = v +} + +func (o ModelsSSLEndpointStatusRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsSSLEndpointStatusRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Id"] = o.Id + toSerialize["Status"] = o.Status + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsSSLEndpointStatusRequest) UnmarshalJSON(bytes []byte) (err error) { + varModelsSSLEndpointStatusRequest := _ModelsSSLEndpointStatusRequest{} + + if err = json.Unmarshal(bytes, &varModelsSSLEndpointStatusRequest); err == nil { + *o = ModelsSSLEndpointStatusRequest(varModelsSSLEndpointStatusRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "Status") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsSSLEndpointStatusRequest struct { + value *ModelsSSLEndpointStatusRequest + isSet bool +} + +func (v NullableModelsSSLEndpointStatusRequest) Get() *ModelsSSLEndpointStatusRequest { + return v.value +} + +func (v *NullableModelsSSLEndpointStatusRequest) Set(val *ModelsSSLEndpointStatusRequest) { + v.value = val + v.isSet = true +} + +func (v NullableModelsSSLEndpointStatusRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsSSLEndpointStatusRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsSSLEndpointStatusRequest(val *ModelsSSLEndpointStatusRequest) *NullableModelsSSLEndpointStatusRequest { + return &NullableModelsSSLEndpointStatusRequest{value: val, isSet: true} +} + +func (v NullableModelsSSLEndpointStatusRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsSSLEndpointStatusRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_ssl_immediate_ssl_scan_request.go b/v1/api/keyfactor/model_models_ssl_immediate_ssl_scan_request.go new file mode 100644 index 0000000..4bd46b3 --- /dev/null +++ b/v1/api/keyfactor/model_models_ssl_immediate_ssl_scan_request.go @@ -0,0 +1,177 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsSSLImmediateSslScanRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsSSLImmediateSslScanRequest{} + +// ModelsSSLImmediateSslScanRequest struct for ModelsSSLImmediateSslScanRequest +type ModelsSSLImmediateSslScanRequest struct { + Discovery bool `json:"Discovery"` + Monitoring bool `json:"Monitoring"` + AdditionalProperties map[string]interface{} +} + +type _ModelsSSLImmediateSslScanRequest ModelsSSLImmediateSslScanRequest + +// NewModelsSSLImmediateSslScanRequest instantiates a new ModelsSSLImmediateSslScanRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsSSLImmediateSslScanRequest(discovery bool, monitoring bool) *ModelsSSLImmediateSslScanRequest { + this := ModelsSSLImmediateSslScanRequest{} + this.Discovery = discovery + this.Monitoring = monitoring + return &this +} + +// NewModelsSSLImmediateSslScanRequestWithDefaults instantiates a new ModelsSSLImmediateSslScanRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsSSLImmediateSslScanRequestWithDefaults() *ModelsSSLImmediateSslScanRequest { + this := ModelsSSLImmediateSslScanRequest{} + return &this +} + +// GetDiscovery returns the Discovery field value +func (o *ModelsSSLImmediateSslScanRequest) GetDiscovery() bool { + if o == nil { + var ret bool + return ret + } + + return o.Discovery +} + +// GetDiscoveryOk returns a tuple with the Discovery field value +// and a boolean to check if the value has been set. +func (o *ModelsSSLImmediateSslScanRequest) GetDiscoveryOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Discovery, true +} + +// SetDiscovery sets field value +func (o *ModelsSSLImmediateSslScanRequest) SetDiscovery(v bool) { + o.Discovery = v +} + +// GetMonitoring returns the Monitoring field value +func (o *ModelsSSLImmediateSslScanRequest) GetMonitoring() bool { + if o == nil { + var ret bool + return ret + } + + return o.Monitoring +} + +// GetMonitoringOk returns a tuple with the Monitoring field value +// and a boolean to check if the value has been set. +func (o *ModelsSSLImmediateSslScanRequest) GetMonitoringOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Monitoring, true +} + +// SetMonitoring sets field value +func (o *ModelsSSLImmediateSslScanRequest) SetMonitoring(v bool) { + o.Monitoring = v +} + +func (o ModelsSSLImmediateSslScanRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsSSLImmediateSslScanRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["Discovery"] = o.Discovery + toSerialize["Monitoring"] = o.Monitoring + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsSSLImmediateSslScanRequest) UnmarshalJSON(bytes []byte) (err error) { + varModelsSSLImmediateSslScanRequest := _ModelsSSLImmediateSslScanRequest{} + + if err = json.Unmarshal(bytes, &varModelsSSLImmediateSslScanRequest); err == nil { + *o = ModelsSSLImmediateSslScanRequest(varModelsSSLImmediateSslScanRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Discovery") + delete(additionalProperties, "Monitoring") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsSSLImmediateSslScanRequest struct { + value *ModelsSSLImmediateSslScanRequest + isSet bool +} + +func (v NullableModelsSSLImmediateSslScanRequest) Get() *ModelsSSLImmediateSslScanRequest { + return v.value +} + +func (v *NullableModelsSSLImmediateSslScanRequest) Set(val *ModelsSSLImmediateSslScanRequest) { + v.value = val + v.isSet = true +} + +func (v NullableModelsSSLImmediateSslScanRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsSSLImmediateSslScanRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsSSLImmediateSslScanRequest(val *ModelsSSLImmediateSslScanRequest) *NullableModelsSSLImmediateSslScanRequest { + return &NullableModelsSSLImmediateSslScanRequest{value: val, isSet: true} +} + +func (v NullableModelsSSLImmediateSslScanRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsSSLImmediateSslScanRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_ssl_network_definition.go b/v1/api/keyfactor/model_models_ssl_network_definition.go new file mode 100644 index 0000000..59fa2f9 --- /dev/null +++ b/v1/api/keyfactor/model_models_ssl_network_definition.go @@ -0,0 +1,195 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsSSLNetworkDefinition type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsSSLNetworkDefinition{} + +// ModelsSSLNetworkDefinition struct for ModelsSSLNetworkDefinition +type ModelsSSLNetworkDefinition struct { + ItemType *int32 `json:"ItemType,omitempty"` + Value *string `json:"Value,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsSSLNetworkDefinition ModelsSSLNetworkDefinition + +// NewModelsSSLNetworkDefinition instantiates a new ModelsSSLNetworkDefinition object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsSSLNetworkDefinition() *ModelsSSLNetworkDefinition { + this := ModelsSSLNetworkDefinition{} + return &this +} + +// NewModelsSSLNetworkDefinitionWithDefaults instantiates a new ModelsSSLNetworkDefinition object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsSSLNetworkDefinitionWithDefaults() *ModelsSSLNetworkDefinition { + this := ModelsSSLNetworkDefinition{} + return &this +} + +// GetItemType returns the ItemType field value if set, zero value otherwise. +func (o *ModelsSSLNetworkDefinition) GetItemType() int32 { + if o == nil || isNil(o.ItemType) { + var ret int32 + return ret + } + return *o.ItemType +} + +// GetItemTypeOk returns a tuple with the ItemType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLNetworkDefinition) GetItemTypeOk() (*int32, bool) { + if o == nil || isNil(o.ItemType) { + return nil, false + } + return o.ItemType, true +} + +// HasItemType returns a boolean if a field has been set. +func (o *ModelsSSLNetworkDefinition) HasItemType() bool { + if o != nil && !isNil(o.ItemType) { + return true + } + + return false +} + +// SetItemType gets a reference to the given int32 and assigns it to the ItemType field. +func (o *ModelsSSLNetworkDefinition) SetItemType(v int32) { + o.ItemType = &v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *ModelsSSLNetworkDefinition) GetValue() string { + if o == nil || isNil(o.Value) { + var ret string + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLNetworkDefinition) GetValueOk() (*string, bool) { + if o == nil || isNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *ModelsSSLNetworkDefinition) HasValue() bool { + if o != nil && !isNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given string and assigns it to the Value field. +func (o *ModelsSSLNetworkDefinition) SetValue(v string) { + o.Value = &v +} + +func (o ModelsSSLNetworkDefinition) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsSSLNetworkDefinition) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.ItemType) { + toSerialize["ItemType"] = o.ItemType + } + if !isNil(o.Value) { + toSerialize["Value"] = o.Value + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsSSLNetworkDefinition) UnmarshalJSON(bytes []byte) (err error) { + varModelsSSLNetworkDefinition := _ModelsSSLNetworkDefinition{} + + if err = json.Unmarshal(bytes, &varModelsSSLNetworkDefinition); err == nil { + *o = ModelsSSLNetworkDefinition(varModelsSSLNetworkDefinition) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "ItemType") + delete(additionalProperties, "Value") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsSSLNetworkDefinition struct { + value *ModelsSSLNetworkDefinition + isSet bool +} + +func (v NullableModelsSSLNetworkDefinition) Get() *ModelsSSLNetworkDefinition { + return v.value +} + +func (v *NullableModelsSSLNetworkDefinition) Set(val *ModelsSSLNetworkDefinition) { + v.value = val + v.isSet = true +} + +func (v NullableModelsSSLNetworkDefinition) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsSSLNetworkDefinition) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsSSLNetworkDefinition(val *ModelsSSLNetworkDefinition) *NullableModelsSSLNetworkDefinition { + return &NullableModelsSSLNetworkDefinition{value: val, isSet: true} +} + +func (v NullableModelsSSLNetworkDefinition) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsSSLNetworkDefinition) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_ssl_network_ranges_request.go b/v1/api/keyfactor/model_models_ssl_network_ranges_request.go new file mode 100644 index 0000000..9722ff1 --- /dev/null +++ b/v1/api/keyfactor/model_models_ssl_network_ranges_request.go @@ -0,0 +1,177 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsSSLNetworkRangesRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsSSLNetworkRangesRequest{} + +// ModelsSSLNetworkRangesRequest struct for ModelsSSLNetworkRangesRequest +type ModelsSSLNetworkRangesRequest struct { + NetworkId string `json:"NetworkId"` + Ranges []string `json:"Ranges"` + AdditionalProperties map[string]interface{} +} + +type _ModelsSSLNetworkRangesRequest ModelsSSLNetworkRangesRequest + +// NewModelsSSLNetworkRangesRequest instantiates a new ModelsSSLNetworkRangesRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsSSLNetworkRangesRequest(networkId string, ranges []string) *ModelsSSLNetworkRangesRequest { + this := ModelsSSLNetworkRangesRequest{} + this.NetworkId = networkId + this.Ranges = ranges + return &this +} + +// NewModelsSSLNetworkRangesRequestWithDefaults instantiates a new ModelsSSLNetworkRangesRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsSSLNetworkRangesRequestWithDefaults() *ModelsSSLNetworkRangesRequest { + this := ModelsSSLNetworkRangesRequest{} + return &this +} + +// GetNetworkId returns the NetworkId field value +func (o *ModelsSSLNetworkRangesRequest) GetNetworkId() string { + if o == nil { + var ret string + return ret + } + + return o.NetworkId +} + +// GetNetworkIdOk returns a tuple with the NetworkId field value +// and a boolean to check if the value has been set. +func (o *ModelsSSLNetworkRangesRequest) GetNetworkIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.NetworkId, true +} + +// SetNetworkId sets field value +func (o *ModelsSSLNetworkRangesRequest) SetNetworkId(v string) { + o.NetworkId = v +} + +// GetRanges returns the Ranges field value +func (o *ModelsSSLNetworkRangesRequest) GetRanges() []string { + if o == nil { + var ret []string + return ret + } + + return o.Ranges +} + +// GetRangesOk returns a tuple with the Ranges field value +// and a boolean to check if the value has been set. +func (o *ModelsSSLNetworkRangesRequest) GetRangesOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Ranges, true +} + +// SetRanges sets field value +func (o *ModelsSSLNetworkRangesRequest) SetRanges(v []string) { + o.Ranges = v +} + +func (o ModelsSSLNetworkRangesRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsSSLNetworkRangesRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["NetworkId"] = o.NetworkId + toSerialize["Ranges"] = o.Ranges + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsSSLNetworkRangesRequest) UnmarshalJSON(bytes []byte) (err error) { + varModelsSSLNetworkRangesRequest := _ModelsSSLNetworkRangesRequest{} + + if err = json.Unmarshal(bytes, &varModelsSSLNetworkRangesRequest); err == nil { + *o = ModelsSSLNetworkRangesRequest(varModelsSSLNetworkRangesRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "NetworkId") + delete(additionalProperties, "Ranges") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsSSLNetworkRangesRequest struct { + value *ModelsSSLNetworkRangesRequest + isSet bool +} + +func (v NullableModelsSSLNetworkRangesRequest) Get() *ModelsSSLNetworkRangesRequest { + return v.value +} + +func (v *NullableModelsSSLNetworkRangesRequest) Set(val *ModelsSSLNetworkRangesRequest) { + v.value = val + v.isSet = true +} + +func (v NullableModelsSSLNetworkRangesRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsSSLNetworkRangesRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsSSLNetworkRangesRequest(val *ModelsSSLNetworkRangesRequest) *NullableModelsSSLNetworkRangesRequest { + return &NullableModelsSSLNetworkRangesRequest{value: val, isSet: true} +} + +func (v NullableModelsSSLNetworkRangesRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsSSLNetworkRangesRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_ssl_scan_job_part.go b/v1/api/keyfactor/model_models_ssl_scan_job_part.go new file mode 100644 index 0000000..e35add0 --- /dev/null +++ b/v1/api/keyfactor/model_models_ssl_scan_job_part.go @@ -0,0 +1,751 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" + "time" +) + +// checks if the ModelsSSLScanJobPart type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsSSLScanJobPart{} + +// ModelsSSLScanJobPart struct for ModelsSSLScanJobPart +type ModelsSSLScanJobPart struct { + ScanJobPartId *string `json:"ScanJobPartId,omitempty"` + LogicalScanJobId *string `json:"LogicalScanJobId,omitempty"` + AgentJobId *string `json:"AgentJobId,omitempty"` + EstimatedEndpointCount *int32 `json:"EstimatedEndpointCount,omitempty"` + Status *int32 `json:"Status,omitempty"` + StatTotalEndpointCount *int32 `json:"StatTotalEndpointCount,omitempty"` + StatTimedOutConnectingCount *int32 `json:"StatTimedOutConnectingCount,omitempty"` + StatConnectionRefusedCount *int32 `json:"StatConnectionRefusedCount,omitempty"` + StatTimedOutDownloadingCount *int32 `json:"StatTimedOutDownloadingCount,omitempty"` + StatExceptionDownloadingCount *int32 `json:"StatExceptionDownloadingCount,omitempty"` + StatNotSslCount *int32 `json:"StatNotSslCount,omitempty"` + StatBadSslHandshakeCount *int32 `json:"StatBadSslHandshakeCount,omitempty"` + StatCertificateFoundCount *int32 `json:"StatCertificateFoundCount,omitempty"` + StatNoCertificateCount *int32 `json:"StatNoCertificateCount,omitempty"` + ScanJobPartDefinitions []ModelsSSLScanJobPartDefinition `json:"ScanJobPartDefinitions,omitempty"` + StartTime *time.Time `json:"StartTime,omitempty"` + EndTime *time.Time `json:"EndTime,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsSSLScanJobPart ModelsSSLScanJobPart + +// NewModelsSSLScanJobPart instantiates a new ModelsSSLScanJobPart object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsSSLScanJobPart() *ModelsSSLScanJobPart { + this := ModelsSSLScanJobPart{} + return &this +} + +// NewModelsSSLScanJobPartWithDefaults instantiates a new ModelsSSLScanJobPart object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsSSLScanJobPartWithDefaults() *ModelsSSLScanJobPart { + this := ModelsSSLScanJobPart{} + return &this +} + +// GetScanJobPartId returns the ScanJobPartId field value if set, zero value otherwise. +func (o *ModelsSSLScanJobPart) GetScanJobPartId() string { + if o == nil || isNil(o.ScanJobPartId) { + var ret string + return ret + } + return *o.ScanJobPartId +} + +// GetScanJobPartIdOk returns a tuple with the ScanJobPartId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLScanJobPart) GetScanJobPartIdOk() (*string, bool) { + if o == nil || isNil(o.ScanJobPartId) { + return nil, false + } + return o.ScanJobPartId, true +} + +// HasScanJobPartId returns a boolean if a field has been set. +func (o *ModelsSSLScanJobPart) HasScanJobPartId() bool { + if o != nil && !isNil(o.ScanJobPartId) { + return true + } + + return false +} + +// SetScanJobPartId gets a reference to the given string and assigns it to the ScanJobPartId field. +func (o *ModelsSSLScanJobPart) SetScanJobPartId(v string) { + o.ScanJobPartId = &v +} + +// GetLogicalScanJobId returns the LogicalScanJobId field value if set, zero value otherwise. +func (o *ModelsSSLScanJobPart) GetLogicalScanJobId() string { + if o == nil || isNil(o.LogicalScanJobId) { + var ret string + return ret + } + return *o.LogicalScanJobId +} + +// GetLogicalScanJobIdOk returns a tuple with the LogicalScanJobId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLScanJobPart) GetLogicalScanJobIdOk() (*string, bool) { + if o == nil || isNil(o.LogicalScanJobId) { + return nil, false + } + return o.LogicalScanJobId, true +} + +// HasLogicalScanJobId returns a boolean if a field has been set. +func (o *ModelsSSLScanJobPart) HasLogicalScanJobId() bool { + if o != nil && !isNil(o.LogicalScanJobId) { + return true + } + + return false +} + +// SetLogicalScanJobId gets a reference to the given string and assigns it to the LogicalScanJobId field. +func (o *ModelsSSLScanJobPart) SetLogicalScanJobId(v string) { + o.LogicalScanJobId = &v +} + +// GetAgentJobId returns the AgentJobId field value if set, zero value otherwise. +func (o *ModelsSSLScanJobPart) GetAgentJobId() string { + if o == nil || isNil(o.AgentJobId) { + var ret string + return ret + } + return *o.AgentJobId +} + +// GetAgentJobIdOk returns a tuple with the AgentJobId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLScanJobPart) GetAgentJobIdOk() (*string, bool) { + if o == nil || isNil(o.AgentJobId) { + return nil, false + } + return o.AgentJobId, true +} + +// HasAgentJobId returns a boolean if a field has been set. +func (o *ModelsSSLScanJobPart) HasAgentJobId() bool { + if o != nil && !isNil(o.AgentJobId) { + return true + } + + return false +} + +// SetAgentJobId gets a reference to the given string and assigns it to the AgentJobId field. +func (o *ModelsSSLScanJobPart) SetAgentJobId(v string) { + o.AgentJobId = &v +} + +// GetEstimatedEndpointCount returns the EstimatedEndpointCount field value if set, zero value otherwise. +func (o *ModelsSSLScanJobPart) GetEstimatedEndpointCount() int32 { + if o == nil || isNil(o.EstimatedEndpointCount) { + var ret int32 + return ret + } + return *o.EstimatedEndpointCount +} + +// GetEstimatedEndpointCountOk returns a tuple with the EstimatedEndpointCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLScanJobPart) GetEstimatedEndpointCountOk() (*int32, bool) { + if o == nil || isNil(o.EstimatedEndpointCount) { + return nil, false + } + return o.EstimatedEndpointCount, true +} + +// HasEstimatedEndpointCount returns a boolean if a field has been set. +func (o *ModelsSSLScanJobPart) HasEstimatedEndpointCount() bool { + if o != nil && !isNil(o.EstimatedEndpointCount) { + return true + } + + return false +} + +// SetEstimatedEndpointCount gets a reference to the given int32 and assigns it to the EstimatedEndpointCount field. +func (o *ModelsSSLScanJobPart) SetEstimatedEndpointCount(v int32) { + o.EstimatedEndpointCount = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ModelsSSLScanJobPart) GetStatus() int32 { + if o == nil || isNil(o.Status) { + var ret int32 + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLScanJobPart) GetStatusOk() (*int32, bool) { + if o == nil || isNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ModelsSSLScanJobPart) HasStatus() bool { + if o != nil && !isNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given int32 and assigns it to the Status field. +func (o *ModelsSSLScanJobPart) SetStatus(v int32) { + o.Status = &v +} + +// GetStatTotalEndpointCount returns the StatTotalEndpointCount field value if set, zero value otherwise. +func (o *ModelsSSLScanJobPart) GetStatTotalEndpointCount() int32 { + if o == nil || isNil(o.StatTotalEndpointCount) { + var ret int32 + return ret + } + return *o.StatTotalEndpointCount +} + +// GetStatTotalEndpointCountOk returns a tuple with the StatTotalEndpointCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLScanJobPart) GetStatTotalEndpointCountOk() (*int32, bool) { + if o == nil || isNil(o.StatTotalEndpointCount) { + return nil, false + } + return o.StatTotalEndpointCount, true +} + +// HasStatTotalEndpointCount returns a boolean if a field has been set. +func (o *ModelsSSLScanJobPart) HasStatTotalEndpointCount() bool { + if o != nil && !isNil(o.StatTotalEndpointCount) { + return true + } + + return false +} + +// SetStatTotalEndpointCount gets a reference to the given int32 and assigns it to the StatTotalEndpointCount field. +func (o *ModelsSSLScanJobPart) SetStatTotalEndpointCount(v int32) { + o.StatTotalEndpointCount = &v +} + +// GetStatTimedOutConnectingCount returns the StatTimedOutConnectingCount field value if set, zero value otherwise. +func (o *ModelsSSLScanJobPart) GetStatTimedOutConnectingCount() int32 { + if o == nil || isNil(o.StatTimedOutConnectingCount) { + var ret int32 + return ret + } + return *o.StatTimedOutConnectingCount +} + +// GetStatTimedOutConnectingCountOk returns a tuple with the StatTimedOutConnectingCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLScanJobPart) GetStatTimedOutConnectingCountOk() (*int32, bool) { + if o == nil || isNil(o.StatTimedOutConnectingCount) { + return nil, false + } + return o.StatTimedOutConnectingCount, true +} + +// HasStatTimedOutConnectingCount returns a boolean if a field has been set. +func (o *ModelsSSLScanJobPart) HasStatTimedOutConnectingCount() bool { + if o != nil && !isNil(o.StatTimedOutConnectingCount) { + return true + } + + return false +} + +// SetStatTimedOutConnectingCount gets a reference to the given int32 and assigns it to the StatTimedOutConnectingCount field. +func (o *ModelsSSLScanJobPart) SetStatTimedOutConnectingCount(v int32) { + o.StatTimedOutConnectingCount = &v +} + +// GetStatConnectionRefusedCount returns the StatConnectionRefusedCount field value if set, zero value otherwise. +func (o *ModelsSSLScanJobPart) GetStatConnectionRefusedCount() int32 { + if o == nil || isNil(o.StatConnectionRefusedCount) { + var ret int32 + return ret + } + return *o.StatConnectionRefusedCount +} + +// GetStatConnectionRefusedCountOk returns a tuple with the StatConnectionRefusedCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLScanJobPart) GetStatConnectionRefusedCountOk() (*int32, bool) { + if o == nil || isNil(o.StatConnectionRefusedCount) { + return nil, false + } + return o.StatConnectionRefusedCount, true +} + +// HasStatConnectionRefusedCount returns a boolean if a field has been set. +func (o *ModelsSSLScanJobPart) HasStatConnectionRefusedCount() bool { + if o != nil && !isNil(o.StatConnectionRefusedCount) { + return true + } + + return false +} + +// SetStatConnectionRefusedCount gets a reference to the given int32 and assigns it to the StatConnectionRefusedCount field. +func (o *ModelsSSLScanJobPart) SetStatConnectionRefusedCount(v int32) { + o.StatConnectionRefusedCount = &v +} + +// GetStatTimedOutDownloadingCount returns the StatTimedOutDownloadingCount field value if set, zero value otherwise. +func (o *ModelsSSLScanJobPart) GetStatTimedOutDownloadingCount() int32 { + if o == nil || isNil(o.StatTimedOutDownloadingCount) { + var ret int32 + return ret + } + return *o.StatTimedOutDownloadingCount +} + +// GetStatTimedOutDownloadingCountOk returns a tuple with the StatTimedOutDownloadingCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLScanJobPart) GetStatTimedOutDownloadingCountOk() (*int32, bool) { + if o == nil || isNil(o.StatTimedOutDownloadingCount) { + return nil, false + } + return o.StatTimedOutDownloadingCount, true +} + +// HasStatTimedOutDownloadingCount returns a boolean if a field has been set. +func (o *ModelsSSLScanJobPart) HasStatTimedOutDownloadingCount() bool { + if o != nil && !isNil(o.StatTimedOutDownloadingCount) { + return true + } + + return false +} + +// SetStatTimedOutDownloadingCount gets a reference to the given int32 and assigns it to the StatTimedOutDownloadingCount field. +func (o *ModelsSSLScanJobPart) SetStatTimedOutDownloadingCount(v int32) { + o.StatTimedOutDownloadingCount = &v +} + +// GetStatExceptionDownloadingCount returns the StatExceptionDownloadingCount field value if set, zero value otherwise. +func (o *ModelsSSLScanJobPart) GetStatExceptionDownloadingCount() int32 { + if o == nil || isNil(o.StatExceptionDownloadingCount) { + var ret int32 + return ret + } + return *o.StatExceptionDownloadingCount +} + +// GetStatExceptionDownloadingCountOk returns a tuple with the StatExceptionDownloadingCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLScanJobPart) GetStatExceptionDownloadingCountOk() (*int32, bool) { + if o == nil || isNil(o.StatExceptionDownloadingCount) { + return nil, false + } + return o.StatExceptionDownloadingCount, true +} + +// HasStatExceptionDownloadingCount returns a boolean if a field has been set. +func (o *ModelsSSLScanJobPart) HasStatExceptionDownloadingCount() bool { + if o != nil && !isNil(o.StatExceptionDownloadingCount) { + return true + } + + return false +} + +// SetStatExceptionDownloadingCount gets a reference to the given int32 and assigns it to the StatExceptionDownloadingCount field. +func (o *ModelsSSLScanJobPart) SetStatExceptionDownloadingCount(v int32) { + o.StatExceptionDownloadingCount = &v +} + +// GetStatNotSslCount returns the StatNotSslCount field value if set, zero value otherwise. +func (o *ModelsSSLScanJobPart) GetStatNotSslCount() int32 { + if o == nil || isNil(o.StatNotSslCount) { + var ret int32 + return ret + } + return *o.StatNotSslCount +} + +// GetStatNotSslCountOk returns a tuple with the StatNotSslCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLScanJobPart) GetStatNotSslCountOk() (*int32, bool) { + if o == nil || isNil(o.StatNotSslCount) { + return nil, false + } + return o.StatNotSslCount, true +} + +// HasStatNotSslCount returns a boolean if a field has been set. +func (o *ModelsSSLScanJobPart) HasStatNotSslCount() bool { + if o != nil && !isNil(o.StatNotSslCount) { + return true + } + + return false +} + +// SetStatNotSslCount gets a reference to the given int32 and assigns it to the StatNotSslCount field. +func (o *ModelsSSLScanJobPart) SetStatNotSslCount(v int32) { + o.StatNotSslCount = &v +} + +// GetStatBadSslHandshakeCount returns the StatBadSslHandshakeCount field value if set, zero value otherwise. +func (o *ModelsSSLScanJobPart) GetStatBadSslHandshakeCount() int32 { + if o == nil || isNil(o.StatBadSslHandshakeCount) { + var ret int32 + return ret + } + return *o.StatBadSslHandshakeCount +} + +// GetStatBadSslHandshakeCountOk returns a tuple with the StatBadSslHandshakeCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLScanJobPart) GetStatBadSslHandshakeCountOk() (*int32, bool) { + if o == nil || isNil(o.StatBadSslHandshakeCount) { + return nil, false + } + return o.StatBadSslHandshakeCount, true +} + +// HasStatBadSslHandshakeCount returns a boolean if a field has been set. +func (o *ModelsSSLScanJobPart) HasStatBadSslHandshakeCount() bool { + if o != nil && !isNil(o.StatBadSslHandshakeCount) { + return true + } + + return false +} + +// SetStatBadSslHandshakeCount gets a reference to the given int32 and assigns it to the StatBadSslHandshakeCount field. +func (o *ModelsSSLScanJobPart) SetStatBadSslHandshakeCount(v int32) { + o.StatBadSslHandshakeCount = &v +} + +// GetStatCertificateFoundCount returns the StatCertificateFoundCount field value if set, zero value otherwise. +func (o *ModelsSSLScanJobPart) GetStatCertificateFoundCount() int32 { + if o == nil || isNil(o.StatCertificateFoundCount) { + var ret int32 + return ret + } + return *o.StatCertificateFoundCount +} + +// GetStatCertificateFoundCountOk returns a tuple with the StatCertificateFoundCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLScanJobPart) GetStatCertificateFoundCountOk() (*int32, bool) { + if o == nil || isNil(o.StatCertificateFoundCount) { + return nil, false + } + return o.StatCertificateFoundCount, true +} + +// HasStatCertificateFoundCount returns a boolean if a field has been set. +func (o *ModelsSSLScanJobPart) HasStatCertificateFoundCount() bool { + if o != nil && !isNil(o.StatCertificateFoundCount) { + return true + } + + return false +} + +// SetStatCertificateFoundCount gets a reference to the given int32 and assigns it to the StatCertificateFoundCount field. +func (o *ModelsSSLScanJobPart) SetStatCertificateFoundCount(v int32) { + o.StatCertificateFoundCount = &v +} + +// GetStatNoCertificateCount returns the StatNoCertificateCount field value if set, zero value otherwise. +func (o *ModelsSSLScanJobPart) GetStatNoCertificateCount() int32 { + if o == nil || isNil(o.StatNoCertificateCount) { + var ret int32 + return ret + } + return *o.StatNoCertificateCount +} + +// GetStatNoCertificateCountOk returns a tuple with the StatNoCertificateCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLScanJobPart) GetStatNoCertificateCountOk() (*int32, bool) { + if o == nil || isNil(o.StatNoCertificateCount) { + return nil, false + } + return o.StatNoCertificateCount, true +} + +// HasStatNoCertificateCount returns a boolean if a field has been set. +func (o *ModelsSSLScanJobPart) HasStatNoCertificateCount() bool { + if o != nil && !isNil(o.StatNoCertificateCount) { + return true + } + + return false +} + +// SetStatNoCertificateCount gets a reference to the given int32 and assigns it to the StatNoCertificateCount field. +func (o *ModelsSSLScanJobPart) SetStatNoCertificateCount(v int32) { + o.StatNoCertificateCount = &v +} + +// GetScanJobPartDefinitions returns the ScanJobPartDefinitions field value if set, zero value otherwise. +func (o *ModelsSSLScanJobPart) GetScanJobPartDefinitions() []ModelsSSLScanJobPartDefinition { + if o == nil || isNil(o.ScanJobPartDefinitions) { + var ret []ModelsSSLScanJobPartDefinition + return ret + } + return o.ScanJobPartDefinitions +} + +// GetScanJobPartDefinitionsOk returns a tuple with the ScanJobPartDefinitions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLScanJobPart) GetScanJobPartDefinitionsOk() ([]ModelsSSLScanJobPartDefinition, bool) { + if o == nil || isNil(o.ScanJobPartDefinitions) { + return nil, false + } + return o.ScanJobPartDefinitions, true +} + +// HasScanJobPartDefinitions returns a boolean if a field has been set. +func (o *ModelsSSLScanJobPart) HasScanJobPartDefinitions() bool { + if o != nil && !isNil(o.ScanJobPartDefinitions) { + return true + } + + return false +} + +// SetScanJobPartDefinitions gets a reference to the given []ModelsSSLScanJobPartDefinition and assigns it to the ScanJobPartDefinitions field. +func (o *ModelsSSLScanJobPart) SetScanJobPartDefinitions(v []ModelsSSLScanJobPartDefinition) { + o.ScanJobPartDefinitions = v +} + +// GetStartTime returns the StartTime field value if set, zero value otherwise. +func (o *ModelsSSLScanJobPart) GetStartTime() time.Time { + if o == nil || isNil(o.StartTime) { + var ret time.Time + return ret + } + return *o.StartTime +} + +// GetStartTimeOk returns a tuple with the StartTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLScanJobPart) GetStartTimeOk() (*time.Time, bool) { + if o == nil || isNil(o.StartTime) { + return nil, false + } + return o.StartTime, true +} + +// HasStartTime returns a boolean if a field has been set. +func (o *ModelsSSLScanJobPart) HasStartTime() bool { + if o != nil && !isNil(o.StartTime) { + return true + } + + return false +} + +// SetStartTime gets a reference to the given time.Time and assigns it to the StartTime field. +func (o *ModelsSSLScanJobPart) SetStartTime(v time.Time) { + o.StartTime = &v +} + +// GetEndTime returns the EndTime field value if set, zero value otherwise. +func (o *ModelsSSLScanJobPart) GetEndTime() time.Time { + if o == nil || isNil(o.EndTime) { + var ret time.Time + return ret + } + return *o.EndTime +} + +// GetEndTimeOk returns a tuple with the EndTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLScanJobPart) GetEndTimeOk() (*time.Time, bool) { + if o == nil || isNil(o.EndTime) { + return nil, false + } + return o.EndTime, true +} + +// HasEndTime returns a boolean if a field has been set. +func (o *ModelsSSLScanJobPart) HasEndTime() bool { + if o != nil && !isNil(o.EndTime) { + return true + } + + return false +} + +// SetEndTime gets a reference to the given time.Time and assigns it to the EndTime field. +func (o *ModelsSSLScanJobPart) SetEndTime(v time.Time) { + o.EndTime = &v +} + +func (o ModelsSSLScanJobPart) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsSSLScanJobPart) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.ScanJobPartId) { + toSerialize["ScanJobPartId"] = o.ScanJobPartId + } + if !isNil(o.LogicalScanJobId) { + toSerialize["LogicalScanJobId"] = o.LogicalScanJobId + } + if !isNil(o.AgentJobId) { + toSerialize["AgentJobId"] = o.AgentJobId + } + if !isNil(o.EstimatedEndpointCount) { + toSerialize["EstimatedEndpointCount"] = o.EstimatedEndpointCount + } + if !isNil(o.Status) { + toSerialize["Status"] = o.Status + } + if !isNil(o.StatTotalEndpointCount) { + toSerialize["StatTotalEndpointCount"] = o.StatTotalEndpointCount + } + if !isNil(o.StatTimedOutConnectingCount) { + toSerialize["StatTimedOutConnectingCount"] = o.StatTimedOutConnectingCount + } + if !isNil(o.StatConnectionRefusedCount) { + toSerialize["StatConnectionRefusedCount"] = o.StatConnectionRefusedCount + } + if !isNil(o.StatTimedOutDownloadingCount) { + toSerialize["StatTimedOutDownloadingCount"] = o.StatTimedOutDownloadingCount + } + if !isNil(o.StatExceptionDownloadingCount) { + toSerialize["StatExceptionDownloadingCount"] = o.StatExceptionDownloadingCount + } + if !isNil(o.StatNotSslCount) { + toSerialize["StatNotSslCount"] = o.StatNotSslCount + } + if !isNil(o.StatBadSslHandshakeCount) { + toSerialize["StatBadSslHandshakeCount"] = o.StatBadSslHandshakeCount + } + if !isNil(o.StatCertificateFoundCount) { + toSerialize["StatCertificateFoundCount"] = o.StatCertificateFoundCount + } + if !isNil(o.StatNoCertificateCount) { + toSerialize["StatNoCertificateCount"] = o.StatNoCertificateCount + } + if !isNil(o.ScanJobPartDefinitions) { + toSerialize["ScanJobPartDefinitions"] = o.ScanJobPartDefinitions + } + if !isNil(o.StartTime) { + toSerialize["StartTime"] = o.StartTime + } + if !isNil(o.EndTime) { + toSerialize["EndTime"] = o.EndTime + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsSSLScanJobPart) UnmarshalJSON(bytes []byte) (err error) { + varModelsSSLScanJobPart := _ModelsSSLScanJobPart{} + + if err = json.Unmarshal(bytes, &varModelsSSLScanJobPart); err == nil { + *o = ModelsSSLScanJobPart(varModelsSSLScanJobPart) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "ScanJobPartId") + delete(additionalProperties, "LogicalScanJobId") + delete(additionalProperties, "AgentJobId") + delete(additionalProperties, "EstimatedEndpointCount") + delete(additionalProperties, "Status") + delete(additionalProperties, "StatTotalEndpointCount") + delete(additionalProperties, "StatTimedOutConnectingCount") + delete(additionalProperties, "StatConnectionRefusedCount") + delete(additionalProperties, "StatTimedOutDownloadingCount") + delete(additionalProperties, "StatExceptionDownloadingCount") + delete(additionalProperties, "StatNotSslCount") + delete(additionalProperties, "StatBadSslHandshakeCount") + delete(additionalProperties, "StatCertificateFoundCount") + delete(additionalProperties, "StatNoCertificateCount") + delete(additionalProperties, "ScanJobPartDefinitions") + delete(additionalProperties, "StartTime") + delete(additionalProperties, "EndTime") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsSSLScanJobPart struct { + value *ModelsSSLScanJobPart + isSet bool +} + +func (v NullableModelsSSLScanJobPart) Get() *ModelsSSLScanJobPart { + return v.value +} + +func (v *NullableModelsSSLScanJobPart) Set(val *ModelsSSLScanJobPart) { + v.value = val + v.isSet = true +} + +func (v NullableModelsSSLScanJobPart) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsSSLScanJobPart) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsSSLScanJobPart(val *ModelsSSLScanJobPart) *NullableModelsSSLScanJobPart { + return &NullableModelsSSLScanJobPart{value: val, isSet: true} +} + +func (v NullableModelsSSLScanJobPart) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsSSLScanJobPart) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_ssl_scan_job_part_definition.go b/v1/api/keyfactor/model_models_ssl_scan_job_part_definition.go new file mode 100644 index 0000000..0c4607a --- /dev/null +++ b/v1/api/keyfactor/model_models_ssl_scan_job_part_definition.go @@ -0,0 +1,195 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsSSLScanJobPartDefinition type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsSSLScanJobPartDefinition{} + +// ModelsSSLScanJobPartDefinition struct for ModelsSSLScanJobPartDefinition +type ModelsSSLScanJobPartDefinition struct { + ItemType *int32 `json:"ItemType,omitempty"` + Value *string `json:"Value,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsSSLScanJobPartDefinition ModelsSSLScanJobPartDefinition + +// NewModelsSSLScanJobPartDefinition instantiates a new ModelsSSLScanJobPartDefinition object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsSSLScanJobPartDefinition() *ModelsSSLScanJobPartDefinition { + this := ModelsSSLScanJobPartDefinition{} + return &this +} + +// NewModelsSSLScanJobPartDefinitionWithDefaults instantiates a new ModelsSSLScanJobPartDefinition object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsSSLScanJobPartDefinitionWithDefaults() *ModelsSSLScanJobPartDefinition { + this := ModelsSSLScanJobPartDefinition{} + return &this +} + +// GetItemType returns the ItemType field value if set, zero value otherwise. +func (o *ModelsSSLScanJobPartDefinition) GetItemType() int32 { + if o == nil || isNil(o.ItemType) { + var ret int32 + return ret + } + return *o.ItemType +} + +// GetItemTypeOk returns a tuple with the ItemType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLScanJobPartDefinition) GetItemTypeOk() (*int32, bool) { + if o == nil || isNil(o.ItemType) { + return nil, false + } + return o.ItemType, true +} + +// HasItemType returns a boolean if a field has been set. +func (o *ModelsSSLScanJobPartDefinition) HasItemType() bool { + if o != nil && !isNil(o.ItemType) { + return true + } + + return false +} + +// SetItemType gets a reference to the given int32 and assigns it to the ItemType field. +func (o *ModelsSSLScanJobPartDefinition) SetItemType(v int32) { + o.ItemType = &v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *ModelsSSLScanJobPartDefinition) GetValue() string { + if o == nil || isNil(o.Value) { + var ret string + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLScanJobPartDefinition) GetValueOk() (*string, bool) { + if o == nil || isNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *ModelsSSLScanJobPartDefinition) HasValue() bool { + if o != nil && !isNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given string and assigns it to the Value field. +func (o *ModelsSSLScanJobPartDefinition) SetValue(v string) { + o.Value = &v +} + +func (o ModelsSSLScanJobPartDefinition) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsSSLScanJobPartDefinition) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.ItemType) { + toSerialize["ItemType"] = o.ItemType + } + if !isNil(o.Value) { + toSerialize["Value"] = o.Value + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsSSLScanJobPartDefinition) UnmarshalJSON(bytes []byte) (err error) { + varModelsSSLScanJobPartDefinition := _ModelsSSLScanJobPartDefinition{} + + if err = json.Unmarshal(bytes, &varModelsSSLScanJobPartDefinition); err == nil { + *o = ModelsSSLScanJobPartDefinition(varModelsSSLScanJobPartDefinition) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "ItemType") + delete(additionalProperties, "Value") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsSSLScanJobPartDefinition struct { + value *ModelsSSLScanJobPartDefinition + isSet bool +} + +func (v NullableModelsSSLScanJobPartDefinition) Get() *ModelsSSLScanJobPartDefinition { + return v.value +} + +func (v *NullableModelsSSLScanJobPartDefinition) Set(val *ModelsSSLScanJobPartDefinition) { + v.value = val + v.isSet = true +} + +func (v NullableModelsSSLScanJobPartDefinition) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsSSLScanJobPartDefinition) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsSSLScanJobPartDefinition(val *ModelsSSLScanJobPartDefinition) *NullableModelsSSLScanJobPartDefinition { + return &NullableModelsSSLScanJobPartDefinition{value: val, isSet: true} +} + +func (v NullableModelsSSLScanJobPartDefinition) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsSSLScanJobPartDefinition) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_ssl_ssl_scan_result.go b/v1/api/keyfactor/model_models_ssl_ssl_scan_result.go new file mode 100644 index 0000000..3149b68 --- /dev/null +++ b/v1/api/keyfactor/model_models_ssl_ssl_scan_result.go @@ -0,0 +1,528 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsSSLSslScanResult type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsSSLSslScanResult{} + +// ModelsSSLSslScanResult struct for ModelsSSLSslScanResult +type ModelsSSLSslScanResult struct { + EndpointId *string `json:"EndpointId,omitempty"` + ReverseDNS *string `json:"ReverseDNS,omitempty"` + SNIName *string `json:"SNIName,omitempty"` + IpAddress *string `json:"IpAddress,omitempty"` + Port *int32 `json:"Port,omitempty"` + CertificateFound *bool `json:"CertificateFound,omitempty"` + AgentPoolName *string `json:"AgentPoolName,omitempty"` + NetworkName *string `json:"NetworkName,omitempty"` + MonitorStatus *bool `json:"MonitorStatus,omitempty"` + CertificateCN *string `json:"CertificateCN,omitempty"` + Reviewed *bool `json:"Reviewed,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsSSLSslScanResult ModelsSSLSslScanResult + +// NewModelsSSLSslScanResult instantiates a new ModelsSSLSslScanResult object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsSSLSslScanResult() *ModelsSSLSslScanResult { + this := ModelsSSLSslScanResult{} + return &this +} + +// NewModelsSSLSslScanResultWithDefaults instantiates a new ModelsSSLSslScanResult object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsSSLSslScanResultWithDefaults() *ModelsSSLSslScanResult { + this := ModelsSSLSslScanResult{} + return &this +} + +// GetEndpointId returns the EndpointId field value if set, zero value otherwise. +func (o *ModelsSSLSslScanResult) GetEndpointId() string { + if o == nil || isNil(o.EndpointId) { + var ret string + return ret + } + return *o.EndpointId +} + +// GetEndpointIdOk returns a tuple with the EndpointId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLSslScanResult) GetEndpointIdOk() (*string, bool) { + if o == nil || isNil(o.EndpointId) { + return nil, false + } + return o.EndpointId, true +} + +// HasEndpointId returns a boolean if a field has been set. +func (o *ModelsSSLSslScanResult) HasEndpointId() bool { + if o != nil && !isNil(o.EndpointId) { + return true + } + + return false +} + +// SetEndpointId gets a reference to the given string and assigns it to the EndpointId field. +func (o *ModelsSSLSslScanResult) SetEndpointId(v string) { + o.EndpointId = &v +} + +// GetReverseDNS returns the ReverseDNS field value if set, zero value otherwise. +func (o *ModelsSSLSslScanResult) GetReverseDNS() string { + if o == nil || isNil(o.ReverseDNS) { + var ret string + return ret + } + return *o.ReverseDNS +} + +// GetReverseDNSOk returns a tuple with the ReverseDNS field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLSslScanResult) GetReverseDNSOk() (*string, bool) { + if o == nil || isNil(o.ReverseDNS) { + return nil, false + } + return o.ReverseDNS, true +} + +// HasReverseDNS returns a boolean if a field has been set. +func (o *ModelsSSLSslScanResult) HasReverseDNS() bool { + if o != nil && !isNil(o.ReverseDNS) { + return true + } + + return false +} + +// SetReverseDNS gets a reference to the given string and assigns it to the ReverseDNS field. +func (o *ModelsSSLSslScanResult) SetReverseDNS(v string) { + o.ReverseDNS = &v +} + +// GetSNIName returns the SNIName field value if set, zero value otherwise. +func (o *ModelsSSLSslScanResult) GetSNIName() string { + if o == nil || isNil(o.SNIName) { + var ret string + return ret + } + return *o.SNIName +} + +// GetSNINameOk returns a tuple with the SNIName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLSslScanResult) GetSNINameOk() (*string, bool) { + if o == nil || isNil(o.SNIName) { + return nil, false + } + return o.SNIName, true +} + +// HasSNIName returns a boolean if a field has been set. +func (o *ModelsSSLSslScanResult) HasSNIName() bool { + if o != nil && !isNil(o.SNIName) { + return true + } + + return false +} + +// SetSNIName gets a reference to the given string and assigns it to the SNIName field. +func (o *ModelsSSLSslScanResult) SetSNIName(v string) { + o.SNIName = &v +} + +// GetIpAddress returns the IpAddress field value if set, zero value otherwise. +func (o *ModelsSSLSslScanResult) GetIpAddress() string { + if o == nil || isNil(o.IpAddress) { + var ret string + return ret + } + return *o.IpAddress +} + +// GetIpAddressOk returns a tuple with the IpAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLSslScanResult) GetIpAddressOk() (*string, bool) { + if o == nil || isNil(o.IpAddress) { + return nil, false + } + return o.IpAddress, true +} + +// HasIpAddress returns a boolean if a field has been set. +func (o *ModelsSSLSslScanResult) HasIpAddress() bool { + if o != nil && !isNil(o.IpAddress) { + return true + } + + return false +} + +// SetIpAddress gets a reference to the given string and assigns it to the IpAddress field. +func (o *ModelsSSLSslScanResult) SetIpAddress(v string) { + o.IpAddress = &v +} + +// GetPort returns the Port field value if set, zero value otherwise. +func (o *ModelsSSLSslScanResult) GetPort() int32 { + if o == nil || isNil(o.Port) { + var ret int32 + return ret + } + return *o.Port +} + +// GetPortOk returns a tuple with the Port field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLSslScanResult) GetPortOk() (*int32, bool) { + if o == nil || isNil(o.Port) { + return nil, false + } + return o.Port, true +} + +// HasPort returns a boolean if a field has been set. +func (o *ModelsSSLSslScanResult) HasPort() bool { + if o != nil && !isNil(o.Port) { + return true + } + + return false +} + +// SetPort gets a reference to the given int32 and assigns it to the Port field. +func (o *ModelsSSLSslScanResult) SetPort(v int32) { + o.Port = &v +} + +// GetCertificateFound returns the CertificateFound field value if set, zero value otherwise. +func (o *ModelsSSLSslScanResult) GetCertificateFound() bool { + if o == nil || isNil(o.CertificateFound) { + var ret bool + return ret + } + return *o.CertificateFound +} + +// GetCertificateFoundOk returns a tuple with the CertificateFound field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLSslScanResult) GetCertificateFoundOk() (*bool, bool) { + if o == nil || isNil(o.CertificateFound) { + return nil, false + } + return o.CertificateFound, true +} + +// HasCertificateFound returns a boolean if a field has been set. +func (o *ModelsSSLSslScanResult) HasCertificateFound() bool { + if o != nil && !isNil(o.CertificateFound) { + return true + } + + return false +} + +// SetCertificateFound gets a reference to the given bool and assigns it to the CertificateFound field. +func (o *ModelsSSLSslScanResult) SetCertificateFound(v bool) { + o.CertificateFound = &v +} + +// GetAgentPoolName returns the AgentPoolName field value if set, zero value otherwise. +func (o *ModelsSSLSslScanResult) GetAgentPoolName() string { + if o == nil || isNil(o.AgentPoolName) { + var ret string + return ret + } + return *o.AgentPoolName +} + +// GetAgentPoolNameOk returns a tuple with the AgentPoolName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLSslScanResult) GetAgentPoolNameOk() (*string, bool) { + if o == nil || isNil(o.AgentPoolName) { + return nil, false + } + return o.AgentPoolName, true +} + +// HasAgentPoolName returns a boolean if a field has been set. +func (o *ModelsSSLSslScanResult) HasAgentPoolName() bool { + if o != nil && !isNil(o.AgentPoolName) { + return true + } + + return false +} + +// SetAgentPoolName gets a reference to the given string and assigns it to the AgentPoolName field. +func (o *ModelsSSLSslScanResult) SetAgentPoolName(v string) { + o.AgentPoolName = &v +} + +// GetNetworkName returns the NetworkName field value if set, zero value otherwise. +func (o *ModelsSSLSslScanResult) GetNetworkName() string { + if o == nil || isNil(o.NetworkName) { + var ret string + return ret + } + return *o.NetworkName +} + +// GetNetworkNameOk returns a tuple with the NetworkName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLSslScanResult) GetNetworkNameOk() (*string, bool) { + if o == nil || isNil(o.NetworkName) { + return nil, false + } + return o.NetworkName, true +} + +// HasNetworkName returns a boolean if a field has been set. +func (o *ModelsSSLSslScanResult) HasNetworkName() bool { + if o != nil && !isNil(o.NetworkName) { + return true + } + + return false +} + +// SetNetworkName gets a reference to the given string and assigns it to the NetworkName field. +func (o *ModelsSSLSslScanResult) SetNetworkName(v string) { + o.NetworkName = &v +} + +// GetMonitorStatus returns the MonitorStatus field value if set, zero value otherwise. +func (o *ModelsSSLSslScanResult) GetMonitorStatus() bool { + if o == nil || isNil(o.MonitorStatus) { + var ret bool + return ret + } + return *o.MonitorStatus +} + +// GetMonitorStatusOk returns a tuple with the MonitorStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLSslScanResult) GetMonitorStatusOk() (*bool, bool) { + if o == nil || isNil(o.MonitorStatus) { + return nil, false + } + return o.MonitorStatus, true +} + +// HasMonitorStatus returns a boolean if a field has been set. +func (o *ModelsSSLSslScanResult) HasMonitorStatus() bool { + if o != nil && !isNil(o.MonitorStatus) { + return true + } + + return false +} + +// SetMonitorStatus gets a reference to the given bool and assigns it to the MonitorStatus field. +func (o *ModelsSSLSslScanResult) SetMonitorStatus(v bool) { + o.MonitorStatus = &v +} + +// GetCertificateCN returns the CertificateCN field value if set, zero value otherwise. +func (o *ModelsSSLSslScanResult) GetCertificateCN() string { + if o == nil || isNil(o.CertificateCN) { + var ret string + return ret + } + return *o.CertificateCN +} + +// GetCertificateCNOk returns a tuple with the CertificateCN field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLSslScanResult) GetCertificateCNOk() (*string, bool) { + if o == nil || isNil(o.CertificateCN) { + return nil, false + } + return o.CertificateCN, true +} + +// HasCertificateCN returns a boolean if a field has been set. +func (o *ModelsSSLSslScanResult) HasCertificateCN() bool { + if o != nil && !isNil(o.CertificateCN) { + return true + } + + return false +} + +// SetCertificateCN gets a reference to the given string and assigns it to the CertificateCN field. +func (o *ModelsSSLSslScanResult) SetCertificateCN(v string) { + o.CertificateCN = &v +} + +// GetReviewed returns the Reviewed field value if set, zero value otherwise. +func (o *ModelsSSLSslScanResult) GetReviewed() bool { + if o == nil || isNil(o.Reviewed) { + var ret bool + return ret + } + return *o.Reviewed +} + +// GetReviewedOk returns a tuple with the Reviewed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSSLSslScanResult) GetReviewedOk() (*bool, bool) { + if o == nil || isNil(o.Reviewed) { + return nil, false + } + return o.Reviewed, true +} + +// HasReviewed returns a boolean if a field has been set. +func (o *ModelsSSLSslScanResult) HasReviewed() bool { + if o != nil && !isNil(o.Reviewed) { + return true + } + + return false +} + +// SetReviewed gets a reference to the given bool and assigns it to the Reviewed field. +func (o *ModelsSSLSslScanResult) SetReviewed(v bool) { + o.Reviewed = &v +} + +func (o ModelsSSLSslScanResult) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsSSLSslScanResult) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.EndpointId) { + toSerialize["EndpointId"] = o.EndpointId + } + if !isNil(o.ReverseDNS) { + toSerialize["ReverseDNS"] = o.ReverseDNS + } + if !isNil(o.SNIName) { + toSerialize["SNIName"] = o.SNIName + } + if !isNil(o.IpAddress) { + toSerialize["IpAddress"] = o.IpAddress + } + if !isNil(o.Port) { + toSerialize["Port"] = o.Port + } + if !isNil(o.CertificateFound) { + toSerialize["CertificateFound"] = o.CertificateFound + } + if !isNil(o.AgentPoolName) { + toSerialize["AgentPoolName"] = o.AgentPoolName + } + if !isNil(o.NetworkName) { + toSerialize["NetworkName"] = o.NetworkName + } + if !isNil(o.MonitorStatus) { + toSerialize["MonitorStatus"] = o.MonitorStatus + } + if !isNil(o.CertificateCN) { + toSerialize["CertificateCN"] = o.CertificateCN + } + if !isNil(o.Reviewed) { + toSerialize["Reviewed"] = o.Reviewed + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsSSLSslScanResult) UnmarshalJSON(bytes []byte) (err error) { + varModelsSSLSslScanResult := _ModelsSSLSslScanResult{} + + if err = json.Unmarshal(bytes, &varModelsSSLSslScanResult); err == nil { + *o = ModelsSSLSslScanResult(varModelsSSLSslScanResult) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "EndpointId") + delete(additionalProperties, "ReverseDNS") + delete(additionalProperties, "SNIName") + delete(additionalProperties, "IpAddress") + delete(additionalProperties, "Port") + delete(additionalProperties, "CertificateFound") + delete(additionalProperties, "AgentPoolName") + delete(additionalProperties, "NetworkName") + delete(additionalProperties, "MonitorStatus") + delete(additionalProperties, "CertificateCN") + delete(additionalProperties, "Reviewed") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsSSLSslScanResult struct { + value *ModelsSSLSslScanResult + isSet bool +} + +func (v NullableModelsSSLSslScanResult) Get() *ModelsSSLSslScanResult { + return v.value +} + +func (v *NullableModelsSSLSslScanResult) Set(val *ModelsSSLSslScanResult) { + v.value = val + v.isSet = true +} + +func (v NullableModelsSSLSslScanResult) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsSSLSslScanResult) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsSSLSslScanResult(val *ModelsSSLSslScanResult) *NullableModelsSSLSslScanResult { + return &NullableModelsSSLSslScanResult{value: val, isSet: true} +} + +func (v NullableModelsSSLSslScanResult) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsSSLSslScanResult) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_subject_alternative_name.go b/v1/api/keyfactor/model_models_subject_alternative_name.go new file mode 100644 index 0000000..5cc76c6 --- /dev/null +++ b/v1/api/keyfactor/model_models_subject_alternative_name.go @@ -0,0 +1,269 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsSubjectAlternativeName type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsSubjectAlternativeName{} + +// ModelsSubjectAlternativeName struct for ModelsSubjectAlternativeName +type ModelsSubjectAlternativeName struct { + Id *int32 `json:"Id,omitempty"` + Value *string `json:"Value,omitempty"` + Type *int32 `json:"Type,omitempty"` + ValueHash *string `json:"ValueHash,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsSubjectAlternativeName ModelsSubjectAlternativeName + +// NewModelsSubjectAlternativeName instantiates a new ModelsSubjectAlternativeName object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsSubjectAlternativeName() *ModelsSubjectAlternativeName { + this := ModelsSubjectAlternativeName{} + return &this +} + +// NewModelsSubjectAlternativeNameWithDefaults instantiates a new ModelsSubjectAlternativeName object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsSubjectAlternativeNameWithDefaults() *ModelsSubjectAlternativeName { + this := ModelsSubjectAlternativeName{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ModelsSubjectAlternativeName) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSubjectAlternativeName) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ModelsSubjectAlternativeName) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *ModelsSubjectAlternativeName) SetId(v int32) { + o.Id = &v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *ModelsSubjectAlternativeName) GetValue() string { + if o == nil || isNil(o.Value) { + var ret string + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSubjectAlternativeName) GetValueOk() (*string, bool) { + if o == nil || isNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *ModelsSubjectAlternativeName) HasValue() bool { + if o != nil && !isNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given string and assigns it to the Value field. +func (o *ModelsSubjectAlternativeName) SetValue(v string) { + o.Value = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *ModelsSubjectAlternativeName) GetType() int32 { + if o == nil || isNil(o.Type) { + var ret int32 + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSubjectAlternativeName) GetTypeOk() (*int32, bool) { + if o == nil || isNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *ModelsSubjectAlternativeName) HasType() bool { + if o != nil && !isNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given int32 and assigns it to the Type field. +func (o *ModelsSubjectAlternativeName) SetType(v int32) { + o.Type = &v +} + +// GetValueHash returns the ValueHash field value if set, zero value otherwise. +func (o *ModelsSubjectAlternativeName) GetValueHash() string { + if o == nil || isNil(o.ValueHash) { + var ret string + return ret + } + return *o.ValueHash +} + +// GetValueHashOk returns a tuple with the ValueHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsSubjectAlternativeName) GetValueHashOk() (*string, bool) { + if o == nil || isNil(o.ValueHash) { + return nil, false + } + return o.ValueHash, true +} + +// HasValueHash returns a boolean if a field has been set. +func (o *ModelsSubjectAlternativeName) HasValueHash() bool { + if o != nil && !isNil(o.ValueHash) { + return true + } + + return false +} + +// SetValueHash gets a reference to the given string and assigns it to the ValueHash field. +func (o *ModelsSubjectAlternativeName) SetValueHash(v string) { + o.ValueHash = &v +} + +func (o ModelsSubjectAlternativeName) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsSubjectAlternativeName) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.Value) { + toSerialize["Value"] = o.Value + } + if !isNil(o.Type) { + toSerialize["Type"] = o.Type + } + if !isNil(o.ValueHash) { + toSerialize["ValueHash"] = o.ValueHash + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsSubjectAlternativeName) UnmarshalJSON(bytes []byte) (err error) { + varModelsSubjectAlternativeName := _ModelsSubjectAlternativeName{} + + if err = json.Unmarshal(bytes, &varModelsSubjectAlternativeName); err == nil { + *o = ModelsSubjectAlternativeName(varModelsSubjectAlternativeName) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "Value") + delete(additionalProperties, "Type") + delete(additionalProperties, "ValueHash") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsSubjectAlternativeName struct { + value *ModelsSubjectAlternativeName + isSet bool +} + +func (v NullableModelsSubjectAlternativeName) Get() *ModelsSubjectAlternativeName { + return v.value +} + +func (v *NullableModelsSubjectAlternativeName) Set(val *ModelsSubjectAlternativeName) { + v.value = val + v.isSet = true +} + +func (v NullableModelsSubjectAlternativeName) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsSubjectAlternativeName) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsSubjectAlternativeName(val *ModelsSubjectAlternativeName) *NullableModelsSubjectAlternativeName { + return &NullableModelsSubjectAlternativeName{value: val, isSet: true} +} + +func (v NullableModelsSubjectAlternativeName) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsSubjectAlternativeName) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_template_collection_retrieval_response.go b/v1/api/keyfactor/model_models_template_collection_retrieval_response.go new file mode 100644 index 0000000..bc56dab --- /dev/null +++ b/v1/api/keyfactor/model_models_template_collection_retrieval_response.go @@ -0,0 +1,896 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsTemplateCollectionRetrievalResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsTemplateCollectionRetrievalResponse{} + +// ModelsTemplateCollectionRetrievalResponse struct for ModelsTemplateCollectionRetrievalResponse +type ModelsTemplateCollectionRetrievalResponse struct { + Id *int32 `json:"Id,omitempty"` + CommonName *string `json:"CommonName,omitempty"` + TemplateName *string `json:"TemplateName,omitempty"` + Oid *string `json:"Oid,omitempty"` + KeySize *string `json:"KeySize,omitempty"` + KeyType *string `json:"KeyType,omitempty"` + ForestRoot *string `json:"ForestRoot,omitempty"` + ConfigurationTenant *string `json:"ConfigurationTenant,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + KeyRetention *int32 `json:"KeyRetention,omitempty"` + KeyRetentionDays *int32 `json:"KeyRetentionDays,omitempty"` + KeyArchival *bool `json:"KeyArchival,omitempty"` + EnrollmentFields []ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel `json:"EnrollmentFields,omitempty"` + AllowedEnrollmentTypes *int32 `json:"AllowedEnrollmentTypes,omitempty"` + TemplateRegexes []ModelsTemplateCollectionRetrievalResponseTemplateRegexModel `json:"TemplateRegexes,omitempty"` + UseAllowedRequesters *bool `json:"UseAllowedRequesters,omitempty"` + AllowedRequesters []string `json:"AllowedRequesters,omitempty"` + DisplayName *string `json:"DisplayName,omitempty"` + RequiresApproval *bool `json:"RequiresApproval,omitempty"` + KeyUsage *int32 `json:"KeyUsage,omitempty"` + ExtendedKeyUsages []ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel `json:"ExtendedKeyUsages,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsTemplateCollectionRetrievalResponse ModelsTemplateCollectionRetrievalResponse + +// NewModelsTemplateCollectionRetrievalResponse instantiates a new ModelsTemplateCollectionRetrievalResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsTemplateCollectionRetrievalResponse() *ModelsTemplateCollectionRetrievalResponse { + this := ModelsTemplateCollectionRetrievalResponse{} + return &this +} + +// NewModelsTemplateCollectionRetrievalResponseWithDefaults instantiates a new ModelsTemplateCollectionRetrievalResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsTemplateCollectionRetrievalResponseWithDefaults() *ModelsTemplateCollectionRetrievalResponse { + this := ModelsTemplateCollectionRetrievalResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ModelsTemplateCollectionRetrievalResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateCollectionRetrievalResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ModelsTemplateCollectionRetrievalResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *ModelsTemplateCollectionRetrievalResponse) SetId(v int32) { + o.Id = &v +} + +// GetCommonName returns the CommonName field value if set, zero value otherwise. +func (o *ModelsTemplateCollectionRetrievalResponse) GetCommonName() string { + if o == nil || isNil(o.CommonName) { + var ret string + return ret + } + return *o.CommonName +} + +// GetCommonNameOk returns a tuple with the CommonName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateCollectionRetrievalResponse) GetCommonNameOk() (*string, bool) { + if o == nil || isNil(o.CommonName) { + return nil, false + } + return o.CommonName, true +} + +// HasCommonName returns a boolean if a field has been set. +func (o *ModelsTemplateCollectionRetrievalResponse) HasCommonName() bool { + if o != nil && !isNil(o.CommonName) { + return true + } + + return false +} + +// SetCommonName gets a reference to the given string and assigns it to the CommonName field. +func (o *ModelsTemplateCollectionRetrievalResponse) SetCommonName(v string) { + o.CommonName = &v +} + +// GetTemplateName returns the TemplateName field value if set, zero value otherwise. +func (o *ModelsTemplateCollectionRetrievalResponse) GetTemplateName() string { + if o == nil || isNil(o.TemplateName) { + var ret string + return ret + } + return *o.TemplateName +} + +// GetTemplateNameOk returns a tuple with the TemplateName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateCollectionRetrievalResponse) GetTemplateNameOk() (*string, bool) { + if o == nil || isNil(o.TemplateName) { + return nil, false + } + return o.TemplateName, true +} + +// HasTemplateName returns a boolean if a field has been set. +func (o *ModelsTemplateCollectionRetrievalResponse) HasTemplateName() bool { + if o != nil && !isNil(o.TemplateName) { + return true + } + + return false +} + +// SetTemplateName gets a reference to the given string and assigns it to the TemplateName field. +func (o *ModelsTemplateCollectionRetrievalResponse) SetTemplateName(v string) { + o.TemplateName = &v +} + +// GetOid returns the Oid field value if set, zero value otherwise. +func (o *ModelsTemplateCollectionRetrievalResponse) GetOid() string { + if o == nil || isNil(o.Oid) { + var ret string + return ret + } + return *o.Oid +} + +// GetOidOk returns a tuple with the Oid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateCollectionRetrievalResponse) GetOidOk() (*string, bool) { + if o == nil || isNil(o.Oid) { + return nil, false + } + return o.Oid, true +} + +// HasOid returns a boolean if a field has been set. +func (o *ModelsTemplateCollectionRetrievalResponse) HasOid() bool { + if o != nil && !isNil(o.Oid) { + return true + } + + return false +} + +// SetOid gets a reference to the given string and assigns it to the Oid field. +func (o *ModelsTemplateCollectionRetrievalResponse) SetOid(v string) { + o.Oid = &v +} + +// GetKeySize returns the KeySize field value if set, zero value otherwise. +func (o *ModelsTemplateCollectionRetrievalResponse) GetKeySize() string { + if o == nil || isNil(o.KeySize) { + var ret string + return ret + } + return *o.KeySize +} + +// GetKeySizeOk returns a tuple with the KeySize field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateCollectionRetrievalResponse) GetKeySizeOk() (*string, bool) { + if o == nil || isNil(o.KeySize) { + return nil, false + } + return o.KeySize, true +} + +// HasKeySize returns a boolean if a field has been set. +func (o *ModelsTemplateCollectionRetrievalResponse) HasKeySize() bool { + if o != nil && !isNil(o.KeySize) { + return true + } + + return false +} + +// SetKeySize gets a reference to the given string and assigns it to the KeySize field. +func (o *ModelsTemplateCollectionRetrievalResponse) SetKeySize(v string) { + o.KeySize = &v +} + +// GetKeyType returns the KeyType field value if set, zero value otherwise. +func (o *ModelsTemplateCollectionRetrievalResponse) GetKeyType() string { + if o == nil || isNil(o.KeyType) { + var ret string + return ret + } + return *o.KeyType +} + +// GetKeyTypeOk returns a tuple with the KeyType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateCollectionRetrievalResponse) GetKeyTypeOk() (*string, bool) { + if o == nil || isNil(o.KeyType) { + return nil, false + } + return o.KeyType, true +} + +// HasKeyType returns a boolean if a field has been set. +func (o *ModelsTemplateCollectionRetrievalResponse) HasKeyType() bool { + if o != nil && !isNil(o.KeyType) { + return true + } + + return false +} + +// SetKeyType gets a reference to the given string and assigns it to the KeyType field. +func (o *ModelsTemplateCollectionRetrievalResponse) SetKeyType(v string) { + o.KeyType = &v +} + +// GetForestRoot returns the ForestRoot field value if set, zero value otherwise. +func (o *ModelsTemplateCollectionRetrievalResponse) GetForestRoot() string { + if o == nil || isNil(o.ForestRoot) { + var ret string + return ret + } + return *o.ForestRoot +} + +// GetForestRootOk returns a tuple with the ForestRoot field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateCollectionRetrievalResponse) GetForestRootOk() (*string, bool) { + if o == nil || isNil(o.ForestRoot) { + return nil, false + } + return o.ForestRoot, true +} + +// HasForestRoot returns a boolean if a field has been set. +func (o *ModelsTemplateCollectionRetrievalResponse) HasForestRoot() bool { + if o != nil && !isNil(o.ForestRoot) { + return true + } + + return false +} + +// SetForestRoot gets a reference to the given string and assigns it to the ForestRoot field. +func (o *ModelsTemplateCollectionRetrievalResponse) SetForestRoot(v string) { + o.ForestRoot = &v +} + +// GetConfigurationTenant returns the ConfigurationTenant field value if set, zero value otherwise. +func (o *ModelsTemplateCollectionRetrievalResponse) GetConfigurationTenant() string { + if o == nil || isNil(o.ConfigurationTenant) { + var ret string + return ret + } + return *o.ConfigurationTenant +} + +// GetConfigurationTenantOk returns a tuple with the ConfigurationTenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateCollectionRetrievalResponse) GetConfigurationTenantOk() (*string, bool) { + if o == nil || isNil(o.ConfigurationTenant) { + return nil, false + } + return o.ConfigurationTenant, true +} + +// HasConfigurationTenant returns a boolean if a field has been set. +func (o *ModelsTemplateCollectionRetrievalResponse) HasConfigurationTenant() bool { + if o != nil && !isNil(o.ConfigurationTenant) { + return true + } + + return false +} + +// SetConfigurationTenant gets a reference to the given string and assigns it to the ConfigurationTenant field. +func (o *ModelsTemplateCollectionRetrievalResponse) SetConfigurationTenant(v string) { + o.ConfigurationTenant = &v +} + +// GetFriendlyName returns the FriendlyName field value if set, zero value otherwise. +func (o *ModelsTemplateCollectionRetrievalResponse) GetFriendlyName() string { + if o == nil || isNil(o.FriendlyName) { + var ret string + return ret + } + return *o.FriendlyName +} + +// GetFriendlyNameOk returns a tuple with the FriendlyName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateCollectionRetrievalResponse) GetFriendlyNameOk() (*string, bool) { + if o == nil || isNil(o.FriendlyName) { + return nil, false + } + return o.FriendlyName, true +} + +// HasFriendlyName returns a boolean if a field has been set. +func (o *ModelsTemplateCollectionRetrievalResponse) HasFriendlyName() bool { + if o != nil && !isNil(o.FriendlyName) { + return true + } + + return false +} + +// SetFriendlyName gets a reference to the given string and assigns it to the FriendlyName field. +func (o *ModelsTemplateCollectionRetrievalResponse) SetFriendlyName(v string) { + o.FriendlyName = &v +} + +// GetKeyRetention returns the KeyRetention field value if set, zero value otherwise. +func (o *ModelsTemplateCollectionRetrievalResponse) GetKeyRetention() int32 { + if o == nil || isNil(o.KeyRetention) { + var ret int32 + return ret + } + return *o.KeyRetention +} + +// GetKeyRetentionOk returns a tuple with the KeyRetention field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateCollectionRetrievalResponse) GetKeyRetentionOk() (*int32, bool) { + if o == nil || isNil(o.KeyRetention) { + return nil, false + } + return o.KeyRetention, true +} + +// HasKeyRetention returns a boolean if a field has been set. +func (o *ModelsTemplateCollectionRetrievalResponse) HasKeyRetention() bool { + if o != nil && !isNil(o.KeyRetention) { + return true + } + + return false +} + +// SetKeyRetention gets a reference to the given int32 and assigns it to the KeyRetention field. +func (o *ModelsTemplateCollectionRetrievalResponse) SetKeyRetention(v int32) { + o.KeyRetention = &v +} + +// GetKeyRetentionDays returns the KeyRetentionDays field value if set, zero value otherwise. +func (o *ModelsTemplateCollectionRetrievalResponse) GetKeyRetentionDays() int32 { + if o == nil || isNil(o.KeyRetentionDays) { + var ret int32 + return ret + } + return *o.KeyRetentionDays +} + +// GetKeyRetentionDaysOk returns a tuple with the KeyRetentionDays field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateCollectionRetrievalResponse) GetKeyRetentionDaysOk() (*int32, bool) { + if o == nil || isNil(o.KeyRetentionDays) { + return nil, false + } + return o.KeyRetentionDays, true +} + +// HasKeyRetentionDays returns a boolean if a field has been set. +func (o *ModelsTemplateCollectionRetrievalResponse) HasKeyRetentionDays() bool { + if o != nil && !isNil(o.KeyRetentionDays) { + return true + } + + return false +} + +// SetKeyRetentionDays gets a reference to the given int32 and assigns it to the KeyRetentionDays field. +func (o *ModelsTemplateCollectionRetrievalResponse) SetKeyRetentionDays(v int32) { + o.KeyRetentionDays = &v +} + +// GetKeyArchival returns the KeyArchival field value if set, zero value otherwise. +func (o *ModelsTemplateCollectionRetrievalResponse) GetKeyArchival() bool { + if o == nil || isNil(o.KeyArchival) { + var ret bool + return ret + } + return *o.KeyArchival +} + +// GetKeyArchivalOk returns a tuple with the KeyArchival field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateCollectionRetrievalResponse) GetKeyArchivalOk() (*bool, bool) { + if o == nil || isNil(o.KeyArchival) { + return nil, false + } + return o.KeyArchival, true +} + +// HasKeyArchival returns a boolean if a field has been set. +func (o *ModelsTemplateCollectionRetrievalResponse) HasKeyArchival() bool { + if o != nil && !isNil(o.KeyArchival) { + return true + } + + return false +} + +// SetKeyArchival gets a reference to the given bool and assigns it to the KeyArchival field. +func (o *ModelsTemplateCollectionRetrievalResponse) SetKeyArchival(v bool) { + o.KeyArchival = &v +} + +// GetEnrollmentFields returns the EnrollmentFields field value if set, zero value otherwise. +func (o *ModelsTemplateCollectionRetrievalResponse) GetEnrollmentFields() []ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel { + if o == nil || isNil(o.EnrollmentFields) { + var ret []ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel + return ret + } + return o.EnrollmentFields +} + +// GetEnrollmentFieldsOk returns a tuple with the EnrollmentFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateCollectionRetrievalResponse) GetEnrollmentFieldsOk() ([]ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel, bool) { + if o == nil || isNil(o.EnrollmentFields) { + return nil, false + } + return o.EnrollmentFields, true +} + +// HasEnrollmentFields returns a boolean if a field has been set. +func (o *ModelsTemplateCollectionRetrievalResponse) HasEnrollmentFields() bool { + if o != nil && !isNil(o.EnrollmentFields) { + return true + } + + return false +} + +// SetEnrollmentFields gets a reference to the given []ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel and assigns it to the EnrollmentFields field. +func (o *ModelsTemplateCollectionRetrievalResponse) SetEnrollmentFields(v []ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel) { + o.EnrollmentFields = v +} + +// GetAllowedEnrollmentTypes returns the AllowedEnrollmentTypes field value if set, zero value otherwise. +func (o *ModelsTemplateCollectionRetrievalResponse) GetAllowedEnrollmentTypes() int32 { + if o == nil || isNil(o.AllowedEnrollmentTypes) { + var ret int32 + return ret + } + return *o.AllowedEnrollmentTypes +} + +// GetAllowedEnrollmentTypesOk returns a tuple with the AllowedEnrollmentTypes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateCollectionRetrievalResponse) GetAllowedEnrollmentTypesOk() (*int32, bool) { + if o == nil || isNil(o.AllowedEnrollmentTypes) { + return nil, false + } + return o.AllowedEnrollmentTypes, true +} + +// HasAllowedEnrollmentTypes returns a boolean if a field has been set. +func (o *ModelsTemplateCollectionRetrievalResponse) HasAllowedEnrollmentTypes() bool { + if o != nil && !isNil(o.AllowedEnrollmentTypes) { + return true + } + + return false +} + +// SetAllowedEnrollmentTypes gets a reference to the given int32 and assigns it to the AllowedEnrollmentTypes field. +func (o *ModelsTemplateCollectionRetrievalResponse) SetAllowedEnrollmentTypes(v int32) { + o.AllowedEnrollmentTypes = &v +} + +// GetTemplateRegexes returns the TemplateRegexes field value if set, zero value otherwise. +func (o *ModelsTemplateCollectionRetrievalResponse) GetTemplateRegexes() []ModelsTemplateCollectionRetrievalResponseTemplateRegexModel { + if o == nil || isNil(o.TemplateRegexes) { + var ret []ModelsTemplateCollectionRetrievalResponseTemplateRegexModel + return ret + } + return o.TemplateRegexes +} + +// GetTemplateRegexesOk returns a tuple with the TemplateRegexes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateCollectionRetrievalResponse) GetTemplateRegexesOk() ([]ModelsTemplateCollectionRetrievalResponseTemplateRegexModel, bool) { + if o == nil || isNil(o.TemplateRegexes) { + return nil, false + } + return o.TemplateRegexes, true +} + +// HasTemplateRegexes returns a boolean if a field has been set. +func (o *ModelsTemplateCollectionRetrievalResponse) HasTemplateRegexes() bool { + if o != nil && !isNil(o.TemplateRegexes) { + return true + } + + return false +} + +// SetTemplateRegexes gets a reference to the given []ModelsTemplateCollectionRetrievalResponseTemplateRegexModel and assigns it to the TemplateRegexes field. +func (o *ModelsTemplateCollectionRetrievalResponse) SetTemplateRegexes(v []ModelsTemplateCollectionRetrievalResponseTemplateRegexModel) { + o.TemplateRegexes = v +} + +// GetUseAllowedRequesters returns the UseAllowedRequesters field value if set, zero value otherwise. +func (o *ModelsTemplateCollectionRetrievalResponse) GetUseAllowedRequesters() bool { + if o == nil || isNil(o.UseAllowedRequesters) { + var ret bool + return ret + } + return *o.UseAllowedRequesters +} + +// GetUseAllowedRequestersOk returns a tuple with the UseAllowedRequesters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateCollectionRetrievalResponse) GetUseAllowedRequestersOk() (*bool, bool) { + if o == nil || isNil(o.UseAllowedRequesters) { + return nil, false + } + return o.UseAllowedRequesters, true +} + +// HasUseAllowedRequesters returns a boolean if a field has been set. +func (o *ModelsTemplateCollectionRetrievalResponse) HasUseAllowedRequesters() bool { + if o != nil && !isNil(o.UseAllowedRequesters) { + return true + } + + return false +} + +// SetUseAllowedRequesters gets a reference to the given bool and assigns it to the UseAllowedRequesters field. +func (o *ModelsTemplateCollectionRetrievalResponse) SetUseAllowedRequesters(v bool) { + o.UseAllowedRequesters = &v +} + +// GetAllowedRequesters returns the AllowedRequesters field value if set, zero value otherwise. +func (o *ModelsTemplateCollectionRetrievalResponse) GetAllowedRequesters() []string { + if o == nil || isNil(o.AllowedRequesters) { + var ret []string + return ret + } + return o.AllowedRequesters +} + +// GetAllowedRequestersOk returns a tuple with the AllowedRequesters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateCollectionRetrievalResponse) GetAllowedRequestersOk() ([]string, bool) { + if o == nil || isNil(o.AllowedRequesters) { + return nil, false + } + return o.AllowedRequesters, true +} + +// HasAllowedRequesters returns a boolean if a field has been set. +func (o *ModelsTemplateCollectionRetrievalResponse) HasAllowedRequesters() bool { + if o != nil && !isNil(o.AllowedRequesters) { + return true + } + + return false +} + +// SetAllowedRequesters gets a reference to the given []string and assigns it to the AllowedRequesters field. +func (o *ModelsTemplateCollectionRetrievalResponse) SetAllowedRequesters(v []string) { + o.AllowedRequesters = v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *ModelsTemplateCollectionRetrievalResponse) GetDisplayName() string { + if o == nil || isNil(o.DisplayName) { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateCollectionRetrievalResponse) GetDisplayNameOk() (*string, bool) { + if o == nil || isNil(o.DisplayName) { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *ModelsTemplateCollectionRetrievalResponse) HasDisplayName() bool { + if o != nil && !isNil(o.DisplayName) { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *ModelsTemplateCollectionRetrievalResponse) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetRequiresApproval returns the RequiresApproval field value if set, zero value otherwise. +func (o *ModelsTemplateCollectionRetrievalResponse) GetRequiresApproval() bool { + if o == nil || isNil(o.RequiresApproval) { + var ret bool + return ret + } + return *o.RequiresApproval +} + +// GetRequiresApprovalOk returns a tuple with the RequiresApproval field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateCollectionRetrievalResponse) GetRequiresApprovalOk() (*bool, bool) { + if o == nil || isNil(o.RequiresApproval) { + return nil, false + } + return o.RequiresApproval, true +} + +// HasRequiresApproval returns a boolean if a field has been set. +func (o *ModelsTemplateCollectionRetrievalResponse) HasRequiresApproval() bool { + if o != nil && !isNil(o.RequiresApproval) { + return true + } + + return false +} + +// SetRequiresApproval gets a reference to the given bool and assigns it to the RequiresApproval field. +func (o *ModelsTemplateCollectionRetrievalResponse) SetRequiresApproval(v bool) { + o.RequiresApproval = &v +} + +// GetKeyUsage returns the KeyUsage field value if set, zero value otherwise. +func (o *ModelsTemplateCollectionRetrievalResponse) GetKeyUsage() int32 { + if o == nil || isNil(o.KeyUsage) { + var ret int32 + return ret + } + return *o.KeyUsage +} + +// GetKeyUsageOk returns a tuple with the KeyUsage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateCollectionRetrievalResponse) GetKeyUsageOk() (*int32, bool) { + if o == nil || isNil(o.KeyUsage) { + return nil, false + } + return o.KeyUsage, true +} + +// HasKeyUsage returns a boolean if a field has been set. +func (o *ModelsTemplateCollectionRetrievalResponse) HasKeyUsage() bool { + if o != nil && !isNil(o.KeyUsage) { + return true + } + + return false +} + +// SetKeyUsage gets a reference to the given int32 and assigns it to the KeyUsage field. +func (o *ModelsTemplateCollectionRetrievalResponse) SetKeyUsage(v int32) { + o.KeyUsage = &v +} + +// GetExtendedKeyUsages returns the ExtendedKeyUsages field value if set, zero value otherwise. +func (o *ModelsTemplateCollectionRetrievalResponse) GetExtendedKeyUsages() []ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel { + if o == nil || isNil(o.ExtendedKeyUsages) { + var ret []ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel + return ret + } + return o.ExtendedKeyUsages +} + +// GetExtendedKeyUsagesOk returns a tuple with the ExtendedKeyUsages field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateCollectionRetrievalResponse) GetExtendedKeyUsagesOk() ([]ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel, bool) { + if o == nil || isNil(o.ExtendedKeyUsages) { + return nil, false + } + return o.ExtendedKeyUsages, true +} + +// HasExtendedKeyUsages returns a boolean if a field has been set. +func (o *ModelsTemplateCollectionRetrievalResponse) HasExtendedKeyUsages() bool { + if o != nil && !isNil(o.ExtendedKeyUsages) { + return true + } + + return false +} + +// SetExtendedKeyUsages gets a reference to the given []ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel and assigns it to the ExtendedKeyUsages field. +func (o *ModelsTemplateCollectionRetrievalResponse) SetExtendedKeyUsages(v []ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel) { + o.ExtendedKeyUsages = v +} + +func (o ModelsTemplateCollectionRetrievalResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsTemplateCollectionRetrievalResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.CommonName) { + toSerialize["CommonName"] = o.CommonName + } + if !isNil(o.TemplateName) { + toSerialize["TemplateName"] = o.TemplateName + } + if !isNil(o.Oid) { + toSerialize["Oid"] = o.Oid + } + if !isNil(o.KeySize) { + toSerialize["KeySize"] = o.KeySize + } + if !isNil(o.KeyType) { + toSerialize["KeyType"] = o.KeyType + } + // skip: ForestRoot is readOnly + if !isNil(o.ConfigurationTenant) { + toSerialize["ConfigurationTenant"] = o.ConfigurationTenant + } + if !isNil(o.FriendlyName) { + toSerialize["FriendlyName"] = o.FriendlyName + } + if !isNil(o.KeyRetention) { + toSerialize["KeyRetention"] = o.KeyRetention + } + if !isNil(o.KeyRetentionDays) { + toSerialize["KeyRetentionDays"] = o.KeyRetentionDays + } + if !isNil(o.KeyArchival) { + toSerialize["KeyArchival"] = o.KeyArchival + } + if !isNil(o.EnrollmentFields) { + toSerialize["EnrollmentFields"] = o.EnrollmentFields + } + if !isNil(o.AllowedEnrollmentTypes) { + toSerialize["AllowedEnrollmentTypes"] = o.AllowedEnrollmentTypes + } + if !isNil(o.TemplateRegexes) { + toSerialize["TemplateRegexes"] = o.TemplateRegexes + } + if !isNil(o.UseAllowedRequesters) { + toSerialize["UseAllowedRequesters"] = o.UseAllowedRequesters + } + if !isNil(o.AllowedRequesters) { + toSerialize["AllowedRequesters"] = o.AllowedRequesters + } + if !isNil(o.DisplayName) { + toSerialize["DisplayName"] = o.DisplayName + } + if !isNil(o.RequiresApproval) { + toSerialize["RequiresApproval"] = o.RequiresApproval + } + if !isNil(o.KeyUsage) { + toSerialize["KeyUsage"] = o.KeyUsage + } + if !isNil(o.ExtendedKeyUsages) { + toSerialize["ExtendedKeyUsages"] = o.ExtendedKeyUsages + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsTemplateCollectionRetrievalResponse) UnmarshalJSON(bytes []byte) (err error) { + varModelsTemplateCollectionRetrievalResponse := _ModelsTemplateCollectionRetrievalResponse{} + + if err = json.Unmarshal(bytes, &varModelsTemplateCollectionRetrievalResponse); err == nil { + *o = ModelsTemplateCollectionRetrievalResponse(varModelsTemplateCollectionRetrievalResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "CommonName") + delete(additionalProperties, "TemplateName") + delete(additionalProperties, "Oid") + delete(additionalProperties, "KeySize") + delete(additionalProperties, "KeyType") + delete(additionalProperties, "ForestRoot") + delete(additionalProperties, "ConfigurationTenant") + delete(additionalProperties, "FriendlyName") + delete(additionalProperties, "KeyRetention") + delete(additionalProperties, "KeyRetentionDays") + delete(additionalProperties, "KeyArchival") + delete(additionalProperties, "EnrollmentFields") + delete(additionalProperties, "AllowedEnrollmentTypes") + delete(additionalProperties, "TemplateRegexes") + delete(additionalProperties, "UseAllowedRequesters") + delete(additionalProperties, "AllowedRequesters") + delete(additionalProperties, "DisplayName") + delete(additionalProperties, "RequiresApproval") + delete(additionalProperties, "KeyUsage") + delete(additionalProperties, "ExtendedKeyUsages") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsTemplateCollectionRetrievalResponse struct { + value *ModelsTemplateCollectionRetrievalResponse + isSet bool +} + +func (v NullableModelsTemplateCollectionRetrievalResponse) Get() *ModelsTemplateCollectionRetrievalResponse { + return v.value +} + +func (v *NullableModelsTemplateCollectionRetrievalResponse) Set(val *ModelsTemplateCollectionRetrievalResponse) { + v.value = val + v.isSet = true +} + +func (v NullableModelsTemplateCollectionRetrievalResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsTemplateCollectionRetrievalResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsTemplateCollectionRetrievalResponse(val *ModelsTemplateCollectionRetrievalResponse) *NullableModelsTemplateCollectionRetrievalResponse { + return &NullableModelsTemplateCollectionRetrievalResponse{value: val, isSet: true} +} + +func (v NullableModelsTemplateCollectionRetrievalResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsTemplateCollectionRetrievalResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_template_collection_retrieval_response_extended_key_usage_model.go b/v1/api/keyfactor/model_models_template_collection_retrieval_response_extended_key_usage_model.go new file mode 100644 index 0000000..d522211 --- /dev/null +++ b/v1/api/keyfactor/model_models_template_collection_retrieval_response_extended_key_usage_model.go @@ -0,0 +1,232 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel{} + +// ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel struct for ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel +type ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel struct { + Id *int32 `json:"Id,omitempty"` + Oid *string `json:"Oid,omitempty"` + DisplayName *string `json:"DisplayName,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel + +// NewModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel instantiates a new ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel() *ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel { + this := ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel{} + return &this +} + +// NewModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModelWithDefaults instantiates a new ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModelWithDefaults() *ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel { + this := ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel) SetId(v int32) { + o.Id = &v +} + +// GetOid returns the Oid field value if set, zero value otherwise. +func (o *ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel) GetOid() string { + if o == nil || isNil(o.Oid) { + var ret string + return ret + } + return *o.Oid +} + +// GetOidOk returns a tuple with the Oid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel) GetOidOk() (*string, bool) { + if o == nil || isNil(o.Oid) { + return nil, false + } + return o.Oid, true +} + +// HasOid returns a boolean if a field has been set. +func (o *ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel) HasOid() bool { + if o != nil && !isNil(o.Oid) { + return true + } + + return false +} + +// SetOid gets a reference to the given string and assigns it to the Oid field. +func (o *ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel) SetOid(v string) { + o.Oid = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel) GetDisplayName() string { + if o == nil || isNil(o.DisplayName) { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel) GetDisplayNameOk() (*string, bool) { + if o == nil || isNil(o.DisplayName) { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel) HasDisplayName() bool { + if o != nil && !isNil(o.DisplayName) { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel) SetDisplayName(v string) { + o.DisplayName = &v +} + +func (o ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.Oid) { + toSerialize["Oid"] = o.Oid + } + if !isNil(o.DisplayName) { + toSerialize["DisplayName"] = o.DisplayName + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel) UnmarshalJSON(bytes []byte) (err error) { + varModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel := _ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel{} + + if err = json.Unmarshal(bytes, &varModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel); err == nil { + *o = ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel(varModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "Oid") + delete(additionalProperties, "DisplayName") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel struct { + value *ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel + isSet bool +} + +func (v NullableModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel) Get() *ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel { + return v.value +} + +func (v *NullableModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel) Set(val *ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel) { + v.value = val + v.isSet = true +} + +func (v NullableModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel(val *ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel) *NullableModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel { + return &NullableModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel{value: val, isSet: true} +} + +func (v NullableModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_template_collection_retrieval_response_template_enrollment_field_model.go b/v1/api/keyfactor/model_models_template_collection_retrieval_response_template_enrollment_field_model.go new file mode 100644 index 0000000..6c7a5d6 --- /dev/null +++ b/v1/api/keyfactor/model_models_template_collection_retrieval_response_template_enrollment_field_model.go @@ -0,0 +1,269 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel{} + +// ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel struct for ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel +type ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel struct { + Id *int32 `json:"Id,omitempty"` + Name *string `json:"Name,omitempty"` + Options []string `json:"Options,omitempty"` + DataType *int32 `json:"DataType,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel + +// NewModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel instantiates a new ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel() *ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel { + this := ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel{} + return &this +} + +// NewModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModelWithDefaults instantiates a new ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModelWithDefaults() *ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel { + this := ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel) SetId(v int32) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel) GetName() string { + if o == nil || isNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel) GetNameOk() (*string, bool) { + if o == nil || isNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel) HasName() bool { + if o != nil && !isNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel) SetName(v string) { + o.Name = &v +} + +// GetOptions returns the Options field value if set, zero value otherwise. +func (o *ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel) GetOptions() []string { + if o == nil || isNil(o.Options) { + var ret []string + return ret + } + return o.Options +} + +// GetOptionsOk returns a tuple with the Options field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel) GetOptionsOk() ([]string, bool) { + if o == nil || isNil(o.Options) { + return nil, false + } + return o.Options, true +} + +// HasOptions returns a boolean if a field has been set. +func (o *ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel) HasOptions() bool { + if o != nil && !isNil(o.Options) { + return true + } + + return false +} + +// SetOptions gets a reference to the given []string and assigns it to the Options field. +func (o *ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel) SetOptions(v []string) { + o.Options = v +} + +// GetDataType returns the DataType field value if set, zero value otherwise. +func (o *ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel) GetDataType() int32 { + if o == nil || isNil(o.DataType) { + var ret int32 + return ret + } + return *o.DataType +} + +// GetDataTypeOk returns a tuple with the DataType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel) GetDataTypeOk() (*int32, bool) { + if o == nil || isNil(o.DataType) { + return nil, false + } + return o.DataType, true +} + +// HasDataType returns a boolean if a field has been set. +func (o *ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel) HasDataType() bool { + if o != nil && !isNil(o.DataType) { + return true + } + + return false +} + +// SetDataType gets a reference to the given int32 and assigns it to the DataType field. +func (o *ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel) SetDataType(v int32) { + o.DataType = &v +} + +func (o ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.Name) { + toSerialize["Name"] = o.Name + } + if !isNil(o.Options) { + toSerialize["Options"] = o.Options + } + if !isNil(o.DataType) { + toSerialize["DataType"] = o.DataType + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel) UnmarshalJSON(bytes []byte) (err error) { + varModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel := _ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel{} + + if err = json.Unmarshal(bytes, &varModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel); err == nil { + *o = ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel(varModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "Name") + delete(additionalProperties, "Options") + delete(additionalProperties, "DataType") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel struct { + value *ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel + isSet bool +} + +func (v NullableModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel) Get() *ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel { + return v.value +} + +func (v *NullableModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel) Set(val *ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel) { + v.value = val + v.isSet = true +} + +func (v NullableModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel(val *ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel) *NullableModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel { + return &NullableModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel{value: val, isSet: true} +} + +func (v NullableModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_template_collection_retrieval_response_template_regex_model.go b/v1/api/keyfactor/model_models_template_collection_retrieval_response_template_regex_model.go new file mode 100644 index 0000000..c32ffab --- /dev/null +++ b/v1/api/keyfactor/model_models_template_collection_retrieval_response_template_regex_model.go @@ -0,0 +1,269 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsTemplateCollectionRetrievalResponseTemplateRegexModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsTemplateCollectionRetrievalResponseTemplateRegexModel{} + +// ModelsTemplateCollectionRetrievalResponseTemplateRegexModel struct for ModelsTemplateCollectionRetrievalResponseTemplateRegexModel +type ModelsTemplateCollectionRetrievalResponseTemplateRegexModel struct { + TemplateId *int32 `json:"TemplateId,omitempty"` + SubjectPart *string `json:"SubjectPart,omitempty"` + Regex *string `json:"Regex,omitempty"` + Error *string `json:"Error,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsTemplateCollectionRetrievalResponseTemplateRegexModel ModelsTemplateCollectionRetrievalResponseTemplateRegexModel + +// NewModelsTemplateCollectionRetrievalResponseTemplateRegexModel instantiates a new ModelsTemplateCollectionRetrievalResponseTemplateRegexModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsTemplateCollectionRetrievalResponseTemplateRegexModel() *ModelsTemplateCollectionRetrievalResponseTemplateRegexModel { + this := ModelsTemplateCollectionRetrievalResponseTemplateRegexModel{} + return &this +} + +// NewModelsTemplateCollectionRetrievalResponseTemplateRegexModelWithDefaults instantiates a new ModelsTemplateCollectionRetrievalResponseTemplateRegexModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsTemplateCollectionRetrievalResponseTemplateRegexModelWithDefaults() *ModelsTemplateCollectionRetrievalResponseTemplateRegexModel { + this := ModelsTemplateCollectionRetrievalResponseTemplateRegexModel{} + return &this +} + +// GetTemplateId returns the TemplateId field value if set, zero value otherwise. +func (o *ModelsTemplateCollectionRetrievalResponseTemplateRegexModel) GetTemplateId() int32 { + if o == nil || isNil(o.TemplateId) { + var ret int32 + return ret + } + return *o.TemplateId +} + +// GetTemplateIdOk returns a tuple with the TemplateId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateCollectionRetrievalResponseTemplateRegexModel) GetTemplateIdOk() (*int32, bool) { + if o == nil || isNil(o.TemplateId) { + return nil, false + } + return o.TemplateId, true +} + +// HasTemplateId returns a boolean if a field has been set. +func (o *ModelsTemplateCollectionRetrievalResponseTemplateRegexModel) HasTemplateId() bool { + if o != nil && !isNil(o.TemplateId) { + return true + } + + return false +} + +// SetTemplateId gets a reference to the given int32 and assigns it to the TemplateId field. +func (o *ModelsTemplateCollectionRetrievalResponseTemplateRegexModel) SetTemplateId(v int32) { + o.TemplateId = &v +} + +// GetSubjectPart returns the SubjectPart field value if set, zero value otherwise. +func (o *ModelsTemplateCollectionRetrievalResponseTemplateRegexModel) GetSubjectPart() string { + if o == nil || isNil(o.SubjectPart) { + var ret string + return ret + } + return *o.SubjectPart +} + +// GetSubjectPartOk returns a tuple with the SubjectPart field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateCollectionRetrievalResponseTemplateRegexModel) GetSubjectPartOk() (*string, bool) { + if o == nil || isNil(o.SubjectPart) { + return nil, false + } + return o.SubjectPart, true +} + +// HasSubjectPart returns a boolean if a field has been set. +func (o *ModelsTemplateCollectionRetrievalResponseTemplateRegexModel) HasSubjectPart() bool { + if o != nil && !isNil(o.SubjectPart) { + return true + } + + return false +} + +// SetSubjectPart gets a reference to the given string and assigns it to the SubjectPart field. +func (o *ModelsTemplateCollectionRetrievalResponseTemplateRegexModel) SetSubjectPart(v string) { + o.SubjectPart = &v +} + +// GetRegex returns the Regex field value if set, zero value otherwise. +func (o *ModelsTemplateCollectionRetrievalResponseTemplateRegexModel) GetRegex() string { + if o == nil || isNil(o.Regex) { + var ret string + return ret + } + return *o.Regex +} + +// GetRegexOk returns a tuple with the Regex field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateCollectionRetrievalResponseTemplateRegexModel) GetRegexOk() (*string, bool) { + if o == nil || isNil(o.Regex) { + return nil, false + } + return o.Regex, true +} + +// HasRegex returns a boolean if a field has been set. +func (o *ModelsTemplateCollectionRetrievalResponseTemplateRegexModel) HasRegex() bool { + if o != nil && !isNil(o.Regex) { + return true + } + + return false +} + +// SetRegex gets a reference to the given string and assigns it to the Regex field. +func (o *ModelsTemplateCollectionRetrievalResponseTemplateRegexModel) SetRegex(v string) { + o.Regex = &v +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *ModelsTemplateCollectionRetrievalResponseTemplateRegexModel) GetError() string { + if o == nil || isNil(o.Error) { + var ret string + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateCollectionRetrievalResponseTemplateRegexModel) GetErrorOk() (*string, bool) { + if o == nil || isNil(o.Error) { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *ModelsTemplateCollectionRetrievalResponseTemplateRegexModel) HasError() bool { + if o != nil && !isNil(o.Error) { + return true + } + + return false +} + +// SetError gets a reference to the given string and assigns it to the Error field. +func (o *ModelsTemplateCollectionRetrievalResponseTemplateRegexModel) SetError(v string) { + o.Error = &v +} + +func (o ModelsTemplateCollectionRetrievalResponseTemplateRegexModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsTemplateCollectionRetrievalResponseTemplateRegexModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.TemplateId) { + toSerialize["TemplateId"] = o.TemplateId + } + if !isNil(o.SubjectPart) { + toSerialize["SubjectPart"] = o.SubjectPart + } + if !isNil(o.Regex) { + toSerialize["Regex"] = o.Regex + } + if !isNil(o.Error) { + toSerialize["Error"] = o.Error + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsTemplateCollectionRetrievalResponseTemplateRegexModel) UnmarshalJSON(bytes []byte) (err error) { + varModelsTemplateCollectionRetrievalResponseTemplateRegexModel := _ModelsTemplateCollectionRetrievalResponseTemplateRegexModel{} + + if err = json.Unmarshal(bytes, &varModelsTemplateCollectionRetrievalResponseTemplateRegexModel); err == nil { + *o = ModelsTemplateCollectionRetrievalResponseTemplateRegexModel(varModelsTemplateCollectionRetrievalResponseTemplateRegexModel) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "TemplateId") + delete(additionalProperties, "SubjectPart") + delete(additionalProperties, "Regex") + delete(additionalProperties, "Error") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsTemplateCollectionRetrievalResponseTemplateRegexModel struct { + value *ModelsTemplateCollectionRetrievalResponseTemplateRegexModel + isSet bool +} + +func (v NullableModelsTemplateCollectionRetrievalResponseTemplateRegexModel) Get() *ModelsTemplateCollectionRetrievalResponseTemplateRegexModel { + return v.value +} + +func (v *NullableModelsTemplateCollectionRetrievalResponseTemplateRegexModel) Set(val *ModelsTemplateCollectionRetrievalResponseTemplateRegexModel) { + v.value = val + v.isSet = true +} + +func (v NullableModelsTemplateCollectionRetrievalResponseTemplateRegexModel) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsTemplateCollectionRetrievalResponseTemplateRegexModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsTemplateCollectionRetrievalResponseTemplateRegexModel(val *ModelsTemplateCollectionRetrievalResponseTemplateRegexModel) *NullableModelsTemplateCollectionRetrievalResponseTemplateRegexModel { + return &NullableModelsTemplateCollectionRetrievalResponseTemplateRegexModel{value: val, isSet: true} +} + +func (v NullableModelsTemplateCollectionRetrievalResponseTemplateRegexModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsTemplateCollectionRetrievalResponseTemplateRegexModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_template_enrollment_field.go b/v1/api/keyfactor/model_models_template_enrollment_field.go new file mode 100644 index 0000000..d583f2c --- /dev/null +++ b/v1/api/keyfactor/model_models_template_enrollment_field.go @@ -0,0 +1,269 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsTemplateEnrollmentField type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsTemplateEnrollmentField{} + +// ModelsTemplateEnrollmentField struct for ModelsTemplateEnrollmentField +type ModelsTemplateEnrollmentField struct { + Id *int32 `json:"Id,omitempty"` + Name *string `json:"Name,omitempty"` + Options []string `json:"Options,omitempty"` + DataType *int32 `json:"DataType,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsTemplateEnrollmentField ModelsTemplateEnrollmentField + +// NewModelsTemplateEnrollmentField instantiates a new ModelsTemplateEnrollmentField object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsTemplateEnrollmentField() *ModelsTemplateEnrollmentField { + this := ModelsTemplateEnrollmentField{} + return &this +} + +// NewModelsTemplateEnrollmentFieldWithDefaults instantiates a new ModelsTemplateEnrollmentField object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsTemplateEnrollmentFieldWithDefaults() *ModelsTemplateEnrollmentField { + this := ModelsTemplateEnrollmentField{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ModelsTemplateEnrollmentField) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateEnrollmentField) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ModelsTemplateEnrollmentField) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *ModelsTemplateEnrollmentField) SetId(v int32) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ModelsTemplateEnrollmentField) GetName() string { + if o == nil || isNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateEnrollmentField) GetNameOk() (*string, bool) { + if o == nil || isNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ModelsTemplateEnrollmentField) HasName() bool { + if o != nil && !isNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ModelsTemplateEnrollmentField) SetName(v string) { + o.Name = &v +} + +// GetOptions returns the Options field value if set, zero value otherwise. +func (o *ModelsTemplateEnrollmentField) GetOptions() []string { + if o == nil || isNil(o.Options) { + var ret []string + return ret + } + return o.Options +} + +// GetOptionsOk returns a tuple with the Options field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateEnrollmentField) GetOptionsOk() ([]string, bool) { + if o == nil || isNil(o.Options) { + return nil, false + } + return o.Options, true +} + +// HasOptions returns a boolean if a field has been set. +func (o *ModelsTemplateEnrollmentField) HasOptions() bool { + if o != nil && !isNil(o.Options) { + return true + } + + return false +} + +// SetOptions gets a reference to the given []string and assigns it to the Options field. +func (o *ModelsTemplateEnrollmentField) SetOptions(v []string) { + o.Options = v +} + +// GetDataType returns the DataType field value if set, zero value otherwise. +func (o *ModelsTemplateEnrollmentField) GetDataType() int32 { + if o == nil || isNil(o.DataType) { + var ret int32 + return ret + } + return *o.DataType +} + +// GetDataTypeOk returns a tuple with the DataType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateEnrollmentField) GetDataTypeOk() (*int32, bool) { + if o == nil || isNil(o.DataType) { + return nil, false + } + return o.DataType, true +} + +// HasDataType returns a boolean if a field has been set. +func (o *ModelsTemplateEnrollmentField) HasDataType() bool { + if o != nil && !isNil(o.DataType) { + return true + } + + return false +} + +// SetDataType gets a reference to the given int32 and assigns it to the DataType field. +func (o *ModelsTemplateEnrollmentField) SetDataType(v int32) { + o.DataType = &v +} + +func (o ModelsTemplateEnrollmentField) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsTemplateEnrollmentField) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.Name) { + toSerialize["Name"] = o.Name + } + if !isNil(o.Options) { + toSerialize["Options"] = o.Options + } + if !isNil(o.DataType) { + toSerialize["DataType"] = o.DataType + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsTemplateEnrollmentField) UnmarshalJSON(bytes []byte) (err error) { + varModelsTemplateEnrollmentField := _ModelsTemplateEnrollmentField{} + + if err = json.Unmarshal(bytes, &varModelsTemplateEnrollmentField); err == nil { + *o = ModelsTemplateEnrollmentField(varModelsTemplateEnrollmentField) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "Name") + delete(additionalProperties, "Options") + delete(additionalProperties, "DataType") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsTemplateEnrollmentField struct { + value *ModelsTemplateEnrollmentField + isSet bool +} + +func (v NullableModelsTemplateEnrollmentField) Get() *ModelsTemplateEnrollmentField { + return v.value +} + +func (v *NullableModelsTemplateEnrollmentField) Set(val *ModelsTemplateEnrollmentField) { + v.value = val + v.isSet = true +} + +func (v NullableModelsTemplateEnrollmentField) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsTemplateEnrollmentField) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsTemplateEnrollmentField(val *ModelsTemplateEnrollmentField) *NullableModelsTemplateEnrollmentField { + return &NullableModelsTemplateEnrollmentField{value: val, isSet: true} +} + +func (v NullableModelsTemplateEnrollmentField) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsTemplateEnrollmentField) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_template_metadata_field.go b/v1/api/keyfactor/model_models_template_metadata_field.go new file mode 100644 index 0000000..b17af3b --- /dev/null +++ b/v1/api/keyfactor/model_models_template_metadata_field.go @@ -0,0 +1,343 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsTemplateMetadataField type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsTemplateMetadataField{} + +// ModelsTemplateMetadataField struct for ModelsTemplateMetadataField +type ModelsTemplateMetadataField struct { + Id *int32 `json:"Id,omitempty"` + DefaultValue *string `json:"DefaultValue,omitempty"` + MetadataId *int32 `json:"MetadataId,omitempty"` + Validation *string `json:"Validation,omitempty"` + Enrollment *int32 `json:"Enrollment,omitempty"` + Message *string `json:"Message,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsTemplateMetadataField ModelsTemplateMetadataField + +// NewModelsTemplateMetadataField instantiates a new ModelsTemplateMetadataField object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsTemplateMetadataField() *ModelsTemplateMetadataField { + this := ModelsTemplateMetadataField{} + return &this +} + +// NewModelsTemplateMetadataFieldWithDefaults instantiates a new ModelsTemplateMetadataField object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsTemplateMetadataFieldWithDefaults() *ModelsTemplateMetadataField { + this := ModelsTemplateMetadataField{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ModelsTemplateMetadataField) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateMetadataField) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ModelsTemplateMetadataField) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *ModelsTemplateMetadataField) SetId(v int32) { + o.Id = &v +} + +// GetDefaultValue returns the DefaultValue field value if set, zero value otherwise. +func (o *ModelsTemplateMetadataField) GetDefaultValue() string { + if o == nil || isNil(o.DefaultValue) { + var ret string + return ret + } + return *o.DefaultValue +} + +// GetDefaultValueOk returns a tuple with the DefaultValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateMetadataField) GetDefaultValueOk() (*string, bool) { + if o == nil || isNil(o.DefaultValue) { + return nil, false + } + return o.DefaultValue, true +} + +// HasDefaultValue returns a boolean if a field has been set. +func (o *ModelsTemplateMetadataField) HasDefaultValue() bool { + if o != nil && !isNil(o.DefaultValue) { + return true + } + + return false +} + +// SetDefaultValue gets a reference to the given string and assigns it to the DefaultValue field. +func (o *ModelsTemplateMetadataField) SetDefaultValue(v string) { + o.DefaultValue = &v +} + +// GetMetadataId returns the MetadataId field value if set, zero value otherwise. +func (o *ModelsTemplateMetadataField) GetMetadataId() int32 { + if o == nil || isNil(o.MetadataId) { + var ret int32 + return ret + } + return *o.MetadataId +} + +// GetMetadataIdOk returns a tuple with the MetadataId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateMetadataField) GetMetadataIdOk() (*int32, bool) { + if o == nil || isNil(o.MetadataId) { + return nil, false + } + return o.MetadataId, true +} + +// HasMetadataId returns a boolean if a field has been set. +func (o *ModelsTemplateMetadataField) HasMetadataId() bool { + if o != nil && !isNil(o.MetadataId) { + return true + } + + return false +} + +// SetMetadataId gets a reference to the given int32 and assigns it to the MetadataId field. +func (o *ModelsTemplateMetadataField) SetMetadataId(v int32) { + o.MetadataId = &v +} + +// GetValidation returns the Validation field value if set, zero value otherwise. +func (o *ModelsTemplateMetadataField) GetValidation() string { + if o == nil || isNil(o.Validation) { + var ret string + return ret + } + return *o.Validation +} + +// GetValidationOk returns a tuple with the Validation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateMetadataField) GetValidationOk() (*string, bool) { + if o == nil || isNil(o.Validation) { + return nil, false + } + return o.Validation, true +} + +// HasValidation returns a boolean if a field has been set. +func (o *ModelsTemplateMetadataField) HasValidation() bool { + if o != nil && !isNil(o.Validation) { + return true + } + + return false +} + +// SetValidation gets a reference to the given string and assigns it to the Validation field. +func (o *ModelsTemplateMetadataField) SetValidation(v string) { + o.Validation = &v +} + +// GetEnrollment returns the Enrollment field value if set, zero value otherwise. +func (o *ModelsTemplateMetadataField) GetEnrollment() int32 { + if o == nil || isNil(o.Enrollment) { + var ret int32 + return ret + } + return *o.Enrollment +} + +// GetEnrollmentOk returns a tuple with the Enrollment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateMetadataField) GetEnrollmentOk() (*int32, bool) { + if o == nil || isNil(o.Enrollment) { + return nil, false + } + return o.Enrollment, true +} + +// HasEnrollment returns a boolean if a field has been set. +func (o *ModelsTemplateMetadataField) HasEnrollment() bool { + if o != nil && !isNil(o.Enrollment) { + return true + } + + return false +} + +// SetEnrollment gets a reference to the given int32 and assigns it to the Enrollment field. +func (o *ModelsTemplateMetadataField) SetEnrollment(v int32) { + o.Enrollment = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *ModelsTemplateMetadataField) GetMessage() string { + if o == nil || isNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateMetadataField) GetMessageOk() (*string, bool) { + if o == nil || isNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *ModelsTemplateMetadataField) HasMessage() bool { + if o != nil && !isNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *ModelsTemplateMetadataField) SetMessage(v string) { + o.Message = &v +} + +func (o ModelsTemplateMetadataField) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsTemplateMetadataField) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.DefaultValue) { + toSerialize["DefaultValue"] = o.DefaultValue + } + if !isNil(o.MetadataId) { + toSerialize["MetadataId"] = o.MetadataId + } + if !isNil(o.Validation) { + toSerialize["Validation"] = o.Validation + } + if !isNil(o.Enrollment) { + toSerialize["Enrollment"] = o.Enrollment + } + if !isNil(o.Message) { + toSerialize["Message"] = o.Message + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsTemplateMetadataField) UnmarshalJSON(bytes []byte) (err error) { + varModelsTemplateMetadataField := _ModelsTemplateMetadataField{} + + if err = json.Unmarshal(bytes, &varModelsTemplateMetadataField); err == nil { + *o = ModelsTemplateMetadataField(varModelsTemplateMetadataField) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "DefaultValue") + delete(additionalProperties, "MetadataId") + delete(additionalProperties, "Validation") + delete(additionalProperties, "Enrollment") + delete(additionalProperties, "Message") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsTemplateMetadataField struct { + value *ModelsTemplateMetadataField + isSet bool +} + +func (v NullableModelsTemplateMetadataField) Get() *ModelsTemplateMetadataField { + return v.value +} + +func (v *NullableModelsTemplateMetadataField) Set(val *ModelsTemplateMetadataField) { + v.value = val + v.isSet = true +} + +func (v NullableModelsTemplateMetadataField) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsTemplateMetadataField) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsTemplateMetadataField(val *ModelsTemplateMetadataField) *NullableModelsTemplateMetadataField { + return &NullableModelsTemplateMetadataField{value: val, isSet: true} +} + +func (v NullableModelsTemplateMetadataField) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsTemplateMetadataField) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_template_regex.go b/v1/api/keyfactor/model_models_template_regex.go new file mode 100644 index 0000000..f30208f --- /dev/null +++ b/v1/api/keyfactor/model_models_template_regex.go @@ -0,0 +1,269 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsTemplateRegex type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsTemplateRegex{} + +// ModelsTemplateRegex struct for ModelsTemplateRegex +type ModelsTemplateRegex struct { + TemplateId *int32 `json:"TemplateId,omitempty"` + SubjectPart *string `json:"SubjectPart,omitempty"` + Regex *string `json:"Regex,omitempty"` + Error *string `json:"Error,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsTemplateRegex ModelsTemplateRegex + +// NewModelsTemplateRegex instantiates a new ModelsTemplateRegex object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsTemplateRegex() *ModelsTemplateRegex { + this := ModelsTemplateRegex{} + return &this +} + +// NewModelsTemplateRegexWithDefaults instantiates a new ModelsTemplateRegex object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsTemplateRegexWithDefaults() *ModelsTemplateRegex { + this := ModelsTemplateRegex{} + return &this +} + +// GetTemplateId returns the TemplateId field value if set, zero value otherwise. +func (o *ModelsTemplateRegex) GetTemplateId() int32 { + if o == nil || isNil(o.TemplateId) { + var ret int32 + return ret + } + return *o.TemplateId +} + +// GetTemplateIdOk returns a tuple with the TemplateId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateRegex) GetTemplateIdOk() (*int32, bool) { + if o == nil || isNil(o.TemplateId) { + return nil, false + } + return o.TemplateId, true +} + +// HasTemplateId returns a boolean if a field has been set. +func (o *ModelsTemplateRegex) HasTemplateId() bool { + if o != nil && !isNil(o.TemplateId) { + return true + } + + return false +} + +// SetTemplateId gets a reference to the given int32 and assigns it to the TemplateId field. +func (o *ModelsTemplateRegex) SetTemplateId(v int32) { + o.TemplateId = &v +} + +// GetSubjectPart returns the SubjectPart field value if set, zero value otherwise. +func (o *ModelsTemplateRegex) GetSubjectPart() string { + if o == nil || isNil(o.SubjectPart) { + var ret string + return ret + } + return *o.SubjectPart +} + +// GetSubjectPartOk returns a tuple with the SubjectPart field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateRegex) GetSubjectPartOk() (*string, bool) { + if o == nil || isNil(o.SubjectPart) { + return nil, false + } + return o.SubjectPart, true +} + +// HasSubjectPart returns a boolean if a field has been set. +func (o *ModelsTemplateRegex) HasSubjectPart() bool { + if o != nil && !isNil(o.SubjectPart) { + return true + } + + return false +} + +// SetSubjectPart gets a reference to the given string and assigns it to the SubjectPart field. +func (o *ModelsTemplateRegex) SetSubjectPart(v string) { + o.SubjectPart = &v +} + +// GetRegex returns the Regex field value if set, zero value otherwise. +func (o *ModelsTemplateRegex) GetRegex() string { + if o == nil || isNil(o.Regex) { + var ret string + return ret + } + return *o.Regex +} + +// GetRegexOk returns a tuple with the Regex field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateRegex) GetRegexOk() (*string, bool) { + if o == nil || isNil(o.Regex) { + return nil, false + } + return o.Regex, true +} + +// HasRegex returns a boolean if a field has been set. +func (o *ModelsTemplateRegex) HasRegex() bool { + if o != nil && !isNil(o.Regex) { + return true + } + + return false +} + +// SetRegex gets a reference to the given string and assigns it to the Regex field. +func (o *ModelsTemplateRegex) SetRegex(v string) { + o.Regex = &v +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *ModelsTemplateRegex) GetError() string { + if o == nil || isNil(o.Error) { + var ret string + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateRegex) GetErrorOk() (*string, bool) { + if o == nil || isNil(o.Error) { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *ModelsTemplateRegex) HasError() bool { + if o != nil && !isNil(o.Error) { + return true + } + + return false +} + +// SetError gets a reference to the given string and assigns it to the Error field. +func (o *ModelsTemplateRegex) SetError(v string) { + o.Error = &v +} + +func (o ModelsTemplateRegex) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsTemplateRegex) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.TemplateId) { + toSerialize["TemplateId"] = o.TemplateId + } + if !isNil(o.SubjectPart) { + toSerialize["SubjectPart"] = o.SubjectPart + } + if !isNil(o.Regex) { + toSerialize["Regex"] = o.Regex + } + if !isNil(o.Error) { + toSerialize["Error"] = o.Error + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsTemplateRegex) UnmarshalJSON(bytes []byte) (err error) { + varModelsTemplateRegex := _ModelsTemplateRegex{} + + if err = json.Unmarshal(bytes, &varModelsTemplateRegex); err == nil { + *o = ModelsTemplateRegex(varModelsTemplateRegex) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "TemplateId") + delete(additionalProperties, "SubjectPart") + delete(additionalProperties, "Regex") + delete(additionalProperties, "Error") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsTemplateRegex struct { + value *ModelsTemplateRegex + isSet bool +} + +func (v NullableModelsTemplateRegex) Get() *ModelsTemplateRegex { + return v.value +} + +func (v *NullableModelsTemplateRegex) Set(val *ModelsTemplateRegex) { + v.value = val + v.isSet = true +} + +func (v NullableModelsTemplateRegex) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsTemplateRegex) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsTemplateRegex(val *ModelsTemplateRegex) *NullableModelsTemplateRegex { + return &NullableModelsTemplateRegex{value: val, isSet: true} +} + +func (v NullableModelsTemplateRegex) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsTemplateRegex) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_template_retrieval_response.go b/v1/api/keyfactor/model_models_template_retrieval_response.go new file mode 100644 index 0000000..95fdf07 --- /dev/null +++ b/v1/api/keyfactor/model_models_template_retrieval_response.go @@ -0,0 +1,1092 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsTemplateRetrievalResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsTemplateRetrievalResponse{} + +// ModelsTemplateRetrievalResponse struct for ModelsTemplateRetrievalResponse +type ModelsTemplateRetrievalResponse struct { + Id *int32 `json:"Id,omitempty"` + CommonName *string `json:"CommonName,omitempty"` + TemplateName *string `json:"TemplateName,omitempty"` + Oid *string `json:"Oid,omitempty"` + KeySize *string `json:"KeySize,omitempty"` + KeyType *string `json:"KeyType,omitempty"` + ForestRoot *string `json:"ForestRoot,omitempty"` + ConfigurationTenant *string `json:"ConfigurationTenant,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + KeyRetention *int32 `json:"KeyRetention,omitempty"` + KeyRetentionDays *int32 `json:"KeyRetentionDays,omitempty"` + KeyArchival *bool `json:"KeyArchival,omitempty"` + EnrollmentFields []ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel `json:"EnrollmentFields,omitempty"` + MetadataFields []ModelsTemplateRetrievalResponseTemplateMetadataFieldModel `json:"MetadataFields,omitempty"` + AllowedEnrollmentTypes *int32 `json:"AllowedEnrollmentTypes,omitempty"` + TemplateRegexes []ModelsTemplateRetrievalResponseTemplateRegexModel `json:"TemplateRegexes,omitempty"` + TemplateDefaults []ModelsTemplateRetrievalResponseTemplateDefaultModel `json:"TemplateDefaults,omitempty"` + TemplatePolicy *ModelsTemplateRetrievalResponseTemplatePolicyModel `json:"TemplatePolicy,omitempty"` + UseAllowedRequesters *bool `json:"UseAllowedRequesters,omitempty"` + AllowedRequesters []string `json:"AllowedRequesters,omitempty"` + DisplayName *string `json:"DisplayName,omitempty"` + RFCEnforcement *bool `json:"RFCEnforcement,omitempty"` + RequiresApproval *bool `json:"RequiresApproval,omitempty"` + KeyUsage *int32 `json:"KeyUsage,omitempty"` + ExtendedKeyUsages []ModelsTemplateRetrievalResponseExtendedKeyUsageModel `json:"ExtendedKeyUsages,omitempty"` + Curve NullableString `json:"Curve,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsTemplateRetrievalResponse ModelsTemplateRetrievalResponse + +// NewModelsTemplateRetrievalResponse instantiates a new ModelsTemplateRetrievalResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsTemplateRetrievalResponse() *ModelsTemplateRetrievalResponse { + this := ModelsTemplateRetrievalResponse{} + return &this +} + +// NewModelsTemplateRetrievalResponseWithDefaults instantiates a new ModelsTemplateRetrievalResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsTemplateRetrievalResponseWithDefaults() *ModelsTemplateRetrievalResponse { + this := ModelsTemplateRetrievalResponse{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ModelsTemplateRetrievalResponse) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateRetrievalResponse) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ModelsTemplateRetrievalResponse) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *ModelsTemplateRetrievalResponse) SetId(v int32) { + o.Id = &v +} + +// GetCommonName returns the CommonName field value if set, zero value otherwise. +func (o *ModelsTemplateRetrievalResponse) GetCommonName() string { + if o == nil || isNil(o.CommonName) { + var ret string + return ret + } + return *o.CommonName +} + +// GetCommonNameOk returns a tuple with the CommonName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateRetrievalResponse) GetCommonNameOk() (*string, bool) { + if o == nil || isNil(o.CommonName) { + return nil, false + } + return o.CommonName, true +} + +// HasCommonName returns a boolean if a field has been set. +func (o *ModelsTemplateRetrievalResponse) HasCommonName() bool { + if o != nil && !isNil(o.CommonName) { + return true + } + + return false +} + +// SetCommonName gets a reference to the given string and assigns it to the CommonName field. +func (o *ModelsTemplateRetrievalResponse) SetCommonName(v string) { + o.CommonName = &v +} + +// GetTemplateName returns the TemplateName field value if set, zero value otherwise. +func (o *ModelsTemplateRetrievalResponse) GetTemplateName() string { + if o == nil || isNil(o.TemplateName) { + var ret string + return ret + } + return *o.TemplateName +} + +// GetTemplateNameOk returns a tuple with the TemplateName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateRetrievalResponse) GetTemplateNameOk() (*string, bool) { + if o == nil || isNil(o.TemplateName) { + return nil, false + } + return o.TemplateName, true +} + +// HasTemplateName returns a boolean if a field has been set. +func (o *ModelsTemplateRetrievalResponse) HasTemplateName() bool { + if o != nil && !isNil(o.TemplateName) { + return true + } + + return false +} + +// SetTemplateName gets a reference to the given string and assigns it to the TemplateName field. +func (o *ModelsTemplateRetrievalResponse) SetTemplateName(v string) { + o.TemplateName = &v +} + +// GetOid returns the Oid field value if set, zero value otherwise. +func (o *ModelsTemplateRetrievalResponse) GetOid() string { + if o == nil || isNil(o.Oid) { + var ret string + return ret + } + return *o.Oid +} + +// GetOidOk returns a tuple with the Oid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateRetrievalResponse) GetOidOk() (*string, bool) { + if o == nil || isNil(o.Oid) { + return nil, false + } + return o.Oid, true +} + +// HasOid returns a boolean if a field has been set. +func (o *ModelsTemplateRetrievalResponse) HasOid() bool { + if o != nil && !isNil(o.Oid) { + return true + } + + return false +} + +// SetOid gets a reference to the given string and assigns it to the Oid field. +func (o *ModelsTemplateRetrievalResponse) SetOid(v string) { + o.Oid = &v +} + +// GetKeySize returns the KeySize field value if set, zero value otherwise. +func (o *ModelsTemplateRetrievalResponse) GetKeySize() string { + if o == nil || isNil(o.KeySize) { + var ret string + return ret + } + return *o.KeySize +} + +// GetKeySizeOk returns a tuple with the KeySize field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateRetrievalResponse) GetKeySizeOk() (*string, bool) { + if o == nil || isNil(o.KeySize) { + return nil, false + } + return o.KeySize, true +} + +// HasKeySize returns a boolean if a field has been set. +func (o *ModelsTemplateRetrievalResponse) HasKeySize() bool { + if o != nil && !isNil(o.KeySize) { + return true + } + + return false +} + +// SetKeySize gets a reference to the given string and assigns it to the KeySize field. +func (o *ModelsTemplateRetrievalResponse) SetKeySize(v string) { + o.KeySize = &v +} + +// GetKeyType returns the KeyType field value if set, zero value otherwise. +func (o *ModelsTemplateRetrievalResponse) GetKeyType() string { + if o == nil || isNil(o.KeyType) { + var ret string + return ret + } + return *o.KeyType +} + +// GetKeyTypeOk returns a tuple with the KeyType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateRetrievalResponse) GetKeyTypeOk() (*string, bool) { + if o == nil || isNil(o.KeyType) { + return nil, false + } + return o.KeyType, true +} + +// HasKeyType returns a boolean if a field has been set. +func (o *ModelsTemplateRetrievalResponse) HasKeyType() bool { + if o != nil && !isNil(o.KeyType) { + return true + } + + return false +} + +// SetKeyType gets a reference to the given string and assigns it to the KeyType field. +func (o *ModelsTemplateRetrievalResponse) SetKeyType(v string) { + o.KeyType = &v +} + +// GetForestRoot returns the ForestRoot field value if set, zero value otherwise. +func (o *ModelsTemplateRetrievalResponse) GetForestRoot() string { + if o == nil || isNil(o.ForestRoot) { + var ret string + return ret + } + return *o.ForestRoot +} + +// GetForestRootOk returns a tuple with the ForestRoot field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateRetrievalResponse) GetForestRootOk() (*string, bool) { + if o == nil || isNil(o.ForestRoot) { + return nil, false + } + return o.ForestRoot, true +} + +// HasForestRoot returns a boolean if a field has been set. +func (o *ModelsTemplateRetrievalResponse) HasForestRoot() bool { + if o != nil && !isNil(o.ForestRoot) { + return true + } + + return false +} + +// SetForestRoot gets a reference to the given string and assigns it to the ForestRoot field. +func (o *ModelsTemplateRetrievalResponse) SetForestRoot(v string) { + o.ForestRoot = &v +} + +// GetConfigurationTenant returns the ConfigurationTenant field value if set, zero value otherwise. +func (o *ModelsTemplateRetrievalResponse) GetConfigurationTenant() string { + if o == nil || isNil(o.ConfigurationTenant) { + var ret string + return ret + } + return *o.ConfigurationTenant +} + +// GetConfigurationTenantOk returns a tuple with the ConfigurationTenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateRetrievalResponse) GetConfigurationTenantOk() (*string, bool) { + if o == nil || isNil(o.ConfigurationTenant) { + return nil, false + } + return o.ConfigurationTenant, true +} + +// HasConfigurationTenant returns a boolean if a field has been set. +func (o *ModelsTemplateRetrievalResponse) HasConfigurationTenant() bool { + if o != nil && !isNil(o.ConfigurationTenant) { + return true + } + + return false +} + +// SetConfigurationTenant gets a reference to the given string and assigns it to the ConfigurationTenant field. +func (o *ModelsTemplateRetrievalResponse) SetConfigurationTenant(v string) { + o.ConfigurationTenant = &v +} + +// GetFriendlyName returns the FriendlyName field value if set, zero value otherwise. +func (o *ModelsTemplateRetrievalResponse) GetFriendlyName() string { + if o == nil || isNil(o.FriendlyName) { + var ret string + return ret + } + return *o.FriendlyName +} + +// GetFriendlyNameOk returns a tuple with the FriendlyName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateRetrievalResponse) GetFriendlyNameOk() (*string, bool) { + if o == nil || isNil(o.FriendlyName) { + return nil, false + } + return o.FriendlyName, true +} + +// HasFriendlyName returns a boolean if a field has been set. +func (o *ModelsTemplateRetrievalResponse) HasFriendlyName() bool { + if o != nil && !isNil(o.FriendlyName) { + return true + } + + return false +} + +// SetFriendlyName gets a reference to the given string and assigns it to the FriendlyName field. +func (o *ModelsTemplateRetrievalResponse) SetFriendlyName(v string) { + o.FriendlyName = &v +} + +// GetKeyRetention returns the KeyRetention field value if set, zero value otherwise. +func (o *ModelsTemplateRetrievalResponse) GetKeyRetention() int32 { + if o == nil || isNil(o.KeyRetention) { + var ret int32 + return ret + } + return *o.KeyRetention +} + +// GetKeyRetentionOk returns a tuple with the KeyRetention field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateRetrievalResponse) GetKeyRetentionOk() (*int32, bool) { + if o == nil || isNil(o.KeyRetention) { + return nil, false + } + return o.KeyRetention, true +} + +// HasKeyRetention returns a boolean if a field has been set. +func (o *ModelsTemplateRetrievalResponse) HasKeyRetention() bool { + if o != nil && !isNil(o.KeyRetention) { + return true + } + + return false +} + +// SetKeyRetention gets a reference to the given int32 and assigns it to the KeyRetention field. +func (o *ModelsTemplateRetrievalResponse) SetKeyRetention(v int32) { + o.KeyRetention = &v +} + +// GetKeyRetentionDays returns the KeyRetentionDays field value if set, zero value otherwise. +func (o *ModelsTemplateRetrievalResponse) GetKeyRetentionDays() int32 { + if o == nil || isNil(o.KeyRetentionDays) { + var ret int32 + return ret + } + return *o.KeyRetentionDays +} + +// GetKeyRetentionDaysOk returns a tuple with the KeyRetentionDays field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateRetrievalResponse) GetKeyRetentionDaysOk() (*int32, bool) { + if o == nil || isNil(o.KeyRetentionDays) { + return nil, false + } + return o.KeyRetentionDays, true +} + +// HasKeyRetentionDays returns a boolean if a field has been set. +func (o *ModelsTemplateRetrievalResponse) HasKeyRetentionDays() bool { + if o != nil && !isNil(o.KeyRetentionDays) { + return true + } + + return false +} + +// SetKeyRetentionDays gets a reference to the given int32 and assigns it to the KeyRetentionDays field. +func (o *ModelsTemplateRetrievalResponse) SetKeyRetentionDays(v int32) { + o.KeyRetentionDays = &v +} + +// GetKeyArchival returns the KeyArchival field value if set, zero value otherwise. +func (o *ModelsTemplateRetrievalResponse) GetKeyArchival() bool { + if o == nil || isNil(o.KeyArchival) { + var ret bool + return ret + } + return *o.KeyArchival +} + +// GetKeyArchivalOk returns a tuple with the KeyArchival field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateRetrievalResponse) GetKeyArchivalOk() (*bool, bool) { + if o == nil || isNil(o.KeyArchival) { + return nil, false + } + return o.KeyArchival, true +} + +// HasKeyArchival returns a boolean if a field has been set. +func (o *ModelsTemplateRetrievalResponse) HasKeyArchival() bool { + if o != nil && !isNil(o.KeyArchival) { + return true + } + + return false +} + +// SetKeyArchival gets a reference to the given bool and assigns it to the KeyArchival field. +func (o *ModelsTemplateRetrievalResponse) SetKeyArchival(v bool) { + o.KeyArchival = &v +} + +// GetEnrollmentFields returns the EnrollmentFields field value if set, zero value otherwise. +func (o *ModelsTemplateRetrievalResponse) GetEnrollmentFields() []ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel { + if o == nil || isNil(o.EnrollmentFields) { + var ret []ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel + return ret + } + return o.EnrollmentFields +} + +// GetEnrollmentFieldsOk returns a tuple with the EnrollmentFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateRetrievalResponse) GetEnrollmentFieldsOk() ([]ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel, bool) { + if o == nil || isNil(o.EnrollmentFields) { + return nil, false + } + return o.EnrollmentFields, true +} + +// HasEnrollmentFields returns a boolean if a field has been set. +func (o *ModelsTemplateRetrievalResponse) HasEnrollmentFields() bool { + if o != nil && !isNil(o.EnrollmentFields) { + return true + } + + return false +} + +// SetEnrollmentFields gets a reference to the given []ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel and assigns it to the EnrollmentFields field. +func (o *ModelsTemplateRetrievalResponse) SetEnrollmentFields(v []ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel) { + o.EnrollmentFields = v +} + +// GetMetadataFields returns the MetadataFields field value if set, zero value otherwise. +func (o *ModelsTemplateRetrievalResponse) GetMetadataFields() []ModelsTemplateRetrievalResponseTemplateMetadataFieldModel { + if o == nil || isNil(o.MetadataFields) { + var ret []ModelsTemplateRetrievalResponseTemplateMetadataFieldModel + return ret + } + return o.MetadataFields +} + +// GetMetadataFieldsOk returns a tuple with the MetadataFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateRetrievalResponse) GetMetadataFieldsOk() ([]ModelsTemplateRetrievalResponseTemplateMetadataFieldModel, bool) { + if o == nil || isNil(o.MetadataFields) { + return nil, false + } + return o.MetadataFields, true +} + +// HasMetadataFields returns a boolean if a field has been set. +func (o *ModelsTemplateRetrievalResponse) HasMetadataFields() bool { + if o != nil && !isNil(o.MetadataFields) { + return true + } + + return false +} + +// SetMetadataFields gets a reference to the given []ModelsTemplateRetrievalResponseTemplateMetadataFieldModel and assigns it to the MetadataFields field. +func (o *ModelsTemplateRetrievalResponse) SetMetadataFields(v []ModelsTemplateRetrievalResponseTemplateMetadataFieldModel) { + o.MetadataFields = v +} + +// GetAllowedEnrollmentTypes returns the AllowedEnrollmentTypes field value if set, zero value otherwise. +func (o *ModelsTemplateRetrievalResponse) GetAllowedEnrollmentTypes() int32 { + if o == nil || isNil(o.AllowedEnrollmentTypes) { + var ret int32 + return ret + } + return *o.AllowedEnrollmentTypes +} + +// GetAllowedEnrollmentTypesOk returns a tuple with the AllowedEnrollmentTypes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateRetrievalResponse) GetAllowedEnrollmentTypesOk() (*int32, bool) { + if o == nil || isNil(o.AllowedEnrollmentTypes) { + return nil, false + } + return o.AllowedEnrollmentTypes, true +} + +// HasAllowedEnrollmentTypes returns a boolean if a field has been set. +func (o *ModelsTemplateRetrievalResponse) HasAllowedEnrollmentTypes() bool { + if o != nil && !isNil(o.AllowedEnrollmentTypes) { + return true + } + + return false +} + +// SetAllowedEnrollmentTypes gets a reference to the given int32 and assigns it to the AllowedEnrollmentTypes field. +func (o *ModelsTemplateRetrievalResponse) SetAllowedEnrollmentTypes(v int32) { + o.AllowedEnrollmentTypes = &v +} + +// GetTemplateRegexes returns the TemplateRegexes field value if set, zero value otherwise. +func (o *ModelsTemplateRetrievalResponse) GetTemplateRegexes() []ModelsTemplateRetrievalResponseTemplateRegexModel { + if o == nil || isNil(o.TemplateRegexes) { + var ret []ModelsTemplateRetrievalResponseTemplateRegexModel + return ret + } + return o.TemplateRegexes +} + +// GetTemplateRegexesOk returns a tuple with the TemplateRegexes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateRetrievalResponse) GetTemplateRegexesOk() ([]ModelsTemplateRetrievalResponseTemplateRegexModel, bool) { + if o == nil || isNil(o.TemplateRegexes) { + return nil, false + } + return o.TemplateRegexes, true +} + +// HasTemplateRegexes returns a boolean if a field has been set. +func (o *ModelsTemplateRetrievalResponse) HasTemplateRegexes() bool { + if o != nil && !isNil(o.TemplateRegexes) { + return true + } + + return false +} + +// SetTemplateRegexes gets a reference to the given []ModelsTemplateRetrievalResponseTemplateRegexModel and assigns it to the TemplateRegexes field. +func (o *ModelsTemplateRetrievalResponse) SetTemplateRegexes(v []ModelsTemplateRetrievalResponseTemplateRegexModel) { + o.TemplateRegexes = v +} + +// GetTemplateDefaults returns the TemplateDefaults field value if set, zero value otherwise. +func (o *ModelsTemplateRetrievalResponse) GetTemplateDefaults() []ModelsTemplateRetrievalResponseTemplateDefaultModel { + if o == nil || isNil(o.TemplateDefaults) { + var ret []ModelsTemplateRetrievalResponseTemplateDefaultModel + return ret + } + return o.TemplateDefaults +} + +// GetTemplateDefaultsOk returns a tuple with the TemplateDefaults field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateRetrievalResponse) GetTemplateDefaultsOk() ([]ModelsTemplateRetrievalResponseTemplateDefaultModel, bool) { + if o == nil || isNil(o.TemplateDefaults) { + return nil, false + } + return o.TemplateDefaults, true +} + +// HasTemplateDefaults returns a boolean if a field has been set. +func (o *ModelsTemplateRetrievalResponse) HasTemplateDefaults() bool { + if o != nil && !isNil(o.TemplateDefaults) { + return true + } + + return false +} + +// SetTemplateDefaults gets a reference to the given []ModelsTemplateRetrievalResponseTemplateDefaultModel and assigns it to the TemplateDefaults field. +func (o *ModelsTemplateRetrievalResponse) SetTemplateDefaults(v []ModelsTemplateRetrievalResponseTemplateDefaultModel) { + o.TemplateDefaults = v +} + +// GetTemplatePolicy returns the TemplatePolicy field value if set, zero value otherwise. +func (o *ModelsTemplateRetrievalResponse) GetTemplatePolicy() ModelsTemplateRetrievalResponseTemplatePolicyModel { + if o == nil || isNil(o.TemplatePolicy) { + var ret ModelsTemplateRetrievalResponseTemplatePolicyModel + return ret + } + return *o.TemplatePolicy +} + +// GetTemplatePolicyOk returns a tuple with the TemplatePolicy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateRetrievalResponse) GetTemplatePolicyOk() (*ModelsTemplateRetrievalResponseTemplatePolicyModel, bool) { + if o == nil || isNil(o.TemplatePolicy) { + return nil, false + } + return o.TemplatePolicy, true +} + +// HasTemplatePolicy returns a boolean if a field has been set. +func (o *ModelsTemplateRetrievalResponse) HasTemplatePolicy() bool { + if o != nil && !isNil(o.TemplatePolicy) { + return true + } + + return false +} + +// SetTemplatePolicy gets a reference to the given ModelsTemplateRetrievalResponseTemplatePolicyModel and assigns it to the TemplatePolicy field. +func (o *ModelsTemplateRetrievalResponse) SetTemplatePolicy(v ModelsTemplateRetrievalResponseTemplatePolicyModel) { + o.TemplatePolicy = &v +} + +// GetUseAllowedRequesters returns the UseAllowedRequesters field value if set, zero value otherwise. +func (o *ModelsTemplateRetrievalResponse) GetUseAllowedRequesters() bool { + if o == nil || isNil(o.UseAllowedRequesters) { + var ret bool + return ret + } + return *o.UseAllowedRequesters +} + +// GetUseAllowedRequestersOk returns a tuple with the UseAllowedRequesters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateRetrievalResponse) GetUseAllowedRequestersOk() (*bool, bool) { + if o == nil || isNil(o.UseAllowedRequesters) { + return nil, false + } + return o.UseAllowedRequesters, true +} + +// HasUseAllowedRequesters returns a boolean if a field has been set. +func (o *ModelsTemplateRetrievalResponse) HasUseAllowedRequesters() bool { + if o != nil && !isNil(o.UseAllowedRequesters) { + return true + } + + return false +} + +// SetUseAllowedRequesters gets a reference to the given bool and assigns it to the UseAllowedRequesters field. +func (o *ModelsTemplateRetrievalResponse) SetUseAllowedRequesters(v bool) { + o.UseAllowedRequesters = &v +} + +// GetAllowedRequesters returns the AllowedRequesters field value if set, zero value otherwise. +func (o *ModelsTemplateRetrievalResponse) GetAllowedRequesters() []string { + if o == nil || isNil(o.AllowedRequesters) { + var ret []string + return ret + } + return o.AllowedRequesters +} + +// GetAllowedRequestersOk returns a tuple with the AllowedRequesters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateRetrievalResponse) GetAllowedRequestersOk() ([]string, bool) { + if o == nil || isNil(o.AllowedRequesters) { + return nil, false + } + return o.AllowedRequesters, true +} + +// HasAllowedRequesters returns a boolean if a field has been set. +func (o *ModelsTemplateRetrievalResponse) HasAllowedRequesters() bool { + if o != nil && !isNil(o.AllowedRequesters) { + return true + } + + return false +} + +// SetAllowedRequesters gets a reference to the given []string and assigns it to the AllowedRequesters field. +func (o *ModelsTemplateRetrievalResponse) SetAllowedRequesters(v []string) { + o.AllowedRequesters = v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *ModelsTemplateRetrievalResponse) GetDisplayName() string { + if o == nil || isNil(o.DisplayName) { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateRetrievalResponse) GetDisplayNameOk() (*string, bool) { + if o == nil || isNil(o.DisplayName) { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *ModelsTemplateRetrievalResponse) HasDisplayName() bool { + if o != nil && !isNil(o.DisplayName) { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *ModelsTemplateRetrievalResponse) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetRFCEnforcement returns the RFCEnforcement field value if set, zero value otherwise. +func (o *ModelsTemplateRetrievalResponse) GetRFCEnforcement() bool { + if o == nil || isNil(o.RFCEnforcement) { + var ret bool + return ret + } + return *o.RFCEnforcement +} + +// GetRFCEnforcementOk returns a tuple with the RFCEnforcement field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateRetrievalResponse) GetRFCEnforcementOk() (*bool, bool) { + if o == nil || isNil(o.RFCEnforcement) { + return nil, false + } + return o.RFCEnforcement, true +} + +// HasRFCEnforcement returns a boolean if a field has been set. +func (o *ModelsTemplateRetrievalResponse) HasRFCEnforcement() bool { + if o != nil && !isNil(o.RFCEnforcement) { + return true + } + + return false +} + +// SetRFCEnforcement gets a reference to the given bool and assigns it to the RFCEnforcement field. +func (o *ModelsTemplateRetrievalResponse) SetRFCEnforcement(v bool) { + o.RFCEnforcement = &v +} + +// GetRequiresApproval returns the RequiresApproval field value if set, zero value otherwise. +func (o *ModelsTemplateRetrievalResponse) GetRequiresApproval() bool { + if o == nil || isNil(o.RequiresApproval) { + var ret bool + return ret + } + return *o.RequiresApproval +} + +// GetRequiresApprovalOk returns a tuple with the RequiresApproval field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateRetrievalResponse) GetRequiresApprovalOk() (*bool, bool) { + if o == nil || isNil(o.RequiresApproval) { + return nil, false + } + return o.RequiresApproval, true +} + +// HasRequiresApproval returns a boolean if a field has been set. +func (o *ModelsTemplateRetrievalResponse) HasRequiresApproval() bool { + if o != nil && !isNil(o.RequiresApproval) { + return true + } + + return false +} + +// SetRequiresApproval gets a reference to the given bool and assigns it to the RequiresApproval field. +func (o *ModelsTemplateRetrievalResponse) SetRequiresApproval(v bool) { + o.RequiresApproval = &v +} + +// GetKeyUsage returns the KeyUsage field value if set, zero value otherwise. +func (o *ModelsTemplateRetrievalResponse) GetKeyUsage() int32 { + if o == nil || isNil(o.KeyUsage) { + var ret int32 + return ret + } + return *o.KeyUsage +} + +// GetKeyUsageOk returns a tuple with the KeyUsage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateRetrievalResponse) GetKeyUsageOk() (*int32, bool) { + if o == nil || isNil(o.KeyUsage) { + return nil, false + } + return o.KeyUsage, true +} + +// HasKeyUsage returns a boolean if a field has been set. +func (o *ModelsTemplateRetrievalResponse) HasKeyUsage() bool { + if o != nil && !isNil(o.KeyUsage) { + return true + } + + return false +} + +// SetKeyUsage gets a reference to the given int32 and assigns it to the KeyUsage field. +func (o *ModelsTemplateRetrievalResponse) SetKeyUsage(v int32) { + o.KeyUsage = &v +} + +// GetExtendedKeyUsages returns the ExtendedKeyUsages field value if set, zero value otherwise. +func (o *ModelsTemplateRetrievalResponse) GetExtendedKeyUsages() []ModelsTemplateRetrievalResponseExtendedKeyUsageModel { + if o == nil || isNil(o.ExtendedKeyUsages) { + var ret []ModelsTemplateRetrievalResponseExtendedKeyUsageModel + return ret + } + return o.ExtendedKeyUsages +} + +// GetExtendedKeyUsagesOk returns a tuple with the ExtendedKeyUsages field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateRetrievalResponse) GetExtendedKeyUsagesOk() ([]ModelsTemplateRetrievalResponseExtendedKeyUsageModel, bool) { + if o == nil || isNil(o.ExtendedKeyUsages) { + return nil, false + } + return o.ExtendedKeyUsages, true +} + +// HasExtendedKeyUsages returns a boolean if a field has been set. +func (o *ModelsTemplateRetrievalResponse) HasExtendedKeyUsages() bool { + if o != nil && !isNil(o.ExtendedKeyUsages) { + return true + } + + return false +} + +// SetExtendedKeyUsages gets a reference to the given []ModelsTemplateRetrievalResponseExtendedKeyUsageModel and assigns it to the ExtendedKeyUsages field. +func (o *ModelsTemplateRetrievalResponse) SetExtendedKeyUsages(v []ModelsTemplateRetrievalResponseExtendedKeyUsageModel) { + o.ExtendedKeyUsages = v +} + +// GetCurve returns the Curve field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModelsTemplateRetrievalResponse) GetCurve() string { + if o == nil || isNil(o.Curve.Get()) { + var ret string + return ret + } + return *o.Curve.Get() +} + +// GetCurveOk returns a tuple with the Curve field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModelsTemplateRetrievalResponse) GetCurveOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Curve.Get(), o.Curve.IsSet() +} + +// HasCurve returns a boolean if a field has been set. +func (o *ModelsTemplateRetrievalResponse) HasCurve() bool { + if o != nil && o.Curve.IsSet() { + return true + } + + return false +} + +// SetCurve gets a reference to the given NullableString and assigns it to the Curve field. +func (o *ModelsTemplateRetrievalResponse) SetCurve(v string) { + o.Curve.Set(&v) +} + +// SetCurveNil sets the value for Curve to be an explicit nil +func (o *ModelsTemplateRetrievalResponse) SetCurveNil() { + o.Curve.Set(nil) +} + +// UnsetCurve ensures that no value is present for Curve, not even an explicit nil +func (o *ModelsTemplateRetrievalResponse) UnsetCurve() { + o.Curve.Unset() +} + +func (o ModelsTemplateRetrievalResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsTemplateRetrievalResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.CommonName) { + toSerialize["CommonName"] = o.CommonName + } + if !isNil(o.TemplateName) { + toSerialize["TemplateName"] = o.TemplateName + } + if !isNil(o.Oid) { + toSerialize["Oid"] = o.Oid + } + if !isNil(o.KeySize) { + toSerialize["KeySize"] = o.KeySize + } + if !isNil(o.KeyType) { + toSerialize["KeyType"] = o.KeyType + } + // skip: ForestRoot is readOnly + if !isNil(o.ConfigurationTenant) { + toSerialize["ConfigurationTenant"] = o.ConfigurationTenant + } + if !isNil(o.FriendlyName) { + toSerialize["FriendlyName"] = o.FriendlyName + } + if !isNil(o.KeyRetention) { + toSerialize["KeyRetention"] = o.KeyRetention + } + if !isNil(o.KeyRetentionDays) { + toSerialize["KeyRetentionDays"] = o.KeyRetentionDays + } + if !isNil(o.KeyArchival) { + toSerialize["KeyArchival"] = o.KeyArchival + } + if !isNil(o.EnrollmentFields) { + toSerialize["EnrollmentFields"] = o.EnrollmentFields + } + if !isNil(o.MetadataFields) { + toSerialize["MetadataFields"] = o.MetadataFields + } + if !isNil(o.AllowedEnrollmentTypes) { + toSerialize["AllowedEnrollmentTypes"] = o.AllowedEnrollmentTypes + } + if !isNil(o.TemplateRegexes) { + toSerialize["TemplateRegexes"] = o.TemplateRegexes + } + if !isNil(o.TemplateDefaults) { + toSerialize["TemplateDefaults"] = o.TemplateDefaults + } + if !isNil(o.TemplatePolicy) { + toSerialize["TemplatePolicy"] = o.TemplatePolicy + } + if !isNil(o.UseAllowedRequesters) { + toSerialize["UseAllowedRequesters"] = o.UseAllowedRequesters + } + if !isNil(o.AllowedRequesters) { + toSerialize["AllowedRequesters"] = o.AllowedRequesters + } + if !isNil(o.DisplayName) { + toSerialize["DisplayName"] = o.DisplayName + } + if !isNil(o.RFCEnforcement) { + toSerialize["RFCEnforcement"] = o.RFCEnforcement + } + if !isNil(o.RequiresApproval) { + toSerialize["RequiresApproval"] = o.RequiresApproval + } + if !isNil(o.KeyUsage) { + toSerialize["KeyUsage"] = o.KeyUsage + } + if !isNil(o.ExtendedKeyUsages) { + toSerialize["ExtendedKeyUsages"] = o.ExtendedKeyUsages + } + if o.Curve.IsSet() { + toSerialize["Curve"] = o.Curve.Get() + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsTemplateRetrievalResponse) UnmarshalJSON(bytes []byte) (err error) { + varModelsTemplateRetrievalResponse := _ModelsTemplateRetrievalResponse{} + + if err = json.Unmarshal(bytes, &varModelsTemplateRetrievalResponse); err == nil { + *o = ModelsTemplateRetrievalResponse(varModelsTemplateRetrievalResponse) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "CommonName") + delete(additionalProperties, "TemplateName") + delete(additionalProperties, "Oid") + delete(additionalProperties, "KeySize") + delete(additionalProperties, "KeyType") + delete(additionalProperties, "ForestRoot") + delete(additionalProperties, "ConfigurationTenant") + delete(additionalProperties, "FriendlyName") + delete(additionalProperties, "KeyRetention") + delete(additionalProperties, "KeyRetentionDays") + delete(additionalProperties, "KeyArchival") + delete(additionalProperties, "EnrollmentFields") + delete(additionalProperties, "MetadataFields") + delete(additionalProperties, "AllowedEnrollmentTypes") + delete(additionalProperties, "TemplateRegexes") + delete(additionalProperties, "TemplateDefaults") + delete(additionalProperties, "TemplatePolicy") + delete(additionalProperties, "UseAllowedRequesters") + delete(additionalProperties, "AllowedRequesters") + delete(additionalProperties, "DisplayName") + delete(additionalProperties, "RFCEnforcement") + delete(additionalProperties, "RequiresApproval") + delete(additionalProperties, "KeyUsage") + delete(additionalProperties, "ExtendedKeyUsages") + delete(additionalProperties, "Curve") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsTemplateRetrievalResponse struct { + value *ModelsTemplateRetrievalResponse + isSet bool +} + +func (v NullableModelsTemplateRetrievalResponse) Get() *ModelsTemplateRetrievalResponse { + return v.value +} + +func (v *NullableModelsTemplateRetrievalResponse) Set(val *ModelsTemplateRetrievalResponse) { + v.value = val + v.isSet = true +} + +func (v NullableModelsTemplateRetrievalResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsTemplateRetrievalResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsTemplateRetrievalResponse(val *ModelsTemplateRetrievalResponse) *NullableModelsTemplateRetrievalResponse { + return &NullableModelsTemplateRetrievalResponse{value: val, isSet: true} +} + +func (v NullableModelsTemplateRetrievalResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsTemplateRetrievalResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_template_retrieval_response_extended_key_usage_model.go b/v1/api/keyfactor/model_models_template_retrieval_response_extended_key_usage_model.go new file mode 100644 index 0000000..4a9f471 --- /dev/null +++ b/v1/api/keyfactor/model_models_template_retrieval_response_extended_key_usage_model.go @@ -0,0 +1,232 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsTemplateRetrievalResponseExtendedKeyUsageModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsTemplateRetrievalResponseExtendedKeyUsageModel{} + +// ModelsTemplateRetrievalResponseExtendedKeyUsageModel struct for ModelsTemplateRetrievalResponseExtendedKeyUsageModel +type ModelsTemplateRetrievalResponseExtendedKeyUsageModel struct { + Id *int32 `json:"Id,omitempty"` + Oid *string `json:"Oid,omitempty"` + DisplayName *string `json:"DisplayName,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsTemplateRetrievalResponseExtendedKeyUsageModel ModelsTemplateRetrievalResponseExtendedKeyUsageModel + +// NewModelsTemplateRetrievalResponseExtendedKeyUsageModel instantiates a new ModelsTemplateRetrievalResponseExtendedKeyUsageModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsTemplateRetrievalResponseExtendedKeyUsageModel() *ModelsTemplateRetrievalResponseExtendedKeyUsageModel { + this := ModelsTemplateRetrievalResponseExtendedKeyUsageModel{} + return &this +} + +// NewModelsTemplateRetrievalResponseExtendedKeyUsageModelWithDefaults instantiates a new ModelsTemplateRetrievalResponseExtendedKeyUsageModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsTemplateRetrievalResponseExtendedKeyUsageModelWithDefaults() *ModelsTemplateRetrievalResponseExtendedKeyUsageModel { + this := ModelsTemplateRetrievalResponseExtendedKeyUsageModel{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ModelsTemplateRetrievalResponseExtendedKeyUsageModel) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateRetrievalResponseExtendedKeyUsageModel) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ModelsTemplateRetrievalResponseExtendedKeyUsageModel) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *ModelsTemplateRetrievalResponseExtendedKeyUsageModel) SetId(v int32) { + o.Id = &v +} + +// GetOid returns the Oid field value if set, zero value otherwise. +func (o *ModelsTemplateRetrievalResponseExtendedKeyUsageModel) GetOid() string { + if o == nil || isNil(o.Oid) { + var ret string + return ret + } + return *o.Oid +} + +// GetOidOk returns a tuple with the Oid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateRetrievalResponseExtendedKeyUsageModel) GetOidOk() (*string, bool) { + if o == nil || isNil(o.Oid) { + return nil, false + } + return o.Oid, true +} + +// HasOid returns a boolean if a field has been set. +func (o *ModelsTemplateRetrievalResponseExtendedKeyUsageModel) HasOid() bool { + if o != nil && !isNil(o.Oid) { + return true + } + + return false +} + +// SetOid gets a reference to the given string and assigns it to the Oid field. +func (o *ModelsTemplateRetrievalResponseExtendedKeyUsageModel) SetOid(v string) { + o.Oid = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *ModelsTemplateRetrievalResponseExtendedKeyUsageModel) GetDisplayName() string { + if o == nil || isNil(o.DisplayName) { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateRetrievalResponseExtendedKeyUsageModel) GetDisplayNameOk() (*string, bool) { + if o == nil || isNil(o.DisplayName) { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *ModelsTemplateRetrievalResponseExtendedKeyUsageModel) HasDisplayName() bool { + if o != nil && !isNil(o.DisplayName) { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *ModelsTemplateRetrievalResponseExtendedKeyUsageModel) SetDisplayName(v string) { + o.DisplayName = &v +} + +func (o ModelsTemplateRetrievalResponseExtendedKeyUsageModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsTemplateRetrievalResponseExtendedKeyUsageModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.Oid) { + toSerialize["Oid"] = o.Oid + } + if !isNil(o.DisplayName) { + toSerialize["DisplayName"] = o.DisplayName + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsTemplateRetrievalResponseExtendedKeyUsageModel) UnmarshalJSON(bytes []byte) (err error) { + varModelsTemplateRetrievalResponseExtendedKeyUsageModel := _ModelsTemplateRetrievalResponseExtendedKeyUsageModel{} + + if err = json.Unmarshal(bytes, &varModelsTemplateRetrievalResponseExtendedKeyUsageModel); err == nil { + *o = ModelsTemplateRetrievalResponseExtendedKeyUsageModel(varModelsTemplateRetrievalResponseExtendedKeyUsageModel) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "Oid") + delete(additionalProperties, "DisplayName") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsTemplateRetrievalResponseExtendedKeyUsageModel struct { + value *ModelsTemplateRetrievalResponseExtendedKeyUsageModel + isSet bool +} + +func (v NullableModelsTemplateRetrievalResponseExtendedKeyUsageModel) Get() *ModelsTemplateRetrievalResponseExtendedKeyUsageModel { + return v.value +} + +func (v *NullableModelsTemplateRetrievalResponseExtendedKeyUsageModel) Set(val *ModelsTemplateRetrievalResponseExtendedKeyUsageModel) { + v.value = val + v.isSet = true +} + +func (v NullableModelsTemplateRetrievalResponseExtendedKeyUsageModel) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsTemplateRetrievalResponseExtendedKeyUsageModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsTemplateRetrievalResponseExtendedKeyUsageModel(val *ModelsTemplateRetrievalResponseExtendedKeyUsageModel) *NullableModelsTemplateRetrievalResponseExtendedKeyUsageModel { + return &NullableModelsTemplateRetrievalResponseExtendedKeyUsageModel{value: val, isSet: true} +} + +func (v NullableModelsTemplateRetrievalResponseExtendedKeyUsageModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsTemplateRetrievalResponseExtendedKeyUsageModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_template_retrieval_response_template_default_model.go b/v1/api/keyfactor/model_models_template_retrieval_response_template_default_model.go new file mode 100644 index 0000000..9f818e5 --- /dev/null +++ b/v1/api/keyfactor/model_models_template_retrieval_response_template_default_model.go @@ -0,0 +1,195 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsTemplateRetrievalResponseTemplateDefaultModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsTemplateRetrievalResponseTemplateDefaultModel{} + +// ModelsTemplateRetrievalResponseTemplateDefaultModel struct for ModelsTemplateRetrievalResponseTemplateDefaultModel +type ModelsTemplateRetrievalResponseTemplateDefaultModel struct { + SubjectPart *string `json:"SubjectPart,omitempty"` + Value *string `json:"Value,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsTemplateRetrievalResponseTemplateDefaultModel ModelsTemplateRetrievalResponseTemplateDefaultModel + +// NewModelsTemplateRetrievalResponseTemplateDefaultModel instantiates a new ModelsTemplateRetrievalResponseTemplateDefaultModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsTemplateRetrievalResponseTemplateDefaultModel() *ModelsTemplateRetrievalResponseTemplateDefaultModel { + this := ModelsTemplateRetrievalResponseTemplateDefaultModel{} + return &this +} + +// NewModelsTemplateRetrievalResponseTemplateDefaultModelWithDefaults instantiates a new ModelsTemplateRetrievalResponseTemplateDefaultModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsTemplateRetrievalResponseTemplateDefaultModelWithDefaults() *ModelsTemplateRetrievalResponseTemplateDefaultModel { + this := ModelsTemplateRetrievalResponseTemplateDefaultModel{} + return &this +} + +// GetSubjectPart returns the SubjectPart field value if set, zero value otherwise. +func (o *ModelsTemplateRetrievalResponseTemplateDefaultModel) GetSubjectPart() string { + if o == nil || isNil(o.SubjectPart) { + var ret string + return ret + } + return *o.SubjectPart +} + +// GetSubjectPartOk returns a tuple with the SubjectPart field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateRetrievalResponseTemplateDefaultModel) GetSubjectPartOk() (*string, bool) { + if o == nil || isNil(o.SubjectPart) { + return nil, false + } + return o.SubjectPart, true +} + +// HasSubjectPart returns a boolean if a field has been set. +func (o *ModelsTemplateRetrievalResponseTemplateDefaultModel) HasSubjectPart() bool { + if o != nil && !isNil(o.SubjectPart) { + return true + } + + return false +} + +// SetSubjectPart gets a reference to the given string and assigns it to the SubjectPart field. +func (o *ModelsTemplateRetrievalResponseTemplateDefaultModel) SetSubjectPart(v string) { + o.SubjectPart = &v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *ModelsTemplateRetrievalResponseTemplateDefaultModel) GetValue() string { + if o == nil || isNil(o.Value) { + var ret string + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateRetrievalResponseTemplateDefaultModel) GetValueOk() (*string, bool) { + if o == nil || isNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *ModelsTemplateRetrievalResponseTemplateDefaultModel) HasValue() bool { + if o != nil && !isNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given string and assigns it to the Value field. +func (o *ModelsTemplateRetrievalResponseTemplateDefaultModel) SetValue(v string) { + o.Value = &v +} + +func (o ModelsTemplateRetrievalResponseTemplateDefaultModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsTemplateRetrievalResponseTemplateDefaultModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.SubjectPart) { + toSerialize["SubjectPart"] = o.SubjectPart + } + if !isNil(o.Value) { + toSerialize["Value"] = o.Value + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsTemplateRetrievalResponseTemplateDefaultModel) UnmarshalJSON(bytes []byte) (err error) { + varModelsTemplateRetrievalResponseTemplateDefaultModel := _ModelsTemplateRetrievalResponseTemplateDefaultModel{} + + if err = json.Unmarshal(bytes, &varModelsTemplateRetrievalResponseTemplateDefaultModel); err == nil { + *o = ModelsTemplateRetrievalResponseTemplateDefaultModel(varModelsTemplateRetrievalResponseTemplateDefaultModel) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "SubjectPart") + delete(additionalProperties, "Value") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsTemplateRetrievalResponseTemplateDefaultModel struct { + value *ModelsTemplateRetrievalResponseTemplateDefaultModel + isSet bool +} + +func (v NullableModelsTemplateRetrievalResponseTemplateDefaultModel) Get() *ModelsTemplateRetrievalResponseTemplateDefaultModel { + return v.value +} + +func (v *NullableModelsTemplateRetrievalResponseTemplateDefaultModel) Set(val *ModelsTemplateRetrievalResponseTemplateDefaultModel) { + v.value = val + v.isSet = true +} + +func (v NullableModelsTemplateRetrievalResponseTemplateDefaultModel) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsTemplateRetrievalResponseTemplateDefaultModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsTemplateRetrievalResponseTemplateDefaultModel(val *ModelsTemplateRetrievalResponseTemplateDefaultModel) *NullableModelsTemplateRetrievalResponseTemplateDefaultModel { + return &NullableModelsTemplateRetrievalResponseTemplateDefaultModel{value: val, isSet: true} +} + +func (v NullableModelsTemplateRetrievalResponseTemplateDefaultModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsTemplateRetrievalResponseTemplateDefaultModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_template_retrieval_response_template_enrollment_field_model.go b/v1/api/keyfactor/model_models_template_retrieval_response_template_enrollment_field_model.go new file mode 100644 index 0000000..5c8ce43 --- /dev/null +++ b/v1/api/keyfactor/model_models_template_retrieval_response_template_enrollment_field_model.go @@ -0,0 +1,269 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel{} + +// ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel struct for ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel +type ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel struct { + Id *int32 `json:"Id,omitempty"` + Name *string `json:"Name,omitempty"` + Options []string `json:"Options,omitempty"` + DataType *int32 `json:"DataType,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel + +// NewModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel instantiates a new ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel() *ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel { + this := ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel{} + return &this +} + +// NewModelsTemplateRetrievalResponseTemplateEnrollmentFieldModelWithDefaults instantiates a new ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsTemplateRetrievalResponseTemplateEnrollmentFieldModelWithDefaults() *ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel { + this := ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel) SetId(v int32) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel) GetName() string { + if o == nil || isNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel) GetNameOk() (*string, bool) { + if o == nil || isNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel) HasName() bool { + if o != nil && !isNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel) SetName(v string) { + o.Name = &v +} + +// GetOptions returns the Options field value if set, zero value otherwise. +func (o *ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel) GetOptions() []string { + if o == nil || isNil(o.Options) { + var ret []string + return ret + } + return o.Options +} + +// GetOptionsOk returns a tuple with the Options field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel) GetOptionsOk() ([]string, bool) { + if o == nil || isNil(o.Options) { + return nil, false + } + return o.Options, true +} + +// HasOptions returns a boolean if a field has been set. +func (o *ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel) HasOptions() bool { + if o != nil && !isNil(o.Options) { + return true + } + + return false +} + +// SetOptions gets a reference to the given []string and assigns it to the Options field. +func (o *ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel) SetOptions(v []string) { + o.Options = v +} + +// GetDataType returns the DataType field value if set, zero value otherwise. +func (o *ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel) GetDataType() int32 { + if o == nil || isNil(o.DataType) { + var ret int32 + return ret + } + return *o.DataType +} + +// GetDataTypeOk returns a tuple with the DataType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel) GetDataTypeOk() (*int32, bool) { + if o == nil || isNil(o.DataType) { + return nil, false + } + return o.DataType, true +} + +// HasDataType returns a boolean if a field has been set. +func (o *ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel) HasDataType() bool { + if o != nil && !isNil(o.DataType) { + return true + } + + return false +} + +// SetDataType gets a reference to the given int32 and assigns it to the DataType field. +func (o *ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel) SetDataType(v int32) { + o.DataType = &v +} + +func (o ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.Name) { + toSerialize["Name"] = o.Name + } + if !isNil(o.Options) { + toSerialize["Options"] = o.Options + } + if !isNil(o.DataType) { + toSerialize["DataType"] = o.DataType + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel) UnmarshalJSON(bytes []byte) (err error) { + varModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel := _ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel{} + + if err = json.Unmarshal(bytes, &varModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel); err == nil { + *o = ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel(varModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "Name") + delete(additionalProperties, "Options") + delete(additionalProperties, "DataType") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel struct { + value *ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel + isSet bool +} + +func (v NullableModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel) Get() *ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel { + return v.value +} + +func (v *NullableModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel) Set(val *ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel) { + v.value = val + v.isSet = true +} + +func (v NullableModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel(val *ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel) *NullableModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel { + return &NullableModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel{value: val, isSet: true} +} + +func (v NullableModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_template_retrieval_response_template_metadata_field_model.go b/v1/api/keyfactor/model_models_template_retrieval_response_template_metadata_field_model.go new file mode 100644 index 0000000..3cf9660 --- /dev/null +++ b/v1/api/keyfactor/model_models_template_retrieval_response_template_metadata_field_model.go @@ -0,0 +1,343 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsTemplateRetrievalResponseTemplateMetadataFieldModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsTemplateRetrievalResponseTemplateMetadataFieldModel{} + +// ModelsTemplateRetrievalResponseTemplateMetadataFieldModel struct for ModelsTemplateRetrievalResponseTemplateMetadataFieldModel +type ModelsTemplateRetrievalResponseTemplateMetadataFieldModel struct { + Id *int32 `json:"Id,omitempty"` + DefaultValue *string `json:"DefaultValue,omitempty"` + MetadataId *int32 `json:"MetadataId,omitempty"` + Validation *string `json:"Validation,omitempty"` + Enrollment *int32 `json:"Enrollment,omitempty"` + Message *string `json:"Message,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsTemplateRetrievalResponseTemplateMetadataFieldModel ModelsTemplateRetrievalResponseTemplateMetadataFieldModel + +// NewModelsTemplateRetrievalResponseTemplateMetadataFieldModel instantiates a new ModelsTemplateRetrievalResponseTemplateMetadataFieldModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsTemplateRetrievalResponseTemplateMetadataFieldModel() *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel { + this := ModelsTemplateRetrievalResponseTemplateMetadataFieldModel{} + return &this +} + +// NewModelsTemplateRetrievalResponseTemplateMetadataFieldModelWithDefaults instantiates a new ModelsTemplateRetrievalResponseTemplateMetadataFieldModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsTemplateRetrievalResponseTemplateMetadataFieldModelWithDefaults() *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel { + this := ModelsTemplateRetrievalResponseTemplateMetadataFieldModel{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel) SetId(v int32) { + o.Id = &v +} + +// GetDefaultValue returns the DefaultValue field value if set, zero value otherwise. +func (o *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel) GetDefaultValue() string { + if o == nil || isNil(o.DefaultValue) { + var ret string + return ret + } + return *o.DefaultValue +} + +// GetDefaultValueOk returns a tuple with the DefaultValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel) GetDefaultValueOk() (*string, bool) { + if o == nil || isNil(o.DefaultValue) { + return nil, false + } + return o.DefaultValue, true +} + +// HasDefaultValue returns a boolean if a field has been set. +func (o *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel) HasDefaultValue() bool { + if o != nil && !isNil(o.DefaultValue) { + return true + } + + return false +} + +// SetDefaultValue gets a reference to the given string and assigns it to the DefaultValue field. +func (o *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel) SetDefaultValue(v string) { + o.DefaultValue = &v +} + +// GetMetadataId returns the MetadataId field value if set, zero value otherwise. +func (o *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel) GetMetadataId() int32 { + if o == nil || isNil(o.MetadataId) { + var ret int32 + return ret + } + return *o.MetadataId +} + +// GetMetadataIdOk returns a tuple with the MetadataId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel) GetMetadataIdOk() (*int32, bool) { + if o == nil || isNil(o.MetadataId) { + return nil, false + } + return o.MetadataId, true +} + +// HasMetadataId returns a boolean if a field has been set. +func (o *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel) HasMetadataId() bool { + if o != nil && !isNil(o.MetadataId) { + return true + } + + return false +} + +// SetMetadataId gets a reference to the given int32 and assigns it to the MetadataId field. +func (o *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel) SetMetadataId(v int32) { + o.MetadataId = &v +} + +// GetValidation returns the Validation field value if set, zero value otherwise. +func (o *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel) GetValidation() string { + if o == nil || isNil(o.Validation) { + var ret string + return ret + } + return *o.Validation +} + +// GetValidationOk returns a tuple with the Validation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel) GetValidationOk() (*string, bool) { + if o == nil || isNil(o.Validation) { + return nil, false + } + return o.Validation, true +} + +// HasValidation returns a boolean if a field has been set. +func (o *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel) HasValidation() bool { + if o != nil && !isNil(o.Validation) { + return true + } + + return false +} + +// SetValidation gets a reference to the given string and assigns it to the Validation field. +func (o *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel) SetValidation(v string) { + o.Validation = &v +} + +// GetEnrollment returns the Enrollment field value if set, zero value otherwise. +func (o *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel) GetEnrollment() int32 { + if o == nil || isNil(o.Enrollment) { + var ret int32 + return ret + } + return *o.Enrollment +} + +// GetEnrollmentOk returns a tuple with the Enrollment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel) GetEnrollmentOk() (*int32, bool) { + if o == nil || isNil(o.Enrollment) { + return nil, false + } + return o.Enrollment, true +} + +// HasEnrollment returns a boolean if a field has been set. +func (o *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel) HasEnrollment() bool { + if o != nil && !isNil(o.Enrollment) { + return true + } + + return false +} + +// SetEnrollment gets a reference to the given int32 and assigns it to the Enrollment field. +func (o *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel) SetEnrollment(v int32) { + o.Enrollment = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel) GetMessage() string { + if o == nil || isNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel) GetMessageOk() (*string, bool) { + if o == nil || isNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel) HasMessage() bool { + if o != nil && !isNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel) SetMessage(v string) { + o.Message = &v +} + +func (o ModelsTemplateRetrievalResponseTemplateMetadataFieldModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsTemplateRetrievalResponseTemplateMetadataFieldModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.DefaultValue) { + toSerialize["DefaultValue"] = o.DefaultValue + } + if !isNil(o.MetadataId) { + toSerialize["MetadataId"] = o.MetadataId + } + if !isNil(o.Validation) { + toSerialize["Validation"] = o.Validation + } + if !isNil(o.Enrollment) { + toSerialize["Enrollment"] = o.Enrollment + } + if !isNil(o.Message) { + toSerialize["Message"] = o.Message + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel) UnmarshalJSON(bytes []byte) (err error) { + varModelsTemplateRetrievalResponseTemplateMetadataFieldModel := _ModelsTemplateRetrievalResponseTemplateMetadataFieldModel{} + + if err = json.Unmarshal(bytes, &varModelsTemplateRetrievalResponseTemplateMetadataFieldModel); err == nil { + *o = ModelsTemplateRetrievalResponseTemplateMetadataFieldModel(varModelsTemplateRetrievalResponseTemplateMetadataFieldModel) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "DefaultValue") + delete(additionalProperties, "MetadataId") + delete(additionalProperties, "Validation") + delete(additionalProperties, "Enrollment") + delete(additionalProperties, "Message") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsTemplateRetrievalResponseTemplateMetadataFieldModel struct { + value *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel + isSet bool +} + +func (v NullableModelsTemplateRetrievalResponseTemplateMetadataFieldModel) Get() *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel { + return v.value +} + +func (v *NullableModelsTemplateRetrievalResponseTemplateMetadataFieldModel) Set(val *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel) { + v.value = val + v.isSet = true +} + +func (v NullableModelsTemplateRetrievalResponseTemplateMetadataFieldModel) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsTemplateRetrievalResponseTemplateMetadataFieldModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsTemplateRetrievalResponseTemplateMetadataFieldModel(val *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel) *NullableModelsTemplateRetrievalResponseTemplateMetadataFieldModel { + return &NullableModelsTemplateRetrievalResponseTemplateMetadataFieldModel{value: val, isSet: true} +} + +func (v NullableModelsTemplateRetrievalResponseTemplateMetadataFieldModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsTemplateRetrievalResponseTemplateMetadataFieldModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_template_retrieval_response_template_policy_model.go b/v1/api/keyfactor/model_models_template_retrieval_response_template_policy_model.go new file mode 100644 index 0000000..c2a86ea --- /dev/null +++ b/v1/api/keyfactor/model_models_template_retrieval_response_template_policy_model.go @@ -0,0 +1,343 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsTemplateRetrievalResponseTemplatePolicyModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsTemplateRetrievalResponseTemplatePolicyModel{} + +// ModelsTemplateRetrievalResponseTemplatePolicyModel struct for ModelsTemplateRetrievalResponseTemplatePolicyModel +type ModelsTemplateRetrievalResponseTemplatePolicyModel struct { + TemplateId *int32 `json:"TemplateId,omitempty"` + RSAValidKeySizes []int32 `json:"RSAValidKeySizes,omitempty"` + ECCValidCurves []string `json:"ECCValidCurves,omitempty"` + AllowKeyReuse *bool `json:"AllowKeyReuse,omitempty"` + AllowWildcards *bool `json:"AllowWildcards,omitempty"` + RFCEnforcement *bool `json:"RFCEnforcement,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsTemplateRetrievalResponseTemplatePolicyModel ModelsTemplateRetrievalResponseTemplatePolicyModel + +// NewModelsTemplateRetrievalResponseTemplatePolicyModel instantiates a new ModelsTemplateRetrievalResponseTemplatePolicyModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsTemplateRetrievalResponseTemplatePolicyModel() *ModelsTemplateRetrievalResponseTemplatePolicyModel { + this := ModelsTemplateRetrievalResponseTemplatePolicyModel{} + return &this +} + +// NewModelsTemplateRetrievalResponseTemplatePolicyModelWithDefaults instantiates a new ModelsTemplateRetrievalResponseTemplatePolicyModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsTemplateRetrievalResponseTemplatePolicyModelWithDefaults() *ModelsTemplateRetrievalResponseTemplatePolicyModel { + this := ModelsTemplateRetrievalResponseTemplatePolicyModel{} + return &this +} + +// GetTemplateId returns the TemplateId field value if set, zero value otherwise. +func (o *ModelsTemplateRetrievalResponseTemplatePolicyModel) GetTemplateId() int32 { + if o == nil || isNil(o.TemplateId) { + var ret int32 + return ret + } + return *o.TemplateId +} + +// GetTemplateIdOk returns a tuple with the TemplateId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateRetrievalResponseTemplatePolicyModel) GetTemplateIdOk() (*int32, bool) { + if o == nil || isNil(o.TemplateId) { + return nil, false + } + return o.TemplateId, true +} + +// HasTemplateId returns a boolean if a field has been set. +func (o *ModelsTemplateRetrievalResponseTemplatePolicyModel) HasTemplateId() bool { + if o != nil && !isNil(o.TemplateId) { + return true + } + + return false +} + +// SetTemplateId gets a reference to the given int32 and assigns it to the TemplateId field. +func (o *ModelsTemplateRetrievalResponseTemplatePolicyModel) SetTemplateId(v int32) { + o.TemplateId = &v +} + +// GetRSAValidKeySizes returns the RSAValidKeySizes field value if set, zero value otherwise. +func (o *ModelsTemplateRetrievalResponseTemplatePolicyModel) GetRSAValidKeySizes() []int32 { + if o == nil || isNil(o.RSAValidKeySizes) { + var ret []int32 + return ret + } + return o.RSAValidKeySizes +} + +// GetRSAValidKeySizesOk returns a tuple with the RSAValidKeySizes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateRetrievalResponseTemplatePolicyModel) GetRSAValidKeySizesOk() ([]int32, bool) { + if o == nil || isNil(o.RSAValidKeySizes) { + return nil, false + } + return o.RSAValidKeySizes, true +} + +// HasRSAValidKeySizes returns a boolean if a field has been set. +func (o *ModelsTemplateRetrievalResponseTemplatePolicyModel) HasRSAValidKeySizes() bool { + if o != nil && !isNil(o.RSAValidKeySizes) { + return true + } + + return false +} + +// SetRSAValidKeySizes gets a reference to the given []int32 and assigns it to the RSAValidKeySizes field. +func (o *ModelsTemplateRetrievalResponseTemplatePolicyModel) SetRSAValidKeySizes(v []int32) { + o.RSAValidKeySizes = v +} + +// GetECCValidCurves returns the ECCValidCurves field value if set, zero value otherwise. +func (o *ModelsTemplateRetrievalResponseTemplatePolicyModel) GetECCValidCurves() []string { + if o == nil || isNil(o.ECCValidCurves) { + var ret []string + return ret + } + return o.ECCValidCurves +} + +// GetECCValidCurvesOk returns a tuple with the ECCValidCurves field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateRetrievalResponseTemplatePolicyModel) GetECCValidCurvesOk() ([]string, bool) { + if o == nil || isNil(o.ECCValidCurves) { + return nil, false + } + return o.ECCValidCurves, true +} + +// HasECCValidCurves returns a boolean if a field has been set. +func (o *ModelsTemplateRetrievalResponseTemplatePolicyModel) HasECCValidCurves() bool { + if o != nil && !isNil(o.ECCValidCurves) { + return true + } + + return false +} + +// SetECCValidCurves gets a reference to the given []string and assigns it to the ECCValidCurves field. +func (o *ModelsTemplateRetrievalResponseTemplatePolicyModel) SetECCValidCurves(v []string) { + o.ECCValidCurves = v +} + +// GetAllowKeyReuse returns the AllowKeyReuse field value if set, zero value otherwise. +func (o *ModelsTemplateRetrievalResponseTemplatePolicyModel) GetAllowKeyReuse() bool { + if o == nil || isNil(o.AllowKeyReuse) { + var ret bool + return ret + } + return *o.AllowKeyReuse +} + +// GetAllowKeyReuseOk returns a tuple with the AllowKeyReuse field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateRetrievalResponseTemplatePolicyModel) GetAllowKeyReuseOk() (*bool, bool) { + if o == nil || isNil(o.AllowKeyReuse) { + return nil, false + } + return o.AllowKeyReuse, true +} + +// HasAllowKeyReuse returns a boolean if a field has been set. +func (o *ModelsTemplateRetrievalResponseTemplatePolicyModel) HasAllowKeyReuse() bool { + if o != nil && !isNil(o.AllowKeyReuse) { + return true + } + + return false +} + +// SetAllowKeyReuse gets a reference to the given bool and assigns it to the AllowKeyReuse field. +func (o *ModelsTemplateRetrievalResponseTemplatePolicyModel) SetAllowKeyReuse(v bool) { + o.AllowKeyReuse = &v +} + +// GetAllowWildcards returns the AllowWildcards field value if set, zero value otherwise. +func (o *ModelsTemplateRetrievalResponseTemplatePolicyModel) GetAllowWildcards() bool { + if o == nil || isNil(o.AllowWildcards) { + var ret bool + return ret + } + return *o.AllowWildcards +} + +// GetAllowWildcardsOk returns a tuple with the AllowWildcards field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateRetrievalResponseTemplatePolicyModel) GetAllowWildcardsOk() (*bool, bool) { + if o == nil || isNil(o.AllowWildcards) { + return nil, false + } + return o.AllowWildcards, true +} + +// HasAllowWildcards returns a boolean if a field has been set. +func (o *ModelsTemplateRetrievalResponseTemplatePolicyModel) HasAllowWildcards() bool { + if o != nil && !isNil(o.AllowWildcards) { + return true + } + + return false +} + +// SetAllowWildcards gets a reference to the given bool and assigns it to the AllowWildcards field. +func (o *ModelsTemplateRetrievalResponseTemplatePolicyModel) SetAllowWildcards(v bool) { + o.AllowWildcards = &v +} + +// GetRFCEnforcement returns the RFCEnforcement field value if set, zero value otherwise. +func (o *ModelsTemplateRetrievalResponseTemplatePolicyModel) GetRFCEnforcement() bool { + if o == nil || isNil(o.RFCEnforcement) { + var ret bool + return ret + } + return *o.RFCEnforcement +} + +// GetRFCEnforcementOk returns a tuple with the RFCEnforcement field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateRetrievalResponseTemplatePolicyModel) GetRFCEnforcementOk() (*bool, bool) { + if o == nil || isNil(o.RFCEnforcement) { + return nil, false + } + return o.RFCEnforcement, true +} + +// HasRFCEnforcement returns a boolean if a field has been set. +func (o *ModelsTemplateRetrievalResponseTemplatePolicyModel) HasRFCEnforcement() bool { + if o != nil && !isNil(o.RFCEnforcement) { + return true + } + + return false +} + +// SetRFCEnforcement gets a reference to the given bool and assigns it to the RFCEnforcement field. +func (o *ModelsTemplateRetrievalResponseTemplatePolicyModel) SetRFCEnforcement(v bool) { + o.RFCEnforcement = &v +} + +func (o ModelsTemplateRetrievalResponseTemplatePolicyModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsTemplateRetrievalResponseTemplatePolicyModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.TemplateId) { + toSerialize["TemplateId"] = o.TemplateId + } + if !isNil(o.RSAValidKeySizes) { + toSerialize["RSAValidKeySizes"] = o.RSAValidKeySizes + } + if !isNil(o.ECCValidCurves) { + toSerialize["ECCValidCurves"] = o.ECCValidCurves + } + if !isNil(o.AllowKeyReuse) { + toSerialize["AllowKeyReuse"] = o.AllowKeyReuse + } + if !isNil(o.AllowWildcards) { + toSerialize["AllowWildcards"] = o.AllowWildcards + } + if !isNil(o.RFCEnforcement) { + toSerialize["RFCEnforcement"] = o.RFCEnforcement + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsTemplateRetrievalResponseTemplatePolicyModel) UnmarshalJSON(bytes []byte) (err error) { + varModelsTemplateRetrievalResponseTemplatePolicyModel := _ModelsTemplateRetrievalResponseTemplatePolicyModel{} + + if err = json.Unmarshal(bytes, &varModelsTemplateRetrievalResponseTemplatePolicyModel); err == nil { + *o = ModelsTemplateRetrievalResponseTemplatePolicyModel(varModelsTemplateRetrievalResponseTemplatePolicyModel) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "TemplateId") + delete(additionalProperties, "RSAValidKeySizes") + delete(additionalProperties, "ECCValidCurves") + delete(additionalProperties, "AllowKeyReuse") + delete(additionalProperties, "AllowWildcards") + delete(additionalProperties, "RFCEnforcement") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsTemplateRetrievalResponseTemplatePolicyModel struct { + value *ModelsTemplateRetrievalResponseTemplatePolicyModel + isSet bool +} + +func (v NullableModelsTemplateRetrievalResponseTemplatePolicyModel) Get() *ModelsTemplateRetrievalResponseTemplatePolicyModel { + return v.value +} + +func (v *NullableModelsTemplateRetrievalResponseTemplatePolicyModel) Set(val *ModelsTemplateRetrievalResponseTemplatePolicyModel) { + v.value = val + v.isSet = true +} + +func (v NullableModelsTemplateRetrievalResponseTemplatePolicyModel) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsTemplateRetrievalResponseTemplatePolicyModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsTemplateRetrievalResponseTemplatePolicyModel(val *ModelsTemplateRetrievalResponseTemplatePolicyModel) *NullableModelsTemplateRetrievalResponseTemplatePolicyModel { + return &NullableModelsTemplateRetrievalResponseTemplatePolicyModel{value: val, isSet: true} +} + +func (v NullableModelsTemplateRetrievalResponseTemplatePolicyModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsTemplateRetrievalResponseTemplatePolicyModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_template_retrieval_response_template_regex_model.go b/v1/api/keyfactor/model_models_template_retrieval_response_template_regex_model.go new file mode 100644 index 0000000..779c475 --- /dev/null +++ b/v1/api/keyfactor/model_models_template_retrieval_response_template_regex_model.go @@ -0,0 +1,269 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsTemplateRetrievalResponseTemplateRegexModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsTemplateRetrievalResponseTemplateRegexModel{} + +// ModelsTemplateRetrievalResponseTemplateRegexModel struct for ModelsTemplateRetrievalResponseTemplateRegexModel +type ModelsTemplateRetrievalResponseTemplateRegexModel struct { + TemplateId *int32 `json:"TemplateId,omitempty"` + SubjectPart *string `json:"SubjectPart,omitempty"` + Regex *string `json:"Regex,omitempty"` + Error *string `json:"Error,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsTemplateRetrievalResponseTemplateRegexModel ModelsTemplateRetrievalResponseTemplateRegexModel + +// NewModelsTemplateRetrievalResponseTemplateRegexModel instantiates a new ModelsTemplateRetrievalResponseTemplateRegexModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsTemplateRetrievalResponseTemplateRegexModel() *ModelsTemplateRetrievalResponseTemplateRegexModel { + this := ModelsTemplateRetrievalResponseTemplateRegexModel{} + return &this +} + +// NewModelsTemplateRetrievalResponseTemplateRegexModelWithDefaults instantiates a new ModelsTemplateRetrievalResponseTemplateRegexModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsTemplateRetrievalResponseTemplateRegexModelWithDefaults() *ModelsTemplateRetrievalResponseTemplateRegexModel { + this := ModelsTemplateRetrievalResponseTemplateRegexModel{} + return &this +} + +// GetTemplateId returns the TemplateId field value if set, zero value otherwise. +func (o *ModelsTemplateRetrievalResponseTemplateRegexModel) GetTemplateId() int32 { + if o == nil || isNil(o.TemplateId) { + var ret int32 + return ret + } + return *o.TemplateId +} + +// GetTemplateIdOk returns a tuple with the TemplateId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateRetrievalResponseTemplateRegexModel) GetTemplateIdOk() (*int32, bool) { + if o == nil || isNil(o.TemplateId) { + return nil, false + } + return o.TemplateId, true +} + +// HasTemplateId returns a boolean if a field has been set. +func (o *ModelsTemplateRetrievalResponseTemplateRegexModel) HasTemplateId() bool { + if o != nil && !isNil(o.TemplateId) { + return true + } + + return false +} + +// SetTemplateId gets a reference to the given int32 and assigns it to the TemplateId field. +func (o *ModelsTemplateRetrievalResponseTemplateRegexModel) SetTemplateId(v int32) { + o.TemplateId = &v +} + +// GetSubjectPart returns the SubjectPart field value if set, zero value otherwise. +func (o *ModelsTemplateRetrievalResponseTemplateRegexModel) GetSubjectPart() string { + if o == nil || isNil(o.SubjectPart) { + var ret string + return ret + } + return *o.SubjectPart +} + +// GetSubjectPartOk returns a tuple with the SubjectPart field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateRetrievalResponseTemplateRegexModel) GetSubjectPartOk() (*string, bool) { + if o == nil || isNil(o.SubjectPart) { + return nil, false + } + return o.SubjectPart, true +} + +// HasSubjectPart returns a boolean if a field has been set. +func (o *ModelsTemplateRetrievalResponseTemplateRegexModel) HasSubjectPart() bool { + if o != nil && !isNil(o.SubjectPart) { + return true + } + + return false +} + +// SetSubjectPart gets a reference to the given string and assigns it to the SubjectPart field. +func (o *ModelsTemplateRetrievalResponseTemplateRegexModel) SetSubjectPart(v string) { + o.SubjectPart = &v +} + +// GetRegex returns the Regex field value if set, zero value otherwise. +func (o *ModelsTemplateRetrievalResponseTemplateRegexModel) GetRegex() string { + if o == nil || isNil(o.Regex) { + var ret string + return ret + } + return *o.Regex +} + +// GetRegexOk returns a tuple with the Regex field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateRetrievalResponseTemplateRegexModel) GetRegexOk() (*string, bool) { + if o == nil || isNil(o.Regex) { + return nil, false + } + return o.Regex, true +} + +// HasRegex returns a boolean if a field has been set. +func (o *ModelsTemplateRetrievalResponseTemplateRegexModel) HasRegex() bool { + if o != nil && !isNil(o.Regex) { + return true + } + + return false +} + +// SetRegex gets a reference to the given string and assigns it to the Regex field. +func (o *ModelsTemplateRetrievalResponseTemplateRegexModel) SetRegex(v string) { + o.Regex = &v +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *ModelsTemplateRetrievalResponseTemplateRegexModel) GetError() string { + if o == nil || isNil(o.Error) { + var ret string + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateRetrievalResponseTemplateRegexModel) GetErrorOk() (*string, bool) { + if o == nil || isNil(o.Error) { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *ModelsTemplateRetrievalResponseTemplateRegexModel) HasError() bool { + if o != nil && !isNil(o.Error) { + return true + } + + return false +} + +// SetError gets a reference to the given string and assigns it to the Error field. +func (o *ModelsTemplateRetrievalResponseTemplateRegexModel) SetError(v string) { + o.Error = &v +} + +func (o ModelsTemplateRetrievalResponseTemplateRegexModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsTemplateRetrievalResponseTemplateRegexModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.TemplateId) { + toSerialize["TemplateId"] = o.TemplateId + } + if !isNil(o.SubjectPart) { + toSerialize["SubjectPart"] = o.SubjectPart + } + if !isNil(o.Regex) { + toSerialize["Regex"] = o.Regex + } + if !isNil(o.Error) { + toSerialize["Error"] = o.Error + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsTemplateRetrievalResponseTemplateRegexModel) UnmarshalJSON(bytes []byte) (err error) { + varModelsTemplateRetrievalResponseTemplateRegexModel := _ModelsTemplateRetrievalResponseTemplateRegexModel{} + + if err = json.Unmarshal(bytes, &varModelsTemplateRetrievalResponseTemplateRegexModel); err == nil { + *o = ModelsTemplateRetrievalResponseTemplateRegexModel(varModelsTemplateRetrievalResponseTemplateRegexModel) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "TemplateId") + delete(additionalProperties, "SubjectPart") + delete(additionalProperties, "Regex") + delete(additionalProperties, "Error") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsTemplateRetrievalResponseTemplateRegexModel struct { + value *ModelsTemplateRetrievalResponseTemplateRegexModel + isSet bool +} + +func (v NullableModelsTemplateRetrievalResponseTemplateRegexModel) Get() *ModelsTemplateRetrievalResponseTemplateRegexModel { + return v.value +} + +func (v *NullableModelsTemplateRetrievalResponseTemplateRegexModel) Set(val *ModelsTemplateRetrievalResponseTemplateRegexModel) { + v.value = val + v.isSet = true +} + +func (v NullableModelsTemplateRetrievalResponseTemplateRegexModel) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsTemplateRetrievalResponseTemplateRegexModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsTemplateRetrievalResponseTemplateRegexModel(val *ModelsTemplateRetrievalResponseTemplateRegexModel) *NullableModelsTemplateRetrievalResponseTemplateRegexModel { + return &NullableModelsTemplateRetrievalResponseTemplateRegexModel{value: val, isSet: true} +} + +func (v NullableModelsTemplateRetrievalResponseTemplateRegexModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsTemplateRetrievalResponseTemplateRegexModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_template_update_request.go b/v1/api/keyfactor/model_models_template_update_request.go new file mode 100644 index 0000000..ab032ac --- /dev/null +++ b/v1/api/keyfactor/model_models_template_update_request.go @@ -0,0 +1,750 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsTemplateUpdateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsTemplateUpdateRequest{} + +// ModelsTemplateUpdateRequest struct for ModelsTemplateUpdateRequest +type ModelsTemplateUpdateRequest struct { + Id *int32 `json:"Id,omitempty"` + KeySize *string `json:"KeySize,omitempty"` + KeyType *string `json:"KeyType,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + KeyRetention *int32 `json:"KeyRetention,omitempty"` + KeyRetentionDays *int32 `json:"KeyRetentionDays,omitempty"` + KeyArchival *bool `json:"KeyArchival,omitempty"` + EnrollmentFields []ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel `json:"EnrollmentFields,omitempty"` + MetadataFields []ModelsTemplateUpdateRequestTemplateMetadataFieldModel `json:"MetadataFields,omitempty"` + AllowedEnrollmentTypes *int32 `json:"AllowedEnrollmentTypes,omitempty"` + TemplateRegexes []ModelsTemplateUpdateRequestTemplateRegexModel `json:"TemplateRegexes,omitempty"` + TemplateDefaults []ModelsTemplateUpdateRequestTemplateDefaultModel `json:"TemplateDefaults,omitempty"` + TemplatePolicy *ModelsTemplateUpdateRequestTemplatePolicyModel `json:"TemplatePolicy,omitempty"` + UseAllowedRequesters *bool `json:"UseAllowedRequesters,omitempty"` + AllowedRequesters []string `json:"AllowedRequesters,omitempty"` + RequiresApproval *bool `json:"RequiresApproval,omitempty"` + KeyUsage *int32 `json:"KeyUsage,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsTemplateUpdateRequest ModelsTemplateUpdateRequest + +// NewModelsTemplateUpdateRequest instantiates a new ModelsTemplateUpdateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsTemplateUpdateRequest() *ModelsTemplateUpdateRequest { + this := ModelsTemplateUpdateRequest{} + return &this +} + +// NewModelsTemplateUpdateRequestWithDefaults instantiates a new ModelsTemplateUpdateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsTemplateUpdateRequestWithDefaults() *ModelsTemplateUpdateRequest { + this := ModelsTemplateUpdateRequest{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ModelsTemplateUpdateRequest) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateUpdateRequest) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ModelsTemplateUpdateRequest) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *ModelsTemplateUpdateRequest) SetId(v int32) { + o.Id = &v +} + +// GetKeySize returns the KeySize field value if set, zero value otherwise. +func (o *ModelsTemplateUpdateRequest) GetKeySize() string { + if o == nil || isNil(o.KeySize) { + var ret string + return ret + } + return *o.KeySize +} + +// GetKeySizeOk returns a tuple with the KeySize field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateUpdateRequest) GetKeySizeOk() (*string, bool) { + if o == nil || isNil(o.KeySize) { + return nil, false + } + return o.KeySize, true +} + +// HasKeySize returns a boolean if a field has been set. +func (o *ModelsTemplateUpdateRequest) HasKeySize() bool { + if o != nil && !isNil(o.KeySize) { + return true + } + + return false +} + +// SetKeySize gets a reference to the given string and assigns it to the KeySize field. +func (o *ModelsTemplateUpdateRequest) SetKeySize(v string) { + o.KeySize = &v +} + +// GetKeyType returns the KeyType field value if set, zero value otherwise. +func (o *ModelsTemplateUpdateRequest) GetKeyType() string { + if o == nil || isNil(o.KeyType) { + var ret string + return ret + } + return *o.KeyType +} + +// GetKeyTypeOk returns a tuple with the KeyType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateUpdateRequest) GetKeyTypeOk() (*string, bool) { + if o == nil || isNil(o.KeyType) { + return nil, false + } + return o.KeyType, true +} + +// HasKeyType returns a boolean if a field has been set. +func (o *ModelsTemplateUpdateRequest) HasKeyType() bool { + if o != nil && !isNil(o.KeyType) { + return true + } + + return false +} + +// SetKeyType gets a reference to the given string and assigns it to the KeyType field. +func (o *ModelsTemplateUpdateRequest) SetKeyType(v string) { + o.KeyType = &v +} + +// GetFriendlyName returns the FriendlyName field value if set, zero value otherwise. +func (o *ModelsTemplateUpdateRequest) GetFriendlyName() string { + if o == nil || isNil(o.FriendlyName) { + var ret string + return ret + } + return *o.FriendlyName +} + +// GetFriendlyNameOk returns a tuple with the FriendlyName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateUpdateRequest) GetFriendlyNameOk() (*string, bool) { + if o == nil || isNil(o.FriendlyName) { + return nil, false + } + return o.FriendlyName, true +} + +// HasFriendlyName returns a boolean if a field has been set. +func (o *ModelsTemplateUpdateRequest) HasFriendlyName() bool { + if o != nil && !isNil(o.FriendlyName) { + return true + } + + return false +} + +// SetFriendlyName gets a reference to the given string and assigns it to the FriendlyName field. +func (o *ModelsTemplateUpdateRequest) SetFriendlyName(v string) { + o.FriendlyName = &v +} + +// GetKeyRetention returns the KeyRetention field value if set, zero value otherwise. +func (o *ModelsTemplateUpdateRequest) GetKeyRetention() int32 { + if o == nil || isNil(o.KeyRetention) { + var ret int32 + return ret + } + return *o.KeyRetention +} + +// GetKeyRetentionOk returns a tuple with the KeyRetention field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateUpdateRequest) GetKeyRetentionOk() (*int32, bool) { + if o == nil || isNil(o.KeyRetention) { + return nil, false + } + return o.KeyRetention, true +} + +// HasKeyRetention returns a boolean if a field has been set. +func (o *ModelsTemplateUpdateRequest) HasKeyRetention() bool { + if o != nil && !isNil(o.KeyRetention) { + return true + } + + return false +} + +// SetKeyRetention gets a reference to the given int32 and assigns it to the KeyRetention field. +func (o *ModelsTemplateUpdateRequest) SetKeyRetention(v int32) { + o.KeyRetention = &v +} + +// GetKeyRetentionDays returns the KeyRetentionDays field value if set, zero value otherwise. +func (o *ModelsTemplateUpdateRequest) GetKeyRetentionDays() int32 { + if o == nil || isNil(o.KeyRetentionDays) { + var ret int32 + return ret + } + return *o.KeyRetentionDays +} + +// GetKeyRetentionDaysOk returns a tuple with the KeyRetentionDays field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateUpdateRequest) GetKeyRetentionDaysOk() (*int32, bool) { + if o == nil || isNil(o.KeyRetentionDays) { + return nil, false + } + return o.KeyRetentionDays, true +} + +// HasKeyRetentionDays returns a boolean if a field has been set. +func (o *ModelsTemplateUpdateRequest) HasKeyRetentionDays() bool { + if o != nil && !isNil(o.KeyRetentionDays) { + return true + } + + return false +} + +// SetKeyRetentionDays gets a reference to the given int32 and assigns it to the KeyRetentionDays field. +func (o *ModelsTemplateUpdateRequest) SetKeyRetentionDays(v int32) { + o.KeyRetentionDays = &v +} + +// GetKeyArchival returns the KeyArchival field value if set, zero value otherwise. +func (o *ModelsTemplateUpdateRequest) GetKeyArchival() bool { + if o == nil || isNil(o.KeyArchival) { + var ret bool + return ret + } + return *o.KeyArchival +} + +// GetKeyArchivalOk returns a tuple with the KeyArchival field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateUpdateRequest) GetKeyArchivalOk() (*bool, bool) { + if o == nil || isNil(o.KeyArchival) { + return nil, false + } + return o.KeyArchival, true +} + +// HasKeyArchival returns a boolean if a field has been set. +func (o *ModelsTemplateUpdateRequest) HasKeyArchival() bool { + if o != nil && !isNil(o.KeyArchival) { + return true + } + + return false +} + +// SetKeyArchival gets a reference to the given bool and assigns it to the KeyArchival field. +func (o *ModelsTemplateUpdateRequest) SetKeyArchival(v bool) { + o.KeyArchival = &v +} + +// GetEnrollmentFields returns the EnrollmentFields field value if set, zero value otherwise. +func (o *ModelsTemplateUpdateRequest) GetEnrollmentFields() []ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel { + if o == nil || isNil(o.EnrollmentFields) { + var ret []ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel + return ret + } + return o.EnrollmentFields +} + +// GetEnrollmentFieldsOk returns a tuple with the EnrollmentFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateUpdateRequest) GetEnrollmentFieldsOk() ([]ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel, bool) { + if o == nil || isNil(o.EnrollmentFields) { + return nil, false + } + return o.EnrollmentFields, true +} + +// HasEnrollmentFields returns a boolean if a field has been set. +func (o *ModelsTemplateUpdateRequest) HasEnrollmentFields() bool { + if o != nil && !isNil(o.EnrollmentFields) { + return true + } + + return false +} + +// SetEnrollmentFields gets a reference to the given []ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel and assigns it to the EnrollmentFields field. +func (o *ModelsTemplateUpdateRequest) SetEnrollmentFields(v []ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel) { + o.EnrollmentFields = v +} + +// GetMetadataFields returns the MetadataFields field value if set, zero value otherwise. +func (o *ModelsTemplateUpdateRequest) GetMetadataFields() []ModelsTemplateUpdateRequestTemplateMetadataFieldModel { + if o == nil || isNil(o.MetadataFields) { + var ret []ModelsTemplateUpdateRequestTemplateMetadataFieldModel + return ret + } + return o.MetadataFields +} + +// GetMetadataFieldsOk returns a tuple with the MetadataFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateUpdateRequest) GetMetadataFieldsOk() ([]ModelsTemplateUpdateRequestTemplateMetadataFieldModel, bool) { + if o == nil || isNil(o.MetadataFields) { + return nil, false + } + return o.MetadataFields, true +} + +// HasMetadataFields returns a boolean if a field has been set. +func (o *ModelsTemplateUpdateRequest) HasMetadataFields() bool { + if o != nil && !isNil(o.MetadataFields) { + return true + } + + return false +} + +// SetMetadataFields gets a reference to the given []ModelsTemplateUpdateRequestTemplateMetadataFieldModel and assigns it to the MetadataFields field. +func (o *ModelsTemplateUpdateRequest) SetMetadataFields(v []ModelsTemplateUpdateRequestTemplateMetadataFieldModel) { + o.MetadataFields = v +} + +// GetAllowedEnrollmentTypes returns the AllowedEnrollmentTypes field value if set, zero value otherwise. +func (o *ModelsTemplateUpdateRequest) GetAllowedEnrollmentTypes() int32 { + if o == nil || isNil(o.AllowedEnrollmentTypes) { + var ret int32 + return ret + } + return *o.AllowedEnrollmentTypes +} + +// GetAllowedEnrollmentTypesOk returns a tuple with the AllowedEnrollmentTypes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateUpdateRequest) GetAllowedEnrollmentTypesOk() (*int32, bool) { + if o == nil || isNil(o.AllowedEnrollmentTypes) { + return nil, false + } + return o.AllowedEnrollmentTypes, true +} + +// HasAllowedEnrollmentTypes returns a boolean if a field has been set. +func (o *ModelsTemplateUpdateRequest) HasAllowedEnrollmentTypes() bool { + if o != nil && !isNil(o.AllowedEnrollmentTypes) { + return true + } + + return false +} + +// SetAllowedEnrollmentTypes gets a reference to the given int32 and assigns it to the AllowedEnrollmentTypes field. +func (o *ModelsTemplateUpdateRequest) SetAllowedEnrollmentTypes(v int32) { + o.AllowedEnrollmentTypes = &v +} + +// GetTemplateRegexes returns the TemplateRegexes field value if set, zero value otherwise. +func (o *ModelsTemplateUpdateRequest) GetTemplateRegexes() []ModelsTemplateUpdateRequestTemplateRegexModel { + if o == nil || isNil(o.TemplateRegexes) { + var ret []ModelsTemplateUpdateRequestTemplateRegexModel + return ret + } + return o.TemplateRegexes +} + +// GetTemplateRegexesOk returns a tuple with the TemplateRegexes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateUpdateRequest) GetTemplateRegexesOk() ([]ModelsTemplateUpdateRequestTemplateRegexModel, bool) { + if o == nil || isNil(o.TemplateRegexes) { + return nil, false + } + return o.TemplateRegexes, true +} + +// HasTemplateRegexes returns a boolean if a field has been set. +func (o *ModelsTemplateUpdateRequest) HasTemplateRegexes() bool { + if o != nil && !isNil(o.TemplateRegexes) { + return true + } + + return false +} + +// SetTemplateRegexes gets a reference to the given []ModelsTemplateUpdateRequestTemplateRegexModel and assigns it to the TemplateRegexes field. +func (o *ModelsTemplateUpdateRequest) SetTemplateRegexes(v []ModelsTemplateUpdateRequestTemplateRegexModel) { + o.TemplateRegexes = v +} + +// GetTemplateDefaults returns the TemplateDefaults field value if set, zero value otherwise. +func (o *ModelsTemplateUpdateRequest) GetTemplateDefaults() []ModelsTemplateUpdateRequestTemplateDefaultModel { + if o == nil || isNil(o.TemplateDefaults) { + var ret []ModelsTemplateUpdateRequestTemplateDefaultModel + return ret + } + return o.TemplateDefaults +} + +// GetTemplateDefaultsOk returns a tuple with the TemplateDefaults field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateUpdateRequest) GetTemplateDefaultsOk() ([]ModelsTemplateUpdateRequestTemplateDefaultModel, bool) { + if o == nil || isNil(o.TemplateDefaults) { + return nil, false + } + return o.TemplateDefaults, true +} + +// HasTemplateDefaults returns a boolean if a field has been set. +func (o *ModelsTemplateUpdateRequest) HasTemplateDefaults() bool { + if o != nil && !isNil(o.TemplateDefaults) { + return true + } + + return false +} + +// SetTemplateDefaults gets a reference to the given []ModelsTemplateUpdateRequestTemplateDefaultModel and assigns it to the TemplateDefaults field. +func (o *ModelsTemplateUpdateRequest) SetTemplateDefaults(v []ModelsTemplateUpdateRequestTemplateDefaultModel) { + o.TemplateDefaults = v +} + +// GetTemplatePolicy returns the TemplatePolicy field value if set, zero value otherwise. +func (o *ModelsTemplateUpdateRequest) GetTemplatePolicy() ModelsTemplateUpdateRequestTemplatePolicyModel { + if o == nil || isNil(o.TemplatePolicy) { + var ret ModelsTemplateUpdateRequestTemplatePolicyModel + return ret + } + return *o.TemplatePolicy +} + +// GetTemplatePolicyOk returns a tuple with the TemplatePolicy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateUpdateRequest) GetTemplatePolicyOk() (*ModelsTemplateUpdateRequestTemplatePolicyModel, bool) { + if o == nil || isNil(o.TemplatePolicy) { + return nil, false + } + return o.TemplatePolicy, true +} + +// HasTemplatePolicy returns a boolean if a field has been set. +func (o *ModelsTemplateUpdateRequest) HasTemplatePolicy() bool { + if o != nil && !isNil(o.TemplatePolicy) { + return true + } + + return false +} + +// SetTemplatePolicy gets a reference to the given ModelsTemplateUpdateRequestTemplatePolicyModel and assigns it to the TemplatePolicy field. +func (o *ModelsTemplateUpdateRequest) SetTemplatePolicy(v ModelsTemplateUpdateRequestTemplatePolicyModel) { + o.TemplatePolicy = &v +} + +// GetUseAllowedRequesters returns the UseAllowedRequesters field value if set, zero value otherwise. +func (o *ModelsTemplateUpdateRequest) GetUseAllowedRequesters() bool { + if o == nil || isNil(o.UseAllowedRequesters) { + var ret bool + return ret + } + return *o.UseAllowedRequesters +} + +// GetUseAllowedRequestersOk returns a tuple with the UseAllowedRequesters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateUpdateRequest) GetUseAllowedRequestersOk() (*bool, bool) { + if o == nil || isNil(o.UseAllowedRequesters) { + return nil, false + } + return o.UseAllowedRequesters, true +} + +// HasUseAllowedRequesters returns a boolean if a field has been set. +func (o *ModelsTemplateUpdateRequest) HasUseAllowedRequesters() bool { + if o != nil && !isNil(o.UseAllowedRequesters) { + return true + } + + return false +} + +// SetUseAllowedRequesters gets a reference to the given bool and assigns it to the UseAllowedRequesters field. +func (o *ModelsTemplateUpdateRequest) SetUseAllowedRequesters(v bool) { + o.UseAllowedRequesters = &v +} + +// GetAllowedRequesters returns the AllowedRequesters field value if set, zero value otherwise. +func (o *ModelsTemplateUpdateRequest) GetAllowedRequesters() []string { + if o == nil || isNil(o.AllowedRequesters) { + var ret []string + return ret + } + return o.AllowedRequesters +} + +// GetAllowedRequestersOk returns a tuple with the AllowedRequesters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateUpdateRequest) GetAllowedRequestersOk() ([]string, bool) { + if o == nil || isNil(o.AllowedRequesters) { + return nil, false + } + return o.AllowedRequesters, true +} + +// HasAllowedRequesters returns a boolean if a field has been set. +func (o *ModelsTemplateUpdateRequest) HasAllowedRequesters() bool { + if o != nil && !isNil(o.AllowedRequesters) { + return true + } + + return false +} + +// SetAllowedRequesters gets a reference to the given []string and assigns it to the AllowedRequesters field. +func (o *ModelsTemplateUpdateRequest) SetAllowedRequesters(v []string) { + o.AllowedRequesters = v +} + +// GetRequiresApproval returns the RequiresApproval field value if set, zero value otherwise. +func (o *ModelsTemplateUpdateRequest) GetRequiresApproval() bool { + if o == nil || isNil(o.RequiresApproval) { + var ret bool + return ret + } + return *o.RequiresApproval +} + +// GetRequiresApprovalOk returns a tuple with the RequiresApproval field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateUpdateRequest) GetRequiresApprovalOk() (*bool, bool) { + if o == nil || isNil(o.RequiresApproval) { + return nil, false + } + return o.RequiresApproval, true +} + +// HasRequiresApproval returns a boolean if a field has been set. +func (o *ModelsTemplateUpdateRequest) HasRequiresApproval() bool { + if o != nil && !isNil(o.RequiresApproval) { + return true + } + + return false +} + +// SetRequiresApproval gets a reference to the given bool and assigns it to the RequiresApproval field. +func (o *ModelsTemplateUpdateRequest) SetRequiresApproval(v bool) { + o.RequiresApproval = &v +} + +// GetKeyUsage returns the KeyUsage field value if set, zero value otherwise. +func (o *ModelsTemplateUpdateRequest) GetKeyUsage() int32 { + if o == nil || isNil(o.KeyUsage) { + var ret int32 + return ret + } + return *o.KeyUsage +} + +// GetKeyUsageOk returns a tuple with the KeyUsage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateUpdateRequest) GetKeyUsageOk() (*int32, bool) { + if o == nil || isNil(o.KeyUsage) { + return nil, false + } + return o.KeyUsage, true +} + +// HasKeyUsage returns a boolean if a field has been set. +func (o *ModelsTemplateUpdateRequest) HasKeyUsage() bool { + if o != nil && !isNil(o.KeyUsage) { + return true + } + + return false +} + +// SetKeyUsage gets a reference to the given int32 and assigns it to the KeyUsage field. +func (o *ModelsTemplateUpdateRequest) SetKeyUsage(v int32) { + o.KeyUsage = &v +} + +func (o ModelsTemplateUpdateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsTemplateUpdateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.KeySize) { + toSerialize["KeySize"] = o.KeySize + } + if !isNil(o.KeyType) { + toSerialize["KeyType"] = o.KeyType + } + if !isNil(o.FriendlyName) { + toSerialize["FriendlyName"] = o.FriendlyName + } + if !isNil(o.KeyRetention) { + toSerialize["KeyRetention"] = o.KeyRetention + } + if !isNil(o.KeyRetentionDays) { + toSerialize["KeyRetentionDays"] = o.KeyRetentionDays + } + if !isNil(o.KeyArchival) { + toSerialize["KeyArchival"] = o.KeyArchival + } + if !isNil(o.EnrollmentFields) { + toSerialize["EnrollmentFields"] = o.EnrollmentFields + } + if !isNil(o.MetadataFields) { + toSerialize["MetadataFields"] = o.MetadataFields + } + if !isNil(o.AllowedEnrollmentTypes) { + toSerialize["AllowedEnrollmentTypes"] = o.AllowedEnrollmentTypes + } + if !isNil(o.TemplateRegexes) { + toSerialize["TemplateRegexes"] = o.TemplateRegexes + } + if !isNil(o.TemplateDefaults) { + toSerialize["TemplateDefaults"] = o.TemplateDefaults + } + if !isNil(o.TemplatePolicy) { + toSerialize["TemplatePolicy"] = o.TemplatePolicy + } + if !isNil(o.UseAllowedRequesters) { + toSerialize["UseAllowedRequesters"] = o.UseAllowedRequesters + } + if !isNil(o.AllowedRequesters) { + toSerialize["AllowedRequesters"] = o.AllowedRequesters + } + if !isNil(o.RequiresApproval) { + toSerialize["RequiresApproval"] = o.RequiresApproval + } + if !isNil(o.KeyUsage) { + toSerialize["KeyUsage"] = o.KeyUsage + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsTemplateUpdateRequest) UnmarshalJSON(bytes []byte) (err error) { + varModelsTemplateUpdateRequest := _ModelsTemplateUpdateRequest{} + + if err = json.Unmarshal(bytes, &varModelsTemplateUpdateRequest); err == nil { + *o = ModelsTemplateUpdateRequest(varModelsTemplateUpdateRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "KeySize") + delete(additionalProperties, "KeyType") + delete(additionalProperties, "FriendlyName") + delete(additionalProperties, "KeyRetention") + delete(additionalProperties, "KeyRetentionDays") + delete(additionalProperties, "KeyArchival") + delete(additionalProperties, "EnrollmentFields") + delete(additionalProperties, "MetadataFields") + delete(additionalProperties, "AllowedEnrollmentTypes") + delete(additionalProperties, "TemplateRegexes") + delete(additionalProperties, "TemplateDefaults") + delete(additionalProperties, "TemplatePolicy") + delete(additionalProperties, "UseAllowedRequesters") + delete(additionalProperties, "AllowedRequesters") + delete(additionalProperties, "RequiresApproval") + delete(additionalProperties, "KeyUsage") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsTemplateUpdateRequest struct { + value *ModelsTemplateUpdateRequest + isSet bool +} + +func (v NullableModelsTemplateUpdateRequest) Get() *ModelsTemplateUpdateRequest { + return v.value +} + +func (v *NullableModelsTemplateUpdateRequest) Set(val *ModelsTemplateUpdateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableModelsTemplateUpdateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsTemplateUpdateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsTemplateUpdateRequest(val *ModelsTemplateUpdateRequest) *NullableModelsTemplateUpdateRequest { + return &NullableModelsTemplateUpdateRequest{value: val, isSet: true} +} + +func (v NullableModelsTemplateUpdateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsTemplateUpdateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_template_update_request_template_default_model.go b/v1/api/keyfactor/model_models_template_update_request_template_default_model.go new file mode 100644 index 0000000..5a831dd --- /dev/null +++ b/v1/api/keyfactor/model_models_template_update_request_template_default_model.go @@ -0,0 +1,195 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsTemplateUpdateRequestTemplateDefaultModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsTemplateUpdateRequestTemplateDefaultModel{} + +// ModelsTemplateUpdateRequestTemplateDefaultModel struct for ModelsTemplateUpdateRequestTemplateDefaultModel +type ModelsTemplateUpdateRequestTemplateDefaultModel struct { + SubjectPart *string `json:"SubjectPart,omitempty"` + Value *string `json:"Value,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsTemplateUpdateRequestTemplateDefaultModel ModelsTemplateUpdateRequestTemplateDefaultModel + +// NewModelsTemplateUpdateRequestTemplateDefaultModel instantiates a new ModelsTemplateUpdateRequestTemplateDefaultModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsTemplateUpdateRequestTemplateDefaultModel() *ModelsTemplateUpdateRequestTemplateDefaultModel { + this := ModelsTemplateUpdateRequestTemplateDefaultModel{} + return &this +} + +// NewModelsTemplateUpdateRequestTemplateDefaultModelWithDefaults instantiates a new ModelsTemplateUpdateRequestTemplateDefaultModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsTemplateUpdateRequestTemplateDefaultModelWithDefaults() *ModelsTemplateUpdateRequestTemplateDefaultModel { + this := ModelsTemplateUpdateRequestTemplateDefaultModel{} + return &this +} + +// GetSubjectPart returns the SubjectPart field value if set, zero value otherwise. +func (o *ModelsTemplateUpdateRequestTemplateDefaultModel) GetSubjectPart() string { + if o == nil || isNil(o.SubjectPart) { + var ret string + return ret + } + return *o.SubjectPart +} + +// GetSubjectPartOk returns a tuple with the SubjectPart field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateUpdateRequestTemplateDefaultModel) GetSubjectPartOk() (*string, bool) { + if o == nil || isNil(o.SubjectPart) { + return nil, false + } + return o.SubjectPart, true +} + +// HasSubjectPart returns a boolean if a field has been set. +func (o *ModelsTemplateUpdateRequestTemplateDefaultModel) HasSubjectPart() bool { + if o != nil && !isNil(o.SubjectPart) { + return true + } + + return false +} + +// SetSubjectPart gets a reference to the given string and assigns it to the SubjectPart field. +func (o *ModelsTemplateUpdateRequestTemplateDefaultModel) SetSubjectPart(v string) { + o.SubjectPart = &v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *ModelsTemplateUpdateRequestTemplateDefaultModel) GetValue() string { + if o == nil || isNil(o.Value) { + var ret string + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateUpdateRequestTemplateDefaultModel) GetValueOk() (*string, bool) { + if o == nil || isNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *ModelsTemplateUpdateRequestTemplateDefaultModel) HasValue() bool { + if o != nil && !isNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given string and assigns it to the Value field. +func (o *ModelsTemplateUpdateRequestTemplateDefaultModel) SetValue(v string) { + o.Value = &v +} + +func (o ModelsTemplateUpdateRequestTemplateDefaultModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsTemplateUpdateRequestTemplateDefaultModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.SubjectPart) { + toSerialize["SubjectPart"] = o.SubjectPart + } + if !isNil(o.Value) { + toSerialize["Value"] = o.Value + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsTemplateUpdateRequestTemplateDefaultModel) UnmarshalJSON(bytes []byte) (err error) { + varModelsTemplateUpdateRequestTemplateDefaultModel := _ModelsTemplateUpdateRequestTemplateDefaultModel{} + + if err = json.Unmarshal(bytes, &varModelsTemplateUpdateRequestTemplateDefaultModel); err == nil { + *o = ModelsTemplateUpdateRequestTemplateDefaultModel(varModelsTemplateUpdateRequestTemplateDefaultModel) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "SubjectPart") + delete(additionalProperties, "Value") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsTemplateUpdateRequestTemplateDefaultModel struct { + value *ModelsTemplateUpdateRequestTemplateDefaultModel + isSet bool +} + +func (v NullableModelsTemplateUpdateRequestTemplateDefaultModel) Get() *ModelsTemplateUpdateRequestTemplateDefaultModel { + return v.value +} + +func (v *NullableModelsTemplateUpdateRequestTemplateDefaultModel) Set(val *ModelsTemplateUpdateRequestTemplateDefaultModel) { + v.value = val + v.isSet = true +} + +func (v NullableModelsTemplateUpdateRequestTemplateDefaultModel) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsTemplateUpdateRequestTemplateDefaultModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsTemplateUpdateRequestTemplateDefaultModel(val *ModelsTemplateUpdateRequestTemplateDefaultModel) *NullableModelsTemplateUpdateRequestTemplateDefaultModel { + return &NullableModelsTemplateUpdateRequestTemplateDefaultModel{value: val, isSet: true} +} + +func (v NullableModelsTemplateUpdateRequestTemplateDefaultModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsTemplateUpdateRequestTemplateDefaultModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_template_update_request_template_enrollment_field_model.go b/v1/api/keyfactor/model_models_template_update_request_template_enrollment_field_model.go new file mode 100644 index 0000000..37faf3e --- /dev/null +++ b/v1/api/keyfactor/model_models_template_update_request_template_enrollment_field_model.go @@ -0,0 +1,269 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel{} + +// ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel struct for ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel +type ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel struct { + Id *int32 `json:"Id,omitempty"` + Name *string `json:"Name,omitempty"` + Options []string `json:"Options,omitempty"` + DataType *int32 `json:"DataType,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel + +// NewModelsTemplateUpdateRequestTemplateEnrollmentFieldModel instantiates a new ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsTemplateUpdateRequestTemplateEnrollmentFieldModel() *ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel { + this := ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel{} + return &this +} + +// NewModelsTemplateUpdateRequestTemplateEnrollmentFieldModelWithDefaults instantiates a new ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsTemplateUpdateRequestTemplateEnrollmentFieldModelWithDefaults() *ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel { + this := ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel) SetId(v int32) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel) GetName() string { + if o == nil || isNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel) GetNameOk() (*string, bool) { + if o == nil || isNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel) HasName() bool { + if o != nil && !isNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel) SetName(v string) { + o.Name = &v +} + +// GetOptions returns the Options field value if set, zero value otherwise. +func (o *ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel) GetOptions() []string { + if o == nil || isNil(o.Options) { + var ret []string + return ret + } + return o.Options +} + +// GetOptionsOk returns a tuple with the Options field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel) GetOptionsOk() ([]string, bool) { + if o == nil || isNil(o.Options) { + return nil, false + } + return o.Options, true +} + +// HasOptions returns a boolean if a field has been set. +func (o *ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel) HasOptions() bool { + if o != nil && !isNil(o.Options) { + return true + } + + return false +} + +// SetOptions gets a reference to the given []string and assigns it to the Options field. +func (o *ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel) SetOptions(v []string) { + o.Options = v +} + +// GetDataType returns the DataType field value if set, zero value otherwise. +func (o *ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel) GetDataType() int32 { + if o == nil || isNil(o.DataType) { + var ret int32 + return ret + } + return *o.DataType +} + +// GetDataTypeOk returns a tuple with the DataType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel) GetDataTypeOk() (*int32, bool) { + if o == nil || isNil(o.DataType) { + return nil, false + } + return o.DataType, true +} + +// HasDataType returns a boolean if a field has been set. +func (o *ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel) HasDataType() bool { + if o != nil && !isNil(o.DataType) { + return true + } + + return false +} + +// SetDataType gets a reference to the given int32 and assigns it to the DataType field. +func (o *ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel) SetDataType(v int32) { + o.DataType = &v +} + +func (o ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.Name) { + toSerialize["Name"] = o.Name + } + if !isNil(o.Options) { + toSerialize["Options"] = o.Options + } + if !isNil(o.DataType) { + toSerialize["DataType"] = o.DataType + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel) UnmarshalJSON(bytes []byte) (err error) { + varModelsTemplateUpdateRequestTemplateEnrollmentFieldModel := _ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel{} + + if err = json.Unmarshal(bytes, &varModelsTemplateUpdateRequestTemplateEnrollmentFieldModel); err == nil { + *o = ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel(varModelsTemplateUpdateRequestTemplateEnrollmentFieldModel) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "Name") + delete(additionalProperties, "Options") + delete(additionalProperties, "DataType") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsTemplateUpdateRequestTemplateEnrollmentFieldModel struct { + value *ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel + isSet bool +} + +func (v NullableModelsTemplateUpdateRequestTemplateEnrollmentFieldModel) Get() *ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel { + return v.value +} + +func (v *NullableModelsTemplateUpdateRequestTemplateEnrollmentFieldModel) Set(val *ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel) { + v.value = val + v.isSet = true +} + +func (v NullableModelsTemplateUpdateRequestTemplateEnrollmentFieldModel) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsTemplateUpdateRequestTemplateEnrollmentFieldModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsTemplateUpdateRequestTemplateEnrollmentFieldModel(val *ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel) *NullableModelsTemplateUpdateRequestTemplateEnrollmentFieldModel { + return &NullableModelsTemplateUpdateRequestTemplateEnrollmentFieldModel{value: val, isSet: true} +} + +func (v NullableModelsTemplateUpdateRequestTemplateEnrollmentFieldModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsTemplateUpdateRequestTemplateEnrollmentFieldModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_template_update_request_template_metadata_field_model.go b/v1/api/keyfactor/model_models_template_update_request_template_metadata_field_model.go new file mode 100644 index 0000000..f16b3aa --- /dev/null +++ b/v1/api/keyfactor/model_models_template_update_request_template_metadata_field_model.go @@ -0,0 +1,343 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsTemplateUpdateRequestTemplateMetadataFieldModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsTemplateUpdateRequestTemplateMetadataFieldModel{} + +// ModelsTemplateUpdateRequestTemplateMetadataFieldModel struct for ModelsTemplateUpdateRequestTemplateMetadataFieldModel +type ModelsTemplateUpdateRequestTemplateMetadataFieldModel struct { + Id *int32 `json:"Id,omitempty"` + DefaultValue *string `json:"DefaultValue,omitempty"` + MetadataId *int32 `json:"MetadataId,omitempty"` + Validation *string `json:"Validation,omitempty"` + Enrollment *int32 `json:"Enrollment,omitempty"` + Message *string `json:"Message,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsTemplateUpdateRequestTemplateMetadataFieldModel ModelsTemplateUpdateRequestTemplateMetadataFieldModel + +// NewModelsTemplateUpdateRequestTemplateMetadataFieldModel instantiates a new ModelsTemplateUpdateRequestTemplateMetadataFieldModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsTemplateUpdateRequestTemplateMetadataFieldModel() *ModelsTemplateUpdateRequestTemplateMetadataFieldModel { + this := ModelsTemplateUpdateRequestTemplateMetadataFieldModel{} + return &this +} + +// NewModelsTemplateUpdateRequestTemplateMetadataFieldModelWithDefaults instantiates a new ModelsTemplateUpdateRequestTemplateMetadataFieldModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsTemplateUpdateRequestTemplateMetadataFieldModelWithDefaults() *ModelsTemplateUpdateRequestTemplateMetadataFieldModel { + this := ModelsTemplateUpdateRequestTemplateMetadataFieldModel{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ModelsTemplateUpdateRequestTemplateMetadataFieldModel) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateUpdateRequestTemplateMetadataFieldModel) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ModelsTemplateUpdateRequestTemplateMetadataFieldModel) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *ModelsTemplateUpdateRequestTemplateMetadataFieldModel) SetId(v int32) { + o.Id = &v +} + +// GetDefaultValue returns the DefaultValue field value if set, zero value otherwise. +func (o *ModelsTemplateUpdateRequestTemplateMetadataFieldModel) GetDefaultValue() string { + if o == nil || isNil(o.DefaultValue) { + var ret string + return ret + } + return *o.DefaultValue +} + +// GetDefaultValueOk returns a tuple with the DefaultValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateUpdateRequestTemplateMetadataFieldModel) GetDefaultValueOk() (*string, bool) { + if o == nil || isNil(o.DefaultValue) { + return nil, false + } + return o.DefaultValue, true +} + +// HasDefaultValue returns a boolean if a field has been set. +func (o *ModelsTemplateUpdateRequestTemplateMetadataFieldModel) HasDefaultValue() bool { + if o != nil && !isNil(o.DefaultValue) { + return true + } + + return false +} + +// SetDefaultValue gets a reference to the given string and assigns it to the DefaultValue field. +func (o *ModelsTemplateUpdateRequestTemplateMetadataFieldModel) SetDefaultValue(v string) { + o.DefaultValue = &v +} + +// GetMetadataId returns the MetadataId field value if set, zero value otherwise. +func (o *ModelsTemplateUpdateRequestTemplateMetadataFieldModel) GetMetadataId() int32 { + if o == nil || isNil(o.MetadataId) { + var ret int32 + return ret + } + return *o.MetadataId +} + +// GetMetadataIdOk returns a tuple with the MetadataId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateUpdateRequestTemplateMetadataFieldModel) GetMetadataIdOk() (*int32, bool) { + if o == nil || isNil(o.MetadataId) { + return nil, false + } + return o.MetadataId, true +} + +// HasMetadataId returns a boolean if a field has been set. +func (o *ModelsTemplateUpdateRequestTemplateMetadataFieldModel) HasMetadataId() bool { + if o != nil && !isNil(o.MetadataId) { + return true + } + + return false +} + +// SetMetadataId gets a reference to the given int32 and assigns it to the MetadataId field. +func (o *ModelsTemplateUpdateRequestTemplateMetadataFieldModel) SetMetadataId(v int32) { + o.MetadataId = &v +} + +// GetValidation returns the Validation field value if set, zero value otherwise. +func (o *ModelsTemplateUpdateRequestTemplateMetadataFieldModel) GetValidation() string { + if o == nil || isNil(o.Validation) { + var ret string + return ret + } + return *o.Validation +} + +// GetValidationOk returns a tuple with the Validation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateUpdateRequestTemplateMetadataFieldModel) GetValidationOk() (*string, bool) { + if o == nil || isNil(o.Validation) { + return nil, false + } + return o.Validation, true +} + +// HasValidation returns a boolean if a field has been set. +func (o *ModelsTemplateUpdateRequestTemplateMetadataFieldModel) HasValidation() bool { + if o != nil && !isNil(o.Validation) { + return true + } + + return false +} + +// SetValidation gets a reference to the given string and assigns it to the Validation field. +func (o *ModelsTemplateUpdateRequestTemplateMetadataFieldModel) SetValidation(v string) { + o.Validation = &v +} + +// GetEnrollment returns the Enrollment field value if set, zero value otherwise. +func (o *ModelsTemplateUpdateRequestTemplateMetadataFieldModel) GetEnrollment() int32 { + if o == nil || isNil(o.Enrollment) { + var ret int32 + return ret + } + return *o.Enrollment +} + +// GetEnrollmentOk returns a tuple with the Enrollment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateUpdateRequestTemplateMetadataFieldModel) GetEnrollmentOk() (*int32, bool) { + if o == nil || isNil(o.Enrollment) { + return nil, false + } + return o.Enrollment, true +} + +// HasEnrollment returns a boolean if a field has been set. +func (o *ModelsTemplateUpdateRequestTemplateMetadataFieldModel) HasEnrollment() bool { + if o != nil && !isNil(o.Enrollment) { + return true + } + + return false +} + +// SetEnrollment gets a reference to the given int32 and assigns it to the Enrollment field. +func (o *ModelsTemplateUpdateRequestTemplateMetadataFieldModel) SetEnrollment(v int32) { + o.Enrollment = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *ModelsTemplateUpdateRequestTemplateMetadataFieldModel) GetMessage() string { + if o == nil || isNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateUpdateRequestTemplateMetadataFieldModel) GetMessageOk() (*string, bool) { + if o == nil || isNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *ModelsTemplateUpdateRequestTemplateMetadataFieldModel) HasMessage() bool { + if o != nil && !isNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *ModelsTemplateUpdateRequestTemplateMetadataFieldModel) SetMessage(v string) { + o.Message = &v +} + +func (o ModelsTemplateUpdateRequestTemplateMetadataFieldModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsTemplateUpdateRequestTemplateMetadataFieldModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.DefaultValue) { + toSerialize["DefaultValue"] = o.DefaultValue + } + if !isNil(o.MetadataId) { + toSerialize["MetadataId"] = o.MetadataId + } + if !isNil(o.Validation) { + toSerialize["Validation"] = o.Validation + } + if !isNil(o.Enrollment) { + toSerialize["Enrollment"] = o.Enrollment + } + if !isNil(o.Message) { + toSerialize["Message"] = o.Message + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsTemplateUpdateRequestTemplateMetadataFieldModel) UnmarshalJSON(bytes []byte) (err error) { + varModelsTemplateUpdateRequestTemplateMetadataFieldModel := _ModelsTemplateUpdateRequestTemplateMetadataFieldModel{} + + if err = json.Unmarshal(bytes, &varModelsTemplateUpdateRequestTemplateMetadataFieldModel); err == nil { + *o = ModelsTemplateUpdateRequestTemplateMetadataFieldModel(varModelsTemplateUpdateRequestTemplateMetadataFieldModel) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "DefaultValue") + delete(additionalProperties, "MetadataId") + delete(additionalProperties, "Validation") + delete(additionalProperties, "Enrollment") + delete(additionalProperties, "Message") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsTemplateUpdateRequestTemplateMetadataFieldModel struct { + value *ModelsTemplateUpdateRequestTemplateMetadataFieldModel + isSet bool +} + +func (v NullableModelsTemplateUpdateRequestTemplateMetadataFieldModel) Get() *ModelsTemplateUpdateRequestTemplateMetadataFieldModel { + return v.value +} + +func (v *NullableModelsTemplateUpdateRequestTemplateMetadataFieldModel) Set(val *ModelsTemplateUpdateRequestTemplateMetadataFieldModel) { + v.value = val + v.isSet = true +} + +func (v NullableModelsTemplateUpdateRequestTemplateMetadataFieldModel) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsTemplateUpdateRequestTemplateMetadataFieldModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsTemplateUpdateRequestTemplateMetadataFieldModel(val *ModelsTemplateUpdateRequestTemplateMetadataFieldModel) *NullableModelsTemplateUpdateRequestTemplateMetadataFieldModel { + return &NullableModelsTemplateUpdateRequestTemplateMetadataFieldModel{value: val, isSet: true} +} + +func (v NullableModelsTemplateUpdateRequestTemplateMetadataFieldModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsTemplateUpdateRequestTemplateMetadataFieldModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_template_update_request_template_policy_model.go b/v1/api/keyfactor/model_models_template_update_request_template_policy_model.go new file mode 100644 index 0000000..7353ff3 --- /dev/null +++ b/v1/api/keyfactor/model_models_template_update_request_template_policy_model.go @@ -0,0 +1,343 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsTemplateUpdateRequestTemplatePolicyModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsTemplateUpdateRequestTemplatePolicyModel{} + +// ModelsTemplateUpdateRequestTemplatePolicyModel struct for ModelsTemplateUpdateRequestTemplatePolicyModel +type ModelsTemplateUpdateRequestTemplatePolicyModel struct { + TemplateId *int32 `json:"TemplateId,omitempty"` + RSAValidKeySizes []int32 `json:"RSAValidKeySizes,omitempty"` + ECCValidCurves []string `json:"ECCValidCurves,omitempty"` + AllowKeyReuse *bool `json:"AllowKeyReuse,omitempty"` + AllowWildcards *bool `json:"AllowWildcards,omitempty"` + RFCEnforcement *bool `json:"RFCEnforcement,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsTemplateUpdateRequestTemplatePolicyModel ModelsTemplateUpdateRequestTemplatePolicyModel + +// NewModelsTemplateUpdateRequestTemplatePolicyModel instantiates a new ModelsTemplateUpdateRequestTemplatePolicyModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsTemplateUpdateRequestTemplatePolicyModel() *ModelsTemplateUpdateRequestTemplatePolicyModel { + this := ModelsTemplateUpdateRequestTemplatePolicyModel{} + return &this +} + +// NewModelsTemplateUpdateRequestTemplatePolicyModelWithDefaults instantiates a new ModelsTemplateUpdateRequestTemplatePolicyModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsTemplateUpdateRequestTemplatePolicyModelWithDefaults() *ModelsTemplateUpdateRequestTemplatePolicyModel { + this := ModelsTemplateUpdateRequestTemplatePolicyModel{} + return &this +} + +// GetTemplateId returns the TemplateId field value if set, zero value otherwise. +func (o *ModelsTemplateUpdateRequestTemplatePolicyModel) GetTemplateId() int32 { + if o == nil || isNil(o.TemplateId) { + var ret int32 + return ret + } + return *o.TemplateId +} + +// GetTemplateIdOk returns a tuple with the TemplateId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateUpdateRequestTemplatePolicyModel) GetTemplateIdOk() (*int32, bool) { + if o == nil || isNil(o.TemplateId) { + return nil, false + } + return o.TemplateId, true +} + +// HasTemplateId returns a boolean if a field has been set. +func (o *ModelsTemplateUpdateRequestTemplatePolicyModel) HasTemplateId() bool { + if o != nil && !isNil(o.TemplateId) { + return true + } + + return false +} + +// SetTemplateId gets a reference to the given int32 and assigns it to the TemplateId field. +func (o *ModelsTemplateUpdateRequestTemplatePolicyModel) SetTemplateId(v int32) { + o.TemplateId = &v +} + +// GetRSAValidKeySizes returns the RSAValidKeySizes field value if set, zero value otherwise. +func (o *ModelsTemplateUpdateRequestTemplatePolicyModel) GetRSAValidKeySizes() []int32 { + if o == nil || isNil(o.RSAValidKeySizes) { + var ret []int32 + return ret + } + return o.RSAValidKeySizes +} + +// GetRSAValidKeySizesOk returns a tuple with the RSAValidKeySizes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateUpdateRequestTemplatePolicyModel) GetRSAValidKeySizesOk() ([]int32, bool) { + if o == nil || isNil(o.RSAValidKeySizes) { + return nil, false + } + return o.RSAValidKeySizes, true +} + +// HasRSAValidKeySizes returns a boolean if a field has been set. +func (o *ModelsTemplateUpdateRequestTemplatePolicyModel) HasRSAValidKeySizes() bool { + if o != nil && !isNil(o.RSAValidKeySizes) { + return true + } + + return false +} + +// SetRSAValidKeySizes gets a reference to the given []int32 and assigns it to the RSAValidKeySizes field. +func (o *ModelsTemplateUpdateRequestTemplatePolicyModel) SetRSAValidKeySizes(v []int32) { + o.RSAValidKeySizes = v +} + +// GetECCValidCurves returns the ECCValidCurves field value if set, zero value otherwise. +func (o *ModelsTemplateUpdateRequestTemplatePolicyModel) GetECCValidCurves() []string { + if o == nil || isNil(o.ECCValidCurves) { + var ret []string + return ret + } + return o.ECCValidCurves +} + +// GetECCValidCurvesOk returns a tuple with the ECCValidCurves field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateUpdateRequestTemplatePolicyModel) GetECCValidCurvesOk() ([]string, bool) { + if o == nil || isNil(o.ECCValidCurves) { + return nil, false + } + return o.ECCValidCurves, true +} + +// HasECCValidCurves returns a boolean if a field has been set. +func (o *ModelsTemplateUpdateRequestTemplatePolicyModel) HasECCValidCurves() bool { + if o != nil && !isNil(o.ECCValidCurves) { + return true + } + + return false +} + +// SetECCValidCurves gets a reference to the given []string and assigns it to the ECCValidCurves field. +func (o *ModelsTemplateUpdateRequestTemplatePolicyModel) SetECCValidCurves(v []string) { + o.ECCValidCurves = v +} + +// GetAllowKeyReuse returns the AllowKeyReuse field value if set, zero value otherwise. +func (o *ModelsTemplateUpdateRequestTemplatePolicyModel) GetAllowKeyReuse() bool { + if o == nil || isNil(o.AllowKeyReuse) { + var ret bool + return ret + } + return *o.AllowKeyReuse +} + +// GetAllowKeyReuseOk returns a tuple with the AllowKeyReuse field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateUpdateRequestTemplatePolicyModel) GetAllowKeyReuseOk() (*bool, bool) { + if o == nil || isNil(o.AllowKeyReuse) { + return nil, false + } + return o.AllowKeyReuse, true +} + +// HasAllowKeyReuse returns a boolean if a field has been set. +func (o *ModelsTemplateUpdateRequestTemplatePolicyModel) HasAllowKeyReuse() bool { + if o != nil && !isNil(o.AllowKeyReuse) { + return true + } + + return false +} + +// SetAllowKeyReuse gets a reference to the given bool and assigns it to the AllowKeyReuse field. +func (o *ModelsTemplateUpdateRequestTemplatePolicyModel) SetAllowKeyReuse(v bool) { + o.AllowKeyReuse = &v +} + +// GetAllowWildcards returns the AllowWildcards field value if set, zero value otherwise. +func (o *ModelsTemplateUpdateRequestTemplatePolicyModel) GetAllowWildcards() bool { + if o == nil || isNil(o.AllowWildcards) { + var ret bool + return ret + } + return *o.AllowWildcards +} + +// GetAllowWildcardsOk returns a tuple with the AllowWildcards field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateUpdateRequestTemplatePolicyModel) GetAllowWildcardsOk() (*bool, bool) { + if o == nil || isNil(o.AllowWildcards) { + return nil, false + } + return o.AllowWildcards, true +} + +// HasAllowWildcards returns a boolean if a field has been set. +func (o *ModelsTemplateUpdateRequestTemplatePolicyModel) HasAllowWildcards() bool { + if o != nil && !isNil(o.AllowWildcards) { + return true + } + + return false +} + +// SetAllowWildcards gets a reference to the given bool and assigns it to the AllowWildcards field. +func (o *ModelsTemplateUpdateRequestTemplatePolicyModel) SetAllowWildcards(v bool) { + o.AllowWildcards = &v +} + +// GetRFCEnforcement returns the RFCEnforcement field value if set, zero value otherwise. +func (o *ModelsTemplateUpdateRequestTemplatePolicyModel) GetRFCEnforcement() bool { + if o == nil || isNil(o.RFCEnforcement) { + var ret bool + return ret + } + return *o.RFCEnforcement +} + +// GetRFCEnforcementOk returns a tuple with the RFCEnforcement field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateUpdateRequestTemplatePolicyModel) GetRFCEnforcementOk() (*bool, bool) { + if o == nil || isNil(o.RFCEnforcement) { + return nil, false + } + return o.RFCEnforcement, true +} + +// HasRFCEnforcement returns a boolean if a field has been set. +func (o *ModelsTemplateUpdateRequestTemplatePolicyModel) HasRFCEnforcement() bool { + if o != nil && !isNil(o.RFCEnforcement) { + return true + } + + return false +} + +// SetRFCEnforcement gets a reference to the given bool and assigns it to the RFCEnforcement field. +func (o *ModelsTemplateUpdateRequestTemplatePolicyModel) SetRFCEnforcement(v bool) { + o.RFCEnforcement = &v +} + +func (o ModelsTemplateUpdateRequestTemplatePolicyModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsTemplateUpdateRequestTemplatePolicyModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.TemplateId) { + toSerialize["TemplateId"] = o.TemplateId + } + if !isNil(o.RSAValidKeySizes) { + toSerialize["RSAValidKeySizes"] = o.RSAValidKeySizes + } + if !isNil(o.ECCValidCurves) { + toSerialize["ECCValidCurves"] = o.ECCValidCurves + } + if !isNil(o.AllowKeyReuse) { + toSerialize["AllowKeyReuse"] = o.AllowKeyReuse + } + if !isNil(o.AllowWildcards) { + toSerialize["AllowWildcards"] = o.AllowWildcards + } + if !isNil(o.RFCEnforcement) { + toSerialize["RFCEnforcement"] = o.RFCEnforcement + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsTemplateUpdateRequestTemplatePolicyModel) UnmarshalJSON(bytes []byte) (err error) { + varModelsTemplateUpdateRequestTemplatePolicyModel := _ModelsTemplateUpdateRequestTemplatePolicyModel{} + + if err = json.Unmarshal(bytes, &varModelsTemplateUpdateRequestTemplatePolicyModel); err == nil { + *o = ModelsTemplateUpdateRequestTemplatePolicyModel(varModelsTemplateUpdateRequestTemplatePolicyModel) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "TemplateId") + delete(additionalProperties, "RSAValidKeySizes") + delete(additionalProperties, "ECCValidCurves") + delete(additionalProperties, "AllowKeyReuse") + delete(additionalProperties, "AllowWildcards") + delete(additionalProperties, "RFCEnforcement") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsTemplateUpdateRequestTemplatePolicyModel struct { + value *ModelsTemplateUpdateRequestTemplatePolicyModel + isSet bool +} + +func (v NullableModelsTemplateUpdateRequestTemplatePolicyModel) Get() *ModelsTemplateUpdateRequestTemplatePolicyModel { + return v.value +} + +func (v *NullableModelsTemplateUpdateRequestTemplatePolicyModel) Set(val *ModelsTemplateUpdateRequestTemplatePolicyModel) { + v.value = val + v.isSet = true +} + +func (v NullableModelsTemplateUpdateRequestTemplatePolicyModel) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsTemplateUpdateRequestTemplatePolicyModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsTemplateUpdateRequestTemplatePolicyModel(val *ModelsTemplateUpdateRequestTemplatePolicyModel) *NullableModelsTemplateUpdateRequestTemplatePolicyModel { + return &NullableModelsTemplateUpdateRequestTemplatePolicyModel{value: val, isSet: true} +} + +func (v NullableModelsTemplateUpdateRequestTemplatePolicyModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsTemplateUpdateRequestTemplatePolicyModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_template_update_request_template_regex_model.go b/v1/api/keyfactor/model_models_template_update_request_template_regex_model.go new file mode 100644 index 0000000..47a7d32 --- /dev/null +++ b/v1/api/keyfactor/model_models_template_update_request_template_regex_model.go @@ -0,0 +1,269 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsTemplateUpdateRequestTemplateRegexModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsTemplateUpdateRequestTemplateRegexModel{} + +// ModelsTemplateUpdateRequestTemplateRegexModel struct for ModelsTemplateUpdateRequestTemplateRegexModel +type ModelsTemplateUpdateRequestTemplateRegexModel struct { + TemplateId *int32 `json:"TemplateId,omitempty"` + SubjectPart *string `json:"SubjectPart,omitempty"` + Regex *string `json:"Regex,omitempty"` + Error *string `json:"Error,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsTemplateUpdateRequestTemplateRegexModel ModelsTemplateUpdateRequestTemplateRegexModel + +// NewModelsTemplateUpdateRequestTemplateRegexModel instantiates a new ModelsTemplateUpdateRequestTemplateRegexModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsTemplateUpdateRequestTemplateRegexModel() *ModelsTemplateUpdateRequestTemplateRegexModel { + this := ModelsTemplateUpdateRequestTemplateRegexModel{} + return &this +} + +// NewModelsTemplateUpdateRequestTemplateRegexModelWithDefaults instantiates a new ModelsTemplateUpdateRequestTemplateRegexModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsTemplateUpdateRequestTemplateRegexModelWithDefaults() *ModelsTemplateUpdateRequestTemplateRegexModel { + this := ModelsTemplateUpdateRequestTemplateRegexModel{} + return &this +} + +// GetTemplateId returns the TemplateId field value if set, zero value otherwise. +func (o *ModelsTemplateUpdateRequestTemplateRegexModel) GetTemplateId() int32 { + if o == nil || isNil(o.TemplateId) { + var ret int32 + return ret + } + return *o.TemplateId +} + +// GetTemplateIdOk returns a tuple with the TemplateId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateUpdateRequestTemplateRegexModel) GetTemplateIdOk() (*int32, bool) { + if o == nil || isNil(o.TemplateId) { + return nil, false + } + return o.TemplateId, true +} + +// HasTemplateId returns a boolean if a field has been set. +func (o *ModelsTemplateUpdateRequestTemplateRegexModel) HasTemplateId() bool { + if o != nil && !isNil(o.TemplateId) { + return true + } + + return false +} + +// SetTemplateId gets a reference to the given int32 and assigns it to the TemplateId field. +func (o *ModelsTemplateUpdateRequestTemplateRegexModel) SetTemplateId(v int32) { + o.TemplateId = &v +} + +// GetSubjectPart returns the SubjectPart field value if set, zero value otherwise. +func (o *ModelsTemplateUpdateRequestTemplateRegexModel) GetSubjectPart() string { + if o == nil || isNil(o.SubjectPart) { + var ret string + return ret + } + return *o.SubjectPart +} + +// GetSubjectPartOk returns a tuple with the SubjectPart field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateUpdateRequestTemplateRegexModel) GetSubjectPartOk() (*string, bool) { + if o == nil || isNil(o.SubjectPart) { + return nil, false + } + return o.SubjectPart, true +} + +// HasSubjectPart returns a boolean if a field has been set. +func (o *ModelsTemplateUpdateRequestTemplateRegexModel) HasSubjectPart() bool { + if o != nil && !isNil(o.SubjectPart) { + return true + } + + return false +} + +// SetSubjectPart gets a reference to the given string and assigns it to the SubjectPart field. +func (o *ModelsTemplateUpdateRequestTemplateRegexModel) SetSubjectPart(v string) { + o.SubjectPart = &v +} + +// GetRegex returns the Regex field value if set, zero value otherwise. +func (o *ModelsTemplateUpdateRequestTemplateRegexModel) GetRegex() string { + if o == nil || isNil(o.Regex) { + var ret string + return ret + } + return *o.Regex +} + +// GetRegexOk returns a tuple with the Regex field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateUpdateRequestTemplateRegexModel) GetRegexOk() (*string, bool) { + if o == nil || isNil(o.Regex) { + return nil, false + } + return o.Regex, true +} + +// HasRegex returns a boolean if a field has been set. +func (o *ModelsTemplateUpdateRequestTemplateRegexModel) HasRegex() bool { + if o != nil && !isNil(o.Regex) { + return true + } + + return false +} + +// SetRegex gets a reference to the given string and assigns it to the Regex field. +func (o *ModelsTemplateUpdateRequestTemplateRegexModel) SetRegex(v string) { + o.Regex = &v +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *ModelsTemplateUpdateRequestTemplateRegexModel) GetError() string { + if o == nil || isNil(o.Error) { + var ret string + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsTemplateUpdateRequestTemplateRegexModel) GetErrorOk() (*string, bool) { + if o == nil || isNil(o.Error) { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *ModelsTemplateUpdateRequestTemplateRegexModel) HasError() bool { + if o != nil && !isNil(o.Error) { + return true + } + + return false +} + +// SetError gets a reference to the given string and assigns it to the Error field. +func (o *ModelsTemplateUpdateRequestTemplateRegexModel) SetError(v string) { + o.Error = &v +} + +func (o ModelsTemplateUpdateRequestTemplateRegexModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsTemplateUpdateRequestTemplateRegexModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.TemplateId) { + toSerialize["TemplateId"] = o.TemplateId + } + if !isNil(o.SubjectPart) { + toSerialize["SubjectPart"] = o.SubjectPart + } + if !isNil(o.Regex) { + toSerialize["Regex"] = o.Regex + } + if !isNil(o.Error) { + toSerialize["Error"] = o.Error + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsTemplateUpdateRequestTemplateRegexModel) UnmarshalJSON(bytes []byte) (err error) { + varModelsTemplateUpdateRequestTemplateRegexModel := _ModelsTemplateUpdateRequestTemplateRegexModel{} + + if err = json.Unmarshal(bytes, &varModelsTemplateUpdateRequestTemplateRegexModel); err == nil { + *o = ModelsTemplateUpdateRequestTemplateRegexModel(varModelsTemplateUpdateRequestTemplateRegexModel) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "TemplateId") + delete(additionalProperties, "SubjectPart") + delete(additionalProperties, "Regex") + delete(additionalProperties, "Error") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsTemplateUpdateRequestTemplateRegexModel struct { + value *ModelsTemplateUpdateRequestTemplateRegexModel + isSet bool +} + +func (v NullableModelsTemplateUpdateRequestTemplateRegexModel) Get() *ModelsTemplateUpdateRequestTemplateRegexModel { + return v.value +} + +func (v *NullableModelsTemplateUpdateRequestTemplateRegexModel) Set(val *ModelsTemplateUpdateRequestTemplateRegexModel) { + v.value = val + v.isSet = true +} + +func (v NullableModelsTemplateUpdateRequestTemplateRegexModel) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsTemplateUpdateRequestTemplateRegexModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsTemplateUpdateRequestTemplateRegexModel(val *ModelsTemplateUpdateRequestTemplateRegexModel) *NullableModelsTemplateUpdateRequestTemplateRegexModel { + return &NullableModelsTemplateUpdateRequestTemplateRegexModel{value: val, isSet: true} +} + +func (v NullableModelsTemplateUpdateRequestTemplateRegexModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsTemplateUpdateRequestTemplateRegexModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_workflow_approve_deny_result.go b/v1/api/keyfactor/model_models_workflow_approve_deny_result.go new file mode 100644 index 0000000..3933a44 --- /dev/null +++ b/v1/api/keyfactor/model_models_workflow_approve_deny_result.go @@ -0,0 +1,232 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsWorkflowApproveDenyResult type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsWorkflowApproveDenyResult{} + +// ModelsWorkflowApproveDenyResult struct for ModelsWorkflowApproveDenyResult +type ModelsWorkflowApproveDenyResult struct { + Failures []ModelsWorkflowProcessedCertificateRequest `json:"Failures,omitempty"` + Denials []ModelsWorkflowProcessedCertificateRequest `json:"Denials,omitempty"` + Successes []ModelsWorkflowProcessedCertificateRequest `json:"Successes,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsWorkflowApproveDenyResult ModelsWorkflowApproveDenyResult + +// NewModelsWorkflowApproveDenyResult instantiates a new ModelsWorkflowApproveDenyResult object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsWorkflowApproveDenyResult() *ModelsWorkflowApproveDenyResult { + this := ModelsWorkflowApproveDenyResult{} + return &this +} + +// NewModelsWorkflowApproveDenyResultWithDefaults instantiates a new ModelsWorkflowApproveDenyResult object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsWorkflowApproveDenyResultWithDefaults() *ModelsWorkflowApproveDenyResult { + this := ModelsWorkflowApproveDenyResult{} + return &this +} + +// GetFailures returns the Failures field value if set, zero value otherwise. +func (o *ModelsWorkflowApproveDenyResult) GetFailures() []ModelsWorkflowProcessedCertificateRequest { + if o == nil || isNil(o.Failures) { + var ret []ModelsWorkflowProcessedCertificateRequest + return ret + } + return o.Failures +} + +// GetFailuresOk returns a tuple with the Failures field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsWorkflowApproveDenyResult) GetFailuresOk() ([]ModelsWorkflowProcessedCertificateRequest, bool) { + if o == nil || isNil(o.Failures) { + return nil, false + } + return o.Failures, true +} + +// HasFailures returns a boolean if a field has been set. +func (o *ModelsWorkflowApproveDenyResult) HasFailures() bool { + if o != nil && !isNil(o.Failures) { + return true + } + + return false +} + +// SetFailures gets a reference to the given []ModelsWorkflowProcessedCertificateRequest and assigns it to the Failures field. +func (o *ModelsWorkflowApproveDenyResult) SetFailures(v []ModelsWorkflowProcessedCertificateRequest) { + o.Failures = v +} + +// GetDenials returns the Denials field value if set, zero value otherwise. +func (o *ModelsWorkflowApproveDenyResult) GetDenials() []ModelsWorkflowProcessedCertificateRequest { + if o == nil || isNil(o.Denials) { + var ret []ModelsWorkflowProcessedCertificateRequest + return ret + } + return o.Denials +} + +// GetDenialsOk returns a tuple with the Denials field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsWorkflowApproveDenyResult) GetDenialsOk() ([]ModelsWorkflowProcessedCertificateRequest, bool) { + if o == nil || isNil(o.Denials) { + return nil, false + } + return o.Denials, true +} + +// HasDenials returns a boolean if a field has been set. +func (o *ModelsWorkflowApproveDenyResult) HasDenials() bool { + if o != nil && !isNil(o.Denials) { + return true + } + + return false +} + +// SetDenials gets a reference to the given []ModelsWorkflowProcessedCertificateRequest and assigns it to the Denials field. +func (o *ModelsWorkflowApproveDenyResult) SetDenials(v []ModelsWorkflowProcessedCertificateRequest) { + o.Denials = v +} + +// GetSuccesses returns the Successes field value if set, zero value otherwise. +func (o *ModelsWorkflowApproveDenyResult) GetSuccesses() []ModelsWorkflowProcessedCertificateRequest { + if o == nil || isNil(o.Successes) { + var ret []ModelsWorkflowProcessedCertificateRequest + return ret + } + return o.Successes +} + +// GetSuccessesOk returns a tuple with the Successes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsWorkflowApproveDenyResult) GetSuccessesOk() ([]ModelsWorkflowProcessedCertificateRequest, bool) { + if o == nil || isNil(o.Successes) { + return nil, false + } + return o.Successes, true +} + +// HasSuccesses returns a boolean if a field has been set. +func (o *ModelsWorkflowApproveDenyResult) HasSuccesses() bool { + if o != nil && !isNil(o.Successes) { + return true + } + + return false +} + +// SetSuccesses gets a reference to the given []ModelsWorkflowProcessedCertificateRequest and assigns it to the Successes field. +func (o *ModelsWorkflowApproveDenyResult) SetSuccesses(v []ModelsWorkflowProcessedCertificateRequest) { + o.Successes = v +} + +func (o ModelsWorkflowApproveDenyResult) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsWorkflowApproveDenyResult) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Failures) { + toSerialize["Failures"] = o.Failures + } + if !isNil(o.Denials) { + toSerialize["Denials"] = o.Denials + } + if !isNil(o.Successes) { + toSerialize["Successes"] = o.Successes + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsWorkflowApproveDenyResult) UnmarshalJSON(bytes []byte) (err error) { + varModelsWorkflowApproveDenyResult := _ModelsWorkflowApproveDenyResult{} + + if err = json.Unmarshal(bytes, &varModelsWorkflowApproveDenyResult); err == nil { + *o = ModelsWorkflowApproveDenyResult(varModelsWorkflowApproveDenyResult) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Failures") + delete(additionalProperties, "Denials") + delete(additionalProperties, "Successes") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsWorkflowApproveDenyResult struct { + value *ModelsWorkflowApproveDenyResult + isSet bool +} + +func (v NullableModelsWorkflowApproveDenyResult) Get() *ModelsWorkflowApproveDenyResult { + return v.value +} + +func (v *NullableModelsWorkflowApproveDenyResult) Set(val *ModelsWorkflowApproveDenyResult) { + v.value = val + v.isSet = true +} + +func (v NullableModelsWorkflowApproveDenyResult) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsWorkflowApproveDenyResult) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsWorkflowApproveDenyResult(val *ModelsWorkflowApproveDenyResult) *NullableModelsWorkflowApproveDenyResult { + return &NullableModelsWorkflowApproveDenyResult{value: val, isSet: true} +} + +func (v NullableModelsWorkflowApproveDenyResult) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsWorkflowApproveDenyResult) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_workflow_certificate_request_cert_store_model.go b/v1/api/keyfactor/model_models_workflow_certificate_request_cert_store_model.go new file mode 100644 index 0000000..a25cf02 --- /dev/null +++ b/v1/api/keyfactor/model_models_workflow_certificate_request_cert_store_model.go @@ -0,0 +1,232 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsWorkflowCertificateRequestCertStoreModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsWorkflowCertificateRequestCertStoreModel{} + +// ModelsWorkflowCertificateRequestCertStoreModel struct for ModelsWorkflowCertificateRequestCertStoreModel +type ModelsWorkflowCertificateRequestCertStoreModel struct { + EntryName *string `json:"EntryName,omitempty"` + ClientMachine *string `json:"ClientMachine,omitempty"` + StorePath *string `json:"StorePath,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsWorkflowCertificateRequestCertStoreModel ModelsWorkflowCertificateRequestCertStoreModel + +// NewModelsWorkflowCertificateRequestCertStoreModel instantiates a new ModelsWorkflowCertificateRequestCertStoreModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsWorkflowCertificateRequestCertStoreModel() *ModelsWorkflowCertificateRequestCertStoreModel { + this := ModelsWorkflowCertificateRequestCertStoreModel{} + return &this +} + +// NewModelsWorkflowCertificateRequestCertStoreModelWithDefaults instantiates a new ModelsWorkflowCertificateRequestCertStoreModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsWorkflowCertificateRequestCertStoreModelWithDefaults() *ModelsWorkflowCertificateRequestCertStoreModel { + this := ModelsWorkflowCertificateRequestCertStoreModel{} + return &this +} + +// GetEntryName returns the EntryName field value if set, zero value otherwise. +func (o *ModelsWorkflowCertificateRequestCertStoreModel) GetEntryName() string { + if o == nil || isNil(o.EntryName) { + var ret string + return ret + } + return *o.EntryName +} + +// GetEntryNameOk returns a tuple with the EntryName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsWorkflowCertificateRequestCertStoreModel) GetEntryNameOk() (*string, bool) { + if o == nil || isNil(o.EntryName) { + return nil, false + } + return o.EntryName, true +} + +// HasEntryName returns a boolean if a field has been set. +func (o *ModelsWorkflowCertificateRequestCertStoreModel) HasEntryName() bool { + if o != nil && !isNil(o.EntryName) { + return true + } + + return false +} + +// SetEntryName gets a reference to the given string and assigns it to the EntryName field. +func (o *ModelsWorkflowCertificateRequestCertStoreModel) SetEntryName(v string) { + o.EntryName = &v +} + +// GetClientMachine returns the ClientMachine field value if set, zero value otherwise. +func (o *ModelsWorkflowCertificateRequestCertStoreModel) GetClientMachine() string { + if o == nil || isNil(o.ClientMachine) { + var ret string + return ret + } + return *o.ClientMachine +} + +// GetClientMachineOk returns a tuple with the ClientMachine field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsWorkflowCertificateRequestCertStoreModel) GetClientMachineOk() (*string, bool) { + if o == nil || isNil(o.ClientMachine) { + return nil, false + } + return o.ClientMachine, true +} + +// HasClientMachine returns a boolean if a field has been set. +func (o *ModelsWorkflowCertificateRequestCertStoreModel) HasClientMachine() bool { + if o != nil && !isNil(o.ClientMachine) { + return true + } + + return false +} + +// SetClientMachine gets a reference to the given string and assigns it to the ClientMachine field. +func (o *ModelsWorkflowCertificateRequestCertStoreModel) SetClientMachine(v string) { + o.ClientMachine = &v +} + +// GetStorePath returns the StorePath field value if set, zero value otherwise. +func (o *ModelsWorkflowCertificateRequestCertStoreModel) GetStorePath() string { + if o == nil || isNil(o.StorePath) { + var ret string + return ret + } + return *o.StorePath +} + +// GetStorePathOk returns a tuple with the StorePath field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsWorkflowCertificateRequestCertStoreModel) GetStorePathOk() (*string, bool) { + if o == nil || isNil(o.StorePath) { + return nil, false + } + return o.StorePath, true +} + +// HasStorePath returns a boolean if a field has been set. +func (o *ModelsWorkflowCertificateRequestCertStoreModel) HasStorePath() bool { + if o != nil && !isNil(o.StorePath) { + return true + } + + return false +} + +// SetStorePath gets a reference to the given string and assigns it to the StorePath field. +func (o *ModelsWorkflowCertificateRequestCertStoreModel) SetStorePath(v string) { + o.StorePath = &v +} + +func (o ModelsWorkflowCertificateRequestCertStoreModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsWorkflowCertificateRequestCertStoreModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.EntryName) { + toSerialize["EntryName"] = o.EntryName + } + if !isNil(o.ClientMachine) { + toSerialize["ClientMachine"] = o.ClientMachine + } + if !isNil(o.StorePath) { + toSerialize["StorePath"] = o.StorePath + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsWorkflowCertificateRequestCertStoreModel) UnmarshalJSON(bytes []byte) (err error) { + varModelsWorkflowCertificateRequestCertStoreModel := _ModelsWorkflowCertificateRequestCertStoreModel{} + + if err = json.Unmarshal(bytes, &varModelsWorkflowCertificateRequestCertStoreModel); err == nil { + *o = ModelsWorkflowCertificateRequestCertStoreModel(varModelsWorkflowCertificateRequestCertStoreModel) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "EntryName") + delete(additionalProperties, "ClientMachine") + delete(additionalProperties, "StorePath") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsWorkflowCertificateRequestCertStoreModel struct { + value *ModelsWorkflowCertificateRequestCertStoreModel + isSet bool +} + +func (v NullableModelsWorkflowCertificateRequestCertStoreModel) Get() *ModelsWorkflowCertificateRequestCertStoreModel { + return v.value +} + +func (v *NullableModelsWorkflowCertificateRequestCertStoreModel) Set(val *ModelsWorkflowCertificateRequestCertStoreModel) { + v.value = val + v.isSet = true +} + +func (v NullableModelsWorkflowCertificateRequestCertStoreModel) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsWorkflowCertificateRequestCertStoreModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsWorkflowCertificateRequestCertStoreModel(val *ModelsWorkflowCertificateRequestCertStoreModel) *NullableModelsWorkflowCertificateRequestCertStoreModel { + return &NullableModelsWorkflowCertificateRequestCertStoreModel{value: val, isSet: true} +} + +func (v NullableModelsWorkflowCertificateRequestCertStoreModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsWorkflowCertificateRequestCertStoreModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_workflow_certificate_request_details_model.go b/v1/api/keyfactor/model_models_workflow_certificate_request_details_model.go new file mode 100644 index 0000000..9cb4fb3 --- /dev/null +++ b/v1/api/keyfactor/model_models_workflow_certificate_request_details_model.go @@ -0,0 +1,723 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" + "time" +) + +// checks if the ModelsWorkflowCertificateRequestDetailsModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsWorkflowCertificateRequestDetailsModel{} + +// ModelsWorkflowCertificateRequestDetailsModel struct for ModelsWorkflowCertificateRequestDetailsModel +type ModelsWorkflowCertificateRequestDetailsModel struct { + DenialComment *string `json:"DenialComment,omitempty"` + KeyLength *string `json:"KeyLength,omitempty"` + SANs []string `json:"SANs,omitempty"` + CertStores []ModelsWorkflowCertificateRequestCertStoreModel `json:"CertStores,omitempty"` + Curve NullableString `json:"Curve,omitempty"` + Id *int32 `json:"Id,omitempty"` + CARequestId *string `json:"CARequestId,omitempty"` + CommonName *string `json:"CommonName,omitempty"` + DistinguishedName *string `json:"DistinguishedName,omitempty"` + SubmissionDate *time.Time `json:"SubmissionDate,omitempty"` + CertificateAuthority *string `json:"CertificateAuthority,omitempty"` + Template *string `json:"Template,omitempty"` + Requester *string `json:"Requester,omitempty"` + State *int32 `json:"State,omitempty"` + StateString *string `json:"StateString,omitempty"` + Metadata *map[string]string `json:"Metadata,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsWorkflowCertificateRequestDetailsModel ModelsWorkflowCertificateRequestDetailsModel + +// NewModelsWorkflowCertificateRequestDetailsModel instantiates a new ModelsWorkflowCertificateRequestDetailsModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsWorkflowCertificateRequestDetailsModel() *ModelsWorkflowCertificateRequestDetailsModel { + this := ModelsWorkflowCertificateRequestDetailsModel{} + return &this +} + +// NewModelsWorkflowCertificateRequestDetailsModelWithDefaults instantiates a new ModelsWorkflowCertificateRequestDetailsModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsWorkflowCertificateRequestDetailsModelWithDefaults() *ModelsWorkflowCertificateRequestDetailsModel { + this := ModelsWorkflowCertificateRequestDetailsModel{} + return &this +} + +// GetDenialComment returns the DenialComment field value if set, zero value otherwise. +func (o *ModelsWorkflowCertificateRequestDetailsModel) GetDenialComment() string { + if o == nil || isNil(o.DenialComment) { + var ret string + return ret + } + return *o.DenialComment +} + +// GetDenialCommentOk returns a tuple with the DenialComment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsWorkflowCertificateRequestDetailsModel) GetDenialCommentOk() (*string, bool) { + if o == nil || isNil(o.DenialComment) { + return nil, false + } + return o.DenialComment, true +} + +// HasDenialComment returns a boolean if a field has been set. +func (o *ModelsWorkflowCertificateRequestDetailsModel) HasDenialComment() bool { + if o != nil && !isNil(o.DenialComment) { + return true + } + + return false +} + +// SetDenialComment gets a reference to the given string and assigns it to the DenialComment field. +func (o *ModelsWorkflowCertificateRequestDetailsModel) SetDenialComment(v string) { + o.DenialComment = &v +} + +// GetKeyLength returns the KeyLength field value if set, zero value otherwise. +func (o *ModelsWorkflowCertificateRequestDetailsModel) GetKeyLength() string { + if o == nil || isNil(o.KeyLength) { + var ret string + return ret + } + return *o.KeyLength +} + +// GetKeyLengthOk returns a tuple with the KeyLength field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsWorkflowCertificateRequestDetailsModel) GetKeyLengthOk() (*string, bool) { + if o == nil || isNil(o.KeyLength) { + return nil, false + } + return o.KeyLength, true +} + +// HasKeyLength returns a boolean if a field has been set. +func (o *ModelsWorkflowCertificateRequestDetailsModel) HasKeyLength() bool { + if o != nil && !isNil(o.KeyLength) { + return true + } + + return false +} + +// SetKeyLength gets a reference to the given string and assigns it to the KeyLength field. +func (o *ModelsWorkflowCertificateRequestDetailsModel) SetKeyLength(v string) { + o.KeyLength = &v +} + +// GetSANs returns the SANs field value if set, zero value otherwise. +func (o *ModelsWorkflowCertificateRequestDetailsModel) GetSANs() []string { + if o == nil || isNil(o.SANs) { + var ret []string + return ret + } + return o.SANs +} + +// GetSANsOk returns a tuple with the SANs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsWorkflowCertificateRequestDetailsModel) GetSANsOk() ([]string, bool) { + if o == nil || isNil(o.SANs) { + return nil, false + } + return o.SANs, true +} + +// HasSANs returns a boolean if a field has been set. +func (o *ModelsWorkflowCertificateRequestDetailsModel) HasSANs() bool { + if o != nil && !isNil(o.SANs) { + return true + } + + return false +} + +// SetSANs gets a reference to the given []string and assigns it to the SANs field. +func (o *ModelsWorkflowCertificateRequestDetailsModel) SetSANs(v []string) { + o.SANs = v +} + +// GetCertStores returns the CertStores field value if set, zero value otherwise. +func (o *ModelsWorkflowCertificateRequestDetailsModel) GetCertStores() []ModelsWorkflowCertificateRequestCertStoreModel { + if o == nil || isNil(o.CertStores) { + var ret []ModelsWorkflowCertificateRequestCertStoreModel + return ret + } + return o.CertStores +} + +// GetCertStoresOk returns a tuple with the CertStores field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsWorkflowCertificateRequestDetailsModel) GetCertStoresOk() ([]ModelsWorkflowCertificateRequestCertStoreModel, bool) { + if o == nil || isNil(o.CertStores) { + return nil, false + } + return o.CertStores, true +} + +// HasCertStores returns a boolean if a field has been set. +func (o *ModelsWorkflowCertificateRequestDetailsModel) HasCertStores() bool { + if o != nil && !isNil(o.CertStores) { + return true + } + + return false +} + +// SetCertStores gets a reference to the given []ModelsWorkflowCertificateRequestCertStoreModel and assigns it to the CertStores field. +func (o *ModelsWorkflowCertificateRequestDetailsModel) SetCertStores(v []ModelsWorkflowCertificateRequestCertStoreModel) { + o.CertStores = v +} + +// GetCurve returns the Curve field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModelsWorkflowCertificateRequestDetailsModel) GetCurve() string { + if o == nil || isNil(o.Curve.Get()) { + var ret string + return ret + } + return *o.Curve.Get() +} + +// GetCurveOk returns a tuple with the Curve field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModelsWorkflowCertificateRequestDetailsModel) GetCurveOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Curve.Get(), o.Curve.IsSet() +} + +// HasCurve returns a boolean if a field has been set. +func (o *ModelsWorkflowCertificateRequestDetailsModel) HasCurve() bool { + if o != nil && o.Curve.IsSet() { + return true + } + + return false +} + +// SetCurve gets a reference to the given NullableString and assigns it to the Curve field. +func (o *ModelsWorkflowCertificateRequestDetailsModel) SetCurve(v string) { + o.Curve.Set(&v) +} + +// SetCurveNil sets the value for Curve to be an explicit nil +func (o *ModelsWorkflowCertificateRequestDetailsModel) SetCurveNil() { + o.Curve.Set(nil) +} + +// UnsetCurve ensures that no value is present for Curve, not even an explicit nil +func (o *ModelsWorkflowCertificateRequestDetailsModel) UnsetCurve() { + o.Curve.Unset() +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ModelsWorkflowCertificateRequestDetailsModel) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsWorkflowCertificateRequestDetailsModel) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ModelsWorkflowCertificateRequestDetailsModel) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *ModelsWorkflowCertificateRequestDetailsModel) SetId(v int32) { + o.Id = &v +} + +// GetCARequestId returns the CARequestId field value if set, zero value otherwise. +func (o *ModelsWorkflowCertificateRequestDetailsModel) GetCARequestId() string { + if o == nil || isNil(o.CARequestId) { + var ret string + return ret + } + return *o.CARequestId +} + +// GetCARequestIdOk returns a tuple with the CARequestId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsWorkflowCertificateRequestDetailsModel) GetCARequestIdOk() (*string, bool) { + if o == nil || isNil(o.CARequestId) { + return nil, false + } + return o.CARequestId, true +} + +// HasCARequestId returns a boolean if a field has been set. +func (o *ModelsWorkflowCertificateRequestDetailsModel) HasCARequestId() bool { + if o != nil && !isNil(o.CARequestId) { + return true + } + + return false +} + +// SetCARequestId gets a reference to the given string and assigns it to the CARequestId field. +func (o *ModelsWorkflowCertificateRequestDetailsModel) SetCARequestId(v string) { + o.CARequestId = &v +} + +// GetCommonName returns the CommonName field value if set, zero value otherwise. +func (o *ModelsWorkflowCertificateRequestDetailsModel) GetCommonName() string { + if o == nil || isNil(o.CommonName) { + var ret string + return ret + } + return *o.CommonName +} + +// GetCommonNameOk returns a tuple with the CommonName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsWorkflowCertificateRequestDetailsModel) GetCommonNameOk() (*string, bool) { + if o == nil || isNil(o.CommonName) { + return nil, false + } + return o.CommonName, true +} + +// HasCommonName returns a boolean if a field has been set. +func (o *ModelsWorkflowCertificateRequestDetailsModel) HasCommonName() bool { + if o != nil && !isNil(o.CommonName) { + return true + } + + return false +} + +// SetCommonName gets a reference to the given string and assigns it to the CommonName field. +func (o *ModelsWorkflowCertificateRequestDetailsModel) SetCommonName(v string) { + o.CommonName = &v +} + +// GetDistinguishedName returns the DistinguishedName field value if set, zero value otherwise. +func (o *ModelsWorkflowCertificateRequestDetailsModel) GetDistinguishedName() string { + if o == nil || isNil(o.DistinguishedName) { + var ret string + return ret + } + return *o.DistinguishedName +} + +// GetDistinguishedNameOk returns a tuple with the DistinguishedName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsWorkflowCertificateRequestDetailsModel) GetDistinguishedNameOk() (*string, bool) { + if o == nil || isNil(o.DistinguishedName) { + return nil, false + } + return o.DistinguishedName, true +} + +// HasDistinguishedName returns a boolean if a field has been set. +func (o *ModelsWorkflowCertificateRequestDetailsModel) HasDistinguishedName() bool { + if o != nil && !isNil(o.DistinguishedName) { + return true + } + + return false +} + +// SetDistinguishedName gets a reference to the given string and assigns it to the DistinguishedName field. +func (o *ModelsWorkflowCertificateRequestDetailsModel) SetDistinguishedName(v string) { + o.DistinguishedName = &v +} + +// GetSubmissionDate returns the SubmissionDate field value if set, zero value otherwise. +func (o *ModelsWorkflowCertificateRequestDetailsModel) GetSubmissionDate() time.Time { + if o == nil || isNil(o.SubmissionDate) { + var ret time.Time + return ret + } + return *o.SubmissionDate +} + +// GetSubmissionDateOk returns a tuple with the SubmissionDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsWorkflowCertificateRequestDetailsModel) GetSubmissionDateOk() (*time.Time, bool) { + if o == nil || isNil(o.SubmissionDate) { + return nil, false + } + return o.SubmissionDate, true +} + +// HasSubmissionDate returns a boolean if a field has been set. +func (o *ModelsWorkflowCertificateRequestDetailsModel) HasSubmissionDate() bool { + if o != nil && !isNil(o.SubmissionDate) { + return true + } + + return false +} + +// SetSubmissionDate gets a reference to the given time.Time and assigns it to the SubmissionDate field. +func (o *ModelsWorkflowCertificateRequestDetailsModel) SetSubmissionDate(v time.Time) { + o.SubmissionDate = &v +} + +// GetCertificateAuthority returns the CertificateAuthority field value if set, zero value otherwise. +func (o *ModelsWorkflowCertificateRequestDetailsModel) GetCertificateAuthority() string { + if o == nil || isNil(o.CertificateAuthority) { + var ret string + return ret + } + return *o.CertificateAuthority +} + +// GetCertificateAuthorityOk returns a tuple with the CertificateAuthority field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsWorkflowCertificateRequestDetailsModel) GetCertificateAuthorityOk() (*string, bool) { + if o == nil || isNil(o.CertificateAuthority) { + return nil, false + } + return o.CertificateAuthority, true +} + +// HasCertificateAuthority returns a boolean if a field has been set. +func (o *ModelsWorkflowCertificateRequestDetailsModel) HasCertificateAuthority() bool { + if o != nil && !isNil(o.CertificateAuthority) { + return true + } + + return false +} + +// SetCertificateAuthority gets a reference to the given string and assigns it to the CertificateAuthority field. +func (o *ModelsWorkflowCertificateRequestDetailsModel) SetCertificateAuthority(v string) { + o.CertificateAuthority = &v +} + +// GetTemplate returns the Template field value if set, zero value otherwise. +func (o *ModelsWorkflowCertificateRequestDetailsModel) GetTemplate() string { + if o == nil || isNil(o.Template) { + var ret string + return ret + } + return *o.Template +} + +// GetTemplateOk returns a tuple with the Template field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsWorkflowCertificateRequestDetailsModel) GetTemplateOk() (*string, bool) { + if o == nil || isNil(o.Template) { + return nil, false + } + return o.Template, true +} + +// HasTemplate returns a boolean if a field has been set. +func (o *ModelsWorkflowCertificateRequestDetailsModel) HasTemplate() bool { + if o != nil && !isNil(o.Template) { + return true + } + + return false +} + +// SetTemplate gets a reference to the given string and assigns it to the Template field. +func (o *ModelsWorkflowCertificateRequestDetailsModel) SetTemplate(v string) { + o.Template = &v +} + +// GetRequester returns the Requester field value if set, zero value otherwise. +func (o *ModelsWorkflowCertificateRequestDetailsModel) GetRequester() string { + if o == nil || isNil(o.Requester) { + var ret string + return ret + } + return *o.Requester +} + +// GetRequesterOk returns a tuple with the Requester field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsWorkflowCertificateRequestDetailsModel) GetRequesterOk() (*string, bool) { + if o == nil || isNil(o.Requester) { + return nil, false + } + return o.Requester, true +} + +// HasRequester returns a boolean if a field has been set. +func (o *ModelsWorkflowCertificateRequestDetailsModel) HasRequester() bool { + if o != nil && !isNil(o.Requester) { + return true + } + + return false +} + +// SetRequester gets a reference to the given string and assigns it to the Requester field. +func (o *ModelsWorkflowCertificateRequestDetailsModel) SetRequester(v string) { + o.Requester = &v +} + +// GetState returns the State field value if set, zero value otherwise. +func (o *ModelsWorkflowCertificateRequestDetailsModel) GetState() int32 { + if o == nil || isNil(o.State) { + var ret int32 + return ret + } + return *o.State +} + +// GetStateOk returns a tuple with the State field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsWorkflowCertificateRequestDetailsModel) GetStateOk() (*int32, bool) { + if o == nil || isNil(o.State) { + return nil, false + } + return o.State, true +} + +// HasState returns a boolean if a field has been set. +func (o *ModelsWorkflowCertificateRequestDetailsModel) HasState() bool { + if o != nil && !isNil(o.State) { + return true + } + + return false +} + +// SetState gets a reference to the given int32 and assigns it to the State field. +func (o *ModelsWorkflowCertificateRequestDetailsModel) SetState(v int32) { + o.State = &v +} + +// GetStateString returns the StateString field value if set, zero value otherwise. +func (o *ModelsWorkflowCertificateRequestDetailsModel) GetStateString() string { + if o == nil || isNil(o.StateString) { + var ret string + return ret + } + return *o.StateString +} + +// GetStateStringOk returns a tuple with the StateString field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsWorkflowCertificateRequestDetailsModel) GetStateStringOk() (*string, bool) { + if o == nil || isNil(o.StateString) { + return nil, false + } + return o.StateString, true +} + +// HasStateString returns a boolean if a field has been set. +func (o *ModelsWorkflowCertificateRequestDetailsModel) HasStateString() bool { + if o != nil && !isNil(o.StateString) { + return true + } + + return false +} + +// SetStateString gets a reference to the given string and assigns it to the StateString field. +func (o *ModelsWorkflowCertificateRequestDetailsModel) SetStateString(v string) { + o.StateString = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ModelsWorkflowCertificateRequestDetailsModel) GetMetadata() map[string]string { + if o == nil || isNil(o.Metadata) { + var ret map[string]string + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsWorkflowCertificateRequestDetailsModel) GetMetadataOk() (*map[string]string, bool) { + if o == nil || isNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ModelsWorkflowCertificateRequestDetailsModel) HasMetadata() bool { + if o != nil && !isNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given map[string]string and assigns it to the Metadata field. +func (o *ModelsWorkflowCertificateRequestDetailsModel) SetMetadata(v map[string]string) { + o.Metadata = &v +} + +func (o ModelsWorkflowCertificateRequestDetailsModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsWorkflowCertificateRequestDetailsModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.DenialComment) { + toSerialize["DenialComment"] = o.DenialComment + } + if !isNil(o.KeyLength) { + toSerialize["KeyLength"] = o.KeyLength + } + if !isNil(o.SANs) { + toSerialize["SANs"] = o.SANs + } + if !isNil(o.CertStores) { + toSerialize["CertStores"] = o.CertStores + } + if o.Curve.IsSet() { + toSerialize["Curve"] = o.Curve.Get() + } + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.CARequestId) { + toSerialize["CARequestId"] = o.CARequestId + } + if !isNil(o.CommonName) { + toSerialize["CommonName"] = o.CommonName + } + if !isNil(o.DistinguishedName) { + toSerialize["DistinguishedName"] = o.DistinguishedName + } + if !isNil(o.SubmissionDate) { + toSerialize["SubmissionDate"] = o.SubmissionDate + } + if !isNil(o.CertificateAuthority) { + toSerialize["CertificateAuthority"] = o.CertificateAuthority + } + if !isNil(o.Template) { + toSerialize["Template"] = o.Template + } + if !isNil(o.Requester) { + toSerialize["Requester"] = o.Requester + } + if !isNil(o.State) { + toSerialize["State"] = o.State + } + // skip: StateString is readOnly + if !isNil(o.Metadata) { + toSerialize["Metadata"] = o.Metadata + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsWorkflowCertificateRequestDetailsModel) UnmarshalJSON(bytes []byte) (err error) { + varModelsWorkflowCertificateRequestDetailsModel := _ModelsWorkflowCertificateRequestDetailsModel{} + + if err = json.Unmarshal(bytes, &varModelsWorkflowCertificateRequestDetailsModel); err == nil { + *o = ModelsWorkflowCertificateRequestDetailsModel(varModelsWorkflowCertificateRequestDetailsModel) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "DenialComment") + delete(additionalProperties, "KeyLength") + delete(additionalProperties, "SANs") + delete(additionalProperties, "CertStores") + delete(additionalProperties, "Curve") + delete(additionalProperties, "Id") + delete(additionalProperties, "CARequestId") + delete(additionalProperties, "CommonName") + delete(additionalProperties, "DistinguishedName") + delete(additionalProperties, "SubmissionDate") + delete(additionalProperties, "CertificateAuthority") + delete(additionalProperties, "Template") + delete(additionalProperties, "Requester") + delete(additionalProperties, "State") + delete(additionalProperties, "StateString") + delete(additionalProperties, "Metadata") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsWorkflowCertificateRequestDetailsModel struct { + value *ModelsWorkflowCertificateRequestDetailsModel + isSet bool +} + +func (v NullableModelsWorkflowCertificateRequestDetailsModel) Get() *ModelsWorkflowCertificateRequestDetailsModel { + return v.value +} + +func (v *NullableModelsWorkflowCertificateRequestDetailsModel) Set(val *ModelsWorkflowCertificateRequestDetailsModel) { + v.value = val + v.isSet = true +} + +func (v NullableModelsWorkflowCertificateRequestDetailsModel) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsWorkflowCertificateRequestDetailsModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsWorkflowCertificateRequestDetailsModel(val *ModelsWorkflowCertificateRequestDetailsModel) *NullableModelsWorkflowCertificateRequestDetailsModel { + return &NullableModelsWorkflowCertificateRequestDetailsModel{value: val, isSet: true} +} + +func (v NullableModelsWorkflowCertificateRequestDetailsModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsWorkflowCertificateRequestDetailsModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_workflow_certificate_request_model.go b/v1/api/keyfactor/model_models_workflow_certificate_request_model.go new file mode 100644 index 0000000..eacc1db --- /dev/null +++ b/v1/api/keyfactor/model_models_workflow_certificate_request_model.go @@ -0,0 +1,527 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" + "time" +) + +// checks if the ModelsWorkflowCertificateRequestModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsWorkflowCertificateRequestModel{} + +// ModelsWorkflowCertificateRequestModel struct for ModelsWorkflowCertificateRequestModel +type ModelsWorkflowCertificateRequestModel struct { + Id *int32 `json:"Id,omitempty"` + CARequestId *string `json:"CARequestId,omitempty"` + CommonName *string `json:"CommonName,omitempty"` + DistinguishedName *string `json:"DistinguishedName,omitempty"` + SubmissionDate *time.Time `json:"SubmissionDate,omitempty"` + CertificateAuthority *string `json:"CertificateAuthority,omitempty"` + Template *string `json:"Template,omitempty"` + Requester *string `json:"Requester,omitempty"` + State *int32 `json:"State,omitempty"` + StateString *string `json:"StateString,omitempty"` + Metadata *map[string]string `json:"Metadata,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsWorkflowCertificateRequestModel ModelsWorkflowCertificateRequestModel + +// NewModelsWorkflowCertificateRequestModel instantiates a new ModelsWorkflowCertificateRequestModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsWorkflowCertificateRequestModel() *ModelsWorkflowCertificateRequestModel { + this := ModelsWorkflowCertificateRequestModel{} + return &this +} + +// NewModelsWorkflowCertificateRequestModelWithDefaults instantiates a new ModelsWorkflowCertificateRequestModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsWorkflowCertificateRequestModelWithDefaults() *ModelsWorkflowCertificateRequestModel { + this := ModelsWorkflowCertificateRequestModel{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ModelsWorkflowCertificateRequestModel) GetId() int32 { + if o == nil || isNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsWorkflowCertificateRequestModel) GetIdOk() (*int32, bool) { + if o == nil || isNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ModelsWorkflowCertificateRequestModel) HasId() bool { + if o != nil && !isNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *ModelsWorkflowCertificateRequestModel) SetId(v int32) { + o.Id = &v +} + +// GetCARequestId returns the CARequestId field value if set, zero value otherwise. +func (o *ModelsWorkflowCertificateRequestModel) GetCARequestId() string { + if o == nil || isNil(o.CARequestId) { + var ret string + return ret + } + return *o.CARequestId +} + +// GetCARequestIdOk returns a tuple with the CARequestId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsWorkflowCertificateRequestModel) GetCARequestIdOk() (*string, bool) { + if o == nil || isNil(o.CARequestId) { + return nil, false + } + return o.CARequestId, true +} + +// HasCARequestId returns a boolean if a field has been set. +func (o *ModelsWorkflowCertificateRequestModel) HasCARequestId() bool { + if o != nil && !isNil(o.CARequestId) { + return true + } + + return false +} + +// SetCARequestId gets a reference to the given string and assigns it to the CARequestId field. +func (o *ModelsWorkflowCertificateRequestModel) SetCARequestId(v string) { + o.CARequestId = &v +} + +// GetCommonName returns the CommonName field value if set, zero value otherwise. +func (o *ModelsWorkflowCertificateRequestModel) GetCommonName() string { + if o == nil || isNil(o.CommonName) { + var ret string + return ret + } + return *o.CommonName +} + +// GetCommonNameOk returns a tuple with the CommonName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsWorkflowCertificateRequestModel) GetCommonNameOk() (*string, bool) { + if o == nil || isNil(o.CommonName) { + return nil, false + } + return o.CommonName, true +} + +// HasCommonName returns a boolean if a field has been set. +func (o *ModelsWorkflowCertificateRequestModel) HasCommonName() bool { + if o != nil && !isNil(o.CommonName) { + return true + } + + return false +} + +// SetCommonName gets a reference to the given string and assigns it to the CommonName field. +func (o *ModelsWorkflowCertificateRequestModel) SetCommonName(v string) { + o.CommonName = &v +} + +// GetDistinguishedName returns the DistinguishedName field value if set, zero value otherwise. +func (o *ModelsWorkflowCertificateRequestModel) GetDistinguishedName() string { + if o == nil || isNil(o.DistinguishedName) { + var ret string + return ret + } + return *o.DistinguishedName +} + +// GetDistinguishedNameOk returns a tuple with the DistinguishedName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsWorkflowCertificateRequestModel) GetDistinguishedNameOk() (*string, bool) { + if o == nil || isNil(o.DistinguishedName) { + return nil, false + } + return o.DistinguishedName, true +} + +// HasDistinguishedName returns a boolean if a field has been set. +func (o *ModelsWorkflowCertificateRequestModel) HasDistinguishedName() bool { + if o != nil && !isNil(o.DistinguishedName) { + return true + } + + return false +} + +// SetDistinguishedName gets a reference to the given string and assigns it to the DistinguishedName field. +func (o *ModelsWorkflowCertificateRequestModel) SetDistinguishedName(v string) { + o.DistinguishedName = &v +} + +// GetSubmissionDate returns the SubmissionDate field value if set, zero value otherwise. +func (o *ModelsWorkflowCertificateRequestModel) GetSubmissionDate() time.Time { + if o == nil || isNil(o.SubmissionDate) { + var ret time.Time + return ret + } + return *o.SubmissionDate +} + +// GetSubmissionDateOk returns a tuple with the SubmissionDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsWorkflowCertificateRequestModel) GetSubmissionDateOk() (*time.Time, bool) { + if o == nil || isNil(o.SubmissionDate) { + return nil, false + } + return o.SubmissionDate, true +} + +// HasSubmissionDate returns a boolean if a field has been set. +func (o *ModelsWorkflowCertificateRequestModel) HasSubmissionDate() bool { + if o != nil && !isNil(o.SubmissionDate) { + return true + } + + return false +} + +// SetSubmissionDate gets a reference to the given time.Time and assigns it to the SubmissionDate field. +func (o *ModelsWorkflowCertificateRequestModel) SetSubmissionDate(v time.Time) { + o.SubmissionDate = &v +} + +// GetCertificateAuthority returns the CertificateAuthority field value if set, zero value otherwise. +func (o *ModelsWorkflowCertificateRequestModel) GetCertificateAuthority() string { + if o == nil || isNil(o.CertificateAuthority) { + var ret string + return ret + } + return *o.CertificateAuthority +} + +// GetCertificateAuthorityOk returns a tuple with the CertificateAuthority field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsWorkflowCertificateRequestModel) GetCertificateAuthorityOk() (*string, bool) { + if o == nil || isNil(o.CertificateAuthority) { + return nil, false + } + return o.CertificateAuthority, true +} + +// HasCertificateAuthority returns a boolean if a field has been set. +func (o *ModelsWorkflowCertificateRequestModel) HasCertificateAuthority() bool { + if o != nil && !isNil(o.CertificateAuthority) { + return true + } + + return false +} + +// SetCertificateAuthority gets a reference to the given string and assigns it to the CertificateAuthority field. +func (o *ModelsWorkflowCertificateRequestModel) SetCertificateAuthority(v string) { + o.CertificateAuthority = &v +} + +// GetTemplate returns the Template field value if set, zero value otherwise. +func (o *ModelsWorkflowCertificateRequestModel) GetTemplate() string { + if o == nil || isNil(o.Template) { + var ret string + return ret + } + return *o.Template +} + +// GetTemplateOk returns a tuple with the Template field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsWorkflowCertificateRequestModel) GetTemplateOk() (*string, bool) { + if o == nil || isNil(o.Template) { + return nil, false + } + return o.Template, true +} + +// HasTemplate returns a boolean if a field has been set. +func (o *ModelsWorkflowCertificateRequestModel) HasTemplate() bool { + if o != nil && !isNil(o.Template) { + return true + } + + return false +} + +// SetTemplate gets a reference to the given string and assigns it to the Template field. +func (o *ModelsWorkflowCertificateRequestModel) SetTemplate(v string) { + o.Template = &v +} + +// GetRequester returns the Requester field value if set, zero value otherwise. +func (o *ModelsWorkflowCertificateRequestModel) GetRequester() string { + if o == nil || isNil(o.Requester) { + var ret string + return ret + } + return *o.Requester +} + +// GetRequesterOk returns a tuple with the Requester field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsWorkflowCertificateRequestModel) GetRequesterOk() (*string, bool) { + if o == nil || isNil(o.Requester) { + return nil, false + } + return o.Requester, true +} + +// HasRequester returns a boolean if a field has been set. +func (o *ModelsWorkflowCertificateRequestModel) HasRequester() bool { + if o != nil && !isNil(o.Requester) { + return true + } + + return false +} + +// SetRequester gets a reference to the given string and assigns it to the Requester field. +func (o *ModelsWorkflowCertificateRequestModel) SetRequester(v string) { + o.Requester = &v +} + +// GetState returns the State field value if set, zero value otherwise. +func (o *ModelsWorkflowCertificateRequestModel) GetState() int32 { + if o == nil || isNil(o.State) { + var ret int32 + return ret + } + return *o.State +} + +// GetStateOk returns a tuple with the State field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsWorkflowCertificateRequestModel) GetStateOk() (*int32, bool) { + if o == nil || isNil(o.State) { + return nil, false + } + return o.State, true +} + +// HasState returns a boolean if a field has been set. +func (o *ModelsWorkflowCertificateRequestModel) HasState() bool { + if o != nil && !isNil(o.State) { + return true + } + + return false +} + +// SetState gets a reference to the given int32 and assigns it to the State field. +func (o *ModelsWorkflowCertificateRequestModel) SetState(v int32) { + o.State = &v +} + +// GetStateString returns the StateString field value if set, zero value otherwise. +func (o *ModelsWorkflowCertificateRequestModel) GetStateString() string { + if o == nil || isNil(o.StateString) { + var ret string + return ret + } + return *o.StateString +} + +// GetStateStringOk returns a tuple with the StateString field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsWorkflowCertificateRequestModel) GetStateStringOk() (*string, bool) { + if o == nil || isNil(o.StateString) { + return nil, false + } + return o.StateString, true +} + +// HasStateString returns a boolean if a field has been set. +func (o *ModelsWorkflowCertificateRequestModel) HasStateString() bool { + if o != nil && !isNil(o.StateString) { + return true + } + + return false +} + +// SetStateString gets a reference to the given string and assigns it to the StateString field. +func (o *ModelsWorkflowCertificateRequestModel) SetStateString(v string) { + o.StateString = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ModelsWorkflowCertificateRequestModel) GetMetadata() map[string]string { + if o == nil || isNil(o.Metadata) { + var ret map[string]string + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsWorkflowCertificateRequestModel) GetMetadataOk() (*map[string]string, bool) { + if o == nil || isNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ModelsWorkflowCertificateRequestModel) HasMetadata() bool { + if o != nil && !isNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given map[string]string and assigns it to the Metadata field. +func (o *ModelsWorkflowCertificateRequestModel) SetMetadata(v map[string]string) { + o.Metadata = &v +} + +func (o ModelsWorkflowCertificateRequestModel) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsWorkflowCertificateRequestModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Id) { + toSerialize["Id"] = o.Id + } + if !isNil(o.CARequestId) { + toSerialize["CARequestId"] = o.CARequestId + } + if !isNil(o.CommonName) { + toSerialize["CommonName"] = o.CommonName + } + if !isNil(o.DistinguishedName) { + toSerialize["DistinguishedName"] = o.DistinguishedName + } + if !isNil(o.SubmissionDate) { + toSerialize["SubmissionDate"] = o.SubmissionDate + } + if !isNil(o.CertificateAuthority) { + toSerialize["CertificateAuthority"] = o.CertificateAuthority + } + if !isNil(o.Template) { + toSerialize["Template"] = o.Template + } + if !isNil(o.Requester) { + toSerialize["Requester"] = o.Requester + } + if !isNil(o.State) { + toSerialize["State"] = o.State + } + // skip: StateString is readOnly + if !isNil(o.Metadata) { + toSerialize["Metadata"] = o.Metadata + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsWorkflowCertificateRequestModel) UnmarshalJSON(bytes []byte) (err error) { + varModelsWorkflowCertificateRequestModel := _ModelsWorkflowCertificateRequestModel{} + + if err = json.Unmarshal(bytes, &varModelsWorkflowCertificateRequestModel); err == nil { + *o = ModelsWorkflowCertificateRequestModel(varModelsWorkflowCertificateRequestModel) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Id") + delete(additionalProperties, "CARequestId") + delete(additionalProperties, "CommonName") + delete(additionalProperties, "DistinguishedName") + delete(additionalProperties, "SubmissionDate") + delete(additionalProperties, "CertificateAuthority") + delete(additionalProperties, "Template") + delete(additionalProperties, "Requester") + delete(additionalProperties, "State") + delete(additionalProperties, "StateString") + delete(additionalProperties, "Metadata") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsWorkflowCertificateRequestModel struct { + value *ModelsWorkflowCertificateRequestModel + isSet bool +} + +func (v NullableModelsWorkflowCertificateRequestModel) Get() *ModelsWorkflowCertificateRequestModel { + return v.value +} + +func (v *NullableModelsWorkflowCertificateRequestModel) Set(val *ModelsWorkflowCertificateRequestModel) { + v.value = val + v.isSet = true +} + +func (v NullableModelsWorkflowCertificateRequestModel) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsWorkflowCertificateRequestModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsWorkflowCertificateRequestModel(val *ModelsWorkflowCertificateRequestModel) *NullableModelsWorkflowCertificateRequestModel { + return &NullableModelsWorkflowCertificateRequestModel{value: val, isSet: true} +} + +func (v NullableModelsWorkflowCertificateRequestModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsWorkflowCertificateRequestModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_workflow_denial_request.go b/v1/api/keyfactor/model_models_workflow_denial_request.go new file mode 100644 index 0000000..baa3506 --- /dev/null +++ b/v1/api/keyfactor/model_models_workflow_denial_request.go @@ -0,0 +1,195 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsWorkflowDenialRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsWorkflowDenialRequest{} + +// ModelsWorkflowDenialRequest struct for ModelsWorkflowDenialRequest +type ModelsWorkflowDenialRequest struct { + Comment *string `json:"Comment,omitempty"` + CertificateRequestIds []int32 `json:"CertificateRequestIds,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsWorkflowDenialRequest ModelsWorkflowDenialRequest + +// NewModelsWorkflowDenialRequest instantiates a new ModelsWorkflowDenialRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsWorkflowDenialRequest() *ModelsWorkflowDenialRequest { + this := ModelsWorkflowDenialRequest{} + return &this +} + +// NewModelsWorkflowDenialRequestWithDefaults instantiates a new ModelsWorkflowDenialRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsWorkflowDenialRequestWithDefaults() *ModelsWorkflowDenialRequest { + this := ModelsWorkflowDenialRequest{} + return &this +} + +// GetComment returns the Comment field value if set, zero value otherwise. +func (o *ModelsWorkflowDenialRequest) GetComment() string { + if o == nil || isNil(o.Comment) { + var ret string + return ret + } + return *o.Comment +} + +// GetCommentOk returns a tuple with the Comment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsWorkflowDenialRequest) GetCommentOk() (*string, bool) { + if o == nil || isNil(o.Comment) { + return nil, false + } + return o.Comment, true +} + +// HasComment returns a boolean if a field has been set. +func (o *ModelsWorkflowDenialRequest) HasComment() bool { + if o != nil && !isNil(o.Comment) { + return true + } + + return false +} + +// SetComment gets a reference to the given string and assigns it to the Comment field. +func (o *ModelsWorkflowDenialRequest) SetComment(v string) { + o.Comment = &v +} + +// GetCertificateRequestIds returns the CertificateRequestIds field value if set, zero value otherwise. +func (o *ModelsWorkflowDenialRequest) GetCertificateRequestIds() []int32 { + if o == nil || isNil(o.CertificateRequestIds) { + var ret []int32 + return ret + } + return o.CertificateRequestIds +} + +// GetCertificateRequestIdsOk returns a tuple with the CertificateRequestIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsWorkflowDenialRequest) GetCertificateRequestIdsOk() ([]int32, bool) { + if o == nil || isNil(o.CertificateRequestIds) { + return nil, false + } + return o.CertificateRequestIds, true +} + +// HasCertificateRequestIds returns a boolean if a field has been set. +func (o *ModelsWorkflowDenialRequest) HasCertificateRequestIds() bool { + if o != nil && !isNil(o.CertificateRequestIds) { + return true + } + + return false +} + +// SetCertificateRequestIds gets a reference to the given []int32 and assigns it to the CertificateRequestIds field. +func (o *ModelsWorkflowDenialRequest) SetCertificateRequestIds(v []int32) { + o.CertificateRequestIds = v +} + +func (o ModelsWorkflowDenialRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsWorkflowDenialRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Comment) { + toSerialize["Comment"] = o.Comment + } + if !isNil(o.CertificateRequestIds) { + toSerialize["CertificateRequestIds"] = o.CertificateRequestIds + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsWorkflowDenialRequest) UnmarshalJSON(bytes []byte) (err error) { + varModelsWorkflowDenialRequest := _ModelsWorkflowDenialRequest{} + + if err = json.Unmarshal(bytes, &varModelsWorkflowDenialRequest); err == nil { + *o = ModelsWorkflowDenialRequest(varModelsWorkflowDenialRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Comment") + delete(additionalProperties, "CertificateRequestIds") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsWorkflowDenialRequest struct { + value *ModelsWorkflowDenialRequest + isSet bool +} + +func (v NullableModelsWorkflowDenialRequest) Get() *ModelsWorkflowDenialRequest { + return v.value +} + +func (v *NullableModelsWorkflowDenialRequest) Set(val *ModelsWorkflowDenialRequest) { + v.value = val + v.isSet = true +} + +func (v NullableModelsWorkflowDenialRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsWorkflowDenialRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsWorkflowDenialRequest(val *ModelsWorkflowDenialRequest) *NullableModelsWorkflowDenialRequest { + return &NullableModelsWorkflowDenialRequest{value: val, isSet: true} +} + +func (v NullableModelsWorkflowDenialRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsWorkflowDenialRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v1/api/keyfactor/model_models_workflow_processed_certificate_request.go b/v1/api/keyfactor/model_models_workflow_processed_certificate_request.go new file mode 100644 index 0000000..c736aa1 --- /dev/null +++ b/v1/api/keyfactor/model_models_workflow_processed_certificate_request.go @@ -0,0 +1,341 @@ +/* +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a +copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless +required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. See the License for +thespecific language governing permissions and limitations under the +License. +Keyfactor-v1 + +This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package keyfactor + +import ( + "encoding/json" +) + +// checks if the ModelsWorkflowProcessedCertificateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModelsWorkflowProcessedCertificateRequest{} + +// ModelsWorkflowProcessedCertificateRequest struct for ModelsWorkflowProcessedCertificateRequest +type ModelsWorkflowProcessedCertificateRequest struct { + CARowId *int32 `json:"CARowId,omitempty"` + CARequestId *string `json:"CARequestId,omitempty"` + CAHost *string `json:"CAHost,omitempty"` + CALogicalName *string `json:"CALogicalName,omitempty"` + KeyfactorRequestId *int32 `json:"KeyfactorRequestId,omitempty"` + Comment *string `json:"Comment,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModelsWorkflowProcessedCertificateRequest ModelsWorkflowProcessedCertificateRequest + +// NewModelsWorkflowProcessedCertificateRequest instantiates a new ModelsWorkflowProcessedCertificateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModelsWorkflowProcessedCertificateRequest() *ModelsWorkflowProcessedCertificateRequest { + this := ModelsWorkflowProcessedCertificateRequest{} + return &this +} + +// NewModelsWorkflowProcessedCertificateRequestWithDefaults instantiates a new ModelsWorkflowProcessedCertificateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelsWorkflowProcessedCertificateRequestWithDefaults() *ModelsWorkflowProcessedCertificateRequest { + this := ModelsWorkflowProcessedCertificateRequest{} + return &this +} + +// GetCARowId returns the CARowId field value if set, zero value otherwise. +func (o *ModelsWorkflowProcessedCertificateRequest) GetCARowId() int32 { + if o == nil || isNil(o.CARowId) { + var ret int32 + return ret + } + return *o.CARowId +} + +// GetCARowIdOk returns a tuple with the CARowId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsWorkflowProcessedCertificateRequest) GetCARowIdOk() (*int32, bool) { + if o == nil || isNil(o.CARowId) { + return nil, false + } + return o.CARowId, true +} + +// HasCARowId returns a boolean if a field has been set. +func (o *ModelsWorkflowProcessedCertificateRequest) HasCARowId() bool { + if o != nil && !isNil(o.CARowId) { + return true + } + + return false +} + +// SetCARowId gets a reference to the given int32 and assigns it to the CARowId field. +func (o *ModelsWorkflowProcessedCertificateRequest) SetCARowId(v int32) { + o.CARowId = &v +} + +// GetCARequestId returns the CARequestId field value if set, zero value otherwise. +func (o *ModelsWorkflowProcessedCertificateRequest) GetCARequestId() string { + if o == nil || isNil(o.CARequestId) { + var ret string + return ret + } + return *o.CARequestId +} + +// GetCARequestIdOk returns a tuple with the CARequestId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsWorkflowProcessedCertificateRequest) GetCARequestIdOk() (*string, bool) { + if o == nil || isNil(o.CARequestId) { + return nil, false + } + return o.CARequestId, true +} + +// HasCARequestId returns a boolean if a field has been set. +func (o *ModelsWorkflowProcessedCertificateRequest) HasCARequestId() bool { + if o != nil && !isNil(o.CARequestId) { + return true + } + + return false +} + +// SetCARequestId gets a reference to the given string and assigns it to the CARequestId field. +func (o *ModelsWorkflowProcessedCertificateRequest) SetCARequestId(v string) { + o.CARequestId = &v +} + +// GetCAHost returns the CAHost field value if set, zero value otherwise. +func (o *ModelsWorkflowProcessedCertificateRequest) GetCAHost() string { + if o == nil || isNil(o.CAHost) { + var ret string + return ret + } + return *o.CAHost +} + +// GetCAHostOk returns a tuple with the CAHost field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsWorkflowProcessedCertificateRequest) GetCAHostOk() (*string, bool) { + if o == nil || isNil(o.CAHost) { + return nil, false + } + return o.CAHost, true +} + +// HasCAHost returns a boolean if a field has been set. +func (o *ModelsWorkflowProcessedCertificateRequest) HasCAHost() bool { + if o != nil && !isNil(o.CAHost) { + return true + } + + return false +} + +// SetCAHost gets a reference to the given string and assigns it to the CAHost field. +func (o *ModelsWorkflowProcessedCertificateRequest) SetCAHost(v string) { + o.CAHost = &v +} + +// GetCALogicalName returns the CALogicalName field value if set, zero value otherwise. +func (o *ModelsWorkflowProcessedCertificateRequest) GetCALogicalName() string { + if o == nil || isNil(o.CALogicalName) { + var ret string + return ret + } + return *o.CALogicalName +} + +// GetCALogicalNameOk returns a tuple with the CALogicalName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsWorkflowProcessedCertificateRequest) GetCALogicalNameOk() (*string, bool) { + if o == nil || isNil(o.CALogicalName) { + return nil, false + } + return o.CALogicalName, true +} + +// HasCALogicalName returns a boolean if a field has been set. +func (o *ModelsWorkflowProcessedCertificateRequest) HasCALogicalName() bool { + if o != nil && !isNil(o.CALogicalName) { + return true + } + + return false +} + +// SetCALogicalName gets a reference to the given string and assigns it to the CALogicalName field. +func (o *ModelsWorkflowProcessedCertificateRequest) SetCALogicalName(v string) { + o.CALogicalName = &v +} + +// GetKeyfactorRequestId returns the KeyfactorRequestId field value if set, zero value otherwise. +func (o *ModelsWorkflowProcessedCertificateRequest) GetKeyfactorRequestId() int32 { + if o == nil || isNil(o.KeyfactorRequestId) { + var ret int32 + return ret + } + return *o.KeyfactorRequestId +} + +// GetKeyfactorRequestIdOk returns a tuple with the KeyfactorRequestId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsWorkflowProcessedCertificateRequest) GetKeyfactorRequestIdOk() (*int32, bool) { + if o == nil || isNil(o.KeyfactorRequestId) { + return nil, false + } + return o.KeyfactorRequestId, true +} + +// HasKeyfactorRequestId returns a boolean if a field has been set. +func (o *ModelsWorkflowProcessedCertificateRequest) HasKeyfactorRequestId() bool { + if o != nil && !isNil(o.KeyfactorRequestId) { + return true + } + + return false +} + +// SetKeyfactorRequestId gets a reference to the given int32 and assigns it to the KeyfactorRequestId field. +func (o *ModelsWorkflowProcessedCertificateRequest) SetKeyfactorRequestId(v int32) { + o.KeyfactorRequestId = &v +} + +// GetComment returns the Comment field value if set, zero value otherwise. +func (o *ModelsWorkflowProcessedCertificateRequest) GetComment() string { + if o == nil || isNil(o.Comment) { + var ret string + return ret + } + return *o.Comment +} + +// GetCommentOk returns a tuple with the Comment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModelsWorkflowProcessedCertificateRequest) GetCommentOk() (*string, bool) { + if o == nil || isNil(o.Comment) { + return nil, false + } + return o.Comment, true +} + +// HasComment returns a boolean if a field has been set. +func (o *ModelsWorkflowProcessedCertificateRequest) HasComment() bool { + if o != nil && !isNil(o.Comment) { + return true + } + + return false +} + +// SetComment gets a reference to the given string and assigns it to the Comment field. +func (o *ModelsWorkflowProcessedCertificateRequest) SetComment(v string) { + o.Comment = &v +} + +func (o ModelsWorkflowProcessedCertificateRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModelsWorkflowProcessedCertificateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + // skip: CARowId is readOnly + if !isNil(o.CARequestId) { + toSerialize["CARequestId"] = o.CARequestId + } + if !isNil(o.CAHost) { + toSerialize["CAHost"] = o.CAHost + } + if !isNil(o.CALogicalName) { + toSerialize["CALogicalName"] = o.CALogicalName + } + if !isNil(o.KeyfactorRequestId) { + toSerialize["KeyfactorRequestId"] = o.KeyfactorRequestId + } + if !isNil(o.Comment) { + toSerialize["Comment"] = o.Comment + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModelsWorkflowProcessedCertificateRequest) UnmarshalJSON(bytes []byte) (err error) { + varModelsWorkflowProcessedCertificateRequest := _ModelsWorkflowProcessedCertificateRequest{} + + if err = json.Unmarshal(bytes, &varModelsWorkflowProcessedCertificateRequest); err == nil { + *o = ModelsWorkflowProcessedCertificateRequest(varModelsWorkflowProcessedCertificateRequest) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "CARowId") + delete(additionalProperties, "CARequestId") + delete(additionalProperties, "CAHost") + delete(additionalProperties, "CALogicalName") + delete(additionalProperties, "KeyfactorRequestId") + delete(additionalProperties, "Comment") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModelsWorkflowProcessedCertificateRequest struct { + value *ModelsWorkflowProcessedCertificateRequest + isSet bool +} + +func (v NullableModelsWorkflowProcessedCertificateRequest) Get() *ModelsWorkflowProcessedCertificateRequest { + return v.value +} + +func (v *NullableModelsWorkflowProcessedCertificateRequest) Set(val *ModelsWorkflowProcessedCertificateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableModelsWorkflowProcessedCertificateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableModelsWorkflowProcessedCertificateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModelsWorkflowProcessedCertificateRequest(val *ModelsWorkflowProcessedCertificateRequest) *NullableModelsWorkflowProcessedCertificateRequest { + return &NullableModelsWorkflowProcessedCertificateRequest{value: val, isSet: true} +} + +func (v NullableModelsWorkflowProcessedCertificateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModelsWorkflowProcessedCertificateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/v2/api/command/response.go b/v1/api/keyfactor/response.go similarity index 87% rename from v2/api/command/response.go rename to v1/api/keyfactor/response.go index 4395093..6a260c0 100644 --- a/v2/api/command/response.go +++ b/v1/api/keyfactor/response.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "net/http" diff --git a/v2/api/command/utils.go b/v1/api/keyfactor/utils.go similarity index 96% rename from v2/api/command/utils.go rename to v1/api/keyfactor/utils.go index 696911a..f5015c0 100644 --- a/v2/api/command/utils.go +++ b/v1/api/keyfactor/utils.go @@ -1,15 +1,13 @@ /* - -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may +Copyright 2022 Keyfactor +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the +thespecific language governing permissions and limitations under the License. - Keyfactor-v1 This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance. @@ -19,7 +17,7 @@ API version: v1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package command +package keyfactor import ( "encoding/json" diff --git a/v1/docs/AgentApi.md b/v1/docs/AgentApi.md new file mode 100644 index 0000000..4ca44f8 --- /dev/null +++ b/v1/docs/AgentApi.md @@ -0,0 +1,570 @@ +# \AgentApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AgentApprove**](AgentApi.md#AgentApprove) | **Post** /Agents/Approve | Approve a list of agents +[**AgentDisapprove**](AgentApi.md#AgentDisapprove) | **Post** /Agents/Disapprove | Disapprove a list of agents +[**AgentFetchLogs**](AgentApi.md#AgentFetchLogs) | **Post** /Agents/{id}/FetchLogs | Schedules a job on the agent to retrieve log files +[**AgentGetAgentDetail**](AgentApi.md#AgentGetAgentDetail) | **Get** /Agents/{id} | Returns details for a single agent, specified by ID +[**AgentGetAgents**](AgentApi.md#AgentGetAgents) | **Get** /Agents | Returns all agents according to the provided filter and output parameters +[**AgentReset0**](AgentApi.md#AgentReset0) | **Post** /Agents/Reset | Reset a list of agents +[**AgentReset1**](AgentApi.md#AgentReset1) | **Post** /Agents/{id}/Reset | Reset an agent to a new state +[**AgentSetAuthCertificateReenrollment**](AgentApi.md#AgentSetAuthCertificateReenrollment) | **Post** /Agents/SetAuthCertificateReenrollment | Update the AuthCertificateReenrollment value for an agent to request or require (or unset the request) the agent to enroll for a new client authentication certificate on its next registration. + + + +## AgentApprove + +> AgentApprove(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).AgentIds(agentIds).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Approve a list of agents + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + agentIds := []string{"Property_example"} // []string | List of Agent Ids to Approve + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AgentApi.AgentApprove(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).AgentIds(agentIds).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AgentApi.AgentApprove``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAgentApproveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **agentIds** | **[]string** | List of Agent Ids to Approve | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AgentDisapprove + +> AgentDisapprove(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).AgentIds(agentIds).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Disapprove a list of agents + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + agentIds := []string{"Property_example"} // []string | List of Agent Ids to Disapprove + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AgentApi.AgentDisapprove(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).AgentIds(agentIds).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AgentApi.AgentDisapprove``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAgentDisapproveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **agentIds** | **[]string** | List of Agent Ids to Disapprove | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AgentFetchLogs + +> AgentFetchLogs(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Schedules a job on the agent to retrieve log files + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Guid Id of the agent to schedule the job for. + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AgentApi.AgentFetchLogs(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AgentApi.AgentFetchLogs``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Guid Id of the agent to schedule the job for. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAgentFetchLogsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AgentGetAgentDetail + +> KeyfactorApiModelsOrchestratorsAgentResponse AgentGetAgentDetail(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns details for a single agent, specified by ID + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Agent Id to Search + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AgentApi.AgentGetAgentDetail(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AgentApi.AgentGetAgentDetail``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AgentGetAgentDetail`: KeyfactorApiModelsOrchestratorsAgentResponse + fmt.Fprintf(os.Stdout, "Response from `AgentApi.AgentGetAgentDetail`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Agent Id to Search | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAgentGetAgentDetailRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsOrchestratorsAgentResponse**](KeyfactorApiModelsOrchestratorsAgentResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AgentGetAgents + +> []KeyfactorApiModelsOrchestratorsAgentResponse AgentGetAgents(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + +Returns all agents according to the provided filter and output parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + pqQueryString := "pqQueryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + pqPageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + pqReturnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AgentApi.AgentGetAgents(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AgentApi.AgentGetAgents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AgentGetAgents`: []KeyfactorApiModelsOrchestratorsAgentResponse + fmt.Fprintf(os.Stdout, "Response from `AgentApi.AgentGetAgents`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAgentGetAgentsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + **pqQueryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **pqPageReturned** | **int32** | The current page within the result set to be returned | + **pqReturnLimit** | **int32** | Maximum number of records to be returned in a single call | + **pqSortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **pqSortAscending** | **int32** | Field sort direction [0=ascending, 1=descending] | + +### Return type + +[**[]KeyfactorApiModelsOrchestratorsAgentResponse**](KeyfactorApiModelsOrchestratorsAgentResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AgentReset0 + +> AgentReset0(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).AgentIds(agentIds).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Reset a list of agents + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + agentIds := []string{"Property_example"} // []string | List of Agent Ids to Reset + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AgentApi.AgentReset0(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).AgentIds(agentIds).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AgentApi.AgentReset0``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAgentReset0Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **agentIds** | **[]string** | List of Agent Ids to Reset | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AgentReset1 + +> AgentReset1(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Reset an agent to a new state + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Guid Id of Agent to reset + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AgentApi.AgentReset1(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AgentApi.AgentReset1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Guid Id of Agent to reset | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAgentReset1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AgentSetAuthCertificateReenrollment + +> KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse AgentSetAuthCertificateReenrollment(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).AuthCertReenrollmentRequest(authCertReenrollmentRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Update the AuthCertificateReenrollment value for an agent to request or require (or unset the request) the agent to enroll for a new client authentication certificate on its next registration. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + authCertReenrollmentRequest := *openapiclient.NewKeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest("Status_example") // KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest | Object containing orchestrator ids and the new status those orchestrators should have + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AgentApi.AgentSetAuthCertificateReenrollment(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).AuthCertReenrollmentRequest(authCertReenrollmentRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AgentApi.AgentSetAuthCertificateReenrollment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AgentSetAuthCertificateReenrollment`: KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse + fmt.Fprintf(os.Stdout, "Response from `AgentApi.AgentSetAuthCertificateReenrollment`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAgentSetAuthCertificateReenrollmentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **authCertReenrollmentRequest** | [**KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest**](KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest.md) | Object containing orchestrator ids and the new status those orchestrators should have | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse**](KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v1/docs/AgentBlueprintApi.md b/v1/docs/AgentBlueprintApi.md new file mode 100644 index 0000000..c59020f --- /dev/null +++ b/v1/docs/AgentBlueprintApi.md @@ -0,0 +1,529 @@ +# \AgentBlueprintApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AgentBlueprintApplyBlueprint**](AgentBlueprintApi.md#AgentBlueprintApplyBlueprint) | **Post** /AgentBluePrint/ApplyBlueprint | Applies the selected agent blueprint to the provided agents +[**AgentBlueprintDeleteBlueprint**](AgentBlueprintApi.md#AgentBlueprintDeleteBlueprint) | **Delete** /AgentBluePrint/{id} | Deletes an agent blueprint by its Keyfactor identifier +[**AgentBlueprintGenerateBlueprint**](AgentBlueprintApi.md#AgentBlueprintGenerateBlueprint) | **Post** /AgentBluePrint/GenerateBluePrint | Generates an agent blueprint from the provided agents +[**AgentBlueprintGetAgentBlueprint**](AgentBlueprintApi.md#AgentBlueprintGetAgentBlueprint) | **Get** /AgentBluePrint/{id} | Returns an agent blueprint according to the provided filter and output parameters +[**AgentBlueprintGetAgentBlueprints**](AgentBlueprintApi.md#AgentBlueprintGetAgentBlueprints) | **Get** /AgentBluePrint | Returns all agent blueprints according to the provided filter and output parameters +[**AgentBlueprintGetBlueprintJobs**](AgentBlueprintApi.md#AgentBlueprintGetBlueprintJobs) | **Get** /AgentBluePrint/{id}/Jobs | Gets the agent blueprint scheduled jobs +[**AgentBlueprintGetBlueprintStores**](AgentBlueprintApi.md#AgentBlueprintGetBlueprintStores) | **Get** /AgentBluePrint/{id}/Stores | Gets the agent blueprint certificate stores + + + +## AgentBlueprintApplyBlueprint + +> AgentBlueprintApplyBlueprint(ctx).TemplateId(templateId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).AgentIds(agentIds).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Applies the selected agent blueprint to the provided agents + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + templateId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Agent blueprint to apply to the agents + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + agentIds := []string{"00000000-0000-0000-0000-000000000000"} // []string | Agents to apply the blueprints to + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AgentBlueprintApi.AgentBlueprintApplyBlueprint(context.Background()).TemplateId(templateId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).AgentIds(agentIds).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AgentBlueprintApi.AgentBlueprintApplyBlueprint``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAgentBlueprintApplyBlueprintRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **templateId** | **string** | Agent blueprint to apply to the agents | + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **agentIds** | **[]string** | Agents to apply the blueprints to | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AgentBlueprintDeleteBlueprint + +> AgentBlueprintDeleteBlueprint(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes an agent blueprint by its Keyfactor identifier + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Keyfactor agent blueprint identifier (GUID) + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AgentBlueprintApi.AgentBlueprintDeleteBlueprint(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AgentBlueprintApi.AgentBlueprintDeleteBlueprint``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Keyfactor agent blueprint identifier (GUID) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAgentBlueprintDeleteBlueprintRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AgentBlueprintGenerateBlueprint + +> KeyfactorApiModelsOrchestratorsAgentBlueprintResponse AgentBlueprintGenerateBlueprint(ctx).AgentId(agentId).Name(name).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Generates an agent blueprint from the provided agents + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + agentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Agent to generate a blueprint from + name := "name_example" // string | Name of the new agent blueprint + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AgentBlueprintApi.AgentBlueprintGenerateBlueprint(context.Background()).AgentId(agentId).Name(name).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AgentBlueprintApi.AgentBlueprintGenerateBlueprint``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AgentBlueprintGenerateBlueprint`: KeyfactorApiModelsOrchestratorsAgentBlueprintResponse + fmt.Fprintf(os.Stdout, "Response from `AgentBlueprintApi.AgentBlueprintGenerateBlueprint`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAgentBlueprintGenerateBlueprintRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **agentId** | **string** | Agent to generate a blueprint from | + **name** | **string** | Name of the new agent blueprint | + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsOrchestratorsAgentBlueprintResponse**](KeyfactorApiModelsOrchestratorsAgentBlueprintResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AgentBlueprintGetAgentBlueprint + +> KeyfactorApiModelsOrchestratorsAgentBlueprintResponse AgentBlueprintGetAgentBlueprint(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns an agent blueprint according to the provided filter and output parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Returns a single agent blueprint associated with the provided id + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AgentBlueprintApi.AgentBlueprintGetAgentBlueprint(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AgentBlueprintApi.AgentBlueprintGetAgentBlueprint``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AgentBlueprintGetAgentBlueprint`: KeyfactorApiModelsOrchestratorsAgentBlueprintResponse + fmt.Fprintf(os.Stdout, "Response from `AgentBlueprintApi.AgentBlueprintGetAgentBlueprint`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Returns a single agent blueprint associated with the provided id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAgentBlueprintGetAgentBlueprintRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsOrchestratorsAgentBlueprintResponse**](KeyfactorApiModelsOrchestratorsAgentBlueprintResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AgentBlueprintGetAgentBlueprints + +> []KeyfactorApiModelsOrchestratorsAgentBlueprintResponse AgentBlueprintGetAgentBlueprints(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + +Returns all agent blueprints according to the provided filter and output parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + pqPageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + pqReturnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (OperationStart, OperationEnd, UserName) (optional) + pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AgentBlueprintApi.AgentBlueprintGetAgentBlueprints(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AgentBlueprintApi.AgentBlueprintGetAgentBlueprints``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AgentBlueprintGetAgentBlueprints`: []KeyfactorApiModelsOrchestratorsAgentBlueprintResponse + fmt.Fprintf(os.Stdout, "Response from `AgentBlueprintApi.AgentBlueprintGetAgentBlueprints`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAgentBlueprintGetAgentBlueprintsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + **pqPageReturned** | **int32** | The current page within the result set to be returned | + **pqReturnLimit** | **int32** | Maximum number of records to be returned in a single call | + **pqSortField** | **string** | Field by which the results should be sorted (OperationStart, OperationEnd, UserName) | + **pqSortAscending** | **int32** | Field sort direction [0=ascending, 1=descending] | + +### Return type + +[**[]KeyfactorApiModelsOrchestratorsAgentBlueprintResponse**](KeyfactorApiModelsOrchestratorsAgentBlueprintResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AgentBlueprintGetBlueprintJobs + +> []KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse AgentBlueprintGetBlueprintJobs(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + +Gets the agent blueprint scheduled jobs + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + pqPageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + pqReturnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (OperationStart, OperationEnd, UserName) (optional) + pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AgentBlueprintApi.AgentBlueprintGetBlueprintJobs(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AgentBlueprintApi.AgentBlueprintGetBlueprintJobs``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AgentBlueprintGetBlueprintJobs`: []KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse + fmt.Fprintf(os.Stdout, "Response from `AgentBlueprintApi.AgentBlueprintGetBlueprintJobs`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAgentBlueprintGetBlueprintJobsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + **pqPageReturned** | **int32** | The current page within the result set to be returned | + **pqReturnLimit** | **int32** | Maximum number of records to be returned in a single call | + **pqSortField** | **string** | Field by which the results should be sorted (OperationStart, OperationEnd, UserName) | + **pqSortAscending** | **int32** | Field sort direction [0=ascending, 1=descending] | + +### Return type + +[**[]KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse**](KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AgentBlueprintGetBlueprintStores + +> []KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse AgentBlueprintGetBlueprintStores(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + +Gets the agent blueprint certificate stores + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + pqPageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + pqReturnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (OperationStart, OperationEnd, UserName) (optional) + pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AgentBlueprintApi.AgentBlueprintGetBlueprintStores(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AgentBlueprintApi.AgentBlueprintGetBlueprintStores``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AgentBlueprintGetBlueprintStores`: []KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse + fmt.Fprintf(os.Stdout, "Response from `AgentBlueprintApi.AgentBlueprintGetBlueprintStores`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAgentBlueprintGetBlueprintStoresRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + **pqPageReturned** | **int32** | The current page within the result set to be returned | + **pqReturnLimit** | **int32** | Maximum number of records to be returned in a single call | + **pqSortField** | **string** | Field by which the results should be sorted (OperationStart, OperationEnd, UserName) | + **pqSortAscending** | **int32** | Field sort direction [0=ascending, 1=descending] | + +### Return type + +[**[]KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse**](KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v1/docs/AgentPoolApi.md b/v1/docs/AgentPoolApi.md new file mode 100644 index 0000000..ab73e5c --- /dev/null +++ b/v1/docs/AgentPoolApi.md @@ -0,0 +1,448 @@ +# \AgentPoolApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AgentPoolCreateAgentPool**](AgentPoolApi.md#AgentPoolCreateAgentPool) | **Post** /AgentPools | Creates an agent pool with the provided properties +[**AgentPoolDeleteAgentPool**](AgentPoolApi.md#AgentPoolDeleteAgentPool) | **Delete** /AgentPools/{id} | Deletes the agent pool associated with the provided id +[**AgentPoolGetAgentPoolById**](AgentPoolApi.md#AgentPoolGetAgentPoolById) | **Get** /AgentPools/{id} | Returns a single agent pool associated with the provided id +[**AgentPoolGetAgentPools**](AgentPoolApi.md#AgentPoolGetAgentPools) | **Get** /AgentPools | Returns all agent pools according to the provided filter and output parameters +[**AgentPoolGetDefaultAgentPoolAgents**](AgentPoolApi.md#AgentPoolGetDefaultAgentPoolAgents) | **Get** /AgentPools/Agents | Returns all agents for the default agent pool +[**AgentPoolUpdateAgentPool**](AgentPoolApi.md#AgentPoolUpdateAgentPool) | **Put** /AgentPools | Updates an existing agent pool with the provided properties + + + +## AgentPoolCreateAgentPool + +> ModelsAgentsAgentPool AgentPoolCreateAgentPool(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).AgentPool(agentPool).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Creates an agent pool with the provided properties + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + agentPool := *openapiclient.NewModelsAgentsAgentPool("Name_example") // ModelsAgentsAgentPool | Agent pool properties to be applied to the new pool + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AgentPoolApi.AgentPoolCreateAgentPool(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).AgentPool(agentPool).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AgentPoolApi.AgentPoolCreateAgentPool``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AgentPoolCreateAgentPool`: ModelsAgentsAgentPool + fmt.Fprintf(os.Stdout, "Response from `AgentPoolApi.AgentPoolCreateAgentPool`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAgentPoolCreateAgentPoolRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **agentPool** | [**ModelsAgentsAgentPool**](ModelsAgentsAgentPool.md) | Agent pool properties to be applied to the new pool | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsAgentsAgentPool**](ModelsAgentsAgentPool.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AgentPoolDeleteAgentPool + +> AgentPoolDeleteAgentPool(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes the agent pool associated with the provided id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Keyfactor identifier (GUID) of the agent pool + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AgentPoolApi.AgentPoolDeleteAgentPool(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AgentPoolApi.AgentPoolDeleteAgentPool``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Keyfactor identifier (GUID) of the agent pool | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAgentPoolDeleteAgentPoolRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AgentPoolGetAgentPoolById + +> ModelsAgentsAgentPool AgentPoolGetAgentPoolById(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns a single agent pool associated with the provided id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Keyfactor (GUID) identifier of the agent pool + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AgentPoolApi.AgentPoolGetAgentPoolById(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AgentPoolApi.AgentPoolGetAgentPoolById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AgentPoolGetAgentPoolById`: ModelsAgentsAgentPool + fmt.Fprintf(os.Stdout, "Response from `AgentPoolApi.AgentPoolGetAgentPoolById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Keyfactor (GUID) identifier of the agent pool | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAgentPoolGetAgentPoolByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsAgentsAgentPool**](ModelsAgentsAgentPool.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AgentPoolGetAgentPools + +> []ModelsAgentsAgentPool AgentPoolGetAgentPools(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + +Returns all agent pools according to the provided filter and output parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + pqQueryString := "pqQueryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + pqPageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + pqReturnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AgentPoolApi.AgentPoolGetAgentPools(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AgentPoolApi.AgentPoolGetAgentPools``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AgentPoolGetAgentPools`: []ModelsAgentsAgentPool + fmt.Fprintf(os.Stdout, "Response from `AgentPoolApi.AgentPoolGetAgentPools`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAgentPoolGetAgentPoolsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + **pqQueryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **pqPageReturned** | **int32** | The current page within the result set to be returned | + **pqReturnLimit** | **int32** | Maximum number of records to be returned in a single call | + **pqSortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **pqSortAscending** | **int32** | Field sort direction [0=ascending, 1=descending] | + +### Return type + +[**[]ModelsAgentsAgentPool**](ModelsAgentsAgentPool.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AgentPoolGetDefaultAgentPoolAgents + +> []ModelsAgentsAgentPoolAgent AgentPoolGetDefaultAgentPoolAgents(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + +Returns all agents for the default agent pool + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + pqQueryString := "pqQueryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + pqPageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + pqReturnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AgentPoolApi.AgentPoolGetDefaultAgentPoolAgents(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AgentPoolApi.AgentPoolGetDefaultAgentPoolAgents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AgentPoolGetDefaultAgentPoolAgents`: []ModelsAgentsAgentPoolAgent + fmt.Fprintf(os.Stdout, "Response from `AgentPoolApi.AgentPoolGetDefaultAgentPoolAgents`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAgentPoolGetDefaultAgentPoolAgentsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + **pqQueryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **pqPageReturned** | **int32** | The current page within the result set to be returned | + **pqReturnLimit** | **int32** | Maximum number of records to be returned in a single call | + **pqSortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **pqSortAscending** | **int32** | Field sort direction [0=ascending, 1=descending] | + +### Return type + +[**[]ModelsAgentsAgentPoolAgent**](ModelsAgentsAgentPoolAgent.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AgentPoolUpdateAgentPool + +> ModelsAgentsAgentPool AgentPoolUpdateAgentPool(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).AgentPool(agentPool).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Updates an existing agent pool with the provided properties + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + agentPool := *openapiclient.NewModelsAgentsAgentPool("Name_example") // ModelsAgentsAgentPool | Agent pool properties to be applied to the existing pool + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AgentPoolApi.AgentPoolUpdateAgentPool(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).AgentPool(agentPool).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AgentPoolApi.AgentPoolUpdateAgentPool``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AgentPoolUpdateAgentPool`: ModelsAgentsAgentPool + fmt.Fprintf(os.Stdout, "Response from `AgentPoolApi.AgentPoolUpdateAgentPool`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAgentPoolUpdateAgentPoolRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **agentPool** | [**ModelsAgentsAgentPool**](ModelsAgentsAgentPool.md) | Agent pool properties to be applied to the existing pool | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsAgentsAgentPool**](ModelsAgentsAgentPool.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v1/docs/AuditLogApi.md b/v1/docs/AuditLogApi.md new file mode 100644 index 0000000..e9dac92 --- /dev/null +++ b/v1/docs/AuditLogApi.md @@ -0,0 +1,387 @@ +# \AuditLogApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AuditLogDownloadCSV**](AuditLogApi.md#AuditLogDownloadCSV) | **Get** /Audit/Download | Returns a Comma Separated file containing the audit log entries according to the provided filter +[**AuditLogGetAuditLog**](AuditLogApi.md#AuditLogGetAuditLog) | **Get** /Audit/{id} | Returns the audit log entry associated with the provided identifier +[**AuditLogGetAuditLogs**](AuditLogApi.md#AuditLogGetAuditLogs) | **Get** /Audit | Returns all audit log entries according to the provided filter and output parameters +[**AuditLogGetRelatedEntities**](AuditLogApi.md#AuditLogGetRelatedEntities) | **Get** /Audit/RelatedEntities | Returns the audit log entry associated with the provided keyfactor id +[**AuditLogValidateAuditLog**](AuditLogApi.md#AuditLogValidateAuditLog) | **Get** /Audit/{id}/Validate | Validates the audit log entry associated with the provided keyfactor id + + + +## AuditLogDownloadCSV + +> string AuditLogDownloadCSV(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + +Returns a Comma Separated file containing the audit log entries according to the provided filter + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + pqQueryString := "pqQueryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + pqPageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + pqReturnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuditLogApi.AuditLogDownloadCSV(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuditLogApi.AuditLogDownloadCSV``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AuditLogDownloadCSV`: string + fmt.Fprintf(os.Stdout, "Response from `AuditLogApi.AuditLogDownloadCSV`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAuditLogDownloadCSVRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + **pqQueryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **pqPageReturned** | **int32** | The current page within the result set to be returned | + **pqReturnLimit** | **int32** | Maximum number of records to be returned in a single call | + **pqSortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **pqSortAscending** | **int32** | Field sort direction [0=ascending, 1=descending] | + +### Return type + +**string** + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AuditLogGetAuditLog + +> map[string]interface{} AuditLogGetAuditLog(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns the audit log entry associated with the provided identifier + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Keyfactor identifer of the audit entry to be returned + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuditLogApi.AuditLogGetAuditLog(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuditLogApi.AuditLogGetAuditLog``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AuditLogGetAuditLog`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AuditLogApi.AuditLogGetAuditLog`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Keyfactor identifer of the audit entry to be returned | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAuditLogGetAuditLogRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +**map[string]interface{}** + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AuditLogGetAuditLogs + +> []KeyfactorAuditingQueryingAuditLogEntry AuditLogGetAuditLogs(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + +Returns all audit log entries according to the provided filter and output parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + pqQueryString := "pqQueryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + pqPageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + pqReturnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuditLogApi.AuditLogGetAuditLogs(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuditLogApi.AuditLogGetAuditLogs``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AuditLogGetAuditLogs`: []KeyfactorAuditingQueryingAuditLogEntry + fmt.Fprintf(os.Stdout, "Response from `AuditLogApi.AuditLogGetAuditLogs`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAuditLogGetAuditLogsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + **pqQueryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **pqPageReturned** | **int32** | The current page within the result set to be returned | + **pqReturnLimit** | **int32** | Maximum number of records to be returned in a single call | + **pqSortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **pqSortAscending** | **int32** | Field sort direction [0=ascending, 1=descending] | + +### Return type + +[**[]KeyfactorAuditingQueryingAuditLogEntry**](KeyfactorAuditingQueryingAuditLogEntry.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AuditLogGetRelatedEntities + +> []KeyfactorAuditingQueryingAuditLogEntry AuditLogGetRelatedEntities(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + +Returns the audit log entry associated with the provided keyfactor id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + pqQueryString := "pqQueryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + pqPageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + pqReturnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuditLogApi.AuditLogGetRelatedEntities(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuditLogApi.AuditLogGetRelatedEntities``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AuditLogGetRelatedEntities`: []KeyfactorAuditingQueryingAuditLogEntry + fmt.Fprintf(os.Stdout, "Response from `AuditLogApi.AuditLogGetRelatedEntities`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAuditLogGetRelatedEntitiesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + **pqQueryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **pqPageReturned** | **int32** | The current page within the result set to be returned | + **pqReturnLimit** | **int32** | Maximum number of records to be returned in a single call | + **pqSortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **pqSortAscending** | **int32** | Field sort direction [0=ascending, 1=descending] | + +### Return type + +[**[]KeyfactorAuditingQueryingAuditLogEntry**](KeyfactorAuditingQueryingAuditLogEntry.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AuditLogValidateAuditLog + +> bool AuditLogValidateAuditLog(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Validates the audit log entry associated with the provided keyfactor id + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Keyfactor identifier of the audit log entry + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuditLogApi.AuditLogValidateAuditLog(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuditLogApi.AuditLogValidateAuditLog``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AuditLogValidateAuditLog`: bool + fmt.Fprintf(os.Stdout, "Response from `AuditLogApi.AuditLogValidateAuditLog`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Keyfactor identifier of the audit log entry | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAuditLogValidateAuditLogRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +**bool** + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v1/docs/CSRGenerationApi.md b/v1/docs/CSRGenerationApi.md new file mode 100644 index 0000000..99f7717 --- /dev/null +++ b/v1/docs/CSRGenerationApi.md @@ -0,0 +1,365 @@ +# \CSRGenerationApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CSRGenerationDeleteCSR**](CSRGenerationApi.md#CSRGenerationDeleteCSR) | **Delete** /CSRGeneration/Pending/{id} | Deletes a CSR associated with the provided identifier +[**CSRGenerationDeleteCSRs**](CSRGenerationApi.md#CSRGenerationDeleteCSRs) | **Delete** /CSRGeneration/Pending | Deletes the CSRs associated with the provided identifiers +[**CSRGenerationDownload**](CSRGenerationApi.md#CSRGenerationDownload) | **Get** /CSRGeneration/Pending/{id} | Returns a previously generated CSR associated with the provided identifier +[**CSRGenerationGetPendingCSRs**](CSRGenerationApi.md#CSRGenerationGetPendingCSRs) | **Get** /CSRGeneration/Pending | Returns a list of the currently pending CSRs according to the provided query +[**CSRGenerationPostGenerate**](CSRGenerationApi.md#CSRGenerationPostGenerate) | **Post** /CSRGeneration/Generate | Generates a CSR according the properties provided + + + +## CSRGenerationDeleteCSR + +> CSRGenerationDeleteCSR(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes a CSR associated with the provided identifier + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Keyfactor identifer of the CSR to be deleted + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CSRGenerationApi.CSRGenerationDeleteCSR(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CSRGenerationApi.CSRGenerationDeleteCSR``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Keyfactor identifer of the CSR to be deleted | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCSRGenerationDeleteCSRRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CSRGenerationDeleteCSRs + +> CSRGenerationDeleteCSRs(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Ids(ids).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes the CSRs associated with the provided identifiers + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + ids := []int32{int32(123)} // []int32 | Array of Keyfactor identifiers for the CSRs to be deleted + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CSRGenerationApi.CSRGenerationDeleteCSRs(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Ids(ids).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CSRGenerationApi.CSRGenerationDeleteCSRs``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCSRGenerationDeleteCSRsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **ids** | **[]int32** | Array of Keyfactor identifiers for the CSRs to be deleted | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CSRGenerationDownload + +> ModelsCSRGenerationResponseModel CSRGenerationDownload(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns a previously generated CSR associated with the provided identifier + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Keyfactor identifier of the CSR + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CSRGenerationApi.CSRGenerationDownload(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CSRGenerationApi.CSRGenerationDownload``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CSRGenerationDownload`: ModelsCSRGenerationResponseModel + fmt.Fprintf(os.Stdout, "Response from `CSRGenerationApi.CSRGenerationDownload`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Keyfactor identifier of the CSR | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCSRGenerationDownloadRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsCSRGenerationResponseModel**](ModelsCSRGenerationResponseModel.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CSRGenerationGetPendingCSRs + +> []ModelsPendingCSRResponse CSRGenerationGetPendingCSRs(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).SqQueryString(sqQueryString).SqPageReturned(sqPageReturned).SqReturnLimit(sqReturnLimit).SqSortField(sqSortField).SqSortAscending(sqSortAscending).Execute() + +Returns a list of the currently pending CSRs according to the provided query + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + sqQueryString := "sqQueryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + sqPageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + sqReturnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + sqSortField := "sqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + sqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CSRGenerationApi.CSRGenerationGetPendingCSRs(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).SqQueryString(sqQueryString).SqPageReturned(sqPageReturned).SqReturnLimit(sqReturnLimit).SqSortField(sqSortField).SqSortAscending(sqSortAscending).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CSRGenerationApi.CSRGenerationGetPendingCSRs``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CSRGenerationGetPendingCSRs`: []ModelsPendingCSRResponse + fmt.Fprintf(os.Stdout, "Response from `CSRGenerationApi.CSRGenerationGetPendingCSRs`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCSRGenerationGetPendingCSRsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + **sqQueryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **sqPageReturned** | **int32** | The current page within the result set to be returned | + **sqReturnLimit** | **int32** | Maximum number of records to be returned in a single call | + **sqSortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **sqSortAscending** | **int32** | Field sort direction [0=ascending, 1=descending] | + +### Return type + +[**[]ModelsPendingCSRResponse**](ModelsPendingCSRResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CSRGenerationPostGenerate + +> ModelsCSRContents CSRGenerationPostGenerate(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Context(context).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Generates a CSR according the properties provided + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + context := *openapiclient.NewModelsEnrollmentCSRGenerationRequest("Subject_example", "KeyType_example", int32(123)) // ModelsEnrollmentCSRGenerationRequest | CSR properties used to define the request - Key type [RSA, ECC], Key sizes (ex: RSA 1024, 2048, 4096/ECC 256, 384, 521), template short name or OID + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CSRGenerationApi.CSRGenerationPostGenerate(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Context(context).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CSRGenerationApi.CSRGenerationPostGenerate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CSRGenerationPostGenerate`: ModelsCSRContents + fmt.Fprintf(os.Stdout, "Response from `CSRGenerationApi.CSRGenerationPostGenerate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCSRGenerationPostGenerateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **context** | [**ModelsEnrollmentCSRGenerationRequest**](ModelsEnrollmentCSRGenerationRequest.md) | CSR properties used to define the request - Key type [RSA, ECC], Key sizes (ex: RSA 1024, 2048, 4096/ECC 256, 384, 521), template short name or OID | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsCSRContents**](ModelsCSRContents.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v1/docs/CSSCMSDataModelModelsPamProviderTypeParamValue.md b/v1/docs/CSSCMSDataModelModelsPamProviderTypeParamValue.md new file mode 100644 index 0000000..abe9446 --- /dev/null +++ b/v1/docs/CSSCMSDataModelModelsPamProviderTypeParamValue.md @@ -0,0 +1,186 @@ +# CSSCMSDataModelModelsPamProviderTypeParamValue + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Value** | Pointer to **string** | | [optional] +**InstanceId** | Pointer to **int32** | | [optional] +**InstanceGuid** | Pointer to **string** | | [optional] +**Provider** | Pointer to [**CSSCMSDataModelModelsProvider**](CSSCMSDataModelModelsProvider.md) | | [optional] +**ProviderTypeParam** | Pointer to [**CSSCMSDataModelModelsProviderTypeParam**](CSSCMSDataModelModelsProviderTypeParam.md) | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsPamProviderTypeParamValue + +`func NewCSSCMSDataModelModelsPamProviderTypeParamValue() *CSSCMSDataModelModelsPamProviderTypeParamValue` + +NewCSSCMSDataModelModelsPamProviderTypeParamValue instantiates a new CSSCMSDataModelModelsPamProviderTypeParamValue object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsPamProviderTypeParamValueWithDefaults + +`func NewCSSCMSDataModelModelsPamProviderTypeParamValueWithDefaults() *CSSCMSDataModelModelsPamProviderTypeParamValue` + +NewCSSCMSDataModelModelsPamProviderTypeParamValueWithDefaults instantiates a new CSSCMSDataModelModelsPamProviderTypeParamValue object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetValue + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetInstanceId + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) GetInstanceId() int32` + +GetInstanceId returns the InstanceId field if non-nil, zero value otherwise. + +### GetInstanceIdOk + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) GetInstanceIdOk() (*int32, bool)` + +GetInstanceIdOk returns a tuple with the InstanceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstanceId + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) SetInstanceId(v int32)` + +SetInstanceId sets InstanceId field to given value. + +### HasInstanceId + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) HasInstanceId() bool` + +HasInstanceId returns a boolean if a field has been set. + +### GetInstanceGuid + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) GetInstanceGuid() string` + +GetInstanceGuid returns the InstanceGuid field if non-nil, zero value otherwise. + +### GetInstanceGuidOk + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) GetInstanceGuidOk() (*string, bool)` + +GetInstanceGuidOk returns a tuple with the InstanceGuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstanceGuid + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) SetInstanceGuid(v string)` + +SetInstanceGuid sets InstanceGuid field to given value. + +### HasInstanceGuid + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) HasInstanceGuid() bool` + +HasInstanceGuid returns a boolean if a field has been set. + +### GetProvider + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) GetProvider() CSSCMSDataModelModelsProvider` + +GetProvider returns the Provider field if non-nil, zero value otherwise. + +### GetProviderOk + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) GetProviderOk() (*CSSCMSDataModelModelsProvider, bool)` + +GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvider + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) SetProvider(v CSSCMSDataModelModelsProvider)` + +SetProvider sets Provider field to given value. + +### HasProvider + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) HasProvider() bool` + +HasProvider returns a boolean if a field has been set. + +### GetProviderTypeParam + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) GetProviderTypeParam() CSSCMSDataModelModelsProviderTypeParam` + +GetProviderTypeParam returns the ProviderTypeParam field if non-nil, zero value otherwise. + +### GetProviderTypeParamOk + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) GetProviderTypeParamOk() (*CSSCMSDataModelModelsProviderTypeParam, bool)` + +GetProviderTypeParamOk returns a tuple with the ProviderTypeParam field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderTypeParam + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) SetProviderTypeParam(v CSSCMSDataModelModelsProviderTypeParam)` + +SetProviderTypeParam sets ProviderTypeParam field to given value. + +### HasProviderTypeParam + +`func (o *CSSCMSDataModelModelsPamProviderTypeParamValue) HasProviderTypeParam() bool` + +HasProviderTypeParam returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/CSSCMSDataModelModelsProvider.md b/v1/docs/CSSCMSDataModelModelsProvider.md new file mode 100644 index 0000000..670eab8 --- /dev/null +++ b/v1/docs/CSSCMSDataModelModelsProvider.md @@ -0,0 +1,176 @@ +# CSSCMSDataModelModelsProvider + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Name** | **string** | | +**Area** | Pointer to **int32** | | [optional] +**ProviderType** | [**CSSCMSDataModelModelsProviderType**](CSSCMSDataModelModelsProviderType.md) | | +**ProviderTypeParamValues** | Pointer to [**[]CSSCMSDataModelModelsPamProviderTypeParamValue**](CSSCMSDataModelModelsPamProviderTypeParamValue.md) | | [optional] +**SecuredAreaId** | Pointer to **int32** | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsProvider + +`func NewCSSCMSDataModelModelsProvider(name string, providerType CSSCMSDataModelModelsProviderType, ) *CSSCMSDataModelModelsProvider` + +NewCSSCMSDataModelModelsProvider instantiates a new CSSCMSDataModelModelsProvider object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsProviderWithDefaults + +`func NewCSSCMSDataModelModelsProviderWithDefaults() *CSSCMSDataModelModelsProvider` + +NewCSSCMSDataModelModelsProviderWithDefaults instantiates a new CSSCMSDataModelModelsProvider object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CSSCMSDataModelModelsProvider) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsProvider) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsProvider) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CSSCMSDataModelModelsProvider) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *CSSCMSDataModelModelsProvider) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CSSCMSDataModelModelsProvider) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CSSCMSDataModelModelsProvider) SetName(v string)` + +SetName sets Name field to given value. + + +### GetArea + +`func (o *CSSCMSDataModelModelsProvider) GetArea() int32` + +GetArea returns the Area field if non-nil, zero value otherwise. + +### GetAreaOk + +`func (o *CSSCMSDataModelModelsProvider) GetAreaOk() (*int32, bool)` + +GetAreaOk returns a tuple with the Area field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArea + +`func (o *CSSCMSDataModelModelsProvider) SetArea(v int32)` + +SetArea sets Area field to given value. + +### HasArea + +`func (o *CSSCMSDataModelModelsProvider) HasArea() bool` + +HasArea returns a boolean if a field has been set. + +### GetProviderType + +`func (o *CSSCMSDataModelModelsProvider) GetProviderType() CSSCMSDataModelModelsProviderType` + +GetProviderType returns the ProviderType field if non-nil, zero value otherwise. + +### GetProviderTypeOk + +`func (o *CSSCMSDataModelModelsProvider) GetProviderTypeOk() (*CSSCMSDataModelModelsProviderType, bool)` + +GetProviderTypeOk returns a tuple with the ProviderType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderType + +`func (o *CSSCMSDataModelModelsProvider) SetProviderType(v CSSCMSDataModelModelsProviderType)` + +SetProviderType sets ProviderType field to given value. + + +### GetProviderTypeParamValues + +`func (o *CSSCMSDataModelModelsProvider) GetProviderTypeParamValues() []CSSCMSDataModelModelsPamProviderTypeParamValue` + +GetProviderTypeParamValues returns the ProviderTypeParamValues field if non-nil, zero value otherwise. + +### GetProviderTypeParamValuesOk + +`func (o *CSSCMSDataModelModelsProvider) GetProviderTypeParamValuesOk() (*[]CSSCMSDataModelModelsPamProviderTypeParamValue, bool)` + +GetProviderTypeParamValuesOk returns a tuple with the ProviderTypeParamValues field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderTypeParamValues + +`func (o *CSSCMSDataModelModelsProvider) SetProviderTypeParamValues(v []CSSCMSDataModelModelsPamProviderTypeParamValue)` + +SetProviderTypeParamValues sets ProviderTypeParamValues field to given value. + +### HasProviderTypeParamValues + +`func (o *CSSCMSDataModelModelsProvider) HasProviderTypeParamValues() bool` + +HasProviderTypeParamValues returns a boolean if a field has been set. + +### GetSecuredAreaId + +`func (o *CSSCMSDataModelModelsProvider) GetSecuredAreaId() int32` + +GetSecuredAreaId returns the SecuredAreaId field if non-nil, zero value otherwise. + +### GetSecuredAreaIdOk + +`func (o *CSSCMSDataModelModelsProvider) GetSecuredAreaIdOk() (*int32, bool)` + +GetSecuredAreaIdOk returns a tuple with the SecuredAreaId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecuredAreaId + +`func (o *CSSCMSDataModelModelsProvider) SetSecuredAreaId(v int32)` + +SetSecuredAreaId sets SecuredAreaId field to given value. + +### HasSecuredAreaId + +`func (o *CSSCMSDataModelModelsProvider) HasSecuredAreaId() bool` + +HasSecuredAreaId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/CSSCMSDataModelModelsProviderType.md b/v1/docs/CSSCMSDataModelModelsProviderType.md new file mode 100644 index 0000000..22ed2ac --- /dev/null +++ b/v1/docs/CSSCMSDataModelModelsProviderType.md @@ -0,0 +1,108 @@ +# CSSCMSDataModelModelsProviderType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**ProviderTypeParams** | Pointer to [**[]CSSCMSDataModelModelsProviderTypeParam**](CSSCMSDataModelModelsProviderTypeParam.md) | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsProviderType + +`func NewCSSCMSDataModelModelsProviderType() *CSSCMSDataModelModelsProviderType` + +NewCSSCMSDataModelModelsProviderType instantiates a new CSSCMSDataModelModelsProviderType object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsProviderTypeWithDefaults + +`func NewCSSCMSDataModelModelsProviderTypeWithDefaults() *CSSCMSDataModelModelsProviderType` + +NewCSSCMSDataModelModelsProviderTypeWithDefaults instantiates a new CSSCMSDataModelModelsProviderType object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CSSCMSDataModelModelsProviderType) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsProviderType) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsProviderType) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CSSCMSDataModelModelsProviderType) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *CSSCMSDataModelModelsProviderType) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CSSCMSDataModelModelsProviderType) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CSSCMSDataModelModelsProviderType) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *CSSCMSDataModelModelsProviderType) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetProviderTypeParams + +`func (o *CSSCMSDataModelModelsProviderType) GetProviderTypeParams() []CSSCMSDataModelModelsProviderTypeParam` + +GetProviderTypeParams returns the ProviderTypeParams field if non-nil, zero value otherwise. + +### GetProviderTypeParamsOk + +`func (o *CSSCMSDataModelModelsProviderType) GetProviderTypeParamsOk() (*[]CSSCMSDataModelModelsProviderTypeParam, bool)` + +GetProviderTypeParamsOk returns a tuple with the ProviderTypeParams field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderTypeParams + +`func (o *CSSCMSDataModelModelsProviderType) SetProviderTypeParams(v []CSSCMSDataModelModelsProviderTypeParam)` + +SetProviderTypeParams sets ProviderTypeParams field to given value. + +### HasProviderTypeParams + +`func (o *CSSCMSDataModelModelsProviderType) HasProviderTypeParams() bool` + +HasProviderTypeParams returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/CSSCMSDataModelModelsProviderTypeParam.md b/v1/docs/CSSCMSDataModelModelsProviderTypeParam.md new file mode 100644 index 0000000..0279d15 --- /dev/null +++ b/v1/docs/CSSCMSDataModelModelsProviderTypeParam.md @@ -0,0 +1,186 @@ +# CSSCMSDataModelModelsProviderTypeParam + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Name** | Pointer to **string** | | [optional] +**DisplayName** | Pointer to **string** | | [optional] +**DataType** | Pointer to **int32** | | [optional] +**InstanceLevel** | Pointer to **bool** | | [optional] +**ProviderType** | Pointer to [**CSSCMSDataModelModelsProviderType**](CSSCMSDataModelModelsProviderType.md) | | [optional] + +## Methods + +### NewCSSCMSDataModelModelsProviderTypeParam + +`func NewCSSCMSDataModelModelsProviderTypeParam() *CSSCMSDataModelModelsProviderTypeParam` + +NewCSSCMSDataModelModelsProviderTypeParam instantiates a new CSSCMSDataModelModelsProviderTypeParam object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCSSCMSDataModelModelsProviderTypeParamWithDefaults + +`func NewCSSCMSDataModelModelsProviderTypeParamWithDefaults() *CSSCMSDataModelModelsProviderTypeParam` + +NewCSSCMSDataModelModelsProviderTypeParamWithDefaults instantiates a new CSSCMSDataModelModelsProviderTypeParam object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CSSCMSDataModelModelsProviderTypeParam) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CSSCMSDataModelModelsProviderTypeParam) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CSSCMSDataModelModelsProviderTypeParam) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CSSCMSDataModelModelsProviderTypeParam) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *CSSCMSDataModelModelsProviderTypeParam) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CSSCMSDataModelModelsProviderTypeParam) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CSSCMSDataModelModelsProviderTypeParam) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *CSSCMSDataModelModelsProviderTypeParam) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *CSSCMSDataModelModelsProviderTypeParam) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *CSSCMSDataModelModelsProviderTypeParam) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *CSSCMSDataModelModelsProviderTypeParam) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *CSSCMSDataModelModelsProviderTypeParam) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetDataType + +`func (o *CSSCMSDataModelModelsProviderTypeParam) GetDataType() int32` + +GetDataType returns the DataType field if non-nil, zero value otherwise. + +### GetDataTypeOk + +`func (o *CSSCMSDataModelModelsProviderTypeParam) GetDataTypeOk() (*int32, bool)` + +GetDataTypeOk returns a tuple with the DataType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataType + +`func (o *CSSCMSDataModelModelsProviderTypeParam) SetDataType(v int32)` + +SetDataType sets DataType field to given value. + +### HasDataType + +`func (o *CSSCMSDataModelModelsProviderTypeParam) HasDataType() bool` + +HasDataType returns a boolean if a field has been set. + +### GetInstanceLevel + +`func (o *CSSCMSDataModelModelsProviderTypeParam) GetInstanceLevel() bool` + +GetInstanceLevel returns the InstanceLevel field if non-nil, zero value otherwise. + +### GetInstanceLevelOk + +`func (o *CSSCMSDataModelModelsProviderTypeParam) GetInstanceLevelOk() (*bool, bool)` + +GetInstanceLevelOk returns a tuple with the InstanceLevel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstanceLevel + +`func (o *CSSCMSDataModelModelsProviderTypeParam) SetInstanceLevel(v bool)` + +SetInstanceLevel sets InstanceLevel field to given value. + +### HasInstanceLevel + +`func (o *CSSCMSDataModelModelsProviderTypeParam) HasInstanceLevel() bool` + +HasInstanceLevel returns a boolean if a field has been set. + +### GetProviderType + +`func (o *CSSCMSDataModelModelsProviderTypeParam) GetProviderType() CSSCMSDataModelModelsProviderType` + +GetProviderType returns the ProviderType field if non-nil, zero value otherwise. + +### GetProviderTypeOk + +`func (o *CSSCMSDataModelModelsProviderTypeParam) GetProviderTypeOk() (*CSSCMSDataModelModelsProviderType, bool)` + +GetProviderTypeOk returns a tuple with the ProviderType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderType + +`func (o *CSSCMSDataModelModelsProviderTypeParam) SetProviderType(v CSSCMSDataModelModelsProviderType)` + +SetProviderType sets ProviderType field to given value. + +### HasProviderType + +`func (o *CSSCMSDataModelModelsProviderTypeParam) HasProviderType() bool` + +HasProviderType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/CertificateApi.md b/v1/docs/CertificateApi.md new file mode 100644 index 0000000..e00218d --- /dev/null +++ b/v1/docs/CertificateApi.md @@ -0,0 +1,1563 @@ +# \CertificateApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CertificateAnalyzeCert**](CertificateApi.md#CertificateAnalyzeCert) | **Post** /Certificates/Analyze | Returns the public information of the certificate +[**CertificateCertificateHistory**](CertificateApi.md#CertificateCertificateHistory) | **Get** /Certificates/{id}/History | Gets the history of operations on a certificate +[**CertificateCompareMetadata**](CertificateApi.md#CertificateCompareMetadata) | **Get** /Certificates/Metadata/Compare | Compares the metadata value provided with the metadata value associated with the specified certificate +[**CertificateDeleteByQuery**](CertificateApi.md#CertificateDeleteByQuery) | **Delete** /Certificates/Query | Deletes multiple persisted certificate entities selected by a given query +[**CertificateDeleteCertificate**](CertificateApi.md#CertificateDeleteCertificate) | **Delete** /Certificates/{id} | Deletes a persisted certificate by its unique id as well as the stored private key (if present) associated with it +[**CertificateDeleteCertificates**](CertificateApi.md#CertificateDeleteCertificates) | **Delete** /Certificates | Deletes multiple persisted certificates by their unique ids +[**CertificateDeletePrivateKeys0**](CertificateApi.md#CertificateDeletePrivateKeys0) | **Delete** /Certificates/PrivateKey | Deletes the persisted private keys of multiple certificates by the unique ids of the Certificates +[**CertificateDeletePrivateKeys1**](CertificateApi.md#CertificateDeletePrivateKeys1) | **Delete** /Certificates/PrivateKey/{id} | Deletes the persisted private key of the certificate associated with the provided identifier +[**CertificateDownloadCertificateAsync**](CertificateApi.md#CertificateDownloadCertificateAsync) | **Post** /Certificates/Download | Downloads the persisted certificate associated with the provided query +[**CertificateGetCertificate**](CertificateApi.md#CertificateGetCertificate) | **Get** /Certificates/{id} | Returns a single certificate that matches the id +[**CertificateGetCertificateLocations**](CertificateApi.md#CertificateGetCertificateLocations) | **Get** /Certificates/Locations/{id} | Returns a list of locations the certificate is in +[**CertificateGetCertificateSecurity**](CertificateApi.md#CertificateGetCertificateSecurity) | **Get** /Certificates/{id}/Security | Gets the list of Security Identities and which permissions they have on the given certificate. +[**CertificateIdentityAudit**](CertificateApi.md#CertificateIdentityAudit) | **Get** /Certificates/IdentityAudit/{id} | Audit identity permissions for certificate +[**CertificatePostImportCertificate**](CertificateApi.md#CertificatePostImportCertificate) | **Post** /Certificates/Import | Imports the provided certificate into the Keyfactor instance, including any provided associated data +[**CertificateQueryCertificates**](CertificateApi.md#CertificateQueryCertificates) | **Get** /Certificates | Returns all certificates according to the provided filter and output parameters +[**CertificateRecoverCertificateAsync**](CertificateApi.md#CertificateRecoverCertificateAsync) | **Post** /Certificates/Recover | Recovers the persisted certificate associated with the provided query +[**CertificateRevoke**](CertificateApi.md#CertificateRevoke) | **Post** /Certificates/Revoke | Revokes the certificates associated with the provided identifiers and associates the provided data with the revocation +[**CertificateRevokeAll**](CertificateApi.md#CertificateRevokeAll) | **Post** /Certificates/RevokeAll | Revokes the certificates associated with the provided query and Collection Id and associates the provided data with the revocation +[**CertificateUpdateAllMetadata**](CertificateApi.md#CertificateUpdateAllMetadata) | **Put** /Certificates/Metadata/All | Updates the metadata for certificates associated with the certificate identifiers or query provided +[**CertificateUpdateMetadata**](CertificateApi.md#CertificateUpdateMetadata) | **Put** /Certificates/Metadata | Updates the metadata for the certificate associated with the identifier provided +[**CertificateValidateCertificate**](CertificateApi.md#CertificateValidateCertificate) | **Get** /Certificates/{id}/Validate | Validates the certificate chain can be built. + + + +## CertificateAnalyzeCert + +> []ModelsCertificateDetails CertificateAnalyzeCert(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns the public information of the certificate + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + request := *openapiclient.NewKeyfactorApiModelsCertificatesAnalyzeCertificateRequest() // KeyfactorApiModelsCertificatesAnalyzeCertificateRequest | The certificate to analyze + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateApi.CertificateAnalyzeCert(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.CertificateAnalyzeCert``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CertificateAnalyzeCert`: []ModelsCertificateDetails + fmt.Fprintf(os.Stdout, "Response from `CertificateApi.CertificateAnalyzeCert`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateAnalyzeCertRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **request** | [**KeyfactorApiModelsCertificatesAnalyzeCertificateRequest**](KeyfactorApiModelsCertificatesAnalyzeCertificateRequest.md) | The certificate to analyze | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**[]ModelsCertificateDetails**](ModelsCertificateDetails.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CertificateCertificateHistory + +> []ModelsPKICertificateOperation CertificateCertificateHistory(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).QueryPageReturned(queryPageReturned).QueryReturnLimit(queryReturnLimit).QuerySortField(querySortField).QuerySortAscending(querySortAscending).Execute() + +Gets the history of operations on a certificate + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | The Id of the certificate + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + collectionId := int32(56) // int32 | The collection the certificate could be in. Defaults to no collection. (optional) + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + queryPageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + queryReturnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + querySortField := "querySortField_example" // string | Field by which the results should be sorted (OperationStart, OperationEnd, UserName) (optional) + querySortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateApi.CertificateCertificateHistory(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).QueryPageReturned(queryPageReturned).QueryReturnLimit(queryReturnLimit).QuerySortField(querySortField).QuerySortAscending(querySortAscending).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.CertificateCertificateHistory``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CertificateCertificateHistory`: []ModelsPKICertificateOperation + fmt.Fprintf(os.Stdout, "Response from `CertificateApi.CertificateCertificateHistory`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | The Id of the certificate | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateCertificateHistoryRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **collectionId** | **int32** | The collection the certificate could be in. Defaults to no collection. | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + **queryPageReturned** | **int32** | The current page within the result set to be returned | + **queryReturnLimit** | **int32** | Maximum number of records to be returned in a single call | + **querySortField** | **string** | Field by which the results should be sorted (OperationStart, OperationEnd, UserName) | + **querySortAscending** | **int32** | Field sort direction [0=ascending, 1=descending] | + +### Return type + +[**[]ModelsPKICertificateOperation**](ModelsPKICertificateOperation.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CertificateCompareMetadata + +> bool CertificateCompareMetadata(ctx).CertificateId(certificateId).MetadataFieldName(metadataFieldName).Value(value).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Compares the metadata value provided with the metadata value associated with the specified certificate + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + certificateId := int32(56) // int32 | Certificate identifier + metadataFieldName := "metadataFieldName_example" // string | Metadata field being compared + value := "value_example" // string | Value to compare against + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + collectionId := int32(56) // int32 | Optional certificate collection identifier used to ensure user access to the certificate (optional) + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateApi.CertificateCompareMetadata(context.Background()).CertificateId(certificateId).MetadataFieldName(metadataFieldName).Value(value).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.CertificateCompareMetadata``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CertificateCompareMetadata`: bool + fmt.Fprintf(os.Stdout, "Response from `CertificateApi.CertificateCompareMetadata`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateCompareMetadataRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **certificateId** | **int32** | Certificate identifier | + **metadataFieldName** | **string** | Metadata field being compared | + **value** | **string** | Value to compare against | + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **collectionId** | **int32** | Optional certificate collection identifier used to ensure user access to the certificate | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +**bool** + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CertificateDeleteByQuery + +> CertificateDeleteByQuery(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Sq(sq).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes multiple persisted certificate entities selected by a given query + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + sq := "sq_example" // string | Query by which certificates should be filtered for deletion + collectionId := int32(56) // int32 | Optional certificate collection identifier used to ensure user access to the certificate (optional) + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateApi.CertificateDeleteByQuery(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Sq(sq).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.CertificateDeleteByQuery``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateDeleteByQueryRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **sq** | **string** | Query by which certificates should be filtered for deletion | + **collectionId** | **int32** | Optional certificate collection identifier used to ensure user access to the certificate | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CertificateDeleteCertificate + +> CertificateDeleteCertificate(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes a persisted certificate by its unique id as well as the stored private key (if present) associated with it + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Keyfactor identifier of the certificate record + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + collectionId := int32(56) // int32 | Optional certificate collection identifier used to ensure user access to the certificate (optional) + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateApi.CertificateDeleteCertificate(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.CertificateDeleteCertificate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Keyfactor identifier of the certificate record | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateDeleteCertificateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **collectionId** | **int32** | Optional certificate collection identifier used to ensure user access to the certificate | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CertificateDeleteCertificates + +> CertificateDeleteCertificates(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Ids(ids).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes multiple persisted certificates by their unique ids + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + ids := []int32{int32(123)} // []int32 | The array of ids for certificate that are to be deleted + collectionId := int32(56) // int32 | Optional certificate collection identifier used to ensure user access to the certificate (optional) + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateApi.CertificateDeleteCertificates(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Ids(ids).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.CertificateDeleteCertificates``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateDeleteCertificatesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **ids** | **[]int32** | The array of ids for certificate that are to be deleted | + **collectionId** | **int32** | Optional certificate collection identifier used to ensure user access to the certificate | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CertificateDeletePrivateKeys0 + +> CertificateDeletePrivateKeys0(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Ids(ids).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes the persisted private keys of multiple certificates by the unique ids of the Certificates + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + ids := []int32{int32(123)} // []int32 | Keyfactor identifiers of the cetficiates for which the associated private keys should be deleted + collectionId := int32(56) // int32 | Optional certificate collection identifier used to ensure user access to the certificate (optional) + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateApi.CertificateDeletePrivateKeys0(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Ids(ids).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.CertificateDeletePrivateKeys0``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateDeletePrivateKeys0Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **ids** | **[]int32** | Keyfactor identifiers of the cetficiates for which the associated private keys should be deleted | + **collectionId** | **int32** | Optional certificate collection identifier used to ensure user access to the certificate | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CertificateDeletePrivateKeys1 + +> CertificateDeletePrivateKeys1(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes the persisted private key of the certificate associated with the provided identifier + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Keyfactor identifier of the certificate for which the associated private key should be deleted + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + collectionId := int32(56) // int32 | Optional certificate collection identifier used to ensure user access to the certificate (optional) + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateApi.CertificateDeletePrivateKeys1(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.CertificateDeletePrivateKeys1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Keyfactor identifier of the certificate for which the associated private key should be deleted | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateDeletePrivateKeys1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **collectionId** | **int32** | Optional certificate collection identifier used to ensure user access to the certificate | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CertificateDownloadCertificateAsync + +> ModelsCertificateDownloadResponse CertificateDownloadCertificateAsync(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Rq(rq).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Downloads the persisted certificate associated with the provided query + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + rq := *openapiclient.NewModelsCertificateDownloadRequest() // ModelsCertificateDownloadRequest | Query to filter the certificate to be recovered + collectionId := int32(56) // int32 | Optional certificate collection identifier used to ensure user access to the certificate (optional) + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateApi.CertificateDownloadCertificateAsync(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Rq(rq).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.CertificateDownloadCertificateAsync``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CertificateDownloadCertificateAsync`: ModelsCertificateDownloadResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateApi.CertificateDownloadCertificateAsync`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateDownloadCertificateAsyncRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **rq** | [**ModelsCertificateDownloadRequest**](ModelsCertificateDownloadRequest.md) | Query to filter the certificate to be recovered | + **collectionId** | **int32** | Optional certificate collection identifier used to ensure user access to the certificate | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsCertificateDownloadResponse**](ModelsCertificateDownloadResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CertificateGetCertificate + +> ModelsCertificateRetrievalResponse CertificateGetCertificate(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).IncludeLocations(includeLocations).IncludeMetadata(includeMetadata).CollectionId(collectionId).Verbose(verbose).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns a single certificate that matches the id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Keyfactor certificate identifier + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + includeLocations := true // bool | Include locations data for the certificate to be returned (optional) + includeMetadata := true // bool | Include metadata for the certificate to be returned (optional) + collectionId := int32(56) // int32 | Optional certificate collection identifier used to ensure user access to the certificate (optional) + verbose := int32(56) // int32 | (optional) + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateApi.CertificateGetCertificate(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).IncludeLocations(includeLocations).IncludeMetadata(includeMetadata).CollectionId(collectionId).Verbose(verbose).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.CertificateGetCertificate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CertificateGetCertificate`: ModelsCertificateRetrievalResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateApi.CertificateGetCertificate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Keyfactor certificate identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateGetCertificateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **includeLocations** | **bool** | Include locations data for the certificate to be returned | + **includeMetadata** | **bool** | Include metadata for the certificate to be returned | + **collectionId** | **int32** | Optional certificate collection identifier used to ensure user access to the certificate | + **verbose** | **int32** | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsCertificateRetrievalResponse**](ModelsCertificateRetrievalResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CertificateGetCertificateLocations + +> KeyfactorApiModelsCertificatesCertificateLocationsResponse CertificateGetCertificateLocations(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns a list of locations the certificate is in + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Keyfactor certificate identifier + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + collectionId := int32(56) // int32 | Optional certificate collection identifier used to ensure user access to the certificate (optional) + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateApi.CertificateGetCertificateLocations(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.CertificateGetCertificateLocations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CertificateGetCertificateLocations`: KeyfactorApiModelsCertificatesCertificateLocationsResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateApi.CertificateGetCertificateLocations`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Keyfactor certificate identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateGetCertificateLocationsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **collectionId** | **int32** | Optional certificate collection identifier used to ensure user access to the certificate | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsCertificatesCertificateLocationsResponse**](KeyfactorApiModelsCertificatesCertificateLocationsResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CertificateGetCertificateSecurity + +> ModelsSecurityCertificatePermissions CertificateGetCertificateSecurity(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Gets the list of Security Identities and which permissions they have on the given certificate. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | The Id of the certificate permissions are being checked on + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + collectionId := int32(56) // int32 | The Id of the collection the certificate belongs in. Defaults to no collection (optional) + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateApi.CertificateGetCertificateSecurity(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.CertificateGetCertificateSecurity``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CertificateGetCertificateSecurity`: ModelsSecurityCertificatePermissions + fmt.Fprintf(os.Stdout, "Response from `CertificateApi.CertificateGetCertificateSecurity`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | The Id of the certificate permissions are being checked on | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateGetCertificateSecurityRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **collectionId** | **int32** | The Id of the collection the certificate belongs in. Defaults to no collection | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsSecurityCertificatePermissions**](ModelsSecurityCertificatePermissions.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CertificateIdentityAudit + +> []KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse CertificateIdentityAudit(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Audit identity permissions for certificate + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | The Id of the certificate being checked + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + collectionId := int32(56) // int32 | An optional parameter for the collectin Id the certificate is in. Defaults to no collection (optional) + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateApi.CertificateIdentityAudit(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.CertificateIdentityAudit``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CertificateIdentityAudit`: []KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateApi.CertificateIdentityAudit`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | The Id of the certificate being checked | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateIdentityAuditRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **collectionId** | **int32** | An optional parameter for the collectin Id the certificate is in. Defaults to no collection | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**[]KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse**](KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CertificatePostImportCertificate + +> ModelsCertificateImportResponseModel CertificatePostImportCertificate(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Imports the provided certificate into the Keyfactor instance, including any provided associated data + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + req := *openapiclient.NewModelsCertificateImportRequestModel("Certificate_example") // ModelsCertificateImportRequestModel | Request containing the base 64 encoded string and related certificate information, such as certificate stores, metadata, and password + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateApi.CertificatePostImportCertificate(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.CertificatePostImportCertificate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CertificatePostImportCertificate`: ModelsCertificateImportResponseModel + fmt.Fprintf(os.Stdout, "Response from `CertificateApi.CertificatePostImportCertificate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificatePostImportCertificateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **req** | [**ModelsCertificateImportRequestModel**](ModelsCertificateImportRequestModel.md) | Request containing the base 64 encoded string and related certificate information, such as certificate stores, metadata, and password | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsCertificateImportResponseModel**](ModelsCertificateImportResponseModel.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CertificateQueryCertificates + +> []ModelsCertificateRetrievalResponse CertificateQueryCertificates(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).IncludeLocations(includeLocations).IncludeMetadata(includeMetadata).IncludeHasPrivateKey(includeHasPrivateKey).Verbose(verbose).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).PqIncludeRevoked(pqIncludeRevoked).PqIncludeExpired(pqIncludeExpired).Execute() + +Returns all certificates according to the provided filter and output parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + collectionId := int32(56) // int32 | Optional certificate collection identifier used to ensure user access to the certificate (optional) + includeLocations := true // bool | Include locations data for the certificates to be returned (optional) + includeMetadata := true // bool | Include metadata for the certificates to be returned (optional) + includeHasPrivateKey := true // bool | Include whether the certificates to be returned have private keys stored in the Keyfactor database (optional) + verbose := int32(56) // int32 | (optional) + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + pqQueryString := "pqQueryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + pqPageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + pqReturnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) + pqIncludeRevoked := true // bool | Select 'true' to include revoked certificates in the results (optional) + pqIncludeExpired := true // bool | Select 'true' to include expired certificates in the results (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateApi.CertificateQueryCertificates(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).IncludeLocations(includeLocations).IncludeMetadata(includeMetadata).IncludeHasPrivateKey(includeHasPrivateKey).Verbose(verbose).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).PqIncludeRevoked(pqIncludeRevoked).PqIncludeExpired(pqIncludeExpired).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.CertificateQueryCertificates``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CertificateQueryCertificates`: []ModelsCertificateRetrievalResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateApi.CertificateQueryCertificates`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateQueryCertificatesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **collectionId** | **int32** | Optional certificate collection identifier used to ensure user access to the certificate | + **includeLocations** | **bool** | Include locations data for the certificates to be returned | + **includeMetadata** | **bool** | Include metadata for the certificates to be returned | + **includeHasPrivateKey** | **bool** | Include whether the certificates to be returned have private keys stored in the Keyfactor database | + **verbose** | **int32** | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + **pqQueryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **pqPageReturned** | **int32** | The current page within the result set to be returned | + **pqReturnLimit** | **int32** | Maximum number of records to be returned in a single call | + **pqSortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **pqSortAscending** | **int32** | Field sort direction [0=ascending, 1=descending] | + **pqIncludeRevoked** | **bool** | Select 'true' to include revoked certificates in the results | + **pqIncludeExpired** | **bool** | Select 'true' to include expired certificates in the results | + +### Return type + +[**[]ModelsCertificateRetrievalResponse**](ModelsCertificateRetrievalResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CertificateRecoverCertificateAsync + +> ModelsRecoveryResponse CertificateRecoverCertificateAsync(ctx).XCertificateformat(xCertificateformat).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Rq(rq).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Recovers the persisted certificate associated with the provided query + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xCertificateformat := "xCertificateformat_example" // string | Desired format [PFX, PEM] (default to "PEM") + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + rq := *openapiclient.NewModelsCertificateRecoveryRequest("Password_example") // ModelsCertificateRecoveryRequest | Query to filter the certificate to be recovered + collectionId := int32(56) // int32 | Optional certificate collection identifier used to ensure user access to the certificate (optional) + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateApi.CertificateRecoverCertificateAsync(context.Background()).XCertificateformat(xCertificateformat).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Rq(rq).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.CertificateRecoverCertificateAsync``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CertificateRecoverCertificateAsync`: ModelsRecoveryResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateApi.CertificateRecoverCertificateAsync`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateRecoverCertificateAsyncRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xCertificateformat** | **string** | Desired format [PFX, PEM] | [default to "PEM"] + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **rq** | [**ModelsCertificateRecoveryRequest**](ModelsCertificateRecoveryRequest.md) | Query to filter the certificate to be recovered | + **collectionId** | **int32** | Optional certificate collection identifier used to ensure user access to the certificate | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsRecoveryResponse**](ModelsRecoveryResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CertificateRevoke + +> ModelsRevocationRevocationResponse CertificateRevoke(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Revokes the certificates associated with the provided identifiers and associates the provided data with the revocation + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + request := *openapiclient.NewModelsRevokeCertificateRequest() // ModelsRevokeCertificateRequest | Contains the Keyfactor certificate identifiers and revocation data + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateApi.CertificateRevoke(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.CertificateRevoke``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CertificateRevoke`: ModelsRevocationRevocationResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateApi.CertificateRevoke`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateRevokeRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **request** | [**ModelsRevokeCertificateRequest**](ModelsRevokeCertificateRequest.md) | Contains the Keyfactor certificate identifiers and revocation data | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsRevocationRevocationResponse**](ModelsRevocationRevocationResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CertificateRevokeAll + +> ModelsRevocationRevocationResponse CertificateRevokeAll(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Revokes the certificates associated with the provided query and Collection Id and associates the provided data with the revocation + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + request := *openapiclient.NewModelsRevokeAllCertificatesRequest(int32(123), "Comment_example") // ModelsRevokeAllCertificatesRequest | Contains the Keyfactor Query and revocation data + collectionId := int32(56) // int32 | A collection Id to be used for permissions and part of the query to revoke certificates (optional) + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateApi.CertificateRevokeAll(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.CertificateRevokeAll``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CertificateRevokeAll`: ModelsRevocationRevocationResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateApi.CertificateRevokeAll`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateRevokeAllRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **request** | [**ModelsRevokeAllCertificatesRequest**](ModelsRevokeAllCertificatesRequest.md) | Contains the Keyfactor Query and revocation data | + **collectionId** | **int32** | A collection Id to be used for permissions and part of the query to revoke certificates | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsRevocationRevocationResponse**](ModelsRevocationRevocationResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CertificateUpdateAllMetadata + +> CertificateUpdateAllMetadata(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).MetadataUpdate(metadataUpdate).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Updates the metadata for certificates associated with the certificate identifiers or query provided + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + metadataUpdate := *openapiclient.NewModelsMetadataAllUpdateRequest([]openapiclient.ModelsMetadataSingleUpdateRequest{*openapiclient.NewModelsMetadataSingleUpdateRequest()}) // ModelsMetadataAllUpdateRequest | Contains the Keyfactor certificate identifier and the metadata to be updated + collectionId := int32(56) // int32 | Optional certificate collection identifier used to ensure user access to the certificate (optional) + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateApi.CertificateUpdateAllMetadata(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).MetadataUpdate(metadataUpdate).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.CertificateUpdateAllMetadata``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateUpdateAllMetadataRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **metadataUpdate** | [**ModelsMetadataAllUpdateRequest**](ModelsMetadataAllUpdateRequest.md) | Contains the Keyfactor certificate identifier and the metadata to be updated | + **collectionId** | **int32** | Optional certificate collection identifier used to ensure user access to the certificate | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CertificateUpdateMetadata + +> CertificateUpdateMetadata(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).MetadataUpdate(metadataUpdate).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Updates the metadata for the certificate associated with the identifier provided + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + metadataUpdate := *openapiclient.NewModelsMetadataUpdateRequest(map[string]string{"key": "Inner_example"}) // ModelsMetadataUpdateRequest | Contains the Keyfactor certificate identifier and the metadata to be updated + collectionId := int32(56) // int32 | Optional certificate collection identifier used to ensure user access to the certificate (optional) + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateApi.CertificateUpdateMetadata(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).MetadataUpdate(metadataUpdate).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.CertificateUpdateMetadata``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateUpdateMetadataRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **metadataUpdate** | [**ModelsMetadataUpdateRequest**](ModelsMetadataUpdateRequest.md) | Contains the Keyfactor certificate identifier and the metadata to be updated | + **collectionId** | **int32** | Optional certificate collection identifier used to ensure user access to the certificate | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CertificateValidateCertificate + +> ModelsCertificateValidationResponse CertificateValidateCertificate(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Validates the certificate chain can be built. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | The Id of the certificate being checked + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + collectionId := int32(56) // int32 | An optional parameter for the collectin Id the certificate is in. Defaults to no collection (optional) + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateApi.CertificateValidateCertificate(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateApi.CertificateValidateCertificate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CertificateValidateCertificate`: ModelsCertificateValidationResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateApi.CertificateValidateCertificate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | The Id of the certificate being checked | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateValidateCertificateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **collectionId** | **int32** | An optional parameter for the collectin Id the certificate is in. Defaults to no collection | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsCertificateValidationResponse**](ModelsCertificateValidationResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v1/docs/CertificateAuthorityApi.md b/v1/docs/CertificateAuthorityApi.md new file mode 100644 index 0000000..ab56990 --- /dev/null +++ b/v1/docs/CertificateAuthorityApi.md @@ -0,0 +1,503 @@ +# \CertificateAuthorityApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CertificateAuthorityCreateCA**](CertificateAuthorityApi.md#CertificateAuthorityCreateCA) | **Post** /CertificateAuthority | Creates a new CertificateAuthority object +[**CertificateAuthorityDeleteCA**](CertificateAuthorityApi.md#CertificateAuthorityDeleteCA) | **Delete** /CertificateAuthority/{id} | Deletes a CertificateAuthority from the system, specified by ID +[**CertificateAuthorityGetCa**](CertificateAuthorityApi.md#CertificateAuthorityGetCa) | **Get** /CertificateAuthority/{id} | Returns details for a single CA, specified by ID +[**CertificateAuthorityGetCas**](CertificateAuthorityApi.md#CertificateAuthorityGetCas) | **Get** /CertificateAuthority | Returns all certificate authorities +[**CertificateAuthorityPublishCRL**](CertificateAuthorityApi.md#CertificateAuthorityPublishCRL) | **Post** /CertificateAuthority/PublishCRL | Publishes a CRL according to the provided request +[**CertificateAuthorityTestCertificateAuthority**](CertificateAuthorityApi.md#CertificateAuthorityTestCertificateAuthority) | **Post** /CertificateAuthority/Test | Validates the connection info for the CA provided by the model. +[**CertificateAuthorityUpdateCA**](CertificateAuthorityApi.md#CertificateAuthorityUpdateCA) | **Put** /CertificateAuthority | Updates a CertificateAuthority object + + + +## CertificateAuthorityCreateCA + +> ModelsCertificateAuthoritiesCertificateAuthorityResponse CertificateAuthorityCreateCA(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Ca(ca).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Creates a new CertificateAuthority object + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + ca := *openapiclient.NewModelsCertificateAuthoritiesCertificateAuthorityRequest() // ModelsCertificateAuthoritiesCertificateAuthorityRequest | + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateAuthorityApi.CertificateAuthorityCreateCA(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Ca(ca).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.CertificateAuthorityCreateCA``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CertificateAuthorityCreateCA`: ModelsCertificateAuthoritiesCertificateAuthorityResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateAuthorityApi.CertificateAuthorityCreateCA`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateAuthorityCreateCARequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **ca** | [**ModelsCertificateAuthoritiesCertificateAuthorityRequest**](ModelsCertificateAuthoritiesCertificateAuthorityRequest.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsCertificateAuthoritiesCertificateAuthorityResponse**](ModelsCertificateAuthoritiesCertificateAuthorityResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CertificateAuthorityDeleteCA + +> CertificateAuthorityDeleteCA(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes a CertificateAuthority from the system, specified by ID + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateAuthorityApi.CertificateAuthorityDeleteCA(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.CertificateAuthorityDeleteCA``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateAuthorityDeleteCARequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CertificateAuthorityGetCa + +> ModelsCertificateAuthoritiesCertificateAuthorityResponse CertificateAuthorityGetCa(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns details for a single CA, specified by ID + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateAuthorityApi.CertificateAuthorityGetCa(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.CertificateAuthorityGetCa``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CertificateAuthorityGetCa`: ModelsCertificateAuthoritiesCertificateAuthorityResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateAuthorityApi.CertificateAuthorityGetCa`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateAuthorityGetCaRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsCertificateAuthoritiesCertificateAuthorityResponse**](ModelsCertificateAuthoritiesCertificateAuthorityResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CertificateAuthorityGetCas + +> []ModelsCertificateAuthoritiesCertificateAuthorityResponse CertificateAuthorityGetCas(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + +Returns all certificate authorities + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + pqQueryString := "pqQueryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + pqPageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + pqReturnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateAuthorityApi.CertificateAuthorityGetCas(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.CertificateAuthorityGetCas``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CertificateAuthorityGetCas`: []ModelsCertificateAuthoritiesCertificateAuthorityResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateAuthorityApi.CertificateAuthorityGetCas`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateAuthorityGetCasRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + **pqQueryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **pqPageReturned** | **int32** | The current page within the result set to be returned | + **pqReturnLimit** | **int32** | Maximum number of records to be returned in a single call | + **pqSortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **pqSortAscending** | **int32** | Field sort direction [0=ascending, 1=descending] | + +### Return type + +[**[]ModelsCertificateAuthoritiesCertificateAuthorityResponse**](ModelsCertificateAuthoritiesCertificateAuthorityResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CertificateAuthorityPublishCRL + +> CertificateAuthorityPublishCRL(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Crlrequest(crlrequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Publishes a CRL according to the provided request + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + crlrequest := *openapiclient.NewModelsCRLRequestModel("CertificateAuthorityLogicalName_example") // ModelsCRLRequestModel | Host and logical name of the CA for which the CRL should be published + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateAuthorityApi.CertificateAuthorityPublishCRL(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Crlrequest(crlrequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.CertificateAuthorityPublishCRL``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateAuthorityPublishCRLRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **crlrequest** | [**ModelsCRLRequestModel**](ModelsCRLRequestModel.md) | Host and logical name of the CA for which the CRL should be published | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CertificateAuthorityTestCertificateAuthority + +> KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse CertificateAuthorityTestCertificateAuthority(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Ca(ca).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Validates the connection info for the CA provided by the model. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + ca := *openapiclient.NewModelsCertificateAuthoritiesCertificateAuthorityRequest() // ModelsCertificateAuthoritiesCertificateAuthorityRequest | The CA being tested. + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateAuthorityApi.CertificateAuthorityTestCertificateAuthority(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Ca(ca).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.CertificateAuthorityTestCertificateAuthority``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CertificateAuthorityTestCertificateAuthority`: KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateAuthorityApi.CertificateAuthorityTestCertificateAuthority`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateAuthorityTestCertificateAuthorityRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **ca** | [**ModelsCertificateAuthoritiesCertificateAuthorityRequest**](ModelsCertificateAuthoritiesCertificateAuthorityRequest.md) | The CA being tested. | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse**](KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CertificateAuthorityUpdateCA + +> ModelsCertificateAuthoritiesCertificateAuthorityResponse CertificateAuthorityUpdateCA(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Ca(ca).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Updates a CertificateAuthority object + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + ca := *openapiclient.NewModelsCertificateAuthoritiesCertificateAuthorityRequest() // ModelsCertificateAuthoritiesCertificateAuthorityRequest | + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateAuthorityApi.CertificateAuthorityUpdateCA(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Ca(ca).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateAuthorityApi.CertificateAuthorityUpdateCA``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CertificateAuthorityUpdateCA`: ModelsCertificateAuthoritiesCertificateAuthorityResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateAuthorityApi.CertificateAuthorityUpdateCA`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateAuthorityUpdateCARequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **ca** | [**ModelsCertificateAuthoritiesCertificateAuthorityRequest**](ModelsCertificateAuthoritiesCertificateAuthorityRequest.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsCertificateAuthoritiesCertificateAuthorityResponse**](ModelsCertificateAuthoritiesCertificateAuthorityResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v1/docs/CertificateCollectionApi.md b/v1/docs/CertificateCollectionApi.md new file mode 100644 index 0000000..f5ef85b --- /dev/null +++ b/v1/docs/CertificateCollectionApi.md @@ -0,0 +1,519 @@ +# \CertificateCollectionApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CertificateCollectionCopyFromExistingCollection**](CertificateCollectionApi.md#CertificateCollectionCopyFromExistingCollection) | **Post** /CertificateCollections/Copy | Creates a new certificate collection from an existing collection. The permissions, query and description of the existing collection are copied when creating the new record, with the option to overwrite the query or description. +[**CertificateCollectionCreateCollection**](CertificateCollectionApi.md#CertificateCollectionCreateCollection) | **Post** /CertificateCollections | Creates a new certificate collection with the provided properties +[**CertificateCollectionGetCollection0**](CertificateCollectionApi.md#CertificateCollectionGetCollection0) | **Get** /CertificateCollections/{id} | Returns the certificate collection definition associated with the provided Keyfactor identifier +[**CertificateCollectionGetCollection1**](CertificateCollectionApi.md#CertificateCollectionGetCollection1) | **Get** /CertificateCollections/{name} | Returns the certificate collection associated with the provided collection name +[**CertificateCollectionGetCollections**](CertificateCollectionApi.md#CertificateCollectionGetCollections) | **Get** /CertificateCollections | Returns all certificate collections +[**CertificateCollectionSetCollectionPermissions**](CertificateCollectionApi.md#CertificateCollectionSetCollectionPermissions) | **Post** /CertificateCollections/{id}/Permissions | Set the permissions for a collection +[**CertificateCollectionUpdateCollection**](CertificateCollectionApi.md#CertificateCollectionUpdateCollection) | **Put** /CertificateCollections | Updates an existing certificate collection with the provided properties + + + +## CertificateCollectionCopyFromExistingCollection + +> KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse CertificateCollectionCopyFromExistingCollection(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Creates a new certificate collection from an existing collection. The permissions, query and description of the existing collection are copied when creating the new record, with the option to overwrite the query or description. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + request := *openapiclient.NewKeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest(int32(123), "Name_example") // KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest | Information related to the certificate collection query + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateCollectionApi.CertificateCollectionCopyFromExistingCollection(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateCollectionApi.CertificateCollectionCopyFromExistingCollection``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CertificateCollectionCopyFromExistingCollection`: KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateCollectionApi.CertificateCollectionCopyFromExistingCollection`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateCollectionCopyFromExistingCollectionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **request** | [**KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest**](KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest.md) | Information related to the certificate collection query | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse**](KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CertificateCollectionCreateCollection + +> KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse CertificateCollectionCreateCollection(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Creates a new certificate collection with the provided properties + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + request := *openapiclient.NewKeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest("Name_example") // KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest | Information related to the certificate collection query + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateCollectionApi.CertificateCollectionCreateCollection(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateCollectionApi.CertificateCollectionCreateCollection``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CertificateCollectionCreateCollection`: KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateCollectionApi.CertificateCollectionCreateCollection`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateCollectionCreateCollectionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **request** | [**KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest**](KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest.md) | Information related to the certificate collection query | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse**](KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CertificateCollectionGetCollection0 + +> ModelsCertificateQuery CertificateCollectionGetCollection0(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns the certificate collection definition associated with the provided Keyfactor identifier + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Identifier of the certificate collection + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateCollectionApi.CertificateCollectionGetCollection0(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateCollectionApi.CertificateCollectionGetCollection0``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CertificateCollectionGetCollection0`: ModelsCertificateQuery + fmt.Fprintf(os.Stdout, "Response from `CertificateCollectionApi.CertificateCollectionGetCollection0`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Identifier of the certificate collection | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateCollectionGetCollection0Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsCertificateQuery**](ModelsCertificateQuery.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CertificateCollectionGetCollection1 + +> ModelsCertificateQuery CertificateCollectionGetCollection1(ctx, name).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns the certificate collection associated with the provided collection name + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | Name of the Collection + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateCollectionApi.CertificateCollectionGetCollection1(context.Background(), name).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateCollectionApi.CertificateCollectionGetCollection1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CertificateCollectionGetCollection1`: ModelsCertificateQuery + fmt.Fprintf(os.Stdout, "Response from `CertificateCollectionApi.CertificateCollectionGetCollection1`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | Name of the Collection | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateCollectionGetCollection1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsCertificateQuery**](ModelsCertificateQuery.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CertificateCollectionGetCollections + +> []ModelsCertificateQuery CertificateCollectionGetCollections(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + +Returns all certificate collections + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + pqQueryString := "pqQueryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + pqPageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + pqReturnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateCollectionApi.CertificateCollectionGetCollections(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateCollectionApi.CertificateCollectionGetCollections``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CertificateCollectionGetCollections`: []ModelsCertificateQuery + fmt.Fprintf(os.Stdout, "Response from `CertificateCollectionApi.CertificateCollectionGetCollections`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateCollectionGetCollectionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + **pqQueryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **pqPageReturned** | **int32** | The current page within the result set to be returned | + **pqReturnLimit** | **int32** | Maximum number of records to be returned in a single call | + **pqSortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **pqSortAscending** | **int32** | Field sort direction [0=ascending, 1=descending] | + +### Return type + +[**[]ModelsCertificateQuery**](ModelsCertificateQuery.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CertificateCollectionSetCollectionPermissions + +> CertificateCollectionSetCollectionPermissions(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionPermissions(collectionPermissions).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Set the permissions for a collection + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | The collection to set permissions on + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + collectionPermissions := []openapiclient.ModelsCollectionRolePermissions{*openapiclient.NewModelsCollectionRolePermissions()} // []ModelsCollectionRolePermissions | The collection Permissions object ['Read', 'EditMetadata', 'Recover', 'Revoke', 'Delete'] + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateCollectionApi.CertificateCollectionSetCollectionPermissions(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionPermissions(collectionPermissions).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateCollectionApi.CertificateCollectionSetCollectionPermissions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | The collection to set permissions on | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateCollectionSetCollectionPermissionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **collectionPermissions** | [**[]ModelsCollectionRolePermissions**](ModelsCollectionRolePermissions.md) | The collection Permissions object ['Read', 'EditMetadata', 'Recover', 'Revoke', 'Delete'] | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CertificateCollectionUpdateCollection + +> KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse CertificateCollectionUpdateCollection(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Updates an existing certificate collection with the provided properties + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + request := *openapiclient.NewKeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest(int32(123), "Name_example") // KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest | Information related to the certificate collection query + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateCollectionApi.CertificateCollectionUpdateCollection(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateCollectionApi.CertificateCollectionUpdateCollection``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CertificateCollectionUpdateCollection`: KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateCollectionApi.CertificateCollectionUpdateCollection`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateCollectionUpdateCollectionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **request** | [**KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest**](KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest.md) | Information related to the certificate collection query | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse**](KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v1/docs/CertificateStoreApi.md b/v1/docs/CertificateStoreApi.md new file mode 100644 index 0000000..e0aa733 --- /dev/null +++ b/v1/docs/CertificateStoreApi.md @@ -0,0 +1,840 @@ +# \CertificateStoreApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CertificateStoreAddCertificate**](CertificateStoreApi.md#CertificateStoreAddCertificate) | **Post** /CertificateStores/Certificates/Add | Configures a management job to add a certificate to one or more stores with the provided schedule +[**CertificateStoreApprovePending**](CertificateStoreApi.md#CertificateStoreApprovePending) | **Post** /CertificateStores/Approve | Approves the provided certificate stores to make them available for management +[**CertificateStoreConfigureDiscoveryJob**](CertificateStoreApi.md#CertificateStoreConfigureDiscoveryJob) | **Put** /CertificateStores/DiscoveryJob | Configures a discovery job to locate currently unmanaged certificate stores +[**CertificateStoreCreateCertificateStoreServer**](CertificateStoreApi.md#CertificateStoreCreateCertificateStoreServer) | **Post** /CertificateStores/Server | Creates a new certificate store server with the provided properties +[**CertificateStoreDeleteCertificateStore**](CertificateStoreApi.md#CertificateStoreDeleteCertificateStore) | **Delete** /CertificateStores/{id} | Deletes a persisted certificate store by its Keyfactor identifier +[**CertificateStoreDeleteCertificateStores**](CertificateStoreApi.md#CertificateStoreDeleteCertificateStores) | **Delete** /CertificateStores | Deletes multiple persisted certificate store entities by their identifiers +[**CertificateStoreGetCertificateStoreInventory**](CertificateStoreApi.md#CertificateStoreGetCertificateStoreInventory) | **Get** /CertificateStores/{id}/Inventory | Returns a single certificate store's inventory associated with the provided id +[**CertificateStoreRemoveCertificate**](CertificateStoreApi.md#CertificateStoreRemoveCertificate) | **Post** /CertificateStores/Certificates/Remove | Configures a management job to remove a certificate from one or more stores with the provided schedule +[**CertificateStoreSchedule**](CertificateStoreApi.md#CertificateStoreSchedule) | **Post** /CertificateStores/Schedule | Creates an inventory schedule for the provided certificate stores +[**CertificateStoreScheduleForReenrollment**](CertificateStoreApi.md#CertificateStoreScheduleForReenrollment) | **Post** /CertificateStores/Reenrollment | Schedules a certificate store for reenrollment +[**CertificateStoreSetPassword**](CertificateStoreApi.md#CertificateStoreSetPassword) | **Put** /CertificateStores/Password | Sets a password for the requested certificate store +[**CertificateStoreUpdateCertificateStoreServer**](CertificateStoreApi.md#CertificateStoreUpdateCertificateStoreServer) | **Put** /CertificateStores/Server | Updates a given certificate store server with the properties of the provided instance + + + +## CertificateStoreAddCertificate + +> []string CertificateStoreAddCertificate(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).AddRequest(addRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Configures a management job to add a certificate to one or more stores with the provided schedule + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + addRequest := *openapiclient.NewKeyfactorApiModelsCertificateStoresAddCertificateRequest(int32(123), []openapiclient.ModelsCertificateStoreEntry{*openapiclient.NewModelsCertificateStoreEntry("00000000-0000-0000-0000-000000000000")}, *openapiclient.NewKeyfactorCommonSchedulingKeyfactorSchedule()) // KeyfactorApiModelsCertificateStoresAddCertificateRequest | Configuration details of the management job + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateStoreApi.CertificateStoreAddCertificate(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).AddRequest(addRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateStoreApi.CertificateStoreAddCertificate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CertificateStoreAddCertificate`: []string + fmt.Fprintf(os.Stdout, "Response from `CertificateStoreApi.CertificateStoreAddCertificate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateStoreAddCertificateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **addRequest** | [**KeyfactorApiModelsCertificateStoresAddCertificateRequest**](KeyfactorApiModelsCertificateStoresAddCertificateRequest.md) | Configuration details of the management job | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +**[]string** + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CertificateStoreApprovePending + +> CertificateStoreApprovePending(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Keystores(keystores).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Approves the provided certificate stores to make them available for management + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + keystores := []openapiclient.KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest{*openapiclient.NewKeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest()} // []KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest | Certificate stores to be approved + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateStoreApi.CertificateStoreApprovePending(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Keystores(keystores).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateStoreApi.CertificateStoreApprovePending``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateStoreApprovePendingRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **keystores** | [**[]KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest**](KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest.md) | Certificate stores to be approved | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CertificateStoreConfigureDiscoveryJob + +> CertificateStoreConfigureDiscoveryJob(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).DiscoveryJobRequest(discoveryJobRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Configures a discovery job to locate currently unmanaged certificate stores + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + discoveryJobRequest := *openapiclient.NewModelsDiscoveryJobRequest(int32(123)) // ModelsDiscoveryJobRequest | Configuration properties of the discovery job + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateStoreApi.CertificateStoreConfigureDiscoveryJob(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).DiscoveryJobRequest(discoveryJobRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateStoreApi.CertificateStoreConfigureDiscoveryJob``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateStoreConfigureDiscoveryJobRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **discoveryJobRequest** | [**ModelsDiscoveryJobRequest**](ModelsDiscoveryJobRequest.md) | Configuration properties of the discovery job | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CertificateStoreCreateCertificateStoreServer + +> ModelsCertificateStoreServerResponse CertificateStoreCreateCertificateStoreServer(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Creates a new certificate store server with the provided properties + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + request := *openapiclient.NewModelsCertificateStoreCreateServerRequest(*openapiclient.NewModelsKeyfactorAPISecret(), *openapiclient.NewModelsKeyfactorAPISecret(), false, int32(123), "Name_example") // ModelsCertificateStoreCreateServerRequest | Certificate store server to be created with the provided properties + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateStoreApi.CertificateStoreCreateCertificateStoreServer(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateStoreApi.CertificateStoreCreateCertificateStoreServer``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CertificateStoreCreateCertificateStoreServer`: ModelsCertificateStoreServerResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateStoreApi.CertificateStoreCreateCertificateStoreServer`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateStoreCreateCertificateStoreServerRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **request** | [**ModelsCertificateStoreCreateServerRequest**](ModelsCertificateStoreCreateServerRequest.md) | Certificate store server to be created with the provided properties | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsCertificateStoreServerResponse**](ModelsCertificateStoreServerResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CertificateStoreDeleteCertificateStore + +> CertificateStoreDeleteCertificateStore(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes a persisted certificate store by its Keyfactor identifier + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Keyfactor certificate store identifier (GUID) + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateStoreApi.CertificateStoreDeleteCertificateStore(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateStoreApi.CertificateStoreDeleteCertificateStore``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Keyfactor certificate store identifier (GUID) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateStoreDeleteCertificateStoreRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CertificateStoreDeleteCertificateStores + +> CertificateStoreDeleteCertificateStores(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Ids(ids).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes multiple persisted certificate store entities by their identifiers + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + ids := []string{"00000000-0000-0000-0000-000000000000"} // []string | Array of Keyfactor identifiers (GUID) for the certificate stores to be deleted + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateStoreApi.CertificateStoreDeleteCertificateStores(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Ids(ids).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateStoreApi.CertificateStoreDeleteCertificateStores``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateStoreDeleteCertificateStoresRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **ids** | **[]string** | Array of Keyfactor identifiers (GUID) for the certificate stores to be deleted | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CertificateStoreGetCertificateStoreInventory + +> []ModelsCertificateStoreInventory CertificateStoreGetCertificateStoreInventory(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).QueryPageReturned(queryPageReturned).QueryReturnLimit(queryReturnLimit).QuerySortField(querySortField).QuerySortAscending(querySortAscending).Execute() + +Returns a single certificate store's inventory associated with the provided id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Keyfactor identifier (GUID) of the certificate store + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + queryPageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + queryReturnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + querySortField := "querySortField_example" // string | Field by which the results should be sorted (OperationStart, OperationEnd, UserName) (optional) + querySortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateStoreApi.CertificateStoreGetCertificateStoreInventory(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).QueryPageReturned(queryPageReturned).QueryReturnLimit(queryReturnLimit).QuerySortField(querySortField).QuerySortAscending(querySortAscending).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateStoreApi.CertificateStoreGetCertificateStoreInventory``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CertificateStoreGetCertificateStoreInventory`: []ModelsCertificateStoreInventory + fmt.Fprintf(os.Stdout, "Response from `CertificateStoreApi.CertificateStoreGetCertificateStoreInventory`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Keyfactor identifier (GUID) of the certificate store | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateStoreGetCertificateStoreInventoryRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + **queryPageReturned** | **int32** | The current page within the result set to be returned | + **queryReturnLimit** | **int32** | Maximum number of records to be returned in a single call | + **querySortField** | **string** | Field by which the results should be sorted (OperationStart, OperationEnd, UserName) | + **querySortAscending** | **int32** | Field sort direction [0=ascending, 1=descending] | + +### Return type + +[**[]ModelsCertificateStoreInventory**](ModelsCertificateStoreInventory.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CertificateStoreRemoveCertificate + +> []string CertificateStoreRemoveCertificate(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).RemovalRequest(removalRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Configures a management job to remove a certificate from one or more stores with the provided schedule + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + removalRequest := *openapiclient.NewKeyfactorApiModelsCertificateStoresRemoveCertificateRequest([]openapiclient.ModelsCertificateLocationSpecifier{*openapiclient.NewModelsCertificateLocationSpecifier()}, *openapiclient.NewKeyfactorCommonSchedulingKeyfactorSchedule()) // KeyfactorApiModelsCertificateStoresRemoveCertificateRequest | Configuration details of the management job + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateStoreApi.CertificateStoreRemoveCertificate(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).RemovalRequest(removalRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateStoreApi.CertificateStoreRemoveCertificate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CertificateStoreRemoveCertificate`: []string + fmt.Fprintf(os.Stdout, "Response from `CertificateStoreApi.CertificateStoreRemoveCertificate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateStoreRemoveCertificateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **removalRequest** | [**KeyfactorApiModelsCertificateStoresRemoveCertificateRequest**](KeyfactorApiModelsCertificateStoresRemoveCertificateRequest.md) | Configuration details of the management job | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +**[]string** + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CertificateStoreSchedule + +> CertificateStoreSchedule(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).FutureSchedule(futureSchedule).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Creates an inventory schedule for the provided certificate stores + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + futureSchedule := *openapiclient.NewModelsCertStoresSchedule([]string{"00000000-0000-0000-0000-000000000000"}) // ModelsCertStoresSchedule | Certificate store identifiers and the desired schedule + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateStoreApi.CertificateStoreSchedule(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).FutureSchedule(futureSchedule).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateStoreApi.CertificateStoreSchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateStoreScheduleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **futureSchedule** | [**ModelsCertStoresSchedule**](ModelsCertStoresSchedule.md) | Certificate store identifiers and the desired schedule | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CertificateStoreScheduleForReenrollment + +> CertificateStoreScheduleForReenrollment(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Reenroll(reenroll).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Schedules a certificate store for reenrollment + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + reenroll := *openapiclient.NewKeyfactorApiModelsCertificateStoresReenrollmentRequest() // KeyfactorApiModelsCertificateStoresReenrollmentRequest | An object that contains a Keystore Id, a Agent Guid, a string SubjectName and string Alias + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateStoreApi.CertificateStoreScheduleForReenrollment(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Reenroll(reenroll).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateStoreApi.CertificateStoreScheduleForReenrollment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateStoreScheduleForReenrollmentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **reenroll** | [**KeyfactorApiModelsCertificateStoresReenrollmentRequest**](KeyfactorApiModelsCertificateStoresReenrollmentRequest.md) | An object that contains a Keystore Id, a Agent Guid, a string SubjectName and string Alias | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CertificateStoreSetPassword + +> CertificateStoreSetPassword(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).PasswordRequest(passwordRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Sets a password for the requested certificate store + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + passwordRequest := *openapiclient.NewModelsCertStoreNewPasswordRequest("00000000-0000-0000-0000-000000000000", map[string]interface{}(123)) // ModelsCertStoreNewPasswordRequest | Identifier of the certificate store and the password to be applied to it + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateStoreApi.CertificateStoreSetPassword(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).PasswordRequest(passwordRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateStoreApi.CertificateStoreSetPassword``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateStoreSetPasswordRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **passwordRequest** | [**ModelsCertStoreNewPasswordRequest**](ModelsCertStoreNewPasswordRequest.md) | Identifier of the certificate store and the password to be applied to it | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CertificateStoreUpdateCertificateStoreServer + +> ModelsCertificateStoreServerResponse CertificateStoreUpdateCertificateStoreServer(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Updates a given certificate store server with the properties of the provided instance + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + request := *openapiclient.NewModelsCertificateStoreUpdateServerRequest(int32(123), *openapiclient.NewModelsKeyfactorAPISecret(), *openapiclient.NewModelsKeyfactorAPISecret(), false, "Name_example") // ModelsCertificateStoreUpdateServerRequest | Server to be updated with the provided properties + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateStoreApi.CertificateStoreUpdateCertificateStoreServer(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateStoreApi.CertificateStoreUpdateCertificateStoreServer``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CertificateStoreUpdateCertificateStoreServer`: ModelsCertificateStoreServerResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateStoreApi.CertificateStoreUpdateCertificateStoreServer`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateStoreUpdateCertificateStoreServerRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **request** | [**ModelsCertificateStoreUpdateServerRequest**](ModelsCertificateStoreUpdateServerRequest.md) | Server to be updated with the provided properties | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsCertificateStoreServerResponse**](ModelsCertificateStoreServerResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v1/docs/CertificateStoreContainerApi.md b/v1/docs/CertificateStoreContainerApi.md new file mode 100644 index 0000000..bda1f7f --- /dev/null +++ b/v1/docs/CertificateStoreContainerApi.md @@ -0,0 +1,156 @@ +# \CertificateStoreContainerApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CertificateStoreContainerDeleteCertificateStoreContainers**](CertificateStoreContainerApi.md#CertificateStoreContainerDeleteCertificateStoreContainers) | **Delete** /CertificateStoreContainers/{id} | Delete a certificate store container +[**CertificateStoreContainerGetAllCertificateStoreContainers**](CertificateStoreContainerApi.md#CertificateStoreContainerGetAllCertificateStoreContainers) | **Get** /CertificateStoreContainers | Returns all certificate store container according to the provided filter and output parameters + + + +## CertificateStoreContainerDeleteCertificateStoreContainers + +> CertificateStoreContainerDeleteCertificateStoreContainers(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Delete a certificate store container + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Id for the certificate store container + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateStoreContainerApi.CertificateStoreContainerDeleteCertificateStoreContainers(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateStoreContainerApi.CertificateStoreContainerDeleteCertificateStoreContainers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Id for the certificate store container | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateStoreContainerDeleteCertificateStoreContainersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CertificateStoreContainerGetAllCertificateStoreContainers + +> []ModelsCertificateStoreContainerListResponse CertificateStoreContainerGetAllCertificateStoreContainers(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + +Returns all certificate store container according to the provided filter and output parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + pqQueryString := "pqQueryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + pqPageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + pqReturnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateStoreContainerApi.CertificateStoreContainerGetAllCertificateStoreContainers(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateStoreContainerApi.CertificateStoreContainerGetAllCertificateStoreContainers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CertificateStoreContainerGetAllCertificateStoreContainers`: []ModelsCertificateStoreContainerListResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateStoreContainerApi.CertificateStoreContainerGetAllCertificateStoreContainers`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateStoreContainerGetAllCertificateStoreContainersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + **pqQueryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **pqPageReturned** | **int32** | The current page within the result set to be returned | + **pqReturnLimit** | **int32** | Maximum number of records to be returned in a single call | + **pqSortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **pqSortAscending** | **int32** | Field sort direction [0=ascending, 1=descending] | + +### Return type + +[**[]ModelsCertificateStoreContainerListResponse**](ModelsCertificateStoreContainerListResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v1/docs/CertificateStoreTypeApi.md b/v1/docs/CertificateStoreTypeApi.md new file mode 100644 index 0000000..c9bd55a --- /dev/null +++ b/v1/docs/CertificateStoreTypeApi.md @@ -0,0 +1,511 @@ +# \CertificateStoreTypeApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CertificateStoreTypeCreateCertificateStoreType**](CertificateStoreTypeApi.md#CertificateStoreTypeCreateCertificateStoreType) | **Post** /CertificateStoreTypes | Creates a new certificate store type with the provided properties +[**CertificateStoreTypeDeleteCertificateStoreType**](CertificateStoreTypeApi.md#CertificateStoreTypeDeleteCertificateStoreType) | **Delete** /CertificateStoreTypes/{id} | Deletes a certificate store type according to the provided identifier +[**CertificateStoreTypeDeleteCertificateStoreTypes**](CertificateStoreTypeApi.md#CertificateStoreTypeDeleteCertificateStoreTypes) | **Delete** /CertificateStoreTypes | Deletes certificate store types according to the provided identifiers +[**CertificateStoreTypeGetCertificateStoreType0**](CertificateStoreTypeApi.md#CertificateStoreTypeGetCertificateStoreType0) | **Get** /CertificateStoreTypes/{id} | Returns a single certificate store type that matches id +[**CertificateStoreTypeGetCertificateStoreType1**](CertificateStoreTypeApi.md#CertificateStoreTypeGetCertificateStoreType1) | **Get** /CertificateStoreTypes/Name/{name} | Returns a single certificate store type that matches the provided short name +[**CertificateStoreTypeGetTypes**](CertificateStoreTypeApi.md#CertificateStoreTypeGetTypes) | **Get** /CertificateStoreTypes | Returns all certificate store types according to the provided filter and output parameters +[**CertificateStoreTypeUpdateCertificateStoreType**](CertificateStoreTypeApi.md#CertificateStoreTypeUpdateCertificateStoreType) | **Put** /CertificateStoreTypes | Updates an existing certificate store type with the provided properties + + + +## CertificateStoreTypeCreateCertificateStoreType + +> KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse CertificateStoreTypeCreateCertificateStoreType(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CertStoreType(certStoreType).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Creates a new certificate store type with the provided properties + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + certStoreType := *openapiclient.NewKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest("Name_example", "ShortName_example") // KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest | Certificate store type properties for the new type + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateStoreTypeApi.CertificateStoreTypeCreateCertificateStoreType(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CertStoreType(certStoreType).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateStoreTypeApi.CertificateStoreTypeCreateCertificateStoreType``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CertificateStoreTypeCreateCertificateStoreType`: KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateStoreTypeApi.CertificateStoreTypeCreateCertificateStoreType`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateStoreTypeCreateCertificateStoreTypeRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **certStoreType** | [**KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest**](KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest.md) | Certificate store type properties for the new type | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse**](KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CertificateStoreTypeDeleteCertificateStoreType + +> CertificateStoreTypeDeleteCertificateStoreType(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes a certificate store type according to the provided identifier + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Keyfactor identifier of the certificate store type to be deleted + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateStoreTypeApi.CertificateStoreTypeDeleteCertificateStoreType(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateStoreTypeApi.CertificateStoreTypeDeleteCertificateStoreType``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Keyfactor identifier of the certificate store type to be deleted | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateStoreTypeDeleteCertificateStoreTypeRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CertificateStoreTypeDeleteCertificateStoreTypes + +> CertificateStoreTypeDeleteCertificateStoreTypes(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Ids(ids).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes certificate store types according to the provided identifiers + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + ids := []int32{int32(123)} // []int32 | Array of Keyfactor identifiers of the certificate store types to be deleted + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateStoreTypeApi.CertificateStoreTypeDeleteCertificateStoreTypes(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Ids(ids).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateStoreTypeApi.CertificateStoreTypeDeleteCertificateStoreTypes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateStoreTypeDeleteCertificateStoreTypesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **ids** | **[]int32** | Array of Keyfactor identifiers of the certificate store types to be deleted | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CertificateStoreTypeGetCertificateStoreType0 + +> KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse CertificateStoreTypeGetCertificateStoreType0(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns a single certificate store type that matches id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Keyfactor identifier of the certificate store type + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateStoreTypeApi.CertificateStoreTypeGetCertificateStoreType0(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateStoreTypeApi.CertificateStoreTypeGetCertificateStoreType0``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CertificateStoreTypeGetCertificateStoreType0`: KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateStoreTypeApi.CertificateStoreTypeGetCertificateStoreType0`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Keyfactor identifier of the certificate store type | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateStoreTypeGetCertificateStoreType0Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse**](KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CertificateStoreTypeGetCertificateStoreType1 + +> []KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse CertificateStoreTypeGetCertificateStoreType1(ctx, name).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns a single certificate store type that matches the provided short name + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | Short name of the certificate store type to return + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateStoreTypeApi.CertificateStoreTypeGetCertificateStoreType1(context.Background(), name).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateStoreTypeApi.CertificateStoreTypeGetCertificateStoreType1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CertificateStoreTypeGetCertificateStoreType1`: []KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateStoreTypeApi.CertificateStoreTypeGetCertificateStoreType1`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | Short name of the certificate store type to return | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateStoreTypeGetCertificateStoreType1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**[]KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse**](KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CertificateStoreTypeGetTypes + +> []KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse CertificateStoreTypeGetTypes(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CstqueryQueryString(cstqueryQueryString).CstqueryPageReturned(cstqueryPageReturned).CstqueryReturnLimit(cstqueryReturnLimit).CstquerySortField(cstquerySortField).CstquerySortAscending(cstquerySortAscending).Execute() + +Returns all certificate store types according to the provided filter and output parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + cstqueryQueryString := "cstqueryQueryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + cstqueryPageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + cstqueryReturnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + cstquerySortField := "cstquerySortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + cstquerySortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateStoreTypeApi.CertificateStoreTypeGetTypes(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).CstqueryQueryString(cstqueryQueryString).CstqueryPageReturned(cstqueryPageReturned).CstqueryReturnLimit(cstqueryReturnLimit).CstquerySortField(cstquerySortField).CstquerySortAscending(cstquerySortAscending).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateStoreTypeApi.CertificateStoreTypeGetTypes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CertificateStoreTypeGetTypes`: []KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateStoreTypeApi.CertificateStoreTypeGetTypes`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateStoreTypeGetTypesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + **cstqueryQueryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **cstqueryPageReturned** | **int32** | The current page within the result set to be returned | + **cstqueryReturnLimit** | **int32** | Maximum number of records to be returned in a single call | + **cstquerySortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **cstquerySortAscending** | **int32** | Field sort direction [0=ascending, 1=descending] | + +### Return type + +[**[]KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse**](KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CertificateStoreTypeUpdateCertificateStoreType + +> KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse CertificateStoreTypeUpdateCertificateStoreType(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CertStoreType(certStoreType).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Updates an existing certificate store type with the provided properties + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + certStoreType := *openapiclient.NewKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest(int32(123), "Name_example", "ShortName_example") // KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest | Certificate store type properties to be updated + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CertificateStoreTypeApi.CertificateStoreTypeUpdateCertificateStoreType(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CertStoreType(certStoreType).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificateStoreTypeApi.CertificateStoreTypeUpdateCertificateStoreType``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CertificateStoreTypeUpdateCertificateStoreType`: KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse + fmt.Fprintf(os.Stdout, "Response from `CertificateStoreTypeApi.CertificateStoreTypeUpdateCertificateStoreType`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCertificateStoreTypeUpdateCertificateStoreTypeRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **certStoreType** | [**KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest**](KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest.md) | Certificate store type properties to be updated | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse**](KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v1/docs/CoreModelsEnrollmentEnrollmentCA.md b/v1/docs/CoreModelsEnrollmentEnrollmentCA.md new file mode 100644 index 0000000..e0d990b --- /dev/null +++ b/v1/docs/CoreModelsEnrollmentEnrollmentCA.md @@ -0,0 +1,108 @@ +# CoreModelsEnrollmentEnrollmentCA + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**RFCEnforcement** | Pointer to **bool** | | [optional] +**SubscriberTerms** | Pointer to **bool** | | [optional] + +## Methods + +### NewCoreModelsEnrollmentEnrollmentCA + +`func NewCoreModelsEnrollmentEnrollmentCA() *CoreModelsEnrollmentEnrollmentCA` + +NewCoreModelsEnrollmentEnrollmentCA instantiates a new CoreModelsEnrollmentEnrollmentCA object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCoreModelsEnrollmentEnrollmentCAWithDefaults + +`func NewCoreModelsEnrollmentEnrollmentCAWithDefaults() *CoreModelsEnrollmentEnrollmentCA` + +NewCoreModelsEnrollmentEnrollmentCAWithDefaults instantiates a new CoreModelsEnrollmentEnrollmentCA object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *CoreModelsEnrollmentEnrollmentCA) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CoreModelsEnrollmentEnrollmentCA) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CoreModelsEnrollmentEnrollmentCA) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *CoreModelsEnrollmentEnrollmentCA) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetRFCEnforcement + +`func (o *CoreModelsEnrollmentEnrollmentCA) GetRFCEnforcement() bool` + +GetRFCEnforcement returns the RFCEnforcement field if non-nil, zero value otherwise. + +### GetRFCEnforcementOk + +`func (o *CoreModelsEnrollmentEnrollmentCA) GetRFCEnforcementOk() (*bool, bool)` + +GetRFCEnforcementOk returns a tuple with the RFCEnforcement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRFCEnforcement + +`func (o *CoreModelsEnrollmentEnrollmentCA) SetRFCEnforcement(v bool)` + +SetRFCEnforcement sets RFCEnforcement field to given value. + +### HasRFCEnforcement + +`func (o *CoreModelsEnrollmentEnrollmentCA) HasRFCEnforcement() bool` + +HasRFCEnforcement returns a boolean if a field has been set. + +### GetSubscriberTerms + +`func (o *CoreModelsEnrollmentEnrollmentCA) GetSubscriberTerms() bool` + +GetSubscriberTerms returns the SubscriberTerms field if non-nil, zero value otherwise. + +### GetSubscriberTermsOk + +`func (o *CoreModelsEnrollmentEnrollmentCA) GetSubscriberTermsOk() (*bool, bool)` + +GetSubscriberTermsOk returns a tuple with the SubscriberTerms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubscriberTerms + +`func (o *CoreModelsEnrollmentEnrollmentCA) SetSubscriberTerms(v bool)` + +SetSubscriberTerms sets SubscriberTerms field to given value. + +### HasSubscriberTerms + +`func (o *CoreModelsEnrollmentEnrollmentCA) HasSubscriberTerms() bool` + +HasSubscriberTerms returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/CoreModelsEnrollmentEnrollmentTemplate.md b/v1/docs/CoreModelsEnrollmentEnrollmentTemplate.md new file mode 100644 index 0000000..756cd6e --- /dev/null +++ b/v1/docs/CoreModelsEnrollmentEnrollmentTemplate.md @@ -0,0 +1,404 @@ +# CoreModelsEnrollmentEnrollmentTemplate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Name** | Pointer to **string** | | [optional] +**DisplayName** | Pointer to **string** | | [optional] +**Forest** | Pointer to **string** | | [optional] +**KeySize** | Pointer to **string** | | [optional] +**KeyType** | Pointer to **string** | | [optional] +**RequiresApproval** | Pointer to **bool** | | [optional] +**RFCEnforcement** | Pointer to **bool** | | [optional] +**CAs** | Pointer to [**[]CoreModelsEnrollmentEnrollmentCA**](CoreModelsEnrollmentEnrollmentCA.md) | | [optional] +**EnrollmentFields** | Pointer to [**[]ModelsTemplateEnrollmentField**](ModelsTemplateEnrollmentField.md) | | [optional] +**MetadataFields** | Pointer to [**[]ModelsTemplateMetadataField**](ModelsTemplateMetadataField.md) | | [optional] +**Regexes** | Pointer to [**[]ModelsTemplateRegex**](ModelsTemplateRegex.md) | | [optional] +**ExtendedKeyUsages** | Pointer to [**[]ModelsExtendedKeyUsage**](ModelsExtendedKeyUsage.md) | | [optional] +**Curve** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewCoreModelsEnrollmentEnrollmentTemplate + +`func NewCoreModelsEnrollmentEnrollmentTemplate() *CoreModelsEnrollmentEnrollmentTemplate` + +NewCoreModelsEnrollmentEnrollmentTemplate instantiates a new CoreModelsEnrollmentEnrollmentTemplate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCoreModelsEnrollmentEnrollmentTemplateWithDefaults + +`func NewCoreModelsEnrollmentEnrollmentTemplateWithDefaults() *CoreModelsEnrollmentEnrollmentTemplate` + +NewCoreModelsEnrollmentEnrollmentTemplateWithDefaults instantiates a new CoreModelsEnrollmentEnrollmentTemplate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetForest + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) GetForest() string` + +GetForest returns the Forest field if non-nil, zero value otherwise. + +### GetForestOk + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) GetForestOk() (*string, bool)` + +GetForestOk returns a tuple with the Forest field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetForest + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) SetForest(v string)` + +SetForest sets Forest field to given value. + +### HasForest + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) HasForest() bool` + +HasForest returns a boolean if a field has been set. + +### GetKeySize + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) GetKeySize() string` + +GetKeySize returns the KeySize field if non-nil, zero value otherwise. + +### GetKeySizeOk + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) GetKeySizeOk() (*string, bool)` + +GetKeySizeOk returns a tuple with the KeySize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeySize + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) SetKeySize(v string)` + +SetKeySize sets KeySize field to given value. + +### HasKeySize + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) HasKeySize() bool` + +HasKeySize returns a boolean if a field has been set. + +### GetKeyType + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) GetKeyType() string` + +GetKeyType returns the KeyType field if non-nil, zero value otherwise. + +### GetKeyTypeOk + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) GetKeyTypeOk() (*string, bool)` + +GetKeyTypeOk returns a tuple with the KeyType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyType + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) SetKeyType(v string)` + +SetKeyType sets KeyType field to given value. + +### HasKeyType + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) HasKeyType() bool` + +HasKeyType returns a boolean if a field has been set. + +### GetRequiresApproval + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) GetRequiresApproval() bool` + +GetRequiresApproval returns the RequiresApproval field if non-nil, zero value otherwise. + +### GetRequiresApprovalOk + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) GetRequiresApprovalOk() (*bool, bool)` + +GetRequiresApprovalOk returns a tuple with the RequiresApproval field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequiresApproval + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) SetRequiresApproval(v bool)` + +SetRequiresApproval sets RequiresApproval field to given value. + +### HasRequiresApproval + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) HasRequiresApproval() bool` + +HasRequiresApproval returns a boolean if a field has been set. + +### GetRFCEnforcement + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) GetRFCEnforcement() bool` + +GetRFCEnforcement returns the RFCEnforcement field if non-nil, zero value otherwise. + +### GetRFCEnforcementOk + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) GetRFCEnforcementOk() (*bool, bool)` + +GetRFCEnforcementOk returns a tuple with the RFCEnforcement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRFCEnforcement + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) SetRFCEnforcement(v bool)` + +SetRFCEnforcement sets RFCEnforcement field to given value. + +### HasRFCEnforcement + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) HasRFCEnforcement() bool` + +HasRFCEnforcement returns a boolean if a field has been set. + +### GetCAs + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) GetCAs() []CoreModelsEnrollmentEnrollmentCA` + +GetCAs returns the CAs field if non-nil, zero value otherwise. + +### GetCAsOk + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) GetCAsOk() (*[]CoreModelsEnrollmentEnrollmentCA, bool)` + +GetCAsOk returns a tuple with the CAs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCAs + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) SetCAs(v []CoreModelsEnrollmentEnrollmentCA)` + +SetCAs sets CAs field to given value. + +### HasCAs + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) HasCAs() bool` + +HasCAs returns a boolean if a field has been set. + +### GetEnrollmentFields + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) GetEnrollmentFields() []ModelsTemplateEnrollmentField` + +GetEnrollmentFields returns the EnrollmentFields field if non-nil, zero value otherwise. + +### GetEnrollmentFieldsOk + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) GetEnrollmentFieldsOk() (*[]ModelsTemplateEnrollmentField, bool)` + +GetEnrollmentFieldsOk returns a tuple with the EnrollmentFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnrollmentFields + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) SetEnrollmentFields(v []ModelsTemplateEnrollmentField)` + +SetEnrollmentFields sets EnrollmentFields field to given value. + +### HasEnrollmentFields + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) HasEnrollmentFields() bool` + +HasEnrollmentFields returns a boolean if a field has been set. + +### GetMetadataFields + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) GetMetadataFields() []ModelsTemplateMetadataField` + +GetMetadataFields returns the MetadataFields field if non-nil, zero value otherwise. + +### GetMetadataFieldsOk + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) GetMetadataFieldsOk() (*[]ModelsTemplateMetadataField, bool)` + +GetMetadataFieldsOk returns a tuple with the MetadataFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadataFields + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) SetMetadataFields(v []ModelsTemplateMetadataField)` + +SetMetadataFields sets MetadataFields field to given value. + +### HasMetadataFields + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) HasMetadataFields() bool` + +HasMetadataFields returns a boolean if a field has been set. + +### GetRegexes + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) GetRegexes() []ModelsTemplateRegex` + +GetRegexes returns the Regexes field if non-nil, zero value otherwise. + +### GetRegexesOk + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) GetRegexesOk() (*[]ModelsTemplateRegex, bool)` + +GetRegexesOk returns a tuple with the Regexes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegexes + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) SetRegexes(v []ModelsTemplateRegex)` + +SetRegexes sets Regexes field to given value. + +### HasRegexes + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) HasRegexes() bool` + +HasRegexes returns a boolean if a field has been set. + +### GetExtendedKeyUsages + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) GetExtendedKeyUsages() []ModelsExtendedKeyUsage` + +GetExtendedKeyUsages returns the ExtendedKeyUsages field if non-nil, zero value otherwise. + +### GetExtendedKeyUsagesOk + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) GetExtendedKeyUsagesOk() (*[]ModelsExtendedKeyUsage, bool)` + +GetExtendedKeyUsagesOk returns a tuple with the ExtendedKeyUsages field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtendedKeyUsages + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) SetExtendedKeyUsages(v []ModelsExtendedKeyUsage)` + +SetExtendedKeyUsages sets ExtendedKeyUsages field to given value. + +### HasExtendedKeyUsages + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) HasExtendedKeyUsages() bool` + +HasExtendedKeyUsages returns a boolean if a field has been set. + +### GetCurve + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) GetCurve() string` + +GetCurve returns the Curve field if non-nil, zero value otherwise. + +### GetCurveOk + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) GetCurveOk() (*string, bool)` + +GetCurveOk returns a tuple with the Curve field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCurve + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) SetCurve(v string)` + +SetCurve sets Curve field to given value. + +### HasCurve + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) HasCurve() bool` + +HasCurve returns a boolean if a field has been set. + +### SetCurveNil + +`func (o *CoreModelsEnrollmentEnrollmentTemplate) SetCurveNil(b bool)` + + SetCurveNil sets the value for Curve to be an explicit nil + +### UnsetCurve +`func (o *CoreModelsEnrollmentEnrollmentTemplate) UnsetCurve()` + +UnsetCurve ensures that no value is present for Curve, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/CoreModelsEnrollmentEnrollmentTemplateCAResponse.md b/v1/docs/CoreModelsEnrollmentEnrollmentTemplateCAResponse.md new file mode 100644 index 0000000..341dc61 --- /dev/null +++ b/v1/docs/CoreModelsEnrollmentEnrollmentTemplateCAResponse.md @@ -0,0 +1,82 @@ +# CoreModelsEnrollmentEnrollmentTemplateCAResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Templates** | Pointer to [**[]CoreModelsEnrollmentEnrollmentTemplate**](CoreModelsEnrollmentEnrollmentTemplate.md) | | [optional] +**StandaloneCAs** | Pointer to [**[]CoreModelsEnrollmentEnrollmentCA**](CoreModelsEnrollmentEnrollmentCA.md) | | [optional] + +## Methods + +### NewCoreModelsEnrollmentEnrollmentTemplateCAResponse + +`func NewCoreModelsEnrollmentEnrollmentTemplateCAResponse() *CoreModelsEnrollmentEnrollmentTemplateCAResponse` + +NewCoreModelsEnrollmentEnrollmentTemplateCAResponse instantiates a new CoreModelsEnrollmentEnrollmentTemplateCAResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCoreModelsEnrollmentEnrollmentTemplateCAResponseWithDefaults + +`func NewCoreModelsEnrollmentEnrollmentTemplateCAResponseWithDefaults() *CoreModelsEnrollmentEnrollmentTemplateCAResponse` + +NewCoreModelsEnrollmentEnrollmentTemplateCAResponseWithDefaults instantiates a new CoreModelsEnrollmentEnrollmentTemplateCAResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTemplates + +`func (o *CoreModelsEnrollmentEnrollmentTemplateCAResponse) GetTemplates() []CoreModelsEnrollmentEnrollmentTemplate` + +GetTemplates returns the Templates field if non-nil, zero value otherwise. + +### GetTemplatesOk + +`func (o *CoreModelsEnrollmentEnrollmentTemplateCAResponse) GetTemplatesOk() (*[]CoreModelsEnrollmentEnrollmentTemplate, bool)` + +GetTemplatesOk returns a tuple with the Templates field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplates + +`func (o *CoreModelsEnrollmentEnrollmentTemplateCAResponse) SetTemplates(v []CoreModelsEnrollmentEnrollmentTemplate)` + +SetTemplates sets Templates field to given value. + +### HasTemplates + +`func (o *CoreModelsEnrollmentEnrollmentTemplateCAResponse) HasTemplates() bool` + +HasTemplates returns a boolean if a field has been set. + +### GetStandaloneCAs + +`func (o *CoreModelsEnrollmentEnrollmentTemplateCAResponse) GetStandaloneCAs() []CoreModelsEnrollmentEnrollmentCA` + +GetStandaloneCAs returns the StandaloneCAs field if non-nil, zero value otherwise. + +### GetStandaloneCAsOk + +`func (o *CoreModelsEnrollmentEnrollmentTemplateCAResponse) GetStandaloneCAsOk() (*[]CoreModelsEnrollmentEnrollmentCA, bool)` + +GetStandaloneCAsOk returns a tuple with the StandaloneCAs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStandaloneCAs + +`func (o *CoreModelsEnrollmentEnrollmentTemplateCAResponse) SetStandaloneCAs(v []CoreModelsEnrollmentEnrollmentCA)` + +SetStandaloneCAs sets StandaloneCAs field to given value. + +### HasStandaloneCAs + +`func (o *CoreModelsEnrollmentEnrollmentTemplateCAResponse) HasStandaloneCAs() bool` + +HasStandaloneCAs returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/CustomJobTypeApi.md b/v1/docs/CustomJobTypeApi.md new file mode 100644 index 0000000..6c66482 --- /dev/null +++ b/v1/docs/CustomJobTypeApi.md @@ -0,0 +1,367 @@ +# \CustomJobTypeApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CustomJobTypeCreateJobType**](CustomJobTypeApi.md#CustomJobTypeCreateJobType) | **Post** /JobTypes/Custom | Creates a custom job type with the provided properties +[**CustomJobTypeDeleteJobType**](CustomJobTypeApi.md#CustomJobTypeDeleteJobType) | **Delete** /JobTypes/Custom/{id} | Deletes the custom job type associated with the provided id +[**CustomJobTypeGetJobTypeById**](CustomJobTypeApi.md#CustomJobTypeGetJobTypeById) | **Get** /JobTypes/Custom/{id} | Returns a single custom job type associated with the provided id +[**CustomJobTypeGetJobTypes**](CustomJobTypeApi.md#CustomJobTypeGetJobTypes) | **Get** /JobTypes/Custom | Returns all custom job types according to the provided filter and output parameters +[**CustomJobTypeUpdateJobType**](CustomJobTypeApi.md#CustomJobTypeUpdateJobType) | **Put** /JobTypes/Custom | Updates an existing custom job type with the provided properties + + + +## CustomJobTypeCreateJobType + +> KeyfactorApiModelsOrchestratorJobsJobTypeResponse CustomJobTypeCreateJobType(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).JobType(jobType).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Creates a custom job type with the provided properties + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + jobType := *openapiclient.NewModelsOrchestratorJobsJobTypeCreateRequest("JobTypeName_example") // ModelsOrchestratorJobsJobTypeCreateRequest | job type properties to be applied to the new job type + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CustomJobTypeApi.CustomJobTypeCreateJobType(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).JobType(jobType).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomJobTypeApi.CustomJobTypeCreateJobType``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CustomJobTypeCreateJobType`: KeyfactorApiModelsOrchestratorJobsJobTypeResponse + fmt.Fprintf(os.Stdout, "Response from `CustomJobTypeApi.CustomJobTypeCreateJobType`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCustomJobTypeCreateJobTypeRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **jobType** | [**ModelsOrchestratorJobsJobTypeCreateRequest**](ModelsOrchestratorJobsJobTypeCreateRequest.md) | job type properties to be applied to the new job type | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsOrchestratorJobsJobTypeResponse**](KeyfactorApiModelsOrchestratorJobsJobTypeResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CustomJobTypeDeleteJobType + +> CustomJobTypeDeleteJobType(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes the custom job type associated with the provided id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Keyfactor identifier (GUID) of the job type + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CustomJobTypeApi.CustomJobTypeDeleteJobType(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomJobTypeApi.CustomJobTypeDeleteJobType``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Keyfactor identifier (GUID) of the job type | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCustomJobTypeDeleteJobTypeRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CustomJobTypeGetJobTypeById + +> KeyfactorApiModelsOrchestratorJobsJobTypeResponse CustomJobTypeGetJobTypeById(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns a single custom job type associated with the provided id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Keyfactor (GUID) identifier of the job type + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CustomJobTypeApi.CustomJobTypeGetJobTypeById(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomJobTypeApi.CustomJobTypeGetJobTypeById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CustomJobTypeGetJobTypeById`: KeyfactorApiModelsOrchestratorJobsJobTypeResponse + fmt.Fprintf(os.Stdout, "Response from `CustomJobTypeApi.CustomJobTypeGetJobTypeById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Keyfactor (GUID) identifier of the job type | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCustomJobTypeGetJobTypeByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsOrchestratorJobsJobTypeResponse**](KeyfactorApiModelsOrchestratorJobsJobTypeResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CustomJobTypeGetJobTypes + +> []KeyfactorApiModelsOrchestratorJobsJobTypeResponse CustomJobTypeGetJobTypes(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + +Returns all custom job types according to the provided filter and output parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + pqQueryString := "pqQueryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + pqPageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + pqReturnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CustomJobTypeApi.CustomJobTypeGetJobTypes(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomJobTypeApi.CustomJobTypeGetJobTypes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CustomJobTypeGetJobTypes`: []KeyfactorApiModelsOrchestratorJobsJobTypeResponse + fmt.Fprintf(os.Stdout, "Response from `CustomJobTypeApi.CustomJobTypeGetJobTypes`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCustomJobTypeGetJobTypesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + **pqQueryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **pqPageReturned** | **int32** | The current page within the result set to be returned | + **pqReturnLimit** | **int32** | Maximum number of records to be returned in a single call | + **pqSortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **pqSortAscending** | **int32** | Field sort direction [0=ascending, 1=descending] | + +### Return type + +[**[]KeyfactorApiModelsOrchestratorJobsJobTypeResponse**](KeyfactorApiModelsOrchestratorJobsJobTypeResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CustomJobTypeUpdateJobType + +> KeyfactorApiModelsOrchestratorJobsJobTypeResponse CustomJobTypeUpdateJobType(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).JobType(jobType).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Updates an existing custom job type with the provided properties + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + jobType := *openapiclient.NewModelsOrchestratorJobsJobTypeUpdateRequest("00000000-0000-0000-0000-000000000000", "JobTypeName_example") // ModelsOrchestratorJobsJobTypeUpdateRequest | job type properties to be applied to the existing job type + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CustomJobTypeApi.CustomJobTypeUpdateJobType(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).JobType(jobType).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomJobTypeApi.CustomJobTypeUpdateJobType``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CustomJobTypeUpdateJobType`: KeyfactorApiModelsOrchestratorJobsJobTypeResponse + fmt.Fprintf(os.Stdout, "Response from `CustomJobTypeApi.CustomJobTypeUpdateJobType`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCustomJobTypeUpdateJobTypeRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **jobType** | [**ModelsOrchestratorJobsJobTypeUpdateRequest**](ModelsOrchestratorJobsJobTypeUpdateRequest.md) | job type properties to be applied to the existing job type | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsOrchestratorJobsJobTypeResponse**](KeyfactorApiModelsOrchestratorJobsJobTypeResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v1/docs/DeniedAlertApi.md b/v1/docs/DeniedAlertApi.md new file mode 100644 index 0000000..b1286a1 --- /dev/null +++ b/v1/docs/DeniedAlertApi.md @@ -0,0 +1,367 @@ +# \DeniedAlertApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**DeniedAlertAddDeniedAlert**](DeniedAlertApi.md#DeniedAlertAddDeniedAlert) | **Post** /Alerts/Denied | Add a denied alert +[**DeniedAlertDeleteDeniedAlert**](DeniedAlertApi.md#DeniedAlertDeleteDeniedAlert) | **Delete** /Alerts/Denied/{id} | Delete a denied alert +[**DeniedAlertEditDeniedAlert**](DeniedAlertApi.md#DeniedAlertEditDeniedAlert) | **Put** /Alerts/Denied | Edit a denied alert +[**DeniedAlertGetDeniedAlert**](DeniedAlertApi.md#DeniedAlertGetDeniedAlert) | **Get** /Alerts/Denied/{id} | Get a denied alert +[**DeniedAlertGetDeniedAlerts**](DeniedAlertApi.md#DeniedAlertGetDeniedAlerts) | **Get** /Alerts/Denied | Gets all denied alerts according to the provided filter and output parameters + + + +## DeniedAlertAddDeniedAlert + +> KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse DeniedAlertAddDeniedAlert(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Add a denied alert + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + req := *openapiclient.NewKeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest("DisplayName_example", "Subject_example", "Message_example") // KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest | Information for the new alert + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DeniedAlertApi.DeniedAlertAddDeniedAlert(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DeniedAlertApi.DeniedAlertAddDeniedAlert``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeniedAlertAddDeniedAlert`: KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `DeniedAlertApi.DeniedAlertAddDeniedAlert`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeniedAlertAddDeniedAlertRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **req** | [**KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest**](KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest.md) | Information for the new alert | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse**](KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeniedAlertDeleteDeniedAlert + +> DeniedAlertDeleteDeniedAlert(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Delete a denied alert + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Id for the denied alert + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DeniedAlertApi.DeniedAlertDeleteDeniedAlert(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DeniedAlertApi.DeniedAlertDeleteDeniedAlert``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Id for the denied alert | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeniedAlertDeleteDeniedAlertRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeniedAlertEditDeniedAlert + +> KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse DeniedAlertEditDeniedAlert(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Edit a denied alert + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + req := *openapiclient.NewKeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest("DisplayName_example", "Subject_example", "Message_example") // KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest | Information for the denied alert + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DeniedAlertApi.DeniedAlertEditDeniedAlert(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DeniedAlertApi.DeniedAlertEditDeniedAlert``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeniedAlertEditDeniedAlert`: KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `DeniedAlertApi.DeniedAlertEditDeniedAlert`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeniedAlertEditDeniedAlertRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **req** | [**KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest**](KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest.md) | Information for the denied alert | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse**](KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeniedAlertGetDeniedAlert + +> KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse DeniedAlertGetDeniedAlert(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Get a denied alert + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Id for the denied alert to get + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DeniedAlertApi.DeniedAlertGetDeniedAlert(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DeniedAlertApi.DeniedAlertGetDeniedAlert``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeniedAlertGetDeniedAlert`: KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `DeniedAlertApi.DeniedAlertGetDeniedAlert`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Id for the denied alert to get | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeniedAlertGetDeniedAlertRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse**](KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeniedAlertGetDeniedAlerts + +> []KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse DeniedAlertGetDeniedAlerts(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PagedQueryQueryString(pagedQueryQueryString).PagedQueryPageReturned(pagedQueryPageReturned).PagedQueryReturnLimit(pagedQueryReturnLimit).PagedQuerySortField(pagedQuerySortField).PagedQuerySortAscending(pagedQuerySortAscending).Execute() + +Gets all denied alerts according to the provided filter and output parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + pagedQueryQueryString := "pagedQueryQueryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + pagedQueryPageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + pagedQueryReturnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + pagedQuerySortField := "pagedQuerySortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + pagedQuerySortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DeniedAlertApi.DeniedAlertGetDeniedAlerts(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PagedQueryQueryString(pagedQueryQueryString).PagedQueryPageReturned(pagedQueryPageReturned).PagedQueryReturnLimit(pagedQueryReturnLimit).PagedQuerySortField(pagedQuerySortField).PagedQuerySortAscending(pagedQuerySortAscending).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DeniedAlertApi.DeniedAlertGetDeniedAlerts``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeniedAlertGetDeniedAlerts`: []KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `DeniedAlertApi.DeniedAlertGetDeniedAlerts`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeniedAlertGetDeniedAlertsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + **pagedQueryQueryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **pagedQueryPageReturned** | **int32** | The current page within the result set to be returned | + **pagedQueryReturnLimit** | **int32** | Maximum number of records to be returned in a single call | + **pagedQuerySortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **pagedQuerySortAscending** | **int32** | Field sort direction [0=ascending, 1=descending] | + +### Return type + +[**[]KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse**](KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v1/docs/EnrollmentApi.md b/v1/docs/EnrollmentApi.md new file mode 100644 index 0000000..d914d8d --- /dev/null +++ b/v1/docs/EnrollmentApi.md @@ -0,0 +1,793 @@ +# \EnrollmentApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**EnrollmentAddToExistingCertStores**](EnrollmentApi.md#EnrollmentAddToExistingCertStores) | **Post** /Enrollment/PFX/Replace | Creates management jobs to install a newly enrolled pfx into the same certificate stores as the previous certificate +[**EnrollmentAvailableRenewalId**](EnrollmentApi.md#EnrollmentAvailableRenewalId) | **Get** /Enrollment/AvailableRenewal/Id/{id} | Returns the type of renewal available for a given certificate. +[**EnrollmentAvailableRenewalThumbprint**](EnrollmentApi.md#EnrollmentAvailableRenewalThumbprint) | **Get** /Enrollment/AvailableRenewal/Thumbprint/{thumbprint} | Returns the type of renewal available for a given certificate. +[**EnrollmentGetMyCSRContext**](EnrollmentApi.md#EnrollmentGetMyCSRContext) | **Get** /Enrollment/CSR/Context/My | Returns the list of available CSR enrollment templates and their associated CA mappings that the calling user has permissions on +[**EnrollmentGetMyPFXContext**](EnrollmentApi.md#EnrollmentGetMyPFXContext) | **Get** /Enrollment/PFX/Context/My | Returns the list of available PFX enrollment templates and their associated CA mappings that the calling user has permissions on +[**EnrollmentGetTemplateEnrollmentSettings**](EnrollmentApi.md#EnrollmentGetTemplateEnrollmentSettings) | **Get** /Enrollment/Settings/{id} | Gets the template settings to use during enrollment. The response will be the resolved values for the settings. If there is a template specific setting, the template specific setting will be used in the response. If there is not a template specific setting, the global setting will be used in the response. +[**EnrollmentInstallPFXToCertStore**](EnrollmentApi.md#EnrollmentInstallPFXToCertStore) | **Post** /Enrollment/PFX/Deploy | Creates management jobs to install a newly enrolled pfx in to one or more certificate stores +[**EnrollmentPostCSREnroll**](EnrollmentApi.md#EnrollmentPostCSREnroll) | **Post** /Enrollment/CSR | Performs a CSR Enrollment based upon the provided request +[**EnrollmentPostPFXEnroll**](EnrollmentApi.md#EnrollmentPostPFXEnroll) | **Post** /Enrollment/PFX | Performs a PFX Enrollment based upon the provided request +[**EnrollmentPostParsedCSR**](EnrollmentApi.md#EnrollmentPostParsedCSR) | **Post** /Enrollment/CSR/Parse | Parses the provided CSR and returns the properties +[**EnrollmentRenew**](EnrollmentApi.md#EnrollmentRenew) | **Post** /Enrollment/Renew | Performs a renewal based upon the passed in request + + + +## EnrollmentAddToExistingCertStores + +> KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse EnrollmentAddToExistingCertStores(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Creates management jobs to install a newly enrolled pfx into the same certificate stores as the previous certificate + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + request := *openapiclient.NewModelsEnrollmentExistingEnrollmentManagementRequest() // ModelsEnrollmentExistingEnrollmentManagementRequest | The request to create the management jobs, which includes the request Id of the new pfx and the Id of the existing certificate + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.EnrollmentApi.EnrollmentAddToExistingCertStores(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EnrollmentApi.EnrollmentAddToExistingCertStores``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `EnrollmentAddToExistingCertStores`: KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse + fmt.Fprintf(os.Stdout, "Response from `EnrollmentApi.EnrollmentAddToExistingCertStores`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiEnrollmentAddToExistingCertStoresRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **request** | [**ModelsEnrollmentExistingEnrollmentManagementRequest**](ModelsEnrollmentExistingEnrollmentManagementRequest.md) | The request to create the management jobs, which includes the request Id of the new pfx and the Id of the existing certificate | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse**](KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## EnrollmentAvailableRenewalId + +> ModelsEnrollmentAvailableRenewal EnrollmentAvailableRenewalId(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns the type of renewal available for a given certificate. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | The Keyfactor certificate Id + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + collectionId := int32(56) // int32 | The collection id for the given certificate (optional) + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.EnrollmentApi.EnrollmentAvailableRenewalId(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EnrollmentApi.EnrollmentAvailableRenewalId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `EnrollmentAvailableRenewalId`: ModelsEnrollmentAvailableRenewal + fmt.Fprintf(os.Stdout, "Response from `EnrollmentApi.EnrollmentAvailableRenewalId`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | The Keyfactor certificate Id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiEnrollmentAvailableRenewalIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **collectionId** | **int32** | The collection id for the given certificate | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsEnrollmentAvailableRenewal**](ModelsEnrollmentAvailableRenewal.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## EnrollmentAvailableRenewalThumbprint + +> ModelsEnrollmentAvailableRenewal EnrollmentAvailableRenewalThumbprint(ctx, thumbprint).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns the type of renewal available for a given certificate. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + thumbprint := "thumbprint_example" // string | The certificate thumbprint + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + collectionId := int32(56) // int32 | The collection id for the given certificate (optional) + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.EnrollmentApi.EnrollmentAvailableRenewalThumbprint(context.Background(), thumbprint).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EnrollmentApi.EnrollmentAvailableRenewalThumbprint``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `EnrollmentAvailableRenewalThumbprint`: ModelsEnrollmentAvailableRenewal + fmt.Fprintf(os.Stdout, "Response from `EnrollmentApi.EnrollmentAvailableRenewalThumbprint`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**thumbprint** | **string** | The certificate thumbprint | + +### Other Parameters + +Other parameters are passed through a pointer to a apiEnrollmentAvailableRenewalThumbprintRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **collectionId** | **int32** | The collection id for the given certificate | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsEnrollmentAvailableRenewal**](ModelsEnrollmentAvailableRenewal.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## EnrollmentGetMyCSRContext + +> CoreModelsEnrollmentEnrollmentTemplateCAResponse EnrollmentGetMyCSRContext(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns the list of available CSR enrollment templates and their associated CA mappings that the calling user has permissions on + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.EnrollmentApi.EnrollmentGetMyCSRContext(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EnrollmentApi.EnrollmentGetMyCSRContext``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `EnrollmentGetMyCSRContext`: CoreModelsEnrollmentEnrollmentTemplateCAResponse + fmt.Fprintf(os.Stdout, "Response from `EnrollmentApi.EnrollmentGetMyCSRContext`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiEnrollmentGetMyCSRContextRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**CoreModelsEnrollmentEnrollmentTemplateCAResponse**](CoreModelsEnrollmentEnrollmentTemplateCAResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## EnrollmentGetMyPFXContext + +> CoreModelsEnrollmentEnrollmentTemplateCAResponse EnrollmentGetMyPFXContext(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns the list of available PFX enrollment templates and their associated CA mappings that the calling user has permissions on + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.EnrollmentApi.EnrollmentGetMyPFXContext(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EnrollmentApi.EnrollmentGetMyPFXContext``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `EnrollmentGetMyPFXContext`: CoreModelsEnrollmentEnrollmentTemplateCAResponse + fmt.Fprintf(os.Stdout, "Response from `EnrollmentApi.EnrollmentGetMyPFXContext`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiEnrollmentGetMyPFXContextRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**CoreModelsEnrollmentEnrollmentTemplateCAResponse**](CoreModelsEnrollmentEnrollmentTemplateCAResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## EnrollmentGetTemplateEnrollmentSettings + +> KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse EnrollmentGetTemplateEnrollmentSettings(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Gets the template settings to use during enrollment. The response will be the resolved values for the settings. If there is a template specific setting, the template specific setting will be used in the response. If there is not a template specific setting, the global setting will be used in the response. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.EnrollmentApi.EnrollmentGetTemplateEnrollmentSettings(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EnrollmentApi.EnrollmentGetTemplateEnrollmentSettings``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `EnrollmentGetTemplateEnrollmentSettings`: KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse + fmt.Fprintf(os.Stdout, "Response from `EnrollmentApi.EnrollmentGetTemplateEnrollmentSettings`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiEnrollmentGetTemplateEnrollmentSettingsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse**](KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## EnrollmentInstallPFXToCertStore + +> KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse EnrollmentInstallPFXToCertStore(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Creates management jobs to install a newly enrolled pfx in to one or more certificate stores + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + request := *openapiclient.NewKeyfactorApiModelsEnrollmentEnrollmentManagementRequest("Password_example") // KeyfactorApiModelsEnrollmentEnrollmentManagementRequest | The request to create the management jobs, which includes the request Id of the new pfx and the Ids and management job properties of the cert stores to add the pfx to + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.EnrollmentApi.EnrollmentInstallPFXToCertStore(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EnrollmentApi.EnrollmentInstallPFXToCertStore``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `EnrollmentInstallPFXToCertStore`: KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse + fmt.Fprintf(os.Stdout, "Response from `EnrollmentApi.EnrollmentInstallPFXToCertStore`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiEnrollmentInstallPFXToCertStoreRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **request** | [**KeyfactorApiModelsEnrollmentEnrollmentManagementRequest**](KeyfactorApiModelsEnrollmentEnrollmentManagementRequest.md) | The request to create the management jobs, which includes the request Id of the new pfx and the Ids and management job properties of the cert stores to add the pfx to | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse**](KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## EnrollmentPostCSREnroll + +> ModelsEnrollmentCSREnrollmentResponse EnrollmentPostCSREnroll(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XCertificateformat(xCertificateformat).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Performs a CSR Enrollment based upon the provided request + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xCertificateformat := "xCertificateformat_example" // string | Desired format [PEM, DER] (default to "PEM") + request := *openapiclient.NewModelsEnrollmentCSREnrollmentRequest("CSR_example") // ModelsEnrollmentCSREnrollmentRequest | Information needed to perform the CSR Enrollment + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.EnrollmentApi.EnrollmentPostCSREnroll(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XCertificateformat(xCertificateformat).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EnrollmentApi.EnrollmentPostCSREnroll``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `EnrollmentPostCSREnroll`: ModelsEnrollmentCSREnrollmentResponse + fmt.Fprintf(os.Stdout, "Response from `EnrollmentApi.EnrollmentPostCSREnroll`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiEnrollmentPostCSREnrollRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xCertificateformat** | **string** | Desired format [PEM, DER] | [default to "PEM"] + **request** | [**ModelsEnrollmentCSREnrollmentRequest**](ModelsEnrollmentCSREnrollmentRequest.md) | Information needed to perform the CSR Enrollment | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsEnrollmentCSREnrollmentResponse**](ModelsEnrollmentCSREnrollmentResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## EnrollmentPostPFXEnroll + +> ModelsEnrollmentPFXEnrollmentResponse EnrollmentPostPFXEnroll(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XCertificateformat(xCertificateformat).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Performs a PFX Enrollment based upon the provided request + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xCertificateformat := "xCertificateformat_example" // string | Desired format [PFX, Zip, STORE] (default to "PFX") + request := *openapiclient.NewModelsEnrollmentPFXEnrollmentRequest() // ModelsEnrollmentPFXEnrollmentRequest | The information needed to perform the PFX Enrollment + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.EnrollmentApi.EnrollmentPostPFXEnroll(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XCertificateformat(xCertificateformat).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EnrollmentApi.EnrollmentPostPFXEnroll``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `EnrollmentPostPFXEnroll`: ModelsEnrollmentPFXEnrollmentResponse + fmt.Fprintf(os.Stdout, "Response from `EnrollmentApi.EnrollmentPostPFXEnroll`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiEnrollmentPostPFXEnrollRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xCertificateformat** | **string** | Desired format [PFX, Zip, STORE] | [default to "PFX"] + **request** | [**ModelsEnrollmentPFXEnrollmentRequest**](ModelsEnrollmentPFXEnrollmentRequest.md) | The information needed to perform the PFX Enrollment | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsEnrollmentPFXEnrollmentResponse**](ModelsEnrollmentPFXEnrollmentResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## EnrollmentPostParsedCSR + +> []string EnrollmentPostParsedCSR(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Csr(csr).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Parses the provided CSR and returns the properties + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + csr := *openapiclient.NewModelsCSRContents("CSR_example") // ModelsCSRContents | CSR to be parsed + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.EnrollmentApi.EnrollmentPostParsedCSR(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Csr(csr).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EnrollmentApi.EnrollmentPostParsedCSR``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `EnrollmentPostParsedCSR`: []string + fmt.Fprintf(os.Stdout, "Response from `EnrollmentApi.EnrollmentPostParsedCSR`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiEnrollmentPostParsedCSRRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **csr** | [**ModelsCSRContents**](ModelsCSRContents.md) | CSR to be parsed | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +**[]string** + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## EnrollmentRenew + +> ModelsEnrollmentRenewalResponse EnrollmentRenew(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Performs a renewal based upon the passed in request + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + request := *openapiclient.NewModelsEnrollmentRenewalRequest() // ModelsEnrollmentRenewalRequest | The information needed to perform the renewal + collectionId := int32(56) // int32 | The collection id for the given certificate (optional) + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.EnrollmentApi.EnrollmentRenew(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).CollectionId(collectionId).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EnrollmentApi.EnrollmentRenew``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `EnrollmentRenew`: ModelsEnrollmentRenewalResponse + fmt.Fprintf(os.Stdout, "Response from `EnrollmentApi.EnrollmentRenew`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiEnrollmentRenewRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **request** | [**ModelsEnrollmentRenewalRequest**](ModelsEnrollmentRenewalRequest.md) | The information needed to perform the renewal | + **collectionId** | **int32** | The collection id for the given certificate | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsEnrollmentRenewalResponse**](ModelsEnrollmentRenewalResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v1/docs/ExpirationAlertApi.md b/v1/docs/ExpirationAlertApi.md new file mode 100644 index 0000000..6cf6803 --- /dev/null +++ b/v1/docs/ExpirationAlertApi.md @@ -0,0 +1,641 @@ +# \ExpirationAlertApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**ExpirationAlertAddExpirationAlert**](ExpirationAlertApi.md#ExpirationAlertAddExpirationAlert) | **Post** /Alerts/Expiration | Add an expiration alert +[**ExpirationAlertDeleteExpirationAlert**](ExpirationAlertApi.md#ExpirationAlertDeleteExpirationAlert) | **Delete** /Alerts/Expiration/{id} | Delete an expiration alert +[**ExpirationAlertEditExpirationAlert**](ExpirationAlertApi.md#ExpirationAlertEditExpirationAlert) | **Put** /Alerts/Expiration | Edit an expiration alert +[**ExpirationAlertEditSchedule**](ExpirationAlertApi.md#ExpirationAlertEditSchedule) | **Put** /Alerts/Expiration/Schedule | Edit schedule +[**ExpirationAlertGetExpirationAlert**](ExpirationAlertApi.md#ExpirationAlertGetExpirationAlert) | **Get** /Alerts/Expiration/{id} | Get an expiration alert +[**ExpirationAlertGetExpirationAlerts**](ExpirationAlertApi.md#ExpirationAlertGetExpirationAlerts) | **Get** /Alerts/Expiration | Gets all expiration alerts according to the provided filter and output parameters +[**ExpirationAlertGetSchedule**](ExpirationAlertApi.md#ExpirationAlertGetSchedule) | **Get** /Alerts/Expiration/Schedule | Get the schedule for expiration alerts +[**ExpirationAlertTestAllExpirationAlert**](ExpirationAlertApi.md#ExpirationAlertTestAllExpirationAlert) | **Post** /Alerts/Expiration/TestAll | Test All Expiration Alerts +[**ExpirationAlertTestExpirationAlert**](ExpirationAlertApi.md#ExpirationAlertTestExpirationAlert) | **Post** /Alerts/Expiration/Test | Test an Expiration Alert + + + +## ExpirationAlertAddExpirationAlert + +> KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse ExpirationAlertAddExpirationAlert(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Add an expiration alert + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + req := *openapiclient.NewKeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest("DisplayName_example", "Subject_example", "Message_example", int32(123)) // KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest | Information for the new alert + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExpirationAlertApi.ExpirationAlertAddExpirationAlert(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExpirationAlertApi.ExpirationAlertAddExpirationAlert``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExpirationAlertAddExpirationAlert`: KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `ExpirationAlertApi.ExpirationAlertAddExpirationAlert`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExpirationAlertAddExpirationAlertRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **req** | [**KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest**](KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest.md) | Information for the new alert | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse**](KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExpirationAlertDeleteExpirationAlert + +> ExpirationAlertDeleteExpirationAlert(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Delete an expiration alert + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Id for the expiration alert + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExpirationAlertApi.ExpirationAlertDeleteExpirationAlert(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExpirationAlertApi.ExpirationAlertDeleteExpirationAlert``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Id for the expiration alert | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExpirationAlertDeleteExpirationAlertRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExpirationAlertEditExpirationAlert + +> KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse ExpirationAlertEditExpirationAlert(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Edit an expiration alert + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + req := *openapiclient.NewKeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest("DisplayName_example", "Subject_example", "Message_example", int32(123)) // KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest | Information for the expiration alert + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExpirationAlertApi.ExpirationAlertEditExpirationAlert(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExpirationAlertApi.ExpirationAlertEditExpirationAlert``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExpirationAlertEditExpirationAlert`: KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `ExpirationAlertApi.ExpirationAlertEditExpirationAlert`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExpirationAlertEditExpirationAlertRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **req** | [**KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest**](KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest.md) | Information for the expiration alert | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse**](KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExpirationAlertEditSchedule + +> KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse ExpirationAlertEditSchedule(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).NewSchedule(newSchedule).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Edit schedule + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + newSchedule := *openapiclient.NewKeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest() // KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest | + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExpirationAlertApi.ExpirationAlertEditSchedule(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).NewSchedule(newSchedule).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExpirationAlertApi.ExpirationAlertEditSchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExpirationAlertEditSchedule`: KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse + fmt.Fprintf(os.Stdout, "Response from `ExpirationAlertApi.ExpirationAlertEditSchedule`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExpirationAlertEditScheduleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **newSchedule** | [**KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest**](KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse**](KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExpirationAlertGetExpirationAlert + +> KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse ExpirationAlertGetExpirationAlert(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Get an expiration alert + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Id for the expiration alert to get + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExpirationAlertApi.ExpirationAlertGetExpirationAlert(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExpirationAlertApi.ExpirationAlertGetExpirationAlert``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExpirationAlertGetExpirationAlert`: KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `ExpirationAlertApi.ExpirationAlertGetExpirationAlert`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Id for the expiration alert to get | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExpirationAlertGetExpirationAlertRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse**](KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExpirationAlertGetExpirationAlerts + +> []KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse ExpirationAlertGetExpirationAlerts(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PagedQueryQueryString(pagedQueryQueryString).PagedQueryPageReturned(pagedQueryPageReturned).PagedQueryReturnLimit(pagedQueryReturnLimit).PagedQuerySortField(pagedQuerySortField).PagedQuerySortAscending(pagedQuerySortAscending).Execute() + +Gets all expiration alerts according to the provided filter and output parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + pagedQueryQueryString := "pagedQueryQueryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + pagedQueryPageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + pagedQueryReturnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + pagedQuerySortField := "pagedQuerySortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + pagedQuerySortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExpirationAlertApi.ExpirationAlertGetExpirationAlerts(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PagedQueryQueryString(pagedQueryQueryString).PagedQueryPageReturned(pagedQueryPageReturned).PagedQueryReturnLimit(pagedQueryReturnLimit).PagedQuerySortField(pagedQuerySortField).PagedQuerySortAscending(pagedQuerySortAscending).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExpirationAlertApi.ExpirationAlertGetExpirationAlerts``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExpirationAlertGetExpirationAlerts`: []KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `ExpirationAlertApi.ExpirationAlertGetExpirationAlerts`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExpirationAlertGetExpirationAlertsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + **pagedQueryQueryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **pagedQueryPageReturned** | **int32** | The current page within the result set to be returned | + **pagedQueryReturnLimit** | **int32** | Maximum number of records to be returned in a single call | + **pagedQuerySortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **pagedQuerySortAscending** | **int32** | Field sort direction [0=ascending, 1=descending] | + +### Return type + +[**[]KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse**](KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExpirationAlertGetSchedule + +> KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse ExpirationAlertGetSchedule(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Get the schedule for expiration alerts + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExpirationAlertApi.ExpirationAlertGetSchedule(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExpirationAlertApi.ExpirationAlertGetSchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExpirationAlertGetSchedule`: KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse + fmt.Fprintf(os.Stdout, "Response from `ExpirationAlertApi.ExpirationAlertGetSchedule`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExpirationAlertGetScheduleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse**](KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExpirationAlertTestAllExpirationAlert + +> KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse ExpirationAlertTestAllExpirationAlert(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).ExpirationAlertTestRequest(expirationAlertTestRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Test All Expiration Alerts + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + expirationAlertTestRequest := *openapiclient.NewKeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest() // KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest | Information about the expiration alert test + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExpirationAlertApi.ExpirationAlertTestAllExpirationAlert(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).ExpirationAlertTestRequest(expirationAlertTestRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExpirationAlertApi.ExpirationAlertTestAllExpirationAlert``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExpirationAlertTestAllExpirationAlert`: KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse + fmt.Fprintf(os.Stdout, "Response from `ExpirationAlertApi.ExpirationAlertTestAllExpirationAlert`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExpirationAlertTestAllExpirationAlertRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **expirationAlertTestRequest** | [**KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest**](KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest.md) | Information about the expiration alert test | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse**](KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExpirationAlertTestExpirationAlert + +> KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse ExpirationAlertTestExpirationAlert(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).ExpirationAlertTestRequest(expirationAlertTestRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Test an Expiration Alert + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + expirationAlertTestRequest := *openapiclient.NewKeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest() // KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest | Information about the expiration alert test + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExpirationAlertApi.ExpirationAlertTestExpirationAlert(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).ExpirationAlertTestRequest(expirationAlertTestRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExpirationAlertApi.ExpirationAlertTestExpirationAlert``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExpirationAlertTestExpirationAlert`: KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse + fmt.Fprintf(os.Stdout, "Response from `ExpirationAlertApi.ExpirationAlertTestExpirationAlert`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExpirationAlertTestExpirationAlertRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **expirationAlertTestRequest** | [**KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest**](KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest.md) | Information about the expiration alert test | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse**](KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v1/docs/IssuedAlertApi.md b/v1/docs/IssuedAlertApi.md new file mode 100644 index 0000000..0ef60cd --- /dev/null +++ b/v1/docs/IssuedAlertApi.md @@ -0,0 +1,503 @@ +# \IssuedAlertApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**IssuedAlertAddIssuedAlert**](IssuedAlertApi.md#IssuedAlertAddIssuedAlert) | **Post** /Alerts/Issued | Add a issued alert +[**IssuedAlertDeleteIssuedAlert**](IssuedAlertApi.md#IssuedAlertDeleteIssuedAlert) | **Delete** /Alerts/Issued/{id} | Delete a issued alert +[**IssuedAlertEditIssuedAlert**](IssuedAlertApi.md#IssuedAlertEditIssuedAlert) | **Put** /Alerts/Issued | Edit a issued alert +[**IssuedAlertEditSchedule**](IssuedAlertApi.md#IssuedAlertEditSchedule) | **Put** /Alerts/Issued/Schedule | Edit schedule +[**IssuedAlertGetIssuedAlert**](IssuedAlertApi.md#IssuedAlertGetIssuedAlert) | **Get** /Alerts/Issued/{id} | Get a issued alert +[**IssuedAlertGetIssuedAlerts**](IssuedAlertApi.md#IssuedAlertGetIssuedAlerts) | **Get** /Alerts/Issued | Gets all issued alerts according to the provided filter and output parameters +[**IssuedAlertGetSchedule**](IssuedAlertApi.md#IssuedAlertGetSchedule) | **Get** /Alerts/Issued/Schedule | Get the schedule for issued alerts + + + +## IssuedAlertAddIssuedAlert + +> KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse IssuedAlertAddIssuedAlert(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Add a issued alert + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + req := *openapiclient.NewKeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest("DisplayName_example", "Subject_example", "Message_example") // KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest | Information for the new alert + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IssuedAlertApi.IssuedAlertAddIssuedAlert(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IssuedAlertApi.IssuedAlertAddIssuedAlert``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `IssuedAlertAddIssuedAlert`: KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `IssuedAlertApi.IssuedAlertAddIssuedAlert`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiIssuedAlertAddIssuedAlertRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **req** | [**KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest**](KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest.md) | Information for the new alert | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse**](KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## IssuedAlertDeleteIssuedAlert + +> IssuedAlertDeleteIssuedAlert(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Delete a issued alert + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Id for the issued alert + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IssuedAlertApi.IssuedAlertDeleteIssuedAlert(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IssuedAlertApi.IssuedAlertDeleteIssuedAlert``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Id for the issued alert | + +### Other Parameters + +Other parameters are passed through a pointer to a apiIssuedAlertDeleteIssuedAlertRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## IssuedAlertEditIssuedAlert + +> KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse IssuedAlertEditIssuedAlert(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Edit a issued alert + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + req := *openapiclient.NewKeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest("DisplayName_example", "Subject_example", "Message_example") // KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest | Information for the issued alert + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IssuedAlertApi.IssuedAlertEditIssuedAlert(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IssuedAlertApi.IssuedAlertEditIssuedAlert``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `IssuedAlertEditIssuedAlert`: KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `IssuedAlertApi.IssuedAlertEditIssuedAlert`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiIssuedAlertEditIssuedAlertRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **req** | [**KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest**](KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest.md) | Information for the issued alert | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse**](KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## IssuedAlertEditSchedule + +> KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse IssuedAlertEditSchedule(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).NewSchedule(newSchedule).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Edit schedule + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + newSchedule := *openapiclient.NewKeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest() // KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest | + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IssuedAlertApi.IssuedAlertEditSchedule(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).NewSchedule(newSchedule).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IssuedAlertApi.IssuedAlertEditSchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `IssuedAlertEditSchedule`: KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse + fmt.Fprintf(os.Stdout, "Response from `IssuedAlertApi.IssuedAlertEditSchedule`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiIssuedAlertEditScheduleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **newSchedule** | [**KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest**](KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse**](KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## IssuedAlertGetIssuedAlert + +> KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse IssuedAlertGetIssuedAlert(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Get a issued alert + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Id for the issued alert to get + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IssuedAlertApi.IssuedAlertGetIssuedAlert(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IssuedAlertApi.IssuedAlertGetIssuedAlert``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `IssuedAlertGetIssuedAlert`: KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `IssuedAlertApi.IssuedAlertGetIssuedAlert`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Id for the issued alert to get | + +### Other Parameters + +Other parameters are passed through a pointer to a apiIssuedAlertGetIssuedAlertRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse**](KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## IssuedAlertGetIssuedAlerts + +> []KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse IssuedAlertGetIssuedAlerts(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PagedQueryQueryString(pagedQueryQueryString).PagedQueryPageReturned(pagedQueryPageReturned).PagedQueryReturnLimit(pagedQueryReturnLimit).PagedQuerySortField(pagedQuerySortField).PagedQuerySortAscending(pagedQuerySortAscending).Execute() + +Gets all issued alerts according to the provided filter and output parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + pagedQueryQueryString := "pagedQueryQueryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + pagedQueryPageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + pagedQueryReturnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + pagedQuerySortField := "pagedQuerySortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + pagedQuerySortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IssuedAlertApi.IssuedAlertGetIssuedAlerts(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PagedQueryQueryString(pagedQueryQueryString).PagedQueryPageReturned(pagedQueryPageReturned).PagedQueryReturnLimit(pagedQueryReturnLimit).PagedQuerySortField(pagedQuerySortField).PagedQuerySortAscending(pagedQuerySortAscending).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IssuedAlertApi.IssuedAlertGetIssuedAlerts``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `IssuedAlertGetIssuedAlerts`: []KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `IssuedAlertApi.IssuedAlertGetIssuedAlerts`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiIssuedAlertGetIssuedAlertsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + **pagedQueryQueryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **pagedQueryPageReturned** | **int32** | The current page within the result set to be returned | + **pagedQueryReturnLimit** | **int32** | Maximum number of records to be returned in a single call | + **pagedQuerySortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **pagedQuerySortAscending** | **int32** | Field sort direction [0=ascending, 1=descending] | + +### Return type + +[**[]KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse**](KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## IssuedAlertGetSchedule + +> KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse IssuedAlertGetSchedule(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Get the schedule for issued alerts + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IssuedAlertApi.IssuedAlertGetSchedule(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IssuedAlertApi.IssuedAlertGetSchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `IssuedAlertGetSchedule`: KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse + fmt.Fprintf(os.Stdout, "Response from `IssuedAlertApi.IssuedAlertGetSchedule`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiIssuedAlertGetScheduleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse**](KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v1/docs/KeyApi.md b/v1/docs/KeyApi.md new file mode 100644 index 0000000..c7f89f0 --- /dev/null +++ b/v1/docs/KeyApi.md @@ -0,0 +1,507 @@ +# \KeyApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**KeyDeleteUnmanagedKey**](KeyApi.md#KeyDeleteUnmanagedKey) | **Delete** /SSH/Keys/Unmanaged/{id} | Deletes Unmanaged Key associated with the provided identifier +[**KeyDeleteUnmanagedKeys**](KeyApi.md#KeyDeleteUnmanagedKeys) | **Delete** /SSH/Keys/Unmanaged | Deletes Unmanaged Keys associated with the provided identifiers +[**KeyGenerateKey**](KeyApi.md#KeyGenerateKey) | **Post** /SSH/Keys/MyKey | Generates an SSH Key Pair for the requesting user. +[**KeyGetMyKey**](KeyApi.md#KeyGetMyKey) | **Get** /SSH/Keys/MyKey | Returns the current key of the requesting user +[**KeyGetUnmanagedKey**](KeyApi.md#KeyGetUnmanagedKey) | **Get** /SSH/Keys/Unmanaged/{id} | Returns an unmanaged SSH key with provided id. +[**KeyGetUnmanagedKeys**](KeyApi.md#KeyGetUnmanagedKeys) | **Get** /SSH/Keys/Unmanaged | Returns Unmanaged SSH keys +[**KeyUpdate**](KeyApi.md#KeyUpdate) | **Put** /SSH/Keys/MyKey | Updates the requesting user's SSH key + + + +## KeyDeleteUnmanagedKey + +> KeyDeleteUnmanagedKey(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes Unmanaged Key associated with the provided identifier + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Keyfactor identifer of the Key to be deleted + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.KeyApi.KeyDeleteUnmanagedKey(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `KeyApi.KeyDeleteUnmanagedKey``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Keyfactor identifer of the Key to be deleted | + +### Other Parameters + +Other parameters are passed through a pointer to a apiKeyDeleteUnmanagedKeyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## KeyDeleteUnmanagedKeys + +> KeyDeleteUnmanagedKeys(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Ids(ids).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes Unmanaged Keys associated with the provided identifiers + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + ids := []int32{int32(123)} // []int32 | Keyfactor identifers of the Keys to be deleted + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.KeyApi.KeyDeleteUnmanagedKeys(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Ids(ids).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `KeyApi.KeyDeleteUnmanagedKeys``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiKeyDeleteUnmanagedKeysRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **ids** | **[]int32** | Keyfactor identifers of the Keys to be deleted | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## KeyGenerateKey + +> ModelsSSHKeysKeyResponse KeyGenerateKey(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).GenerationRequest(generationRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Generates an SSH Key Pair for the requesting user. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + generationRequest := *openapiclient.NewModelsSSHKeysKeyGenerationRequest("KeyType_example", "PrivateKeyFormat_example", int32(123), "Email_example", "Password_example") // ModelsSSHKeysKeyGenerationRequest | Object containing information about the key to be generated + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.KeyApi.KeyGenerateKey(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).GenerationRequest(generationRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `KeyApi.KeyGenerateKey``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `KeyGenerateKey`: ModelsSSHKeysKeyResponse + fmt.Fprintf(os.Stdout, "Response from `KeyApi.KeyGenerateKey`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiKeyGenerateKeyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **generationRequest** | [**ModelsSSHKeysKeyGenerationRequest**](ModelsSSHKeysKeyGenerationRequest.md) | Object containing information about the key to be generated | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsSSHKeysKeyResponse**](ModelsSSHKeysKeyResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## KeyGetMyKey + +> ModelsSSHKeysKeyResponse KeyGetMyKey(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorKeyPassphrase(xKeyfactorKeyPassphrase).IncludePrivateKey(includePrivateKey).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns the current key of the requesting user + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorKeyPassphrase := "xKeyfactorKeyPassphrase_example" // string | Key password + includePrivateKey := true // bool | Whether or not to include the private key. If true, you must supply the X-Keyfactor-Key-Passphrase header (optional) + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.KeyApi.KeyGetMyKey(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorKeyPassphrase(xKeyfactorKeyPassphrase).IncludePrivateKey(includePrivateKey).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `KeyApi.KeyGetMyKey``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `KeyGetMyKey`: ModelsSSHKeysKeyResponse + fmt.Fprintf(os.Stdout, "Response from `KeyApi.KeyGetMyKey`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiKeyGetMyKeyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorKeyPassphrase** | **string** | Key password | + **includePrivateKey** | **bool** | Whether or not to include the private key. If true, you must supply the X-Keyfactor-Key-Passphrase header | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsSSHKeysKeyResponse**](ModelsSSHKeysKeyResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## KeyGetUnmanagedKey + +> ModelsSSHKeysUnmanagedKeyResponse KeyGetUnmanagedKey(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns an unmanaged SSH key with provided id. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | The id of the key to get + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.KeyApi.KeyGetUnmanagedKey(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `KeyApi.KeyGetUnmanagedKey``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `KeyGetUnmanagedKey`: ModelsSSHKeysUnmanagedKeyResponse + fmt.Fprintf(os.Stdout, "Response from `KeyApi.KeyGetUnmanagedKey`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | The id of the key to get | + +### Other Parameters + +Other parameters are passed through a pointer to a apiKeyGetUnmanagedKeyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsSSHKeysUnmanagedKeyResponse**](ModelsSSHKeysUnmanagedKeyResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## KeyGetUnmanagedKeys + +> []ModelsSSHKeysUnmanagedKeyResponse KeyGetUnmanagedKeys(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + +Returns Unmanaged SSH keys + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + pqQueryString := "pqQueryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + pqPageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + pqReturnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.KeyApi.KeyGetUnmanagedKeys(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `KeyApi.KeyGetUnmanagedKeys``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `KeyGetUnmanagedKeys`: []ModelsSSHKeysUnmanagedKeyResponse + fmt.Fprintf(os.Stdout, "Response from `KeyApi.KeyGetUnmanagedKeys`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiKeyGetUnmanagedKeysRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + **pqQueryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **pqPageReturned** | **int32** | The current page within the result set to be returned | + **pqReturnLimit** | **int32** | Maximum number of records to be returned in a single call | + **pqSortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **pqSortAscending** | **int32** | Field sort direction [0=ascending, 1=descending] | + +### Return type + +[**[]ModelsSSHKeysUnmanagedKeyResponse**](ModelsSSHKeysUnmanagedKeyResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## KeyUpdate + +> ModelsSSHKeysKeyResponse KeyUpdate(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).KeyUpdateRequest(keyUpdateRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Updates the requesting user's SSH key + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + keyUpdateRequest := *openapiclient.NewModelsSSHKeysKeyUpdateRequest(int32(123), "Email_example") // ModelsSSHKeysKeyUpdateRequest | Updated state of the SSH key + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.KeyApi.KeyUpdate(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).KeyUpdateRequest(keyUpdateRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `KeyApi.KeyUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `KeyUpdate`: ModelsSSHKeysKeyResponse + fmt.Fprintf(os.Stdout, "Response from `KeyApi.KeyUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiKeyUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **keyUpdateRequest** | [**ModelsSSHKeysKeyUpdateRequest**](ModelsSSHKeysKeyUpdateRequest.md) | Updated state of the SSH key | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsSSHKeysKeyResponse**](ModelsSSHKeysKeyResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v1/docs/KeyRotationAlertApi.md b/v1/docs/KeyRotationAlertApi.md new file mode 100644 index 0000000..17f504c --- /dev/null +++ b/v1/docs/KeyRotationAlertApi.md @@ -0,0 +1,641 @@ +# \KeyRotationAlertApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**KeyRotationAlertAddKeyRotationAlert**](KeyRotationAlertApi.md#KeyRotationAlertAddKeyRotationAlert) | **Post** /Alerts/KeyRotation | Add a key rotation alert +[**KeyRotationAlertDeleteKeyRotationAlert**](KeyRotationAlertApi.md#KeyRotationAlertDeleteKeyRotationAlert) | **Delete** /Alerts/KeyRotation/{id} | Delete a key rotation alert +[**KeyRotationAlertEditKeyRotationAlert**](KeyRotationAlertApi.md#KeyRotationAlertEditKeyRotationAlert) | **Put** /Alerts/KeyRotation | Edit a key rotation alert +[**KeyRotationAlertEditSchedule**](KeyRotationAlertApi.md#KeyRotationAlertEditSchedule) | **Put** /Alerts/KeyRotation/Schedule | Edit schedule +[**KeyRotationAlertGetKeyRotationAlert**](KeyRotationAlertApi.md#KeyRotationAlertGetKeyRotationAlert) | **Get** /Alerts/KeyRotation/{id} | Get a key rotation alert +[**KeyRotationAlertGetKeyRotationAlerts**](KeyRotationAlertApi.md#KeyRotationAlertGetKeyRotationAlerts) | **Get** /Alerts/KeyRotation | Gets all key rotation alerts according to the provided filter and output parameters +[**KeyRotationAlertGetSchedule**](KeyRotationAlertApi.md#KeyRotationAlertGetSchedule) | **Get** /Alerts/KeyRotation/Schedule | Get the schedule for key rotation alerts +[**KeyRotationAlertTestAllKeyRotationAlert**](KeyRotationAlertApi.md#KeyRotationAlertTestAllKeyRotationAlert) | **Post** /Alerts/KeyRotation/TestAll | Test All Alerts +[**KeyRotationAlertTestKeyRotationAlert**](KeyRotationAlertApi.md#KeyRotationAlertTestKeyRotationAlert) | **Post** /Alerts/KeyRotation/Test | Test An Alert + + + +## KeyRotationAlertAddKeyRotationAlert + +> KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse KeyRotationAlertAddKeyRotationAlert(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Add a key rotation alert + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + req := *openapiclient.NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest("DisplayName_example", "Subject_example", "Message_example", int32(123)) // KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest | Information for the new alert + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.KeyRotationAlertApi.KeyRotationAlertAddKeyRotationAlert(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `KeyRotationAlertApi.KeyRotationAlertAddKeyRotationAlert``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `KeyRotationAlertAddKeyRotationAlert`: KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `KeyRotationAlertApi.KeyRotationAlertAddKeyRotationAlert`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiKeyRotationAlertAddKeyRotationAlertRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **req** | [**KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest**](KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest.md) | Information for the new alert | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse**](KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## KeyRotationAlertDeleteKeyRotationAlert + +> KeyRotationAlertDeleteKeyRotationAlert(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Delete a key rotation alert + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Id for the key rotation alert + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.KeyRotationAlertApi.KeyRotationAlertDeleteKeyRotationAlert(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `KeyRotationAlertApi.KeyRotationAlertDeleteKeyRotationAlert``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Id for the key rotation alert | + +### Other Parameters + +Other parameters are passed through a pointer to a apiKeyRotationAlertDeleteKeyRotationAlertRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## KeyRotationAlertEditKeyRotationAlert + +> KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse KeyRotationAlertEditKeyRotationAlert(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Edit a key rotation alert + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + req := *openapiclient.NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest("DisplayName_example", "Subject_example", "Message_example", int32(123)) // KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest | Information for the key rotation alert + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.KeyRotationAlertApi.KeyRotationAlertEditKeyRotationAlert(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `KeyRotationAlertApi.KeyRotationAlertEditKeyRotationAlert``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `KeyRotationAlertEditKeyRotationAlert`: KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `KeyRotationAlertApi.KeyRotationAlertEditKeyRotationAlert`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiKeyRotationAlertEditKeyRotationAlertRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **req** | [**KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest**](KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest.md) | Information for the key rotation alert | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse**](KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## KeyRotationAlertEditSchedule + +> KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse KeyRotationAlertEditSchedule(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).NewSchedule(newSchedule).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Edit schedule + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + newSchedule := *openapiclient.NewKeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest() // KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest | + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.KeyRotationAlertApi.KeyRotationAlertEditSchedule(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).NewSchedule(newSchedule).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `KeyRotationAlertApi.KeyRotationAlertEditSchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `KeyRotationAlertEditSchedule`: KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse + fmt.Fprintf(os.Stdout, "Response from `KeyRotationAlertApi.KeyRotationAlertEditSchedule`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiKeyRotationAlertEditScheduleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **newSchedule** | [**KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest**](KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse**](KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## KeyRotationAlertGetKeyRotationAlert + +> KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse KeyRotationAlertGetKeyRotationAlert(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Get a key rotation alert + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Id for the key rotation alert to get + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.KeyRotationAlertApi.KeyRotationAlertGetKeyRotationAlert(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `KeyRotationAlertApi.KeyRotationAlertGetKeyRotationAlert``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `KeyRotationAlertGetKeyRotationAlert`: KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `KeyRotationAlertApi.KeyRotationAlertGetKeyRotationAlert`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Id for the key rotation alert to get | + +### Other Parameters + +Other parameters are passed through a pointer to a apiKeyRotationAlertGetKeyRotationAlertRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse**](KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## KeyRotationAlertGetKeyRotationAlerts + +> []KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse KeyRotationAlertGetKeyRotationAlerts(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PagedQueryQueryString(pagedQueryQueryString).PagedQueryPageReturned(pagedQueryPageReturned).PagedQueryReturnLimit(pagedQueryReturnLimit).PagedQuerySortField(pagedQuerySortField).PagedQuerySortAscending(pagedQuerySortAscending).Execute() + +Gets all key rotation alerts according to the provided filter and output parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + pagedQueryQueryString := "pagedQueryQueryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + pagedQueryPageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + pagedQueryReturnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + pagedQuerySortField := "pagedQuerySortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + pagedQuerySortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.KeyRotationAlertApi.KeyRotationAlertGetKeyRotationAlerts(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PagedQueryQueryString(pagedQueryQueryString).PagedQueryPageReturned(pagedQueryPageReturned).PagedQueryReturnLimit(pagedQueryReturnLimit).PagedQuerySortField(pagedQuerySortField).PagedQuerySortAscending(pagedQuerySortAscending).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `KeyRotationAlertApi.KeyRotationAlertGetKeyRotationAlerts``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `KeyRotationAlertGetKeyRotationAlerts`: []KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `KeyRotationAlertApi.KeyRotationAlertGetKeyRotationAlerts`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiKeyRotationAlertGetKeyRotationAlertsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + **pagedQueryQueryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **pagedQueryPageReturned** | **int32** | The current page within the result set to be returned | + **pagedQueryReturnLimit** | **int32** | Maximum number of records to be returned in a single call | + **pagedQuerySortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **pagedQuerySortAscending** | **int32** | Field sort direction [0=ascending, 1=descending] | + +### Return type + +[**[]KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse**](KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## KeyRotationAlertGetSchedule + +> KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse KeyRotationAlertGetSchedule(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Get the schedule for key rotation alerts + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.KeyRotationAlertApi.KeyRotationAlertGetSchedule(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `KeyRotationAlertApi.KeyRotationAlertGetSchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `KeyRotationAlertGetSchedule`: KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse + fmt.Fprintf(os.Stdout, "Response from `KeyRotationAlertApi.KeyRotationAlertGetSchedule`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiKeyRotationAlertGetScheduleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse**](KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## KeyRotationAlertTestAllKeyRotationAlert + +> KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse KeyRotationAlertTestAllKeyRotationAlert(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).KeyRotationAlertTestRequest(keyRotationAlertTestRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Test All Alerts + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + keyRotationAlertTestRequest := *openapiclient.NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest() // KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest | Information about the key rotation alert test + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.KeyRotationAlertApi.KeyRotationAlertTestAllKeyRotationAlert(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).KeyRotationAlertTestRequest(keyRotationAlertTestRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `KeyRotationAlertApi.KeyRotationAlertTestAllKeyRotationAlert``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `KeyRotationAlertTestAllKeyRotationAlert`: KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse + fmt.Fprintf(os.Stdout, "Response from `KeyRotationAlertApi.KeyRotationAlertTestAllKeyRotationAlert`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiKeyRotationAlertTestAllKeyRotationAlertRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **keyRotationAlertTestRequest** | [**KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest**](KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest.md) | Information about the key rotation alert test | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse**](KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## KeyRotationAlertTestKeyRotationAlert + +> KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse KeyRotationAlertTestKeyRotationAlert(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).KeyRotationAlertTestRequest(keyRotationAlertTestRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Test An Alert + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + keyRotationAlertTestRequest := *openapiclient.NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest() // KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest | Parameters used to test the alert + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.KeyRotationAlertApi.KeyRotationAlertTestKeyRotationAlert(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).KeyRotationAlertTestRequest(keyRotationAlertTestRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `KeyRotationAlertApi.KeyRotationAlertTestKeyRotationAlert``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `KeyRotationAlertTestKeyRotationAlert`: KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse + fmt.Fprintf(os.Stdout, "Response from `KeyRotationAlertApi.KeyRotationAlertTestKeyRotationAlert`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiKeyRotationAlertTestKeyRotationAlertRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **keyRotationAlertTestRequest** | [**KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest**](KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest.md) | Parameters used to test the alert | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse**](KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v1/docs/KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse.md b/v1/docs/KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse.md new file mode 100644 index 0000000..7eae855 --- /dev/null +++ b/v1/docs/KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse.md @@ -0,0 +1,82 @@ +# KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SuccessfulStores** | Pointer to **[]string** | | [optional] +**FailedStores** | Pointer to **[]string** | | [optional] + +## Methods + +### NewKeyfactorAPIModelsEnrollmentEnrollmentManagementResponse + +`func NewKeyfactorAPIModelsEnrollmentEnrollmentManagementResponse() *KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse` + +NewKeyfactorAPIModelsEnrollmentEnrollmentManagementResponse instantiates a new KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorAPIModelsEnrollmentEnrollmentManagementResponseWithDefaults + +`func NewKeyfactorAPIModelsEnrollmentEnrollmentManagementResponseWithDefaults() *KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse` + +NewKeyfactorAPIModelsEnrollmentEnrollmentManagementResponseWithDefaults instantiates a new KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSuccessfulStores + +`func (o *KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse) GetSuccessfulStores() []string` + +GetSuccessfulStores returns the SuccessfulStores field if non-nil, zero value otherwise. + +### GetSuccessfulStoresOk + +`func (o *KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse) GetSuccessfulStoresOk() (*[]string, bool)` + +GetSuccessfulStoresOk returns a tuple with the SuccessfulStores field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccessfulStores + +`func (o *KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse) SetSuccessfulStores(v []string)` + +SetSuccessfulStores sets SuccessfulStores field to given value. + +### HasSuccessfulStores + +`func (o *KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse) HasSuccessfulStores() bool` + +HasSuccessfulStores returns a boolean if a field has been set. + +### GetFailedStores + +`func (o *KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse) GetFailedStores() []string` + +GetFailedStores returns the FailedStores field if non-nil, zero value otherwise. + +### GetFailedStoresOk + +`func (o *KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse) GetFailedStoresOk() (*[]string, bool)` + +GetFailedStoresOk returns a tuple with the FailedStores field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFailedStores + +`func (o *KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse) SetFailedStores(v []string)` + +SetFailedStores sets FailedStores field to given value. + +### HasFailedStores + +`func (o *KeyfactorAPIModelsEnrollmentEnrollmentManagementResponse) HasFailedStores() bool` + +HasFailedStores returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorAPIModelsSMTPSMTPRequest.md b/v1/docs/KeyfactorAPIModelsSMTPSMTPRequest.md new file mode 100644 index 0000000..f694179 --- /dev/null +++ b/v1/docs/KeyfactorAPIModelsSMTPSMTPRequest.md @@ -0,0 +1,264 @@ +# KeyfactorAPIModelsSMTPSMTPRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Host** | Pointer to **string** | | [optional] +**Id** | Pointer to **int32** | | [optional] +**Port** | Pointer to **int32** | | [optional] +**RelayAuthenticationType** | Pointer to **int32** | | [optional] +**RelayPassword** | Pointer to **string** | | [optional] +**RelayUsername** | Pointer to **string** | | [optional] +**SenderAccount** | Pointer to **string** | | [optional] +**SenderName** | Pointer to **string** | | [optional] +**UseSSL** | Pointer to **bool** | | [optional] + +## Methods + +### NewKeyfactorAPIModelsSMTPSMTPRequest + +`func NewKeyfactorAPIModelsSMTPSMTPRequest() *KeyfactorAPIModelsSMTPSMTPRequest` + +NewKeyfactorAPIModelsSMTPSMTPRequest instantiates a new KeyfactorAPIModelsSMTPSMTPRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorAPIModelsSMTPSMTPRequestWithDefaults + +`func NewKeyfactorAPIModelsSMTPSMTPRequestWithDefaults() *KeyfactorAPIModelsSMTPSMTPRequest` + +NewKeyfactorAPIModelsSMTPSMTPRequestWithDefaults instantiates a new KeyfactorAPIModelsSMTPSMTPRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetHost + +`func (o *KeyfactorAPIModelsSMTPSMTPRequest) GetHost() string` + +GetHost returns the Host field if non-nil, zero value otherwise. + +### GetHostOk + +`func (o *KeyfactorAPIModelsSMTPSMTPRequest) GetHostOk() (*string, bool)` + +GetHostOk returns a tuple with the Host field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHost + +`func (o *KeyfactorAPIModelsSMTPSMTPRequest) SetHost(v string)` + +SetHost sets Host field to given value. + +### HasHost + +`func (o *KeyfactorAPIModelsSMTPSMTPRequest) HasHost() bool` + +HasHost returns a boolean if a field has been set. + +### GetId + +`func (o *KeyfactorAPIModelsSMTPSMTPRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *KeyfactorAPIModelsSMTPSMTPRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *KeyfactorAPIModelsSMTPSMTPRequest) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *KeyfactorAPIModelsSMTPSMTPRequest) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetPort + +`func (o *KeyfactorAPIModelsSMTPSMTPRequest) GetPort() int32` + +GetPort returns the Port field if non-nil, zero value otherwise. + +### GetPortOk + +`func (o *KeyfactorAPIModelsSMTPSMTPRequest) GetPortOk() (*int32, bool)` + +GetPortOk returns a tuple with the Port field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPort + +`func (o *KeyfactorAPIModelsSMTPSMTPRequest) SetPort(v int32)` + +SetPort sets Port field to given value. + +### HasPort + +`func (o *KeyfactorAPIModelsSMTPSMTPRequest) HasPort() bool` + +HasPort returns a boolean if a field has been set. + +### GetRelayAuthenticationType + +`func (o *KeyfactorAPIModelsSMTPSMTPRequest) GetRelayAuthenticationType() int32` + +GetRelayAuthenticationType returns the RelayAuthenticationType field if non-nil, zero value otherwise. + +### GetRelayAuthenticationTypeOk + +`func (o *KeyfactorAPIModelsSMTPSMTPRequest) GetRelayAuthenticationTypeOk() (*int32, bool)` + +GetRelayAuthenticationTypeOk returns a tuple with the RelayAuthenticationType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelayAuthenticationType + +`func (o *KeyfactorAPIModelsSMTPSMTPRequest) SetRelayAuthenticationType(v int32)` + +SetRelayAuthenticationType sets RelayAuthenticationType field to given value. + +### HasRelayAuthenticationType + +`func (o *KeyfactorAPIModelsSMTPSMTPRequest) HasRelayAuthenticationType() bool` + +HasRelayAuthenticationType returns a boolean if a field has been set. + +### GetRelayPassword + +`func (o *KeyfactorAPIModelsSMTPSMTPRequest) GetRelayPassword() string` + +GetRelayPassword returns the RelayPassword field if non-nil, zero value otherwise. + +### GetRelayPasswordOk + +`func (o *KeyfactorAPIModelsSMTPSMTPRequest) GetRelayPasswordOk() (*string, bool)` + +GetRelayPasswordOk returns a tuple with the RelayPassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelayPassword + +`func (o *KeyfactorAPIModelsSMTPSMTPRequest) SetRelayPassword(v string)` + +SetRelayPassword sets RelayPassword field to given value. + +### HasRelayPassword + +`func (o *KeyfactorAPIModelsSMTPSMTPRequest) HasRelayPassword() bool` + +HasRelayPassword returns a boolean if a field has been set. + +### GetRelayUsername + +`func (o *KeyfactorAPIModelsSMTPSMTPRequest) GetRelayUsername() string` + +GetRelayUsername returns the RelayUsername field if non-nil, zero value otherwise. + +### GetRelayUsernameOk + +`func (o *KeyfactorAPIModelsSMTPSMTPRequest) GetRelayUsernameOk() (*string, bool)` + +GetRelayUsernameOk returns a tuple with the RelayUsername field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelayUsername + +`func (o *KeyfactorAPIModelsSMTPSMTPRequest) SetRelayUsername(v string)` + +SetRelayUsername sets RelayUsername field to given value. + +### HasRelayUsername + +`func (o *KeyfactorAPIModelsSMTPSMTPRequest) HasRelayUsername() bool` + +HasRelayUsername returns a boolean if a field has been set. + +### GetSenderAccount + +`func (o *KeyfactorAPIModelsSMTPSMTPRequest) GetSenderAccount() string` + +GetSenderAccount returns the SenderAccount field if non-nil, zero value otherwise. + +### GetSenderAccountOk + +`func (o *KeyfactorAPIModelsSMTPSMTPRequest) GetSenderAccountOk() (*string, bool)` + +GetSenderAccountOk returns a tuple with the SenderAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSenderAccount + +`func (o *KeyfactorAPIModelsSMTPSMTPRequest) SetSenderAccount(v string)` + +SetSenderAccount sets SenderAccount field to given value. + +### HasSenderAccount + +`func (o *KeyfactorAPIModelsSMTPSMTPRequest) HasSenderAccount() bool` + +HasSenderAccount returns a boolean if a field has been set. + +### GetSenderName + +`func (o *KeyfactorAPIModelsSMTPSMTPRequest) GetSenderName() string` + +GetSenderName returns the SenderName field if non-nil, zero value otherwise. + +### GetSenderNameOk + +`func (o *KeyfactorAPIModelsSMTPSMTPRequest) GetSenderNameOk() (*string, bool)` + +GetSenderNameOk returns a tuple with the SenderName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSenderName + +`func (o *KeyfactorAPIModelsSMTPSMTPRequest) SetSenderName(v string)` + +SetSenderName sets SenderName field to given value. + +### HasSenderName + +`func (o *KeyfactorAPIModelsSMTPSMTPRequest) HasSenderName() bool` + +HasSenderName returns a boolean if a field has been set. + +### GetUseSSL + +`func (o *KeyfactorAPIModelsSMTPSMTPRequest) GetUseSSL() bool` + +GetUseSSL returns the UseSSL field if non-nil, zero value otherwise. + +### GetUseSSLOk + +`func (o *KeyfactorAPIModelsSMTPSMTPRequest) GetUseSSLOk() (*bool, bool)` + +GetUseSSLOk returns a tuple with the UseSSL field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseSSL + +`func (o *KeyfactorAPIModelsSMTPSMTPRequest) SetUseSSL(v bool)` + +SetUseSSL sets UseSSL field to given value. + +### HasUseSSL + +`func (o *KeyfactorAPIModelsSMTPSMTPRequest) HasUseSSL() bool` + +HasUseSSL returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorAPIModelsSMTPSMTPResponse.md b/v1/docs/KeyfactorAPIModelsSMTPSMTPResponse.md new file mode 100644 index 0000000..a8ad4f1 --- /dev/null +++ b/v1/docs/KeyfactorAPIModelsSMTPSMTPResponse.md @@ -0,0 +1,238 @@ +# KeyfactorAPIModelsSMTPSMTPResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Host** | Pointer to **string** | | [optional] +**Id** | Pointer to **int32** | | [optional] +**Port** | Pointer to **int32** | | [optional] +**RelayAuthenticationType** | Pointer to **int32** | | [optional] +**RelayUsername** | Pointer to **string** | | [optional] +**SenderAccount** | Pointer to **string** | | [optional] +**SenderName** | Pointer to **string** | | [optional] +**UseSSL** | Pointer to **bool** | | [optional] + +## Methods + +### NewKeyfactorAPIModelsSMTPSMTPResponse + +`func NewKeyfactorAPIModelsSMTPSMTPResponse() *KeyfactorAPIModelsSMTPSMTPResponse` + +NewKeyfactorAPIModelsSMTPSMTPResponse instantiates a new KeyfactorAPIModelsSMTPSMTPResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorAPIModelsSMTPSMTPResponseWithDefaults + +`func NewKeyfactorAPIModelsSMTPSMTPResponseWithDefaults() *KeyfactorAPIModelsSMTPSMTPResponse` + +NewKeyfactorAPIModelsSMTPSMTPResponseWithDefaults instantiates a new KeyfactorAPIModelsSMTPSMTPResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetHost + +`func (o *KeyfactorAPIModelsSMTPSMTPResponse) GetHost() string` + +GetHost returns the Host field if non-nil, zero value otherwise. + +### GetHostOk + +`func (o *KeyfactorAPIModelsSMTPSMTPResponse) GetHostOk() (*string, bool)` + +GetHostOk returns a tuple with the Host field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHost + +`func (o *KeyfactorAPIModelsSMTPSMTPResponse) SetHost(v string)` + +SetHost sets Host field to given value. + +### HasHost + +`func (o *KeyfactorAPIModelsSMTPSMTPResponse) HasHost() bool` + +HasHost returns a boolean if a field has been set. + +### GetId + +`func (o *KeyfactorAPIModelsSMTPSMTPResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *KeyfactorAPIModelsSMTPSMTPResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *KeyfactorAPIModelsSMTPSMTPResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *KeyfactorAPIModelsSMTPSMTPResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetPort + +`func (o *KeyfactorAPIModelsSMTPSMTPResponse) GetPort() int32` + +GetPort returns the Port field if non-nil, zero value otherwise. + +### GetPortOk + +`func (o *KeyfactorAPIModelsSMTPSMTPResponse) GetPortOk() (*int32, bool)` + +GetPortOk returns a tuple with the Port field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPort + +`func (o *KeyfactorAPIModelsSMTPSMTPResponse) SetPort(v int32)` + +SetPort sets Port field to given value. + +### HasPort + +`func (o *KeyfactorAPIModelsSMTPSMTPResponse) HasPort() bool` + +HasPort returns a boolean if a field has been set. + +### GetRelayAuthenticationType + +`func (o *KeyfactorAPIModelsSMTPSMTPResponse) GetRelayAuthenticationType() int32` + +GetRelayAuthenticationType returns the RelayAuthenticationType field if non-nil, zero value otherwise. + +### GetRelayAuthenticationTypeOk + +`func (o *KeyfactorAPIModelsSMTPSMTPResponse) GetRelayAuthenticationTypeOk() (*int32, bool)` + +GetRelayAuthenticationTypeOk returns a tuple with the RelayAuthenticationType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelayAuthenticationType + +`func (o *KeyfactorAPIModelsSMTPSMTPResponse) SetRelayAuthenticationType(v int32)` + +SetRelayAuthenticationType sets RelayAuthenticationType field to given value. + +### HasRelayAuthenticationType + +`func (o *KeyfactorAPIModelsSMTPSMTPResponse) HasRelayAuthenticationType() bool` + +HasRelayAuthenticationType returns a boolean if a field has been set. + +### GetRelayUsername + +`func (o *KeyfactorAPIModelsSMTPSMTPResponse) GetRelayUsername() string` + +GetRelayUsername returns the RelayUsername field if non-nil, zero value otherwise. + +### GetRelayUsernameOk + +`func (o *KeyfactorAPIModelsSMTPSMTPResponse) GetRelayUsernameOk() (*string, bool)` + +GetRelayUsernameOk returns a tuple with the RelayUsername field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelayUsername + +`func (o *KeyfactorAPIModelsSMTPSMTPResponse) SetRelayUsername(v string)` + +SetRelayUsername sets RelayUsername field to given value. + +### HasRelayUsername + +`func (o *KeyfactorAPIModelsSMTPSMTPResponse) HasRelayUsername() bool` + +HasRelayUsername returns a boolean if a field has been set. + +### GetSenderAccount + +`func (o *KeyfactorAPIModelsSMTPSMTPResponse) GetSenderAccount() string` + +GetSenderAccount returns the SenderAccount field if non-nil, zero value otherwise. + +### GetSenderAccountOk + +`func (o *KeyfactorAPIModelsSMTPSMTPResponse) GetSenderAccountOk() (*string, bool)` + +GetSenderAccountOk returns a tuple with the SenderAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSenderAccount + +`func (o *KeyfactorAPIModelsSMTPSMTPResponse) SetSenderAccount(v string)` + +SetSenderAccount sets SenderAccount field to given value. + +### HasSenderAccount + +`func (o *KeyfactorAPIModelsSMTPSMTPResponse) HasSenderAccount() bool` + +HasSenderAccount returns a boolean if a field has been set. + +### GetSenderName + +`func (o *KeyfactorAPIModelsSMTPSMTPResponse) GetSenderName() string` + +GetSenderName returns the SenderName field if non-nil, zero value otherwise. + +### GetSenderNameOk + +`func (o *KeyfactorAPIModelsSMTPSMTPResponse) GetSenderNameOk() (*string, bool)` + +GetSenderNameOk returns a tuple with the SenderName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSenderName + +`func (o *KeyfactorAPIModelsSMTPSMTPResponse) SetSenderName(v string)` + +SetSenderName sets SenderName field to given value. + +### HasSenderName + +`func (o *KeyfactorAPIModelsSMTPSMTPResponse) HasSenderName() bool` + +HasSenderName returns a boolean if a field has been set. + +### GetUseSSL + +`func (o *KeyfactorAPIModelsSMTPSMTPResponse) GetUseSSL() bool` + +GetUseSSL returns the UseSSL field if non-nil, zero value otherwise. + +### GetUseSSLOk + +`func (o *KeyfactorAPIModelsSMTPSMTPResponse) GetUseSSLOk() (*bool, bool)` + +GetUseSSLOk returns a tuple with the UseSSL field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseSSL + +`func (o *KeyfactorAPIModelsSMTPSMTPResponse) SetUseSSL(v bool)` + +SetUseSSL sets UseSSL field to given value. + +### HasUseSSL + +`func (o *KeyfactorAPIModelsSMTPSMTPResponse) HasUseSSL() bool` + +HasUseSSL returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorAPIModelsSMTPSMTPTestRequest.md b/v1/docs/KeyfactorAPIModelsSMTPSMTPTestRequest.md new file mode 100644 index 0000000..26dea71 --- /dev/null +++ b/v1/docs/KeyfactorAPIModelsSMTPSMTPTestRequest.md @@ -0,0 +1,290 @@ +# KeyfactorAPIModelsSMTPSMTPTestRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Host** | Pointer to **string** | | [optional] +**Id** | Pointer to **int32** | | [optional] +**Port** | Pointer to **int32** | | [optional] +**RelayAuthenticationType** | Pointer to **int32** | | [optional] +**RelayPassword** | Pointer to **string** | | [optional] +**RelayUsername** | Pointer to **string** | | [optional] +**SenderAccount** | Pointer to **string** | | [optional] +**SenderName** | Pointer to **string** | | [optional] +**TestRecipient** | Pointer to **string** | | [optional] +**UseSSL** | Pointer to **bool** | | [optional] + +## Methods + +### NewKeyfactorAPIModelsSMTPSMTPTestRequest + +`func NewKeyfactorAPIModelsSMTPSMTPTestRequest() *KeyfactorAPIModelsSMTPSMTPTestRequest` + +NewKeyfactorAPIModelsSMTPSMTPTestRequest instantiates a new KeyfactorAPIModelsSMTPSMTPTestRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorAPIModelsSMTPSMTPTestRequestWithDefaults + +`func NewKeyfactorAPIModelsSMTPSMTPTestRequestWithDefaults() *KeyfactorAPIModelsSMTPSMTPTestRequest` + +NewKeyfactorAPIModelsSMTPSMTPTestRequestWithDefaults instantiates a new KeyfactorAPIModelsSMTPSMTPTestRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetHost + +`func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) GetHost() string` + +GetHost returns the Host field if non-nil, zero value otherwise. + +### GetHostOk + +`func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) GetHostOk() (*string, bool)` + +GetHostOk returns a tuple with the Host field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHost + +`func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) SetHost(v string)` + +SetHost sets Host field to given value. + +### HasHost + +`func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) HasHost() bool` + +HasHost returns a boolean if a field has been set. + +### GetId + +`func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetPort + +`func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) GetPort() int32` + +GetPort returns the Port field if non-nil, zero value otherwise. + +### GetPortOk + +`func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) GetPortOk() (*int32, bool)` + +GetPortOk returns a tuple with the Port field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPort + +`func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) SetPort(v int32)` + +SetPort sets Port field to given value. + +### HasPort + +`func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) HasPort() bool` + +HasPort returns a boolean if a field has been set. + +### GetRelayAuthenticationType + +`func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) GetRelayAuthenticationType() int32` + +GetRelayAuthenticationType returns the RelayAuthenticationType field if non-nil, zero value otherwise. + +### GetRelayAuthenticationTypeOk + +`func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) GetRelayAuthenticationTypeOk() (*int32, bool)` + +GetRelayAuthenticationTypeOk returns a tuple with the RelayAuthenticationType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelayAuthenticationType + +`func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) SetRelayAuthenticationType(v int32)` + +SetRelayAuthenticationType sets RelayAuthenticationType field to given value. + +### HasRelayAuthenticationType + +`func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) HasRelayAuthenticationType() bool` + +HasRelayAuthenticationType returns a boolean if a field has been set. + +### GetRelayPassword + +`func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) GetRelayPassword() string` + +GetRelayPassword returns the RelayPassword field if non-nil, zero value otherwise. + +### GetRelayPasswordOk + +`func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) GetRelayPasswordOk() (*string, bool)` + +GetRelayPasswordOk returns a tuple with the RelayPassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelayPassword + +`func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) SetRelayPassword(v string)` + +SetRelayPassword sets RelayPassword field to given value. + +### HasRelayPassword + +`func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) HasRelayPassword() bool` + +HasRelayPassword returns a boolean if a field has been set. + +### GetRelayUsername + +`func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) GetRelayUsername() string` + +GetRelayUsername returns the RelayUsername field if non-nil, zero value otherwise. + +### GetRelayUsernameOk + +`func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) GetRelayUsernameOk() (*string, bool)` + +GetRelayUsernameOk returns a tuple with the RelayUsername field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelayUsername + +`func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) SetRelayUsername(v string)` + +SetRelayUsername sets RelayUsername field to given value. + +### HasRelayUsername + +`func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) HasRelayUsername() bool` + +HasRelayUsername returns a boolean if a field has been set. + +### GetSenderAccount + +`func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) GetSenderAccount() string` + +GetSenderAccount returns the SenderAccount field if non-nil, zero value otherwise. + +### GetSenderAccountOk + +`func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) GetSenderAccountOk() (*string, bool)` + +GetSenderAccountOk returns a tuple with the SenderAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSenderAccount + +`func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) SetSenderAccount(v string)` + +SetSenderAccount sets SenderAccount field to given value. + +### HasSenderAccount + +`func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) HasSenderAccount() bool` + +HasSenderAccount returns a boolean if a field has been set. + +### GetSenderName + +`func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) GetSenderName() string` + +GetSenderName returns the SenderName field if non-nil, zero value otherwise. + +### GetSenderNameOk + +`func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) GetSenderNameOk() (*string, bool)` + +GetSenderNameOk returns a tuple with the SenderName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSenderName + +`func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) SetSenderName(v string)` + +SetSenderName sets SenderName field to given value. + +### HasSenderName + +`func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) HasSenderName() bool` + +HasSenderName returns a boolean if a field has been set. + +### GetTestRecipient + +`func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) GetTestRecipient() string` + +GetTestRecipient returns the TestRecipient field if non-nil, zero value otherwise. + +### GetTestRecipientOk + +`func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) GetTestRecipientOk() (*string, bool)` + +GetTestRecipientOk returns a tuple with the TestRecipient field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTestRecipient + +`func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) SetTestRecipient(v string)` + +SetTestRecipient sets TestRecipient field to given value. + +### HasTestRecipient + +`func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) HasTestRecipient() bool` + +HasTestRecipient returns a boolean if a field has been set. + +### GetUseSSL + +`func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) GetUseSSL() bool` + +GetUseSSL returns the UseSSL field if non-nil, zero value otherwise. + +### GetUseSSLOk + +`func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) GetUseSSLOk() (*bool, bool)` + +GetUseSSLOk returns a tuple with the UseSSL field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseSSL + +`func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) SetUseSSL(v bool)` + +SetUseSSL sets UseSSL field to given value. + +### HasUseSSL + +`func (o *KeyfactorAPIModelsSMTPSMTPTestRequest) HasUseSSL() bool` + +HasUseSSL returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorAPIModelsSMTPSMTPTestResponse.md b/v1/docs/KeyfactorAPIModelsSMTPSMTPTestResponse.md new file mode 100644 index 0000000..89b80cb --- /dev/null +++ b/v1/docs/KeyfactorAPIModelsSMTPSMTPTestResponse.md @@ -0,0 +1,264 @@ +# KeyfactorAPIModelsSMTPSMTPTestResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Host** | Pointer to **string** | | [optional] +**Id** | Pointer to **int32** | | [optional] +**Port** | Pointer to **int32** | | [optional] +**RelayAuthenticationType** | Pointer to **int32** | | [optional] +**RelayUsername** | Pointer to **string** | | [optional] +**SenderAccount** | Pointer to **string** | | [optional] +**SenderName** | Pointer to **string** | | [optional] +**TestRecipient** | Pointer to **string** | | [optional] +**UseSSL** | Pointer to **bool** | | [optional] + +## Methods + +### NewKeyfactorAPIModelsSMTPSMTPTestResponse + +`func NewKeyfactorAPIModelsSMTPSMTPTestResponse() *KeyfactorAPIModelsSMTPSMTPTestResponse` + +NewKeyfactorAPIModelsSMTPSMTPTestResponse instantiates a new KeyfactorAPIModelsSMTPSMTPTestResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorAPIModelsSMTPSMTPTestResponseWithDefaults + +`func NewKeyfactorAPIModelsSMTPSMTPTestResponseWithDefaults() *KeyfactorAPIModelsSMTPSMTPTestResponse` + +NewKeyfactorAPIModelsSMTPSMTPTestResponseWithDefaults instantiates a new KeyfactorAPIModelsSMTPSMTPTestResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetHost + +`func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) GetHost() string` + +GetHost returns the Host field if non-nil, zero value otherwise. + +### GetHostOk + +`func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) GetHostOk() (*string, bool)` + +GetHostOk returns a tuple with the Host field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHost + +`func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) SetHost(v string)` + +SetHost sets Host field to given value. + +### HasHost + +`func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) HasHost() bool` + +HasHost returns a boolean if a field has been set. + +### GetId + +`func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetPort + +`func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) GetPort() int32` + +GetPort returns the Port field if non-nil, zero value otherwise. + +### GetPortOk + +`func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) GetPortOk() (*int32, bool)` + +GetPortOk returns a tuple with the Port field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPort + +`func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) SetPort(v int32)` + +SetPort sets Port field to given value. + +### HasPort + +`func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) HasPort() bool` + +HasPort returns a boolean if a field has been set. + +### GetRelayAuthenticationType + +`func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) GetRelayAuthenticationType() int32` + +GetRelayAuthenticationType returns the RelayAuthenticationType field if non-nil, zero value otherwise. + +### GetRelayAuthenticationTypeOk + +`func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) GetRelayAuthenticationTypeOk() (*int32, bool)` + +GetRelayAuthenticationTypeOk returns a tuple with the RelayAuthenticationType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelayAuthenticationType + +`func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) SetRelayAuthenticationType(v int32)` + +SetRelayAuthenticationType sets RelayAuthenticationType field to given value. + +### HasRelayAuthenticationType + +`func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) HasRelayAuthenticationType() bool` + +HasRelayAuthenticationType returns a boolean if a field has been set. + +### GetRelayUsername + +`func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) GetRelayUsername() string` + +GetRelayUsername returns the RelayUsername field if non-nil, zero value otherwise. + +### GetRelayUsernameOk + +`func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) GetRelayUsernameOk() (*string, bool)` + +GetRelayUsernameOk returns a tuple with the RelayUsername field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelayUsername + +`func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) SetRelayUsername(v string)` + +SetRelayUsername sets RelayUsername field to given value. + +### HasRelayUsername + +`func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) HasRelayUsername() bool` + +HasRelayUsername returns a boolean if a field has been set. + +### GetSenderAccount + +`func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) GetSenderAccount() string` + +GetSenderAccount returns the SenderAccount field if non-nil, zero value otherwise. + +### GetSenderAccountOk + +`func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) GetSenderAccountOk() (*string, bool)` + +GetSenderAccountOk returns a tuple with the SenderAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSenderAccount + +`func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) SetSenderAccount(v string)` + +SetSenderAccount sets SenderAccount field to given value. + +### HasSenderAccount + +`func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) HasSenderAccount() bool` + +HasSenderAccount returns a boolean if a field has been set. + +### GetSenderName + +`func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) GetSenderName() string` + +GetSenderName returns the SenderName field if non-nil, zero value otherwise. + +### GetSenderNameOk + +`func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) GetSenderNameOk() (*string, bool)` + +GetSenderNameOk returns a tuple with the SenderName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSenderName + +`func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) SetSenderName(v string)` + +SetSenderName sets SenderName field to given value. + +### HasSenderName + +`func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) HasSenderName() bool` + +HasSenderName returns a boolean if a field has been set. + +### GetTestRecipient + +`func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) GetTestRecipient() string` + +GetTestRecipient returns the TestRecipient field if non-nil, zero value otherwise. + +### GetTestRecipientOk + +`func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) GetTestRecipientOk() (*string, bool)` + +GetTestRecipientOk returns a tuple with the TestRecipient field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTestRecipient + +`func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) SetTestRecipient(v string)` + +SetTestRecipient sets TestRecipient field to given value. + +### HasTestRecipient + +`func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) HasTestRecipient() bool` + +HasTestRecipient returns a boolean if a field has been set. + +### GetUseSSL + +`func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) GetUseSSL() bool` + +GetUseSSL returns the UseSSL field if non-nil, zero value otherwise. + +### GetUseSSLOk + +`func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) GetUseSSLOk() (*bool, bool)` + +GetUseSSLOk returns a tuple with the UseSSL field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseSSL + +`func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) SetUseSSL(v bool)` + +SetUseSSL sets UseSSL field to given value. + +### HasUseSSL + +`func (o *KeyfactorAPIModelsSMTPSMTPTestResponse) HasUseSSL() bool` + +HasUseSSL returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse.md b/v1/docs/KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse.md new file mode 100644 index 0000000..8ec1069 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse.md @@ -0,0 +1,82 @@ +# KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Name** | Pointer to **string** | | [optional] + +## Methods + +### NewKeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse + +`func NewKeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse() *KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse` + +NewKeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse instantiates a new KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponseWithDefaults + +`func NewKeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponseWithDefaults() *KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse` + +NewKeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponseWithDefaults instantiates a new KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest.md b/v1/docs/KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest.md new file mode 100644 index 0000000..38375db --- /dev/null +++ b/v1/docs/KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest.md @@ -0,0 +1,56 @@ +# KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Schedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] + +## Methods + +### NewKeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest + +`func NewKeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest() *KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest` + +NewKeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest instantiates a new KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequestWithDefaults + +`func NewKeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequestWithDefaults() *KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest` + +NewKeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequestWithDefaults instantiates a new KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSchedule + +`func (o *KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetSchedule returns the Schedule field if non-nil, zero value otherwise. + +### GetScheduleOk + +`func (o *KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetScheduleOk returns a tuple with the Schedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSchedule + +`func (o *KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetSchedule sets Schedule field to given value. + +### HasSchedule + +`func (o *KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest) HasSchedule() bool` + +HasSchedule returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse.md b/v1/docs/KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse.md new file mode 100644 index 0000000..9414c6e --- /dev/null +++ b/v1/docs/KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse.md @@ -0,0 +1,56 @@ +# KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Schedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] + +## Methods + +### NewKeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse + +`func NewKeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse() *KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse` + +NewKeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse instantiates a new KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponseWithDefaults + +`func NewKeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponseWithDefaults() *KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse` + +NewKeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponseWithDefaults instantiates a new KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSchedule + +`func (o *KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetSchedule returns the Schedule field if non-nil, zero value otherwise. + +### GetScheduleOk + +`func (o *KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetScheduleOk returns a tuple with the Schedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSchedule + +`func (o *KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetSchedule sets Schedule field to given value. + +### HasSchedule + +`func (o *KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse) HasSchedule() bool` + +HasSchedule returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse.md b/v1/docs/KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse.md new file mode 100644 index 0000000..be94b23 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse.md @@ -0,0 +1,134 @@ +# KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**DisplayName** | Pointer to **string** | | [optional] +**ForestRoot** | Pointer to **string** | | [optional] +**ConfigurationTenant** | Pointer to **string** | | [optional] + +## Methods + +### NewKeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse + +`func NewKeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse() *KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse` + +NewKeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse instantiates a new KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponseWithDefaults + +`func NewKeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponseWithDefaults() *KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse` + +NewKeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponseWithDefaults instantiates a new KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetForestRoot + +`func (o *KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse) GetForestRoot() string` + +GetForestRoot returns the ForestRoot field if non-nil, zero value otherwise. + +### GetForestRootOk + +`func (o *KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse) GetForestRootOk() (*string, bool)` + +GetForestRootOk returns a tuple with the ForestRoot field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetForestRoot + +`func (o *KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse) SetForestRoot(v string)` + +SetForestRoot sets ForestRoot field to given value. + +### HasForestRoot + +`func (o *KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse) HasForestRoot() bool` + +HasForestRoot returns a boolean if a field has been set. + +### GetConfigurationTenant + +`func (o *KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse) GetConfigurationTenant() string` + +GetConfigurationTenant returns the ConfigurationTenant field if non-nil, zero value otherwise. + +### GetConfigurationTenantOk + +`func (o *KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse) GetConfigurationTenantOk() (*string, bool)` + +GetConfigurationTenantOk returns a tuple with the ConfigurationTenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigurationTenant + +`func (o *KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse) SetConfigurationTenant(v string)` + +SetConfigurationTenant sets ConfigurationTenant field to given value. + +### HasConfigurationTenant + +`func (o *KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse) HasConfigurationTenant() bool` + +HasConfigurationTenant returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest.md b/v1/docs/KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest.md new file mode 100644 index 0000000..3899e5c --- /dev/null +++ b/v1/docs/KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest.md @@ -0,0 +1,197 @@ +# KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DisplayName** | **string** | | +**Subject** | **string** | | +**Message** | **string** | | +**TemplateId** | Pointer to **int32** | | [optional] +**RegisteredEventHandler** | Pointer to [**KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest**](KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest.md) | | [optional] +**Recipients** | Pointer to **[]string** | | [optional] +**EventHandlerParameters** | Pointer to [**[]KeyfactorApiModelsEventHandlerEventHandlerParameterRequest**](KeyfactorApiModelsEventHandlerEventHandlerParameterRequest.md) | | [optional] + +## Methods + +### NewKeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest + +`func NewKeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest(displayName string, subject string, message string, ) *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest` + +NewKeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest instantiates a new KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequestWithDefaults + +`func NewKeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequestWithDefaults() *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest` + +NewKeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequestWithDefaults instantiates a new KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDisplayName + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + + +### GetSubject + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) GetSubject() string` + +GetSubject returns the Subject field if non-nil, zero value otherwise. + +### GetSubjectOk + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) GetSubjectOk() (*string, bool)` + +GetSubjectOk returns a tuple with the Subject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubject + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) SetSubject(v string)` + +SetSubject sets Subject field to given value. + + +### GetMessage + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) SetMessage(v string)` + +SetMessage sets Message field to given value. + + +### GetTemplateId + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) GetTemplateId() int32` + +GetTemplateId returns the TemplateId field if non-nil, zero value otherwise. + +### GetTemplateIdOk + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) GetTemplateIdOk() (*int32, bool)` + +GetTemplateIdOk returns a tuple with the TemplateId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateId + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) SetTemplateId(v int32)` + +SetTemplateId sets TemplateId field to given value. + +### HasTemplateId + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) HasTemplateId() bool` + +HasTemplateId returns a boolean if a field has been set. + +### GetRegisteredEventHandler + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) GetRegisteredEventHandler() KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest` + +GetRegisteredEventHandler returns the RegisteredEventHandler field if non-nil, zero value otherwise. + +### GetRegisteredEventHandlerOk + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) GetRegisteredEventHandlerOk() (*KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest, bool)` + +GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegisteredEventHandler + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) SetRegisteredEventHandler(v KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest)` + +SetRegisteredEventHandler sets RegisteredEventHandler field to given value. + +### HasRegisteredEventHandler + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) HasRegisteredEventHandler() bool` + +HasRegisteredEventHandler returns a boolean if a field has been set. + +### GetRecipients + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) GetRecipients() []string` + +GetRecipients returns the Recipients field if non-nil, zero value otherwise. + +### GetRecipientsOk + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) GetRecipientsOk() (*[]string, bool)` + +GetRecipientsOk returns a tuple with the Recipients field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecipients + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) SetRecipients(v []string)` + +SetRecipients sets Recipients field to given value. + +### HasRecipients + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) HasRecipients() bool` + +HasRecipients returns a boolean if a field has been set. + +### GetEventHandlerParameters + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) GetEventHandlerParameters() []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest` + +GetEventHandlerParameters returns the EventHandlerParameters field if non-nil, zero value otherwise. + +### GetEventHandlerParametersOk + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) GetEventHandlerParametersOk() (*[]KeyfactorApiModelsEventHandlerEventHandlerParameterRequest, bool)` + +GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventHandlerParameters + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) SetEventHandlerParameters(v []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest)` + +SetEventHandlerParameters sets EventHandlerParameters field to given value. + +### HasEventHandlerParameters + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertCreationRequest) HasEventHandlerParameters() bool` + +HasEventHandlerParameters returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse.md b/v1/docs/KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse.md new file mode 100644 index 0000000..a16abb7 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse.md @@ -0,0 +1,238 @@ +# KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**DisplayName** | Pointer to **string** | | [optional] +**Subject** | Pointer to **string** | | [optional] +**Message** | Pointer to **string** | | [optional] +**Recipients** | Pointer to **[]string** | | [optional] +**Template** | Pointer to [**KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse**](KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse.md) | | [optional] +**RegisteredEventHandler** | Pointer to [**KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse**](KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse.md) | | [optional] +**EventHandlerParameters** | Pointer to [**[]KeyfactorApiModelsEventHandlerEventHandlerParameterResponse**](KeyfactorApiModelsEventHandlerEventHandlerParameterResponse.md) | | [optional] + +## Methods + +### NewKeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse + +`func NewKeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse() *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse` + +NewKeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse instantiates a new KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponseWithDefaults + +`func NewKeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponseWithDefaults() *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse` + +NewKeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponseWithDefaults instantiates a new KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetSubject + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) GetSubject() string` + +GetSubject returns the Subject field if non-nil, zero value otherwise. + +### GetSubjectOk + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) GetSubjectOk() (*string, bool)` + +GetSubjectOk returns a tuple with the Subject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubject + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) SetSubject(v string)` + +SetSubject sets Subject field to given value. + +### HasSubject + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) HasSubject() bool` + +HasSubject returns a boolean if a field has been set. + +### GetMessage + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### GetRecipients + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) GetRecipients() []string` + +GetRecipients returns the Recipients field if non-nil, zero value otherwise. + +### GetRecipientsOk + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) GetRecipientsOk() (*[]string, bool)` + +GetRecipientsOk returns a tuple with the Recipients field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecipients + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) SetRecipients(v []string)` + +SetRecipients sets Recipients field to given value. + +### HasRecipients + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) HasRecipients() bool` + +HasRecipients returns a boolean if a field has been set. + +### GetTemplate + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) GetTemplate() KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse` + +GetTemplate returns the Template field if non-nil, zero value otherwise. + +### GetTemplateOk + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) GetTemplateOk() (*KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse, bool)` + +GetTemplateOk returns a tuple with the Template field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplate + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) SetTemplate(v KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse)` + +SetTemplate sets Template field to given value. + +### HasTemplate + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) HasTemplate() bool` + +HasTemplate returns a boolean if a field has been set. + +### GetRegisteredEventHandler + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) GetRegisteredEventHandler() KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse` + +GetRegisteredEventHandler returns the RegisteredEventHandler field if non-nil, zero value otherwise. + +### GetRegisteredEventHandlerOk + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) GetRegisteredEventHandlerOk() (*KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse, bool)` + +GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegisteredEventHandler + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) SetRegisteredEventHandler(v KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse)` + +SetRegisteredEventHandler sets RegisteredEventHandler field to given value. + +### HasRegisteredEventHandler + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) HasRegisteredEventHandler() bool` + +HasRegisteredEventHandler returns a boolean if a field has been set. + +### GetEventHandlerParameters + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) GetEventHandlerParameters() []KeyfactorApiModelsEventHandlerEventHandlerParameterResponse` + +GetEventHandlerParameters returns the EventHandlerParameters field if non-nil, zero value otherwise. + +### GetEventHandlerParametersOk + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) GetEventHandlerParametersOk() (*[]KeyfactorApiModelsEventHandlerEventHandlerParameterResponse, bool)` + +GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventHandlerParameters + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) SetEventHandlerParameters(v []KeyfactorApiModelsEventHandlerEventHandlerParameterResponse)` + +SetEventHandlerParameters sets EventHandlerParameters field to given value. + +### HasEventHandlerParameters + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertDefinitionResponse) HasEventHandlerParameters() bool` + +HasEventHandlerParameters returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest.md b/v1/docs/KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest.md new file mode 100644 index 0000000..08dcd3b --- /dev/null +++ b/v1/docs/KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest.md @@ -0,0 +1,223 @@ +# KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**DisplayName** | **string** | | +**Subject** | **string** | | +**Message** | **string** | | +**TemplateId** | Pointer to **int32** | | [optional] +**RegisteredEventHandler** | Pointer to [**KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest**](KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest.md) | | [optional] +**Recipients** | Pointer to **[]string** | | [optional] +**EventHandlerParameters** | Pointer to [**[]KeyfactorApiModelsEventHandlerEventHandlerParameterRequest**](KeyfactorApiModelsEventHandlerEventHandlerParameterRequest.md) | | [optional] + +## Methods + +### NewKeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest + +`func NewKeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest(displayName string, subject string, message string, ) *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest` + +NewKeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest instantiates a new KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequestWithDefaults + +`func NewKeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequestWithDefaults() *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest` + +NewKeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequestWithDefaults instantiates a new KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + + +### GetSubject + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) GetSubject() string` + +GetSubject returns the Subject field if non-nil, zero value otherwise. + +### GetSubjectOk + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) GetSubjectOk() (*string, bool)` + +GetSubjectOk returns a tuple with the Subject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubject + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) SetSubject(v string)` + +SetSubject sets Subject field to given value. + + +### GetMessage + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) SetMessage(v string)` + +SetMessage sets Message field to given value. + + +### GetTemplateId + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) GetTemplateId() int32` + +GetTemplateId returns the TemplateId field if non-nil, zero value otherwise. + +### GetTemplateIdOk + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) GetTemplateIdOk() (*int32, bool)` + +GetTemplateIdOk returns a tuple with the TemplateId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateId + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) SetTemplateId(v int32)` + +SetTemplateId sets TemplateId field to given value. + +### HasTemplateId + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) HasTemplateId() bool` + +HasTemplateId returns a boolean if a field has been set. + +### GetRegisteredEventHandler + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) GetRegisteredEventHandler() KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest` + +GetRegisteredEventHandler returns the RegisteredEventHandler field if non-nil, zero value otherwise. + +### GetRegisteredEventHandlerOk + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) GetRegisteredEventHandlerOk() (*KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest, bool)` + +GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegisteredEventHandler + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) SetRegisteredEventHandler(v KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest)` + +SetRegisteredEventHandler sets RegisteredEventHandler field to given value. + +### HasRegisteredEventHandler + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) HasRegisteredEventHandler() bool` + +HasRegisteredEventHandler returns a boolean if a field has been set. + +### GetRecipients + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) GetRecipients() []string` + +GetRecipients returns the Recipients field if non-nil, zero value otherwise. + +### GetRecipientsOk + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) GetRecipientsOk() (*[]string, bool)` + +GetRecipientsOk returns a tuple with the Recipients field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecipients + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) SetRecipients(v []string)` + +SetRecipients sets Recipients field to given value. + +### HasRecipients + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) HasRecipients() bool` + +HasRecipients returns a boolean if a field has been set. + +### GetEventHandlerParameters + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) GetEventHandlerParameters() []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest` + +GetEventHandlerParameters returns the EventHandlerParameters field if non-nil, zero value otherwise. + +### GetEventHandlerParametersOk + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) GetEventHandlerParametersOk() (*[]KeyfactorApiModelsEventHandlerEventHandlerParameterRequest, bool)` + +GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventHandlerParameters + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) SetEventHandlerParameters(v []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest)` + +SetEventHandlerParameters sets EventHandlerParameters field to given value. + +### HasEventHandlerParameters + +`func (o *KeyfactorApiModelsAlertsDeniedDeniedAlertUpdateRequest) HasEventHandlerParameters() bool` + +HasEventHandlerParameters returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest.md b/v1/docs/KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest.md new file mode 100644 index 0000000..097803f --- /dev/null +++ b/v1/docs/KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest.md @@ -0,0 +1,218 @@ +# KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DisplayName** | **string** | | +**Subject** | **string** | | +**Message** | **string** | | +**ExpirationWarningDays** | **int32** | | +**CertificateQueryId** | Pointer to **int32** | | [optional] +**RegisteredEventHandler** | Pointer to [**KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest**](KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest.md) | | [optional] +**Recipients** | Pointer to **[]string** | | [optional] +**EventHandlerParameters** | Pointer to [**[]KeyfactorApiModelsEventHandlerEventHandlerParameterRequest**](KeyfactorApiModelsEventHandlerEventHandlerParameterRequest.md) | | [optional] + +## Methods + +### NewKeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest + +`func NewKeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest(displayName string, subject string, message string, expirationWarningDays int32, ) *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest` + +NewKeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest instantiates a new KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequestWithDefaults + +`func NewKeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequestWithDefaults() *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest` + +NewKeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequestWithDefaults instantiates a new KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDisplayName + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + + +### GetSubject + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) GetSubject() string` + +GetSubject returns the Subject field if non-nil, zero value otherwise. + +### GetSubjectOk + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) GetSubjectOk() (*string, bool)` + +GetSubjectOk returns a tuple with the Subject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubject + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) SetSubject(v string)` + +SetSubject sets Subject field to given value. + + +### GetMessage + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) SetMessage(v string)` + +SetMessage sets Message field to given value. + + +### GetExpirationWarningDays + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) GetExpirationWarningDays() int32` + +GetExpirationWarningDays returns the ExpirationWarningDays field if non-nil, zero value otherwise. + +### GetExpirationWarningDaysOk + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) GetExpirationWarningDaysOk() (*int32, bool)` + +GetExpirationWarningDaysOk returns a tuple with the ExpirationWarningDays field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpirationWarningDays + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) SetExpirationWarningDays(v int32)` + +SetExpirationWarningDays sets ExpirationWarningDays field to given value. + + +### GetCertificateQueryId + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) GetCertificateQueryId() int32` + +GetCertificateQueryId returns the CertificateQueryId field if non-nil, zero value otherwise. + +### GetCertificateQueryIdOk + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) GetCertificateQueryIdOk() (*int32, bool)` + +GetCertificateQueryIdOk returns a tuple with the CertificateQueryId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateQueryId + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) SetCertificateQueryId(v int32)` + +SetCertificateQueryId sets CertificateQueryId field to given value. + +### HasCertificateQueryId + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) HasCertificateQueryId() bool` + +HasCertificateQueryId returns a boolean if a field has been set. + +### GetRegisteredEventHandler + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) GetRegisteredEventHandler() KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest` + +GetRegisteredEventHandler returns the RegisteredEventHandler field if non-nil, zero value otherwise. + +### GetRegisteredEventHandlerOk + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) GetRegisteredEventHandlerOk() (*KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest, bool)` + +GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegisteredEventHandler + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) SetRegisteredEventHandler(v KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest)` + +SetRegisteredEventHandler sets RegisteredEventHandler field to given value. + +### HasRegisteredEventHandler + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) HasRegisteredEventHandler() bool` + +HasRegisteredEventHandler returns a boolean if a field has been set. + +### GetRecipients + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) GetRecipients() []string` + +GetRecipients returns the Recipients field if non-nil, zero value otherwise. + +### GetRecipientsOk + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) GetRecipientsOk() (*[]string, bool)` + +GetRecipientsOk returns a tuple with the Recipients field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecipients + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) SetRecipients(v []string)` + +SetRecipients sets Recipients field to given value. + +### HasRecipients + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) HasRecipients() bool` + +HasRecipients returns a boolean if a field has been set. + +### GetEventHandlerParameters + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) GetEventHandlerParameters() []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest` + +GetEventHandlerParameters returns the EventHandlerParameters field if non-nil, zero value otherwise. + +### GetEventHandlerParametersOk + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) GetEventHandlerParametersOk() (*[]KeyfactorApiModelsEventHandlerEventHandlerParameterRequest, bool)` + +GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventHandlerParameters + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) SetEventHandlerParameters(v []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest)` + +SetEventHandlerParameters sets EventHandlerParameters field to given value. + +### HasEventHandlerParameters + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertCreationRequest) HasEventHandlerParameters() bool` + +HasEventHandlerParameters returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse.md b/v1/docs/KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse.md new file mode 100644 index 0000000..9bb4e6b --- /dev/null +++ b/v1/docs/KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse.md @@ -0,0 +1,264 @@ +# KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**DisplayName** | Pointer to **string** | | [optional] +**Subject** | Pointer to **string** | | [optional] +**Message** | Pointer to **string** | | [optional] +**ExpirationWarningDays** | Pointer to **int32** | | [optional] +**Recipients** | Pointer to **[]string** | | [optional] +**CertificateQuery** | Pointer to [**KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse**](KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse.md) | | [optional] +**RegisteredEventHandler** | Pointer to [**KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse**](KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse.md) | | [optional] +**EventHandlerParameters** | Pointer to [**[]KeyfactorApiModelsEventHandlerEventHandlerParameterResponse**](KeyfactorApiModelsEventHandlerEventHandlerParameterResponse.md) | | [optional] + +## Methods + +### NewKeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse + +`func NewKeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse() *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse` + +NewKeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse instantiates a new KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponseWithDefaults + +`func NewKeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponseWithDefaults() *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse` + +NewKeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponseWithDefaults instantiates a new KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetSubject + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) GetSubject() string` + +GetSubject returns the Subject field if non-nil, zero value otherwise. + +### GetSubjectOk + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) GetSubjectOk() (*string, bool)` + +GetSubjectOk returns a tuple with the Subject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubject + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) SetSubject(v string)` + +SetSubject sets Subject field to given value. + +### HasSubject + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) HasSubject() bool` + +HasSubject returns a boolean if a field has been set. + +### GetMessage + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### GetExpirationWarningDays + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) GetExpirationWarningDays() int32` + +GetExpirationWarningDays returns the ExpirationWarningDays field if non-nil, zero value otherwise. + +### GetExpirationWarningDaysOk + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) GetExpirationWarningDaysOk() (*int32, bool)` + +GetExpirationWarningDaysOk returns a tuple with the ExpirationWarningDays field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpirationWarningDays + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) SetExpirationWarningDays(v int32)` + +SetExpirationWarningDays sets ExpirationWarningDays field to given value. + +### HasExpirationWarningDays + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) HasExpirationWarningDays() bool` + +HasExpirationWarningDays returns a boolean if a field has been set. + +### GetRecipients + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) GetRecipients() []string` + +GetRecipients returns the Recipients field if non-nil, zero value otherwise. + +### GetRecipientsOk + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) GetRecipientsOk() (*[]string, bool)` + +GetRecipientsOk returns a tuple with the Recipients field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecipients + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) SetRecipients(v []string)` + +SetRecipients sets Recipients field to given value. + +### HasRecipients + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) HasRecipients() bool` + +HasRecipients returns a boolean if a field has been set. + +### GetCertificateQuery + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) GetCertificateQuery() KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse` + +GetCertificateQuery returns the CertificateQuery field if non-nil, zero value otherwise. + +### GetCertificateQueryOk + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) GetCertificateQueryOk() (*KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse, bool)` + +GetCertificateQueryOk returns a tuple with the CertificateQuery field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateQuery + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) SetCertificateQuery(v KeyfactorApiModelsAlertsAlertCertificateQueryAlertCertificateQueryResponse)` + +SetCertificateQuery sets CertificateQuery field to given value. + +### HasCertificateQuery + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) HasCertificateQuery() bool` + +HasCertificateQuery returns a boolean if a field has been set. + +### GetRegisteredEventHandler + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) GetRegisteredEventHandler() KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse` + +GetRegisteredEventHandler returns the RegisteredEventHandler field if non-nil, zero value otherwise. + +### GetRegisteredEventHandlerOk + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) GetRegisteredEventHandlerOk() (*KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse, bool)` + +GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegisteredEventHandler + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) SetRegisteredEventHandler(v KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse)` + +SetRegisteredEventHandler sets RegisteredEventHandler field to given value. + +### HasRegisteredEventHandler + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) HasRegisteredEventHandler() bool` + +HasRegisteredEventHandler returns a boolean if a field has been set. + +### GetEventHandlerParameters + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) GetEventHandlerParameters() []KeyfactorApiModelsEventHandlerEventHandlerParameterResponse` + +GetEventHandlerParameters returns the EventHandlerParameters field if non-nil, zero value otherwise. + +### GetEventHandlerParametersOk + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) GetEventHandlerParametersOk() (*[]KeyfactorApiModelsEventHandlerEventHandlerParameterResponse, bool)` + +GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventHandlerParameters + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) SetEventHandlerParameters(v []KeyfactorApiModelsEventHandlerEventHandlerParameterResponse)` + +SetEventHandlerParameters sets EventHandlerParameters field to given value. + +### HasEventHandlerParameters + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertDefinitionResponse) HasEventHandlerParameters() bool` + +HasEventHandlerParameters returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsAlertsExpirationExpirationAlertResponse.md b/v1/docs/KeyfactorApiModelsAlertsExpirationExpirationAlertResponse.md new file mode 100644 index 0000000..32a8039 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsAlertsExpirationExpirationAlertResponse.md @@ -0,0 +1,248 @@ +# KeyfactorApiModelsAlertsExpirationExpirationAlertResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CAName** | Pointer to **string** | | [optional] +**CARow** | Pointer to **int64** | | [optional] +**IssuedCN** | Pointer to **NullableString** | | [optional] +**Expiry** | Pointer to **string** | | [optional] +**Subject** | Pointer to **string** | | [optional] +**Message** | Pointer to **string** | | [optional] +**Recipients** | Pointer to **[]string** | | [optional] +**SendDate** | Pointer to **string** | | [optional] + +## Methods + +### NewKeyfactorApiModelsAlertsExpirationExpirationAlertResponse + +`func NewKeyfactorApiModelsAlertsExpirationExpirationAlertResponse() *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse` + +NewKeyfactorApiModelsAlertsExpirationExpirationAlertResponse instantiates a new KeyfactorApiModelsAlertsExpirationExpirationAlertResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsAlertsExpirationExpirationAlertResponseWithDefaults + +`func NewKeyfactorApiModelsAlertsExpirationExpirationAlertResponseWithDefaults() *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse` + +NewKeyfactorApiModelsAlertsExpirationExpirationAlertResponseWithDefaults instantiates a new KeyfactorApiModelsAlertsExpirationExpirationAlertResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCAName + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) GetCAName() string` + +GetCAName returns the CAName field if non-nil, zero value otherwise. + +### GetCANameOk + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) GetCANameOk() (*string, bool)` + +GetCANameOk returns a tuple with the CAName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCAName + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) SetCAName(v string)` + +SetCAName sets CAName field to given value. + +### HasCAName + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) HasCAName() bool` + +HasCAName returns a boolean if a field has been set. + +### GetCARow + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) GetCARow() int64` + +GetCARow returns the CARow field if non-nil, zero value otherwise. + +### GetCARowOk + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) GetCARowOk() (*int64, bool)` + +GetCARowOk returns a tuple with the CARow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCARow + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) SetCARow(v int64)` + +SetCARow sets CARow field to given value. + +### HasCARow + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) HasCARow() bool` + +HasCARow returns a boolean if a field has been set. + +### GetIssuedCN + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) GetIssuedCN() string` + +GetIssuedCN returns the IssuedCN field if non-nil, zero value otherwise. + +### GetIssuedCNOk + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) GetIssuedCNOk() (*string, bool)` + +GetIssuedCNOk returns a tuple with the IssuedCN field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuedCN + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) SetIssuedCN(v string)` + +SetIssuedCN sets IssuedCN field to given value. + +### HasIssuedCN + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) HasIssuedCN() bool` + +HasIssuedCN returns a boolean if a field has been set. + +### SetIssuedCNNil + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) SetIssuedCNNil(b bool)` + + SetIssuedCNNil sets the value for IssuedCN to be an explicit nil + +### UnsetIssuedCN +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) UnsetIssuedCN()` + +UnsetIssuedCN ensures that no value is present for IssuedCN, not even an explicit nil +### GetExpiry + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) GetExpiry() string` + +GetExpiry returns the Expiry field if non-nil, zero value otherwise. + +### GetExpiryOk + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) GetExpiryOk() (*string, bool)` + +GetExpiryOk returns a tuple with the Expiry field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiry + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) SetExpiry(v string)` + +SetExpiry sets Expiry field to given value. + +### HasExpiry + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) HasExpiry() bool` + +HasExpiry returns a boolean if a field has been set. + +### GetSubject + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) GetSubject() string` + +GetSubject returns the Subject field if non-nil, zero value otherwise. + +### GetSubjectOk + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) GetSubjectOk() (*string, bool)` + +GetSubjectOk returns a tuple with the Subject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubject + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) SetSubject(v string)` + +SetSubject sets Subject field to given value. + +### HasSubject + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) HasSubject() bool` + +HasSubject returns a boolean if a field has been set. + +### GetMessage + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### GetRecipients + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) GetRecipients() []string` + +GetRecipients returns the Recipients field if non-nil, zero value otherwise. + +### GetRecipientsOk + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) GetRecipientsOk() (*[]string, bool)` + +GetRecipientsOk returns a tuple with the Recipients field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecipients + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) SetRecipients(v []string)` + +SetRecipients sets Recipients field to given value. + +### HasRecipients + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) HasRecipients() bool` + +HasRecipients returns a boolean if a field has been set. + +### GetSendDate + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) GetSendDate() string` + +GetSendDate returns the SendDate field if non-nil, zero value otherwise. + +### GetSendDateOk + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) GetSendDateOk() (*string, bool)` + +GetSendDateOk returns a tuple with the SendDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSendDate + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) SetSendDate(v string)` + +SetSendDate sets SendDate field to given value. + +### HasSendDate + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertResponse) HasSendDate() bool` + +HasSendDate returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest.md b/v1/docs/KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest.md new file mode 100644 index 0000000..a62d149 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest.md @@ -0,0 +1,108 @@ +# KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EvaluationDate** | Pointer to **time.Time** | | [optional] +**PreviousEvaluationDate** | Pointer to **time.Time** | | [optional] +**SendAlerts** | Pointer to **bool** | | [optional] + +## Methods + +### NewKeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest + +`func NewKeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest() *KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest` + +NewKeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest instantiates a new KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequestWithDefaults + +`func NewKeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequestWithDefaults() *KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest` + +NewKeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequestWithDefaults instantiates a new KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEvaluationDate + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest) GetEvaluationDate() time.Time` + +GetEvaluationDate returns the EvaluationDate field if non-nil, zero value otherwise. + +### GetEvaluationDateOk + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest) GetEvaluationDateOk() (*time.Time, bool)` + +GetEvaluationDateOk returns a tuple with the EvaluationDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvaluationDate + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest) SetEvaluationDate(v time.Time)` + +SetEvaluationDate sets EvaluationDate field to given value. + +### HasEvaluationDate + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest) HasEvaluationDate() bool` + +HasEvaluationDate returns a boolean if a field has been set. + +### GetPreviousEvaluationDate + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest) GetPreviousEvaluationDate() time.Time` + +GetPreviousEvaluationDate returns the PreviousEvaluationDate field if non-nil, zero value otherwise. + +### GetPreviousEvaluationDateOk + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest) GetPreviousEvaluationDateOk() (*time.Time, bool)` + +GetPreviousEvaluationDateOk returns a tuple with the PreviousEvaluationDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPreviousEvaluationDate + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest) SetPreviousEvaluationDate(v time.Time)` + +SetPreviousEvaluationDate sets PreviousEvaluationDate field to given value. + +### HasPreviousEvaluationDate + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest) HasPreviousEvaluationDate() bool` + +HasPreviousEvaluationDate returns a boolean if a field has been set. + +### GetSendAlerts + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest) GetSendAlerts() bool` + +GetSendAlerts returns the SendAlerts field if non-nil, zero value otherwise. + +### GetSendAlertsOk + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest) GetSendAlertsOk() (*bool, bool)` + +GetSendAlertsOk returns a tuple with the SendAlerts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSendAlerts + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest) SetSendAlerts(v bool)` + +SetSendAlerts sets SendAlerts field to given value. + +### HasSendAlerts + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestAllRequest) HasSendAlerts() bool` + +HasSendAlerts returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest.md b/v1/docs/KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest.md new file mode 100644 index 0000000..e0e27fc --- /dev/null +++ b/v1/docs/KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest.md @@ -0,0 +1,134 @@ +# KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AlertId** | Pointer to **int32** | | [optional] +**EvaluationDate** | Pointer to **time.Time** | | [optional] +**PreviousEvaluationDate** | Pointer to **time.Time** | | [optional] +**SendAlerts** | Pointer to **bool** | | [optional] + +## Methods + +### NewKeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest + +`func NewKeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest() *KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest` + +NewKeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest instantiates a new KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsAlertsExpirationExpirationAlertTestRequestWithDefaults + +`func NewKeyfactorApiModelsAlertsExpirationExpirationAlertTestRequestWithDefaults() *KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest` + +NewKeyfactorApiModelsAlertsExpirationExpirationAlertTestRequestWithDefaults instantiates a new KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAlertId + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest) GetAlertId() int32` + +GetAlertId returns the AlertId field if non-nil, zero value otherwise. + +### GetAlertIdOk + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest) GetAlertIdOk() (*int32, bool)` + +GetAlertIdOk returns a tuple with the AlertId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlertId + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest) SetAlertId(v int32)` + +SetAlertId sets AlertId field to given value. + +### HasAlertId + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest) HasAlertId() bool` + +HasAlertId returns a boolean if a field has been set. + +### GetEvaluationDate + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest) GetEvaluationDate() time.Time` + +GetEvaluationDate returns the EvaluationDate field if non-nil, zero value otherwise. + +### GetEvaluationDateOk + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest) GetEvaluationDateOk() (*time.Time, bool)` + +GetEvaluationDateOk returns a tuple with the EvaluationDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvaluationDate + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest) SetEvaluationDate(v time.Time)` + +SetEvaluationDate sets EvaluationDate field to given value. + +### HasEvaluationDate + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest) HasEvaluationDate() bool` + +HasEvaluationDate returns a boolean if a field has been set. + +### GetPreviousEvaluationDate + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest) GetPreviousEvaluationDate() time.Time` + +GetPreviousEvaluationDate returns the PreviousEvaluationDate field if non-nil, zero value otherwise. + +### GetPreviousEvaluationDateOk + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest) GetPreviousEvaluationDateOk() (*time.Time, bool)` + +GetPreviousEvaluationDateOk returns a tuple with the PreviousEvaluationDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPreviousEvaluationDate + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest) SetPreviousEvaluationDate(v time.Time)` + +SetPreviousEvaluationDate sets PreviousEvaluationDate field to given value. + +### HasPreviousEvaluationDate + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest) HasPreviousEvaluationDate() bool` + +HasPreviousEvaluationDate returns a boolean if a field has been set. + +### GetSendAlerts + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest) GetSendAlerts() bool` + +GetSendAlerts returns the SendAlerts field if non-nil, zero value otherwise. + +### GetSendAlertsOk + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest) GetSendAlertsOk() (*bool, bool)` + +GetSendAlertsOk returns a tuple with the SendAlerts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSendAlerts + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest) SetSendAlerts(v bool)` + +SetSendAlerts sets SendAlerts field to given value. + +### HasSendAlerts + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestRequest) HasSendAlerts() bool` + +HasSendAlerts returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse.md b/v1/docs/KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse.md new file mode 100644 index 0000000..49ba648 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse.md @@ -0,0 +1,82 @@ +# KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ExpirationAlerts** | Pointer to [**[]KeyfactorApiModelsAlertsExpirationExpirationAlertResponse**](KeyfactorApiModelsAlertsExpirationExpirationAlertResponse.md) | | [optional] +**AlertBuildResult** | Pointer to **int32** | | [optional] + +## Methods + +### NewKeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse + +`func NewKeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse() *KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse` + +NewKeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse instantiates a new KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsAlertsExpirationExpirationAlertTestResponseWithDefaults + +`func NewKeyfactorApiModelsAlertsExpirationExpirationAlertTestResponseWithDefaults() *KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse` + +NewKeyfactorApiModelsAlertsExpirationExpirationAlertTestResponseWithDefaults instantiates a new KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetExpirationAlerts + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse) GetExpirationAlerts() []KeyfactorApiModelsAlertsExpirationExpirationAlertResponse` + +GetExpirationAlerts returns the ExpirationAlerts field if non-nil, zero value otherwise. + +### GetExpirationAlertsOk + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse) GetExpirationAlertsOk() (*[]KeyfactorApiModelsAlertsExpirationExpirationAlertResponse, bool)` + +GetExpirationAlertsOk returns a tuple with the ExpirationAlerts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpirationAlerts + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse) SetExpirationAlerts(v []KeyfactorApiModelsAlertsExpirationExpirationAlertResponse)` + +SetExpirationAlerts sets ExpirationAlerts field to given value. + +### HasExpirationAlerts + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse) HasExpirationAlerts() bool` + +HasExpirationAlerts returns a boolean if a field has been set. + +### GetAlertBuildResult + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse) GetAlertBuildResult() int32` + +GetAlertBuildResult returns the AlertBuildResult field if non-nil, zero value otherwise. + +### GetAlertBuildResultOk + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse) GetAlertBuildResultOk() (*int32, bool)` + +GetAlertBuildResultOk returns a tuple with the AlertBuildResult field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlertBuildResult + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse) SetAlertBuildResult(v int32)` + +SetAlertBuildResult sets AlertBuildResult field to given value. + +### HasAlertBuildResult + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertTestResponse) HasAlertBuildResult() bool` + +HasAlertBuildResult returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest.md b/v1/docs/KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest.md new file mode 100644 index 0000000..969286c --- /dev/null +++ b/v1/docs/KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest.md @@ -0,0 +1,244 @@ +# KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**DisplayName** | **string** | | +**Subject** | **string** | | +**Message** | **string** | | +**ExpirationWarningDays** | **int32** | | +**CertificateQueryId** | Pointer to **int32** | | [optional] +**RegisteredEventHandler** | Pointer to [**KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest**](KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest.md) | | [optional] +**Recipients** | Pointer to **[]string** | | [optional] +**EventHandlerParameters** | Pointer to [**[]KeyfactorApiModelsEventHandlerEventHandlerParameterRequest**](KeyfactorApiModelsEventHandlerEventHandlerParameterRequest.md) | | [optional] + +## Methods + +### NewKeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest + +`func NewKeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest(displayName string, subject string, message string, expirationWarningDays int32, ) *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest` + +NewKeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest instantiates a new KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequestWithDefaults + +`func NewKeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequestWithDefaults() *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest` + +NewKeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequestWithDefaults instantiates a new KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + + +### GetSubject + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) GetSubject() string` + +GetSubject returns the Subject field if non-nil, zero value otherwise. + +### GetSubjectOk + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) GetSubjectOk() (*string, bool)` + +GetSubjectOk returns a tuple with the Subject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubject + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) SetSubject(v string)` + +SetSubject sets Subject field to given value. + + +### GetMessage + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) SetMessage(v string)` + +SetMessage sets Message field to given value. + + +### GetExpirationWarningDays + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) GetExpirationWarningDays() int32` + +GetExpirationWarningDays returns the ExpirationWarningDays field if non-nil, zero value otherwise. + +### GetExpirationWarningDaysOk + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) GetExpirationWarningDaysOk() (*int32, bool)` + +GetExpirationWarningDaysOk returns a tuple with the ExpirationWarningDays field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpirationWarningDays + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) SetExpirationWarningDays(v int32)` + +SetExpirationWarningDays sets ExpirationWarningDays field to given value. + + +### GetCertificateQueryId + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) GetCertificateQueryId() int32` + +GetCertificateQueryId returns the CertificateQueryId field if non-nil, zero value otherwise. + +### GetCertificateQueryIdOk + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) GetCertificateQueryIdOk() (*int32, bool)` + +GetCertificateQueryIdOk returns a tuple with the CertificateQueryId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateQueryId + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) SetCertificateQueryId(v int32)` + +SetCertificateQueryId sets CertificateQueryId field to given value. + +### HasCertificateQueryId + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) HasCertificateQueryId() bool` + +HasCertificateQueryId returns a boolean if a field has been set. + +### GetRegisteredEventHandler + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) GetRegisteredEventHandler() KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest` + +GetRegisteredEventHandler returns the RegisteredEventHandler field if non-nil, zero value otherwise. + +### GetRegisteredEventHandlerOk + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) GetRegisteredEventHandlerOk() (*KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest, bool)` + +GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegisteredEventHandler + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) SetRegisteredEventHandler(v KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest)` + +SetRegisteredEventHandler sets RegisteredEventHandler field to given value. + +### HasRegisteredEventHandler + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) HasRegisteredEventHandler() bool` + +HasRegisteredEventHandler returns a boolean if a field has been set. + +### GetRecipients + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) GetRecipients() []string` + +GetRecipients returns the Recipients field if non-nil, zero value otherwise. + +### GetRecipientsOk + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) GetRecipientsOk() (*[]string, bool)` + +GetRecipientsOk returns a tuple with the Recipients field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecipients + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) SetRecipients(v []string)` + +SetRecipients sets Recipients field to given value. + +### HasRecipients + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) HasRecipients() bool` + +HasRecipients returns a boolean if a field has been set. + +### GetEventHandlerParameters + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) GetEventHandlerParameters() []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest` + +GetEventHandlerParameters returns the EventHandlerParameters field if non-nil, zero value otherwise. + +### GetEventHandlerParametersOk + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) GetEventHandlerParametersOk() (*[]KeyfactorApiModelsEventHandlerEventHandlerParameterRequest, bool)` + +GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventHandlerParameters + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) SetEventHandlerParameters(v []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest)` + +SetEventHandlerParameters sets EventHandlerParameters field to given value. + +### HasEventHandlerParameters + +`func (o *KeyfactorApiModelsAlertsExpirationExpirationAlertUpdateRequest) HasEventHandlerParameters() bool` + +HasEventHandlerParameters returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest.md b/v1/docs/KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest.md new file mode 100644 index 0000000..1a0a7f9 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest.md @@ -0,0 +1,197 @@ +# KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DisplayName** | **string** | | +**Subject** | **string** | | +**Message** | **string** | | +**TemplateId** | Pointer to **int32** | | [optional] +**RegisteredEventHandler** | Pointer to [**KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest**](KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest.md) | | [optional] +**Recipients** | Pointer to **[]string** | | [optional] +**EventHandlerParameters** | Pointer to [**[]KeyfactorApiModelsEventHandlerEventHandlerParameterRequest**](KeyfactorApiModelsEventHandlerEventHandlerParameterRequest.md) | | [optional] + +## Methods + +### NewKeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest + +`func NewKeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest(displayName string, subject string, message string, ) *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest` + +NewKeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest instantiates a new KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequestWithDefaults + +`func NewKeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequestWithDefaults() *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest` + +NewKeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequestWithDefaults instantiates a new KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDisplayName + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + + +### GetSubject + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) GetSubject() string` + +GetSubject returns the Subject field if non-nil, zero value otherwise. + +### GetSubjectOk + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) GetSubjectOk() (*string, bool)` + +GetSubjectOk returns a tuple with the Subject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubject + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) SetSubject(v string)` + +SetSubject sets Subject field to given value. + + +### GetMessage + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) SetMessage(v string)` + +SetMessage sets Message field to given value. + + +### GetTemplateId + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) GetTemplateId() int32` + +GetTemplateId returns the TemplateId field if non-nil, zero value otherwise. + +### GetTemplateIdOk + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) GetTemplateIdOk() (*int32, bool)` + +GetTemplateIdOk returns a tuple with the TemplateId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateId + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) SetTemplateId(v int32)` + +SetTemplateId sets TemplateId field to given value. + +### HasTemplateId + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) HasTemplateId() bool` + +HasTemplateId returns a boolean if a field has been set. + +### GetRegisteredEventHandler + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) GetRegisteredEventHandler() KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest` + +GetRegisteredEventHandler returns the RegisteredEventHandler field if non-nil, zero value otherwise. + +### GetRegisteredEventHandlerOk + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) GetRegisteredEventHandlerOk() (*KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest, bool)` + +GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegisteredEventHandler + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) SetRegisteredEventHandler(v KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest)` + +SetRegisteredEventHandler sets RegisteredEventHandler field to given value. + +### HasRegisteredEventHandler + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) HasRegisteredEventHandler() bool` + +HasRegisteredEventHandler returns a boolean if a field has been set. + +### GetRecipients + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) GetRecipients() []string` + +GetRecipients returns the Recipients field if non-nil, zero value otherwise. + +### GetRecipientsOk + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) GetRecipientsOk() (*[]string, bool)` + +GetRecipientsOk returns a tuple with the Recipients field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecipients + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) SetRecipients(v []string)` + +SetRecipients sets Recipients field to given value. + +### HasRecipients + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) HasRecipients() bool` + +HasRecipients returns a boolean if a field has been set. + +### GetEventHandlerParameters + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) GetEventHandlerParameters() []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest` + +GetEventHandlerParameters returns the EventHandlerParameters field if non-nil, zero value otherwise. + +### GetEventHandlerParametersOk + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) GetEventHandlerParametersOk() (*[]KeyfactorApiModelsEventHandlerEventHandlerParameterRequest, bool)` + +GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventHandlerParameters + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) SetEventHandlerParameters(v []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest)` + +SetEventHandlerParameters sets EventHandlerParameters field to given value. + +### HasEventHandlerParameters + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertCreationRequest) HasEventHandlerParameters() bool` + +HasEventHandlerParameters returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse.md b/v1/docs/KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse.md new file mode 100644 index 0000000..c3c2269 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse.md @@ -0,0 +1,238 @@ +# KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**DisplayName** | Pointer to **string** | | [optional] +**Subject** | Pointer to **string** | | [optional] +**Message** | Pointer to **string** | | [optional] +**Recipients** | Pointer to **[]string** | | [optional] +**Template** | Pointer to [**KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse**](KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse.md) | | [optional] +**RegisteredEventHandler** | Pointer to [**KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse**](KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse.md) | | [optional] +**EventHandlerParameters** | Pointer to [**[]KeyfactorApiModelsEventHandlerEventHandlerParameterResponse**](KeyfactorApiModelsEventHandlerEventHandlerParameterResponse.md) | | [optional] + +## Methods + +### NewKeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse + +`func NewKeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse() *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse` + +NewKeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse instantiates a new KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponseWithDefaults + +`func NewKeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponseWithDefaults() *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse` + +NewKeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponseWithDefaults instantiates a new KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetSubject + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) GetSubject() string` + +GetSubject returns the Subject field if non-nil, zero value otherwise. + +### GetSubjectOk + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) GetSubjectOk() (*string, bool)` + +GetSubjectOk returns a tuple with the Subject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubject + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) SetSubject(v string)` + +SetSubject sets Subject field to given value. + +### HasSubject + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) HasSubject() bool` + +HasSubject returns a boolean if a field has been set. + +### GetMessage + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### GetRecipients + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) GetRecipients() []string` + +GetRecipients returns the Recipients field if non-nil, zero value otherwise. + +### GetRecipientsOk + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) GetRecipientsOk() (*[]string, bool)` + +GetRecipientsOk returns a tuple with the Recipients field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecipients + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) SetRecipients(v []string)` + +SetRecipients sets Recipients field to given value. + +### HasRecipients + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) HasRecipients() bool` + +HasRecipients returns a boolean if a field has been set. + +### GetTemplate + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) GetTemplate() KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse` + +GetTemplate returns the Template field if non-nil, zero value otherwise. + +### GetTemplateOk + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) GetTemplateOk() (*KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse, bool)` + +GetTemplateOk returns a tuple with the Template field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplate + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) SetTemplate(v KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse)` + +SetTemplate sets Template field to given value. + +### HasTemplate + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) HasTemplate() bool` + +HasTemplate returns a boolean if a field has been set. + +### GetRegisteredEventHandler + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) GetRegisteredEventHandler() KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse` + +GetRegisteredEventHandler returns the RegisteredEventHandler field if non-nil, zero value otherwise. + +### GetRegisteredEventHandlerOk + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) GetRegisteredEventHandlerOk() (*KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse, bool)` + +GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegisteredEventHandler + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) SetRegisteredEventHandler(v KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse)` + +SetRegisteredEventHandler sets RegisteredEventHandler field to given value. + +### HasRegisteredEventHandler + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) HasRegisteredEventHandler() bool` + +HasRegisteredEventHandler returns a boolean if a field has been set. + +### GetEventHandlerParameters + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) GetEventHandlerParameters() []KeyfactorApiModelsEventHandlerEventHandlerParameterResponse` + +GetEventHandlerParameters returns the EventHandlerParameters field if non-nil, zero value otherwise. + +### GetEventHandlerParametersOk + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) GetEventHandlerParametersOk() (*[]KeyfactorApiModelsEventHandlerEventHandlerParameterResponse, bool)` + +GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventHandlerParameters + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) SetEventHandlerParameters(v []KeyfactorApiModelsEventHandlerEventHandlerParameterResponse)` + +SetEventHandlerParameters sets EventHandlerParameters field to given value. + +### HasEventHandlerParameters + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertDefinitionResponse) HasEventHandlerParameters() bool` + +HasEventHandlerParameters returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest.md b/v1/docs/KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest.md new file mode 100644 index 0000000..0ee730f --- /dev/null +++ b/v1/docs/KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest.md @@ -0,0 +1,223 @@ +# KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**DisplayName** | **string** | | +**Subject** | **string** | | +**Message** | **string** | | +**TemplateId** | Pointer to **int32** | | [optional] +**RegisteredEventHandler** | Pointer to [**KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest**](KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest.md) | | [optional] +**Recipients** | Pointer to **[]string** | | [optional] +**EventHandlerParameters** | Pointer to [**[]KeyfactorApiModelsEventHandlerEventHandlerParameterRequest**](KeyfactorApiModelsEventHandlerEventHandlerParameterRequest.md) | | [optional] + +## Methods + +### NewKeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest + +`func NewKeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest(displayName string, subject string, message string, ) *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest` + +NewKeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest instantiates a new KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequestWithDefaults + +`func NewKeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequestWithDefaults() *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest` + +NewKeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequestWithDefaults instantiates a new KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + + +### GetSubject + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) GetSubject() string` + +GetSubject returns the Subject field if non-nil, zero value otherwise. + +### GetSubjectOk + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) GetSubjectOk() (*string, bool)` + +GetSubjectOk returns a tuple with the Subject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubject + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) SetSubject(v string)` + +SetSubject sets Subject field to given value. + + +### GetMessage + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) SetMessage(v string)` + +SetMessage sets Message field to given value. + + +### GetTemplateId + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) GetTemplateId() int32` + +GetTemplateId returns the TemplateId field if non-nil, zero value otherwise. + +### GetTemplateIdOk + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) GetTemplateIdOk() (*int32, bool)` + +GetTemplateIdOk returns a tuple with the TemplateId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateId + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) SetTemplateId(v int32)` + +SetTemplateId sets TemplateId field to given value. + +### HasTemplateId + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) HasTemplateId() bool` + +HasTemplateId returns a boolean if a field has been set. + +### GetRegisteredEventHandler + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) GetRegisteredEventHandler() KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest` + +GetRegisteredEventHandler returns the RegisteredEventHandler field if non-nil, zero value otherwise. + +### GetRegisteredEventHandlerOk + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) GetRegisteredEventHandlerOk() (*KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest, bool)` + +GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegisteredEventHandler + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) SetRegisteredEventHandler(v KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest)` + +SetRegisteredEventHandler sets RegisteredEventHandler field to given value. + +### HasRegisteredEventHandler + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) HasRegisteredEventHandler() bool` + +HasRegisteredEventHandler returns a boolean if a field has been set. + +### GetRecipients + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) GetRecipients() []string` + +GetRecipients returns the Recipients field if non-nil, zero value otherwise. + +### GetRecipientsOk + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) GetRecipientsOk() (*[]string, bool)` + +GetRecipientsOk returns a tuple with the Recipients field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecipients + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) SetRecipients(v []string)` + +SetRecipients sets Recipients field to given value. + +### HasRecipients + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) HasRecipients() bool` + +HasRecipients returns a boolean if a field has been set. + +### GetEventHandlerParameters + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) GetEventHandlerParameters() []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest` + +GetEventHandlerParameters returns the EventHandlerParameters field if non-nil, zero value otherwise. + +### GetEventHandlerParametersOk + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) GetEventHandlerParametersOk() (*[]KeyfactorApiModelsEventHandlerEventHandlerParameterRequest, bool)` + +GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventHandlerParameters + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) SetEventHandlerParameters(v []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest)` + +SetEventHandlerParameters sets EventHandlerParameters field to given value. + +### HasEventHandlerParameters + +`func (o *KeyfactorApiModelsAlertsIssuedIssuedAlertUpdateRequest) HasEventHandlerParameters() bool` + +HasEventHandlerParameters returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest.md b/v1/docs/KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest.md new file mode 100644 index 0000000..4c0d89e --- /dev/null +++ b/v1/docs/KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest.md @@ -0,0 +1,166 @@ +# KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DisplayName** | **string** | | +**Subject** | **string** | | +**Message** | **string** | | +**RotationWarningDays** | **int32** | | +**RegisteredEventHandler** | Pointer to [**KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest**](KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest.md) | | [optional] +**EventHandlerParameters** | Pointer to [**[]KeyfactorApiModelsEventHandlerEventHandlerParameterRequest**](KeyfactorApiModelsEventHandlerEventHandlerParameterRequest.md) | | [optional] + +## Methods + +### NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest + +`func NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest(displayName string, subject string, message string, rotationWarningDays int32, ) *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest` + +NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest instantiates a new KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequestWithDefaults + +`func NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequestWithDefaults() *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest` + +NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequestWithDefaults instantiates a new KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDisplayName + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + + +### GetSubject + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest) GetSubject() string` + +GetSubject returns the Subject field if non-nil, zero value otherwise. + +### GetSubjectOk + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest) GetSubjectOk() (*string, bool)` + +GetSubjectOk returns a tuple with the Subject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubject + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest) SetSubject(v string)` + +SetSubject sets Subject field to given value. + + +### GetMessage + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest) SetMessage(v string)` + +SetMessage sets Message field to given value. + + +### GetRotationWarningDays + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest) GetRotationWarningDays() int32` + +GetRotationWarningDays returns the RotationWarningDays field if non-nil, zero value otherwise. + +### GetRotationWarningDaysOk + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest) GetRotationWarningDaysOk() (*int32, bool)` + +GetRotationWarningDaysOk returns a tuple with the RotationWarningDays field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRotationWarningDays + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest) SetRotationWarningDays(v int32)` + +SetRotationWarningDays sets RotationWarningDays field to given value. + + +### GetRegisteredEventHandler + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest) GetRegisteredEventHandler() KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest` + +GetRegisteredEventHandler returns the RegisteredEventHandler field if non-nil, zero value otherwise. + +### GetRegisteredEventHandlerOk + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest) GetRegisteredEventHandlerOk() (*KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest, bool)` + +GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegisteredEventHandler + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest) SetRegisteredEventHandler(v KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest)` + +SetRegisteredEventHandler sets RegisteredEventHandler field to given value. + +### HasRegisteredEventHandler + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest) HasRegisteredEventHandler() bool` + +HasRegisteredEventHandler returns a boolean if a field has been set. + +### GetEventHandlerParameters + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest) GetEventHandlerParameters() []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest` + +GetEventHandlerParameters returns the EventHandlerParameters field if non-nil, zero value otherwise. + +### GetEventHandlerParametersOk + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest) GetEventHandlerParametersOk() (*[]KeyfactorApiModelsEventHandlerEventHandlerParameterRequest, bool)` + +GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventHandlerParameters + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest) SetEventHandlerParameters(v []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest)` + +SetEventHandlerParameters sets EventHandlerParameters field to given value. + +### HasEventHandlerParameters + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertCreationRequest) HasEventHandlerParameters() bool` + +HasEventHandlerParameters returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse.md b/v1/docs/KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse.md new file mode 100644 index 0000000..e55312d --- /dev/null +++ b/v1/docs/KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse.md @@ -0,0 +1,238 @@ +# KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**DisplayName** | Pointer to **string** | | [optional] +**Subject** | Pointer to **string** | | [optional] +**Message** | Pointer to **string** | | [optional] +**Recipient** | Pointer to **string** | | [optional] +**RotationWarningDays** | Pointer to **int32** | | [optional] +**RegisteredEventHandler** | Pointer to [**KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse**](KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse.md) | | [optional] +**EventHandlerParameters** | Pointer to [**[]KeyfactorApiModelsEventHandlerEventHandlerParameterResponse**](KeyfactorApiModelsEventHandlerEventHandlerParameterResponse.md) | | [optional] + +## Methods + +### NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse + +`func NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse() *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse` + +NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse instantiates a new KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponseWithDefaults + +`func NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponseWithDefaults() *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse` + +NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponseWithDefaults instantiates a new KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetSubject + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) GetSubject() string` + +GetSubject returns the Subject field if non-nil, zero value otherwise. + +### GetSubjectOk + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) GetSubjectOk() (*string, bool)` + +GetSubjectOk returns a tuple with the Subject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubject + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) SetSubject(v string)` + +SetSubject sets Subject field to given value. + +### HasSubject + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) HasSubject() bool` + +HasSubject returns a boolean if a field has been set. + +### GetMessage + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### GetRecipient + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) GetRecipient() string` + +GetRecipient returns the Recipient field if non-nil, zero value otherwise. + +### GetRecipientOk + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) GetRecipientOk() (*string, bool)` + +GetRecipientOk returns a tuple with the Recipient field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecipient + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) SetRecipient(v string)` + +SetRecipient sets Recipient field to given value. + +### HasRecipient + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) HasRecipient() bool` + +HasRecipient returns a boolean if a field has been set. + +### GetRotationWarningDays + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) GetRotationWarningDays() int32` + +GetRotationWarningDays returns the RotationWarningDays field if non-nil, zero value otherwise. + +### GetRotationWarningDaysOk + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) GetRotationWarningDaysOk() (*int32, bool)` + +GetRotationWarningDaysOk returns a tuple with the RotationWarningDays field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRotationWarningDays + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) SetRotationWarningDays(v int32)` + +SetRotationWarningDays sets RotationWarningDays field to given value. + +### HasRotationWarningDays + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) HasRotationWarningDays() bool` + +HasRotationWarningDays returns a boolean if a field has been set. + +### GetRegisteredEventHandler + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) GetRegisteredEventHandler() KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse` + +GetRegisteredEventHandler returns the RegisteredEventHandler field if non-nil, zero value otherwise. + +### GetRegisteredEventHandlerOk + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) GetRegisteredEventHandlerOk() (*KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse, bool)` + +GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegisteredEventHandler + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) SetRegisteredEventHandler(v KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse)` + +SetRegisteredEventHandler sets RegisteredEventHandler field to given value. + +### HasRegisteredEventHandler + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) HasRegisteredEventHandler() bool` + +HasRegisteredEventHandler returns a boolean if a field has been set. + +### GetEventHandlerParameters + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) GetEventHandlerParameters() []KeyfactorApiModelsEventHandlerEventHandlerParameterResponse` + +GetEventHandlerParameters returns the EventHandlerParameters field if non-nil, zero value otherwise. + +### GetEventHandlerParametersOk + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) GetEventHandlerParametersOk() (*[]KeyfactorApiModelsEventHandlerEventHandlerParameterResponse, bool)` + +GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventHandlerParameters + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) SetEventHandlerParameters(v []KeyfactorApiModelsEventHandlerEventHandlerParameterResponse)` + +SetEventHandlerParameters sets EventHandlerParameters field to given value. + +### HasEventHandlerParameters + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertDefinitionResponse) HasEventHandlerParameters() bool` + +HasEventHandlerParameters returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse.md b/v1/docs/KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse.md new file mode 100644 index 0000000..455350d --- /dev/null +++ b/v1/docs/KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse.md @@ -0,0 +1,108 @@ +# KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Subject** | Pointer to **string** | | [optional] +**Message** | Pointer to **string** | | [optional] +**Recipient** | Pointer to **string** | | [optional] + +## Methods + +### NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse + +`func NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse() *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse` + +NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse instantiates a new KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponseWithDefaults + +`func NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponseWithDefaults() *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse` + +NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponseWithDefaults instantiates a new KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSubject + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse) GetSubject() string` + +GetSubject returns the Subject field if non-nil, zero value otherwise. + +### GetSubjectOk + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse) GetSubjectOk() (*string, bool)` + +GetSubjectOk returns a tuple with the Subject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubject + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse) SetSubject(v string)` + +SetSubject sets Subject field to given value. + +### HasSubject + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse) HasSubject() bool` + +HasSubject returns a boolean if a field has been set. + +### GetMessage + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### GetRecipient + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse) GetRecipient() string` + +GetRecipient returns the Recipient field if non-nil, zero value otherwise. + +### GetRecipientOk + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse) GetRecipientOk() (*string, bool)` + +GetRecipientOk returns a tuple with the Recipient field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecipient + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse) SetRecipient(v string)` + +SetRecipient sets Recipient field to given value. + +### HasRecipient + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse) HasRecipient() bool` + +HasRecipient returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest.md b/v1/docs/KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest.md new file mode 100644 index 0000000..95dc621 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest.md @@ -0,0 +1,108 @@ +# KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EvaluationDate** | Pointer to **time.Time** | | [optional] +**PreviousEvaluationDate** | Pointer to **time.Time** | | [optional] +**SendAlerts** | Pointer to **bool** | | [optional] + +## Methods + +### NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest + +`func NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest() *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest` + +NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest instantiates a new KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequestWithDefaults + +`func NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequestWithDefaults() *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest` + +NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequestWithDefaults instantiates a new KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEvaluationDate + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest) GetEvaluationDate() time.Time` + +GetEvaluationDate returns the EvaluationDate field if non-nil, zero value otherwise. + +### GetEvaluationDateOk + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest) GetEvaluationDateOk() (*time.Time, bool)` + +GetEvaluationDateOk returns a tuple with the EvaluationDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvaluationDate + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest) SetEvaluationDate(v time.Time)` + +SetEvaluationDate sets EvaluationDate field to given value. + +### HasEvaluationDate + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest) HasEvaluationDate() bool` + +HasEvaluationDate returns a boolean if a field has been set. + +### GetPreviousEvaluationDate + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest) GetPreviousEvaluationDate() time.Time` + +GetPreviousEvaluationDate returns the PreviousEvaluationDate field if non-nil, zero value otherwise. + +### GetPreviousEvaluationDateOk + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest) GetPreviousEvaluationDateOk() (*time.Time, bool)` + +GetPreviousEvaluationDateOk returns a tuple with the PreviousEvaluationDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPreviousEvaluationDate + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest) SetPreviousEvaluationDate(v time.Time)` + +SetPreviousEvaluationDate sets PreviousEvaluationDate field to given value. + +### HasPreviousEvaluationDate + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest) HasPreviousEvaluationDate() bool` + +HasPreviousEvaluationDate returns a boolean if a field has been set. + +### GetSendAlerts + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest) GetSendAlerts() bool` + +GetSendAlerts returns the SendAlerts field if non-nil, zero value otherwise. + +### GetSendAlertsOk + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest) GetSendAlertsOk() (*bool, bool)` + +GetSendAlertsOk returns a tuple with the SendAlerts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSendAlerts + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest) SetSendAlerts(v bool)` + +SetSendAlerts sets SendAlerts field to given value. + +### HasSendAlerts + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestAllRequest) HasSendAlerts() bool` + +HasSendAlerts returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest.md b/v1/docs/KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest.md new file mode 100644 index 0000000..dfffe8c --- /dev/null +++ b/v1/docs/KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest.md @@ -0,0 +1,134 @@ +# KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AlertId** | Pointer to **int32** | | [optional] +**EvaluationDate** | Pointer to **time.Time** | | [optional] +**PreviousEvaluationDate** | Pointer to **time.Time** | | [optional] +**SendAlerts** | Pointer to **bool** | | [optional] + +## Methods + +### NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest + +`func NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest() *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest` + +NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest instantiates a new KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequestWithDefaults + +`func NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequestWithDefaults() *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest` + +NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequestWithDefaults instantiates a new KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAlertId + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest) GetAlertId() int32` + +GetAlertId returns the AlertId field if non-nil, zero value otherwise. + +### GetAlertIdOk + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest) GetAlertIdOk() (*int32, bool)` + +GetAlertIdOk returns a tuple with the AlertId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlertId + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest) SetAlertId(v int32)` + +SetAlertId sets AlertId field to given value. + +### HasAlertId + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest) HasAlertId() bool` + +HasAlertId returns a boolean if a field has been set. + +### GetEvaluationDate + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest) GetEvaluationDate() time.Time` + +GetEvaluationDate returns the EvaluationDate field if non-nil, zero value otherwise. + +### GetEvaluationDateOk + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest) GetEvaluationDateOk() (*time.Time, bool)` + +GetEvaluationDateOk returns a tuple with the EvaluationDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvaluationDate + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest) SetEvaluationDate(v time.Time)` + +SetEvaluationDate sets EvaluationDate field to given value. + +### HasEvaluationDate + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest) HasEvaluationDate() bool` + +HasEvaluationDate returns a boolean if a field has been set. + +### GetPreviousEvaluationDate + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest) GetPreviousEvaluationDate() time.Time` + +GetPreviousEvaluationDate returns the PreviousEvaluationDate field if non-nil, zero value otherwise. + +### GetPreviousEvaluationDateOk + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest) GetPreviousEvaluationDateOk() (*time.Time, bool)` + +GetPreviousEvaluationDateOk returns a tuple with the PreviousEvaluationDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPreviousEvaluationDate + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest) SetPreviousEvaluationDate(v time.Time)` + +SetPreviousEvaluationDate sets PreviousEvaluationDate field to given value. + +### HasPreviousEvaluationDate + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest) HasPreviousEvaluationDate() bool` + +HasPreviousEvaluationDate returns a boolean if a field has been set. + +### GetSendAlerts + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest) GetSendAlerts() bool` + +GetSendAlerts returns the SendAlerts field if non-nil, zero value otherwise. + +### GetSendAlertsOk + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest) GetSendAlertsOk() (*bool, bool)` + +GetSendAlertsOk returns a tuple with the SendAlerts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSendAlerts + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest) SetSendAlerts(v bool)` + +SetSendAlerts sets SendAlerts field to given value. + +### HasSendAlerts + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestRequest) HasSendAlerts() bool` + +HasSendAlerts returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse.md b/v1/docs/KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse.md new file mode 100644 index 0000000..c6d7550 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse.md @@ -0,0 +1,82 @@ +# KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**KeyRotationAlerts** | Pointer to [**[]KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse**](KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse.md) | | [optional] +**AlertBuildResult** | Pointer to **int32** | | [optional] + +## Methods + +### NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse + +`func NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse() *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse` + +NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse instantiates a new KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponseWithDefaults + +`func NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponseWithDefaults() *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse` + +NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponseWithDefaults instantiates a new KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKeyRotationAlerts + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse) GetKeyRotationAlerts() []KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse` + +GetKeyRotationAlerts returns the KeyRotationAlerts field if non-nil, zero value otherwise. + +### GetKeyRotationAlertsOk + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse) GetKeyRotationAlertsOk() (*[]KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse, bool)` + +GetKeyRotationAlertsOk returns a tuple with the KeyRotationAlerts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyRotationAlerts + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse) SetKeyRotationAlerts(v []KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertResponse)` + +SetKeyRotationAlerts sets KeyRotationAlerts field to given value. + +### HasKeyRotationAlerts + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse) HasKeyRotationAlerts() bool` + +HasKeyRotationAlerts returns a boolean if a field has been set. + +### GetAlertBuildResult + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse) GetAlertBuildResult() int32` + +GetAlertBuildResult returns the AlertBuildResult field if non-nil, zero value otherwise. + +### GetAlertBuildResultOk + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse) GetAlertBuildResultOk() (*int32, bool)` + +GetAlertBuildResultOk returns a tuple with the AlertBuildResult field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlertBuildResult + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse) SetAlertBuildResult(v int32)` + +SetAlertBuildResult sets AlertBuildResult field to given value. + +### HasAlertBuildResult + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertTestResponse) HasAlertBuildResult() bool` + +HasAlertBuildResult returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest.md b/v1/docs/KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest.md new file mode 100644 index 0000000..6b424f8 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest.md @@ -0,0 +1,192 @@ +# KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**DisplayName** | **string** | | +**Subject** | **string** | | +**Message** | **string** | | +**RotationWarningDays** | **int32** | | +**RegisteredEventHandler** | Pointer to [**KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest**](KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest.md) | | [optional] +**EventHandlerParameters** | Pointer to [**[]KeyfactorApiModelsEventHandlerEventHandlerParameterRequest**](KeyfactorApiModelsEventHandlerEventHandlerParameterRequest.md) | | [optional] + +## Methods + +### NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest + +`func NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest(displayName string, subject string, message string, rotationWarningDays int32, ) *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest` + +NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest instantiates a new KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequestWithDefaults + +`func NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequestWithDefaults() *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest` + +NewKeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequestWithDefaults instantiates a new KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + + +### GetSubject + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) GetSubject() string` + +GetSubject returns the Subject field if non-nil, zero value otherwise. + +### GetSubjectOk + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) GetSubjectOk() (*string, bool)` + +GetSubjectOk returns a tuple with the Subject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubject + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) SetSubject(v string)` + +SetSubject sets Subject field to given value. + + +### GetMessage + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) SetMessage(v string)` + +SetMessage sets Message field to given value. + + +### GetRotationWarningDays + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) GetRotationWarningDays() int32` + +GetRotationWarningDays returns the RotationWarningDays field if non-nil, zero value otherwise. + +### GetRotationWarningDaysOk + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) GetRotationWarningDaysOk() (*int32, bool)` + +GetRotationWarningDaysOk returns a tuple with the RotationWarningDays field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRotationWarningDays + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) SetRotationWarningDays(v int32)` + +SetRotationWarningDays sets RotationWarningDays field to given value. + + +### GetRegisteredEventHandler + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) GetRegisteredEventHandler() KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest` + +GetRegisteredEventHandler returns the RegisteredEventHandler field if non-nil, zero value otherwise. + +### GetRegisteredEventHandlerOk + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) GetRegisteredEventHandlerOk() (*KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest, bool)` + +GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegisteredEventHandler + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) SetRegisteredEventHandler(v KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest)` + +SetRegisteredEventHandler sets RegisteredEventHandler field to given value. + +### HasRegisteredEventHandler + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) HasRegisteredEventHandler() bool` + +HasRegisteredEventHandler returns a boolean if a field has been set. + +### GetEventHandlerParameters + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) GetEventHandlerParameters() []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest` + +GetEventHandlerParameters returns the EventHandlerParameters field if non-nil, zero value otherwise. + +### GetEventHandlerParametersOk + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) GetEventHandlerParametersOk() (*[]KeyfactorApiModelsEventHandlerEventHandlerParameterRequest, bool)` + +GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventHandlerParameters + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) SetEventHandlerParameters(v []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest)` + +SetEventHandlerParameters sets EventHandlerParameters field to given value. + +### HasEventHandlerParameters + +`func (o *KeyfactorApiModelsAlertsKeyRotationKeyRotationAlertUpdateRequest) HasEventHandlerParameters() bool` + +HasEventHandlerParameters returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest.md b/v1/docs/KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest.md new file mode 100644 index 0000000..e7dda26 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest.md @@ -0,0 +1,197 @@ +# KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DisplayName** | **string** | | +**Subject** | **string** | | +**Message** | **string** | | +**TemplateId** | Pointer to **int32** | | [optional] +**RegisteredEventHandler** | Pointer to [**KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest**](KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest.md) | | [optional] +**Recipients** | Pointer to **[]string** | | [optional] +**EventHandlerParameters** | Pointer to [**[]KeyfactorApiModelsEventHandlerEventHandlerParameterRequest**](KeyfactorApiModelsEventHandlerEventHandlerParameterRequest.md) | | [optional] + +## Methods + +### NewKeyfactorApiModelsAlertsPendingPendingAlertCreationRequest + +`func NewKeyfactorApiModelsAlertsPendingPendingAlertCreationRequest(displayName string, subject string, message string, ) *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest` + +NewKeyfactorApiModelsAlertsPendingPendingAlertCreationRequest instantiates a new KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsAlertsPendingPendingAlertCreationRequestWithDefaults + +`func NewKeyfactorApiModelsAlertsPendingPendingAlertCreationRequestWithDefaults() *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest` + +NewKeyfactorApiModelsAlertsPendingPendingAlertCreationRequestWithDefaults instantiates a new KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDisplayName + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + + +### GetSubject + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) GetSubject() string` + +GetSubject returns the Subject field if non-nil, zero value otherwise. + +### GetSubjectOk + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) GetSubjectOk() (*string, bool)` + +GetSubjectOk returns a tuple with the Subject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubject + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) SetSubject(v string)` + +SetSubject sets Subject field to given value. + + +### GetMessage + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) SetMessage(v string)` + +SetMessage sets Message field to given value. + + +### GetTemplateId + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) GetTemplateId() int32` + +GetTemplateId returns the TemplateId field if non-nil, zero value otherwise. + +### GetTemplateIdOk + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) GetTemplateIdOk() (*int32, bool)` + +GetTemplateIdOk returns a tuple with the TemplateId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateId + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) SetTemplateId(v int32)` + +SetTemplateId sets TemplateId field to given value. + +### HasTemplateId + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) HasTemplateId() bool` + +HasTemplateId returns a boolean if a field has been set. + +### GetRegisteredEventHandler + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) GetRegisteredEventHandler() KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest` + +GetRegisteredEventHandler returns the RegisteredEventHandler field if non-nil, zero value otherwise. + +### GetRegisteredEventHandlerOk + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) GetRegisteredEventHandlerOk() (*KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest, bool)` + +GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegisteredEventHandler + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) SetRegisteredEventHandler(v KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest)` + +SetRegisteredEventHandler sets RegisteredEventHandler field to given value. + +### HasRegisteredEventHandler + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) HasRegisteredEventHandler() bool` + +HasRegisteredEventHandler returns a boolean if a field has been set. + +### GetRecipients + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) GetRecipients() []string` + +GetRecipients returns the Recipients field if non-nil, zero value otherwise. + +### GetRecipientsOk + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) GetRecipientsOk() (*[]string, bool)` + +GetRecipientsOk returns a tuple with the Recipients field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecipients + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) SetRecipients(v []string)` + +SetRecipients sets Recipients field to given value. + +### HasRecipients + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) HasRecipients() bool` + +HasRecipients returns a boolean if a field has been set. + +### GetEventHandlerParameters + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) GetEventHandlerParameters() []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest` + +GetEventHandlerParameters returns the EventHandlerParameters field if non-nil, zero value otherwise. + +### GetEventHandlerParametersOk + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) GetEventHandlerParametersOk() (*[]KeyfactorApiModelsEventHandlerEventHandlerParameterRequest, bool)` + +GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventHandlerParameters + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) SetEventHandlerParameters(v []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest)` + +SetEventHandlerParameters sets EventHandlerParameters field to given value. + +### HasEventHandlerParameters + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest) HasEventHandlerParameters() bool` + +HasEventHandlerParameters returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse.md b/v1/docs/KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse.md new file mode 100644 index 0000000..4c76be7 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse.md @@ -0,0 +1,238 @@ +# KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**DisplayName** | Pointer to **string** | | [optional] +**Subject** | Pointer to **string** | | [optional] +**Message** | Pointer to **string** | | [optional] +**Recipients** | Pointer to **[]string** | | [optional] +**Template** | Pointer to [**KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse**](KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse.md) | | [optional] +**RegisteredEventHandler** | Pointer to [**KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse**](KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse.md) | | [optional] +**EventHandlerParameters** | Pointer to [**[]KeyfactorApiModelsEventHandlerEventHandlerParameterResponse**](KeyfactorApiModelsEventHandlerEventHandlerParameterResponse.md) | | [optional] + +## Methods + +### NewKeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse + +`func NewKeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse() *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse` + +NewKeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse instantiates a new KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponseWithDefaults + +`func NewKeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponseWithDefaults() *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse` + +NewKeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponseWithDefaults instantiates a new KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetSubject + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) GetSubject() string` + +GetSubject returns the Subject field if non-nil, zero value otherwise. + +### GetSubjectOk + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) GetSubjectOk() (*string, bool)` + +GetSubjectOk returns a tuple with the Subject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubject + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) SetSubject(v string)` + +SetSubject sets Subject field to given value. + +### HasSubject + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) HasSubject() bool` + +HasSubject returns a boolean if a field has been set. + +### GetMessage + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### GetRecipients + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) GetRecipients() []string` + +GetRecipients returns the Recipients field if non-nil, zero value otherwise. + +### GetRecipientsOk + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) GetRecipientsOk() (*[]string, bool)` + +GetRecipientsOk returns a tuple with the Recipients field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecipients + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) SetRecipients(v []string)` + +SetRecipients sets Recipients field to given value. + +### HasRecipients + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) HasRecipients() bool` + +HasRecipients returns a boolean if a field has been set. + +### GetTemplate + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) GetTemplate() KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse` + +GetTemplate returns the Template field if non-nil, zero value otherwise. + +### GetTemplateOk + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) GetTemplateOk() (*KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse, bool)` + +GetTemplateOk returns a tuple with the Template field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplate + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) SetTemplate(v KeyfactorApiModelsAlertsAlertTemplateAlertTemplateResponse)` + +SetTemplate sets Template field to given value. + +### HasTemplate + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) HasTemplate() bool` + +HasTemplate returns a boolean if a field has been set. + +### GetRegisteredEventHandler + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) GetRegisteredEventHandler() KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse` + +GetRegisteredEventHandler returns the RegisteredEventHandler field if non-nil, zero value otherwise. + +### GetRegisteredEventHandlerOk + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) GetRegisteredEventHandlerOk() (*KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse, bool)` + +GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegisteredEventHandler + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) SetRegisteredEventHandler(v KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse)` + +SetRegisteredEventHandler sets RegisteredEventHandler field to given value. + +### HasRegisteredEventHandler + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) HasRegisteredEventHandler() bool` + +HasRegisteredEventHandler returns a boolean if a field has been set. + +### GetEventHandlerParameters + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) GetEventHandlerParameters() []KeyfactorApiModelsEventHandlerEventHandlerParameterResponse` + +GetEventHandlerParameters returns the EventHandlerParameters field if non-nil, zero value otherwise. + +### GetEventHandlerParametersOk + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) GetEventHandlerParametersOk() (*[]KeyfactorApiModelsEventHandlerEventHandlerParameterResponse, bool)` + +GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventHandlerParameters + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) SetEventHandlerParameters(v []KeyfactorApiModelsEventHandlerEventHandlerParameterResponse)` + +SetEventHandlerParameters sets EventHandlerParameters field to given value. + +### HasEventHandlerParameters + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse) HasEventHandlerParameters() bool` + +HasEventHandlerParameters returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsAlertsPendingPendingAlertResponse.md b/v1/docs/KeyfactorApiModelsAlertsPendingPendingAlertResponse.md new file mode 100644 index 0000000..9846aea --- /dev/null +++ b/v1/docs/KeyfactorApiModelsAlertsPendingPendingAlertResponse.md @@ -0,0 +1,186 @@ +# KeyfactorApiModelsAlertsPendingPendingAlertResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Subject** | Pointer to **string** | | [optional] +**Message** | Pointer to **string** | | [optional] +**Recipients** | Pointer to **[]string** | | [optional] +**CARequestId** | Pointer to **int32** | | [optional] +**CommonName** | Pointer to **string** | | [optional] +**LogicalName** | Pointer to **string** | | [optional] + +## Methods + +### NewKeyfactorApiModelsAlertsPendingPendingAlertResponse + +`func NewKeyfactorApiModelsAlertsPendingPendingAlertResponse() *KeyfactorApiModelsAlertsPendingPendingAlertResponse` + +NewKeyfactorApiModelsAlertsPendingPendingAlertResponse instantiates a new KeyfactorApiModelsAlertsPendingPendingAlertResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsAlertsPendingPendingAlertResponseWithDefaults + +`func NewKeyfactorApiModelsAlertsPendingPendingAlertResponseWithDefaults() *KeyfactorApiModelsAlertsPendingPendingAlertResponse` + +NewKeyfactorApiModelsAlertsPendingPendingAlertResponseWithDefaults instantiates a new KeyfactorApiModelsAlertsPendingPendingAlertResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSubject + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertResponse) GetSubject() string` + +GetSubject returns the Subject field if non-nil, zero value otherwise. + +### GetSubjectOk + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertResponse) GetSubjectOk() (*string, bool)` + +GetSubjectOk returns a tuple with the Subject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubject + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertResponse) SetSubject(v string)` + +SetSubject sets Subject field to given value. + +### HasSubject + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertResponse) HasSubject() bool` + +HasSubject returns a boolean if a field has been set. + +### GetMessage + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertResponse) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertResponse) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertResponse) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertResponse) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### GetRecipients + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertResponse) GetRecipients() []string` + +GetRecipients returns the Recipients field if non-nil, zero value otherwise. + +### GetRecipientsOk + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertResponse) GetRecipientsOk() (*[]string, bool)` + +GetRecipientsOk returns a tuple with the Recipients field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecipients + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertResponse) SetRecipients(v []string)` + +SetRecipients sets Recipients field to given value. + +### HasRecipients + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertResponse) HasRecipients() bool` + +HasRecipients returns a boolean if a field has been set. + +### GetCARequestId + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertResponse) GetCARequestId() int32` + +GetCARequestId returns the CARequestId field if non-nil, zero value otherwise. + +### GetCARequestIdOk + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertResponse) GetCARequestIdOk() (*int32, bool)` + +GetCARequestIdOk returns a tuple with the CARequestId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCARequestId + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertResponse) SetCARequestId(v int32)` + +SetCARequestId sets CARequestId field to given value. + +### HasCARequestId + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertResponse) HasCARequestId() bool` + +HasCARequestId returns a boolean if a field has been set. + +### GetCommonName + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertResponse) GetCommonName() string` + +GetCommonName returns the CommonName field if non-nil, zero value otherwise. + +### GetCommonNameOk + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertResponse) GetCommonNameOk() (*string, bool)` + +GetCommonNameOk returns a tuple with the CommonName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommonName + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertResponse) SetCommonName(v string)` + +SetCommonName sets CommonName field to given value. + +### HasCommonName + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertResponse) HasCommonName() bool` + +HasCommonName returns a boolean if a field has been set. + +### GetLogicalName + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertResponse) GetLogicalName() string` + +GetLogicalName returns the LogicalName field if non-nil, zero value otherwise. + +### GetLogicalNameOk + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertResponse) GetLogicalNameOk() (*string, bool)` + +GetLogicalNameOk returns a tuple with the LogicalName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogicalName + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertResponse) SetLogicalName(v string)` + +SetLogicalName sets LogicalName field to given value. + +### HasLogicalName + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertResponse) HasLogicalName() bool` + +HasLogicalName returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest.md b/v1/docs/KeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest.md new file mode 100644 index 0000000..bc94454 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest.md @@ -0,0 +1,56 @@ +# KeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SendAlerts** | Pointer to **bool** | | [optional] + +## Methods + +### NewKeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest + +`func NewKeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest() *KeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest` + +NewKeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest instantiates a new KeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsAlertsPendingPendingAlertTestAllRequestWithDefaults + +`func NewKeyfactorApiModelsAlertsPendingPendingAlertTestAllRequestWithDefaults() *KeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest` + +NewKeyfactorApiModelsAlertsPendingPendingAlertTestAllRequestWithDefaults instantiates a new KeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSendAlerts + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest) GetSendAlerts() bool` + +GetSendAlerts returns the SendAlerts field if non-nil, zero value otherwise. + +### GetSendAlertsOk + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest) GetSendAlertsOk() (*bool, bool)` + +GetSendAlertsOk returns a tuple with the SendAlerts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSendAlerts + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest) SetSendAlerts(v bool)` + +SetSendAlerts sets SendAlerts field to given value. + +### HasSendAlerts + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest) HasSendAlerts() bool` + +HasSendAlerts returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsAlertsPendingPendingAlertTestRequest.md b/v1/docs/KeyfactorApiModelsAlertsPendingPendingAlertTestRequest.md new file mode 100644 index 0000000..d646cc1 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsAlertsPendingPendingAlertTestRequest.md @@ -0,0 +1,82 @@ +# KeyfactorApiModelsAlertsPendingPendingAlertTestRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AlertId** | Pointer to **int32** | | [optional] +**SendAlerts** | Pointer to **bool** | | [optional] + +## Methods + +### NewKeyfactorApiModelsAlertsPendingPendingAlertTestRequest + +`func NewKeyfactorApiModelsAlertsPendingPendingAlertTestRequest() *KeyfactorApiModelsAlertsPendingPendingAlertTestRequest` + +NewKeyfactorApiModelsAlertsPendingPendingAlertTestRequest instantiates a new KeyfactorApiModelsAlertsPendingPendingAlertTestRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsAlertsPendingPendingAlertTestRequestWithDefaults + +`func NewKeyfactorApiModelsAlertsPendingPendingAlertTestRequestWithDefaults() *KeyfactorApiModelsAlertsPendingPendingAlertTestRequest` + +NewKeyfactorApiModelsAlertsPendingPendingAlertTestRequestWithDefaults instantiates a new KeyfactorApiModelsAlertsPendingPendingAlertTestRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAlertId + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertTestRequest) GetAlertId() int32` + +GetAlertId returns the AlertId field if non-nil, zero value otherwise. + +### GetAlertIdOk + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertTestRequest) GetAlertIdOk() (*int32, bool)` + +GetAlertIdOk returns a tuple with the AlertId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlertId + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertTestRequest) SetAlertId(v int32)` + +SetAlertId sets AlertId field to given value. + +### HasAlertId + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertTestRequest) HasAlertId() bool` + +HasAlertId returns a boolean if a field has been set. + +### GetSendAlerts + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertTestRequest) GetSendAlerts() bool` + +GetSendAlerts returns the SendAlerts field if non-nil, zero value otherwise. + +### GetSendAlertsOk + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertTestRequest) GetSendAlertsOk() (*bool, bool)` + +GetSendAlertsOk returns a tuple with the SendAlerts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSendAlerts + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertTestRequest) SetSendAlerts(v bool)` + +SetSendAlerts sets SendAlerts field to given value. + +### HasSendAlerts + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertTestRequest) HasSendAlerts() bool` + +HasSendAlerts returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsAlertsPendingPendingAlertTestResponse.md b/v1/docs/KeyfactorApiModelsAlertsPendingPendingAlertTestResponse.md new file mode 100644 index 0000000..49eb1ad --- /dev/null +++ b/v1/docs/KeyfactorApiModelsAlertsPendingPendingAlertTestResponse.md @@ -0,0 +1,82 @@ +# KeyfactorApiModelsAlertsPendingPendingAlertTestResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PendingAlerts** | Pointer to [**[]KeyfactorApiModelsAlertsPendingPendingAlertResponse**](KeyfactorApiModelsAlertsPendingPendingAlertResponse.md) | | [optional] +**AlertBuildResult** | Pointer to **int32** | | [optional] + +## Methods + +### NewKeyfactorApiModelsAlertsPendingPendingAlertTestResponse + +`func NewKeyfactorApiModelsAlertsPendingPendingAlertTestResponse() *KeyfactorApiModelsAlertsPendingPendingAlertTestResponse` + +NewKeyfactorApiModelsAlertsPendingPendingAlertTestResponse instantiates a new KeyfactorApiModelsAlertsPendingPendingAlertTestResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsAlertsPendingPendingAlertTestResponseWithDefaults + +`func NewKeyfactorApiModelsAlertsPendingPendingAlertTestResponseWithDefaults() *KeyfactorApiModelsAlertsPendingPendingAlertTestResponse` + +NewKeyfactorApiModelsAlertsPendingPendingAlertTestResponseWithDefaults instantiates a new KeyfactorApiModelsAlertsPendingPendingAlertTestResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPendingAlerts + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertTestResponse) GetPendingAlerts() []KeyfactorApiModelsAlertsPendingPendingAlertResponse` + +GetPendingAlerts returns the PendingAlerts field if non-nil, zero value otherwise. + +### GetPendingAlertsOk + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertTestResponse) GetPendingAlertsOk() (*[]KeyfactorApiModelsAlertsPendingPendingAlertResponse, bool)` + +GetPendingAlertsOk returns a tuple with the PendingAlerts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPendingAlerts + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertTestResponse) SetPendingAlerts(v []KeyfactorApiModelsAlertsPendingPendingAlertResponse)` + +SetPendingAlerts sets PendingAlerts field to given value. + +### HasPendingAlerts + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertTestResponse) HasPendingAlerts() bool` + +HasPendingAlerts returns a boolean if a field has been set. + +### GetAlertBuildResult + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertTestResponse) GetAlertBuildResult() int32` + +GetAlertBuildResult returns the AlertBuildResult field if non-nil, zero value otherwise. + +### GetAlertBuildResultOk + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertTestResponse) GetAlertBuildResultOk() (*int32, bool)` + +GetAlertBuildResultOk returns a tuple with the AlertBuildResult field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlertBuildResult + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertTestResponse) SetAlertBuildResult(v int32)` + +SetAlertBuildResult sets AlertBuildResult field to given value. + +### HasAlertBuildResult + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertTestResponse) HasAlertBuildResult() bool` + +HasAlertBuildResult returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest.md b/v1/docs/KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest.md new file mode 100644 index 0000000..d37a558 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest.md @@ -0,0 +1,223 @@ +# KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**DisplayName** | **string** | | +**Subject** | **string** | | +**Message** | **string** | | +**TemplateId** | Pointer to **int32** | | [optional] +**RegisteredEventHandler** | Pointer to [**KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest**](KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest.md) | | [optional] +**Recipients** | Pointer to **[]string** | | [optional] +**EventHandlerParameters** | Pointer to [**[]KeyfactorApiModelsEventHandlerEventHandlerParameterRequest**](KeyfactorApiModelsEventHandlerEventHandlerParameterRequest.md) | | [optional] + +## Methods + +### NewKeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest + +`func NewKeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest(displayName string, subject string, message string, ) *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest` + +NewKeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest instantiates a new KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsAlertsPendingPendingAlertUpdateRequestWithDefaults + +`func NewKeyfactorApiModelsAlertsPendingPendingAlertUpdateRequestWithDefaults() *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest` + +NewKeyfactorApiModelsAlertsPendingPendingAlertUpdateRequestWithDefaults instantiates a new KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + + +### GetSubject + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) GetSubject() string` + +GetSubject returns the Subject field if non-nil, zero value otherwise. + +### GetSubjectOk + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) GetSubjectOk() (*string, bool)` + +GetSubjectOk returns a tuple with the Subject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubject + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) SetSubject(v string)` + +SetSubject sets Subject field to given value. + + +### GetMessage + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) SetMessage(v string)` + +SetMessage sets Message field to given value. + + +### GetTemplateId + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) GetTemplateId() int32` + +GetTemplateId returns the TemplateId field if non-nil, zero value otherwise. + +### GetTemplateIdOk + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) GetTemplateIdOk() (*int32, bool)` + +GetTemplateIdOk returns a tuple with the TemplateId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateId + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) SetTemplateId(v int32)` + +SetTemplateId sets TemplateId field to given value. + +### HasTemplateId + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) HasTemplateId() bool` + +HasTemplateId returns a boolean if a field has been set. + +### GetRegisteredEventHandler + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) GetRegisteredEventHandler() KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest` + +GetRegisteredEventHandler returns the RegisteredEventHandler field if non-nil, zero value otherwise. + +### GetRegisteredEventHandlerOk + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) GetRegisteredEventHandlerOk() (*KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest, bool)` + +GetRegisteredEventHandlerOk returns a tuple with the RegisteredEventHandler field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegisteredEventHandler + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) SetRegisteredEventHandler(v KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest)` + +SetRegisteredEventHandler sets RegisteredEventHandler field to given value. + +### HasRegisteredEventHandler + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) HasRegisteredEventHandler() bool` + +HasRegisteredEventHandler returns a boolean if a field has been set. + +### GetRecipients + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) GetRecipients() []string` + +GetRecipients returns the Recipients field if non-nil, zero value otherwise. + +### GetRecipientsOk + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) GetRecipientsOk() (*[]string, bool)` + +GetRecipientsOk returns a tuple with the Recipients field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecipients + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) SetRecipients(v []string)` + +SetRecipients sets Recipients field to given value. + +### HasRecipients + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) HasRecipients() bool` + +HasRecipients returns a boolean if a field has been set. + +### GetEventHandlerParameters + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) GetEventHandlerParameters() []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest` + +GetEventHandlerParameters returns the EventHandlerParameters field if non-nil, zero value otherwise. + +### GetEventHandlerParametersOk + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) GetEventHandlerParametersOk() (*[]KeyfactorApiModelsEventHandlerEventHandlerParameterRequest, bool)` + +GetEventHandlerParametersOk returns a tuple with the EventHandlerParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventHandlerParameters + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) SetEventHandlerParameters(v []KeyfactorApiModelsEventHandlerEventHandlerParameterRequest)` + +SetEventHandlerParameters sets EventHandlerParameters field to given value. + +### HasEventHandlerParameters + +`func (o *KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest) HasEventHandlerParameters() bool` + +HasEventHandlerParameters returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse.md b/v1/docs/KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse.md new file mode 100644 index 0000000..f937824 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse.md @@ -0,0 +1,82 @@ +# KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | Pointer to **bool** | Whether the test succeeded or failed. | [optional] +**Message** | Pointer to **string** | The message returned by the test. | [optional] + +## Methods + +### NewKeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse + +`func NewKeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse() *KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse` + +NewKeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse instantiates a new KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponseWithDefaults + +`func NewKeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponseWithDefaults() *KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse` + +NewKeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponseWithDefaults instantiates a new KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSuccess + +`func (o *KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + +### HasSuccess + +`func (o *KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse) HasSuccess() bool` + +HasSuccess returns a boolean if a field has been set. + +### GetMessage + +`func (o *KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest.md b/v1/docs/KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest.md new file mode 100644 index 0000000..a7f211a --- /dev/null +++ b/v1/docs/KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest.md @@ -0,0 +1,202 @@ +# KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CopyFromId** | **int32** | | +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] +**Query** | Pointer to **string** | | [optional] +**DuplicationField** | Pointer to **int32** | | [optional] +**ShowOnDashboard** | Pointer to **bool** | | [optional] +**Favorite** | Pointer to **bool** | | [optional] + +## Methods + +### NewKeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest + +`func NewKeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest(copyFromId int32, name string, ) *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest` + +NewKeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest instantiates a new KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequestWithDefaults + +`func NewKeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequestWithDefaults() *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest` + +NewKeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequestWithDefaults instantiates a new KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCopyFromId + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) GetCopyFromId() int32` + +GetCopyFromId returns the CopyFromId field if non-nil, zero value otherwise. + +### GetCopyFromIdOk + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) GetCopyFromIdOk() (*int32, bool)` + +GetCopyFromIdOk returns a tuple with the CopyFromId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCopyFromId + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) SetCopyFromId(v int32)` + +SetCopyFromId sets CopyFromId field to given value. + + +### GetName + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetQuery + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) GetQuery() string` + +GetQuery returns the Query field if non-nil, zero value otherwise. + +### GetQueryOk + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) GetQueryOk() (*string, bool)` + +GetQueryOk returns a tuple with the Query field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuery + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) SetQuery(v string)` + +SetQuery sets Query field to given value. + +### HasQuery + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) HasQuery() bool` + +HasQuery returns a boolean if a field has been set. + +### GetDuplicationField + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) GetDuplicationField() int32` + +GetDuplicationField returns the DuplicationField field if non-nil, zero value otherwise. + +### GetDuplicationFieldOk + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) GetDuplicationFieldOk() (*int32, bool)` + +GetDuplicationFieldOk returns a tuple with the DuplicationField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDuplicationField + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) SetDuplicationField(v int32)` + +SetDuplicationField sets DuplicationField field to given value. + +### HasDuplicationField + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) HasDuplicationField() bool` + +HasDuplicationField returns a boolean if a field has been set. + +### GetShowOnDashboard + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) GetShowOnDashboard() bool` + +GetShowOnDashboard returns the ShowOnDashboard field if non-nil, zero value otherwise. + +### GetShowOnDashboardOk + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) GetShowOnDashboardOk() (*bool, bool)` + +GetShowOnDashboardOk returns a tuple with the ShowOnDashboard field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShowOnDashboard + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) SetShowOnDashboard(v bool)` + +SetShowOnDashboard sets ShowOnDashboard field to given value. + +### HasShowOnDashboard + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) HasShowOnDashboard() bool` + +HasShowOnDashboard returns a boolean if a field has been set. + +### GetFavorite + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) GetFavorite() bool` + +GetFavorite returns the Favorite field if non-nil, zero value otherwise. + +### GetFavoriteOk + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) GetFavoriteOk() (*bool, bool)` + +GetFavoriteOk returns a tuple with the Favorite field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFavorite + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) SetFavorite(v bool)` + +SetFavorite sets Favorite field to given value. + +### HasFavorite + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCopyRequest) HasFavorite() bool` + +HasFavorite returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest.md b/v1/docs/KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest.md new file mode 100644 index 0000000..86b4d01 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest.md @@ -0,0 +1,233 @@ +# KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CopyFromId** | Pointer to **int32** | | [optional] +**Id** | Pointer to **int32** | | [optional] +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] +**Query** | Pointer to **string** | | [optional] +**DuplicationField** | Pointer to **int32** | | [optional] +**ShowOnDashboard** | Pointer to **bool** | | [optional] +**Favorite** | Pointer to **bool** | | [optional] + +## Methods + +### NewKeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest + +`func NewKeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest(name string, ) *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest` + +NewKeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest instantiates a new KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequestWithDefaults + +`func NewKeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequestWithDefaults() *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest` + +NewKeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequestWithDefaults instantiates a new KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCopyFromId + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) GetCopyFromId() int32` + +GetCopyFromId returns the CopyFromId field if non-nil, zero value otherwise. + +### GetCopyFromIdOk + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) GetCopyFromIdOk() (*int32, bool)` + +GetCopyFromIdOk returns a tuple with the CopyFromId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCopyFromId + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) SetCopyFromId(v int32)` + +SetCopyFromId sets CopyFromId field to given value. + +### HasCopyFromId + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) HasCopyFromId() bool` + +HasCopyFromId returns a boolean if a field has been set. + +### GetId + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetQuery + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) GetQuery() string` + +GetQuery returns the Query field if non-nil, zero value otherwise. + +### GetQueryOk + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) GetQueryOk() (*string, bool)` + +GetQueryOk returns a tuple with the Query field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuery + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) SetQuery(v string)` + +SetQuery sets Query field to given value. + +### HasQuery + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) HasQuery() bool` + +HasQuery returns a boolean if a field has been set. + +### GetDuplicationField + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) GetDuplicationField() int32` + +GetDuplicationField returns the DuplicationField field if non-nil, zero value otherwise. + +### GetDuplicationFieldOk + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) GetDuplicationFieldOk() (*int32, bool)` + +GetDuplicationFieldOk returns a tuple with the DuplicationField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDuplicationField + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) SetDuplicationField(v int32)` + +SetDuplicationField sets DuplicationField field to given value. + +### HasDuplicationField + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) HasDuplicationField() bool` + +HasDuplicationField returns a boolean if a field has been set. + +### GetShowOnDashboard + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) GetShowOnDashboard() bool` + +GetShowOnDashboard returns the ShowOnDashboard field if non-nil, zero value otherwise. + +### GetShowOnDashboardOk + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) GetShowOnDashboardOk() (*bool, bool)` + +GetShowOnDashboardOk returns a tuple with the ShowOnDashboard field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShowOnDashboard + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) SetShowOnDashboard(v bool)` + +SetShowOnDashboard sets ShowOnDashboard field to given value. + +### HasShowOnDashboard + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) HasShowOnDashboard() bool` + +HasShowOnDashboard returns a boolean if a field has been set. + +### GetFavorite + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) GetFavorite() bool` + +GetFavorite returns the Favorite field if non-nil, zero value otherwise. + +### GetFavoriteOk + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) GetFavoriteOk() (*bool, bool)` + +GetFavoriteOk returns a tuple with the Favorite field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFavorite + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) SetFavorite(v bool)` + +SetFavorite sets Favorite field to given value. + +### HasFavorite + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionCreateRequest) HasFavorite() bool` + +HasFavorite returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse.md b/v1/docs/KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse.md new file mode 100644 index 0000000..42d29ba --- /dev/null +++ b/v1/docs/KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse.md @@ -0,0 +1,238 @@ +# KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**Content** | Pointer to **string** | | [optional] [readonly] +**Query** | Pointer to **string** | | [optional] +**DuplicationField** | Pointer to **int32** | | [optional] +**ShowOnDashboard** | Pointer to **bool** | | [optional] +**Favorite** | Pointer to **bool** | | [optional] + +## Methods + +### NewKeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse + +`func NewKeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse() *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse` + +NewKeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse instantiates a new KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsCertificateCollectionsCertificateCollectionResponseWithDefaults + +`func NewKeyfactorApiModelsCertificateCollectionsCertificateCollectionResponseWithDefaults() *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse` + +NewKeyfactorApiModelsCertificateCollectionsCertificateCollectionResponseWithDefaults instantiates a new KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDescription + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetContent + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) GetContent() string` + +GetContent returns the Content field if non-nil, zero value otherwise. + +### GetContentOk + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) GetContentOk() (*string, bool)` + +GetContentOk returns a tuple with the Content field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContent + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) SetContent(v string)` + +SetContent sets Content field to given value. + +### HasContent + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) HasContent() bool` + +HasContent returns a boolean if a field has been set. + +### GetQuery + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) GetQuery() string` + +GetQuery returns the Query field if non-nil, zero value otherwise. + +### GetQueryOk + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) GetQueryOk() (*string, bool)` + +GetQueryOk returns a tuple with the Query field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuery + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) SetQuery(v string)` + +SetQuery sets Query field to given value. + +### HasQuery + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) HasQuery() bool` + +HasQuery returns a boolean if a field has been set. + +### GetDuplicationField + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) GetDuplicationField() int32` + +GetDuplicationField returns the DuplicationField field if non-nil, zero value otherwise. + +### GetDuplicationFieldOk + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) GetDuplicationFieldOk() (*int32, bool)` + +GetDuplicationFieldOk returns a tuple with the DuplicationField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDuplicationField + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) SetDuplicationField(v int32)` + +SetDuplicationField sets DuplicationField field to given value. + +### HasDuplicationField + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) HasDuplicationField() bool` + +HasDuplicationField returns a boolean if a field has been set. + +### GetShowOnDashboard + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) GetShowOnDashboard() bool` + +GetShowOnDashboard returns the ShowOnDashboard field if non-nil, zero value otherwise. + +### GetShowOnDashboardOk + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) GetShowOnDashboardOk() (*bool, bool)` + +GetShowOnDashboardOk returns a tuple with the ShowOnDashboard field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShowOnDashboard + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) SetShowOnDashboard(v bool)` + +SetShowOnDashboard sets ShowOnDashboard field to given value. + +### HasShowOnDashboard + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) HasShowOnDashboard() bool` + +HasShowOnDashboard returns a boolean if a field has been set. + +### GetFavorite + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) GetFavorite() bool` + +GetFavorite returns the Favorite field if non-nil, zero value otherwise. + +### GetFavoriteOk + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) GetFavoriteOk() (*bool, bool)` + +GetFavoriteOk returns a tuple with the Favorite field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFavorite + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) SetFavorite(v bool)` + +SetFavorite sets Favorite field to given value. + +### HasFavorite + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionResponse) HasFavorite() bool` + +HasFavorite returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest.md b/v1/docs/KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest.md new file mode 100644 index 0000000..50db618 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest.md @@ -0,0 +1,202 @@ +# KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] +**Query** | Pointer to **string** | | [optional] +**DuplicationField** | Pointer to **int32** | | [optional] +**ShowOnDashboard** | Pointer to **bool** | | [optional] +**Favorite** | Pointer to **bool** | | [optional] + +## Methods + +### NewKeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest + +`func NewKeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest(id int32, name string, ) *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest` + +NewKeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest instantiates a new KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequestWithDefaults + +`func NewKeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequestWithDefaults() *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest` + +NewKeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequestWithDefaults instantiates a new KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetName + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetQuery + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) GetQuery() string` + +GetQuery returns the Query field if non-nil, zero value otherwise. + +### GetQueryOk + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) GetQueryOk() (*string, bool)` + +GetQueryOk returns a tuple with the Query field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuery + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) SetQuery(v string)` + +SetQuery sets Query field to given value. + +### HasQuery + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) HasQuery() bool` + +HasQuery returns a boolean if a field has been set. + +### GetDuplicationField + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) GetDuplicationField() int32` + +GetDuplicationField returns the DuplicationField field if non-nil, zero value otherwise. + +### GetDuplicationFieldOk + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) GetDuplicationFieldOk() (*int32, bool)` + +GetDuplicationFieldOk returns a tuple with the DuplicationField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDuplicationField + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) SetDuplicationField(v int32)` + +SetDuplicationField sets DuplicationField field to given value. + +### HasDuplicationField + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) HasDuplicationField() bool` + +HasDuplicationField returns a boolean if a field has been set. + +### GetShowOnDashboard + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) GetShowOnDashboard() bool` + +GetShowOnDashboard returns the ShowOnDashboard field if non-nil, zero value otherwise. + +### GetShowOnDashboardOk + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) GetShowOnDashboardOk() (*bool, bool)` + +GetShowOnDashboardOk returns a tuple with the ShowOnDashboard field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShowOnDashboard + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) SetShowOnDashboard(v bool)` + +SetShowOnDashboard sets ShowOnDashboard field to given value. + +### HasShowOnDashboard + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) HasShowOnDashboard() bool` + +HasShowOnDashboard returns a boolean if a field has been set. + +### GetFavorite + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) GetFavorite() bool` + +GetFavorite returns the Favorite field if non-nil, zero value otherwise. + +### GetFavoriteOk + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) GetFavoriteOk() (*bool, bool)` + +GetFavoriteOk returns a tuple with the Favorite field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFavorite + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) SetFavorite(v bool)` + +SetFavorite sets Favorite field to given value. + +### HasFavorite + +`func (o *KeyfactorApiModelsCertificateCollectionsCertificateCollectionUpdateRequest) HasFavorite() bool` + +HasFavorite returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsCertificateStoresAddCertificateRequest.md b/v1/docs/KeyfactorApiModelsCertificateStoresAddCertificateRequest.md new file mode 100644 index 0000000..1673010 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsCertificateStoresAddCertificateRequest.md @@ -0,0 +1,119 @@ +# KeyfactorApiModelsCertificateStoresAddCertificateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CertificateId** | **int32** | | +**CertificateStores** | [**[]ModelsCertificateStoreEntry**](ModelsCertificateStoreEntry.md) | | +**Schedule** | [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | +**CollectionId** | Pointer to **int32** | | [optional] + +## Methods + +### NewKeyfactorApiModelsCertificateStoresAddCertificateRequest + +`func NewKeyfactorApiModelsCertificateStoresAddCertificateRequest(certificateId int32, certificateStores []ModelsCertificateStoreEntry, schedule KeyfactorCommonSchedulingKeyfactorSchedule, ) *KeyfactorApiModelsCertificateStoresAddCertificateRequest` + +NewKeyfactorApiModelsCertificateStoresAddCertificateRequest instantiates a new KeyfactorApiModelsCertificateStoresAddCertificateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsCertificateStoresAddCertificateRequestWithDefaults + +`func NewKeyfactorApiModelsCertificateStoresAddCertificateRequestWithDefaults() *KeyfactorApiModelsCertificateStoresAddCertificateRequest` + +NewKeyfactorApiModelsCertificateStoresAddCertificateRequestWithDefaults instantiates a new KeyfactorApiModelsCertificateStoresAddCertificateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCertificateId + +`func (o *KeyfactorApiModelsCertificateStoresAddCertificateRequest) GetCertificateId() int32` + +GetCertificateId returns the CertificateId field if non-nil, zero value otherwise. + +### GetCertificateIdOk + +`func (o *KeyfactorApiModelsCertificateStoresAddCertificateRequest) GetCertificateIdOk() (*int32, bool)` + +GetCertificateIdOk returns a tuple with the CertificateId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateId + +`func (o *KeyfactorApiModelsCertificateStoresAddCertificateRequest) SetCertificateId(v int32)` + +SetCertificateId sets CertificateId field to given value. + + +### GetCertificateStores + +`func (o *KeyfactorApiModelsCertificateStoresAddCertificateRequest) GetCertificateStores() []ModelsCertificateStoreEntry` + +GetCertificateStores returns the CertificateStores field if non-nil, zero value otherwise. + +### GetCertificateStoresOk + +`func (o *KeyfactorApiModelsCertificateStoresAddCertificateRequest) GetCertificateStoresOk() (*[]ModelsCertificateStoreEntry, bool)` + +GetCertificateStoresOk returns a tuple with the CertificateStores field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateStores + +`func (o *KeyfactorApiModelsCertificateStoresAddCertificateRequest) SetCertificateStores(v []ModelsCertificateStoreEntry)` + +SetCertificateStores sets CertificateStores field to given value. + + +### GetSchedule + +`func (o *KeyfactorApiModelsCertificateStoresAddCertificateRequest) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetSchedule returns the Schedule field if non-nil, zero value otherwise. + +### GetScheduleOk + +`func (o *KeyfactorApiModelsCertificateStoresAddCertificateRequest) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetScheduleOk returns a tuple with the Schedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSchedule + +`func (o *KeyfactorApiModelsCertificateStoresAddCertificateRequest) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetSchedule sets Schedule field to given value. + + +### GetCollectionId + +`func (o *KeyfactorApiModelsCertificateStoresAddCertificateRequest) GetCollectionId() int32` + +GetCollectionId returns the CollectionId field if non-nil, zero value otherwise. + +### GetCollectionIdOk + +`func (o *KeyfactorApiModelsCertificateStoresAddCertificateRequest) GetCollectionIdOk() (*int32, bool)` + +GetCollectionIdOk returns a tuple with the CollectionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCollectionId + +`func (o *KeyfactorApiModelsCertificateStoresAddCertificateRequest) SetCollectionId(v int32)` + +SetCollectionId sets CollectionId field to given value. + +### HasCollectionId + +`func (o *KeyfactorApiModelsCertificateStoresAddCertificateRequest) HasCollectionId() bool` + +HasCollectionId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest.md b/v1/docs/KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest.md new file mode 100644 index 0000000..7fb231a --- /dev/null +++ b/v1/docs/KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest.md @@ -0,0 +1,160 @@ +# KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**ContainerId** | Pointer to **int32** | | [optional] +**CertStoreType** | Pointer to **int32** | | [optional] +**Properties** | Pointer to **string** | | [optional] +**Password** | Pointer to [**ModelsKeyfactorAPISecret**](ModelsKeyfactorAPISecret.md) | | [optional] + +## Methods + +### NewKeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest + +`func NewKeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest() *KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest` + +NewKeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest instantiates a new KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsCertificateStoresCertificateStoreApproveRequestWithDefaults + +`func NewKeyfactorApiModelsCertificateStoresCertificateStoreApproveRequestWithDefaults() *KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest` + +NewKeyfactorApiModelsCertificateStoresCertificateStoreApproveRequestWithDefaults instantiates a new KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetContainerId + +`func (o *KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest) GetContainerId() int32` + +GetContainerId returns the ContainerId field if non-nil, zero value otherwise. + +### GetContainerIdOk + +`func (o *KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest) GetContainerIdOk() (*int32, bool)` + +GetContainerIdOk returns a tuple with the ContainerId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContainerId + +`func (o *KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest) SetContainerId(v int32)` + +SetContainerId sets ContainerId field to given value. + +### HasContainerId + +`func (o *KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest) HasContainerId() bool` + +HasContainerId returns a boolean if a field has been set. + +### GetCertStoreType + +`func (o *KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest) GetCertStoreType() int32` + +GetCertStoreType returns the CertStoreType field if non-nil, zero value otherwise. + +### GetCertStoreTypeOk + +`func (o *KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest) GetCertStoreTypeOk() (*int32, bool)` + +GetCertStoreTypeOk returns a tuple with the CertStoreType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertStoreType + +`func (o *KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest) SetCertStoreType(v int32)` + +SetCertStoreType sets CertStoreType field to given value. + +### HasCertStoreType + +`func (o *KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest) HasCertStoreType() bool` + +HasCertStoreType returns a boolean if a field has been set. + +### GetProperties + +`func (o *KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest) GetProperties() string` + +GetProperties returns the Properties field if non-nil, zero value otherwise. + +### GetPropertiesOk + +`func (o *KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest) GetPropertiesOk() (*string, bool)` + +GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProperties + +`func (o *KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest) SetProperties(v string)` + +SetProperties sets Properties field to given value. + +### HasProperties + +`func (o *KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest) HasProperties() bool` + +HasProperties returns a boolean if a field has been set. + +### GetPassword + +`func (o *KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest) GetPassword() ModelsKeyfactorAPISecret` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest) GetPasswordOk() (*ModelsKeyfactorAPISecret, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest) SetPassword(v ModelsKeyfactorAPISecret)` + +SetPassword sets Password field to given value. + +### HasPassword + +`func (o *KeyfactorApiModelsCertificateStoresCertificateStoreApproveRequest) HasPassword() bool` + +HasPassword returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsCertificateStoresJobHistoryResponse.md b/v1/docs/KeyfactorApiModelsCertificateStoresJobHistoryResponse.md new file mode 100644 index 0000000..909290e --- /dev/null +++ b/v1/docs/KeyfactorApiModelsCertificateStoresJobHistoryResponse.md @@ -0,0 +1,342 @@ +# KeyfactorApiModelsCertificateStoresJobHistoryResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**JobHistoryId** | Pointer to **int64** | | [optional] +**AgentMachine** | Pointer to **string** | | [optional] +**JobId** | Pointer to **string** | | [optional] +**Schedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**JobType** | Pointer to **string** | | [optional] +**OperationStart** | Pointer to **time.Time** | | [optional] +**OperationEnd** | Pointer to **time.Time** | | [optional] +**Message** | Pointer to **string** | | [optional] +**Result** | Pointer to **int32** | | [optional] +**Status** | Pointer to **int32** | | [optional] +**StorePath** | Pointer to **string** | | [optional] +**ClientMachine** | Pointer to **string** | | [optional] + +## Methods + +### NewKeyfactorApiModelsCertificateStoresJobHistoryResponse + +`func NewKeyfactorApiModelsCertificateStoresJobHistoryResponse() *KeyfactorApiModelsCertificateStoresJobHistoryResponse` + +NewKeyfactorApiModelsCertificateStoresJobHistoryResponse instantiates a new KeyfactorApiModelsCertificateStoresJobHistoryResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsCertificateStoresJobHistoryResponseWithDefaults + +`func NewKeyfactorApiModelsCertificateStoresJobHistoryResponseWithDefaults() *KeyfactorApiModelsCertificateStoresJobHistoryResponse` + +NewKeyfactorApiModelsCertificateStoresJobHistoryResponseWithDefaults instantiates a new KeyfactorApiModelsCertificateStoresJobHistoryResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetJobHistoryId + +`func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) GetJobHistoryId() int64` + +GetJobHistoryId returns the JobHistoryId field if non-nil, zero value otherwise. + +### GetJobHistoryIdOk + +`func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) GetJobHistoryIdOk() (*int64, bool)` + +GetJobHistoryIdOk returns a tuple with the JobHistoryId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobHistoryId + +`func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) SetJobHistoryId(v int64)` + +SetJobHistoryId sets JobHistoryId field to given value. + +### HasJobHistoryId + +`func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) HasJobHistoryId() bool` + +HasJobHistoryId returns a boolean if a field has been set. + +### GetAgentMachine + +`func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) GetAgentMachine() string` + +GetAgentMachine returns the AgentMachine field if non-nil, zero value otherwise. + +### GetAgentMachineOk + +`func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) GetAgentMachineOk() (*string, bool)` + +GetAgentMachineOk returns a tuple with the AgentMachine field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentMachine + +`func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) SetAgentMachine(v string)` + +SetAgentMachine sets AgentMachine field to given value. + +### HasAgentMachine + +`func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) HasAgentMachine() bool` + +HasAgentMachine returns a boolean if a field has been set. + +### GetJobId + +`func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) GetJobId() string` + +GetJobId returns the JobId field if non-nil, zero value otherwise. + +### GetJobIdOk + +`func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) GetJobIdOk() (*string, bool)` + +GetJobIdOk returns a tuple with the JobId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobId + +`func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) SetJobId(v string)` + +SetJobId sets JobId field to given value. + +### HasJobId + +`func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) HasJobId() bool` + +HasJobId returns a boolean if a field has been set. + +### GetSchedule + +`func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetSchedule returns the Schedule field if non-nil, zero value otherwise. + +### GetScheduleOk + +`func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetScheduleOk returns a tuple with the Schedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSchedule + +`func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetSchedule sets Schedule field to given value. + +### HasSchedule + +`func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) HasSchedule() bool` + +HasSchedule returns a boolean if a field has been set. + +### GetJobType + +`func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) GetJobType() string` + +GetJobType returns the JobType field if non-nil, zero value otherwise. + +### GetJobTypeOk + +`func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) GetJobTypeOk() (*string, bool)` + +GetJobTypeOk returns a tuple with the JobType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobType + +`func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) SetJobType(v string)` + +SetJobType sets JobType field to given value. + +### HasJobType + +`func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) HasJobType() bool` + +HasJobType returns a boolean if a field has been set. + +### GetOperationStart + +`func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) GetOperationStart() time.Time` + +GetOperationStart returns the OperationStart field if non-nil, zero value otherwise. + +### GetOperationStartOk + +`func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) GetOperationStartOk() (*time.Time, bool)` + +GetOperationStartOk returns a tuple with the OperationStart field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperationStart + +`func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) SetOperationStart(v time.Time)` + +SetOperationStart sets OperationStart field to given value. + +### HasOperationStart + +`func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) HasOperationStart() bool` + +HasOperationStart returns a boolean if a field has been set. + +### GetOperationEnd + +`func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) GetOperationEnd() time.Time` + +GetOperationEnd returns the OperationEnd field if non-nil, zero value otherwise. + +### GetOperationEndOk + +`func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) GetOperationEndOk() (*time.Time, bool)` + +GetOperationEndOk returns a tuple with the OperationEnd field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperationEnd + +`func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) SetOperationEnd(v time.Time)` + +SetOperationEnd sets OperationEnd field to given value. + +### HasOperationEnd + +`func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) HasOperationEnd() bool` + +HasOperationEnd returns a boolean if a field has been set. + +### GetMessage + +`func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### GetResult + +`func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) GetResult() int32` + +GetResult returns the Result field if non-nil, zero value otherwise. + +### GetResultOk + +`func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) GetResultOk() (*int32, bool)` + +GetResultOk returns a tuple with the Result field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResult + +`func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) SetResult(v int32)` + +SetResult sets Result field to given value. + +### HasResult + +`func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) HasResult() bool` + +HasResult returns a boolean if a field has been set. + +### GetStatus + +`func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) GetStatus() int32` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) GetStatusOk() (*int32, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) SetStatus(v int32)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetStorePath + +`func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) GetStorePath() string` + +GetStorePath returns the StorePath field if non-nil, zero value otherwise. + +### GetStorePathOk + +`func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) GetStorePathOk() (*string, bool)` + +GetStorePathOk returns a tuple with the StorePath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStorePath + +`func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) SetStorePath(v string)` + +SetStorePath sets StorePath field to given value. + +### HasStorePath + +`func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) HasStorePath() bool` + +HasStorePath returns a boolean if a field has been set. + +### GetClientMachine + +`func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) GetClientMachine() string` + +GetClientMachine returns the ClientMachine field if non-nil, zero value otherwise. + +### GetClientMachineOk + +`func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) GetClientMachineOk() (*string, bool)` + +GetClientMachineOk returns a tuple with the ClientMachine field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientMachine + +`func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) SetClientMachine(v string)` + +SetClientMachine sets ClientMachine field to given value. + +### HasClientMachine + +`func (o *KeyfactorApiModelsCertificateStoresJobHistoryResponse) HasClientMachine() bool` + +HasClientMachine returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsCertificateStoresReenrollmentRequest.md b/v1/docs/KeyfactorApiModelsCertificateStoresReenrollmentRequest.md new file mode 100644 index 0000000..5317110 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsCertificateStoresReenrollmentRequest.md @@ -0,0 +1,212 @@ +# KeyfactorApiModelsCertificateStoresReenrollmentRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**KeystoreId** | Pointer to **string** | | [optional] +**SubjectName** | Pointer to **string** | | [optional] +**AgentGuid** | Pointer to **string** | | [optional] +**Alias** | Pointer to **string** | | [optional] +**JobProperties** | Pointer to **map[string]map[string]interface{}** | | [optional] +**CertificateAuthority** | Pointer to **string** | | [optional] +**CertificateTemplate** | Pointer to **string** | | [optional] + +## Methods + +### NewKeyfactorApiModelsCertificateStoresReenrollmentRequest + +`func NewKeyfactorApiModelsCertificateStoresReenrollmentRequest() *KeyfactorApiModelsCertificateStoresReenrollmentRequest` + +NewKeyfactorApiModelsCertificateStoresReenrollmentRequest instantiates a new KeyfactorApiModelsCertificateStoresReenrollmentRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsCertificateStoresReenrollmentRequestWithDefaults + +`func NewKeyfactorApiModelsCertificateStoresReenrollmentRequestWithDefaults() *KeyfactorApiModelsCertificateStoresReenrollmentRequest` + +NewKeyfactorApiModelsCertificateStoresReenrollmentRequestWithDefaults instantiates a new KeyfactorApiModelsCertificateStoresReenrollmentRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKeystoreId + +`func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) GetKeystoreId() string` + +GetKeystoreId returns the KeystoreId field if non-nil, zero value otherwise. + +### GetKeystoreIdOk + +`func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) GetKeystoreIdOk() (*string, bool)` + +GetKeystoreIdOk returns a tuple with the KeystoreId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeystoreId + +`func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) SetKeystoreId(v string)` + +SetKeystoreId sets KeystoreId field to given value. + +### HasKeystoreId + +`func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) HasKeystoreId() bool` + +HasKeystoreId returns a boolean if a field has been set. + +### GetSubjectName + +`func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) GetSubjectName() string` + +GetSubjectName returns the SubjectName field if non-nil, zero value otherwise. + +### GetSubjectNameOk + +`func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) GetSubjectNameOk() (*string, bool)` + +GetSubjectNameOk returns a tuple with the SubjectName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubjectName + +`func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) SetSubjectName(v string)` + +SetSubjectName sets SubjectName field to given value. + +### HasSubjectName + +`func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) HasSubjectName() bool` + +HasSubjectName returns a boolean if a field has been set. + +### GetAgentGuid + +`func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) GetAgentGuid() string` + +GetAgentGuid returns the AgentGuid field if non-nil, zero value otherwise. + +### GetAgentGuidOk + +`func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) GetAgentGuidOk() (*string, bool)` + +GetAgentGuidOk returns a tuple with the AgentGuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentGuid + +`func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) SetAgentGuid(v string)` + +SetAgentGuid sets AgentGuid field to given value. + +### HasAgentGuid + +`func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) HasAgentGuid() bool` + +HasAgentGuid returns a boolean if a field has been set. + +### GetAlias + +`func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) GetAlias() string` + +GetAlias returns the Alias field if non-nil, zero value otherwise. + +### GetAliasOk + +`func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) GetAliasOk() (*string, bool)` + +GetAliasOk returns a tuple with the Alias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlias + +`func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) SetAlias(v string)` + +SetAlias sets Alias field to given value. + +### HasAlias + +`func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) HasAlias() bool` + +HasAlias returns a boolean if a field has been set. + +### GetJobProperties + +`func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) GetJobProperties() map[string]map[string]interface{}` + +GetJobProperties returns the JobProperties field if non-nil, zero value otherwise. + +### GetJobPropertiesOk + +`func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) GetJobPropertiesOk() (*map[string]map[string]interface{}, bool)` + +GetJobPropertiesOk returns a tuple with the JobProperties field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobProperties + +`func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) SetJobProperties(v map[string]map[string]interface{})` + +SetJobProperties sets JobProperties field to given value. + +### HasJobProperties + +`func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) HasJobProperties() bool` + +HasJobProperties returns a boolean if a field has been set. + +### GetCertificateAuthority + +`func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) GetCertificateAuthority() string` + +GetCertificateAuthority returns the CertificateAuthority field if non-nil, zero value otherwise. + +### GetCertificateAuthorityOk + +`func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) GetCertificateAuthorityOk() (*string, bool)` + +GetCertificateAuthorityOk returns a tuple with the CertificateAuthority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateAuthority + +`func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) SetCertificateAuthority(v string)` + +SetCertificateAuthority sets CertificateAuthority field to given value. + +### HasCertificateAuthority + +`func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) HasCertificateAuthority() bool` + +HasCertificateAuthority returns a boolean if a field has been set. + +### GetCertificateTemplate + +`func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) GetCertificateTemplate() string` + +GetCertificateTemplate returns the CertificateTemplate field if non-nil, zero value otherwise. + +### GetCertificateTemplateOk + +`func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) GetCertificateTemplateOk() (*string, bool)` + +GetCertificateTemplateOk returns a tuple with the CertificateTemplate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateTemplate + +`func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) SetCertificateTemplate(v string)` + +SetCertificateTemplate sets CertificateTemplate field to given value. + +### HasCertificateTemplate + +`func (o *KeyfactorApiModelsCertificateStoresReenrollmentRequest) HasCertificateTemplate() bool` + +HasCertificateTemplate returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsCertificateStoresRemoveCertificateRequest.md b/v1/docs/KeyfactorApiModelsCertificateStoresRemoveCertificateRequest.md new file mode 100644 index 0000000..fbbdd52 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsCertificateStoresRemoveCertificateRequest.md @@ -0,0 +1,98 @@ +# KeyfactorApiModelsCertificateStoresRemoveCertificateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CertificateStores** | [**[]ModelsCertificateLocationSpecifier**](ModelsCertificateLocationSpecifier.md) | | +**Schedule** | [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | +**CollectionId** | Pointer to **int32** | | [optional] + +## Methods + +### NewKeyfactorApiModelsCertificateStoresRemoveCertificateRequest + +`func NewKeyfactorApiModelsCertificateStoresRemoveCertificateRequest(certificateStores []ModelsCertificateLocationSpecifier, schedule KeyfactorCommonSchedulingKeyfactorSchedule, ) *KeyfactorApiModelsCertificateStoresRemoveCertificateRequest` + +NewKeyfactorApiModelsCertificateStoresRemoveCertificateRequest instantiates a new KeyfactorApiModelsCertificateStoresRemoveCertificateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsCertificateStoresRemoveCertificateRequestWithDefaults + +`func NewKeyfactorApiModelsCertificateStoresRemoveCertificateRequestWithDefaults() *KeyfactorApiModelsCertificateStoresRemoveCertificateRequest` + +NewKeyfactorApiModelsCertificateStoresRemoveCertificateRequestWithDefaults instantiates a new KeyfactorApiModelsCertificateStoresRemoveCertificateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCertificateStores + +`func (o *KeyfactorApiModelsCertificateStoresRemoveCertificateRequest) GetCertificateStores() []ModelsCertificateLocationSpecifier` + +GetCertificateStores returns the CertificateStores field if non-nil, zero value otherwise. + +### GetCertificateStoresOk + +`func (o *KeyfactorApiModelsCertificateStoresRemoveCertificateRequest) GetCertificateStoresOk() (*[]ModelsCertificateLocationSpecifier, bool)` + +GetCertificateStoresOk returns a tuple with the CertificateStores field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateStores + +`func (o *KeyfactorApiModelsCertificateStoresRemoveCertificateRequest) SetCertificateStores(v []ModelsCertificateLocationSpecifier)` + +SetCertificateStores sets CertificateStores field to given value. + + +### GetSchedule + +`func (o *KeyfactorApiModelsCertificateStoresRemoveCertificateRequest) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetSchedule returns the Schedule field if non-nil, zero value otherwise. + +### GetScheduleOk + +`func (o *KeyfactorApiModelsCertificateStoresRemoveCertificateRequest) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetScheduleOk returns a tuple with the Schedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSchedule + +`func (o *KeyfactorApiModelsCertificateStoresRemoveCertificateRequest) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetSchedule sets Schedule field to given value. + + +### GetCollectionId + +`func (o *KeyfactorApiModelsCertificateStoresRemoveCertificateRequest) GetCollectionId() int32` + +GetCollectionId returns the CollectionId field if non-nil, zero value otherwise. + +### GetCollectionIdOk + +`func (o *KeyfactorApiModelsCertificateStoresRemoveCertificateRequest) GetCollectionIdOk() (*int32, bool)` + +GetCollectionIdOk returns a tuple with the CollectionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCollectionId + +`func (o *KeyfactorApiModelsCertificateStoresRemoveCertificateRequest) SetCollectionId(v int32)` + +SetCollectionId sets CollectionId field to given value. + +### HasCollectionId + +`func (o *KeyfactorApiModelsCertificateStoresRemoveCertificateRequest) HasCollectionId() bool` + +HasCollectionId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest.md b/v1/docs/KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest.md new file mode 100644 index 0000000..e5048a0 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest.md @@ -0,0 +1,566 @@ +# KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**ShortName** | **string** | | +**Capability** | Pointer to **string** | | [optional] +**LocalStore** | Pointer to **bool** | | [optional] +**SupportedOperations** | Pointer to [**ModelsCertStoreTypeSupportedOperations**](ModelsCertStoreTypeSupportedOperations.md) | | [optional] +**Properties** | Pointer to [**[]ModelsCertificateStoreTypeProperty**](ModelsCertificateStoreTypeProperty.md) | | [optional] +**PasswordOptions** | Pointer to [**ModelsCertStoreTypePasswordOptions**](ModelsCertStoreTypePasswordOptions.md) | | [optional] +**StorePathType** | Pointer to **string** | | [optional] +**StorePathValue** | Pointer to **string** | | [optional] +**PrivateKeyAllowed** | Pointer to **string** | | [optional] +**ServerRequired** | Pointer to **bool** | | [optional] +**PowerShell** | Pointer to **bool** | | [optional] +**BlueprintAllowed** | Pointer to **bool** | | [optional] +**CustomAliasAllowed** | Pointer to **string** | | [optional] +**ServerRegistration** | Pointer to **int32** | | [optional] +**InventoryEndpoint** | Pointer to **string** | | [optional] +**InventoryJobTypeId** | Pointer to **string** | | [optional] +**ManagementJobTypeId** | Pointer to **string** | | [optional] +**DiscoveryJobTypeId** | Pointer to **string** | | [optional] +**EnrollmentJobTypeId** | Pointer to **string** | | [optional] +**EntryParameters** | Pointer to [**[]ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter**](ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter.md) | | [optional] + +## Methods + +### NewKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest + +`func NewKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest(name string, shortName string, ) *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest` + +NewKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest instantiates a new KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequestWithDefaults + +`func NewKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequestWithDefaults() *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest` + +NewKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequestWithDefaults instantiates a new KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetShortName + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetShortName() string` + +GetShortName returns the ShortName field if non-nil, zero value otherwise. + +### GetShortNameOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetShortNameOk() (*string, bool)` + +GetShortNameOk returns a tuple with the ShortName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShortName + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) SetShortName(v string)` + +SetShortName sets ShortName field to given value. + + +### GetCapability + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetCapability() string` + +GetCapability returns the Capability field if non-nil, zero value otherwise. + +### GetCapabilityOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetCapabilityOk() (*string, bool)` + +GetCapabilityOk returns a tuple with the Capability field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCapability + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) SetCapability(v string)` + +SetCapability sets Capability field to given value. + +### HasCapability + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) HasCapability() bool` + +HasCapability returns a boolean if a field has been set. + +### GetLocalStore + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetLocalStore() bool` + +GetLocalStore returns the LocalStore field if non-nil, zero value otherwise. + +### GetLocalStoreOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetLocalStoreOk() (*bool, bool)` + +GetLocalStoreOk returns a tuple with the LocalStore field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocalStore + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) SetLocalStore(v bool)` + +SetLocalStore sets LocalStore field to given value. + +### HasLocalStore + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) HasLocalStore() bool` + +HasLocalStore returns a boolean if a field has been set. + +### GetSupportedOperations + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetSupportedOperations() ModelsCertStoreTypeSupportedOperations` + +GetSupportedOperations returns the SupportedOperations field if non-nil, zero value otherwise. + +### GetSupportedOperationsOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetSupportedOperationsOk() (*ModelsCertStoreTypeSupportedOperations, bool)` + +GetSupportedOperationsOk returns a tuple with the SupportedOperations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSupportedOperations + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) SetSupportedOperations(v ModelsCertStoreTypeSupportedOperations)` + +SetSupportedOperations sets SupportedOperations field to given value. + +### HasSupportedOperations + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) HasSupportedOperations() bool` + +HasSupportedOperations returns a boolean if a field has been set. + +### GetProperties + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetProperties() []ModelsCertificateStoreTypeProperty` + +GetProperties returns the Properties field if non-nil, zero value otherwise. + +### GetPropertiesOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetPropertiesOk() (*[]ModelsCertificateStoreTypeProperty, bool)` + +GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProperties + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) SetProperties(v []ModelsCertificateStoreTypeProperty)` + +SetProperties sets Properties field to given value. + +### HasProperties + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) HasProperties() bool` + +HasProperties returns a boolean if a field has been set. + +### GetPasswordOptions + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetPasswordOptions() ModelsCertStoreTypePasswordOptions` + +GetPasswordOptions returns the PasswordOptions field if non-nil, zero value otherwise. + +### GetPasswordOptionsOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetPasswordOptionsOk() (*ModelsCertStoreTypePasswordOptions, bool)` + +GetPasswordOptionsOk returns a tuple with the PasswordOptions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPasswordOptions + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) SetPasswordOptions(v ModelsCertStoreTypePasswordOptions)` + +SetPasswordOptions sets PasswordOptions field to given value. + +### HasPasswordOptions + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) HasPasswordOptions() bool` + +HasPasswordOptions returns a boolean if a field has been set. + +### GetStorePathType + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetStorePathType() string` + +GetStorePathType returns the StorePathType field if non-nil, zero value otherwise. + +### GetStorePathTypeOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetStorePathTypeOk() (*string, bool)` + +GetStorePathTypeOk returns a tuple with the StorePathType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStorePathType + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) SetStorePathType(v string)` + +SetStorePathType sets StorePathType field to given value. + +### HasStorePathType + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) HasStorePathType() bool` + +HasStorePathType returns a boolean if a field has been set. + +### GetStorePathValue + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetStorePathValue() string` + +GetStorePathValue returns the StorePathValue field if non-nil, zero value otherwise. + +### GetStorePathValueOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetStorePathValueOk() (*string, bool)` + +GetStorePathValueOk returns a tuple with the StorePathValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStorePathValue + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) SetStorePathValue(v string)` + +SetStorePathValue sets StorePathValue field to given value. + +### HasStorePathValue + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) HasStorePathValue() bool` + +HasStorePathValue returns a boolean if a field has been set. + +### GetPrivateKeyAllowed + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetPrivateKeyAllowed() string` + +GetPrivateKeyAllowed returns the PrivateKeyAllowed field if non-nil, zero value otherwise. + +### GetPrivateKeyAllowedOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetPrivateKeyAllowedOk() (*string, bool)` + +GetPrivateKeyAllowedOk returns a tuple with the PrivateKeyAllowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivateKeyAllowed + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) SetPrivateKeyAllowed(v string)` + +SetPrivateKeyAllowed sets PrivateKeyAllowed field to given value. + +### HasPrivateKeyAllowed + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) HasPrivateKeyAllowed() bool` + +HasPrivateKeyAllowed returns a boolean if a field has been set. + +### GetServerRequired + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetServerRequired() bool` + +GetServerRequired returns the ServerRequired field if non-nil, zero value otherwise. + +### GetServerRequiredOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetServerRequiredOk() (*bool, bool)` + +GetServerRequiredOk returns a tuple with the ServerRequired field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerRequired + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) SetServerRequired(v bool)` + +SetServerRequired sets ServerRequired field to given value. + +### HasServerRequired + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) HasServerRequired() bool` + +HasServerRequired returns a boolean if a field has been set. + +### GetPowerShell + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetPowerShell() bool` + +GetPowerShell returns the PowerShell field if non-nil, zero value otherwise. + +### GetPowerShellOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetPowerShellOk() (*bool, bool)` + +GetPowerShellOk returns a tuple with the PowerShell field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPowerShell + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) SetPowerShell(v bool)` + +SetPowerShell sets PowerShell field to given value. + +### HasPowerShell + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) HasPowerShell() bool` + +HasPowerShell returns a boolean if a field has been set. + +### GetBlueprintAllowed + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetBlueprintAllowed() bool` + +GetBlueprintAllowed returns the BlueprintAllowed field if non-nil, zero value otherwise. + +### GetBlueprintAllowedOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetBlueprintAllowedOk() (*bool, bool)` + +GetBlueprintAllowedOk returns a tuple with the BlueprintAllowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlueprintAllowed + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) SetBlueprintAllowed(v bool)` + +SetBlueprintAllowed sets BlueprintAllowed field to given value. + +### HasBlueprintAllowed + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) HasBlueprintAllowed() bool` + +HasBlueprintAllowed returns a boolean if a field has been set. + +### GetCustomAliasAllowed + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetCustomAliasAllowed() string` + +GetCustomAliasAllowed returns the CustomAliasAllowed field if non-nil, zero value otherwise. + +### GetCustomAliasAllowedOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetCustomAliasAllowedOk() (*string, bool)` + +GetCustomAliasAllowedOk returns a tuple with the CustomAliasAllowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomAliasAllowed + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) SetCustomAliasAllowed(v string)` + +SetCustomAliasAllowed sets CustomAliasAllowed field to given value. + +### HasCustomAliasAllowed + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) HasCustomAliasAllowed() bool` + +HasCustomAliasAllowed returns a boolean if a field has been set. + +### GetServerRegistration + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetServerRegistration() int32` + +GetServerRegistration returns the ServerRegistration field if non-nil, zero value otherwise. + +### GetServerRegistrationOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetServerRegistrationOk() (*int32, bool)` + +GetServerRegistrationOk returns a tuple with the ServerRegistration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerRegistration + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) SetServerRegistration(v int32)` + +SetServerRegistration sets ServerRegistration field to given value. + +### HasServerRegistration + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) HasServerRegistration() bool` + +HasServerRegistration returns a boolean if a field has been set. + +### GetInventoryEndpoint + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetInventoryEndpoint() string` + +GetInventoryEndpoint returns the InventoryEndpoint field if non-nil, zero value otherwise. + +### GetInventoryEndpointOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetInventoryEndpointOk() (*string, bool)` + +GetInventoryEndpointOk returns a tuple with the InventoryEndpoint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInventoryEndpoint + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) SetInventoryEndpoint(v string)` + +SetInventoryEndpoint sets InventoryEndpoint field to given value. + +### HasInventoryEndpoint + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) HasInventoryEndpoint() bool` + +HasInventoryEndpoint returns a boolean if a field has been set. + +### GetInventoryJobTypeId + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetInventoryJobTypeId() string` + +GetInventoryJobTypeId returns the InventoryJobTypeId field if non-nil, zero value otherwise. + +### GetInventoryJobTypeIdOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetInventoryJobTypeIdOk() (*string, bool)` + +GetInventoryJobTypeIdOk returns a tuple with the InventoryJobTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInventoryJobTypeId + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) SetInventoryJobTypeId(v string)` + +SetInventoryJobTypeId sets InventoryJobTypeId field to given value. + +### HasInventoryJobTypeId + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) HasInventoryJobTypeId() bool` + +HasInventoryJobTypeId returns a boolean if a field has been set. + +### GetManagementJobTypeId + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetManagementJobTypeId() string` + +GetManagementJobTypeId returns the ManagementJobTypeId field if non-nil, zero value otherwise. + +### GetManagementJobTypeIdOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetManagementJobTypeIdOk() (*string, bool)` + +GetManagementJobTypeIdOk returns a tuple with the ManagementJobTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManagementJobTypeId + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) SetManagementJobTypeId(v string)` + +SetManagementJobTypeId sets ManagementJobTypeId field to given value. + +### HasManagementJobTypeId + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) HasManagementJobTypeId() bool` + +HasManagementJobTypeId returns a boolean if a field has been set. + +### GetDiscoveryJobTypeId + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetDiscoveryJobTypeId() string` + +GetDiscoveryJobTypeId returns the DiscoveryJobTypeId field if non-nil, zero value otherwise. + +### GetDiscoveryJobTypeIdOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetDiscoveryJobTypeIdOk() (*string, bool)` + +GetDiscoveryJobTypeIdOk returns a tuple with the DiscoveryJobTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiscoveryJobTypeId + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) SetDiscoveryJobTypeId(v string)` + +SetDiscoveryJobTypeId sets DiscoveryJobTypeId field to given value. + +### HasDiscoveryJobTypeId + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) HasDiscoveryJobTypeId() bool` + +HasDiscoveryJobTypeId returns a boolean if a field has been set. + +### GetEnrollmentJobTypeId + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetEnrollmentJobTypeId() string` + +GetEnrollmentJobTypeId returns the EnrollmentJobTypeId field if non-nil, zero value otherwise. + +### GetEnrollmentJobTypeIdOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetEnrollmentJobTypeIdOk() (*string, bool)` + +GetEnrollmentJobTypeIdOk returns a tuple with the EnrollmentJobTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnrollmentJobTypeId + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) SetEnrollmentJobTypeId(v string)` + +SetEnrollmentJobTypeId sets EnrollmentJobTypeId field to given value. + +### HasEnrollmentJobTypeId + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) HasEnrollmentJobTypeId() bool` + +HasEnrollmentJobTypeId returns a boolean if a field has been set. + +### GetEntryParameters + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetEntryParameters() []ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter` + +GetEntryParameters returns the EntryParameters field if non-nil, zero value otherwise. + +### GetEntryParametersOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) GetEntryParametersOk() (*[]ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter, bool)` + +GetEntryParametersOk returns a tuple with the EntryParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEntryParameters + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) SetEntryParameters(v []ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter)` + +SetEntryParameters sets EntryParameters field to given value. + +### HasEntryParameters + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeCreationRequest) HasEntryParameters() bool` + +HasEntryParameters returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse.md b/v1/docs/KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse.md new file mode 100644 index 0000000..22d2dfd --- /dev/null +++ b/v1/docs/KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse.md @@ -0,0 +1,654 @@ +# KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**ShortName** | Pointer to **string** | | [optional] +**Capability** | Pointer to **string** | | [optional] +**StoreType** | Pointer to **int32** | | [optional] +**ImportType** | Pointer to **int32** | | [optional] +**LocalStore** | Pointer to **bool** | | [optional] +**SupportedOperations** | Pointer to [**ModelsCertStoreTypeSupportedOperations**](ModelsCertStoreTypeSupportedOperations.md) | | [optional] +**Properties** | Pointer to [**[]ModelsCertificateStoreTypeProperty**](ModelsCertificateStoreTypeProperty.md) | | [optional] +**EntryParameters** | Pointer to [**[]ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter**](ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter.md) | | [optional] +**PasswordOptions** | Pointer to [**ModelsCertStoreTypePasswordOptions**](ModelsCertStoreTypePasswordOptions.md) | | [optional] +**StorePathType** | Pointer to **string** | | [optional] +**StorePathValue** | Pointer to **string** | | [optional] +**PrivateKeyAllowed** | Pointer to **string** | | [optional] +**JobProperties** | Pointer to **[]string** | | [optional] [readonly] +**ServerRequired** | Pointer to **bool** | | [optional] +**PowerShell** | Pointer to **bool** | | [optional] +**BlueprintAllowed** | Pointer to **bool** | | [optional] +**CustomAliasAllowed** | Pointer to **string** | | [optional] +**ServerRegistration** | Pointer to **int32** | | [optional] +**InventoryEndpoint** | Pointer to **string** | | [optional] +**InventoryJobType** | Pointer to **string** | | [optional] +**ManagementJobType** | Pointer to **string** | | [optional] +**DiscoveryJobType** | Pointer to **string** | | [optional] +**EnrollmentJobType** | Pointer to **string** | | [optional] + +## Methods + +### NewKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse + +`func NewKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse() *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse` + +NewKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse instantiates a new KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponseWithDefaults + +`func NewKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponseWithDefaults() *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse` + +NewKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponseWithDefaults instantiates a new KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetShortName + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetShortName() string` + +GetShortName returns the ShortName field if non-nil, zero value otherwise. + +### GetShortNameOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetShortNameOk() (*string, bool)` + +GetShortNameOk returns a tuple with the ShortName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShortName + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) SetShortName(v string)` + +SetShortName sets ShortName field to given value. + +### HasShortName + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) HasShortName() bool` + +HasShortName returns a boolean if a field has been set. + +### GetCapability + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetCapability() string` + +GetCapability returns the Capability field if non-nil, zero value otherwise. + +### GetCapabilityOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetCapabilityOk() (*string, bool)` + +GetCapabilityOk returns a tuple with the Capability field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCapability + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) SetCapability(v string)` + +SetCapability sets Capability field to given value. + +### HasCapability + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) HasCapability() bool` + +HasCapability returns a boolean if a field has been set. + +### GetStoreType + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetStoreType() int32` + +GetStoreType returns the StoreType field if non-nil, zero value otherwise. + +### GetStoreTypeOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetStoreTypeOk() (*int32, bool)` + +GetStoreTypeOk returns a tuple with the StoreType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStoreType + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) SetStoreType(v int32)` + +SetStoreType sets StoreType field to given value. + +### HasStoreType + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) HasStoreType() bool` + +HasStoreType returns a boolean if a field has been set. + +### GetImportType + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetImportType() int32` + +GetImportType returns the ImportType field if non-nil, zero value otherwise. + +### GetImportTypeOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetImportTypeOk() (*int32, bool)` + +GetImportTypeOk returns a tuple with the ImportType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImportType + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) SetImportType(v int32)` + +SetImportType sets ImportType field to given value. + +### HasImportType + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) HasImportType() bool` + +HasImportType returns a boolean if a field has been set. + +### GetLocalStore + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetLocalStore() bool` + +GetLocalStore returns the LocalStore field if non-nil, zero value otherwise. + +### GetLocalStoreOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetLocalStoreOk() (*bool, bool)` + +GetLocalStoreOk returns a tuple with the LocalStore field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocalStore + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) SetLocalStore(v bool)` + +SetLocalStore sets LocalStore field to given value. + +### HasLocalStore + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) HasLocalStore() bool` + +HasLocalStore returns a boolean if a field has been set. + +### GetSupportedOperations + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetSupportedOperations() ModelsCertStoreTypeSupportedOperations` + +GetSupportedOperations returns the SupportedOperations field if non-nil, zero value otherwise. + +### GetSupportedOperationsOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetSupportedOperationsOk() (*ModelsCertStoreTypeSupportedOperations, bool)` + +GetSupportedOperationsOk returns a tuple with the SupportedOperations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSupportedOperations + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) SetSupportedOperations(v ModelsCertStoreTypeSupportedOperations)` + +SetSupportedOperations sets SupportedOperations field to given value. + +### HasSupportedOperations + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) HasSupportedOperations() bool` + +HasSupportedOperations returns a boolean if a field has been set. + +### GetProperties + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetProperties() []ModelsCertificateStoreTypeProperty` + +GetProperties returns the Properties field if non-nil, zero value otherwise. + +### GetPropertiesOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetPropertiesOk() (*[]ModelsCertificateStoreTypeProperty, bool)` + +GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProperties + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) SetProperties(v []ModelsCertificateStoreTypeProperty)` + +SetProperties sets Properties field to given value. + +### HasProperties + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) HasProperties() bool` + +HasProperties returns a boolean if a field has been set. + +### GetEntryParameters + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetEntryParameters() []ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter` + +GetEntryParameters returns the EntryParameters field if non-nil, zero value otherwise. + +### GetEntryParametersOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetEntryParametersOk() (*[]ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter, bool)` + +GetEntryParametersOk returns a tuple with the EntryParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEntryParameters + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) SetEntryParameters(v []ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter)` + +SetEntryParameters sets EntryParameters field to given value. + +### HasEntryParameters + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) HasEntryParameters() bool` + +HasEntryParameters returns a boolean if a field has been set. + +### GetPasswordOptions + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetPasswordOptions() ModelsCertStoreTypePasswordOptions` + +GetPasswordOptions returns the PasswordOptions field if non-nil, zero value otherwise. + +### GetPasswordOptionsOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetPasswordOptionsOk() (*ModelsCertStoreTypePasswordOptions, bool)` + +GetPasswordOptionsOk returns a tuple with the PasswordOptions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPasswordOptions + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) SetPasswordOptions(v ModelsCertStoreTypePasswordOptions)` + +SetPasswordOptions sets PasswordOptions field to given value. + +### HasPasswordOptions + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) HasPasswordOptions() bool` + +HasPasswordOptions returns a boolean if a field has been set. + +### GetStorePathType + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetStorePathType() string` + +GetStorePathType returns the StorePathType field if non-nil, zero value otherwise. + +### GetStorePathTypeOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetStorePathTypeOk() (*string, bool)` + +GetStorePathTypeOk returns a tuple with the StorePathType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStorePathType + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) SetStorePathType(v string)` + +SetStorePathType sets StorePathType field to given value. + +### HasStorePathType + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) HasStorePathType() bool` + +HasStorePathType returns a boolean if a field has been set. + +### GetStorePathValue + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetStorePathValue() string` + +GetStorePathValue returns the StorePathValue field if non-nil, zero value otherwise. + +### GetStorePathValueOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetStorePathValueOk() (*string, bool)` + +GetStorePathValueOk returns a tuple with the StorePathValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStorePathValue + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) SetStorePathValue(v string)` + +SetStorePathValue sets StorePathValue field to given value. + +### HasStorePathValue + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) HasStorePathValue() bool` + +HasStorePathValue returns a boolean if a field has been set. + +### GetPrivateKeyAllowed + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetPrivateKeyAllowed() string` + +GetPrivateKeyAllowed returns the PrivateKeyAllowed field if non-nil, zero value otherwise. + +### GetPrivateKeyAllowedOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetPrivateKeyAllowedOk() (*string, bool)` + +GetPrivateKeyAllowedOk returns a tuple with the PrivateKeyAllowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivateKeyAllowed + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) SetPrivateKeyAllowed(v string)` + +SetPrivateKeyAllowed sets PrivateKeyAllowed field to given value. + +### HasPrivateKeyAllowed + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) HasPrivateKeyAllowed() bool` + +HasPrivateKeyAllowed returns a boolean if a field has been set. + +### GetJobProperties + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetJobProperties() []string` + +GetJobProperties returns the JobProperties field if non-nil, zero value otherwise. + +### GetJobPropertiesOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetJobPropertiesOk() (*[]string, bool)` + +GetJobPropertiesOk returns a tuple with the JobProperties field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobProperties + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) SetJobProperties(v []string)` + +SetJobProperties sets JobProperties field to given value. + +### HasJobProperties + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) HasJobProperties() bool` + +HasJobProperties returns a boolean if a field has been set. + +### GetServerRequired + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetServerRequired() bool` + +GetServerRequired returns the ServerRequired field if non-nil, zero value otherwise. + +### GetServerRequiredOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetServerRequiredOk() (*bool, bool)` + +GetServerRequiredOk returns a tuple with the ServerRequired field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerRequired + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) SetServerRequired(v bool)` + +SetServerRequired sets ServerRequired field to given value. + +### HasServerRequired + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) HasServerRequired() bool` + +HasServerRequired returns a boolean if a field has been set. + +### GetPowerShell + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetPowerShell() bool` + +GetPowerShell returns the PowerShell field if non-nil, zero value otherwise. + +### GetPowerShellOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetPowerShellOk() (*bool, bool)` + +GetPowerShellOk returns a tuple with the PowerShell field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPowerShell + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) SetPowerShell(v bool)` + +SetPowerShell sets PowerShell field to given value. + +### HasPowerShell + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) HasPowerShell() bool` + +HasPowerShell returns a boolean if a field has been set. + +### GetBlueprintAllowed + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetBlueprintAllowed() bool` + +GetBlueprintAllowed returns the BlueprintAllowed field if non-nil, zero value otherwise. + +### GetBlueprintAllowedOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetBlueprintAllowedOk() (*bool, bool)` + +GetBlueprintAllowedOk returns a tuple with the BlueprintAllowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlueprintAllowed + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) SetBlueprintAllowed(v bool)` + +SetBlueprintAllowed sets BlueprintAllowed field to given value. + +### HasBlueprintAllowed + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) HasBlueprintAllowed() bool` + +HasBlueprintAllowed returns a boolean if a field has been set. + +### GetCustomAliasAllowed + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetCustomAliasAllowed() string` + +GetCustomAliasAllowed returns the CustomAliasAllowed field if non-nil, zero value otherwise. + +### GetCustomAliasAllowedOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetCustomAliasAllowedOk() (*string, bool)` + +GetCustomAliasAllowedOk returns a tuple with the CustomAliasAllowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomAliasAllowed + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) SetCustomAliasAllowed(v string)` + +SetCustomAliasAllowed sets CustomAliasAllowed field to given value. + +### HasCustomAliasAllowed + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) HasCustomAliasAllowed() bool` + +HasCustomAliasAllowed returns a boolean if a field has been set. + +### GetServerRegistration + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetServerRegistration() int32` + +GetServerRegistration returns the ServerRegistration field if non-nil, zero value otherwise. + +### GetServerRegistrationOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetServerRegistrationOk() (*int32, bool)` + +GetServerRegistrationOk returns a tuple with the ServerRegistration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerRegistration + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) SetServerRegistration(v int32)` + +SetServerRegistration sets ServerRegistration field to given value. + +### HasServerRegistration + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) HasServerRegistration() bool` + +HasServerRegistration returns a boolean if a field has been set. + +### GetInventoryEndpoint + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetInventoryEndpoint() string` + +GetInventoryEndpoint returns the InventoryEndpoint field if non-nil, zero value otherwise. + +### GetInventoryEndpointOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetInventoryEndpointOk() (*string, bool)` + +GetInventoryEndpointOk returns a tuple with the InventoryEndpoint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInventoryEndpoint + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) SetInventoryEndpoint(v string)` + +SetInventoryEndpoint sets InventoryEndpoint field to given value. + +### HasInventoryEndpoint + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) HasInventoryEndpoint() bool` + +HasInventoryEndpoint returns a boolean if a field has been set. + +### GetInventoryJobType + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetInventoryJobType() string` + +GetInventoryJobType returns the InventoryJobType field if non-nil, zero value otherwise. + +### GetInventoryJobTypeOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetInventoryJobTypeOk() (*string, bool)` + +GetInventoryJobTypeOk returns a tuple with the InventoryJobType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInventoryJobType + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) SetInventoryJobType(v string)` + +SetInventoryJobType sets InventoryJobType field to given value. + +### HasInventoryJobType + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) HasInventoryJobType() bool` + +HasInventoryJobType returns a boolean if a field has been set. + +### GetManagementJobType + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetManagementJobType() string` + +GetManagementJobType returns the ManagementJobType field if non-nil, zero value otherwise. + +### GetManagementJobTypeOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetManagementJobTypeOk() (*string, bool)` + +GetManagementJobTypeOk returns a tuple with the ManagementJobType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManagementJobType + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) SetManagementJobType(v string)` + +SetManagementJobType sets ManagementJobType field to given value. + +### HasManagementJobType + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) HasManagementJobType() bool` + +HasManagementJobType returns a boolean if a field has been set. + +### GetDiscoveryJobType + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetDiscoveryJobType() string` + +GetDiscoveryJobType returns the DiscoveryJobType field if non-nil, zero value otherwise. + +### GetDiscoveryJobTypeOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetDiscoveryJobTypeOk() (*string, bool)` + +GetDiscoveryJobTypeOk returns a tuple with the DiscoveryJobType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiscoveryJobType + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) SetDiscoveryJobType(v string)` + +SetDiscoveryJobType sets DiscoveryJobType field to given value. + +### HasDiscoveryJobType + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) HasDiscoveryJobType() bool` + +HasDiscoveryJobType returns a boolean if a field has been set. + +### GetEnrollmentJobType + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetEnrollmentJobType() string` + +GetEnrollmentJobType returns the EnrollmentJobType field if non-nil, zero value otherwise. + +### GetEnrollmentJobTypeOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) GetEnrollmentJobTypeOk() (*string, bool)` + +GetEnrollmentJobTypeOk returns a tuple with the EnrollmentJobType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnrollmentJobType + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) SetEnrollmentJobType(v string)` + +SetEnrollmentJobType sets EnrollmentJobType field to given value. + +### HasEnrollmentJobType + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeResponse) HasEnrollmentJobType() bool` + +HasEnrollmentJobType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest.md b/v1/docs/KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest.md new file mode 100644 index 0000000..791b8fa --- /dev/null +++ b/v1/docs/KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest.md @@ -0,0 +1,431 @@ +# KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreType** | **int32** | | +**Name** | **string** | | +**ShortName** | **string** | | +**Capability** | Pointer to **string** | | [optional] +**LocalStore** | Pointer to **bool** | | [optional] +**SupportedOperations** | Pointer to [**ModelsCertStoreTypeSupportedOperations**](ModelsCertStoreTypeSupportedOperations.md) | | [optional] +**Properties** | Pointer to [**[]ModelsCertificateStoreTypeProperty**](ModelsCertificateStoreTypeProperty.md) | | [optional] +**PasswordOptions** | Pointer to [**ModelsCertStoreTypePasswordOptions**](ModelsCertStoreTypePasswordOptions.md) | | [optional] +**StorePathType** | Pointer to **string** | | [optional] +**StorePathValue** | Pointer to **string** | | [optional] +**PrivateKeyAllowed** | Pointer to **string** | | [optional] +**ServerRequired** | Pointer to **bool** | | [optional] +**PowerShell** | Pointer to **bool** | | [optional] +**BlueprintAllowed** | Pointer to **bool** | | [optional] +**CustomAliasAllowed** | Pointer to **string** | | [optional] +**EntryParameters** | Pointer to [**[]ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter**](ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter.md) | | [optional] + +## Methods + +### NewKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest + +`func NewKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest(storeType int32, name string, shortName string, ) *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest` + +NewKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest instantiates a new KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequestWithDefaults + +`func NewKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequestWithDefaults() *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest` + +NewKeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequestWithDefaults instantiates a new KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStoreType + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetStoreType() int32` + +GetStoreType returns the StoreType field if non-nil, zero value otherwise. + +### GetStoreTypeOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetStoreTypeOk() (*int32, bool)` + +GetStoreTypeOk returns a tuple with the StoreType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStoreType + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) SetStoreType(v int32)` + +SetStoreType sets StoreType field to given value. + + +### GetName + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetShortName + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetShortName() string` + +GetShortName returns the ShortName field if non-nil, zero value otherwise. + +### GetShortNameOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetShortNameOk() (*string, bool)` + +GetShortNameOk returns a tuple with the ShortName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShortName + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) SetShortName(v string)` + +SetShortName sets ShortName field to given value. + + +### GetCapability + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetCapability() string` + +GetCapability returns the Capability field if non-nil, zero value otherwise. + +### GetCapabilityOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetCapabilityOk() (*string, bool)` + +GetCapabilityOk returns a tuple with the Capability field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCapability + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) SetCapability(v string)` + +SetCapability sets Capability field to given value. + +### HasCapability + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) HasCapability() bool` + +HasCapability returns a boolean if a field has been set. + +### GetLocalStore + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetLocalStore() bool` + +GetLocalStore returns the LocalStore field if non-nil, zero value otherwise. + +### GetLocalStoreOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetLocalStoreOk() (*bool, bool)` + +GetLocalStoreOk returns a tuple with the LocalStore field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocalStore + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) SetLocalStore(v bool)` + +SetLocalStore sets LocalStore field to given value. + +### HasLocalStore + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) HasLocalStore() bool` + +HasLocalStore returns a boolean if a field has been set. + +### GetSupportedOperations + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetSupportedOperations() ModelsCertStoreTypeSupportedOperations` + +GetSupportedOperations returns the SupportedOperations field if non-nil, zero value otherwise. + +### GetSupportedOperationsOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetSupportedOperationsOk() (*ModelsCertStoreTypeSupportedOperations, bool)` + +GetSupportedOperationsOk returns a tuple with the SupportedOperations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSupportedOperations + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) SetSupportedOperations(v ModelsCertStoreTypeSupportedOperations)` + +SetSupportedOperations sets SupportedOperations field to given value. + +### HasSupportedOperations + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) HasSupportedOperations() bool` + +HasSupportedOperations returns a boolean if a field has been set. + +### GetProperties + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetProperties() []ModelsCertificateStoreTypeProperty` + +GetProperties returns the Properties field if non-nil, zero value otherwise. + +### GetPropertiesOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetPropertiesOk() (*[]ModelsCertificateStoreTypeProperty, bool)` + +GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProperties + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) SetProperties(v []ModelsCertificateStoreTypeProperty)` + +SetProperties sets Properties field to given value. + +### HasProperties + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) HasProperties() bool` + +HasProperties returns a boolean if a field has been set. + +### GetPasswordOptions + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetPasswordOptions() ModelsCertStoreTypePasswordOptions` + +GetPasswordOptions returns the PasswordOptions field if non-nil, zero value otherwise. + +### GetPasswordOptionsOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetPasswordOptionsOk() (*ModelsCertStoreTypePasswordOptions, bool)` + +GetPasswordOptionsOk returns a tuple with the PasswordOptions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPasswordOptions + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) SetPasswordOptions(v ModelsCertStoreTypePasswordOptions)` + +SetPasswordOptions sets PasswordOptions field to given value. + +### HasPasswordOptions + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) HasPasswordOptions() bool` + +HasPasswordOptions returns a boolean if a field has been set. + +### GetStorePathType + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetStorePathType() string` + +GetStorePathType returns the StorePathType field if non-nil, zero value otherwise. + +### GetStorePathTypeOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetStorePathTypeOk() (*string, bool)` + +GetStorePathTypeOk returns a tuple with the StorePathType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStorePathType + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) SetStorePathType(v string)` + +SetStorePathType sets StorePathType field to given value. + +### HasStorePathType + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) HasStorePathType() bool` + +HasStorePathType returns a boolean if a field has been set. + +### GetStorePathValue + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetStorePathValue() string` + +GetStorePathValue returns the StorePathValue field if non-nil, zero value otherwise. + +### GetStorePathValueOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetStorePathValueOk() (*string, bool)` + +GetStorePathValueOk returns a tuple with the StorePathValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStorePathValue + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) SetStorePathValue(v string)` + +SetStorePathValue sets StorePathValue field to given value. + +### HasStorePathValue + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) HasStorePathValue() bool` + +HasStorePathValue returns a boolean if a field has been set. + +### GetPrivateKeyAllowed + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetPrivateKeyAllowed() string` + +GetPrivateKeyAllowed returns the PrivateKeyAllowed field if non-nil, zero value otherwise. + +### GetPrivateKeyAllowedOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetPrivateKeyAllowedOk() (*string, bool)` + +GetPrivateKeyAllowedOk returns a tuple with the PrivateKeyAllowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivateKeyAllowed + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) SetPrivateKeyAllowed(v string)` + +SetPrivateKeyAllowed sets PrivateKeyAllowed field to given value. + +### HasPrivateKeyAllowed + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) HasPrivateKeyAllowed() bool` + +HasPrivateKeyAllowed returns a boolean if a field has been set. + +### GetServerRequired + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetServerRequired() bool` + +GetServerRequired returns the ServerRequired field if non-nil, zero value otherwise. + +### GetServerRequiredOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetServerRequiredOk() (*bool, bool)` + +GetServerRequiredOk returns a tuple with the ServerRequired field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerRequired + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) SetServerRequired(v bool)` + +SetServerRequired sets ServerRequired field to given value. + +### HasServerRequired + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) HasServerRequired() bool` + +HasServerRequired returns a boolean if a field has been set. + +### GetPowerShell + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetPowerShell() bool` + +GetPowerShell returns the PowerShell field if non-nil, zero value otherwise. + +### GetPowerShellOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetPowerShellOk() (*bool, bool)` + +GetPowerShellOk returns a tuple with the PowerShell field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPowerShell + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) SetPowerShell(v bool)` + +SetPowerShell sets PowerShell field to given value. + +### HasPowerShell + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) HasPowerShell() bool` + +HasPowerShell returns a boolean if a field has been set. + +### GetBlueprintAllowed + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetBlueprintAllowed() bool` + +GetBlueprintAllowed returns the BlueprintAllowed field if non-nil, zero value otherwise. + +### GetBlueprintAllowedOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetBlueprintAllowedOk() (*bool, bool)` + +GetBlueprintAllowedOk returns a tuple with the BlueprintAllowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlueprintAllowed + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) SetBlueprintAllowed(v bool)` + +SetBlueprintAllowed sets BlueprintAllowed field to given value. + +### HasBlueprintAllowed + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) HasBlueprintAllowed() bool` + +HasBlueprintAllowed returns a boolean if a field has been set. + +### GetCustomAliasAllowed + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetCustomAliasAllowed() string` + +GetCustomAliasAllowed returns the CustomAliasAllowed field if non-nil, zero value otherwise. + +### GetCustomAliasAllowedOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetCustomAliasAllowedOk() (*string, bool)` + +GetCustomAliasAllowedOk returns a tuple with the CustomAliasAllowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomAliasAllowed + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) SetCustomAliasAllowed(v string)` + +SetCustomAliasAllowed sets CustomAliasAllowed field to given value. + +### HasCustomAliasAllowed + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) HasCustomAliasAllowed() bool` + +HasCustomAliasAllowed returns a boolean if a field has been set. + +### GetEntryParameters + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetEntryParameters() []ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter` + +GetEntryParameters returns the EntryParameters field if non-nil, zero value otherwise. + +### GetEntryParametersOk + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) GetEntryParametersOk() (*[]ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter, bool)` + +GetEntryParametersOk returns a tuple with the EntryParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEntryParameters + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) SetEntryParameters(v []ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter)` + +SetEntryParameters sets EntryParameters field to given value. + +### HasEntryParameters + +`func (o *KeyfactorApiModelsCertificateStoresTypesCertificateStoreTypeUpdateRequest) HasEntryParameters() bool` + +HasEntryParameters returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsCertificatesAnalyzeCertificateRequest.md b/v1/docs/KeyfactorApiModelsCertificatesAnalyzeCertificateRequest.md new file mode 100644 index 0000000..057e5ee --- /dev/null +++ b/v1/docs/KeyfactorApiModelsCertificatesAnalyzeCertificateRequest.md @@ -0,0 +1,82 @@ +# KeyfactorApiModelsCertificatesAnalyzeCertificateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Certificate** | Pointer to **string** | | [optional] +**Password** | Pointer to **string** | | [optional] + +## Methods + +### NewKeyfactorApiModelsCertificatesAnalyzeCertificateRequest + +`func NewKeyfactorApiModelsCertificatesAnalyzeCertificateRequest() *KeyfactorApiModelsCertificatesAnalyzeCertificateRequest` + +NewKeyfactorApiModelsCertificatesAnalyzeCertificateRequest instantiates a new KeyfactorApiModelsCertificatesAnalyzeCertificateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsCertificatesAnalyzeCertificateRequestWithDefaults + +`func NewKeyfactorApiModelsCertificatesAnalyzeCertificateRequestWithDefaults() *KeyfactorApiModelsCertificatesAnalyzeCertificateRequest` + +NewKeyfactorApiModelsCertificatesAnalyzeCertificateRequestWithDefaults instantiates a new KeyfactorApiModelsCertificatesAnalyzeCertificateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCertificate + +`func (o *KeyfactorApiModelsCertificatesAnalyzeCertificateRequest) GetCertificate() string` + +GetCertificate returns the Certificate field if non-nil, zero value otherwise. + +### GetCertificateOk + +`func (o *KeyfactorApiModelsCertificatesAnalyzeCertificateRequest) GetCertificateOk() (*string, bool)` + +GetCertificateOk returns a tuple with the Certificate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificate + +`func (o *KeyfactorApiModelsCertificatesAnalyzeCertificateRequest) SetCertificate(v string)` + +SetCertificate sets Certificate field to given value. + +### HasCertificate + +`func (o *KeyfactorApiModelsCertificatesAnalyzeCertificateRequest) HasCertificate() bool` + +HasCertificate returns a boolean if a field has been set. + +### GetPassword + +`func (o *KeyfactorApiModelsCertificatesAnalyzeCertificateRequest) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *KeyfactorApiModelsCertificatesAnalyzeCertificateRequest) GetPasswordOk() (*string, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *KeyfactorApiModelsCertificatesAnalyzeCertificateRequest) SetPassword(v string)` + +SetPassword sets Password field to given value. + +### HasPassword + +`func (o *KeyfactorApiModelsCertificatesAnalyzeCertificateRequest) HasPassword() bool` + +HasPassword returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse.md b/v1/docs/KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse.md new file mode 100644 index 0000000..a823974 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse.md @@ -0,0 +1,160 @@ +# KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | Id of the account represented by the audit response | [optional] +**AccountName** | Pointer to **string** | Name of the account represented by the audit response | [optional] +**IdentityType** | Pointer to **string** | The type of account represented by the audit response (User or Group) | [optional] +**SID** | Pointer to **string** | The SID of the account represented by the audit reponse | [optional] +**Permissions** | Pointer to [**[]KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission**](KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission.md) | Permissions granted to the account represented by the audit reponse on the specified certifcate | [optional] [readonly] + +## Methods + +### NewKeyfactorApiModelsCertificatesCertificateIdentityAuditResponse + +`func NewKeyfactorApiModelsCertificatesCertificateIdentityAuditResponse() *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse` + +NewKeyfactorApiModelsCertificatesCertificateIdentityAuditResponse instantiates a new KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsCertificatesCertificateIdentityAuditResponseWithDefaults + +`func NewKeyfactorApiModelsCertificatesCertificateIdentityAuditResponseWithDefaults() *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse` + +NewKeyfactorApiModelsCertificatesCertificateIdentityAuditResponseWithDefaults instantiates a new KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetAccountName + +`func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse) GetAccountName() string` + +GetAccountName returns the AccountName field if non-nil, zero value otherwise. + +### GetAccountNameOk + +`func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse) GetAccountNameOk() (*string, bool)` + +GetAccountNameOk returns a tuple with the AccountName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountName + +`func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse) SetAccountName(v string)` + +SetAccountName sets AccountName field to given value. + +### HasAccountName + +`func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse) HasAccountName() bool` + +HasAccountName returns a boolean if a field has been set. + +### GetIdentityType + +`func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse) GetIdentityType() string` + +GetIdentityType returns the IdentityType field if non-nil, zero value otherwise. + +### GetIdentityTypeOk + +`func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse) GetIdentityTypeOk() (*string, bool)` + +GetIdentityTypeOk returns a tuple with the IdentityType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIdentityType + +`func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse) SetIdentityType(v string)` + +SetIdentityType sets IdentityType field to given value. + +### HasIdentityType + +`func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse) HasIdentityType() bool` + +HasIdentityType returns a boolean if a field has been set. + +### GetSID + +`func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse) GetSID() string` + +GetSID returns the SID field if non-nil, zero value otherwise. + +### GetSIDOk + +`func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse) GetSIDOk() (*string, bool)` + +GetSIDOk returns a tuple with the SID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSID + +`func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse) SetSID(v string)` + +SetSID sets SID field to given value. + +### HasSID + +`func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse) HasSID() bool` + +HasSID returns a boolean if a field has been set. + +### GetPermissions + +`func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse) GetPermissions() []KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission` + +GetPermissions returns the Permissions field if non-nil, zero value otherwise. + +### GetPermissionsOk + +`func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse) GetPermissionsOk() (*[]KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission, bool)` + +GetPermissionsOk returns a tuple with the Permissions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissions + +`func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse) SetPermissions(v []KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission)` + +SetPermissions sets Permissions field to given value. + +### HasPermissions + +`func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponse) HasPermissions() bool` + +HasPermissions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission.md b/v1/docs/KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission.md new file mode 100644 index 0000000..35de5e4 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission.md @@ -0,0 +1,82 @@ +# KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | The name of the permission | [optional] +**GrantedBy** | Pointer to **[]string** | A list of roles or collections that grant the given permission | [optional] + +## Methods + +### NewKeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission + +`func NewKeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission() *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission` + +NewKeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission instantiates a new KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermissionWithDefaults + +`func NewKeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermissionWithDefaults() *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission` + +NewKeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermissionWithDefaults instantiates a new KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetGrantedBy + +`func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission) GetGrantedBy() []string` + +GetGrantedBy returns the GrantedBy field if non-nil, zero value otherwise. + +### GetGrantedByOk + +`func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission) GetGrantedByOk() (*[]string, bool)` + +GetGrantedByOk returns a tuple with the GrantedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGrantedBy + +`func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission) SetGrantedBy(v []string)` + +SetGrantedBy sets GrantedBy field to given value. + +### HasGrantedBy + +`func (o *KeyfactorApiModelsCertificatesCertificateIdentityAuditResponseCertificatePermission) HasGrantedBy() bool` + +HasGrantedBy returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsCertificatesCertificateLocationsResponse.md b/v1/docs/KeyfactorApiModelsCertificatesCertificateLocationsResponse.md new file mode 100644 index 0000000..3902405 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsCertificatesCertificateLocationsResponse.md @@ -0,0 +1,56 @@ +# KeyfactorApiModelsCertificatesCertificateLocationsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Details** | Pointer to [**[]ModelsCertStoreLocationsCertificateLocationsGroup**](ModelsCertStoreLocationsCertificateLocationsGroup.md) | | [optional] + +## Methods + +### NewKeyfactorApiModelsCertificatesCertificateLocationsResponse + +`func NewKeyfactorApiModelsCertificatesCertificateLocationsResponse() *KeyfactorApiModelsCertificatesCertificateLocationsResponse` + +NewKeyfactorApiModelsCertificatesCertificateLocationsResponse instantiates a new KeyfactorApiModelsCertificatesCertificateLocationsResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsCertificatesCertificateLocationsResponseWithDefaults + +`func NewKeyfactorApiModelsCertificatesCertificateLocationsResponseWithDefaults() *KeyfactorApiModelsCertificatesCertificateLocationsResponse` + +NewKeyfactorApiModelsCertificatesCertificateLocationsResponseWithDefaults instantiates a new KeyfactorApiModelsCertificatesCertificateLocationsResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDetails + +`func (o *KeyfactorApiModelsCertificatesCertificateLocationsResponse) GetDetails() []ModelsCertStoreLocationsCertificateLocationsGroup` + +GetDetails returns the Details field if non-nil, zero value otherwise. + +### GetDetailsOk + +`func (o *KeyfactorApiModelsCertificatesCertificateLocationsResponse) GetDetailsOk() (*[]ModelsCertStoreLocationsCertificateLocationsGroup, bool)` + +GetDetailsOk returns a tuple with the Details field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDetails + +`func (o *KeyfactorApiModelsCertificatesCertificateLocationsResponse) SetDetails(v []ModelsCertStoreLocationsCertificateLocationsGroup)` + +SetDetails sets Details field to given value. + +### HasDetails + +`func (o *KeyfactorApiModelsCertificatesCertificateLocationsResponse) HasDetails() bool` + +HasDetails returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsCertificatesCertificateQueryRequest.md b/v1/docs/KeyfactorApiModelsCertificatesCertificateQueryRequest.md new file mode 100644 index 0000000..5d0930c --- /dev/null +++ b/v1/docs/KeyfactorApiModelsCertificatesCertificateQueryRequest.md @@ -0,0 +1,212 @@ +# KeyfactorApiModelsCertificatesCertificateQueryRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**QueryString** | Pointer to **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | [optional] +**PageReturned** | Pointer to **int32** | The current page within the result set to be returned | [optional] +**ReturnLimit** | Pointer to **int32** | Maximum number of records to be returned in a single call | [optional] +**SortField** | Pointer to **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | [optional] +**SortAscending** | Pointer to **int32** | Field sort direction [0=ascending, 1=descending] | [optional] +**IncludeRevoked** | Pointer to **bool** | Select 'true' to include revoked certificates in the results | [optional] +**IncludeExpired** | Pointer to **bool** | Select 'true' to include expired certificates in the results | [optional] + +## Methods + +### NewKeyfactorApiModelsCertificatesCertificateQueryRequest + +`func NewKeyfactorApiModelsCertificatesCertificateQueryRequest() *KeyfactorApiModelsCertificatesCertificateQueryRequest` + +NewKeyfactorApiModelsCertificatesCertificateQueryRequest instantiates a new KeyfactorApiModelsCertificatesCertificateQueryRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsCertificatesCertificateQueryRequestWithDefaults + +`func NewKeyfactorApiModelsCertificatesCertificateQueryRequestWithDefaults() *KeyfactorApiModelsCertificatesCertificateQueryRequest` + +NewKeyfactorApiModelsCertificatesCertificateQueryRequestWithDefaults instantiates a new KeyfactorApiModelsCertificatesCertificateQueryRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetQueryString + +`func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) GetQueryString() string` + +GetQueryString returns the QueryString field if non-nil, zero value otherwise. + +### GetQueryStringOk + +`func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) GetQueryStringOk() (*string, bool)` + +GetQueryStringOk returns a tuple with the QueryString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQueryString + +`func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) SetQueryString(v string)` + +SetQueryString sets QueryString field to given value. + +### HasQueryString + +`func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) HasQueryString() bool` + +HasQueryString returns a boolean if a field has been set. + +### GetPageReturned + +`func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) GetPageReturned() int32` + +GetPageReturned returns the PageReturned field if non-nil, zero value otherwise. + +### GetPageReturnedOk + +`func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) GetPageReturnedOk() (*int32, bool)` + +GetPageReturnedOk returns a tuple with the PageReturned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageReturned + +`func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) SetPageReturned(v int32)` + +SetPageReturned sets PageReturned field to given value. + +### HasPageReturned + +`func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) HasPageReturned() bool` + +HasPageReturned returns a boolean if a field has been set. + +### GetReturnLimit + +`func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) GetReturnLimit() int32` + +GetReturnLimit returns the ReturnLimit field if non-nil, zero value otherwise. + +### GetReturnLimitOk + +`func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) GetReturnLimitOk() (*int32, bool)` + +GetReturnLimitOk returns a tuple with the ReturnLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReturnLimit + +`func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) SetReturnLimit(v int32)` + +SetReturnLimit sets ReturnLimit field to given value. + +### HasReturnLimit + +`func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) HasReturnLimit() bool` + +HasReturnLimit returns a boolean if a field has been set. + +### GetSortField + +`func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) GetSortField() string` + +GetSortField returns the SortField field if non-nil, zero value otherwise. + +### GetSortFieldOk + +`func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) GetSortFieldOk() (*string, bool)` + +GetSortFieldOk returns a tuple with the SortField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortField + +`func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) SetSortField(v string)` + +SetSortField sets SortField field to given value. + +### HasSortField + +`func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) HasSortField() bool` + +HasSortField returns a boolean if a field has been set. + +### GetSortAscending + +`func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) GetSortAscending() int32` + +GetSortAscending returns the SortAscending field if non-nil, zero value otherwise. + +### GetSortAscendingOk + +`func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) GetSortAscendingOk() (*int32, bool)` + +GetSortAscendingOk returns a tuple with the SortAscending field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortAscending + +`func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) SetSortAscending(v int32)` + +SetSortAscending sets SortAscending field to given value. + +### HasSortAscending + +`func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) HasSortAscending() bool` + +HasSortAscending returns a boolean if a field has been set. + +### GetIncludeRevoked + +`func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) GetIncludeRevoked() bool` + +GetIncludeRevoked returns the IncludeRevoked field if non-nil, zero value otherwise. + +### GetIncludeRevokedOk + +`func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) GetIncludeRevokedOk() (*bool, bool)` + +GetIncludeRevokedOk returns a tuple with the IncludeRevoked field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIncludeRevoked + +`func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) SetIncludeRevoked(v bool)` + +SetIncludeRevoked sets IncludeRevoked field to given value. + +### HasIncludeRevoked + +`func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) HasIncludeRevoked() bool` + +HasIncludeRevoked returns a boolean if a field has been set. + +### GetIncludeExpired + +`func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) GetIncludeExpired() bool` + +GetIncludeExpired returns the IncludeExpired field if non-nil, zero value otherwise. + +### GetIncludeExpiredOk + +`func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) GetIncludeExpiredOk() (*bool, bool)` + +GetIncludeExpiredOk returns a tuple with the IncludeExpired field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIncludeExpired + +`func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) SetIncludeExpired(v bool)` + +SetIncludeExpired sets IncludeExpired field to given value. + +### HasIncludeExpired + +`func (o *KeyfactorApiModelsCertificatesCertificateQueryRequest) HasIncludeExpired() bool` + +HasIncludeExpired returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsConfigurationTenantConfigurationTenantRequest.md b/v1/docs/KeyfactorApiModelsConfigurationTenantConfigurationTenantRequest.md new file mode 100644 index 0000000..08f0daa --- /dev/null +++ b/v1/docs/KeyfactorApiModelsConfigurationTenantConfigurationTenantRequest.md @@ -0,0 +1,56 @@ +# KeyfactorApiModelsConfigurationTenantConfigurationTenantRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ConfigurationTenant** | Pointer to **string** | | [optional] + +## Methods + +### NewKeyfactorApiModelsConfigurationTenantConfigurationTenantRequest + +`func NewKeyfactorApiModelsConfigurationTenantConfigurationTenantRequest() *KeyfactorApiModelsConfigurationTenantConfigurationTenantRequest` + +NewKeyfactorApiModelsConfigurationTenantConfigurationTenantRequest instantiates a new KeyfactorApiModelsConfigurationTenantConfigurationTenantRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsConfigurationTenantConfigurationTenantRequestWithDefaults + +`func NewKeyfactorApiModelsConfigurationTenantConfigurationTenantRequestWithDefaults() *KeyfactorApiModelsConfigurationTenantConfigurationTenantRequest` + +NewKeyfactorApiModelsConfigurationTenantConfigurationTenantRequestWithDefaults instantiates a new KeyfactorApiModelsConfigurationTenantConfigurationTenantRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConfigurationTenant + +`func (o *KeyfactorApiModelsConfigurationTenantConfigurationTenantRequest) GetConfigurationTenant() string` + +GetConfigurationTenant returns the ConfigurationTenant field if non-nil, zero value otherwise. + +### GetConfigurationTenantOk + +`func (o *KeyfactorApiModelsConfigurationTenantConfigurationTenantRequest) GetConfigurationTenantOk() (*string, bool)` + +GetConfigurationTenantOk returns a tuple with the ConfigurationTenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigurationTenant + +`func (o *KeyfactorApiModelsConfigurationTenantConfigurationTenantRequest) SetConfigurationTenant(v string)` + +SetConfigurationTenant sets ConfigurationTenant field to given value. + +### HasConfigurationTenant + +`func (o *KeyfactorApiModelsConfigurationTenantConfigurationTenantRequest) HasConfigurationTenant() bool` + +HasConfigurationTenant returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsEnrollmentEnrollmentManagementRequest.md b/v1/docs/KeyfactorApiModelsEnrollmentEnrollmentManagementRequest.md new file mode 100644 index 0000000..4eeef69 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsEnrollmentEnrollmentManagementRequest.md @@ -0,0 +1,207 @@ +# KeyfactorApiModelsEnrollmentEnrollmentManagementRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Stores** | Pointer to [**[]KeyfactorApiModelsEnrollmentManagementStoreRequest**](KeyfactorApiModelsEnrollmentManagementStoreRequest.md) | The stores to add the certificate to. Values in this collection will take precedence over values in {Models.Enrollment.SpecificEnrollmentManagementRequest.StoreTypes}. | [optional] +**StoreIds** | Pointer to **[]string** | | [optional] +**StoreTypes** | Pointer to [**[]KeyfactorApiModelsEnrollmentManagementStoreTypeRequest**](KeyfactorApiModelsEnrollmentManagementStoreTypeRequest.md) | | [optional] +**CertificateId** | Pointer to **int32** | | [optional] +**RequestId** | Pointer to **int32** | | [optional] +**Password** | **string** | | +**JobTime** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewKeyfactorApiModelsEnrollmentEnrollmentManagementRequest + +`func NewKeyfactorApiModelsEnrollmentEnrollmentManagementRequest(password string, ) *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest` + +NewKeyfactorApiModelsEnrollmentEnrollmentManagementRequest instantiates a new KeyfactorApiModelsEnrollmentEnrollmentManagementRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsEnrollmentEnrollmentManagementRequestWithDefaults + +`func NewKeyfactorApiModelsEnrollmentEnrollmentManagementRequestWithDefaults() *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest` + +NewKeyfactorApiModelsEnrollmentEnrollmentManagementRequestWithDefaults instantiates a new KeyfactorApiModelsEnrollmentEnrollmentManagementRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStores + +`func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) GetStores() []KeyfactorApiModelsEnrollmentManagementStoreRequest` + +GetStores returns the Stores field if non-nil, zero value otherwise. + +### GetStoresOk + +`func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) GetStoresOk() (*[]KeyfactorApiModelsEnrollmentManagementStoreRequest, bool)` + +GetStoresOk returns a tuple with the Stores field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStores + +`func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) SetStores(v []KeyfactorApiModelsEnrollmentManagementStoreRequest)` + +SetStores sets Stores field to given value. + +### HasStores + +`func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) HasStores() bool` + +HasStores returns a boolean if a field has been set. + +### GetStoreIds + +`func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) GetStoreIds() []string` + +GetStoreIds returns the StoreIds field if non-nil, zero value otherwise. + +### GetStoreIdsOk + +`func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) GetStoreIdsOk() (*[]string, bool)` + +GetStoreIdsOk returns a tuple with the StoreIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStoreIds + +`func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) SetStoreIds(v []string)` + +SetStoreIds sets StoreIds field to given value. + +### HasStoreIds + +`func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) HasStoreIds() bool` + +HasStoreIds returns a boolean if a field has been set. + +### GetStoreTypes + +`func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) GetStoreTypes() []KeyfactorApiModelsEnrollmentManagementStoreTypeRequest` + +GetStoreTypes returns the StoreTypes field if non-nil, zero value otherwise. + +### GetStoreTypesOk + +`func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) GetStoreTypesOk() (*[]KeyfactorApiModelsEnrollmentManagementStoreTypeRequest, bool)` + +GetStoreTypesOk returns a tuple with the StoreTypes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStoreTypes + +`func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) SetStoreTypes(v []KeyfactorApiModelsEnrollmentManagementStoreTypeRequest)` + +SetStoreTypes sets StoreTypes field to given value. + +### HasStoreTypes + +`func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) HasStoreTypes() bool` + +HasStoreTypes returns a boolean if a field has been set. + +### GetCertificateId + +`func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) GetCertificateId() int32` + +GetCertificateId returns the CertificateId field if non-nil, zero value otherwise. + +### GetCertificateIdOk + +`func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) GetCertificateIdOk() (*int32, bool)` + +GetCertificateIdOk returns a tuple with the CertificateId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateId + +`func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) SetCertificateId(v int32)` + +SetCertificateId sets CertificateId field to given value. + +### HasCertificateId + +`func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) HasCertificateId() bool` + +HasCertificateId returns a boolean if a field has been set. + +### GetRequestId + +`func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) GetRequestId() int32` + +GetRequestId returns the RequestId field if non-nil, zero value otherwise. + +### GetRequestIdOk + +`func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) GetRequestIdOk() (*int32, bool)` + +GetRequestIdOk returns a tuple with the RequestId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestId + +`func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) SetRequestId(v int32)` + +SetRequestId sets RequestId field to given value. + +### HasRequestId + +`func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) HasRequestId() bool` + +HasRequestId returns a boolean if a field has been set. + +### GetPassword + +`func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) GetPasswordOk() (*string, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) SetPassword(v string)` + +SetPassword sets Password field to given value. + + +### GetJobTime + +`func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) GetJobTime() time.Time` + +GetJobTime returns the JobTime field if non-nil, zero value otherwise. + +### GetJobTimeOk + +`func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) GetJobTimeOk() (*time.Time, bool)` + +GetJobTimeOk returns a tuple with the JobTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobTime + +`func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) SetJobTime(v time.Time)` + +SetJobTime sets JobTime field to given value. + +### HasJobTime + +`func (o *KeyfactorApiModelsEnrollmentEnrollmentManagementRequest) HasJobTime() bool` + +HasJobTime returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsEnrollmentManagementStoreRequest.md b/v1/docs/KeyfactorApiModelsEnrollmentManagementStoreRequest.md new file mode 100644 index 0000000..5a145ca --- /dev/null +++ b/v1/docs/KeyfactorApiModelsEnrollmentManagementStoreRequest.md @@ -0,0 +1,134 @@ +# KeyfactorApiModelsEnrollmentManagementStoreRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreId** | Pointer to **string** | | [optional] +**Alias** | Pointer to **string** | | [optional] +**Overwrite** | Pointer to **bool** | | [optional] +**Properties** | Pointer to **map[string]map[string]interface{}** | | [optional] + +## Methods + +### NewKeyfactorApiModelsEnrollmentManagementStoreRequest + +`func NewKeyfactorApiModelsEnrollmentManagementStoreRequest() *KeyfactorApiModelsEnrollmentManagementStoreRequest` + +NewKeyfactorApiModelsEnrollmentManagementStoreRequest instantiates a new KeyfactorApiModelsEnrollmentManagementStoreRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsEnrollmentManagementStoreRequestWithDefaults + +`func NewKeyfactorApiModelsEnrollmentManagementStoreRequestWithDefaults() *KeyfactorApiModelsEnrollmentManagementStoreRequest` + +NewKeyfactorApiModelsEnrollmentManagementStoreRequestWithDefaults instantiates a new KeyfactorApiModelsEnrollmentManagementStoreRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStoreId + +`func (o *KeyfactorApiModelsEnrollmentManagementStoreRequest) GetStoreId() string` + +GetStoreId returns the StoreId field if non-nil, zero value otherwise. + +### GetStoreIdOk + +`func (o *KeyfactorApiModelsEnrollmentManagementStoreRequest) GetStoreIdOk() (*string, bool)` + +GetStoreIdOk returns a tuple with the StoreId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStoreId + +`func (o *KeyfactorApiModelsEnrollmentManagementStoreRequest) SetStoreId(v string)` + +SetStoreId sets StoreId field to given value. + +### HasStoreId + +`func (o *KeyfactorApiModelsEnrollmentManagementStoreRequest) HasStoreId() bool` + +HasStoreId returns a boolean if a field has been set. + +### GetAlias + +`func (o *KeyfactorApiModelsEnrollmentManagementStoreRequest) GetAlias() string` + +GetAlias returns the Alias field if non-nil, zero value otherwise. + +### GetAliasOk + +`func (o *KeyfactorApiModelsEnrollmentManagementStoreRequest) GetAliasOk() (*string, bool)` + +GetAliasOk returns a tuple with the Alias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlias + +`func (o *KeyfactorApiModelsEnrollmentManagementStoreRequest) SetAlias(v string)` + +SetAlias sets Alias field to given value. + +### HasAlias + +`func (o *KeyfactorApiModelsEnrollmentManagementStoreRequest) HasAlias() bool` + +HasAlias returns a boolean if a field has been set. + +### GetOverwrite + +`func (o *KeyfactorApiModelsEnrollmentManagementStoreRequest) GetOverwrite() bool` + +GetOverwrite returns the Overwrite field if non-nil, zero value otherwise. + +### GetOverwriteOk + +`func (o *KeyfactorApiModelsEnrollmentManagementStoreRequest) GetOverwriteOk() (*bool, bool)` + +GetOverwriteOk returns a tuple with the Overwrite field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOverwrite + +`func (o *KeyfactorApiModelsEnrollmentManagementStoreRequest) SetOverwrite(v bool)` + +SetOverwrite sets Overwrite field to given value. + +### HasOverwrite + +`func (o *KeyfactorApiModelsEnrollmentManagementStoreRequest) HasOverwrite() bool` + +HasOverwrite returns a boolean if a field has been set. + +### GetProperties + +`func (o *KeyfactorApiModelsEnrollmentManagementStoreRequest) GetProperties() map[string]map[string]interface{}` + +GetProperties returns the Properties field if non-nil, zero value otherwise. + +### GetPropertiesOk + +`func (o *KeyfactorApiModelsEnrollmentManagementStoreRequest) GetPropertiesOk() (*map[string]map[string]interface{}, bool)` + +GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProperties + +`func (o *KeyfactorApiModelsEnrollmentManagementStoreRequest) SetProperties(v map[string]map[string]interface{})` + +SetProperties sets Properties field to given value. + +### HasProperties + +`func (o *KeyfactorApiModelsEnrollmentManagementStoreRequest) HasProperties() bool` + +HasProperties returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsEnrollmentManagementStoreTypeRequest.md b/v1/docs/KeyfactorApiModelsEnrollmentManagementStoreTypeRequest.md new file mode 100644 index 0000000..cf69110 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsEnrollmentManagementStoreTypeRequest.md @@ -0,0 +1,134 @@ +# KeyfactorApiModelsEnrollmentManagementStoreTypeRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreTypeId** | Pointer to **int32** | | [optional] +**Alias** | Pointer to **string** | | [optional] +**Overwrite** | Pointer to **bool** | | [optional] +**Properties** | Pointer to **[]map[string]interface{}** | | [optional] + +## Methods + +### NewKeyfactorApiModelsEnrollmentManagementStoreTypeRequest + +`func NewKeyfactorApiModelsEnrollmentManagementStoreTypeRequest() *KeyfactorApiModelsEnrollmentManagementStoreTypeRequest` + +NewKeyfactorApiModelsEnrollmentManagementStoreTypeRequest instantiates a new KeyfactorApiModelsEnrollmentManagementStoreTypeRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsEnrollmentManagementStoreTypeRequestWithDefaults + +`func NewKeyfactorApiModelsEnrollmentManagementStoreTypeRequestWithDefaults() *KeyfactorApiModelsEnrollmentManagementStoreTypeRequest` + +NewKeyfactorApiModelsEnrollmentManagementStoreTypeRequestWithDefaults instantiates a new KeyfactorApiModelsEnrollmentManagementStoreTypeRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStoreTypeId + +`func (o *KeyfactorApiModelsEnrollmentManagementStoreTypeRequest) GetStoreTypeId() int32` + +GetStoreTypeId returns the StoreTypeId field if non-nil, zero value otherwise. + +### GetStoreTypeIdOk + +`func (o *KeyfactorApiModelsEnrollmentManagementStoreTypeRequest) GetStoreTypeIdOk() (*int32, bool)` + +GetStoreTypeIdOk returns a tuple with the StoreTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStoreTypeId + +`func (o *KeyfactorApiModelsEnrollmentManagementStoreTypeRequest) SetStoreTypeId(v int32)` + +SetStoreTypeId sets StoreTypeId field to given value. + +### HasStoreTypeId + +`func (o *KeyfactorApiModelsEnrollmentManagementStoreTypeRequest) HasStoreTypeId() bool` + +HasStoreTypeId returns a boolean if a field has been set. + +### GetAlias + +`func (o *KeyfactorApiModelsEnrollmentManagementStoreTypeRequest) GetAlias() string` + +GetAlias returns the Alias field if non-nil, zero value otherwise. + +### GetAliasOk + +`func (o *KeyfactorApiModelsEnrollmentManagementStoreTypeRequest) GetAliasOk() (*string, bool)` + +GetAliasOk returns a tuple with the Alias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlias + +`func (o *KeyfactorApiModelsEnrollmentManagementStoreTypeRequest) SetAlias(v string)` + +SetAlias sets Alias field to given value. + +### HasAlias + +`func (o *KeyfactorApiModelsEnrollmentManagementStoreTypeRequest) HasAlias() bool` + +HasAlias returns a boolean if a field has been set. + +### GetOverwrite + +`func (o *KeyfactorApiModelsEnrollmentManagementStoreTypeRequest) GetOverwrite() bool` + +GetOverwrite returns the Overwrite field if non-nil, zero value otherwise. + +### GetOverwriteOk + +`func (o *KeyfactorApiModelsEnrollmentManagementStoreTypeRequest) GetOverwriteOk() (*bool, bool)` + +GetOverwriteOk returns a tuple with the Overwrite field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOverwrite + +`func (o *KeyfactorApiModelsEnrollmentManagementStoreTypeRequest) SetOverwrite(v bool)` + +SetOverwrite sets Overwrite field to given value. + +### HasOverwrite + +`func (o *KeyfactorApiModelsEnrollmentManagementStoreTypeRequest) HasOverwrite() bool` + +HasOverwrite returns a boolean if a field has been set. + +### GetProperties + +`func (o *KeyfactorApiModelsEnrollmentManagementStoreTypeRequest) GetProperties() []map[string]interface{}` + +GetProperties returns the Properties field if non-nil, zero value otherwise. + +### GetPropertiesOk + +`func (o *KeyfactorApiModelsEnrollmentManagementStoreTypeRequest) GetPropertiesOk() (*[]map[string]interface{}, bool)` + +GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProperties + +`func (o *KeyfactorApiModelsEnrollmentManagementStoreTypeRequest) SetProperties(v []map[string]interface{})` + +SetProperties sets Properties field to given value. + +### HasProperties + +`func (o *KeyfactorApiModelsEnrollmentManagementStoreTypeRequest) HasProperties() bool` + +HasProperties returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsEventHandlerEventHandlerParameterRequest.md b/v1/docs/KeyfactorApiModelsEventHandlerEventHandlerParameterRequest.md new file mode 100644 index 0000000..5df8e1b --- /dev/null +++ b/v1/docs/KeyfactorApiModelsEventHandlerEventHandlerParameterRequest.md @@ -0,0 +1,93 @@ +# KeyfactorApiModelsEventHandlerEventHandlerParameterRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | | +**DefaultValue** | **string** | | +**ParameterType** | **string** | | + +## Methods + +### NewKeyfactorApiModelsEventHandlerEventHandlerParameterRequest + +`func NewKeyfactorApiModelsEventHandlerEventHandlerParameterRequest(key string, defaultValue string, parameterType string, ) *KeyfactorApiModelsEventHandlerEventHandlerParameterRequest` + +NewKeyfactorApiModelsEventHandlerEventHandlerParameterRequest instantiates a new KeyfactorApiModelsEventHandlerEventHandlerParameterRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsEventHandlerEventHandlerParameterRequestWithDefaults + +`func NewKeyfactorApiModelsEventHandlerEventHandlerParameterRequestWithDefaults() *KeyfactorApiModelsEventHandlerEventHandlerParameterRequest` + +NewKeyfactorApiModelsEventHandlerEventHandlerParameterRequestWithDefaults instantiates a new KeyfactorApiModelsEventHandlerEventHandlerParameterRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *KeyfactorApiModelsEventHandlerEventHandlerParameterRequest) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *KeyfactorApiModelsEventHandlerEventHandlerParameterRequest) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *KeyfactorApiModelsEventHandlerEventHandlerParameterRequest) SetKey(v string)` + +SetKey sets Key field to given value. + + +### GetDefaultValue + +`func (o *KeyfactorApiModelsEventHandlerEventHandlerParameterRequest) GetDefaultValue() string` + +GetDefaultValue returns the DefaultValue field if non-nil, zero value otherwise. + +### GetDefaultValueOk + +`func (o *KeyfactorApiModelsEventHandlerEventHandlerParameterRequest) GetDefaultValueOk() (*string, bool)` + +GetDefaultValueOk returns a tuple with the DefaultValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultValue + +`func (o *KeyfactorApiModelsEventHandlerEventHandlerParameterRequest) SetDefaultValue(v string)` + +SetDefaultValue sets DefaultValue field to given value. + + +### GetParameterType + +`func (o *KeyfactorApiModelsEventHandlerEventHandlerParameterRequest) GetParameterType() string` + +GetParameterType returns the ParameterType field if non-nil, zero value otherwise. + +### GetParameterTypeOk + +`func (o *KeyfactorApiModelsEventHandlerEventHandlerParameterRequest) GetParameterTypeOk() (*string, bool)` + +GetParameterTypeOk returns a tuple with the ParameterType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParameterType + +`func (o *KeyfactorApiModelsEventHandlerEventHandlerParameterRequest) SetParameterType(v string)` + +SetParameterType sets ParameterType field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsEventHandlerEventHandlerParameterResponse.md b/v1/docs/KeyfactorApiModelsEventHandlerEventHandlerParameterResponse.md new file mode 100644 index 0000000..b934a46 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsEventHandlerEventHandlerParameterResponse.md @@ -0,0 +1,134 @@ +# KeyfactorApiModelsEventHandlerEventHandlerParameterResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Key** | Pointer to **string** | | [optional] +**DefaultValue** | Pointer to **string** | | [optional] +**ParameterType** | Pointer to **string** | | [optional] + +## Methods + +### NewKeyfactorApiModelsEventHandlerEventHandlerParameterResponse + +`func NewKeyfactorApiModelsEventHandlerEventHandlerParameterResponse() *KeyfactorApiModelsEventHandlerEventHandlerParameterResponse` + +NewKeyfactorApiModelsEventHandlerEventHandlerParameterResponse instantiates a new KeyfactorApiModelsEventHandlerEventHandlerParameterResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsEventHandlerEventHandlerParameterResponseWithDefaults + +`func NewKeyfactorApiModelsEventHandlerEventHandlerParameterResponseWithDefaults() *KeyfactorApiModelsEventHandlerEventHandlerParameterResponse` + +NewKeyfactorApiModelsEventHandlerEventHandlerParameterResponseWithDefaults instantiates a new KeyfactorApiModelsEventHandlerEventHandlerParameterResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *KeyfactorApiModelsEventHandlerEventHandlerParameterResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *KeyfactorApiModelsEventHandlerEventHandlerParameterResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *KeyfactorApiModelsEventHandlerEventHandlerParameterResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *KeyfactorApiModelsEventHandlerEventHandlerParameterResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetKey + +`func (o *KeyfactorApiModelsEventHandlerEventHandlerParameterResponse) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *KeyfactorApiModelsEventHandlerEventHandlerParameterResponse) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *KeyfactorApiModelsEventHandlerEventHandlerParameterResponse) SetKey(v string)` + +SetKey sets Key field to given value. + +### HasKey + +`func (o *KeyfactorApiModelsEventHandlerEventHandlerParameterResponse) HasKey() bool` + +HasKey returns a boolean if a field has been set. + +### GetDefaultValue + +`func (o *KeyfactorApiModelsEventHandlerEventHandlerParameterResponse) GetDefaultValue() string` + +GetDefaultValue returns the DefaultValue field if non-nil, zero value otherwise. + +### GetDefaultValueOk + +`func (o *KeyfactorApiModelsEventHandlerEventHandlerParameterResponse) GetDefaultValueOk() (*string, bool)` + +GetDefaultValueOk returns a tuple with the DefaultValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultValue + +`func (o *KeyfactorApiModelsEventHandlerEventHandlerParameterResponse) SetDefaultValue(v string)` + +SetDefaultValue sets DefaultValue field to given value. + +### HasDefaultValue + +`func (o *KeyfactorApiModelsEventHandlerEventHandlerParameterResponse) HasDefaultValue() bool` + +HasDefaultValue returns a boolean if a field has been set. + +### GetParameterType + +`func (o *KeyfactorApiModelsEventHandlerEventHandlerParameterResponse) GetParameterType() string` + +GetParameterType returns the ParameterType field if non-nil, zero value otherwise. + +### GetParameterTypeOk + +`func (o *KeyfactorApiModelsEventHandlerEventHandlerParameterResponse) GetParameterTypeOk() (*string, bool)` + +GetParameterTypeOk returns a tuple with the ParameterType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParameterType + +`func (o *KeyfactorApiModelsEventHandlerEventHandlerParameterResponse) SetParameterType(v string)` + +SetParameterType sets ParameterType field to given value. + +### HasParameterType + +`func (o *KeyfactorApiModelsEventHandlerEventHandlerParameterResponse) HasParameterType() bool` + +HasParameterType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest.md b/v1/docs/KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest.md new file mode 100644 index 0000000..d6e0860 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest.md @@ -0,0 +1,72 @@ +# KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | +**UseHandler** | **bool** | | + +## Methods + +### NewKeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest + +`func NewKeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest(id int32, useHandler bool, ) *KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest` + +NewKeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest instantiates a new KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsEventHandlerRegisteredEventHandlerRequestWithDefaults + +`func NewKeyfactorApiModelsEventHandlerRegisteredEventHandlerRequestWithDefaults() *KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest` + +NewKeyfactorApiModelsEventHandlerRegisteredEventHandlerRequestWithDefaults instantiates a new KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUseHandler + +`func (o *KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest) GetUseHandler() bool` + +GetUseHandler returns the UseHandler field if non-nil, zero value otherwise. + +### GetUseHandlerOk + +`func (o *KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest) GetUseHandlerOk() (*bool, bool)` + +GetUseHandlerOk returns a tuple with the UseHandler field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseHandler + +`func (o *KeyfactorApiModelsEventHandlerRegisteredEventHandlerRequest) SetUseHandler(v bool)` + +SetUseHandler sets UseHandler field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse.md b/v1/docs/KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse.md new file mode 100644 index 0000000..9fe7cd6 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse.md @@ -0,0 +1,108 @@ +# KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**DisplayName** | Pointer to **string** | | [optional] +**UseHandler** | Pointer to **bool** | | [optional] + +## Methods + +### NewKeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse + +`func NewKeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse() *KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse` + +NewKeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse instantiates a new KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsEventHandlerRegisteredEventHandlerResponseWithDefaults + +`func NewKeyfactorApiModelsEventHandlerRegisteredEventHandlerResponseWithDefaults() *KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse` + +NewKeyfactorApiModelsEventHandlerRegisteredEventHandlerResponseWithDefaults instantiates a new KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetUseHandler + +`func (o *KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse) GetUseHandler() bool` + +GetUseHandler returns the UseHandler field if non-nil, zero value otherwise. + +### GetUseHandlerOk + +`func (o *KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse) GetUseHandlerOk() (*bool, bool)` + +GetUseHandlerOk returns a tuple with the UseHandler field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseHandler + +`func (o *KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse) SetUseHandler(v bool)` + +SetUseHandler sets UseHandler field to given value. + +### HasUseHandler + +`func (o *KeyfactorApiModelsEventHandlerRegisteredEventHandlerResponse) HasUseHandler() bool` + +HasUseHandler returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsLicenseLicenseResponse.md b/v1/docs/KeyfactorApiModelsLicenseLicenseResponse.md new file mode 100644 index 0000000..6f80e05 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsLicenseLicenseResponse.md @@ -0,0 +1,82 @@ +# KeyfactorApiModelsLicenseLicenseResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**KeyfactorVersion** | Pointer to **string** | | [optional] [readonly] +**LicenseData** | Pointer to [**KeyfactorApiModelsLicenseLicenseResponseLicense**](KeyfactorApiModelsLicenseLicenseResponseLicense.md) | | [optional] + +## Methods + +### NewKeyfactorApiModelsLicenseLicenseResponse + +`func NewKeyfactorApiModelsLicenseLicenseResponse() *KeyfactorApiModelsLicenseLicenseResponse` + +NewKeyfactorApiModelsLicenseLicenseResponse instantiates a new KeyfactorApiModelsLicenseLicenseResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsLicenseLicenseResponseWithDefaults + +`func NewKeyfactorApiModelsLicenseLicenseResponseWithDefaults() *KeyfactorApiModelsLicenseLicenseResponse` + +NewKeyfactorApiModelsLicenseLicenseResponseWithDefaults instantiates a new KeyfactorApiModelsLicenseLicenseResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKeyfactorVersion + +`func (o *KeyfactorApiModelsLicenseLicenseResponse) GetKeyfactorVersion() string` + +GetKeyfactorVersion returns the KeyfactorVersion field if non-nil, zero value otherwise. + +### GetKeyfactorVersionOk + +`func (o *KeyfactorApiModelsLicenseLicenseResponse) GetKeyfactorVersionOk() (*string, bool)` + +GetKeyfactorVersionOk returns a tuple with the KeyfactorVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyfactorVersion + +`func (o *KeyfactorApiModelsLicenseLicenseResponse) SetKeyfactorVersion(v string)` + +SetKeyfactorVersion sets KeyfactorVersion field to given value. + +### HasKeyfactorVersion + +`func (o *KeyfactorApiModelsLicenseLicenseResponse) HasKeyfactorVersion() bool` + +HasKeyfactorVersion returns a boolean if a field has been set. + +### GetLicenseData + +`func (o *KeyfactorApiModelsLicenseLicenseResponse) GetLicenseData() KeyfactorApiModelsLicenseLicenseResponseLicense` + +GetLicenseData returns the LicenseData field if non-nil, zero value otherwise. + +### GetLicenseDataOk + +`func (o *KeyfactorApiModelsLicenseLicenseResponse) GetLicenseDataOk() (*KeyfactorApiModelsLicenseLicenseResponseLicense, bool)` + +GetLicenseDataOk returns a tuple with the LicenseData field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLicenseData + +`func (o *KeyfactorApiModelsLicenseLicenseResponse) SetLicenseData(v KeyfactorApiModelsLicenseLicenseResponseLicense)` + +SetLicenseData sets LicenseData field to given value. + +### HasLicenseData + +`func (o *KeyfactorApiModelsLicenseLicenseResponse) HasLicenseData() bool` + +HasLicenseData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsLicenseLicenseResponseLicense.md b/v1/docs/KeyfactorApiModelsLicenseLicenseResponseLicense.md new file mode 100644 index 0000000..07d1c1f --- /dev/null +++ b/v1/docs/KeyfactorApiModelsLicenseLicenseResponseLicense.md @@ -0,0 +1,160 @@ +# KeyfactorApiModelsLicenseLicenseResponseLicense + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LicenseId** | Pointer to **string** | | [optional] +**Customer** | Pointer to [**KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer**](KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer.md) | | [optional] +**IssuedDate** | Pointer to **time.Time** | | [optional] +**ExpirationDate** | Pointer to **time.Time** | | [optional] +**LicensedProducts** | Pointer to [**[]KeyfactorApiModelsLicenseLicenseResponseLicensedProduct**](KeyfactorApiModelsLicenseLicenseResponseLicensedProduct.md) | | [optional] + +## Methods + +### NewKeyfactorApiModelsLicenseLicenseResponseLicense + +`func NewKeyfactorApiModelsLicenseLicenseResponseLicense() *KeyfactorApiModelsLicenseLicenseResponseLicense` + +NewKeyfactorApiModelsLicenseLicenseResponseLicense instantiates a new KeyfactorApiModelsLicenseLicenseResponseLicense object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsLicenseLicenseResponseLicenseWithDefaults + +`func NewKeyfactorApiModelsLicenseLicenseResponseLicenseWithDefaults() *KeyfactorApiModelsLicenseLicenseResponseLicense` + +NewKeyfactorApiModelsLicenseLicenseResponseLicenseWithDefaults instantiates a new KeyfactorApiModelsLicenseLicenseResponseLicense object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLicenseId + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicense) GetLicenseId() string` + +GetLicenseId returns the LicenseId field if non-nil, zero value otherwise. + +### GetLicenseIdOk + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicense) GetLicenseIdOk() (*string, bool)` + +GetLicenseIdOk returns a tuple with the LicenseId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLicenseId + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicense) SetLicenseId(v string)` + +SetLicenseId sets LicenseId field to given value. + +### HasLicenseId + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicense) HasLicenseId() bool` + +HasLicenseId returns a boolean if a field has been set. + +### GetCustomer + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicense) GetCustomer() KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer` + +GetCustomer returns the Customer field if non-nil, zero value otherwise. + +### GetCustomerOk + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicense) GetCustomerOk() (*KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer, bool)` + +GetCustomerOk returns a tuple with the Customer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomer + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicense) SetCustomer(v KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer)` + +SetCustomer sets Customer field to given value. + +### HasCustomer + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicense) HasCustomer() bool` + +HasCustomer returns a boolean if a field has been set. + +### GetIssuedDate + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicense) GetIssuedDate() time.Time` + +GetIssuedDate returns the IssuedDate field if non-nil, zero value otherwise. + +### GetIssuedDateOk + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicense) GetIssuedDateOk() (*time.Time, bool)` + +GetIssuedDateOk returns a tuple with the IssuedDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuedDate + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicense) SetIssuedDate(v time.Time)` + +SetIssuedDate sets IssuedDate field to given value. + +### HasIssuedDate + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicense) HasIssuedDate() bool` + +HasIssuedDate returns a boolean if a field has been set. + +### GetExpirationDate + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicense) GetExpirationDate() time.Time` + +GetExpirationDate returns the ExpirationDate field if non-nil, zero value otherwise. + +### GetExpirationDateOk + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicense) GetExpirationDateOk() (*time.Time, bool)` + +GetExpirationDateOk returns a tuple with the ExpirationDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpirationDate + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicense) SetExpirationDate(v time.Time)` + +SetExpirationDate sets ExpirationDate field to given value. + +### HasExpirationDate + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicense) HasExpirationDate() bool` + +HasExpirationDate returns a boolean if a field has been set. + +### GetLicensedProducts + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicense) GetLicensedProducts() []KeyfactorApiModelsLicenseLicenseResponseLicensedProduct` + +GetLicensedProducts returns the LicensedProducts field if non-nil, zero value otherwise. + +### GetLicensedProductsOk + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicense) GetLicensedProductsOk() (*[]KeyfactorApiModelsLicenseLicenseResponseLicensedProduct, bool)` + +GetLicensedProductsOk returns a tuple with the LicensedProducts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLicensedProducts + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicense) SetLicensedProducts(v []KeyfactorApiModelsLicenseLicenseResponseLicensedProduct)` + +SetLicensedProducts sets LicensedProducts field to given value. + +### HasLicensedProducts + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicense) HasLicensedProducts() bool` + +HasLicensedProducts returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer.md b/v1/docs/KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer.md new file mode 100644 index 0000000..e1ab5ad --- /dev/null +++ b/v1/docs/KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer.md @@ -0,0 +1,82 @@ +# KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] + +## Methods + +### NewKeyfactorApiModelsLicenseLicenseResponseLicensedCustomer + +`func NewKeyfactorApiModelsLicenseLicenseResponseLicensedCustomer() *KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer` + +NewKeyfactorApiModelsLicenseLicenseResponseLicensedCustomer instantiates a new KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsLicenseLicenseResponseLicensedCustomerWithDefaults + +`func NewKeyfactorApiModelsLicenseLicenseResponseLicensedCustomerWithDefaults() *KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer` + +NewKeyfactorApiModelsLicenseLicenseResponseLicensedCustomerWithDefaults instantiates a new KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetId + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedCustomer) HasId() bool` + +HasId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsLicenseLicenseResponseLicensedFeature.md b/v1/docs/KeyfactorApiModelsLicenseLicenseResponseLicensedFeature.md new file mode 100644 index 0000000..a07a0bf --- /dev/null +++ b/v1/docs/KeyfactorApiModelsLicenseLicenseResponseLicensedFeature.md @@ -0,0 +1,160 @@ +# KeyfactorApiModelsLicenseLicenseResponseLicensedFeature + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FeatureID** | Pointer to **string** | | [optional] +**DisplayName** | Pointer to **string** | | [optional] +**Enabled** | Pointer to **bool** | | [optional] +**Quantity** | Pointer to **int32** | | [optional] +**ExpirationDate** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewKeyfactorApiModelsLicenseLicenseResponseLicensedFeature + +`func NewKeyfactorApiModelsLicenseLicenseResponseLicensedFeature() *KeyfactorApiModelsLicenseLicenseResponseLicensedFeature` + +NewKeyfactorApiModelsLicenseLicenseResponseLicensedFeature instantiates a new KeyfactorApiModelsLicenseLicenseResponseLicensedFeature object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsLicenseLicenseResponseLicensedFeatureWithDefaults + +`func NewKeyfactorApiModelsLicenseLicenseResponseLicensedFeatureWithDefaults() *KeyfactorApiModelsLicenseLicenseResponseLicensedFeature` + +NewKeyfactorApiModelsLicenseLicenseResponseLicensedFeatureWithDefaults instantiates a new KeyfactorApiModelsLicenseLicenseResponseLicensedFeature object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFeatureID + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedFeature) GetFeatureID() string` + +GetFeatureID returns the FeatureID field if non-nil, zero value otherwise. + +### GetFeatureIDOk + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedFeature) GetFeatureIDOk() (*string, bool)` + +GetFeatureIDOk returns a tuple with the FeatureID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFeatureID + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedFeature) SetFeatureID(v string)` + +SetFeatureID sets FeatureID field to given value. + +### HasFeatureID + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedFeature) HasFeatureID() bool` + +HasFeatureID returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedFeature) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedFeature) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedFeature) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedFeature) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetEnabled + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedFeature) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedFeature) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedFeature) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedFeature) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetQuantity + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedFeature) GetQuantity() int32` + +GetQuantity returns the Quantity field if non-nil, zero value otherwise. + +### GetQuantityOk + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedFeature) GetQuantityOk() (*int32, bool)` + +GetQuantityOk returns a tuple with the Quantity field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuantity + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedFeature) SetQuantity(v int32)` + +SetQuantity sets Quantity field to given value. + +### HasQuantity + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedFeature) HasQuantity() bool` + +HasQuantity returns a boolean if a field has been set. + +### GetExpirationDate + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedFeature) GetExpirationDate() time.Time` + +GetExpirationDate returns the ExpirationDate field if non-nil, zero value otherwise. + +### GetExpirationDateOk + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedFeature) GetExpirationDateOk() (*time.Time, bool)` + +GetExpirationDateOk returns a tuple with the ExpirationDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpirationDate + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedFeature) SetExpirationDate(v time.Time)` + +SetExpirationDate sets ExpirationDate field to given value. + +### HasExpirationDate + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedFeature) HasExpirationDate() bool` + +HasExpirationDate returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsLicenseLicenseResponseLicensedProduct.md b/v1/docs/KeyfactorApiModelsLicenseLicenseResponseLicensedProduct.md new file mode 100644 index 0000000..3981e9f --- /dev/null +++ b/v1/docs/KeyfactorApiModelsLicenseLicenseResponseLicensedProduct.md @@ -0,0 +1,160 @@ +# KeyfactorApiModelsLicenseLicenseResponseLicensedProduct + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ProductId** | Pointer to **string** | | [optional] +**DisplayName** | Pointer to **string** | | [optional] +**MajorRev** | Pointer to **string** | | [optional] +**MinorRev** | Pointer to **string** | | [optional] +**LicensedFeatures** | Pointer to [**[]KeyfactorApiModelsLicenseLicenseResponseLicensedFeature**](KeyfactorApiModelsLicenseLicenseResponseLicensedFeature.md) | | [optional] + +## Methods + +### NewKeyfactorApiModelsLicenseLicenseResponseLicensedProduct + +`func NewKeyfactorApiModelsLicenseLicenseResponseLicensedProduct() *KeyfactorApiModelsLicenseLicenseResponseLicensedProduct` + +NewKeyfactorApiModelsLicenseLicenseResponseLicensedProduct instantiates a new KeyfactorApiModelsLicenseLicenseResponseLicensedProduct object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsLicenseLicenseResponseLicensedProductWithDefaults + +`func NewKeyfactorApiModelsLicenseLicenseResponseLicensedProductWithDefaults() *KeyfactorApiModelsLicenseLicenseResponseLicensedProduct` + +NewKeyfactorApiModelsLicenseLicenseResponseLicensedProductWithDefaults instantiates a new KeyfactorApiModelsLicenseLicenseResponseLicensedProduct object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetProductId + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedProduct) GetProductId() string` + +GetProductId returns the ProductId field if non-nil, zero value otherwise. + +### GetProductIdOk + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedProduct) GetProductIdOk() (*string, bool)` + +GetProductIdOk returns a tuple with the ProductId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProductId + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedProduct) SetProductId(v string)` + +SetProductId sets ProductId field to given value. + +### HasProductId + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedProduct) HasProductId() bool` + +HasProductId returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedProduct) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedProduct) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedProduct) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedProduct) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetMajorRev + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedProduct) GetMajorRev() string` + +GetMajorRev returns the MajorRev field if non-nil, zero value otherwise. + +### GetMajorRevOk + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedProduct) GetMajorRevOk() (*string, bool)` + +GetMajorRevOk returns a tuple with the MajorRev field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMajorRev + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedProduct) SetMajorRev(v string)` + +SetMajorRev sets MajorRev field to given value. + +### HasMajorRev + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedProduct) HasMajorRev() bool` + +HasMajorRev returns a boolean if a field has been set. + +### GetMinorRev + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedProduct) GetMinorRev() string` + +GetMinorRev returns the MinorRev field if non-nil, zero value otherwise. + +### GetMinorRevOk + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedProduct) GetMinorRevOk() (*string, bool)` + +GetMinorRevOk returns a tuple with the MinorRev field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMinorRev + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedProduct) SetMinorRev(v string)` + +SetMinorRev sets MinorRev field to given value. + +### HasMinorRev + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedProduct) HasMinorRev() bool` + +HasMinorRev returns a boolean if a field has been set. + +### GetLicensedFeatures + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedProduct) GetLicensedFeatures() []KeyfactorApiModelsLicenseLicenseResponseLicensedFeature` + +GetLicensedFeatures returns the LicensedFeatures field if non-nil, zero value otherwise. + +### GetLicensedFeaturesOk + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedProduct) GetLicensedFeaturesOk() (*[]KeyfactorApiModelsLicenseLicenseResponseLicensedFeature, bool)` + +GetLicensedFeaturesOk returns a tuple with the LicensedFeatures field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLicensedFeatures + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedProduct) SetLicensedFeatures(v []KeyfactorApiModelsLicenseLicenseResponseLicensedFeature)` + +SetLicensedFeatures sets LicensedFeatures field to given value. + +### HasLicensedFeatures + +`func (o *KeyfactorApiModelsLicenseLicenseResponseLicensedProduct) HasLicensedFeatures() bool` + +HasLicensedFeatures returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel.md b/v1/docs/KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel.md new file mode 100644 index 0000000..4183d60 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel.md @@ -0,0 +1,186 @@ +# KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Enabled** | Pointer to **bool** | | [optional] +**Interval** | Pointer to **int32** | | [optional] +**UseMetadata** | Pointer to **bool** | | [optional] +**MetadataField** | Pointer to **string** | | [optional] +**MetadataValue** | Pointer to **string** | | [optional] + +## Methods + +### NewKeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel + +`func NewKeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel() *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel` + +NewKeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel instantiates a new KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModelWithDefaults + +`func NewKeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModelWithDefaults() *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel` + +NewKeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModelWithDefaults instantiates a new KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetEnabled + +`func (o *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetInterval + +`func (o *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) GetInterval() int32` + +GetInterval returns the Interval field if non-nil, zero value otherwise. + +### GetIntervalOk + +`func (o *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) GetIntervalOk() (*int32, bool)` + +GetIntervalOk returns a tuple with the Interval field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterval + +`func (o *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) SetInterval(v int32)` + +SetInterval sets Interval field to given value. + +### HasInterval + +`func (o *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) HasInterval() bool` + +HasInterval returns a boolean if a field has been set. + +### GetUseMetadata + +`func (o *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) GetUseMetadata() bool` + +GetUseMetadata returns the UseMetadata field if non-nil, zero value otherwise. + +### GetUseMetadataOk + +`func (o *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) GetUseMetadataOk() (*bool, bool)` + +GetUseMetadataOk returns a tuple with the UseMetadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseMetadata + +`func (o *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) SetUseMetadata(v bool)` + +SetUseMetadata sets UseMetadata field to given value. + +### HasUseMetadata + +`func (o *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) HasUseMetadata() bool` + +HasUseMetadata returns a boolean if a field has been set. + +### GetMetadataField + +`func (o *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) GetMetadataField() string` + +GetMetadataField returns the MetadataField field if non-nil, zero value otherwise. + +### GetMetadataFieldOk + +`func (o *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) GetMetadataFieldOk() (*string, bool)` + +GetMetadataFieldOk returns a tuple with the MetadataField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadataField + +`func (o *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) SetMetadataField(v string)` + +SetMetadataField sets MetadataField field to given value. + +### HasMetadataField + +`func (o *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) HasMetadataField() bool` + +HasMetadataField returns a boolean if a field has been set. + +### GetMetadataValue + +`func (o *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) GetMetadataValue() string` + +GetMetadataValue returns the MetadataValue field if non-nil, zero value otherwise. + +### GetMetadataValueOk + +`func (o *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) GetMetadataValueOk() (*string, bool)` + +GetMetadataValueOk returns a tuple with the MetadataValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadataValue + +`func (o *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) SetMetadataValue(v string)` + +SetMetadataValue sets MetadataValue field to given value. + +### HasMetadataValue + +`func (o *KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel) HasMetadataValue() bool` + +HasMetadataValue returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest.md b/v1/docs/KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest.md new file mode 100644 index 0000000..513212a --- /dev/null +++ b/v1/docs/KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest.md @@ -0,0 +1,275 @@ +# KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Description** | **string** | | +**DataType** | **int32** | | +**Hint** | Pointer to **string** | | [optional] +**Validation** | Pointer to **string** | | [optional] +**Enrollment** | Pointer to **int32** | | [optional] +**Message** | Pointer to **string** | | [optional] +**Options** | Pointer to **string** | | [optional] +**DefaultValue** | Pointer to **string** | | [optional] +**DisplayOrder** | Pointer to **int32** | | [optional] + +## Methods + +### NewKeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest + +`func NewKeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest(name string, description string, dataType int32, ) *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest` + +NewKeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest instantiates a new KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsMetadataFieldMetadataFieldCreateRequestWithDefaults + +`func NewKeyfactorApiModelsMetadataFieldMetadataFieldCreateRequestWithDefaults() *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest` + +NewKeyfactorApiModelsMetadataFieldMetadataFieldCreateRequestWithDefaults instantiates a new KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + + +### GetDataType + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) GetDataType() int32` + +GetDataType returns the DataType field if non-nil, zero value otherwise. + +### GetDataTypeOk + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) GetDataTypeOk() (*int32, bool)` + +GetDataTypeOk returns a tuple with the DataType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataType + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) SetDataType(v int32)` + +SetDataType sets DataType field to given value. + + +### GetHint + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) GetHint() string` + +GetHint returns the Hint field if non-nil, zero value otherwise. + +### GetHintOk + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) GetHintOk() (*string, bool)` + +GetHintOk returns a tuple with the Hint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHint + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) SetHint(v string)` + +SetHint sets Hint field to given value. + +### HasHint + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) HasHint() bool` + +HasHint returns a boolean if a field has been set. + +### GetValidation + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) GetValidation() string` + +GetValidation returns the Validation field if non-nil, zero value otherwise. + +### GetValidationOk + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) GetValidationOk() (*string, bool)` + +GetValidationOk returns a tuple with the Validation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValidation + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) SetValidation(v string)` + +SetValidation sets Validation field to given value. + +### HasValidation + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) HasValidation() bool` + +HasValidation returns a boolean if a field has been set. + +### GetEnrollment + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) GetEnrollment() int32` + +GetEnrollment returns the Enrollment field if non-nil, zero value otherwise. + +### GetEnrollmentOk + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) GetEnrollmentOk() (*int32, bool)` + +GetEnrollmentOk returns a tuple with the Enrollment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnrollment + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) SetEnrollment(v int32)` + +SetEnrollment sets Enrollment field to given value. + +### HasEnrollment + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) HasEnrollment() bool` + +HasEnrollment returns a boolean if a field has been set. + +### GetMessage + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### GetOptions + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) GetOptions() string` + +GetOptions returns the Options field if non-nil, zero value otherwise. + +### GetOptionsOk + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) GetOptionsOk() (*string, bool)` + +GetOptionsOk returns a tuple with the Options field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOptions + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) SetOptions(v string)` + +SetOptions sets Options field to given value. + +### HasOptions + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) HasOptions() bool` + +HasOptions returns a boolean if a field has been set. + +### GetDefaultValue + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) GetDefaultValue() string` + +GetDefaultValue returns the DefaultValue field if non-nil, zero value otherwise. + +### GetDefaultValueOk + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) GetDefaultValueOk() (*string, bool)` + +GetDefaultValueOk returns a tuple with the DefaultValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultValue + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) SetDefaultValue(v string)` + +SetDefaultValue sets DefaultValue field to given value. + +### HasDefaultValue + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) HasDefaultValue() bool` + +HasDefaultValue returns a boolean if a field has been set. + +### GetDisplayOrder + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) GetDisplayOrder() int32` + +GetDisplayOrder returns the DisplayOrder field if non-nil, zero value otherwise. + +### GetDisplayOrderOk + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) GetDisplayOrderOk() (*int32, bool)` + +GetDisplayOrderOk returns a tuple with the DisplayOrder field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayOrder + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) SetDisplayOrder(v int32)` + +SetDisplayOrder sets DisplayOrder field to given value. + +### HasDisplayOrder + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest) HasDisplayOrder() bool` + +HasDisplayOrder returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsMetadataFieldMetadataFieldResponse.md b/v1/docs/KeyfactorApiModelsMetadataFieldMetadataFieldResponse.md new file mode 100644 index 0000000..8c710b0 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsMetadataFieldMetadataFieldResponse.md @@ -0,0 +1,316 @@ +# KeyfactorApiModelsMetadataFieldMetadataFieldResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**DataType** | Pointer to **int32** | | [optional] +**Hint** | Pointer to **string** | | [optional] +**Validation** | Pointer to **string** | | [optional] +**Enrollment** | Pointer to **int32** | | [optional] +**Message** | Pointer to **string** | | [optional] +**Options** | Pointer to **string** | | [optional] +**DefaultValue** | Pointer to **string** | | [optional] +**DisplayOrder** | Pointer to **int32** | | [optional] + +## Methods + +### NewKeyfactorApiModelsMetadataFieldMetadataFieldResponse + +`func NewKeyfactorApiModelsMetadataFieldMetadataFieldResponse() *KeyfactorApiModelsMetadataFieldMetadataFieldResponse` + +NewKeyfactorApiModelsMetadataFieldMetadataFieldResponse instantiates a new KeyfactorApiModelsMetadataFieldMetadataFieldResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsMetadataFieldMetadataFieldResponseWithDefaults + +`func NewKeyfactorApiModelsMetadataFieldMetadataFieldResponseWithDefaults() *KeyfactorApiModelsMetadataFieldMetadataFieldResponse` + +NewKeyfactorApiModelsMetadataFieldMetadataFieldResponseWithDefaults instantiates a new KeyfactorApiModelsMetadataFieldMetadataFieldResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDescription + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetDataType + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) GetDataType() int32` + +GetDataType returns the DataType field if non-nil, zero value otherwise. + +### GetDataTypeOk + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) GetDataTypeOk() (*int32, bool)` + +GetDataTypeOk returns a tuple with the DataType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataType + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) SetDataType(v int32)` + +SetDataType sets DataType field to given value. + +### HasDataType + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) HasDataType() bool` + +HasDataType returns a boolean if a field has been set. + +### GetHint + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) GetHint() string` + +GetHint returns the Hint field if non-nil, zero value otherwise. + +### GetHintOk + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) GetHintOk() (*string, bool)` + +GetHintOk returns a tuple with the Hint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHint + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) SetHint(v string)` + +SetHint sets Hint field to given value. + +### HasHint + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) HasHint() bool` + +HasHint returns a boolean if a field has been set. + +### GetValidation + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) GetValidation() string` + +GetValidation returns the Validation field if non-nil, zero value otherwise. + +### GetValidationOk + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) GetValidationOk() (*string, bool)` + +GetValidationOk returns a tuple with the Validation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValidation + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) SetValidation(v string)` + +SetValidation sets Validation field to given value. + +### HasValidation + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) HasValidation() bool` + +HasValidation returns a boolean if a field has been set. + +### GetEnrollment + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) GetEnrollment() int32` + +GetEnrollment returns the Enrollment field if non-nil, zero value otherwise. + +### GetEnrollmentOk + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) GetEnrollmentOk() (*int32, bool)` + +GetEnrollmentOk returns a tuple with the Enrollment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnrollment + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) SetEnrollment(v int32)` + +SetEnrollment sets Enrollment field to given value. + +### HasEnrollment + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) HasEnrollment() bool` + +HasEnrollment returns a boolean if a field has been set. + +### GetMessage + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### GetOptions + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) GetOptions() string` + +GetOptions returns the Options field if non-nil, zero value otherwise. + +### GetOptionsOk + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) GetOptionsOk() (*string, bool)` + +GetOptionsOk returns a tuple with the Options field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOptions + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) SetOptions(v string)` + +SetOptions sets Options field to given value. + +### HasOptions + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) HasOptions() bool` + +HasOptions returns a boolean if a field has been set. + +### GetDefaultValue + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) GetDefaultValue() string` + +GetDefaultValue returns the DefaultValue field if non-nil, zero value otherwise. + +### GetDefaultValueOk + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) GetDefaultValueOk() (*string, bool)` + +GetDefaultValueOk returns a tuple with the DefaultValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultValue + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) SetDefaultValue(v string)` + +SetDefaultValue sets DefaultValue field to given value. + +### HasDefaultValue + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) HasDefaultValue() bool` + +HasDefaultValue returns a boolean if a field has been set. + +### GetDisplayOrder + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) GetDisplayOrder() int32` + +GetDisplayOrder returns the DisplayOrder field if non-nil, zero value otherwise. + +### GetDisplayOrderOk + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) GetDisplayOrderOk() (*int32, bool)` + +GetDisplayOrderOk returns a tuple with the DisplayOrder field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayOrder + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) SetDisplayOrder(v int32)` + +SetDisplayOrder sets DisplayOrder field to given value. + +### HasDisplayOrder + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldResponse) HasDisplayOrder() bool` + +HasDisplayOrder returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest.md b/v1/docs/KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest.md new file mode 100644 index 0000000..b13a9c1 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest.md @@ -0,0 +1,296 @@ +# KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | +**Name** | **string** | | +**Description** | **string** | | +**DataType** | **int32** | | +**Hint** | Pointer to **string** | | [optional] +**Validation** | Pointer to **string** | | [optional] +**Enrollment** | Pointer to **int32** | | [optional] +**Message** | Pointer to **string** | | [optional] +**Options** | Pointer to **string** | | [optional] +**DefaultValue** | Pointer to **string** | | [optional] +**DisplayOrder** | Pointer to **int32** | | [optional] + +## Methods + +### NewKeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest + +`func NewKeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest(id int32, name string, description string, dataType int32, ) *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest` + +NewKeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest instantiates a new KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequestWithDefaults + +`func NewKeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequestWithDefaults() *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest` + +NewKeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequestWithDefaults instantiates a new KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetName + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + + +### GetDataType + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) GetDataType() int32` + +GetDataType returns the DataType field if non-nil, zero value otherwise. + +### GetDataTypeOk + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) GetDataTypeOk() (*int32, bool)` + +GetDataTypeOk returns a tuple with the DataType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataType + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) SetDataType(v int32)` + +SetDataType sets DataType field to given value. + + +### GetHint + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) GetHint() string` + +GetHint returns the Hint field if non-nil, zero value otherwise. + +### GetHintOk + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) GetHintOk() (*string, bool)` + +GetHintOk returns a tuple with the Hint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHint + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) SetHint(v string)` + +SetHint sets Hint field to given value. + +### HasHint + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) HasHint() bool` + +HasHint returns a boolean if a field has been set. + +### GetValidation + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) GetValidation() string` + +GetValidation returns the Validation field if non-nil, zero value otherwise. + +### GetValidationOk + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) GetValidationOk() (*string, bool)` + +GetValidationOk returns a tuple with the Validation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValidation + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) SetValidation(v string)` + +SetValidation sets Validation field to given value. + +### HasValidation + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) HasValidation() bool` + +HasValidation returns a boolean if a field has been set. + +### GetEnrollment + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) GetEnrollment() int32` + +GetEnrollment returns the Enrollment field if non-nil, zero value otherwise. + +### GetEnrollmentOk + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) GetEnrollmentOk() (*int32, bool)` + +GetEnrollmentOk returns a tuple with the Enrollment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnrollment + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) SetEnrollment(v int32)` + +SetEnrollment sets Enrollment field to given value. + +### HasEnrollment + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) HasEnrollment() bool` + +HasEnrollment returns a boolean if a field has been set. + +### GetMessage + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### GetOptions + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) GetOptions() string` + +GetOptions returns the Options field if non-nil, zero value otherwise. + +### GetOptionsOk + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) GetOptionsOk() (*string, bool)` + +GetOptionsOk returns a tuple with the Options field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOptions + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) SetOptions(v string)` + +SetOptions sets Options field to given value. + +### HasOptions + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) HasOptions() bool` + +HasOptions returns a boolean if a field has been set. + +### GetDefaultValue + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) GetDefaultValue() string` + +GetDefaultValue returns the DefaultValue field if non-nil, zero value otherwise. + +### GetDefaultValueOk + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) GetDefaultValueOk() (*string, bool)` + +GetDefaultValueOk returns a tuple with the DefaultValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultValue + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) SetDefaultValue(v string)` + +SetDefaultValue sets DefaultValue field to given value. + +### HasDefaultValue + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) HasDefaultValue() bool` + +HasDefaultValue returns a boolean if a field has been set. + +### GetDisplayOrder + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) GetDisplayOrder() int32` + +GetDisplayOrder returns the DisplayOrder field if non-nil, zero value otherwise. + +### GetDisplayOrderOk + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) GetDisplayOrderOk() (*int32, bool)` + +GetDisplayOrderOk returns a tuple with the DisplayOrder field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayOrder + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) SetDisplayOrder(v int32)` + +SetDisplayOrder sets DisplayOrder field to given value. + +### HasDisplayOrder + +`func (o *KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest) HasDisplayOrder() bool` + +HasDisplayOrder returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsMonitoringDashboardRequest.md b/v1/docs/KeyfactorApiModelsMonitoringDashboardRequest.md new file mode 100644 index 0000000..f3b2cb4 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsMonitoringDashboardRequest.md @@ -0,0 +1,77 @@ +# KeyfactorApiModelsMonitoringDashboardRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Show** | **bool** | | +**WarningHours** | Pointer to **int32** | | [optional] + +## Methods + +### NewKeyfactorApiModelsMonitoringDashboardRequest + +`func NewKeyfactorApiModelsMonitoringDashboardRequest(show bool, ) *KeyfactorApiModelsMonitoringDashboardRequest` + +NewKeyfactorApiModelsMonitoringDashboardRequest instantiates a new KeyfactorApiModelsMonitoringDashboardRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsMonitoringDashboardRequestWithDefaults + +`func NewKeyfactorApiModelsMonitoringDashboardRequestWithDefaults() *KeyfactorApiModelsMonitoringDashboardRequest` + +NewKeyfactorApiModelsMonitoringDashboardRequestWithDefaults instantiates a new KeyfactorApiModelsMonitoringDashboardRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetShow + +`func (o *KeyfactorApiModelsMonitoringDashboardRequest) GetShow() bool` + +GetShow returns the Show field if non-nil, zero value otherwise. + +### GetShowOk + +`func (o *KeyfactorApiModelsMonitoringDashboardRequest) GetShowOk() (*bool, bool)` + +GetShowOk returns a tuple with the Show field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShow + +`func (o *KeyfactorApiModelsMonitoringDashboardRequest) SetShow(v bool)` + +SetShow sets Show field to given value. + + +### GetWarningHours + +`func (o *KeyfactorApiModelsMonitoringDashboardRequest) GetWarningHours() int32` + +GetWarningHours returns the WarningHours field if non-nil, zero value otherwise. + +### GetWarningHoursOk + +`func (o *KeyfactorApiModelsMonitoringDashboardRequest) GetWarningHoursOk() (*int32, bool)` + +GetWarningHoursOk returns a tuple with the WarningHours field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWarningHours + +`func (o *KeyfactorApiModelsMonitoringDashboardRequest) SetWarningHours(v int32)` + +SetWarningHours sets WarningHours field to given value. + +### HasWarningHours + +`func (o *KeyfactorApiModelsMonitoringDashboardRequest) HasWarningHours() bool` + +HasWarningHours returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsMonitoringDashboardResponse.md b/v1/docs/KeyfactorApiModelsMonitoringDashboardResponse.md new file mode 100644 index 0000000..700919b --- /dev/null +++ b/v1/docs/KeyfactorApiModelsMonitoringDashboardResponse.md @@ -0,0 +1,82 @@ +# KeyfactorApiModelsMonitoringDashboardResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Show** | Pointer to **bool** | | [optional] +**WarningHours** | Pointer to **int32** | | [optional] + +## Methods + +### NewKeyfactorApiModelsMonitoringDashboardResponse + +`func NewKeyfactorApiModelsMonitoringDashboardResponse() *KeyfactorApiModelsMonitoringDashboardResponse` + +NewKeyfactorApiModelsMonitoringDashboardResponse instantiates a new KeyfactorApiModelsMonitoringDashboardResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsMonitoringDashboardResponseWithDefaults + +`func NewKeyfactorApiModelsMonitoringDashboardResponseWithDefaults() *KeyfactorApiModelsMonitoringDashboardResponse` + +NewKeyfactorApiModelsMonitoringDashboardResponseWithDefaults instantiates a new KeyfactorApiModelsMonitoringDashboardResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetShow + +`func (o *KeyfactorApiModelsMonitoringDashboardResponse) GetShow() bool` + +GetShow returns the Show field if non-nil, zero value otherwise. + +### GetShowOk + +`func (o *KeyfactorApiModelsMonitoringDashboardResponse) GetShowOk() (*bool, bool)` + +GetShowOk returns a tuple with the Show field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShow + +`func (o *KeyfactorApiModelsMonitoringDashboardResponse) SetShow(v bool)` + +SetShow sets Show field to given value. + +### HasShow + +`func (o *KeyfactorApiModelsMonitoringDashboardResponse) HasShow() bool` + +HasShow returns a boolean if a field has been set. + +### GetWarningHours + +`func (o *KeyfactorApiModelsMonitoringDashboardResponse) GetWarningHours() int32` + +GetWarningHours returns the WarningHours field if non-nil, zero value otherwise. + +### GetWarningHoursOk + +`func (o *KeyfactorApiModelsMonitoringDashboardResponse) GetWarningHoursOk() (*int32, bool)` + +GetWarningHoursOk returns a tuple with the WarningHours field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWarningHours + +`func (o *KeyfactorApiModelsMonitoringDashboardResponse) SetWarningHours(v int32)` + +SetWarningHours sets WarningHours field to given value. + +### HasWarningHours + +`func (o *KeyfactorApiModelsMonitoringDashboardResponse) HasWarningHours() bool` + +HasWarningHours returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsMonitoringEmailRequest.md b/v1/docs/KeyfactorApiModelsMonitoringEmailRequest.md new file mode 100644 index 0000000..a24a492 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsMonitoringEmailRequest.md @@ -0,0 +1,108 @@ +# KeyfactorApiModelsMonitoringEmailRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EnableReminder** | Pointer to **bool** | | [optional] +**WarningDays** | Pointer to **int32** | | [optional] +**Recipients** | Pointer to **[]string** | | [optional] + +## Methods + +### NewKeyfactorApiModelsMonitoringEmailRequest + +`func NewKeyfactorApiModelsMonitoringEmailRequest() *KeyfactorApiModelsMonitoringEmailRequest` + +NewKeyfactorApiModelsMonitoringEmailRequest instantiates a new KeyfactorApiModelsMonitoringEmailRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsMonitoringEmailRequestWithDefaults + +`func NewKeyfactorApiModelsMonitoringEmailRequestWithDefaults() *KeyfactorApiModelsMonitoringEmailRequest` + +NewKeyfactorApiModelsMonitoringEmailRequestWithDefaults instantiates a new KeyfactorApiModelsMonitoringEmailRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEnableReminder + +`func (o *KeyfactorApiModelsMonitoringEmailRequest) GetEnableReminder() bool` + +GetEnableReminder returns the EnableReminder field if non-nil, zero value otherwise. + +### GetEnableReminderOk + +`func (o *KeyfactorApiModelsMonitoringEmailRequest) GetEnableReminderOk() (*bool, bool)` + +GetEnableReminderOk returns a tuple with the EnableReminder field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnableReminder + +`func (o *KeyfactorApiModelsMonitoringEmailRequest) SetEnableReminder(v bool)` + +SetEnableReminder sets EnableReminder field to given value. + +### HasEnableReminder + +`func (o *KeyfactorApiModelsMonitoringEmailRequest) HasEnableReminder() bool` + +HasEnableReminder returns a boolean if a field has been set. + +### GetWarningDays + +`func (o *KeyfactorApiModelsMonitoringEmailRequest) GetWarningDays() int32` + +GetWarningDays returns the WarningDays field if non-nil, zero value otherwise. + +### GetWarningDaysOk + +`func (o *KeyfactorApiModelsMonitoringEmailRequest) GetWarningDaysOk() (*int32, bool)` + +GetWarningDaysOk returns a tuple with the WarningDays field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWarningDays + +`func (o *KeyfactorApiModelsMonitoringEmailRequest) SetWarningDays(v int32)` + +SetWarningDays sets WarningDays field to given value. + +### HasWarningDays + +`func (o *KeyfactorApiModelsMonitoringEmailRequest) HasWarningDays() bool` + +HasWarningDays returns a boolean if a field has been set. + +### GetRecipients + +`func (o *KeyfactorApiModelsMonitoringEmailRequest) GetRecipients() []string` + +GetRecipients returns the Recipients field if non-nil, zero value otherwise. + +### GetRecipientsOk + +`func (o *KeyfactorApiModelsMonitoringEmailRequest) GetRecipientsOk() (*[]string, bool)` + +GetRecipientsOk returns a tuple with the Recipients field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecipients + +`func (o *KeyfactorApiModelsMonitoringEmailRequest) SetRecipients(v []string)` + +SetRecipients sets Recipients field to given value. + +### HasRecipients + +`func (o *KeyfactorApiModelsMonitoringEmailRequest) HasRecipients() bool` + +HasRecipients returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsMonitoringEmailResponse.md b/v1/docs/KeyfactorApiModelsMonitoringEmailResponse.md new file mode 100644 index 0000000..71ec620 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsMonitoringEmailResponse.md @@ -0,0 +1,108 @@ +# KeyfactorApiModelsMonitoringEmailResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EnableReminder** | Pointer to **bool** | | [optional] +**WarningDays** | Pointer to **int32** | | [optional] +**Recipients** | Pointer to **[]string** | | [optional] + +## Methods + +### NewKeyfactorApiModelsMonitoringEmailResponse + +`func NewKeyfactorApiModelsMonitoringEmailResponse() *KeyfactorApiModelsMonitoringEmailResponse` + +NewKeyfactorApiModelsMonitoringEmailResponse instantiates a new KeyfactorApiModelsMonitoringEmailResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsMonitoringEmailResponseWithDefaults + +`func NewKeyfactorApiModelsMonitoringEmailResponseWithDefaults() *KeyfactorApiModelsMonitoringEmailResponse` + +NewKeyfactorApiModelsMonitoringEmailResponseWithDefaults instantiates a new KeyfactorApiModelsMonitoringEmailResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEnableReminder + +`func (o *KeyfactorApiModelsMonitoringEmailResponse) GetEnableReminder() bool` + +GetEnableReminder returns the EnableReminder field if non-nil, zero value otherwise. + +### GetEnableReminderOk + +`func (o *KeyfactorApiModelsMonitoringEmailResponse) GetEnableReminderOk() (*bool, bool)` + +GetEnableReminderOk returns a tuple with the EnableReminder field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnableReminder + +`func (o *KeyfactorApiModelsMonitoringEmailResponse) SetEnableReminder(v bool)` + +SetEnableReminder sets EnableReminder field to given value. + +### HasEnableReminder + +`func (o *KeyfactorApiModelsMonitoringEmailResponse) HasEnableReminder() bool` + +HasEnableReminder returns a boolean if a field has been set. + +### GetWarningDays + +`func (o *KeyfactorApiModelsMonitoringEmailResponse) GetWarningDays() int32` + +GetWarningDays returns the WarningDays field if non-nil, zero value otherwise. + +### GetWarningDaysOk + +`func (o *KeyfactorApiModelsMonitoringEmailResponse) GetWarningDaysOk() (*int32, bool)` + +GetWarningDaysOk returns a tuple with the WarningDays field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWarningDays + +`func (o *KeyfactorApiModelsMonitoringEmailResponse) SetWarningDays(v int32)` + +SetWarningDays sets WarningDays field to given value. + +### HasWarningDays + +`func (o *KeyfactorApiModelsMonitoringEmailResponse) HasWarningDays() bool` + +HasWarningDays returns a boolean if a field has been set. + +### GetRecipients + +`func (o *KeyfactorApiModelsMonitoringEmailResponse) GetRecipients() []string` + +GetRecipients returns the Recipients field if non-nil, zero value otherwise. + +### GetRecipientsOk + +`func (o *KeyfactorApiModelsMonitoringEmailResponse) GetRecipientsOk() (*[]string, bool)` + +GetRecipientsOk returns a tuple with the Recipients field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecipients + +`func (o *KeyfactorApiModelsMonitoringEmailResponse) SetRecipients(v []string)` + +SetRecipients sets Recipients field to given value. + +### HasRecipients + +`func (o *KeyfactorApiModelsMonitoringEmailResponse) HasRecipients() bool` + +HasRecipients returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsMonitoringOCSPParametersRequest.md b/v1/docs/KeyfactorApiModelsMonitoringOCSPParametersRequest.md new file mode 100644 index 0000000..cf5eea7 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsMonitoringOCSPParametersRequest.md @@ -0,0 +1,186 @@ +# KeyfactorApiModelsMonitoringOCSPParametersRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CertificateContents** | Pointer to **string** | | [optional] +**CertificateAuthorityId** | Pointer to **int32** | | [optional] +**AuthorityName** | Pointer to **string** | | [optional] +**AuthorityNameId** | Pointer to **string** | | [optional] +**AuthorityKeyId** | Pointer to **string** | | [optional] +**SampleSerialNumber** | Pointer to **string** | | [optional] + +## Methods + +### NewKeyfactorApiModelsMonitoringOCSPParametersRequest + +`func NewKeyfactorApiModelsMonitoringOCSPParametersRequest() *KeyfactorApiModelsMonitoringOCSPParametersRequest` + +NewKeyfactorApiModelsMonitoringOCSPParametersRequest instantiates a new KeyfactorApiModelsMonitoringOCSPParametersRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsMonitoringOCSPParametersRequestWithDefaults + +`func NewKeyfactorApiModelsMonitoringOCSPParametersRequestWithDefaults() *KeyfactorApiModelsMonitoringOCSPParametersRequest` + +NewKeyfactorApiModelsMonitoringOCSPParametersRequestWithDefaults instantiates a new KeyfactorApiModelsMonitoringOCSPParametersRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCertificateContents + +`func (o *KeyfactorApiModelsMonitoringOCSPParametersRequest) GetCertificateContents() string` + +GetCertificateContents returns the CertificateContents field if non-nil, zero value otherwise. + +### GetCertificateContentsOk + +`func (o *KeyfactorApiModelsMonitoringOCSPParametersRequest) GetCertificateContentsOk() (*string, bool)` + +GetCertificateContentsOk returns a tuple with the CertificateContents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateContents + +`func (o *KeyfactorApiModelsMonitoringOCSPParametersRequest) SetCertificateContents(v string)` + +SetCertificateContents sets CertificateContents field to given value. + +### HasCertificateContents + +`func (o *KeyfactorApiModelsMonitoringOCSPParametersRequest) HasCertificateContents() bool` + +HasCertificateContents returns a boolean if a field has been set. + +### GetCertificateAuthorityId + +`func (o *KeyfactorApiModelsMonitoringOCSPParametersRequest) GetCertificateAuthorityId() int32` + +GetCertificateAuthorityId returns the CertificateAuthorityId field if non-nil, zero value otherwise. + +### GetCertificateAuthorityIdOk + +`func (o *KeyfactorApiModelsMonitoringOCSPParametersRequest) GetCertificateAuthorityIdOk() (*int32, bool)` + +GetCertificateAuthorityIdOk returns a tuple with the CertificateAuthorityId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateAuthorityId + +`func (o *KeyfactorApiModelsMonitoringOCSPParametersRequest) SetCertificateAuthorityId(v int32)` + +SetCertificateAuthorityId sets CertificateAuthorityId field to given value. + +### HasCertificateAuthorityId + +`func (o *KeyfactorApiModelsMonitoringOCSPParametersRequest) HasCertificateAuthorityId() bool` + +HasCertificateAuthorityId returns a boolean if a field has been set. + +### GetAuthorityName + +`func (o *KeyfactorApiModelsMonitoringOCSPParametersRequest) GetAuthorityName() string` + +GetAuthorityName returns the AuthorityName field if non-nil, zero value otherwise. + +### GetAuthorityNameOk + +`func (o *KeyfactorApiModelsMonitoringOCSPParametersRequest) GetAuthorityNameOk() (*string, bool)` + +GetAuthorityNameOk returns a tuple with the AuthorityName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthorityName + +`func (o *KeyfactorApiModelsMonitoringOCSPParametersRequest) SetAuthorityName(v string)` + +SetAuthorityName sets AuthorityName field to given value. + +### HasAuthorityName + +`func (o *KeyfactorApiModelsMonitoringOCSPParametersRequest) HasAuthorityName() bool` + +HasAuthorityName returns a boolean if a field has been set. + +### GetAuthorityNameId + +`func (o *KeyfactorApiModelsMonitoringOCSPParametersRequest) GetAuthorityNameId() string` + +GetAuthorityNameId returns the AuthorityNameId field if non-nil, zero value otherwise. + +### GetAuthorityNameIdOk + +`func (o *KeyfactorApiModelsMonitoringOCSPParametersRequest) GetAuthorityNameIdOk() (*string, bool)` + +GetAuthorityNameIdOk returns a tuple with the AuthorityNameId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthorityNameId + +`func (o *KeyfactorApiModelsMonitoringOCSPParametersRequest) SetAuthorityNameId(v string)` + +SetAuthorityNameId sets AuthorityNameId field to given value. + +### HasAuthorityNameId + +`func (o *KeyfactorApiModelsMonitoringOCSPParametersRequest) HasAuthorityNameId() bool` + +HasAuthorityNameId returns a boolean if a field has been set. + +### GetAuthorityKeyId + +`func (o *KeyfactorApiModelsMonitoringOCSPParametersRequest) GetAuthorityKeyId() string` + +GetAuthorityKeyId returns the AuthorityKeyId field if non-nil, zero value otherwise. + +### GetAuthorityKeyIdOk + +`func (o *KeyfactorApiModelsMonitoringOCSPParametersRequest) GetAuthorityKeyIdOk() (*string, bool)` + +GetAuthorityKeyIdOk returns a tuple with the AuthorityKeyId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthorityKeyId + +`func (o *KeyfactorApiModelsMonitoringOCSPParametersRequest) SetAuthorityKeyId(v string)` + +SetAuthorityKeyId sets AuthorityKeyId field to given value. + +### HasAuthorityKeyId + +`func (o *KeyfactorApiModelsMonitoringOCSPParametersRequest) HasAuthorityKeyId() bool` + +HasAuthorityKeyId returns a boolean if a field has been set. + +### GetSampleSerialNumber + +`func (o *KeyfactorApiModelsMonitoringOCSPParametersRequest) GetSampleSerialNumber() string` + +GetSampleSerialNumber returns the SampleSerialNumber field if non-nil, zero value otherwise. + +### GetSampleSerialNumberOk + +`func (o *KeyfactorApiModelsMonitoringOCSPParametersRequest) GetSampleSerialNumberOk() (*string, bool)` + +GetSampleSerialNumberOk returns a tuple with the SampleSerialNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSampleSerialNumber + +`func (o *KeyfactorApiModelsMonitoringOCSPParametersRequest) SetSampleSerialNumber(v string)` + +SetSampleSerialNumber sets SampleSerialNumber field to given value. + +### HasSampleSerialNumber + +`func (o *KeyfactorApiModelsMonitoringOCSPParametersRequest) HasSampleSerialNumber() bool` + +HasSampleSerialNumber returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsMonitoringOCSPParametersResponse.md b/v1/docs/KeyfactorApiModelsMonitoringOCSPParametersResponse.md new file mode 100644 index 0000000..251406f --- /dev/null +++ b/v1/docs/KeyfactorApiModelsMonitoringOCSPParametersResponse.md @@ -0,0 +1,160 @@ +# KeyfactorApiModelsMonitoringOCSPParametersResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CertificateAuthorityId** | Pointer to **int32** | | [optional] +**AuthorityName** | Pointer to **string** | | [optional] +**AuthorityNameId** | Pointer to **string** | | [optional] +**AuthorityKeyId** | Pointer to **string** | | [optional] +**SampleSerialNumber** | Pointer to **string** | | [optional] + +## Methods + +### NewKeyfactorApiModelsMonitoringOCSPParametersResponse + +`func NewKeyfactorApiModelsMonitoringOCSPParametersResponse() *KeyfactorApiModelsMonitoringOCSPParametersResponse` + +NewKeyfactorApiModelsMonitoringOCSPParametersResponse instantiates a new KeyfactorApiModelsMonitoringOCSPParametersResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsMonitoringOCSPParametersResponseWithDefaults + +`func NewKeyfactorApiModelsMonitoringOCSPParametersResponseWithDefaults() *KeyfactorApiModelsMonitoringOCSPParametersResponse` + +NewKeyfactorApiModelsMonitoringOCSPParametersResponseWithDefaults instantiates a new KeyfactorApiModelsMonitoringOCSPParametersResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCertificateAuthorityId + +`func (o *KeyfactorApiModelsMonitoringOCSPParametersResponse) GetCertificateAuthorityId() int32` + +GetCertificateAuthorityId returns the CertificateAuthorityId field if non-nil, zero value otherwise. + +### GetCertificateAuthorityIdOk + +`func (o *KeyfactorApiModelsMonitoringOCSPParametersResponse) GetCertificateAuthorityIdOk() (*int32, bool)` + +GetCertificateAuthorityIdOk returns a tuple with the CertificateAuthorityId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateAuthorityId + +`func (o *KeyfactorApiModelsMonitoringOCSPParametersResponse) SetCertificateAuthorityId(v int32)` + +SetCertificateAuthorityId sets CertificateAuthorityId field to given value. + +### HasCertificateAuthorityId + +`func (o *KeyfactorApiModelsMonitoringOCSPParametersResponse) HasCertificateAuthorityId() bool` + +HasCertificateAuthorityId returns a boolean if a field has been set. + +### GetAuthorityName + +`func (o *KeyfactorApiModelsMonitoringOCSPParametersResponse) GetAuthorityName() string` + +GetAuthorityName returns the AuthorityName field if non-nil, zero value otherwise. + +### GetAuthorityNameOk + +`func (o *KeyfactorApiModelsMonitoringOCSPParametersResponse) GetAuthorityNameOk() (*string, bool)` + +GetAuthorityNameOk returns a tuple with the AuthorityName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthorityName + +`func (o *KeyfactorApiModelsMonitoringOCSPParametersResponse) SetAuthorityName(v string)` + +SetAuthorityName sets AuthorityName field to given value. + +### HasAuthorityName + +`func (o *KeyfactorApiModelsMonitoringOCSPParametersResponse) HasAuthorityName() bool` + +HasAuthorityName returns a boolean if a field has been set. + +### GetAuthorityNameId + +`func (o *KeyfactorApiModelsMonitoringOCSPParametersResponse) GetAuthorityNameId() string` + +GetAuthorityNameId returns the AuthorityNameId field if non-nil, zero value otherwise. + +### GetAuthorityNameIdOk + +`func (o *KeyfactorApiModelsMonitoringOCSPParametersResponse) GetAuthorityNameIdOk() (*string, bool)` + +GetAuthorityNameIdOk returns a tuple with the AuthorityNameId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthorityNameId + +`func (o *KeyfactorApiModelsMonitoringOCSPParametersResponse) SetAuthorityNameId(v string)` + +SetAuthorityNameId sets AuthorityNameId field to given value. + +### HasAuthorityNameId + +`func (o *KeyfactorApiModelsMonitoringOCSPParametersResponse) HasAuthorityNameId() bool` + +HasAuthorityNameId returns a boolean if a field has been set. + +### GetAuthorityKeyId + +`func (o *KeyfactorApiModelsMonitoringOCSPParametersResponse) GetAuthorityKeyId() string` + +GetAuthorityKeyId returns the AuthorityKeyId field if non-nil, zero value otherwise. + +### GetAuthorityKeyIdOk + +`func (o *KeyfactorApiModelsMonitoringOCSPParametersResponse) GetAuthorityKeyIdOk() (*string, bool)` + +GetAuthorityKeyIdOk returns a tuple with the AuthorityKeyId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthorityKeyId + +`func (o *KeyfactorApiModelsMonitoringOCSPParametersResponse) SetAuthorityKeyId(v string)` + +SetAuthorityKeyId sets AuthorityKeyId field to given value. + +### HasAuthorityKeyId + +`func (o *KeyfactorApiModelsMonitoringOCSPParametersResponse) HasAuthorityKeyId() bool` + +HasAuthorityKeyId returns a boolean if a field has been set. + +### GetSampleSerialNumber + +`func (o *KeyfactorApiModelsMonitoringOCSPParametersResponse) GetSampleSerialNumber() string` + +GetSampleSerialNumber returns the SampleSerialNumber field if non-nil, zero value otherwise. + +### GetSampleSerialNumberOk + +`func (o *KeyfactorApiModelsMonitoringOCSPParametersResponse) GetSampleSerialNumberOk() (*string, bool)` + +GetSampleSerialNumberOk returns a tuple with the SampleSerialNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSampleSerialNumber + +`func (o *KeyfactorApiModelsMonitoringOCSPParametersResponse) SetSampleSerialNumber(v string)` + +SetSampleSerialNumber sets SampleSerialNumber field to given value. + +### HasSampleSerialNumber + +`func (o *KeyfactorApiModelsMonitoringOCSPParametersResponse) HasSampleSerialNumber() bool` + +HasSampleSerialNumber returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest.md b/v1/docs/KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest.md new file mode 100644 index 0000000..0b02c07 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest.md @@ -0,0 +1,82 @@ +# KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EvaluationDate** | Pointer to **time.Time** | | [optional] +**SendAlerts** | Pointer to **bool** | | [optional] + +## Methods + +### NewKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest + +`func NewKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest() *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest` + +NewKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest instantiates a new KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequestWithDefaults + +`func NewKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequestWithDefaults() *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest` + +NewKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequestWithDefaults instantiates a new KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEvaluationDate + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest) GetEvaluationDate() time.Time` + +GetEvaluationDate returns the EvaluationDate field if non-nil, zero value otherwise. + +### GetEvaluationDateOk + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest) GetEvaluationDateOk() (*time.Time, bool)` + +GetEvaluationDateOk returns a tuple with the EvaluationDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvaluationDate + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest) SetEvaluationDate(v time.Time)` + +SetEvaluationDate sets EvaluationDate field to given value. + +### HasEvaluationDate + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest) HasEvaluationDate() bool` + +HasEvaluationDate returns a boolean if a field has been set. + +### GetSendAlerts + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest) GetSendAlerts() bool` + +GetSendAlerts returns the SendAlerts field if non-nil, zero value otherwise. + +### GetSendAlertsOk + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest) GetSendAlertsOk() (*bool, bool)` + +GetSendAlertsOk returns a tuple with the SendAlerts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSendAlerts + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest) SetSendAlerts(v bool)` + +SetSendAlerts sets SendAlerts field to given value. + +### HasSendAlerts + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest) HasSendAlerts() bool` + +HasSendAlerts returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest.md b/v1/docs/KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest.md new file mode 100644 index 0000000..03af7cf --- /dev/null +++ b/v1/docs/KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest.md @@ -0,0 +1,108 @@ +# KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AlertId** | Pointer to **int32** | | [optional] +**EvaluationDate** | Pointer to **time.Time** | | [optional] +**SendAlerts** | Pointer to **bool** | | [optional] + +## Methods + +### NewKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest + +`func NewKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest() *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest` + +NewKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest instantiates a new KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequestWithDefaults + +`func NewKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequestWithDefaults() *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest` + +NewKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequestWithDefaults instantiates a new KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAlertId + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest) GetAlertId() int32` + +GetAlertId returns the AlertId field if non-nil, zero value otherwise. + +### GetAlertIdOk + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest) GetAlertIdOk() (*int32, bool)` + +GetAlertIdOk returns a tuple with the AlertId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlertId + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest) SetAlertId(v int32)` + +SetAlertId sets AlertId field to given value. + +### HasAlertId + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest) HasAlertId() bool` + +HasAlertId returns a boolean if a field has been set. + +### GetEvaluationDate + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest) GetEvaluationDate() time.Time` + +GetEvaluationDate returns the EvaluationDate field if non-nil, zero value otherwise. + +### GetEvaluationDateOk + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest) GetEvaluationDateOk() (*time.Time, bool)` + +GetEvaluationDateOk returns a tuple with the EvaluationDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvaluationDate + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest) SetEvaluationDate(v time.Time)` + +SetEvaluationDate sets EvaluationDate field to given value. + +### HasEvaluationDate + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest) HasEvaluationDate() bool` + +HasEvaluationDate returns a boolean if a field has been set. + +### GetSendAlerts + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest) GetSendAlerts() bool` + +GetSendAlerts returns the SendAlerts field if non-nil, zero value otherwise. + +### GetSendAlertsOk + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest) GetSendAlertsOk() (*bool, bool)` + +GetSendAlertsOk returns a tuple with the SendAlerts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSendAlerts + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest) SetSendAlerts(v bool)` + +SetSendAlerts sets SendAlerts field to given value. + +### HasSendAlerts + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest) HasSendAlerts() bool` + +HasSendAlerts returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse.md b/v1/docs/KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse.md new file mode 100644 index 0000000..3711158 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse.md @@ -0,0 +1,82 @@ +# KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RevocationMonitoringAlerts** | Pointer to [**[]ModelsMonitoringRevocationMonitoringAlertResponse**](ModelsMonitoringRevocationMonitoringAlertResponse.md) | | [optional] +**AlertBuildResult** | Pointer to **int32** | | [optional] + +## Methods + +### NewKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse + +`func NewKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse() *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse` + +NewKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse instantiates a new KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponseWithDefaults + +`func NewKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponseWithDefaults() *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse` + +NewKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponseWithDefaults instantiates a new KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRevocationMonitoringAlerts + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse) GetRevocationMonitoringAlerts() []ModelsMonitoringRevocationMonitoringAlertResponse` + +GetRevocationMonitoringAlerts returns the RevocationMonitoringAlerts field if non-nil, zero value otherwise. + +### GetRevocationMonitoringAlertsOk + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse) GetRevocationMonitoringAlertsOk() (*[]ModelsMonitoringRevocationMonitoringAlertResponse, bool)` + +GetRevocationMonitoringAlertsOk returns a tuple with the RevocationMonitoringAlerts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRevocationMonitoringAlerts + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse) SetRevocationMonitoringAlerts(v []ModelsMonitoringRevocationMonitoringAlertResponse)` + +SetRevocationMonitoringAlerts sets RevocationMonitoringAlerts field to given value. + +### HasRevocationMonitoringAlerts + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse) HasRevocationMonitoringAlerts() bool` + +HasRevocationMonitoringAlerts returns a boolean if a field has been set. + +### GetAlertBuildResult + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse) GetAlertBuildResult() int32` + +GetAlertBuildResult returns the AlertBuildResult field if non-nil, zero value otherwise. + +### GetAlertBuildResultOk + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse) GetAlertBuildResultOk() (*int32, bool)` + +GetAlertBuildResultOk returns a tuple with the AlertBuildResult field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlertBuildResult + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse) SetAlertBuildResult(v int32)` + +SetAlertBuildResult sets AlertBuildResult field to given value. + +### HasAlertBuildResult + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse) HasAlertBuildResult() bool` + +HasAlertBuildResult returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest.md b/v1/docs/KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest.md new file mode 100644 index 0000000..3927cae --- /dev/null +++ b/v1/docs/KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest.md @@ -0,0 +1,192 @@ +# KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**EndpointType** | **string** | | +**Location** | **string** | | +**Email** | Pointer to [**KeyfactorApiModelsMonitoringEmailRequest**](KeyfactorApiModelsMonitoringEmailRequest.md) | | [optional] +**Dashboard** | [**KeyfactorApiModelsMonitoringDashboardRequest**](KeyfactorApiModelsMonitoringDashboardRequest.md) | | +**Schedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**OCSPParameters** | Pointer to [**KeyfactorApiModelsMonitoringOCSPParametersRequest**](KeyfactorApiModelsMonitoringOCSPParametersRequest.md) | | [optional] + +## Methods + +### NewKeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest + +`func NewKeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest(name string, endpointType string, location string, dashboard KeyfactorApiModelsMonitoringDashboardRequest, ) *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest` + +NewKeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest instantiates a new KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsMonitoringRevocationMonitoringCreationRequestWithDefaults + +`func NewKeyfactorApiModelsMonitoringRevocationMonitoringCreationRequestWithDefaults() *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest` + +NewKeyfactorApiModelsMonitoringRevocationMonitoringCreationRequestWithDefaults instantiates a new KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetEndpointType + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) GetEndpointType() string` + +GetEndpointType returns the EndpointType field if non-nil, zero value otherwise. + +### GetEndpointTypeOk + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) GetEndpointTypeOk() (*string, bool)` + +GetEndpointTypeOk returns a tuple with the EndpointType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndpointType + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) SetEndpointType(v string)` + +SetEndpointType sets EndpointType field to given value. + + +### GetLocation + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) GetLocation() string` + +GetLocation returns the Location field if non-nil, zero value otherwise. + +### GetLocationOk + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) GetLocationOk() (*string, bool)` + +GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocation + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) SetLocation(v string)` + +SetLocation sets Location field to given value. + + +### GetEmail + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) GetEmail() KeyfactorApiModelsMonitoringEmailRequest` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) GetEmailOk() (*KeyfactorApiModelsMonitoringEmailRequest, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) SetEmail(v KeyfactorApiModelsMonitoringEmailRequest)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### GetDashboard + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) GetDashboard() KeyfactorApiModelsMonitoringDashboardRequest` + +GetDashboard returns the Dashboard field if non-nil, zero value otherwise. + +### GetDashboardOk + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) GetDashboardOk() (*KeyfactorApiModelsMonitoringDashboardRequest, bool)` + +GetDashboardOk returns a tuple with the Dashboard field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDashboard + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) SetDashboard(v KeyfactorApiModelsMonitoringDashboardRequest)` + +SetDashboard sets Dashboard field to given value. + + +### GetSchedule + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetSchedule returns the Schedule field if non-nil, zero value otherwise. + +### GetScheduleOk + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetScheduleOk returns a tuple with the Schedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSchedule + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetSchedule sets Schedule field to given value. + +### HasSchedule + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) HasSchedule() bool` + +HasSchedule returns a boolean if a field has been set. + +### GetOCSPParameters + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) GetOCSPParameters() KeyfactorApiModelsMonitoringOCSPParametersRequest` + +GetOCSPParameters returns the OCSPParameters field if non-nil, zero value otherwise. + +### GetOCSPParametersOk + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) GetOCSPParametersOk() (*KeyfactorApiModelsMonitoringOCSPParametersRequest, bool)` + +GetOCSPParametersOk returns a tuple with the OCSPParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOCSPParameters + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) SetOCSPParameters(v KeyfactorApiModelsMonitoringOCSPParametersRequest)` + +SetOCSPParameters sets OCSPParameters field to given value. + +### HasOCSPParameters + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest) HasOCSPParameters() bool` + +HasOCSPParameters returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse.md b/v1/docs/KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse.md new file mode 100644 index 0000000..3dab078 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse.md @@ -0,0 +1,238 @@ +# KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Name** | Pointer to **string** | | [optional] +**EndpointType** | Pointer to **string** | | [optional] +**Location** | Pointer to **string** | | [optional] +**Email** | Pointer to [**KeyfactorApiModelsMonitoringEmailResponse**](KeyfactorApiModelsMonitoringEmailResponse.md) | | [optional] +**Dashboard** | Pointer to [**KeyfactorApiModelsMonitoringDashboardResponse**](KeyfactorApiModelsMonitoringDashboardResponse.md) | | [optional] +**Schedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**OCSPParameters** | Pointer to [**KeyfactorApiModelsMonitoringOCSPParametersResponse**](KeyfactorApiModelsMonitoringOCSPParametersResponse.md) | | [optional] + +## Methods + +### NewKeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse + +`func NewKeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse() *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse` + +NewKeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse instantiates a new KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponseWithDefaults + +`func NewKeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponseWithDefaults() *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse` + +NewKeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponseWithDefaults instantiates a new KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetEndpointType + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) GetEndpointType() string` + +GetEndpointType returns the EndpointType field if non-nil, zero value otherwise. + +### GetEndpointTypeOk + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) GetEndpointTypeOk() (*string, bool)` + +GetEndpointTypeOk returns a tuple with the EndpointType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndpointType + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) SetEndpointType(v string)` + +SetEndpointType sets EndpointType field to given value. + +### HasEndpointType + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) HasEndpointType() bool` + +HasEndpointType returns a boolean if a field has been set. + +### GetLocation + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) GetLocation() string` + +GetLocation returns the Location field if non-nil, zero value otherwise. + +### GetLocationOk + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) GetLocationOk() (*string, bool)` + +GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocation + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) SetLocation(v string)` + +SetLocation sets Location field to given value. + +### HasLocation + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) HasLocation() bool` + +HasLocation returns a boolean if a field has been set. + +### GetEmail + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) GetEmail() KeyfactorApiModelsMonitoringEmailResponse` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) GetEmailOk() (*KeyfactorApiModelsMonitoringEmailResponse, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) SetEmail(v KeyfactorApiModelsMonitoringEmailResponse)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### GetDashboard + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) GetDashboard() KeyfactorApiModelsMonitoringDashboardResponse` + +GetDashboard returns the Dashboard field if non-nil, zero value otherwise. + +### GetDashboardOk + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) GetDashboardOk() (*KeyfactorApiModelsMonitoringDashboardResponse, bool)` + +GetDashboardOk returns a tuple with the Dashboard field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDashboard + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) SetDashboard(v KeyfactorApiModelsMonitoringDashboardResponse)` + +SetDashboard sets Dashboard field to given value. + +### HasDashboard + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) HasDashboard() bool` + +HasDashboard returns a boolean if a field has been set. + +### GetSchedule + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetSchedule returns the Schedule field if non-nil, zero value otherwise. + +### GetScheduleOk + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetScheduleOk returns a tuple with the Schedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSchedule + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetSchedule sets Schedule field to given value. + +### HasSchedule + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) HasSchedule() bool` + +HasSchedule returns a boolean if a field has been set. + +### GetOCSPParameters + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) GetOCSPParameters() KeyfactorApiModelsMonitoringOCSPParametersResponse` + +GetOCSPParameters returns the OCSPParameters field if non-nil, zero value otherwise. + +### GetOCSPParametersOk + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) GetOCSPParametersOk() (*KeyfactorApiModelsMonitoringOCSPParametersResponse, bool)` + +GetOCSPParametersOk returns a tuple with the OCSPParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOCSPParameters + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) SetOCSPParameters(v KeyfactorApiModelsMonitoringOCSPParametersResponse)` + +SetOCSPParameters sets OCSPParameters field to given value. + +### HasOCSPParameters + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse) HasOCSPParameters() bool` + +HasOCSPParameters returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest.md b/v1/docs/KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest.md new file mode 100644 index 0000000..9977d25 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest.md @@ -0,0 +1,218 @@ +# KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Name** | **string** | | +**EndpointType** | **string** | | +**Location** | **string** | | +**Email** | Pointer to [**KeyfactorApiModelsMonitoringEmailRequest**](KeyfactorApiModelsMonitoringEmailRequest.md) | | [optional] +**Dashboard** | [**KeyfactorApiModelsMonitoringDashboardRequest**](KeyfactorApiModelsMonitoringDashboardRequest.md) | | +**Schedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**OCSPParameters** | Pointer to [**KeyfactorApiModelsMonitoringOCSPParametersRequest**](KeyfactorApiModelsMonitoringOCSPParametersRequest.md) | | [optional] + +## Methods + +### NewKeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest + +`func NewKeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest(name string, endpointType string, location string, dashboard KeyfactorApiModelsMonitoringDashboardRequest, ) *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest` + +NewKeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest instantiates a new KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequestWithDefaults + +`func NewKeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequestWithDefaults() *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest` + +NewKeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequestWithDefaults instantiates a new KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetEndpointType + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) GetEndpointType() string` + +GetEndpointType returns the EndpointType field if non-nil, zero value otherwise. + +### GetEndpointTypeOk + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) GetEndpointTypeOk() (*string, bool)` + +GetEndpointTypeOk returns a tuple with the EndpointType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndpointType + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) SetEndpointType(v string)` + +SetEndpointType sets EndpointType field to given value. + + +### GetLocation + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) GetLocation() string` + +GetLocation returns the Location field if non-nil, zero value otherwise. + +### GetLocationOk + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) GetLocationOk() (*string, bool)` + +GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocation + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) SetLocation(v string)` + +SetLocation sets Location field to given value. + + +### GetEmail + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) GetEmail() KeyfactorApiModelsMonitoringEmailRequest` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) GetEmailOk() (*KeyfactorApiModelsMonitoringEmailRequest, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) SetEmail(v KeyfactorApiModelsMonitoringEmailRequest)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### GetDashboard + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) GetDashboard() KeyfactorApiModelsMonitoringDashboardRequest` + +GetDashboard returns the Dashboard field if non-nil, zero value otherwise. + +### GetDashboardOk + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) GetDashboardOk() (*KeyfactorApiModelsMonitoringDashboardRequest, bool)` + +GetDashboardOk returns a tuple with the Dashboard field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDashboard + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) SetDashboard(v KeyfactorApiModelsMonitoringDashboardRequest)` + +SetDashboard sets Dashboard field to given value. + + +### GetSchedule + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetSchedule returns the Schedule field if non-nil, zero value otherwise. + +### GetScheduleOk + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetScheduleOk returns a tuple with the Schedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSchedule + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetSchedule sets Schedule field to given value. + +### HasSchedule + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) HasSchedule() bool` + +HasSchedule returns a boolean if a field has been set. + +### GetOCSPParameters + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) GetOCSPParameters() KeyfactorApiModelsMonitoringOCSPParametersRequest` + +GetOCSPParameters returns the OCSPParameters field if non-nil, zero value otherwise. + +### GetOCSPParametersOk + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) GetOCSPParametersOk() (*KeyfactorApiModelsMonitoringOCSPParametersRequest, bool)` + +GetOCSPParametersOk returns a tuple with the OCSPParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOCSPParameters + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) SetOCSPParameters(v KeyfactorApiModelsMonitoringOCSPParametersRequest)` + +SetOCSPParameters sets OCSPParameters field to given value. + +### HasOCSPParameters + +`func (o *KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest) HasOCSPParameters() bool` + +HasOCSPParameters returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest.md b/v1/docs/KeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest.md new file mode 100644 index 0000000..f67d40d --- /dev/null +++ b/v1/docs/KeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest.md @@ -0,0 +1,82 @@ +# KeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**JobAuditIds** | Pointer to **[]int64** | List of orchestrator job audit ids to be acknowledged | [optional] +**Query** | Pointer to **string** | Query identifying orchestrator jobs to be acknowledged | [optional] + +## Methods + +### NewKeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest + +`func NewKeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest() *KeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest` + +NewKeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest instantiates a new KeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequestWithDefaults + +`func NewKeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequestWithDefaults() *KeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest` + +NewKeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequestWithDefaults instantiates a new KeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetJobAuditIds + +`func (o *KeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest) GetJobAuditIds() []int64` + +GetJobAuditIds returns the JobAuditIds field if non-nil, zero value otherwise. + +### GetJobAuditIdsOk + +`func (o *KeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest) GetJobAuditIdsOk() (*[]int64, bool)` + +GetJobAuditIdsOk returns a tuple with the JobAuditIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobAuditIds + +`func (o *KeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest) SetJobAuditIds(v []int64)` + +SetJobAuditIds sets JobAuditIds field to given value. + +### HasJobAuditIds + +`func (o *KeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest) HasJobAuditIds() bool` + +HasJobAuditIds returns a boolean if a field has been set. + +### GetQuery + +`func (o *KeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest) GetQuery() string` + +GetQuery returns the Query field if non-nil, zero value otherwise. + +### GetQueryOk + +`func (o *KeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest) GetQueryOk() (*string, bool)` + +GetQueryOk returns a tuple with the Query field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuery + +`func (o *KeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest) SetQuery(v string)` + +SetQuery sets Query field to given value. + +### HasQuery + +`func (o *KeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest) HasQuery() bool` + +HasQuery returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsOrchestratorJobsBulkJobResponse.md b/v1/docs/KeyfactorApiModelsOrchestratorJobsBulkJobResponse.md new file mode 100644 index 0000000..cd5960b --- /dev/null +++ b/v1/docs/KeyfactorApiModelsOrchestratorJobsBulkJobResponse.md @@ -0,0 +1,186 @@ +# KeyfactorApiModelsOrchestratorJobsBulkJobResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrchestratorJobPairs** | Pointer to [**[]ModelsOrchestratorJobsBulkOrchestratorJobPair**](ModelsOrchestratorJobsBulkOrchestratorJobPair.md) | | [optional] +**FailedOrchestratorIds** | Pointer to **[]string** | | [optional] +**JobTypeName** | Pointer to **string** | | [optional] +**Schedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**JobFields** | Pointer to [**[]KeyfactorApiModelsOrchestratorJobsJobFieldResponse**](KeyfactorApiModelsOrchestratorJobsJobFieldResponse.md) | | [optional] +**RequestTimestamp** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewKeyfactorApiModelsOrchestratorJobsBulkJobResponse + +`func NewKeyfactorApiModelsOrchestratorJobsBulkJobResponse() *KeyfactorApiModelsOrchestratorJobsBulkJobResponse` + +NewKeyfactorApiModelsOrchestratorJobsBulkJobResponse instantiates a new KeyfactorApiModelsOrchestratorJobsBulkJobResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsOrchestratorJobsBulkJobResponseWithDefaults + +`func NewKeyfactorApiModelsOrchestratorJobsBulkJobResponseWithDefaults() *KeyfactorApiModelsOrchestratorJobsBulkJobResponse` + +NewKeyfactorApiModelsOrchestratorJobsBulkJobResponseWithDefaults instantiates a new KeyfactorApiModelsOrchestratorJobsBulkJobResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetOrchestratorJobPairs + +`func (o *KeyfactorApiModelsOrchestratorJobsBulkJobResponse) GetOrchestratorJobPairs() []ModelsOrchestratorJobsBulkOrchestratorJobPair` + +GetOrchestratorJobPairs returns the OrchestratorJobPairs field if non-nil, zero value otherwise. + +### GetOrchestratorJobPairsOk + +`func (o *KeyfactorApiModelsOrchestratorJobsBulkJobResponse) GetOrchestratorJobPairsOk() (*[]ModelsOrchestratorJobsBulkOrchestratorJobPair, bool)` + +GetOrchestratorJobPairsOk returns a tuple with the OrchestratorJobPairs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrchestratorJobPairs + +`func (o *KeyfactorApiModelsOrchestratorJobsBulkJobResponse) SetOrchestratorJobPairs(v []ModelsOrchestratorJobsBulkOrchestratorJobPair)` + +SetOrchestratorJobPairs sets OrchestratorJobPairs field to given value. + +### HasOrchestratorJobPairs + +`func (o *KeyfactorApiModelsOrchestratorJobsBulkJobResponse) HasOrchestratorJobPairs() bool` + +HasOrchestratorJobPairs returns a boolean if a field has been set. + +### GetFailedOrchestratorIds + +`func (o *KeyfactorApiModelsOrchestratorJobsBulkJobResponse) GetFailedOrchestratorIds() []string` + +GetFailedOrchestratorIds returns the FailedOrchestratorIds field if non-nil, zero value otherwise. + +### GetFailedOrchestratorIdsOk + +`func (o *KeyfactorApiModelsOrchestratorJobsBulkJobResponse) GetFailedOrchestratorIdsOk() (*[]string, bool)` + +GetFailedOrchestratorIdsOk returns a tuple with the FailedOrchestratorIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFailedOrchestratorIds + +`func (o *KeyfactorApiModelsOrchestratorJobsBulkJobResponse) SetFailedOrchestratorIds(v []string)` + +SetFailedOrchestratorIds sets FailedOrchestratorIds field to given value. + +### HasFailedOrchestratorIds + +`func (o *KeyfactorApiModelsOrchestratorJobsBulkJobResponse) HasFailedOrchestratorIds() bool` + +HasFailedOrchestratorIds returns a boolean if a field has been set. + +### GetJobTypeName + +`func (o *KeyfactorApiModelsOrchestratorJobsBulkJobResponse) GetJobTypeName() string` + +GetJobTypeName returns the JobTypeName field if non-nil, zero value otherwise. + +### GetJobTypeNameOk + +`func (o *KeyfactorApiModelsOrchestratorJobsBulkJobResponse) GetJobTypeNameOk() (*string, bool)` + +GetJobTypeNameOk returns a tuple with the JobTypeName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobTypeName + +`func (o *KeyfactorApiModelsOrchestratorJobsBulkJobResponse) SetJobTypeName(v string)` + +SetJobTypeName sets JobTypeName field to given value. + +### HasJobTypeName + +`func (o *KeyfactorApiModelsOrchestratorJobsBulkJobResponse) HasJobTypeName() bool` + +HasJobTypeName returns a boolean if a field has been set. + +### GetSchedule + +`func (o *KeyfactorApiModelsOrchestratorJobsBulkJobResponse) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetSchedule returns the Schedule field if non-nil, zero value otherwise. + +### GetScheduleOk + +`func (o *KeyfactorApiModelsOrchestratorJobsBulkJobResponse) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetScheduleOk returns a tuple with the Schedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSchedule + +`func (o *KeyfactorApiModelsOrchestratorJobsBulkJobResponse) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetSchedule sets Schedule field to given value. + +### HasSchedule + +`func (o *KeyfactorApiModelsOrchestratorJobsBulkJobResponse) HasSchedule() bool` + +HasSchedule returns a boolean if a field has been set. + +### GetJobFields + +`func (o *KeyfactorApiModelsOrchestratorJobsBulkJobResponse) GetJobFields() []KeyfactorApiModelsOrchestratorJobsJobFieldResponse` + +GetJobFields returns the JobFields field if non-nil, zero value otherwise. + +### GetJobFieldsOk + +`func (o *KeyfactorApiModelsOrchestratorJobsBulkJobResponse) GetJobFieldsOk() (*[]KeyfactorApiModelsOrchestratorJobsJobFieldResponse, bool)` + +GetJobFieldsOk returns a tuple with the JobFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobFields + +`func (o *KeyfactorApiModelsOrchestratorJobsBulkJobResponse) SetJobFields(v []KeyfactorApiModelsOrchestratorJobsJobFieldResponse)` + +SetJobFields sets JobFields field to given value. + +### HasJobFields + +`func (o *KeyfactorApiModelsOrchestratorJobsBulkJobResponse) HasJobFields() bool` + +HasJobFields returns a boolean if a field has been set. + +### GetRequestTimestamp + +`func (o *KeyfactorApiModelsOrchestratorJobsBulkJobResponse) GetRequestTimestamp() time.Time` + +GetRequestTimestamp returns the RequestTimestamp field if non-nil, zero value otherwise. + +### GetRequestTimestampOk + +`func (o *KeyfactorApiModelsOrchestratorJobsBulkJobResponse) GetRequestTimestampOk() (*time.Time, bool)` + +GetRequestTimestampOk returns a tuple with the RequestTimestamp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestTimestamp + +`func (o *KeyfactorApiModelsOrchestratorJobsBulkJobResponse) SetRequestTimestamp(v time.Time)` + +SetRequestTimestamp sets RequestTimestamp field to given value. + +### HasRequestTimestamp + +`func (o *KeyfactorApiModelsOrchestratorJobsBulkJobResponse) HasRequestTimestamp() bool` + +HasRequestTimestamp returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse.md b/v1/docs/KeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse.md new file mode 100644 index 0000000..6fd93b5 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse.md @@ -0,0 +1,82 @@ +# KeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**JobHistoryId** | Pointer to **int64** | | [optional] +**Data** | Pointer to **string** | | [optional] + +## Methods + +### NewKeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse + +`func NewKeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse() *KeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse` + +NewKeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse instantiates a new KeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponseWithDefaults + +`func NewKeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponseWithDefaults() *KeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse` + +NewKeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponseWithDefaults instantiates a new KeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetJobHistoryId + +`func (o *KeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse) GetJobHistoryId() int64` + +GetJobHistoryId returns the JobHistoryId field if non-nil, zero value otherwise. + +### GetJobHistoryIdOk + +`func (o *KeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse) GetJobHistoryIdOk() (*int64, bool)` + +GetJobHistoryIdOk returns a tuple with the JobHistoryId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobHistoryId + +`func (o *KeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse) SetJobHistoryId(v int64)` + +SetJobHistoryId sets JobHistoryId field to given value. + +### HasJobHistoryId + +`func (o *KeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse) HasJobHistoryId() bool` + +HasJobHistoryId returns a boolean if a field has been set. + +### GetData + +`func (o *KeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse) GetData() string` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *KeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse) GetDataOk() (*string, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *KeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse) SetData(v string)` + +SetData sets Data field to given value. + +### HasData + +`func (o *KeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsOrchestratorJobsJobFieldResponse.md b/v1/docs/KeyfactorApiModelsOrchestratorJobsJobFieldResponse.md new file mode 100644 index 0000000..95db179 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsOrchestratorJobsJobFieldResponse.md @@ -0,0 +1,82 @@ +# KeyfactorApiModelsOrchestratorJobsJobFieldResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**JobTypeField** | Pointer to **string** | | [optional] +**Value** | Pointer to **string** | | [optional] + +## Methods + +### NewKeyfactorApiModelsOrchestratorJobsJobFieldResponse + +`func NewKeyfactorApiModelsOrchestratorJobsJobFieldResponse() *KeyfactorApiModelsOrchestratorJobsJobFieldResponse` + +NewKeyfactorApiModelsOrchestratorJobsJobFieldResponse instantiates a new KeyfactorApiModelsOrchestratorJobsJobFieldResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsOrchestratorJobsJobFieldResponseWithDefaults + +`func NewKeyfactorApiModelsOrchestratorJobsJobFieldResponseWithDefaults() *KeyfactorApiModelsOrchestratorJobsJobFieldResponse` + +NewKeyfactorApiModelsOrchestratorJobsJobFieldResponseWithDefaults instantiates a new KeyfactorApiModelsOrchestratorJobsJobFieldResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetJobTypeField + +`func (o *KeyfactorApiModelsOrchestratorJobsJobFieldResponse) GetJobTypeField() string` + +GetJobTypeField returns the JobTypeField field if non-nil, zero value otherwise. + +### GetJobTypeFieldOk + +`func (o *KeyfactorApiModelsOrchestratorJobsJobFieldResponse) GetJobTypeFieldOk() (*string, bool)` + +GetJobTypeFieldOk returns a tuple with the JobTypeField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobTypeField + +`func (o *KeyfactorApiModelsOrchestratorJobsJobFieldResponse) SetJobTypeField(v string)` + +SetJobTypeField sets JobTypeField field to given value. + +### HasJobTypeField + +`func (o *KeyfactorApiModelsOrchestratorJobsJobFieldResponse) HasJobTypeField() bool` + +HasJobTypeField returns a boolean if a field has been set. + +### GetValue + +`func (o *KeyfactorApiModelsOrchestratorJobsJobFieldResponse) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *KeyfactorApiModelsOrchestratorJobsJobFieldResponse) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *KeyfactorApiModelsOrchestratorJobsJobFieldResponse) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *KeyfactorApiModelsOrchestratorJobsJobFieldResponse) HasValue() bool` + +HasValue returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsOrchestratorJobsJobResponse.md b/v1/docs/KeyfactorApiModelsOrchestratorJobsJobResponse.md new file mode 100644 index 0000000..f257f3f --- /dev/null +++ b/v1/docs/KeyfactorApiModelsOrchestratorJobsJobResponse.md @@ -0,0 +1,186 @@ +# KeyfactorApiModelsOrchestratorJobsJobResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**JobId** | Pointer to **string** | | [optional] +**OrchestratorId** | Pointer to **string** | | [optional] +**JobTypeName** | Pointer to **string** | | [optional] +**Schedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**JobFields** | Pointer to [**[]KeyfactorApiModelsOrchestratorJobsJobFieldResponse**](KeyfactorApiModelsOrchestratorJobsJobFieldResponse.md) | | [optional] +**RequestTimestamp** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewKeyfactorApiModelsOrchestratorJobsJobResponse + +`func NewKeyfactorApiModelsOrchestratorJobsJobResponse() *KeyfactorApiModelsOrchestratorJobsJobResponse` + +NewKeyfactorApiModelsOrchestratorJobsJobResponse instantiates a new KeyfactorApiModelsOrchestratorJobsJobResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsOrchestratorJobsJobResponseWithDefaults + +`func NewKeyfactorApiModelsOrchestratorJobsJobResponseWithDefaults() *KeyfactorApiModelsOrchestratorJobsJobResponse` + +NewKeyfactorApiModelsOrchestratorJobsJobResponseWithDefaults instantiates a new KeyfactorApiModelsOrchestratorJobsJobResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetJobId + +`func (o *KeyfactorApiModelsOrchestratorJobsJobResponse) GetJobId() string` + +GetJobId returns the JobId field if non-nil, zero value otherwise. + +### GetJobIdOk + +`func (o *KeyfactorApiModelsOrchestratorJobsJobResponse) GetJobIdOk() (*string, bool)` + +GetJobIdOk returns a tuple with the JobId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobId + +`func (o *KeyfactorApiModelsOrchestratorJobsJobResponse) SetJobId(v string)` + +SetJobId sets JobId field to given value. + +### HasJobId + +`func (o *KeyfactorApiModelsOrchestratorJobsJobResponse) HasJobId() bool` + +HasJobId returns a boolean if a field has been set. + +### GetOrchestratorId + +`func (o *KeyfactorApiModelsOrchestratorJobsJobResponse) GetOrchestratorId() string` + +GetOrchestratorId returns the OrchestratorId field if non-nil, zero value otherwise. + +### GetOrchestratorIdOk + +`func (o *KeyfactorApiModelsOrchestratorJobsJobResponse) GetOrchestratorIdOk() (*string, bool)` + +GetOrchestratorIdOk returns a tuple with the OrchestratorId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrchestratorId + +`func (o *KeyfactorApiModelsOrchestratorJobsJobResponse) SetOrchestratorId(v string)` + +SetOrchestratorId sets OrchestratorId field to given value. + +### HasOrchestratorId + +`func (o *KeyfactorApiModelsOrchestratorJobsJobResponse) HasOrchestratorId() bool` + +HasOrchestratorId returns a boolean if a field has been set. + +### GetJobTypeName + +`func (o *KeyfactorApiModelsOrchestratorJobsJobResponse) GetJobTypeName() string` + +GetJobTypeName returns the JobTypeName field if non-nil, zero value otherwise. + +### GetJobTypeNameOk + +`func (o *KeyfactorApiModelsOrchestratorJobsJobResponse) GetJobTypeNameOk() (*string, bool)` + +GetJobTypeNameOk returns a tuple with the JobTypeName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobTypeName + +`func (o *KeyfactorApiModelsOrchestratorJobsJobResponse) SetJobTypeName(v string)` + +SetJobTypeName sets JobTypeName field to given value. + +### HasJobTypeName + +`func (o *KeyfactorApiModelsOrchestratorJobsJobResponse) HasJobTypeName() bool` + +HasJobTypeName returns a boolean if a field has been set. + +### GetSchedule + +`func (o *KeyfactorApiModelsOrchestratorJobsJobResponse) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetSchedule returns the Schedule field if non-nil, zero value otherwise. + +### GetScheduleOk + +`func (o *KeyfactorApiModelsOrchestratorJobsJobResponse) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetScheduleOk returns a tuple with the Schedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSchedule + +`func (o *KeyfactorApiModelsOrchestratorJobsJobResponse) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetSchedule sets Schedule field to given value. + +### HasSchedule + +`func (o *KeyfactorApiModelsOrchestratorJobsJobResponse) HasSchedule() bool` + +HasSchedule returns a boolean if a field has been set. + +### GetJobFields + +`func (o *KeyfactorApiModelsOrchestratorJobsJobResponse) GetJobFields() []KeyfactorApiModelsOrchestratorJobsJobFieldResponse` + +GetJobFields returns the JobFields field if non-nil, zero value otherwise. + +### GetJobFieldsOk + +`func (o *KeyfactorApiModelsOrchestratorJobsJobResponse) GetJobFieldsOk() (*[]KeyfactorApiModelsOrchestratorJobsJobFieldResponse, bool)` + +GetJobFieldsOk returns a tuple with the JobFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobFields + +`func (o *KeyfactorApiModelsOrchestratorJobsJobResponse) SetJobFields(v []KeyfactorApiModelsOrchestratorJobsJobFieldResponse)` + +SetJobFields sets JobFields field to given value. + +### HasJobFields + +`func (o *KeyfactorApiModelsOrchestratorJobsJobResponse) HasJobFields() bool` + +HasJobFields returns a boolean if a field has been set. + +### GetRequestTimestamp + +`func (o *KeyfactorApiModelsOrchestratorJobsJobResponse) GetRequestTimestamp() time.Time` + +GetRequestTimestamp returns the RequestTimestamp field if non-nil, zero value otherwise. + +### GetRequestTimestampOk + +`func (o *KeyfactorApiModelsOrchestratorJobsJobResponse) GetRequestTimestampOk() (*time.Time, bool)` + +GetRequestTimestampOk returns a tuple with the RequestTimestamp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestTimestamp + +`func (o *KeyfactorApiModelsOrchestratorJobsJobResponse) SetRequestTimestamp(v time.Time)` + +SetRequestTimestamp sets RequestTimestamp field to given value. + +### HasRequestTimestamp + +`func (o *KeyfactorApiModelsOrchestratorJobsJobResponse) HasRequestTimestamp() bool` + +HasRequestTimestamp returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse.md b/v1/docs/KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse.md new file mode 100644 index 0000000..f7cc4b5 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse.md @@ -0,0 +1,134 @@ +# KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**Type** | Pointer to **int32** | | [optional] +**DefaultValue** | Pointer to **string** | | [optional] +**Required** | Pointer to **bool** | | [optional] + +## Methods + +### NewKeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse + +`func NewKeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse() *KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse` + +NewKeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse instantiates a new KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsOrchestratorJobsJobTypeFieldResponseWithDefaults + +`func NewKeyfactorApiModelsOrchestratorJobsJobTypeFieldResponseWithDefaults() *KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse` + +NewKeyfactorApiModelsOrchestratorJobsJobTypeFieldResponseWithDefaults instantiates a new KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetType + +`func (o *KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse) GetType() int32` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse) GetTypeOk() (*int32, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse) SetType(v int32)` + +SetType sets Type field to given value. + +### HasType + +`func (o *KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetDefaultValue + +`func (o *KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse) GetDefaultValue() string` + +GetDefaultValue returns the DefaultValue field if non-nil, zero value otherwise. + +### GetDefaultValueOk + +`func (o *KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse) GetDefaultValueOk() (*string, bool)` + +GetDefaultValueOk returns a tuple with the DefaultValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultValue + +`func (o *KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse) SetDefaultValue(v string)` + +SetDefaultValue sets DefaultValue field to given value. + +### HasDefaultValue + +`func (o *KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse) HasDefaultValue() bool` + +HasDefaultValue returns a boolean if a field has been set. + +### GetRequired + +`func (o *KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse) GetRequired() bool` + +GetRequired returns the Required field if non-nil, zero value otherwise. + +### GetRequiredOk + +`func (o *KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse) GetRequiredOk() (*bool, bool)` + +GetRequiredOk returns a tuple with the Required field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequired + +`func (o *KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse) SetRequired(v bool)` + +SetRequired sets Required field to given value. + +### HasRequired + +`func (o *KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse) HasRequired() bool` + +HasRequired returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsOrchestratorJobsJobTypeResponse.md b/v1/docs/KeyfactorApiModelsOrchestratorJobsJobTypeResponse.md new file mode 100644 index 0000000..8508650 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsOrchestratorJobsJobTypeResponse.md @@ -0,0 +1,134 @@ +# KeyfactorApiModelsOrchestratorJobsJobTypeResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**JobTypeName** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**JobTypeFields** | Pointer to [**[]KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse**](KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse.md) | | [optional] + +## Methods + +### NewKeyfactorApiModelsOrchestratorJobsJobTypeResponse + +`func NewKeyfactorApiModelsOrchestratorJobsJobTypeResponse() *KeyfactorApiModelsOrchestratorJobsJobTypeResponse` + +NewKeyfactorApiModelsOrchestratorJobsJobTypeResponse instantiates a new KeyfactorApiModelsOrchestratorJobsJobTypeResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsOrchestratorJobsJobTypeResponseWithDefaults + +`func NewKeyfactorApiModelsOrchestratorJobsJobTypeResponseWithDefaults() *KeyfactorApiModelsOrchestratorJobsJobTypeResponse` + +NewKeyfactorApiModelsOrchestratorJobsJobTypeResponseWithDefaults instantiates a new KeyfactorApiModelsOrchestratorJobsJobTypeResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *KeyfactorApiModelsOrchestratorJobsJobTypeResponse) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *KeyfactorApiModelsOrchestratorJobsJobTypeResponse) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *KeyfactorApiModelsOrchestratorJobsJobTypeResponse) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *KeyfactorApiModelsOrchestratorJobsJobTypeResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetJobTypeName + +`func (o *KeyfactorApiModelsOrchestratorJobsJobTypeResponse) GetJobTypeName() string` + +GetJobTypeName returns the JobTypeName field if non-nil, zero value otherwise. + +### GetJobTypeNameOk + +`func (o *KeyfactorApiModelsOrchestratorJobsJobTypeResponse) GetJobTypeNameOk() (*string, bool)` + +GetJobTypeNameOk returns a tuple with the JobTypeName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobTypeName + +`func (o *KeyfactorApiModelsOrchestratorJobsJobTypeResponse) SetJobTypeName(v string)` + +SetJobTypeName sets JobTypeName field to given value. + +### HasJobTypeName + +`func (o *KeyfactorApiModelsOrchestratorJobsJobTypeResponse) HasJobTypeName() bool` + +HasJobTypeName returns a boolean if a field has been set. + +### GetDescription + +`func (o *KeyfactorApiModelsOrchestratorJobsJobTypeResponse) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *KeyfactorApiModelsOrchestratorJobsJobTypeResponse) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *KeyfactorApiModelsOrchestratorJobsJobTypeResponse) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *KeyfactorApiModelsOrchestratorJobsJobTypeResponse) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetJobTypeFields + +`func (o *KeyfactorApiModelsOrchestratorJobsJobTypeResponse) GetJobTypeFields() []KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse` + +GetJobTypeFields returns the JobTypeFields field if non-nil, zero value otherwise. + +### GetJobTypeFieldsOk + +`func (o *KeyfactorApiModelsOrchestratorJobsJobTypeResponse) GetJobTypeFieldsOk() (*[]KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse, bool)` + +GetJobTypeFieldsOk returns a tuple with the JobTypeFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobTypeFields + +`func (o *KeyfactorApiModelsOrchestratorJobsJobTypeResponse) SetJobTypeFields(v []KeyfactorApiModelsOrchestratorJobsJobTypeFieldResponse)` + +SetJobTypeFields sets JobTypeFields field to given value. + +### HasJobTypeFields + +`func (o *KeyfactorApiModelsOrchestratorJobsJobTypeResponse) HasJobTypeFields() bool` + +HasJobTypeFields returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsOrchestratorJobsRescheduleJobRequest.md b/v1/docs/KeyfactorApiModelsOrchestratorJobsRescheduleJobRequest.md new file mode 100644 index 0000000..2994ab6 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsOrchestratorJobsRescheduleJobRequest.md @@ -0,0 +1,82 @@ +# KeyfactorApiModelsOrchestratorJobsRescheduleJobRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**JobAuditIds** | Pointer to **[]int64** | List of orchestrator job audit ids to be rescheduled | [optional] +**Query** | Pointer to **string** | Query identifying orchestrator jobs to be rescheduled | [optional] + +## Methods + +### NewKeyfactorApiModelsOrchestratorJobsRescheduleJobRequest + +`func NewKeyfactorApiModelsOrchestratorJobsRescheduleJobRequest() *KeyfactorApiModelsOrchestratorJobsRescheduleJobRequest` + +NewKeyfactorApiModelsOrchestratorJobsRescheduleJobRequest instantiates a new KeyfactorApiModelsOrchestratorJobsRescheduleJobRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsOrchestratorJobsRescheduleJobRequestWithDefaults + +`func NewKeyfactorApiModelsOrchestratorJobsRescheduleJobRequestWithDefaults() *KeyfactorApiModelsOrchestratorJobsRescheduleJobRequest` + +NewKeyfactorApiModelsOrchestratorJobsRescheduleJobRequestWithDefaults instantiates a new KeyfactorApiModelsOrchestratorJobsRescheduleJobRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetJobAuditIds + +`func (o *KeyfactorApiModelsOrchestratorJobsRescheduleJobRequest) GetJobAuditIds() []int64` + +GetJobAuditIds returns the JobAuditIds field if non-nil, zero value otherwise. + +### GetJobAuditIdsOk + +`func (o *KeyfactorApiModelsOrchestratorJobsRescheduleJobRequest) GetJobAuditIdsOk() (*[]int64, bool)` + +GetJobAuditIdsOk returns a tuple with the JobAuditIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobAuditIds + +`func (o *KeyfactorApiModelsOrchestratorJobsRescheduleJobRequest) SetJobAuditIds(v []int64)` + +SetJobAuditIds sets JobAuditIds field to given value. + +### HasJobAuditIds + +`func (o *KeyfactorApiModelsOrchestratorJobsRescheduleJobRequest) HasJobAuditIds() bool` + +HasJobAuditIds returns a boolean if a field has been set. + +### GetQuery + +`func (o *KeyfactorApiModelsOrchestratorJobsRescheduleJobRequest) GetQuery() string` + +GetQuery returns the Query field if non-nil, zero value otherwise. + +### GetQueryOk + +`func (o *KeyfactorApiModelsOrchestratorJobsRescheduleJobRequest) GetQueryOk() (*string, bool)` + +GetQueryOk returns a tuple with the Query field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuery + +`func (o *KeyfactorApiModelsOrchestratorJobsRescheduleJobRequest) SetQuery(v string)` + +SetQuery sets Query field to given value. + +### HasQuery + +`func (o *KeyfactorApiModelsOrchestratorJobsRescheduleJobRequest) HasQuery() bool` + +HasQuery returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest.md b/v1/docs/KeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest.md new file mode 100644 index 0000000..55b61bc --- /dev/null +++ b/v1/docs/KeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest.md @@ -0,0 +1,82 @@ +# KeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**JobIds** | Pointer to **[]string** | List of orchestrator job ids to be unscheduled | [optional] +**Query** | Pointer to **string** | Query identifying orchestrator jobs to be unscheduled | [optional] + +## Methods + +### NewKeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest + +`func NewKeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest() *KeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest` + +NewKeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest instantiates a new KeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsOrchestratorJobsUnscheduleJobRequestWithDefaults + +`func NewKeyfactorApiModelsOrchestratorJobsUnscheduleJobRequestWithDefaults() *KeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest` + +NewKeyfactorApiModelsOrchestratorJobsUnscheduleJobRequestWithDefaults instantiates a new KeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetJobIds + +`func (o *KeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest) GetJobIds() []string` + +GetJobIds returns the JobIds field if non-nil, zero value otherwise. + +### GetJobIdsOk + +`func (o *KeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest) GetJobIdsOk() (*[]string, bool)` + +GetJobIdsOk returns a tuple with the JobIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobIds + +`func (o *KeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest) SetJobIds(v []string)` + +SetJobIds sets JobIds field to given value. + +### HasJobIds + +`func (o *KeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest) HasJobIds() bool` + +HasJobIds returns a boolean if a field has been set. + +### GetQuery + +`func (o *KeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest) GetQuery() string` + +GetQuery returns the Query field if non-nil, zero value otherwise. + +### GetQueryOk + +`func (o *KeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest) GetQueryOk() (*string, bool)` + +GetQueryOk returns a tuple with the Query field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuery + +`func (o *KeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest) SetQuery(v string)` + +SetQuery sets Query field to given value. + +### HasQuery + +`func (o *KeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest) HasQuery() bool` + +HasQuery returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse.md b/v1/docs/KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse.md new file mode 100644 index 0000000..bab1565 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse.md @@ -0,0 +1,628 @@ +# KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AgentBlueprintJobId** | Pointer to **string** | | [optional] +**AgentBlueprintStoreId** | Pointer to **string** | | [optional] +**AgentBlueprintId** | Pointer to **string** | | [optional] +**JobType** | Pointer to **string** | | [optional] +**JobTypeName** | Pointer to **string** | | [optional] +**OperationType** | Pointer to **int32** | | [optional] +**Thumbprint** | Pointer to **string** | | [optional] +**Contents** | Pointer to **string** | | [optional] +**Alias** | Pointer to **string** | | [optional] +**PrivateKeyEntry** | Pointer to **bool** | | [optional] +**Overwrite** | Pointer to **bool** | | [optional] +**HasEntryPassword** | Pointer to **bool** | | [optional] +**HasPfxPassword** | Pointer to **bool** | | [optional] +**RequestTimestamp** | Pointer to **time.Time** | | [optional] +**KeyfactorSchedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**Subject** | Pointer to **string** | | [optional] +**Directories** | Pointer to **string** | | [optional] +**IgnoredDirectories** | Pointer to **string** | | [optional] +**SymLinks** | Pointer to **bool** | | [optional] +**Compatibility** | Pointer to **bool** | | [optional] +**FileExtensions** | Pointer to **string** | | [optional] +**FileNamePatterns** | Pointer to **string** | | [optional] +**AgentBlueprintStores** | Pointer to [**KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse**](KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse.md) | | [optional] + +## Methods + +### NewKeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse + +`func NewKeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse() *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse` + +NewKeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse instantiates a new KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponseWithDefaults + +`func NewKeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponseWithDefaults() *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse` + +NewKeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponseWithDefaults instantiates a new KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAgentBlueprintJobId + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetAgentBlueprintJobId() string` + +GetAgentBlueprintJobId returns the AgentBlueprintJobId field if non-nil, zero value otherwise. + +### GetAgentBlueprintJobIdOk + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetAgentBlueprintJobIdOk() (*string, bool)` + +GetAgentBlueprintJobIdOk returns a tuple with the AgentBlueprintJobId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentBlueprintJobId + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) SetAgentBlueprintJobId(v string)` + +SetAgentBlueprintJobId sets AgentBlueprintJobId field to given value. + +### HasAgentBlueprintJobId + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) HasAgentBlueprintJobId() bool` + +HasAgentBlueprintJobId returns a boolean if a field has been set. + +### GetAgentBlueprintStoreId + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetAgentBlueprintStoreId() string` + +GetAgentBlueprintStoreId returns the AgentBlueprintStoreId field if non-nil, zero value otherwise. + +### GetAgentBlueprintStoreIdOk + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetAgentBlueprintStoreIdOk() (*string, bool)` + +GetAgentBlueprintStoreIdOk returns a tuple with the AgentBlueprintStoreId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentBlueprintStoreId + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) SetAgentBlueprintStoreId(v string)` + +SetAgentBlueprintStoreId sets AgentBlueprintStoreId field to given value. + +### HasAgentBlueprintStoreId + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) HasAgentBlueprintStoreId() bool` + +HasAgentBlueprintStoreId returns a boolean if a field has been set. + +### GetAgentBlueprintId + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetAgentBlueprintId() string` + +GetAgentBlueprintId returns the AgentBlueprintId field if non-nil, zero value otherwise. + +### GetAgentBlueprintIdOk + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetAgentBlueprintIdOk() (*string, bool)` + +GetAgentBlueprintIdOk returns a tuple with the AgentBlueprintId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentBlueprintId + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) SetAgentBlueprintId(v string)` + +SetAgentBlueprintId sets AgentBlueprintId field to given value. + +### HasAgentBlueprintId + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) HasAgentBlueprintId() bool` + +HasAgentBlueprintId returns a boolean if a field has been set. + +### GetJobType + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetJobType() string` + +GetJobType returns the JobType field if non-nil, zero value otherwise. + +### GetJobTypeOk + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetJobTypeOk() (*string, bool)` + +GetJobTypeOk returns a tuple with the JobType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobType + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) SetJobType(v string)` + +SetJobType sets JobType field to given value. + +### HasJobType + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) HasJobType() bool` + +HasJobType returns a boolean if a field has been set. + +### GetJobTypeName + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetJobTypeName() string` + +GetJobTypeName returns the JobTypeName field if non-nil, zero value otherwise. + +### GetJobTypeNameOk + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetJobTypeNameOk() (*string, bool)` + +GetJobTypeNameOk returns a tuple with the JobTypeName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobTypeName + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) SetJobTypeName(v string)` + +SetJobTypeName sets JobTypeName field to given value. + +### HasJobTypeName + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) HasJobTypeName() bool` + +HasJobTypeName returns a boolean if a field has been set. + +### GetOperationType + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetOperationType() int32` + +GetOperationType returns the OperationType field if non-nil, zero value otherwise. + +### GetOperationTypeOk + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetOperationTypeOk() (*int32, bool)` + +GetOperationTypeOk returns a tuple with the OperationType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperationType + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) SetOperationType(v int32)` + +SetOperationType sets OperationType field to given value. + +### HasOperationType + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) HasOperationType() bool` + +HasOperationType returns a boolean if a field has been set. + +### GetThumbprint + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetThumbprint() string` + +GetThumbprint returns the Thumbprint field if non-nil, zero value otherwise. + +### GetThumbprintOk + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetThumbprintOk() (*string, bool)` + +GetThumbprintOk returns a tuple with the Thumbprint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThumbprint + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) SetThumbprint(v string)` + +SetThumbprint sets Thumbprint field to given value. + +### HasThumbprint + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) HasThumbprint() bool` + +HasThumbprint returns a boolean if a field has been set. + +### GetContents + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetContents() string` + +GetContents returns the Contents field if non-nil, zero value otherwise. + +### GetContentsOk + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetContentsOk() (*string, bool)` + +GetContentsOk returns a tuple with the Contents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContents + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) SetContents(v string)` + +SetContents sets Contents field to given value. + +### HasContents + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) HasContents() bool` + +HasContents returns a boolean if a field has been set. + +### GetAlias + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetAlias() string` + +GetAlias returns the Alias field if non-nil, zero value otherwise. + +### GetAliasOk + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetAliasOk() (*string, bool)` + +GetAliasOk returns a tuple with the Alias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlias + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) SetAlias(v string)` + +SetAlias sets Alias field to given value. + +### HasAlias + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) HasAlias() bool` + +HasAlias returns a boolean if a field has been set. + +### GetPrivateKeyEntry + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetPrivateKeyEntry() bool` + +GetPrivateKeyEntry returns the PrivateKeyEntry field if non-nil, zero value otherwise. + +### GetPrivateKeyEntryOk + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetPrivateKeyEntryOk() (*bool, bool)` + +GetPrivateKeyEntryOk returns a tuple with the PrivateKeyEntry field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivateKeyEntry + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) SetPrivateKeyEntry(v bool)` + +SetPrivateKeyEntry sets PrivateKeyEntry field to given value. + +### HasPrivateKeyEntry + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) HasPrivateKeyEntry() bool` + +HasPrivateKeyEntry returns a boolean if a field has been set. + +### GetOverwrite + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetOverwrite() bool` + +GetOverwrite returns the Overwrite field if non-nil, zero value otherwise. + +### GetOverwriteOk + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetOverwriteOk() (*bool, bool)` + +GetOverwriteOk returns a tuple with the Overwrite field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOverwrite + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) SetOverwrite(v bool)` + +SetOverwrite sets Overwrite field to given value. + +### HasOverwrite + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) HasOverwrite() bool` + +HasOverwrite returns a boolean if a field has been set. + +### GetHasEntryPassword + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetHasEntryPassword() bool` + +GetHasEntryPassword returns the HasEntryPassword field if non-nil, zero value otherwise. + +### GetHasEntryPasswordOk + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetHasEntryPasswordOk() (*bool, bool)` + +GetHasEntryPasswordOk returns a tuple with the HasEntryPassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHasEntryPassword + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) SetHasEntryPassword(v bool)` + +SetHasEntryPassword sets HasEntryPassword field to given value. + +### HasHasEntryPassword + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) HasHasEntryPassword() bool` + +HasHasEntryPassword returns a boolean if a field has been set. + +### GetHasPfxPassword + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetHasPfxPassword() bool` + +GetHasPfxPassword returns the HasPfxPassword field if non-nil, zero value otherwise. + +### GetHasPfxPasswordOk + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetHasPfxPasswordOk() (*bool, bool)` + +GetHasPfxPasswordOk returns a tuple with the HasPfxPassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHasPfxPassword + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) SetHasPfxPassword(v bool)` + +SetHasPfxPassword sets HasPfxPassword field to given value. + +### HasHasPfxPassword + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) HasHasPfxPassword() bool` + +HasHasPfxPassword returns a boolean if a field has been set. + +### GetRequestTimestamp + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetRequestTimestamp() time.Time` + +GetRequestTimestamp returns the RequestTimestamp field if non-nil, zero value otherwise. + +### GetRequestTimestampOk + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetRequestTimestampOk() (*time.Time, bool)` + +GetRequestTimestampOk returns a tuple with the RequestTimestamp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestTimestamp + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) SetRequestTimestamp(v time.Time)` + +SetRequestTimestamp sets RequestTimestamp field to given value. + +### HasRequestTimestamp + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) HasRequestTimestamp() bool` + +HasRequestTimestamp returns a boolean if a field has been set. + +### GetKeyfactorSchedule + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetKeyfactorSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetKeyfactorSchedule returns the KeyfactorSchedule field if non-nil, zero value otherwise. + +### GetKeyfactorScheduleOk + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetKeyfactorScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetKeyfactorScheduleOk returns a tuple with the KeyfactorSchedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyfactorSchedule + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) SetKeyfactorSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetKeyfactorSchedule sets KeyfactorSchedule field to given value. + +### HasKeyfactorSchedule + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) HasKeyfactorSchedule() bool` + +HasKeyfactorSchedule returns a boolean if a field has been set. + +### GetSubject + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetSubject() string` + +GetSubject returns the Subject field if non-nil, zero value otherwise. + +### GetSubjectOk + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetSubjectOk() (*string, bool)` + +GetSubjectOk returns a tuple with the Subject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubject + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) SetSubject(v string)` + +SetSubject sets Subject field to given value. + +### HasSubject + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) HasSubject() bool` + +HasSubject returns a boolean if a field has been set. + +### GetDirectories + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetDirectories() string` + +GetDirectories returns the Directories field if non-nil, zero value otherwise. + +### GetDirectoriesOk + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetDirectoriesOk() (*string, bool)` + +GetDirectoriesOk returns a tuple with the Directories field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDirectories + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) SetDirectories(v string)` + +SetDirectories sets Directories field to given value. + +### HasDirectories + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) HasDirectories() bool` + +HasDirectories returns a boolean if a field has been set. + +### GetIgnoredDirectories + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetIgnoredDirectories() string` + +GetIgnoredDirectories returns the IgnoredDirectories field if non-nil, zero value otherwise. + +### GetIgnoredDirectoriesOk + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetIgnoredDirectoriesOk() (*string, bool)` + +GetIgnoredDirectoriesOk returns a tuple with the IgnoredDirectories field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIgnoredDirectories + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) SetIgnoredDirectories(v string)` + +SetIgnoredDirectories sets IgnoredDirectories field to given value. + +### HasIgnoredDirectories + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) HasIgnoredDirectories() bool` + +HasIgnoredDirectories returns a boolean if a field has been set. + +### GetSymLinks + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetSymLinks() bool` + +GetSymLinks returns the SymLinks field if non-nil, zero value otherwise. + +### GetSymLinksOk + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetSymLinksOk() (*bool, bool)` + +GetSymLinksOk returns a tuple with the SymLinks field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSymLinks + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) SetSymLinks(v bool)` + +SetSymLinks sets SymLinks field to given value. + +### HasSymLinks + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) HasSymLinks() bool` + +HasSymLinks returns a boolean if a field has been set. + +### GetCompatibility + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetCompatibility() bool` + +GetCompatibility returns the Compatibility field if non-nil, zero value otherwise. + +### GetCompatibilityOk + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetCompatibilityOk() (*bool, bool)` + +GetCompatibilityOk returns a tuple with the Compatibility field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCompatibility + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) SetCompatibility(v bool)` + +SetCompatibility sets Compatibility field to given value. + +### HasCompatibility + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) HasCompatibility() bool` + +HasCompatibility returns a boolean if a field has been set. + +### GetFileExtensions + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetFileExtensions() string` + +GetFileExtensions returns the FileExtensions field if non-nil, zero value otherwise. + +### GetFileExtensionsOk + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetFileExtensionsOk() (*string, bool)` + +GetFileExtensionsOk returns a tuple with the FileExtensions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFileExtensions + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) SetFileExtensions(v string)` + +SetFileExtensions sets FileExtensions field to given value. + +### HasFileExtensions + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) HasFileExtensions() bool` + +HasFileExtensions returns a boolean if a field has been set. + +### GetFileNamePatterns + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetFileNamePatterns() string` + +GetFileNamePatterns returns the FileNamePatterns field if non-nil, zero value otherwise. + +### GetFileNamePatternsOk + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetFileNamePatternsOk() (*string, bool)` + +GetFileNamePatternsOk returns a tuple with the FileNamePatterns field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFileNamePatterns + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) SetFileNamePatterns(v string)` + +SetFileNamePatterns sets FileNamePatterns field to given value. + +### HasFileNamePatterns + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) HasFileNamePatterns() bool` + +HasFileNamePatterns returns a boolean if a field has been set. + +### GetAgentBlueprintStores + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetAgentBlueprintStores() KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse` + +GetAgentBlueprintStores returns the AgentBlueprintStores field if non-nil, zero value otherwise. + +### GetAgentBlueprintStoresOk + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) GetAgentBlueprintStoresOk() (*KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse, bool)` + +GetAgentBlueprintStoresOk returns a tuple with the AgentBlueprintStores field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentBlueprintStores + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) SetAgentBlueprintStores(v KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse)` + +SetAgentBlueprintStores sets AgentBlueprintStores field to given value. + +### HasAgentBlueprintStores + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintJobsResponse) HasAgentBlueprintStores() bool` + +HasAgentBlueprintStores returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsOrchestratorsAgentBlueprintResponse.md b/v1/docs/KeyfactorApiModelsOrchestratorsAgentBlueprintResponse.md new file mode 100644 index 0000000..1b1ec2d --- /dev/null +++ b/v1/docs/KeyfactorApiModelsOrchestratorsAgentBlueprintResponse.md @@ -0,0 +1,134 @@ +# KeyfactorApiModelsOrchestratorsAgentBlueprintResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AgentBlueprintId** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**RequiredCapabilities** | Pointer to **[]string** | | [optional] +**LastModified** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewKeyfactorApiModelsOrchestratorsAgentBlueprintResponse + +`func NewKeyfactorApiModelsOrchestratorsAgentBlueprintResponse() *KeyfactorApiModelsOrchestratorsAgentBlueprintResponse` + +NewKeyfactorApiModelsOrchestratorsAgentBlueprintResponse instantiates a new KeyfactorApiModelsOrchestratorsAgentBlueprintResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsOrchestratorsAgentBlueprintResponseWithDefaults + +`func NewKeyfactorApiModelsOrchestratorsAgentBlueprintResponseWithDefaults() *KeyfactorApiModelsOrchestratorsAgentBlueprintResponse` + +NewKeyfactorApiModelsOrchestratorsAgentBlueprintResponseWithDefaults instantiates a new KeyfactorApiModelsOrchestratorsAgentBlueprintResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAgentBlueprintId + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintResponse) GetAgentBlueprintId() string` + +GetAgentBlueprintId returns the AgentBlueprintId field if non-nil, zero value otherwise. + +### GetAgentBlueprintIdOk + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintResponse) GetAgentBlueprintIdOk() (*string, bool)` + +GetAgentBlueprintIdOk returns a tuple with the AgentBlueprintId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentBlueprintId + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintResponse) SetAgentBlueprintId(v string)` + +SetAgentBlueprintId sets AgentBlueprintId field to given value. + +### HasAgentBlueprintId + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintResponse) HasAgentBlueprintId() bool` + +HasAgentBlueprintId returns a boolean if a field has been set. + +### GetName + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetRequiredCapabilities + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintResponse) GetRequiredCapabilities() []string` + +GetRequiredCapabilities returns the RequiredCapabilities field if non-nil, zero value otherwise. + +### GetRequiredCapabilitiesOk + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintResponse) GetRequiredCapabilitiesOk() (*[]string, bool)` + +GetRequiredCapabilitiesOk returns a tuple with the RequiredCapabilities field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequiredCapabilities + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintResponse) SetRequiredCapabilities(v []string)` + +SetRequiredCapabilities sets RequiredCapabilities field to given value. + +### HasRequiredCapabilities + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintResponse) HasRequiredCapabilities() bool` + +HasRequiredCapabilities returns a boolean if a field has been set. + +### GetLastModified + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintResponse) GetLastModified() time.Time` + +GetLastModified returns the LastModified field if non-nil, zero value otherwise. + +### GetLastModifiedOk + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintResponse) GetLastModifiedOk() (*time.Time, bool)` + +GetLastModifiedOk returns a tuple with the LastModified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastModified + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintResponse) SetLastModified(v time.Time)` + +SetLastModified sets LastModified field to given value. + +### HasLastModified + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintResponse) HasLastModified() bool` + +HasLastModified returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse.md b/v1/docs/KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse.md new file mode 100644 index 0000000..944e3c0 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse.md @@ -0,0 +1,264 @@ +# KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AgentBlueprintStoreId** | Pointer to **string** | | [optional] +**AgentBlueprintId** | Pointer to **string** | | [optional] +**StorePath** | Pointer to **string** | | [optional] +**ContainerId** | Pointer to **int32** | | [optional] +**CertStoreType** | Pointer to **int32** | | [optional] +**CertStoreTypeName** | Pointer to **string** | | [optional] +**Approved** | Pointer to **bool** | | [optional] +**CreateIfMissing** | Pointer to **bool** | | [optional] +**Properties** | Pointer to **string** | | [optional] + +## Methods + +### NewKeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse + +`func NewKeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse() *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse` + +NewKeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse instantiates a new KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponseWithDefaults + +`func NewKeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponseWithDefaults() *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse` + +NewKeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponseWithDefaults instantiates a new KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAgentBlueprintStoreId + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) GetAgentBlueprintStoreId() string` + +GetAgentBlueprintStoreId returns the AgentBlueprintStoreId field if non-nil, zero value otherwise. + +### GetAgentBlueprintStoreIdOk + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) GetAgentBlueprintStoreIdOk() (*string, bool)` + +GetAgentBlueprintStoreIdOk returns a tuple with the AgentBlueprintStoreId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentBlueprintStoreId + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) SetAgentBlueprintStoreId(v string)` + +SetAgentBlueprintStoreId sets AgentBlueprintStoreId field to given value. + +### HasAgentBlueprintStoreId + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) HasAgentBlueprintStoreId() bool` + +HasAgentBlueprintStoreId returns a boolean if a field has been set. + +### GetAgentBlueprintId + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) GetAgentBlueprintId() string` + +GetAgentBlueprintId returns the AgentBlueprintId field if non-nil, zero value otherwise. + +### GetAgentBlueprintIdOk + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) GetAgentBlueprintIdOk() (*string, bool)` + +GetAgentBlueprintIdOk returns a tuple with the AgentBlueprintId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentBlueprintId + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) SetAgentBlueprintId(v string)` + +SetAgentBlueprintId sets AgentBlueprintId field to given value. + +### HasAgentBlueprintId + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) HasAgentBlueprintId() bool` + +HasAgentBlueprintId returns a boolean if a field has been set. + +### GetStorePath + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) GetStorePath() string` + +GetStorePath returns the StorePath field if non-nil, zero value otherwise. + +### GetStorePathOk + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) GetStorePathOk() (*string, bool)` + +GetStorePathOk returns a tuple with the StorePath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStorePath + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) SetStorePath(v string)` + +SetStorePath sets StorePath field to given value. + +### HasStorePath + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) HasStorePath() bool` + +HasStorePath returns a boolean if a field has been set. + +### GetContainerId + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) GetContainerId() int32` + +GetContainerId returns the ContainerId field if non-nil, zero value otherwise. + +### GetContainerIdOk + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) GetContainerIdOk() (*int32, bool)` + +GetContainerIdOk returns a tuple with the ContainerId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContainerId + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) SetContainerId(v int32)` + +SetContainerId sets ContainerId field to given value. + +### HasContainerId + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) HasContainerId() bool` + +HasContainerId returns a boolean if a field has been set. + +### GetCertStoreType + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) GetCertStoreType() int32` + +GetCertStoreType returns the CertStoreType field if non-nil, zero value otherwise. + +### GetCertStoreTypeOk + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) GetCertStoreTypeOk() (*int32, bool)` + +GetCertStoreTypeOk returns a tuple with the CertStoreType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertStoreType + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) SetCertStoreType(v int32)` + +SetCertStoreType sets CertStoreType field to given value. + +### HasCertStoreType + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) HasCertStoreType() bool` + +HasCertStoreType returns a boolean if a field has been set. + +### GetCertStoreTypeName + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) GetCertStoreTypeName() string` + +GetCertStoreTypeName returns the CertStoreTypeName field if non-nil, zero value otherwise. + +### GetCertStoreTypeNameOk + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) GetCertStoreTypeNameOk() (*string, bool)` + +GetCertStoreTypeNameOk returns a tuple with the CertStoreTypeName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertStoreTypeName + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) SetCertStoreTypeName(v string)` + +SetCertStoreTypeName sets CertStoreTypeName field to given value. + +### HasCertStoreTypeName + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) HasCertStoreTypeName() bool` + +HasCertStoreTypeName returns a boolean if a field has been set. + +### GetApproved + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) GetApproved() bool` + +GetApproved returns the Approved field if non-nil, zero value otherwise. + +### GetApprovedOk + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) GetApprovedOk() (*bool, bool)` + +GetApprovedOk returns a tuple with the Approved field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApproved + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) SetApproved(v bool)` + +SetApproved sets Approved field to given value. + +### HasApproved + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) HasApproved() bool` + +HasApproved returns a boolean if a field has been set. + +### GetCreateIfMissing + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) GetCreateIfMissing() bool` + +GetCreateIfMissing returns the CreateIfMissing field if non-nil, zero value otherwise. + +### GetCreateIfMissingOk + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) GetCreateIfMissingOk() (*bool, bool)` + +GetCreateIfMissingOk returns a tuple with the CreateIfMissing field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreateIfMissing + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) SetCreateIfMissing(v bool)` + +SetCreateIfMissing sets CreateIfMissing field to given value. + +### HasCreateIfMissing + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) HasCreateIfMissing() bool` + +HasCreateIfMissing returns a boolean if a field has been set. + +### GetProperties + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) GetProperties() string` + +GetProperties returns the Properties field if non-nil, zero value otherwise. + +### GetPropertiesOk + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) GetPropertiesOk() (*string, bool)` + +GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProperties + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) SetProperties(v string)` + +SetProperties sets Properties field to given value. + +### HasProperties + +`func (o *KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse) HasProperties() bool` + +HasProperties returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsOrchestratorsAgentResponse.md b/v1/docs/KeyfactorApiModelsOrchestratorsAgentResponse.md new file mode 100644 index 0000000..18f253d --- /dev/null +++ b/v1/docs/KeyfactorApiModelsOrchestratorsAgentResponse.md @@ -0,0 +1,420 @@ +# KeyfactorApiModelsOrchestratorsAgentResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AgentId** | Pointer to **string** | | [optional] +**ClientMachine** | Pointer to **string** | | [optional] +**Username** | Pointer to **string** | | [optional] +**AgentPlatform** | Pointer to **int32** | | [optional] +**Version** | Pointer to **string** | | [optional] +**Status** | Pointer to **int32** | | [optional] +**LastSeen** | Pointer to **time.Time** | | [optional] +**Capabilities** | Pointer to **[]string** | | [optional] +**Blueprint** | Pointer to **string** | | [optional] +**Thumbprint** | Pointer to **string** | | [optional] +**LegacyThumbprint** | Pointer to **string** | | [optional] +**AuthCertificateReenrollment** | Pointer to **string** | | [optional] +**LastThumbprintUsed** | Pointer to **string** | | [optional] +**LastErrorCode** | Pointer to **int64** | | [optional] +**LastErrorMessage** | Pointer to **string** | | [optional] + +## Methods + +### NewKeyfactorApiModelsOrchestratorsAgentResponse + +`func NewKeyfactorApiModelsOrchestratorsAgentResponse() *KeyfactorApiModelsOrchestratorsAgentResponse` + +NewKeyfactorApiModelsOrchestratorsAgentResponse instantiates a new KeyfactorApiModelsOrchestratorsAgentResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsOrchestratorsAgentResponseWithDefaults + +`func NewKeyfactorApiModelsOrchestratorsAgentResponseWithDefaults() *KeyfactorApiModelsOrchestratorsAgentResponse` + +NewKeyfactorApiModelsOrchestratorsAgentResponseWithDefaults instantiates a new KeyfactorApiModelsOrchestratorsAgentResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAgentId + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetAgentId() string` + +GetAgentId returns the AgentId field if non-nil, zero value otherwise. + +### GetAgentIdOk + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetAgentIdOk() (*string, bool)` + +GetAgentIdOk returns a tuple with the AgentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentId + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) SetAgentId(v string)` + +SetAgentId sets AgentId field to given value. + +### HasAgentId + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) HasAgentId() bool` + +HasAgentId returns a boolean if a field has been set. + +### GetClientMachine + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetClientMachine() string` + +GetClientMachine returns the ClientMachine field if non-nil, zero value otherwise. + +### GetClientMachineOk + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetClientMachineOk() (*string, bool)` + +GetClientMachineOk returns a tuple with the ClientMachine field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientMachine + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) SetClientMachine(v string)` + +SetClientMachine sets ClientMachine field to given value. + +### HasClientMachine + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) HasClientMachine() bool` + +HasClientMachine returns a boolean if a field has been set. + +### GetUsername + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + +### GetAgentPlatform + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetAgentPlatform() int32` + +GetAgentPlatform returns the AgentPlatform field if non-nil, zero value otherwise. + +### GetAgentPlatformOk + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetAgentPlatformOk() (*int32, bool)` + +GetAgentPlatformOk returns a tuple with the AgentPlatform field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentPlatform + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) SetAgentPlatform(v int32)` + +SetAgentPlatform sets AgentPlatform field to given value. + +### HasAgentPlatform + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) HasAgentPlatform() bool` + +HasAgentPlatform returns a boolean if a field has been set. + +### GetVersion + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) SetVersion(v string)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) HasVersion() bool` + +HasVersion returns a boolean if a field has been set. + +### GetStatus + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetStatus() int32` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetStatusOk() (*int32, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) SetStatus(v int32)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetLastSeen + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetLastSeen() time.Time` + +GetLastSeen returns the LastSeen field if non-nil, zero value otherwise. + +### GetLastSeenOk + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetLastSeenOk() (*time.Time, bool)` + +GetLastSeenOk returns a tuple with the LastSeen field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastSeen + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) SetLastSeen(v time.Time)` + +SetLastSeen sets LastSeen field to given value. + +### HasLastSeen + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) HasLastSeen() bool` + +HasLastSeen returns a boolean if a field has been set. + +### GetCapabilities + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetCapabilities() []string` + +GetCapabilities returns the Capabilities field if non-nil, zero value otherwise. + +### GetCapabilitiesOk + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetCapabilitiesOk() (*[]string, bool)` + +GetCapabilitiesOk returns a tuple with the Capabilities field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCapabilities + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) SetCapabilities(v []string)` + +SetCapabilities sets Capabilities field to given value. + +### HasCapabilities + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) HasCapabilities() bool` + +HasCapabilities returns a boolean if a field has been set. + +### GetBlueprint + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetBlueprint() string` + +GetBlueprint returns the Blueprint field if non-nil, zero value otherwise. + +### GetBlueprintOk + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetBlueprintOk() (*string, bool)` + +GetBlueprintOk returns a tuple with the Blueprint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlueprint + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) SetBlueprint(v string)` + +SetBlueprint sets Blueprint field to given value. + +### HasBlueprint + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) HasBlueprint() bool` + +HasBlueprint returns a boolean if a field has been set. + +### GetThumbprint + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetThumbprint() string` + +GetThumbprint returns the Thumbprint field if non-nil, zero value otherwise. + +### GetThumbprintOk + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetThumbprintOk() (*string, bool)` + +GetThumbprintOk returns a tuple with the Thumbprint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThumbprint + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) SetThumbprint(v string)` + +SetThumbprint sets Thumbprint field to given value. + +### HasThumbprint + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) HasThumbprint() bool` + +HasThumbprint returns a boolean if a field has been set. + +### GetLegacyThumbprint + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetLegacyThumbprint() string` + +GetLegacyThumbprint returns the LegacyThumbprint field if non-nil, zero value otherwise. + +### GetLegacyThumbprintOk + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetLegacyThumbprintOk() (*string, bool)` + +GetLegacyThumbprintOk returns a tuple with the LegacyThumbprint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLegacyThumbprint + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) SetLegacyThumbprint(v string)` + +SetLegacyThumbprint sets LegacyThumbprint field to given value. + +### HasLegacyThumbprint + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) HasLegacyThumbprint() bool` + +HasLegacyThumbprint returns a boolean if a field has been set. + +### GetAuthCertificateReenrollment + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetAuthCertificateReenrollment() string` + +GetAuthCertificateReenrollment returns the AuthCertificateReenrollment field if non-nil, zero value otherwise. + +### GetAuthCertificateReenrollmentOk + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetAuthCertificateReenrollmentOk() (*string, bool)` + +GetAuthCertificateReenrollmentOk returns a tuple with the AuthCertificateReenrollment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthCertificateReenrollment + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) SetAuthCertificateReenrollment(v string)` + +SetAuthCertificateReenrollment sets AuthCertificateReenrollment field to given value. + +### HasAuthCertificateReenrollment + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) HasAuthCertificateReenrollment() bool` + +HasAuthCertificateReenrollment returns a boolean if a field has been set. + +### GetLastThumbprintUsed + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetLastThumbprintUsed() string` + +GetLastThumbprintUsed returns the LastThumbprintUsed field if non-nil, zero value otherwise. + +### GetLastThumbprintUsedOk + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetLastThumbprintUsedOk() (*string, bool)` + +GetLastThumbprintUsedOk returns a tuple with the LastThumbprintUsed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastThumbprintUsed + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) SetLastThumbprintUsed(v string)` + +SetLastThumbprintUsed sets LastThumbprintUsed field to given value. + +### HasLastThumbprintUsed + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) HasLastThumbprintUsed() bool` + +HasLastThumbprintUsed returns a boolean if a field has been set. + +### GetLastErrorCode + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetLastErrorCode() int64` + +GetLastErrorCode returns the LastErrorCode field if non-nil, zero value otherwise. + +### GetLastErrorCodeOk + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetLastErrorCodeOk() (*int64, bool)` + +GetLastErrorCodeOk returns a tuple with the LastErrorCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastErrorCode + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) SetLastErrorCode(v int64)` + +SetLastErrorCode sets LastErrorCode field to given value. + +### HasLastErrorCode + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) HasLastErrorCode() bool` + +HasLastErrorCode returns a boolean if a field has been set. + +### GetLastErrorMessage + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetLastErrorMessage() string` + +GetLastErrorMessage returns the LastErrorMessage field if non-nil, zero value otherwise. + +### GetLastErrorMessageOk + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetLastErrorMessageOk() (*string, bool)` + +GetLastErrorMessageOk returns a tuple with the LastErrorMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastErrorMessage + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) SetLastErrorMessage(v string)` + +SetLastErrorMessage sets LastErrorMessage field to given value. + +### HasLastErrorMessage + +`func (o *KeyfactorApiModelsOrchestratorsAgentResponse) HasLastErrorMessage() bool` + +HasLastErrorMessage returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest.md b/v1/docs/KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest.md new file mode 100644 index 0000000..7279cc6 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest.md @@ -0,0 +1,77 @@ +# KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrchestratorIds** | Pointer to **[]string** | | [optional] +**Status** | **string** | | + +## Methods + +### NewKeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest + +`func NewKeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest(status string, ) *KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest` + +NewKeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest instantiates a new KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequestWithDefaults + +`func NewKeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequestWithDefaults() *KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest` + +NewKeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequestWithDefaults instantiates a new KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetOrchestratorIds + +`func (o *KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) GetOrchestratorIds() []string` + +GetOrchestratorIds returns the OrchestratorIds field if non-nil, zero value otherwise. + +### GetOrchestratorIdsOk + +`func (o *KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) GetOrchestratorIdsOk() (*[]string, bool)` + +GetOrchestratorIdsOk returns a tuple with the OrchestratorIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrchestratorIds + +`func (o *KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) SetOrchestratorIds(v []string)` + +SetOrchestratorIds sets OrchestratorIds field to given value. + +### HasOrchestratorIds + +`func (o *KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) HasOrchestratorIds() bool` + +HasOrchestratorIds returns a boolean if a field has been set. + +### GetStatus + +`func (o *KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentRequest) SetStatus(v string)` + +SetStatus sets Status field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse.md b/v1/docs/KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse.md new file mode 100644 index 0000000..92436c8 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse.md @@ -0,0 +1,82 @@ +# KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FailedOrchestratorIds** | Pointer to **[]string** | | [optional] +**Status** | Pointer to **int32** | | [optional] + +## Methods + +### NewKeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse + +`func NewKeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse() *KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse` + +NewKeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse instantiates a new KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponseWithDefaults + +`func NewKeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponseWithDefaults() *KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse` + +NewKeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponseWithDefaults instantiates a new KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFailedOrchestratorIds + +`func (o *KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) GetFailedOrchestratorIds() []string` + +GetFailedOrchestratorIds returns the FailedOrchestratorIds field if non-nil, zero value otherwise. + +### GetFailedOrchestratorIdsOk + +`func (o *KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) GetFailedOrchestratorIdsOk() (*[]string, bool)` + +GetFailedOrchestratorIdsOk returns a tuple with the FailedOrchestratorIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFailedOrchestratorIds + +`func (o *KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) SetFailedOrchestratorIds(v []string)` + +SetFailedOrchestratorIds sets FailedOrchestratorIds field to given value. + +### HasFailedOrchestratorIds + +`func (o *KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) HasFailedOrchestratorIds() bool` + +HasFailedOrchestratorIds returns a boolean if a field has been set. + +### GetStatus + +`func (o *KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) GetStatus() int32` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) GetStatusOk() (*int32, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) SetStatus(v int32)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *KeyfactorApiModelsOrchestratorsUpdateOrchestratorAuthCertificateReenrollmentResponse) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsSecurityRolesAreaPermissionResponse.md b/v1/docs/KeyfactorApiModelsSecurityRolesAreaPermissionResponse.md new file mode 100644 index 0000000..629d423 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsSecurityRolesAreaPermissionResponse.md @@ -0,0 +1,108 @@ +# KeyfactorApiModelsSecurityRolesAreaPermissionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **string** | | [optional] +**Area** | Pointer to **string** | | [optional] +**Permission** | Pointer to **string** | | [optional] + +## Methods + +### NewKeyfactorApiModelsSecurityRolesAreaPermissionResponse + +`func NewKeyfactorApiModelsSecurityRolesAreaPermissionResponse() *KeyfactorApiModelsSecurityRolesAreaPermissionResponse` + +NewKeyfactorApiModelsSecurityRolesAreaPermissionResponse instantiates a new KeyfactorApiModelsSecurityRolesAreaPermissionResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsSecurityRolesAreaPermissionResponseWithDefaults + +`func NewKeyfactorApiModelsSecurityRolesAreaPermissionResponseWithDefaults() *KeyfactorApiModelsSecurityRolesAreaPermissionResponse` + +NewKeyfactorApiModelsSecurityRolesAreaPermissionResponseWithDefaults instantiates a new KeyfactorApiModelsSecurityRolesAreaPermissionResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *KeyfactorApiModelsSecurityRolesAreaPermissionResponse) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *KeyfactorApiModelsSecurityRolesAreaPermissionResponse) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *KeyfactorApiModelsSecurityRolesAreaPermissionResponse) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *KeyfactorApiModelsSecurityRolesAreaPermissionResponse) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetArea + +`func (o *KeyfactorApiModelsSecurityRolesAreaPermissionResponse) GetArea() string` + +GetArea returns the Area field if non-nil, zero value otherwise. + +### GetAreaOk + +`func (o *KeyfactorApiModelsSecurityRolesAreaPermissionResponse) GetAreaOk() (*string, bool)` + +GetAreaOk returns a tuple with the Area field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArea + +`func (o *KeyfactorApiModelsSecurityRolesAreaPermissionResponse) SetArea(v string)` + +SetArea sets Area field to given value. + +### HasArea + +`func (o *KeyfactorApiModelsSecurityRolesAreaPermissionResponse) HasArea() bool` + +HasArea returns a boolean if a field has been set. + +### GetPermission + +`func (o *KeyfactorApiModelsSecurityRolesAreaPermissionResponse) GetPermission() string` + +GetPermission returns the Permission field if non-nil, zero value otherwise. + +### GetPermissionOk + +`func (o *KeyfactorApiModelsSecurityRolesAreaPermissionResponse) GetPermissionOk() (*string, bool)` + +GetPermissionOk returns a tuple with the Permission field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermission + +`func (o *KeyfactorApiModelsSecurityRolesAreaPermissionResponse) SetPermission(v string)` + +SetPermission sets Permission field to given value. + +### HasPermission + +`func (o *KeyfactorApiModelsSecurityRolesAreaPermissionResponse) HasPermission() bool` + +HasPermission returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsSecurityRolesContainerPermissionRequest.md b/v1/docs/KeyfactorApiModelsSecurityRolesContainerPermissionRequest.md new file mode 100644 index 0000000..d25ce9e --- /dev/null +++ b/v1/docs/KeyfactorApiModelsSecurityRolesContainerPermissionRequest.md @@ -0,0 +1,82 @@ +# KeyfactorApiModelsSecurityRolesContainerPermissionRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ContainerId** | Pointer to **int32** | | [optional] +**Permission** | Pointer to **string** | | [optional] + +## Methods + +### NewKeyfactorApiModelsSecurityRolesContainerPermissionRequest + +`func NewKeyfactorApiModelsSecurityRolesContainerPermissionRequest() *KeyfactorApiModelsSecurityRolesContainerPermissionRequest` + +NewKeyfactorApiModelsSecurityRolesContainerPermissionRequest instantiates a new KeyfactorApiModelsSecurityRolesContainerPermissionRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsSecurityRolesContainerPermissionRequestWithDefaults + +`func NewKeyfactorApiModelsSecurityRolesContainerPermissionRequestWithDefaults() *KeyfactorApiModelsSecurityRolesContainerPermissionRequest` + +NewKeyfactorApiModelsSecurityRolesContainerPermissionRequestWithDefaults instantiates a new KeyfactorApiModelsSecurityRolesContainerPermissionRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetContainerId + +`func (o *KeyfactorApiModelsSecurityRolesContainerPermissionRequest) GetContainerId() int32` + +GetContainerId returns the ContainerId field if non-nil, zero value otherwise. + +### GetContainerIdOk + +`func (o *KeyfactorApiModelsSecurityRolesContainerPermissionRequest) GetContainerIdOk() (*int32, bool)` + +GetContainerIdOk returns a tuple with the ContainerId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContainerId + +`func (o *KeyfactorApiModelsSecurityRolesContainerPermissionRequest) SetContainerId(v int32)` + +SetContainerId sets ContainerId field to given value. + +### HasContainerId + +`func (o *KeyfactorApiModelsSecurityRolesContainerPermissionRequest) HasContainerId() bool` + +HasContainerId returns a boolean if a field has been set. + +### GetPermission + +`func (o *KeyfactorApiModelsSecurityRolesContainerPermissionRequest) GetPermission() string` + +GetPermission returns the Permission field if non-nil, zero value otherwise. + +### GetPermissionOk + +`func (o *KeyfactorApiModelsSecurityRolesContainerPermissionRequest) GetPermissionOk() (*string, bool)` + +GetPermissionOk returns a tuple with the Permission field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermission + +`func (o *KeyfactorApiModelsSecurityRolesContainerPermissionRequest) SetPermission(v string)` + +SetPermission sets Permission field to given value. + +### HasPermission + +`func (o *KeyfactorApiModelsSecurityRolesContainerPermissionRequest) HasPermission() bool` + +HasPermission returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsSecurityRolesContainerPermissionResponse.md b/v1/docs/KeyfactorApiModelsSecurityRolesContainerPermissionResponse.md new file mode 100644 index 0000000..d96bf87 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsSecurityRolesContainerPermissionResponse.md @@ -0,0 +1,108 @@ +# KeyfactorApiModelsSecurityRolesContainerPermissionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ContainerId** | Pointer to **int32** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Permission** | Pointer to **string** | | [optional] + +## Methods + +### NewKeyfactorApiModelsSecurityRolesContainerPermissionResponse + +`func NewKeyfactorApiModelsSecurityRolesContainerPermissionResponse() *KeyfactorApiModelsSecurityRolesContainerPermissionResponse` + +NewKeyfactorApiModelsSecurityRolesContainerPermissionResponse instantiates a new KeyfactorApiModelsSecurityRolesContainerPermissionResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsSecurityRolesContainerPermissionResponseWithDefaults + +`func NewKeyfactorApiModelsSecurityRolesContainerPermissionResponseWithDefaults() *KeyfactorApiModelsSecurityRolesContainerPermissionResponse` + +NewKeyfactorApiModelsSecurityRolesContainerPermissionResponseWithDefaults instantiates a new KeyfactorApiModelsSecurityRolesContainerPermissionResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetContainerId + +`func (o *KeyfactorApiModelsSecurityRolesContainerPermissionResponse) GetContainerId() int32` + +GetContainerId returns the ContainerId field if non-nil, zero value otherwise. + +### GetContainerIdOk + +`func (o *KeyfactorApiModelsSecurityRolesContainerPermissionResponse) GetContainerIdOk() (*int32, bool)` + +GetContainerIdOk returns a tuple with the ContainerId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContainerId + +`func (o *KeyfactorApiModelsSecurityRolesContainerPermissionResponse) SetContainerId(v int32)` + +SetContainerId sets ContainerId field to given value. + +### HasContainerId + +`func (o *KeyfactorApiModelsSecurityRolesContainerPermissionResponse) HasContainerId() bool` + +HasContainerId returns a boolean if a field has been set. + +### GetName + +`func (o *KeyfactorApiModelsSecurityRolesContainerPermissionResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *KeyfactorApiModelsSecurityRolesContainerPermissionResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *KeyfactorApiModelsSecurityRolesContainerPermissionResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *KeyfactorApiModelsSecurityRolesContainerPermissionResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetPermission + +`func (o *KeyfactorApiModelsSecurityRolesContainerPermissionResponse) GetPermission() string` + +GetPermission returns the Permission field if non-nil, zero value otherwise. + +### GetPermissionOk + +`func (o *KeyfactorApiModelsSecurityRolesContainerPermissionResponse) GetPermissionOk() (*string, bool)` + +GetPermissionOk returns a tuple with the Permission field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermission + +`func (o *KeyfactorApiModelsSecurityRolesContainerPermissionResponse) SetPermission(v string)` + +SetPermission sets Permission field to given value. + +### HasPermission + +`func (o *KeyfactorApiModelsSecurityRolesContainerPermissionResponse) HasPermission() bool` + +HasPermission returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest.md b/v1/docs/KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest.md new file mode 100644 index 0000000..ba9c136 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest.md @@ -0,0 +1,82 @@ +# KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CollectionId** | Pointer to **int32** | | [optional] +**Permission** | Pointer to **string** | | [optional] + +## Methods + +### NewKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest + +`func NewKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest() *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest` + +NewKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest instantiates a new KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequestWithDefaults + +`func NewKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequestWithDefaults() *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest` + +NewKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequestWithDefaults instantiates a new KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCollectionId + +`func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest) GetCollectionId() int32` + +GetCollectionId returns the CollectionId field if non-nil, zero value otherwise. + +### GetCollectionIdOk + +`func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest) GetCollectionIdOk() (*int32, bool)` + +GetCollectionIdOk returns a tuple with the CollectionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCollectionId + +`func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest) SetCollectionId(v int32)` + +SetCollectionId sets CollectionId field to given value. + +### HasCollectionId + +`func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest) HasCollectionId() bool` + +HasCollectionId returns a boolean if a field has been set. + +### GetPermission + +`func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest) GetPermission() string` + +GetPermission returns the Permission field if non-nil, zero value otherwise. + +### GetPermissionOk + +`func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest) GetPermissionOk() (*string, bool)` + +GetPermissionOk returns a tuple with the Permission field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermission + +`func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest) SetPermission(v string)` + +SetPermission sets Permission field to given value. + +### HasPermission + +`func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest) HasPermission() bool` + +HasPermission returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse.md b/v1/docs/KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse.md new file mode 100644 index 0000000..6513fae --- /dev/null +++ b/v1/docs/KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse.md @@ -0,0 +1,108 @@ +# KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CollectionId** | Pointer to **int32** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Permission** | Pointer to **string** | | [optional] + +## Methods + +### NewKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse + +`func NewKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse() *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse` + +NewKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse instantiates a new KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponseWithDefaults + +`func NewKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponseWithDefaults() *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse` + +NewKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponseWithDefaults instantiates a new KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCollectionId + +`func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse) GetCollectionId() int32` + +GetCollectionId returns the CollectionId field if non-nil, zero value otherwise. + +### GetCollectionIdOk + +`func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse) GetCollectionIdOk() (*int32, bool)` + +GetCollectionIdOk returns a tuple with the CollectionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCollectionId + +`func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse) SetCollectionId(v int32)` + +SetCollectionId sets CollectionId field to given value. + +### HasCollectionId + +`func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse) HasCollectionId() bool` + +HasCollectionId returns a boolean if a field has been set. + +### GetName + +`func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetPermission + +`func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse) GetPermission() string` + +GetPermission returns the Permission field if non-nil, zero value otherwise. + +### GetPermissionOk + +`func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse) GetPermissionOk() (*string, bool)` + +GetPermissionOk returns a tuple with the Permission field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermission + +`func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse) SetPermission(v string)` + +SetPermission sets Permission field to given value. + +### HasPermission + +`func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse) HasPermission() bool` + +HasPermission returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest.md b/v1/docs/KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest.md new file mode 100644 index 0000000..2ea72fe --- /dev/null +++ b/v1/docs/KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest.md @@ -0,0 +1,82 @@ +# KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Area** | Pointer to **string** | | [optional] +**Permission** | Pointer to **string** | | [optional] + +## Methods + +### NewKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest + +`func NewKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest() *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest` + +NewKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest instantiates a new KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequestWithDefaults + +`func NewKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequestWithDefaults() *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest` + +NewKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequestWithDefaults instantiates a new KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetArea + +`func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest) GetArea() string` + +GetArea returns the Area field if non-nil, zero value otherwise. + +### GetAreaOk + +`func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest) GetAreaOk() (*string, bool)` + +GetAreaOk returns a tuple with the Area field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArea + +`func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest) SetArea(v string)` + +SetArea sets Area field to given value. + +### HasArea + +`func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest) HasArea() bool` + +HasArea returns a boolean if a field has been set. + +### GetPermission + +`func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest) GetPermission() string` + +GetPermission returns the Permission field if non-nil, zero value otherwise. + +### GetPermissionOk + +`func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest) GetPermissionOk() (*string, bool)` + +GetPermissionOk returns a tuple with the Permission field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermission + +`func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest) SetPermission(v string)` + +SetPermission sets Permission field to given value. + +### HasPermission + +`func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest) HasPermission() bool` + +HasPermission returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse.md b/v1/docs/KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse.md new file mode 100644 index 0000000..efdbb61 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse.md @@ -0,0 +1,82 @@ +# KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Area** | Pointer to **string** | | [optional] +**Permission** | Pointer to **string** | | [optional] + +## Methods + +### NewKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse + +`func NewKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse() *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse` + +NewKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse instantiates a new KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponseWithDefaults + +`func NewKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponseWithDefaults() *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse` + +NewKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponseWithDefaults instantiates a new KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetArea + +`func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse) GetArea() string` + +GetArea returns the Area field if non-nil, zero value otherwise. + +### GetAreaOk + +`func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse) GetAreaOk() (*string, bool)` + +GetAreaOk returns a tuple with the Area field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArea + +`func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse) SetArea(v string)` + +SetArea sets Area field to given value. + +### HasArea + +`func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse) HasArea() bool` + +HasArea returns a boolean if a field has been set. + +### GetPermission + +`func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse) GetPermission() string` + +GetPermission returns the Permission field if non-nil, zero value otherwise. + +### GetPermissionOk + +`func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse) GetPermissionOk() (*string, bool)` + +GetPermissionOk returns a tuple with the Permission field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermission + +`func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse) SetPermission(v string)` + +SetPermission sets Permission field to given value. + +### HasPermission + +`func (o *KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse) HasPermission() bool` + +HasPermission returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsSecurityRolesRoleIdentitiesRequest.md b/v1/docs/KeyfactorApiModelsSecurityRolesRoleIdentitiesRequest.md new file mode 100644 index 0000000..502d70f --- /dev/null +++ b/v1/docs/KeyfactorApiModelsSecurityRolesRoleIdentitiesRequest.md @@ -0,0 +1,56 @@ +# KeyfactorApiModelsSecurityRolesRoleIdentitiesRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Ids** | Pointer to **[]int32** | | [optional] + +## Methods + +### NewKeyfactorApiModelsSecurityRolesRoleIdentitiesRequest + +`func NewKeyfactorApiModelsSecurityRolesRoleIdentitiesRequest() *KeyfactorApiModelsSecurityRolesRoleIdentitiesRequest` + +NewKeyfactorApiModelsSecurityRolesRoleIdentitiesRequest instantiates a new KeyfactorApiModelsSecurityRolesRoleIdentitiesRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsSecurityRolesRoleIdentitiesRequestWithDefaults + +`func NewKeyfactorApiModelsSecurityRolesRoleIdentitiesRequestWithDefaults() *KeyfactorApiModelsSecurityRolesRoleIdentitiesRequest` + +NewKeyfactorApiModelsSecurityRolesRoleIdentitiesRequestWithDefaults instantiates a new KeyfactorApiModelsSecurityRolesRoleIdentitiesRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetIds + +`func (o *KeyfactorApiModelsSecurityRolesRoleIdentitiesRequest) GetIds() []int32` + +GetIds returns the Ids field if non-nil, zero value otherwise. + +### GetIdsOk + +`func (o *KeyfactorApiModelsSecurityRolesRoleIdentitiesRequest) GetIdsOk() (*[]int32, bool)` + +GetIdsOk returns a tuple with the Ids field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIds + +`func (o *KeyfactorApiModelsSecurityRolesRoleIdentitiesRequest) SetIds(v []int32)` + +SetIds sets Ids field to given value. + +### HasIds + +`func (o *KeyfactorApiModelsSecurityRolesRoleIdentitiesRequest) HasIds() bool` + +HasIds returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse.md b/v1/docs/KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse.md new file mode 100644 index 0000000..fe9bfb9 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse.md @@ -0,0 +1,82 @@ +# KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Name** | Pointer to **string** | | [optional] + +## Methods + +### NewKeyfactorApiModelsSecurityRolesRoleIdentitiesResponse + +`func NewKeyfactorApiModelsSecurityRolesRoleIdentitiesResponse() *KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse` + +NewKeyfactorApiModelsSecurityRolesRoleIdentitiesResponse instantiates a new KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsSecurityRolesRoleIdentitiesResponseWithDefaults + +`func NewKeyfactorApiModelsSecurityRolesRoleIdentitiesResponseWithDefaults() *KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse` + +NewKeyfactorApiModelsSecurityRolesRoleIdentitiesResponseWithDefaults instantiates a new KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest.md b/v1/docs/KeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest.md new file mode 100644 index 0000000..ae1646c --- /dev/null +++ b/v1/docs/KeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest.md @@ -0,0 +1,82 @@ +# KeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewKeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest + +`func NewKeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest() *KeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest` + +NewKeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest instantiates a new KeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsSecurityRolesSecurityRoleCopyRequestWithDefaults + +`func NewKeyfactorApiModelsSecurityRolesSecurityRoleCopyRequestWithDefaults() *KeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest` + +NewKeyfactorApiModelsSecurityRolesSecurityRoleCopyRequestWithDefaults instantiates a new KeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *KeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *KeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *KeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *KeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDescription + +`func (o *KeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *KeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *KeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *KeyfactorApiModelsSecurityRolesSecurityRoleCopyRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsSslCreateNetworkRequest.md b/v1/docs/KeyfactorApiModelsSslCreateNetworkRequest.md new file mode 100644 index 0000000..57628fe --- /dev/null +++ b/v1/docs/KeyfactorApiModelsSslCreateNetworkRequest.md @@ -0,0 +1,353 @@ +# KeyfactorApiModelsSslCreateNetworkRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**AgentPoolName** | **string** | | +**Description** | **string** | | +**Enabled** | Pointer to **bool** | | [optional] +**DiscoverSchedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**MonitorSchedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**SslAlertRecipients** | Pointer to **[]string** | | [optional] +**AutoMonitor** | Pointer to **bool** | | [optional] +**GetRobots** | Pointer to **bool** | | [optional] +**DiscoverTimeoutMs** | Pointer to **float64** | | [optional] +**MonitorTimeoutMs** | Pointer to **float64** | | [optional] +**ExpirationAlertDays** | Pointer to **float64** | | [optional] +**QuietHours** | Pointer to [**[]KeyfactorApiModelsSslQuietHourRequest**](KeyfactorApiModelsSslQuietHourRequest.md) | | [optional] + +## Methods + +### NewKeyfactorApiModelsSslCreateNetworkRequest + +`func NewKeyfactorApiModelsSslCreateNetworkRequest(name string, agentPoolName string, description string, ) *KeyfactorApiModelsSslCreateNetworkRequest` + +NewKeyfactorApiModelsSslCreateNetworkRequest instantiates a new KeyfactorApiModelsSslCreateNetworkRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsSslCreateNetworkRequestWithDefaults + +`func NewKeyfactorApiModelsSslCreateNetworkRequestWithDefaults() *KeyfactorApiModelsSslCreateNetworkRequest` + +NewKeyfactorApiModelsSslCreateNetworkRequestWithDefaults instantiates a new KeyfactorApiModelsSslCreateNetworkRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *KeyfactorApiModelsSslCreateNetworkRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *KeyfactorApiModelsSslCreateNetworkRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *KeyfactorApiModelsSslCreateNetworkRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetAgentPoolName + +`func (o *KeyfactorApiModelsSslCreateNetworkRequest) GetAgentPoolName() string` + +GetAgentPoolName returns the AgentPoolName field if non-nil, zero value otherwise. + +### GetAgentPoolNameOk + +`func (o *KeyfactorApiModelsSslCreateNetworkRequest) GetAgentPoolNameOk() (*string, bool)` + +GetAgentPoolNameOk returns a tuple with the AgentPoolName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentPoolName + +`func (o *KeyfactorApiModelsSslCreateNetworkRequest) SetAgentPoolName(v string)` + +SetAgentPoolName sets AgentPoolName field to given value. + + +### GetDescription + +`func (o *KeyfactorApiModelsSslCreateNetworkRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *KeyfactorApiModelsSslCreateNetworkRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *KeyfactorApiModelsSslCreateNetworkRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + + +### GetEnabled + +`func (o *KeyfactorApiModelsSslCreateNetworkRequest) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *KeyfactorApiModelsSslCreateNetworkRequest) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *KeyfactorApiModelsSslCreateNetworkRequest) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *KeyfactorApiModelsSslCreateNetworkRequest) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetDiscoverSchedule + +`func (o *KeyfactorApiModelsSslCreateNetworkRequest) GetDiscoverSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetDiscoverSchedule returns the DiscoverSchedule field if non-nil, zero value otherwise. + +### GetDiscoverScheduleOk + +`func (o *KeyfactorApiModelsSslCreateNetworkRequest) GetDiscoverScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetDiscoverScheduleOk returns a tuple with the DiscoverSchedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiscoverSchedule + +`func (o *KeyfactorApiModelsSslCreateNetworkRequest) SetDiscoverSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetDiscoverSchedule sets DiscoverSchedule field to given value. + +### HasDiscoverSchedule + +`func (o *KeyfactorApiModelsSslCreateNetworkRequest) HasDiscoverSchedule() bool` + +HasDiscoverSchedule returns a boolean if a field has been set. + +### GetMonitorSchedule + +`func (o *KeyfactorApiModelsSslCreateNetworkRequest) GetMonitorSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetMonitorSchedule returns the MonitorSchedule field if non-nil, zero value otherwise. + +### GetMonitorScheduleOk + +`func (o *KeyfactorApiModelsSslCreateNetworkRequest) GetMonitorScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetMonitorScheduleOk returns a tuple with the MonitorSchedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonitorSchedule + +`func (o *KeyfactorApiModelsSslCreateNetworkRequest) SetMonitorSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetMonitorSchedule sets MonitorSchedule field to given value. + +### HasMonitorSchedule + +`func (o *KeyfactorApiModelsSslCreateNetworkRequest) HasMonitorSchedule() bool` + +HasMonitorSchedule returns a boolean if a field has been set. + +### GetSslAlertRecipients + +`func (o *KeyfactorApiModelsSslCreateNetworkRequest) GetSslAlertRecipients() []string` + +GetSslAlertRecipients returns the SslAlertRecipients field if non-nil, zero value otherwise. + +### GetSslAlertRecipientsOk + +`func (o *KeyfactorApiModelsSslCreateNetworkRequest) GetSslAlertRecipientsOk() (*[]string, bool)` + +GetSslAlertRecipientsOk returns a tuple with the SslAlertRecipients field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSslAlertRecipients + +`func (o *KeyfactorApiModelsSslCreateNetworkRequest) SetSslAlertRecipients(v []string)` + +SetSslAlertRecipients sets SslAlertRecipients field to given value. + +### HasSslAlertRecipients + +`func (o *KeyfactorApiModelsSslCreateNetworkRequest) HasSslAlertRecipients() bool` + +HasSslAlertRecipients returns a boolean if a field has been set. + +### GetAutoMonitor + +`func (o *KeyfactorApiModelsSslCreateNetworkRequest) GetAutoMonitor() bool` + +GetAutoMonitor returns the AutoMonitor field if non-nil, zero value otherwise. + +### GetAutoMonitorOk + +`func (o *KeyfactorApiModelsSslCreateNetworkRequest) GetAutoMonitorOk() (*bool, bool)` + +GetAutoMonitorOk returns a tuple with the AutoMonitor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAutoMonitor + +`func (o *KeyfactorApiModelsSslCreateNetworkRequest) SetAutoMonitor(v bool)` + +SetAutoMonitor sets AutoMonitor field to given value. + +### HasAutoMonitor + +`func (o *KeyfactorApiModelsSslCreateNetworkRequest) HasAutoMonitor() bool` + +HasAutoMonitor returns a boolean if a field has been set. + +### GetGetRobots + +`func (o *KeyfactorApiModelsSslCreateNetworkRequest) GetGetRobots() bool` + +GetGetRobots returns the GetRobots field if non-nil, zero value otherwise. + +### GetGetRobotsOk + +`func (o *KeyfactorApiModelsSslCreateNetworkRequest) GetGetRobotsOk() (*bool, bool)` + +GetGetRobotsOk returns a tuple with the GetRobots field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGetRobots + +`func (o *KeyfactorApiModelsSslCreateNetworkRequest) SetGetRobots(v bool)` + +SetGetRobots sets GetRobots field to given value. + +### HasGetRobots + +`func (o *KeyfactorApiModelsSslCreateNetworkRequest) HasGetRobots() bool` + +HasGetRobots returns a boolean if a field has been set. + +### GetDiscoverTimeoutMs + +`func (o *KeyfactorApiModelsSslCreateNetworkRequest) GetDiscoverTimeoutMs() float64` + +GetDiscoverTimeoutMs returns the DiscoverTimeoutMs field if non-nil, zero value otherwise. + +### GetDiscoverTimeoutMsOk + +`func (o *KeyfactorApiModelsSslCreateNetworkRequest) GetDiscoverTimeoutMsOk() (*float64, bool)` + +GetDiscoverTimeoutMsOk returns a tuple with the DiscoverTimeoutMs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiscoverTimeoutMs + +`func (o *KeyfactorApiModelsSslCreateNetworkRequest) SetDiscoverTimeoutMs(v float64)` + +SetDiscoverTimeoutMs sets DiscoverTimeoutMs field to given value. + +### HasDiscoverTimeoutMs + +`func (o *KeyfactorApiModelsSslCreateNetworkRequest) HasDiscoverTimeoutMs() bool` + +HasDiscoverTimeoutMs returns a boolean if a field has been set. + +### GetMonitorTimeoutMs + +`func (o *KeyfactorApiModelsSslCreateNetworkRequest) GetMonitorTimeoutMs() float64` + +GetMonitorTimeoutMs returns the MonitorTimeoutMs field if non-nil, zero value otherwise. + +### GetMonitorTimeoutMsOk + +`func (o *KeyfactorApiModelsSslCreateNetworkRequest) GetMonitorTimeoutMsOk() (*float64, bool)` + +GetMonitorTimeoutMsOk returns a tuple with the MonitorTimeoutMs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonitorTimeoutMs + +`func (o *KeyfactorApiModelsSslCreateNetworkRequest) SetMonitorTimeoutMs(v float64)` + +SetMonitorTimeoutMs sets MonitorTimeoutMs field to given value. + +### HasMonitorTimeoutMs + +`func (o *KeyfactorApiModelsSslCreateNetworkRequest) HasMonitorTimeoutMs() bool` + +HasMonitorTimeoutMs returns a boolean if a field has been set. + +### GetExpirationAlertDays + +`func (o *KeyfactorApiModelsSslCreateNetworkRequest) GetExpirationAlertDays() float64` + +GetExpirationAlertDays returns the ExpirationAlertDays field if non-nil, zero value otherwise. + +### GetExpirationAlertDaysOk + +`func (o *KeyfactorApiModelsSslCreateNetworkRequest) GetExpirationAlertDaysOk() (*float64, bool)` + +GetExpirationAlertDaysOk returns a tuple with the ExpirationAlertDays field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpirationAlertDays + +`func (o *KeyfactorApiModelsSslCreateNetworkRequest) SetExpirationAlertDays(v float64)` + +SetExpirationAlertDays sets ExpirationAlertDays field to given value. + +### HasExpirationAlertDays + +`func (o *KeyfactorApiModelsSslCreateNetworkRequest) HasExpirationAlertDays() bool` + +HasExpirationAlertDays returns a boolean if a field has been set. + +### GetQuietHours + +`func (o *KeyfactorApiModelsSslCreateNetworkRequest) GetQuietHours() []KeyfactorApiModelsSslQuietHourRequest` + +GetQuietHours returns the QuietHours field if non-nil, zero value otherwise. + +### GetQuietHoursOk + +`func (o *KeyfactorApiModelsSslCreateNetworkRequest) GetQuietHoursOk() (*[]KeyfactorApiModelsSslQuietHourRequest, bool)` + +GetQuietHoursOk returns a tuple with the QuietHours field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuietHours + +`func (o *KeyfactorApiModelsSslCreateNetworkRequest) SetQuietHours(v []KeyfactorApiModelsSslQuietHourRequest)` + +SetQuietHours sets QuietHours field to given value. + +### HasQuietHours + +`func (o *KeyfactorApiModelsSslCreateNetworkRequest) HasQuietHours() bool` + +HasQuietHours returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsSslNetworkQueryResponse.md b/v1/docs/KeyfactorApiModelsSslNetworkQueryResponse.md new file mode 100644 index 0000000..1730506 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsSslNetworkQueryResponse.md @@ -0,0 +1,628 @@ +# KeyfactorApiModelsSslNetworkQueryResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NetworkId** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**AgentPoolName** | Pointer to **string** | | [optional] +**AgentPoolId** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**Enabled** | Pointer to **bool** | | [optional] +**DiscoverSchedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**MonitorSchedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**DiscoverPercentComplete** | Pointer to **float64** | | [optional] +**MonitorPercentComplete** | Pointer to **float64** | | [optional] +**DiscoverStatus** | Pointer to **int32** | | [optional] +**MonitorStatus** | Pointer to **int32** | | [optional] +**DiscoverLastScanned** | Pointer to **time.Time** | | [optional] +**MonitorLastScanned** | Pointer to **time.Time** | | [optional] +**SslAlertRecipients** | Pointer to **[]string** | | [optional] +**AutoMonitor** | Pointer to **bool** | | [optional] +**GetRobots** | Pointer to **bool** | | [optional] +**DiscoverTimeoutMs** | Pointer to **float64** | | [optional] +**MonitorTimeoutMs** | Pointer to **float64** | | [optional] +**ExpirationAlertDays** | Pointer to **float64** | | [optional] +**DiscoverJobParts** | Pointer to **int32** | | [optional] +**MonitorJobParts** | Pointer to **int32** | | [optional] +**QuietHours** | Pointer to [**[]KeyfactorApiModelsSslQuietHourResponse**](KeyfactorApiModelsSslQuietHourResponse.md) | | [optional] + +## Methods + +### NewKeyfactorApiModelsSslNetworkQueryResponse + +`func NewKeyfactorApiModelsSslNetworkQueryResponse() *KeyfactorApiModelsSslNetworkQueryResponse` + +NewKeyfactorApiModelsSslNetworkQueryResponse instantiates a new KeyfactorApiModelsSslNetworkQueryResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsSslNetworkQueryResponseWithDefaults + +`func NewKeyfactorApiModelsSslNetworkQueryResponseWithDefaults() *KeyfactorApiModelsSslNetworkQueryResponse` + +NewKeyfactorApiModelsSslNetworkQueryResponseWithDefaults instantiates a new KeyfactorApiModelsSslNetworkQueryResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetNetworkId + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetNetworkId() string` + +GetNetworkId returns the NetworkId field if non-nil, zero value otherwise. + +### GetNetworkIdOk + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetNetworkIdOk() (*string, bool)` + +GetNetworkIdOk returns a tuple with the NetworkId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNetworkId + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) SetNetworkId(v string)` + +SetNetworkId sets NetworkId field to given value. + +### HasNetworkId + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) HasNetworkId() bool` + +HasNetworkId returns a boolean if a field has been set. + +### GetName + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetAgentPoolName + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetAgentPoolName() string` + +GetAgentPoolName returns the AgentPoolName field if non-nil, zero value otherwise. + +### GetAgentPoolNameOk + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetAgentPoolNameOk() (*string, bool)` + +GetAgentPoolNameOk returns a tuple with the AgentPoolName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentPoolName + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) SetAgentPoolName(v string)` + +SetAgentPoolName sets AgentPoolName field to given value. + +### HasAgentPoolName + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) HasAgentPoolName() bool` + +HasAgentPoolName returns a boolean if a field has been set. + +### GetAgentPoolId + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetAgentPoolId() string` + +GetAgentPoolId returns the AgentPoolId field if non-nil, zero value otherwise. + +### GetAgentPoolIdOk + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetAgentPoolIdOk() (*string, bool)` + +GetAgentPoolIdOk returns a tuple with the AgentPoolId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentPoolId + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) SetAgentPoolId(v string)` + +SetAgentPoolId sets AgentPoolId field to given value. + +### HasAgentPoolId + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) HasAgentPoolId() bool` + +HasAgentPoolId returns a boolean if a field has been set. + +### GetDescription + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetEnabled + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetDiscoverSchedule + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetDiscoverSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetDiscoverSchedule returns the DiscoverSchedule field if non-nil, zero value otherwise. + +### GetDiscoverScheduleOk + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetDiscoverScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetDiscoverScheduleOk returns a tuple with the DiscoverSchedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiscoverSchedule + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) SetDiscoverSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetDiscoverSchedule sets DiscoverSchedule field to given value. + +### HasDiscoverSchedule + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) HasDiscoverSchedule() bool` + +HasDiscoverSchedule returns a boolean if a field has been set. + +### GetMonitorSchedule + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetMonitorSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetMonitorSchedule returns the MonitorSchedule field if non-nil, zero value otherwise. + +### GetMonitorScheduleOk + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetMonitorScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetMonitorScheduleOk returns a tuple with the MonitorSchedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonitorSchedule + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) SetMonitorSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetMonitorSchedule sets MonitorSchedule field to given value. + +### HasMonitorSchedule + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) HasMonitorSchedule() bool` + +HasMonitorSchedule returns a boolean if a field has been set. + +### GetDiscoverPercentComplete + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetDiscoverPercentComplete() float64` + +GetDiscoverPercentComplete returns the DiscoverPercentComplete field if non-nil, zero value otherwise. + +### GetDiscoverPercentCompleteOk + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetDiscoverPercentCompleteOk() (*float64, bool)` + +GetDiscoverPercentCompleteOk returns a tuple with the DiscoverPercentComplete field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiscoverPercentComplete + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) SetDiscoverPercentComplete(v float64)` + +SetDiscoverPercentComplete sets DiscoverPercentComplete field to given value. + +### HasDiscoverPercentComplete + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) HasDiscoverPercentComplete() bool` + +HasDiscoverPercentComplete returns a boolean if a field has been set. + +### GetMonitorPercentComplete + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetMonitorPercentComplete() float64` + +GetMonitorPercentComplete returns the MonitorPercentComplete field if non-nil, zero value otherwise. + +### GetMonitorPercentCompleteOk + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetMonitorPercentCompleteOk() (*float64, bool)` + +GetMonitorPercentCompleteOk returns a tuple with the MonitorPercentComplete field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonitorPercentComplete + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) SetMonitorPercentComplete(v float64)` + +SetMonitorPercentComplete sets MonitorPercentComplete field to given value. + +### HasMonitorPercentComplete + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) HasMonitorPercentComplete() bool` + +HasMonitorPercentComplete returns a boolean if a field has been set. + +### GetDiscoverStatus + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetDiscoverStatus() int32` + +GetDiscoverStatus returns the DiscoverStatus field if non-nil, zero value otherwise. + +### GetDiscoverStatusOk + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetDiscoverStatusOk() (*int32, bool)` + +GetDiscoverStatusOk returns a tuple with the DiscoverStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiscoverStatus + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) SetDiscoverStatus(v int32)` + +SetDiscoverStatus sets DiscoverStatus field to given value. + +### HasDiscoverStatus + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) HasDiscoverStatus() bool` + +HasDiscoverStatus returns a boolean if a field has been set. + +### GetMonitorStatus + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetMonitorStatus() int32` + +GetMonitorStatus returns the MonitorStatus field if non-nil, zero value otherwise. + +### GetMonitorStatusOk + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetMonitorStatusOk() (*int32, bool)` + +GetMonitorStatusOk returns a tuple with the MonitorStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonitorStatus + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) SetMonitorStatus(v int32)` + +SetMonitorStatus sets MonitorStatus field to given value. + +### HasMonitorStatus + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) HasMonitorStatus() bool` + +HasMonitorStatus returns a boolean if a field has been set. + +### GetDiscoverLastScanned + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetDiscoverLastScanned() time.Time` + +GetDiscoverLastScanned returns the DiscoverLastScanned field if non-nil, zero value otherwise. + +### GetDiscoverLastScannedOk + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetDiscoverLastScannedOk() (*time.Time, bool)` + +GetDiscoverLastScannedOk returns a tuple with the DiscoverLastScanned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiscoverLastScanned + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) SetDiscoverLastScanned(v time.Time)` + +SetDiscoverLastScanned sets DiscoverLastScanned field to given value. + +### HasDiscoverLastScanned + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) HasDiscoverLastScanned() bool` + +HasDiscoverLastScanned returns a boolean if a field has been set. + +### GetMonitorLastScanned + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetMonitorLastScanned() time.Time` + +GetMonitorLastScanned returns the MonitorLastScanned field if non-nil, zero value otherwise. + +### GetMonitorLastScannedOk + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetMonitorLastScannedOk() (*time.Time, bool)` + +GetMonitorLastScannedOk returns a tuple with the MonitorLastScanned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonitorLastScanned + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) SetMonitorLastScanned(v time.Time)` + +SetMonitorLastScanned sets MonitorLastScanned field to given value. + +### HasMonitorLastScanned + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) HasMonitorLastScanned() bool` + +HasMonitorLastScanned returns a boolean if a field has been set. + +### GetSslAlertRecipients + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetSslAlertRecipients() []string` + +GetSslAlertRecipients returns the SslAlertRecipients field if non-nil, zero value otherwise. + +### GetSslAlertRecipientsOk + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetSslAlertRecipientsOk() (*[]string, bool)` + +GetSslAlertRecipientsOk returns a tuple with the SslAlertRecipients field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSslAlertRecipients + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) SetSslAlertRecipients(v []string)` + +SetSslAlertRecipients sets SslAlertRecipients field to given value. + +### HasSslAlertRecipients + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) HasSslAlertRecipients() bool` + +HasSslAlertRecipients returns a boolean if a field has been set. + +### GetAutoMonitor + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetAutoMonitor() bool` + +GetAutoMonitor returns the AutoMonitor field if non-nil, zero value otherwise. + +### GetAutoMonitorOk + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetAutoMonitorOk() (*bool, bool)` + +GetAutoMonitorOk returns a tuple with the AutoMonitor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAutoMonitor + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) SetAutoMonitor(v bool)` + +SetAutoMonitor sets AutoMonitor field to given value. + +### HasAutoMonitor + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) HasAutoMonitor() bool` + +HasAutoMonitor returns a boolean if a field has been set. + +### GetGetRobots + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetGetRobots() bool` + +GetGetRobots returns the GetRobots field if non-nil, zero value otherwise. + +### GetGetRobotsOk + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetGetRobotsOk() (*bool, bool)` + +GetGetRobotsOk returns a tuple with the GetRobots field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGetRobots + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) SetGetRobots(v bool)` + +SetGetRobots sets GetRobots field to given value. + +### HasGetRobots + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) HasGetRobots() bool` + +HasGetRobots returns a boolean if a field has been set. + +### GetDiscoverTimeoutMs + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetDiscoverTimeoutMs() float64` + +GetDiscoverTimeoutMs returns the DiscoverTimeoutMs field if non-nil, zero value otherwise. + +### GetDiscoverTimeoutMsOk + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetDiscoverTimeoutMsOk() (*float64, bool)` + +GetDiscoverTimeoutMsOk returns a tuple with the DiscoverTimeoutMs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiscoverTimeoutMs + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) SetDiscoverTimeoutMs(v float64)` + +SetDiscoverTimeoutMs sets DiscoverTimeoutMs field to given value. + +### HasDiscoverTimeoutMs + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) HasDiscoverTimeoutMs() bool` + +HasDiscoverTimeoutMs returns a boolean if a field has been set. + +### GetMonitorTimeoutMs + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetMonitorTimeoutMs() float64` + +GetMonitorTimeoutMs returns the MonitorTimeoutMs field if non-nil, zero value otherwise. + +### GetMonitorTimeoutMsOk + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetMonitorTimeoutMsOk() (*float64, bool)` + +GetMonitorTimeoutMsOk returns a tuple with the MonitorTimeoutMs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonitorTimeoutMs + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) SetMonitorTimeoutMs(v float64)` + +SetMonitorTimeoutMs sets MonitorTimeoutMs field to given value. + +### HasMonitorTimeoutMs + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) HasMonitorTimeoutMs() bool` + +HasMonitorTimeoutMs returns a boolean if a field has been set. + +### GetExpirationAlertDays + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetExpirationAlertDays() float64` + +GetExpirationAlertDays returns the ExpirationAlertDays field if non-nil, zero value otherwise. + +### GetExpirationAlertDaysOk + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetExpirationAlertDaysOk() (*float64, bool)` + +GetExpirationAlertDaysOk returns a tuple with the ExpirationAlertDays field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpirationAlertDays + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) SetExpirationAlertDays(v float64)` + +SetExpirationAlertDays sets ExpirationAlertDays field to given value. + +### HasExpirationAlertDays + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) HasExpirationAlertDays() bool` + +HasExpirationAlertDays returns a boolean if a field has been set. + +### GetDiscoverJobParts + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetDiscoverJobParts() int32` + +GetDiscoverJobParts returns the DiscoverJobParts field if non-nil, zero value otherwise. + +### GetDiscoverJobPartsOk + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetDiscoverJobPartsOk() (*int32, bool)` + +GetDiscoverJobPartsOk returns a tuple with the DiscoverJobParts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiscoverJobParts + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) SetDiscoverJobParts(v int32)` + +SetDiscoverJobParts sets DiscoverJobParts field to given value. + +### HasDiscoverJobParts + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) HasDiscoverJobParts() bool` + +HasDiscoverJobParts returns a boolean if a field has been set. + +### GetMonitorJobParts + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetMonitorJobParts() int32` + +GetMonitorJobParts returns the MonitorJobParts field if non-nil, zero value otherwise. + +### GetMonitorJobPartsOk + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetMonitorJobPartsOk() (*int32, bool)` + +GetMonitorJobPartsOk returns a tuple with the MonitorJobParts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonitorJobParts + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) SetMonitorJobParts(v int32)` + +SetMonitorJobParts sets MonitorJobParts field to given value. + +### HasMonitorJobParts + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) HasMonitorJobParts() bool` + +HasMonitorJobParts returns a boolean if a field has been set. + +### GetQuietHours + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetQuietHours() []KeyfactorApiModelsSslQuietHourResponse` + +GetQuietHours returns the QuietHours field if non-nil, zero value otherwise. + +### GetQuietHoursOk + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) GetQuietHoursOk() (*[]KeyfactorApiModelsSslQuietHourResponse, bool)` + +GetQuietHoursOk returns a tuple with the QuietHours field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuietHours + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) SetQuietHours(v []KeyfactorApiModelsSslQuietHourResponse)` + +SetQuietHours sets QuietHours field to given value. + +### HasQuietHours + +`func (o *KeyfactorApiModelsSslNetworkQueryResponse) HasQuietHours() bool` + +HasQuietHours returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsSslNetworkResponse.md b/v1/docs/KeyfactorApiModelsSslNetworkResponse.md new file mode 100644 index 0000000..9b41189 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsSslNetworkResponse.md @@ -0,0 +1,628 @@ +# KeyfactorApiModelsSslNetworkResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NetworkId** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**AgentPoolName** | Pointer to **string** | | [optional] +**AgentPoolId** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**Enabled** | Pointer to **bool** | | [optional] +**DiscoverSchedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**MonitorSchedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**DiscoverPercentComplete** | Pointer to **float64** | | [optional] +**MonitorPercentComplete** | Pointer to **float64** | | [optional] +**DiscoverStatus** | Pointer to **int32** | | [optional] +**MonitorStatus** | Pointer to **int32** | | [optional] +**DiscoverLastScanned** | Pointer to **time.Time** | | [optional] +**MonitorLastScanned** | Pointer to **time.Time** | | [optional] +**SslAlertRecipients** | Pointer to **[]string** | | [optional] +**AutoMonitor** | Pointer to **bool** | | [optional] +**GetRobots** | Pointer to **bool** | | [optional] +**DiscoverTimeoutMs** | Pointer to **float64** | | [optional] +**MonitorTimeoutMs** | Pointer to **float64** | | [optional] +**ExpirationAlertDays** | Pointer to **float64** | | [optional] +**DiscoverJobParts** | Pointer to **int32** | | [optional] +**MonitorJobParts** | Pointer to **int32** | | [optional] +**QuietHours** | Pointer to [**[]KeyfactorApiModelsSslQuietHourResponse**](KeyfactorApiModelsSslQuietHourResponse.md) | | [optional] + +## Methods + +### NewKeyfactorApiModelsSslNetworkResponse + +`func NewKeyfactorApiModelsSslNetworkResponse() *KeyfactorApiModelsSslNetworkResponse` + +NewKeyfactorApiModelsSslNetworkResponse instantiates a new KeyfactorApiModelsSslNetworkResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsSslNetworkResponseWithDefaults + +`func NewKeyfactorApiModelsSslNetworkResponseWithDefaults() *KeyfactorApiModelsSslNetworkResponse` + +NewKeyfactorApiModelsSslNetworkResponseWithDefaults instantiates a new KeyfactorApiModelsSslNetworkResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetNetworkId + +`func (o *KeyfactorApiModelsSslNetworkResponse) GetNetworkId() string` + +GetNetworkId returns the NetworkId field if non-nil, zero value otherwise. + +### GetNetworkIdOk + +`func (o *KeyfactorApiModelsSslNetworkResponse) GetNetworkIdOk() (*string, bool)` + +GetNetworkIdOk returns a tuple with the NetworkId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNetworkId + +`func (o *KeyfactorApiModelsSslNetworkResponse) SetNetworkId(v string)` + +SetNetworkId sets NetworkId field to given value. + +### HasNetworkId + +`func (o *KeyfactorApiModelsSslNetworkResponse) HasNetworkId() bool` + +HasNetworkId returns a boolean if a field has been set. + +### GetName + +`func (o *KeyfactorApiModelsSslNetworkResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *KeyfactorApiModelsSslNetworkResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *KeyfactorApiModelsSslNetworkResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *KeyfactorApiModelsSslNetworkResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetAgentPoolName + +`func (o *KeyfactorApiModelsSslNetworkResponse) GetAgentPoolName() string` + +GetAgentPoolName returns the AgentPoolName field if non-nil, zero value otherwise. + +### GetAgentPoolNameOk + +`func (o *KeyfactorApiModelsSslNetworkResponse) GetAgentPoolNameOk() (*string, bool)` + +GetAgentPoolNameOk returns a tuple with the AgentPoolName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentPoolName + +`func (o *KeyfactorApiModelsSslNetworkResponse) SetAgentPoolName(v string)` + +SetAgentPoolName sets AgentPoolName field to given value. + +### HasAgentPoolName + +`func (o *KeyfactorApiModelsSslNetworkResponse) HasAgentPoolName() bool` + +HasAgentPoolName returns a boolean if a field has been set. + +### GetAgentPoolId + +`func (o *KeyfactorApiModelsSslNetworkResponse) GetAgentPoolId() string` + +GetAgentPoolId returns the AgentPoolId field if non-nil, zero value otherwise. + +### GetAgentPoolIdOk + +`func (o *KeyfactorApiModelsSslNetworkResponse) GetAgentPoolIdOk() (*string, bool)` + +GetAgentPoolIdOk returns a tuple with the AgentPoolId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentPoolId + +`func (o *KeyfactorApiModelsSslNetworkResponse) SetAgentPoolId(v string)` + +SetAgentPoolId sets AgentPoolId field to given value. + +### HasAgentPoolId + +`func (o *KeyfactorApiModelsSslNetworkResponse) HasAgentPoolId() bool` + +HasAgentPoolId returns a boolean if a field has been set. + +### GetDescription + +`func (o *KeyfactorApiModelsSslNetworkResponse) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *KeyfactorApiModelsSslNetworkResponse) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *KeyfactorApiModelsSslNetworkResponse) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *KeyfactorApiModelsSslNetworkResponse) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetEnabled + +`func (o *KeyfactorApiModelsSslNetworkResponse) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *KeyfactorApiModelsSslNetworkResponse) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *KeyfactorApiModelsSslNetworkResponse) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *KeyfactorApiModelsSslNetworkResponse) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetDiscoverSchedule + +`func (o *KeyfactorApiModelsSslNetworkResponse) GetDiscoverSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetDiscoverSchedule returns the DiscoverSchedule field if non-nil, zero value otherwise. + +### GetDiscoverScheduleOk + +`func (o *KeyfactorApiModelsSslNetworkResponse) GetDiscoverScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetDiscoverScheduleOk returns a tuple with the DiscoverSchedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiscoverSchedule + +`func (o *KeyfactorApiModelsSslNetworkResponse) SetDiscoverSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetDiscoverSchedule sets DiscoverSchedule field to given value. + +### HasDiscoverSchedule + +`func (o *KeyfactorApiModelsSslNetworkResponse) HasDiscoverSchedule() bool` + +HasDiscoverSchedule returns a boolean if a field has been set. + +### GetMonitorSchedule + +`func (o *KeyfactorApiModelsSslNetworkResponse) GetMonitorSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetMonitorSchedule returns the MonitorSchedule field if non-nil, zero value otherwise. + +### GetMonitorScheduleOk + +`func (o *KeyfactorApiModelsSslNetworkResponse) GetMonitorScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetMonitorScheduleOk returns a tuple with the MonitorSchedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonitorSchedule + +`func (o *KeyfactorApiModelsSslNetworkResponse) SetMonitorSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetMonitorSchedule sets MonitorSchedule field to given value. + +### HasMonitorSchedule + +`func (o *KeyfactorApiModelsSslNetworkResponse) HasMonitorSchedule() bool` + +HasMonitorSchedule returns a boolean if a field has been set. + +### GetDiscoverPercentComplete + +`func (o *KeyfactorApiModelsSslNetworkResponse) GetDiscoverPercentComplete() float64` + +GetDiscoverPercentComplete returns the DiscoverPercentComplete field if non-nil, zero value otherwise. + +### GetDiscoverPercentCompleteOk + +`func (o *KeyfactorApiModelsSslNetworkResponse) GetDiscoverPercentCompleteOk() (*float64, bool)` + +GetDiscoverPercentCompleteOk returns a tuple with the DiscoverPercentComplete field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiscoverPercentComplete + +`func (o *KeyfactorApiModelsSslNetworkResponse) SetDiscoverPercentComplete(v float64)` + +SetDiscoverPercentComplete sets DiscoverPercentComplete field to given value. + +### HasDiscoverPercentComplete + +`func (o *KeyfactorApiModelsSslNetworkResponse) HasDiscoverPercentComplete() bool` + +HasDiscoverPercentComplete returns a boolean if a field has been set. + +### GetMonitorPercentComplete + +`func (o *KeyfactorApiModelsSslNetworkResponse) GetMonitorPercentComplete() float64` + +GetMonitorPercentComplete returns the MonitorPercentComplete field if non-nil, zero value otherwise. + +### GetMonitorPercentCompleteOk + +`func (o *KeyfactorApiModelsSslNetworkResponse) GetMonitorPercentCompleteOk() (*float64, bool)` + +GetMonitorPercentCompleteOk returns a tuple with the MonitorPercentComplete field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonitorPercentComplete + +`func (o *KeyfactorApiModelsSslNetworkResponse) SetMonitorPercentComplete(v float64)` + +SetMonitorPercentComplete sets MonitorPercentComplete field to given value. + +### HasMonitorPercentComplete + +`func (o *KeyfactorApiModelsSslNetworkResponse) HasMonitorPercentComplete() bool` + +HasMonitorPercentComplete returns a boolean if a field has been set. + +### GetDiscoverStatus + +`func (o *KeyfactorApiModelsSslNetworkResponse) GetDiscoverStatus() int32` + +GetDiscoverStatus returns the DiscoverStatus field if non-nil, zero value otherwise. + +### GetDiscoverStatusOk + +`func (o *KeyfactorApiModelsSslNetworkResponse) GetDiscoverStatusOk() (*int32, bool)` + +GetDiscoverStatusOk returns a tuple with the DiscoverStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiscoverStatus + +`func (o *KeyfactorApiModelsSslNetworkResponse) SetDiscoverStatus(v int32)` + +SetDiscoverStatus sets DiscoverStatus field to given value. + +### HasDiscoverStatus + +`func (o *KeyfactorApiModelsSslNetworkResponse) HasDiscoverStatus() bool` + +HasDiscoverStatus returns a boolean if a field has been set. + +### GetMonitorStatus + +`func (o *KeyfactorApiModelsSslNetworkResponse) GetMonitorStatus() int32` + +GetMonitorStatus returns the MonitorStatus field if non-nil, zero value otherwise. + +### GetMonitorStatusOk + +`func (o *KeyfactorApiModelsSslNetworkResponse) GetMonitorStatusOk() (*int32, bool)` + +GetMonitorStatusOk returns a tuple with the MonitorStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonitorStatus + +`func (o *KeyfactorApiModelsSslNetworkResponse) SetMonitorStatus(v int32)` + +SetMonitorStatus sets MonitorStatus field to given value. + +### HasMonitorStatus + +`func (o *KeyfactorApiModelsSslNetworkResponse) HasMonitorStatus() bool` + +HasMonitorStatus returns a boolean if a field has been set. + +### GetDiscoverLastScanned + +`func (o *KeyfactorApiModelsSslNetworkResponse) GetDiscoverLastScanned() time.Time` + +GetDiscoverLastScanned returns the DiscoverLastScanned field if non-nil, zero value otherwise. + +### GetDiscoverLastScannedOk + +`func (o *KeyfactorApiModelsSslNetworkResponse) GetDiscoverLastScannedOk() (*time.Time, bool)` + +GetDiscoverLastScannedOk returns a tuple with the DiscoverLastScanned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiscoverLastScanned + +`func (o *KeyfactorApiModelsSslNetworkResponse) SetDiscoverLastScanned(v time.Time)` + +SetDiscoverLastScanned sets DiscoverLastScanned field to given value. + +### HasDiscoverLastScanned + +`func (o *KeyfactorApiModelsSslNetworkResponse) HasDiscoverLastScanned() bool` + +HasDiscoverLastScanned returns a boolean if a field has been set. + +### GetMonitorLastScanned + +`func (o *KeyfactorApiModelsSslNetworkResponse) GetMonitorLastScanned() time.Time` + +GetMonitorLastScanned returns the MonitorLastScanned field if non-nil, zero value otherwise. + +### GetMonitorLastScannedOk + +`func (o *KeyfactorApiModelsSslNetworkResponse) GetMonitorLastScannedOk() (*time.Time, bool)` + +GetMonitorLastScannedOk returns a tuple with the MonitorLastScanned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonitorLastScanned + +`func (o *KeyfactorApiModelsSslNetworkResponse) SetMonitorLastScanned(v time.Time)` + +SetMonitorLastScanned sets MonitorLastScanned field to given value. + +### HasMonitorLastScanned + +`func (o *KeyfactorApiModelsSslNetworkResponse) HasMonitorLastScanned() bool` + +HasMonitorLastScanned returns a boolean if a field has been set. + +### GetSslAlertRecipients + +`func (o *KeyfactorApiModelsSslNetworkResponse) GetSslAlertRecipients() []string` + +GetSslAlertRecipients returns the SslAlertRecipients field if non-nil, zero value otherwise. + +### GetSslAlertRecipientsOk + +`func (o *KeyfactorApiModelsSslNetworkResponse) GetSslAlertRecipientsOk() (*[]string, bool)` + +GetSslAlertRecipientsOk returns a tuple with the SslAlertRecipients field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSslAlertRecipients + +`func (o *KeyfactorApiModelsSslNetworkResponse) SetSslAlertRecipients(v []string)` + +SetSslAlertRecipients sets SslAlertRecipients field to given value. + +### HasSslAlertRecipients + +`func (o *KeyfactorApiModelsSslNetworkResponse) HasSslAlertRecipients() bool` + +HasSslAlertRecipients returns a boolean if a field has been set. + +### GetAutoMonitor + +`func (o *KeyfactorApiModelsSslNetworkResponse) GetAutoMonitor() bool` + +GetAutoMonitor returns the AutoMonitor field if non-nil, zero value otherwise. + +### GetAutoMonitorOk + +`func (o *KeyfactorApiModelsSslNetworkResponse) GetAutoMonitorOk() (*bool, bool)` + +GetAutoMonitorOk returns a tuple with the AutoMonitor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAutoMonitor + +`func (o *KeyfactorApiModelsSslNetworkResponse) SetAutoMonitor(v bool)` + +SetAutoMonitor sets AutoMonitor field to given value. + +### HasAutoMonitor + +`func (o *KeyfactorApiModelsSslNetworkResponse) HasAutoMonitor() bool` + +HasAutoMonitor returns a boolean if a field has been set. + +### GetGetRobots + +`func (o *KeyfactorApiModelsSslNetworkResponse) GetGetRobots() bool` + +GetGetRobots returns the GetRobots field if non-nil, zero value otherwise. + +### GetGetRobotsOk + +`func (o *KeyfactorApiModelsSslNetworkResponse) GetGetRobotsOk() (*bool, bool)` + +GetGetRobotsOk returns a tuple with the GetRobots field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGetRobots + +`func (o *KeyfactorApiModelsSslNetworkResponse) SetGetRobots(v bool)` + +SetGetRobots sets GetRobots field to given value. + +### HasGetRobots + +`func (o *KeyfactorApiModelsSslNetworkResponse) HasGetRobots() bool` + +HasGetRobots returns a boolean if a field has been set. + +### GetDiscoverTimeoutMs + +`func (o *KeyfactorApiModelsSslNetworkResponse) GetDiscoverTimeoutMs() float64` + +GetDiscoverTimeoutMs returns the DiscoverTimeoutMs field if non-nil, zero value otherwise. + +### GetDiscoverTimeoutMsOk + +`func (o *KeyfactorApiModelsSslNetworkResponse) GetDiscoverTimeoutMsOk() (*float64, bool)` + +GetDiscoverTimeoutMsOk returns a tuple with the DiscoverTimeoutMs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiscoverTimeoutMs + +`func (o *KeyfactorApiModelsSslNetworkResponse) SetDiscoverTimeoutMs(v float64)` + +SetDiscoverTimeoutMs sets DiscoverTimeoutMs field to given value. + +### HasDiscoverTimeoutMs + +`func (o *KeyfactorApiModelsSslNetworkResponse) HasDiscoverTimeoutMs() bool` + +HasDiscoverTimeoutMs returns a boolean if a field has been set. + +### GetMonitorTimeoutMs + +`func (o *KeyfactorApiModelsSslNetworkResponse) GetMonitorTimeoutMs() float64` + +GetMonitorTimeoutMs returns the MonitorTimeoutMs field if non-nil, zero value otherwise. + +### GetMonitorTimeoutMsOk + +`func (o *KeyfactorApiModelsSslNetworkResponse) GetMonitorTimeoutMsOk() (*float64, bool)` + +GetMonitorTimeoutMsOk returns a tuple with the MonitorTimeoutMs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonitorTimeoutMs + +`func (o *KeyfactorApiModelsSslNetworkResponse) SetMonitorTimeoutMs(v float64)` + +SetMonitorTimeoutMs sets MonitorTimeoutMs field to given value. + +### HasMonitorTimeoutMs + +`func (o *KeyfactorApiModelsSslNetworkResponse) HasMonitorTimeoutMs() bool` + +HasMonitorTimeoutMs returns a boolean if a field has been set. + +### GetExpirationAlertDays + +`func (o *KeyfactorApiModelsSslNetworkResponse) GetExpirationAlertDays() float64` + +GetExpirationAlertDays returns the ExpirationAlertDays field if non-nil, zero value otherwise. + +### GetExpirationAlertDaysOk + +`func (o *KeyfactorApiModelsSslNetworkResponse) GetExpirationAlertDaysOk() (*float64, bool)` + +GetExpirationAlertDaysOk returns a tuple with the ExpirationAlertDays field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpirationAlertDays + +`func (o *KeyfactorApiModelsSslNetworkResponse) SetExpirationAlertDays(v float64)` + +SetExpirationAlertDays sets ExpirationAlertDays field to given value. + +### HasExpirationAlertDays + +`func (o *KeyfactorApiModelsSslNetworkResponse) HasExpirationAlertDays() bool` + +HasExpirationAlertDays returns a boolean if a field has been set. + +### GetDiscoverJobParts + +`func (o *KeyfactorApiModelsSslNetworkResponse) GetDiscoverJobParts() int32` + +GetDiscoverJobParts returns the DiscoverJobParts field if non-nil, zero value otherwise. + +### GetDiscoverJobPartsOk + +`func (o *KeyfactorApiModelsSslNetworkResponse) GetDiscoverJobPartsOk() (*int32, bool)` + +GetDiscoverJobPartsOk returns a tuple with the DiscoverJobParts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiscoverJobParts + +`func (o *KeyfactorApiModelsSslNetworkResponse) SetDiscoverJobParts(v int32)` + +SetDiscoverJobParts sets DiscoverJobParts field to given value. + +### HasDiscoverJobParts + +`func (o *KeyfactorApiModelsSslNetworkResponse) HasDiscoverJobParts() bool` + +HasDiscoverJobParts returns a boolean if a field has been set. + +### GetMonitorJobParts + +`func (o *KeyfactorApiModelsSslNetworkResponse) GetMonitorJobParts() int32` + +GetMonitorJobParts returns the MonitorJobParts field if non-nil, zero value otherwise. + +### GetMonitorJobPartsOk + +`func (o *KeyfactorApiModelsSslNetworkResponse) GetMonitorJobPartsOk() (*int32, bool)` + +GetMonitorJobPartsOk returns a tuple with the MonitorJobParts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonitorJobParts + +`func (o *KeyfactorApiModelsSslNetworkResponse) SetMonitorJobParts(v int32)` + +SetMonitorJobParts sets MonitorJobParts field to given value. + +### HasMonitorJobParts + +`func (o *KeyfactorApiModelsSslNetworkResponse) HasMonitorJobParts() bool` + +HasMonitorJobParts returns a boolean if a field has been set. + +### GetQuietHours + +`func (o *KeyfactorApiModelsSslNetworkResponse) GetQuietHours() []KeyfactorApiModelsSslQuietHourResponse` + +GetQuietHours returns the QuietHours field if non-nil, zero value otherwise. + +### GetQuietHoursOk + +`func (o *KeyfactorApiModelsSslNetworkResponse) GetQuietHoursOk() (*[]KeyfactorApiModelsSslQuietHourResponse, bool)` + +GetQuietHoursOk returns a tuple with the QuietHours field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuietHours + +`func (o *KeyfactorApiModelsSslNetworkResponse) SetQuietHours(v []KeyfactorApiModelsSslQuietHourResponse)` + +SetQuietHours sets QuietHours field to given value. + +### HasQuietHours + +`func (o *KeyfactorApiModelsSslNetworkResponse) HasQuietHours() bool` + +HasQuietHours returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsSslQuietHourRequest.md b/v1/docs/KeyfactorApiModelsSslQuietHourRequest.md new file mode 100644 index 0000000..da66301 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsSslQuietHourRequest.md @@ -0,0 +1,134 @@ +# KeyfactorApiModelsSslQuietHourRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StartDay** | Pointer to **int32** | | [optional] +**StartTime** | Pointer to **time.Time** | | [optional] +**EndDay** | Pointer to **int32** | | [optional] +**EndTime** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewKeyfactorApiModelsSslQuietHourRequest + +`func NewKeyfactorApiModelsSslQuietHourRequest() *KeyfactorApiModelsSslQuietHourRequest` + +NewKeyfactorApiModelsSslQuietHourRequest instantiates a new KeyfactorApiModelsSslQuietHourRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsSslQuietHourRequestWithDefaults + +`func NewKeyfactorApiModelsSslQuietHourRequestWithDefaults() *KeyfactorApiModelsSslQuietHourRequest` + +NewKeyfactorApiModelsSslQuietHourRequestWithDefaults instantiates a new KeyfactorApiModelsSslQuietHourRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStartDay + +`func (o *KeyfactorApiModelsSslQuietHourRequest) GetStartDay() int32` + +GetStartDay returns the StartDay field if non-nil, zero value otherwise. + +### GetStartDayOk + +`func (o *KeyfactorApiModelsSslQuietHourRequest) GetStartDayOk() (*int32, bool)` + +GetStartDayOk returns a tuple with the StartDay field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartDay + +`func (o *KeyfactorApiModelsSslQuietHourRequest) SetStartDay(v int32)` + +SetStartDay sets StartDay field to given value. + +### HasStartDay + +`func (o *KeyfactorApiModelsSslQuietHourRequest) HasStartDay() bool` + +HasStartDay returns a boolean if a field has been set. + +### GetStartTime + +`func (o *KeyfactorApiModelsSslQuietHourRequest) GetStartTime() time.Time` + +GetStartTime returns the StartTime field if non-nil, zero value otherwise. + +### GetStartTimeOk + +`func (o *KeyfactorApiModelsSslQuietHourRequest) GetStartTimeOk() (*time.Time, bool)` + +GetStartTimeOk returns a tuple with the StartTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartTime + +`func (o *KeyfactorApiModelsSslQuietHourRequest) SetStartTime(v time.Time)` + +SetStartTime sets StartTime field to given value. + +### HasStartTime + +`func (o *KeyfactorApiModelsSslQuietHourRequest) HasStartTime() bool` + +HasStartTime returns a boolean if a field has been set. + +### GetEndDay + +`func (o *KeyfactorApiModelsSslQuietHourRequest) GetEndDay() int32` + +GetEndDay returns the EndDay field if non-nil, zero value otherwise. + +### GetEndDayOk + +`func (o *KeyfactorApiModelsSslQuietHourRequest) GetEndDayOk() (*int32, bool)` + +GetEndDayOk returns a tuple with the EndDay field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndDay + +`func (o *KeyfactorApiModelsSslQuietHourRequest) SetEndDay(v int32)` + +SetEndDay sets EndDay field to given value. + +### HasEndDay + +`func (o *KeyfactorApiModelsSslQuietHourRequest) HasEndDay() bool` + +HasEndDay returns a boolean if a field has been set. + +### GetEndTime + +`func (o *KeyfactorApiModelsSslQuietHourRequest) GetEndTime() time.Time` + +GetEndTime returns the EndTime field if non-nil, zero value otherwise. + +### GetEndTimeOk + +`func (o *KeyfactorApiModelsSslQuietHourRequest) GetEndTimeOk() (*time.Time, bool)` + +GetEndTimeOk returns a tuple with the EndTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndTime + +`func (o *KeyfactorApiModelsSslQuietHourRequest) SetEndTime(v time.Time)` + +SetEndTime sets EndTime field to given value. + +### HasEndTime + +`func (o *KeyfactorApiModelsSslQuietHourRequest) HasEndTime() bool` + +HasEndTime returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsSslQuietHourResponse.md b/v1/docs/KeyfactorApiModelsSslQuietHourResponse.md new file mode 100644 index 0000000..054d7f5 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsSslQuietHourResponse.md @@ -0,0 +1,134 @@ +# KeyfactorApiModelsSslQuietHourResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StartDay** | Pointer to **int32** | | [optional] +**StartTime** | Pointer to **time.Time** | | [optional] +**EndDay** | Pointer to **int32** | | [optional] +**EndTime** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewKeyfactorApiModelsSslQuietHourResponse + +`func NewKeyfactorApiModelsSslQuietHourResponse() *KeyfactorApiModelsSslQuietHourResponse` + +NewKeyfactorApiModelsSslQuietHourResponse instantiates a new KeyfactorApiModelsSslQuietHourResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsSslQuietHourResponseWithDefaults + +`func NewKeyfactorApiModelsSslQuietHourResponseWithDefaults() *KeyfactorApiModelsSslQuietHourResponse` + +NewKeyfactorApiModelsSslQuietHourResponseWithDefaults instantiates a new KeyfactorApiModelsSslQuietHourResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStartDay + +`func (o *KeyfactorApiModelsSslQuietHourResponse) GetStartDay() int32` + +GetStartDay returns the StartDay field if non-nil, zero value otherwise. + +### GetStartDayOk + +`func (o *KeyfactorApiModelsSslQuietHourResponse) GetStartDayOk() (*int32, bool)` + +GetStartDayOk returns a tuple with the StartDay field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartDay + +`func (o *KeyfactorApiModelsSslQuietHourResponse) SetStartDay(v int32)` + +SetStartDay sets StartDay field to given value. + +### HasStartDay + +`func (o *KeyfactorApiModelsSslQuietHourResponse) HasStartDay() bool` + +HasStartDay returns a boolean if a field has been set. + +### GetStartTime + +`func (o *KeyfactorApiModelsSslQuietHourResponse) GetStartTime() time.Time` + +GetStartTime returns the StartTime field if non-nil, zero value otherwise. + +### GetStartTimeOk + +`func (o *KeyfactorApiModelsSslQuietHourResponse) GetStartTimeOk() (*time.Time, bool)` + +GetStartTimeOk returns a tuple with the StartTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartTime + +`func (o *KeyfactorApiModelsSslQuietHourResponse) SetStartTime(v time.Time)` + +SetStartTime sets StartTime field to given value. + +### HasStartTime + +`func (o *KeyfactorApiModelsSslQuietHourResponse) HasStartTime() bool` + +HasStartTime returns a boolean if a field has been set. + +### GetEndDay + +`func (o *KeyfactorApiModelsSslQuietHourResponse) GetEndDay() int32` + +GetEndDay returns the EndDay field if non-nil, zero value otherwise. + +### GetEndDayOk + +`func (o *KeyfactorApiModelsSslQuietHourResponse) GetEndDayOk() (*int32, bool)` + +GetEndDayOk returns a tuple with the EndDay field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndDay + +`func (o *KeyfactorApiModelsSslQuietHourResponse) SetEndDay(v int32)` + +SetEndDay sets EndDay field to given value. + +### HasEndDay + +`func (o *KeyfactorApiModelsSslQuietHourResponse) HasEndDay() bool` + +HasEndDay returns a boolean if a field has been set. + +### GetEndTime + +`func (o *KeyfactorApiModelsSslQuietHourResponse) GetEndTime() time.Time` + +GetEndTime returns the EndTime field if non-nil, zero value otherwise. + +### GetEndTimeOk + +`func (o *KeyfactorApiModelsSslQuietHourResponse) GetEndTimeOk() (*time.Time, bool)` + +GetEndTimeOk returns a tuple with the EndTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndTime + +`func (o *KeyfactorApiModelsSslQuietHourResponse) SetEndTime(v time.Time)` + +SetEndTime sets EndTime field to given value. + +### HasEndTime + +`func (o *KeyfactorApiModelsSslQuietHourResponse) HasEndTime() bool` + +HasEndTime returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsSslUpdateNetworkRequest.md b/v1/docs/KeyfactorApiModelsSslUpdateNetworkRequest.md new file mode 100644 index 0000000..abf75d6 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsSslUpdateNetworkRequest.md @@ -0,0 +1,374 @@ +# KeyfactorApiModelsSslUpdateNetworkRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NetworkId** | **string** | | +**Name** | **string** | | +**AgentPoolName** | **string** | | +**Description** | **string** | | +**Enabled** | Pointer to **bool** | | [optional] +**DiscoverSchedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**MonitorSchedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**SslAlertRecipients** | Pointer to **[]string** | | [optional] +**AutoMonitor** | Pointer to **bool** | | [optional] +**GetRobots** | Pointer to **bool** | | [optional] +**DiscoverTimeoutMs** | Pointer to **float64** | | [optional] +**MonitorTimeoutMs** | Pointer to **float64** | | [optional] +**ExpirationAlertDays** | Pointer to **float64** | | [optional] +**QuietHours** | Pointer to [**[]KeyfactorApiModelsSslQuietHourRequest**](KeyfactorApiModelsSslQuietHourRequest.md) | | [optional] + +## Methods + +### NewKeyfactorApiModelsSslUpdateNetworkRequest + +`func NewKeyfactorApiModelsSslUpdateNetworkRequest(networkId string, name string, agentPoolName string, description string, ) *KeyfactorApiModelsSslUpdateNetworkRequest` + +NewKeyfactorApiModelsSslUpdateNetworkRequest instantiates a new KeyfactorApiModelsSslUpdateNetworkRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsSslUpdateNetworkRequestWithDefaults + +`func NewKeyfactorApiModelsSslUpdateNetworkRequestWithDefaults() *KeyfactorApiModelsSslUpdateNetworkRequest` + +NewKeyfactorApiModelsSslUpdateNetworkRequestWithDefaults instantiates a new KeyfactorApiModelsSslUpdateNetworkRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetNetworkId + +`func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetNetworkId() string` + +GetNetworkId returns the NetworkId field if non-nil, zero value otherwise. + +### GetNetworkIdOk + +`func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetNetworkIdOk() (*string, bool)` + +GetNetworkIdOk returns a tuple with the NetworkId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNetworkId + +`func (o *KeyfactorApiModelsSslUpdateNetworkRequest) SetNetworkId(v string)` + +SetNetworkId sets NetworkId field to given value. + + +### GetName + +`func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *KeyfactorApiModelsSslUpdateNetworkRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetAgentPoolName + +`func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetAgentPoolName() string` + +GetAgentPoolName returns the AgentPoolName field if non-nil, zero value otherwise. + +### GetAgentPoolNameOk + +`func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetAgentPoolNameOk() (*string, bool)` + +GetAgentPoolNameOk returns a tuple with the AgentPoolName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentPoolName + +`func (o *KeyfactorApiModelsSslUpdateNetworkRequest) SetAgentPoolName(v string)` + +SetAgentPoolName sets AgentPoolName field to given value. + + +### GetDescription + +`func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *KeyfactorApiModelsSslUpdateNetworkRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + + +### GetEnabled + +`func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *KeyfactorApiModelsSslUpdateNetworkRequest) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *KeyfactorApiModelsSslUpdateNetworkRequest) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetDiscoverSchedule + +`func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetDiscoverSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetDiscoverSchedule returns the DiscoverSchedule field if non-nil, zero value otherwise. + +### GetDiscoverScheduleOk + +`func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetDiscoverScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetDiscoverScheduleOk returns a tuple with the DiscoverSchedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiscoverSchedule + +`func (o *KeyfactorApiModelsSslUpdateNetworkRequest) SetDiscoverSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetDiscoverSchedule sets DiscoverSchedule field to given value. + +### HasDiscoverSchedule + +`func (o *KeyfactorApiModelsSslUpdateNetworkRequest) HasDiscoverSchedule() bool` + +HasDiscoverSchedule returns a boolean if a field has been set. + +### GetMonitorSchedule + +`func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetMonitorSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetMonitorSchedule returns the MonitorSchedule field if non-nil, zero value otherwise. + +### GetMonitorScheduleOk + +`func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetMonitorScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetMonitorScheduleOk returns a tuple with the MonitorSchedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonitorSchedule + +`func (o *KeyfactorApiModelsSslUpdateNetworkRequest) SetMonitorSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetMonitorSchedule sets MonitorSchedule field to given value. + +### HasMonitorSchedule + +`func (o *KeyfactorApiModelsSslUpdateNetworkRequest) HasMonitorSchedule() bool` + +HasMonitorSchedule returns a boolean if a field has been set. + +### GetSslAlertRecipients + +`func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetSslAlertRecipients() []string` + +GetSslAlertRecipients returns the SslAlertRecipients field if non-nil, zero value otherwise. + +### GetSslAlertRecipientsOk + +`func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetSslAlertRecipientsOk() (*[]string, bool)` + +GetSslAlertRecipientsOk returns a tuple with the SslAlertRecipients field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSslAlertRecipients + +`func (o *KeyfactorApiModelsSslUpdateNetworkRequest) SetSslAlertRecipients(v []string)` + +SetSslAlertRecipients sets SslAlertRecipients field to given value. + +### HasSslAlertRecipients + +`func (o *KeyfactorApiModelsSslUpdateNetworkRequest) HasSslAlertRecipients() bool` + +HasSslAlertRecipients returns a boolean if a field has been set. + +### GetAutoMonitor + +`func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetAutoMonitor() bool` + +GetAutoMonitor returns the AutoMonitor field if non-nil, zero value otherwise. + +### GetAutoMonitorOk + +`func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetAutoMonitorOk() (*bool, bool)` + +GetAutoMonitorOk returns a tuple with the AutoMonitor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAutoMonitor + +`func (o *KeyfactorApiModelsSslUpdateNetworkRequest) SetAutoMonitor(v bool)` + +SetAutoMonitor sets AutoMonitor field to given value. + +### HasAutoMonitor + +`func (o *KeyfactorApiModelsSslUpdateNetworkRequest) HasAutoMonitor() bool` + +HasAutoMonitor returns a boolean if a field has been set. + +### GetGetRobots + +`func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetGetRobots() bool` + +GetGetRobots returns the GetRobots field if non-nil, zero value otherwise. + +### GetGetRobotsOk + +`func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetGetRobotsOk() (*bool, bool)` + +GetGetRobotsOk returns a tuple with the GetRobots field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGetRobots + +`func (o *KeyfactorApiModelsSslUpdateNetworkRequest) SetGetRobots(v bool)` + +SetGetRobots sets GetRobots field to given value. + +### HasGetRobots + +`func (o *KeyfactorApiModelsSslUpdateNetworkRequest) HasGetRobots() bool` + +HasGetRobots returns a boolean if a field has been set. + +### GetDiscoverTimeoutMs + +`func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetDiscoverTimeoutMs() float64` + +GetDiscoverTimeoutMs returns the DiscoverTimeoutMs field if non-nil, zero value otherwise. + +### GetDiscoverTimeoutMsOk + +`func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetDiscoverTimeoutMsOk() (*float64, bool)` + +GetDiscoverTimeoutMsOk returns a tuple with the DiscoverTimeoutMs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiscoverTimeoutMs + +`func (o *KeyfactorApiModelsSslUpdateNetworkRequest) SetDiscoverTimeoutMs(v float64)` + +SetDiscoverTimeoutMs sets DiscoverTimeoutMs field to given value. + +### HasDiscoverTimeoutMs + +`func (o *KeyfactorApiModelsSslUpdateNetworkRequest) HasDiscoverTimeoutMs() bool` + +HasDiscoverTimeoutMs returns a boolean if a field has been set. + +### GetMonitorTimeoutMs + +`func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetMonitorTimeoutMs() float64` + +GetMonitorTimeoutMs returns the MonitorTimeoutMs field if non-nil, zero value otherwise. + +### GetMonitorTimeoutMsOk + +`func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetMonitorTimeoutMsOk() (*float64, bool)` + +GetMonitorTimeoutMsOk returns a tuple with the MonitorTimeoutMs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonitorTimeoutMs + +`func (o *KeyfactorApiModelsSslUpdateNetworkRequest) SetMonitorTimeoutMs(v float64)` + +SetMonitorTimeoutMs sets MonitorTimeoutMs field to given value. + +### HasMonitorTimeoutMs + +`func (o *KeyfactorApiModelsSslUpdateNetworkRequest) HasMonitorTimeoutMs() bool` + +HasMonitorTimeoutMs returns a boolean if a field has been set. + +### GetExpirationAlertDays + +`func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetExpirationAlertDays() float64` + +GetExpirationAlertDays returns the ExpirationAlertDays field if non-nil, zero value otherwise. + +### GetExpirationAlertDaysOk + +`func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetExpirationAlertDaysOk() (*float64, bool)` + +GetExpirationAlertDaysOk returns a tuple with the ExpirationAlertDays field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpirationAlertDays + +`func (o *KeyfactorApiModelsSslUpdateNetworkRequest) SetExpirationAlertDays(v float64)` + +SetExpirationAlertDays sets ExpirationAlertDays field to given value. + +### HasExpirationAlertDays + +`func (o *KeyfactorApiModelsSslUpdateNetworkRequest) HasExpirationAlertDays() bool` + +HasExpirationAlertDays returns a boolean if a field has been set. + +### GetQuietHours + +`func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetQuietHours() []KeyfactorApiModelsSslQuietHourRequest` + +GetQuietHours returns the QuietHours field if non-nil, zero value otherwise. + +### GetQuietHoursOk + +`func (o *KeyfactorApiModelsSslUpdateNetworkRequest) GetQuietHoursOk() (*[]KeyfactorApiModelsSslQuietHourRequest, bool)` + +GetQuietHoursOk returns a tuple with the QuietHours field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuietHours + +`func (o *KeyfactorApiModelsSslUpdateNetworkRequest) SetQuietHours(v []KeyfactorApiModelsSslQuietHourRequest)` + +SetQuietHours sets QuietHours field to given value. + +### HasQuietHours + +`func (o *KeyfactorApiModelsSslUpdateNetworkRequest) HasQuietHours() bool` + +HasQuietHours returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest.md b/v1/docs/KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest.md new file mode 100644 index 0000000..3dd02ea --- /dev/null +++ b/v1/docs/KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest.md @@ -0,0 +1,77 @@ +# KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SubjectPart** | **string** | The subject part to apply the default to. | +**Value** | Pointer to **string** | The value to apply by default. | [optional] + +## Methods + +### NewKeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest + +`func NewKeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest(subjectPart string, ) *KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest` + +NewKeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest instantiates a new KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsTemplatesGlobalTemplateDefaultRequestWithDefaults + +`func NewKeyfactorApiModelsTemplatesGlobalTemplateDefaultRequestWithDefaults() *KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest` + +NewKeyfactorApiModelsTemplatesGlobalTemplateDefaultRequestWithDefaults instantiates a new KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSubjectPart + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest) GetSubjectPart() string` + +GetSubjectPart returns the SubjectPart field if non-nil, zero value otherwise. + +### GetSubjectPartOk + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest) GetSubjectPartOk() (*string, bool)` + +GetSubjectPartOk returns a tuple with the SubjectPart field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubjectPart + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest) SetSubjectPart(v string)` + +SetSubjectPart sets SubjectPart field to given value. + + +### GetValue + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest) HasValue() bool` + +HasValue returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse.md b/v1/docs/KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse.md new file mode 100644 index 0000000..e1e5e8c --- /dev/null +++ b/v1/docs/KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse.md @@ -0,0 +1,82 @@ +# KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SubjectPart** | Pointer to **string** | The subject part to apply the default to. | [optional] +**Value** | Pointer to **string** | The value to apply by default. | [optional] + +## Methods + +### NewKeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse + +`func NewKeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse() *KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse` + +NewKeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse instantiates a new KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsTemplatesGlobalTemplateDefaultResponseWithDefaults + +`func NewKeyfactorApiModelsTemplatesGlobalTemplateDefaultResponseWithDefaults() *KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse` + +NewKeyfactorApiModelsTemplatesGlobalTemplateDefaultResponseWithDefaults instantiates a new KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSubjectPart + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse) GetSubjectPart() string` + +GetSubjectPart returns the SubjectPart field if non-nil, zero value otherwise. + +### GetSubjectPartOk + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse) GetSubjectPartOk() (*string, bool)` + +GetSubjectPartOk returns a tuple with the SubjectPart field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubjectPart + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse) SetSubjectPart(v string)` + +SetSubjectPart sets SubjectPart field to given value. + +### HasSubjectPart + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse) HasSubjectPart() bool` + +HasSubjectPart returns a boolean if a field has been set. + +### GetValue + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse) HasValue() bool` + +HasValue returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest.md b/v1/docs/KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest.md new file mode 100644 index 0000000..1b268e4 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest.md @@ -0,0 +1,135 @@ +# KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RSAValidKeySizes** | **[]int32** | The allowed RSA key sizes. | +**ECCValidCurves** | **[]string** | The allowed ECC curves. | +**AllowKeyReuse** | **bool** | Whether or not keys can be reused. | +**AllowWildcards** | **bool** | Whether or not wildcards can be used. | +**RFCEnforcement** | **bool** | Whether or not RFC 2818 compliance should be enforced. | + +## Methods + +### NewKeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest + +`func NewKeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest(rSAValidKeySizes []int32, eCCValidCurves []string, allowKeyReuse bool, allowWildcards bool, rFCEnforcement bool, ) *KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest` + +NewKeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest instantiates a new KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsTemplatesGlobalTemplatePolicyRequestWithDefaults + +`func NewKeyfactorApiModelsTemplatesGlobalTemplatePolicyRequestWithDefaults() *KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest` + +NewKeyfactorApiModelsTemplatesGlobalTemplatePolicyRequestWithDefaults instantiates a new KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRSAValidKeySizes + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest) GetRSAValidKeySizes() []int32` + +GetRSAValidKeySizes returns the RSAValidKeySizes field if non-nil, zero value otherwise. + +### GetRSAValidKeySizesOk + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest) GetRSAValidKeySizesOk() (*[]int32, bool)` + +GetRSAValidKeySizesOk returns a tuple with the RSAValidKeySizes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRSAValidKeySizes + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest) SetRSAValidKeySizes(v []int32)` + +SetRSAValidKeySizes sets RSAValidKeySizes field to given value. + + +### GetECCValidCurves + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest) GetECCValidCurves() []string` + +GetECCValidCurves returns the ECCValidCurves field if non-nil, zero value otherwise. + +### GetECCValidCurvesOk + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest) GetECCValidCurvesOk() (*[]string, bool)` + +GetECCValidCurvesOk returns a tuple with the ECCValidCurves field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetECCValidCurves + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest) SetECCValidCurves(v []string)` + +SetECCValidCurves sets ECCValidCurves field to given value. + + +### GetAllowKeyReuse + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest) GetAllowKeyReuse() bool` + +GetAllowKeyReuse returns the AllowKeyReuse field if non-nil, zero value otherwise. + +### GetAllowKeyReuseOk + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest) GetAllowKeyReuseOk() (*bool, bool)` + +GetAllowKeyReuseOk returns a tuple with the AllowKeyReuse field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowKeyReuse + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest) SetAllowKeyReuse(v bool)` + +SetAllowKeyReuse sets AllowKeyReuse field to given value. + + +### GetAllowWildcards + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest) GetAllowWildcards() bool` + +GetAllowWildcards returns the AllowWildcards field if non-nil, zero value otherwise. + +### GetAllowWildcardsOk + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest) GetAllowWildcardsOk() (*bool, bool)` + +GetAllowWildcardsOk returns a tuple with the AllowWildcards field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowWildcards + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest) SetAllowWildcards(v bool)` + +SetAllowWildcards sets AllowWildcards field to given value. + + +### GetRFCEnforcement + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest) GetRFCEnforcement() bool` + +GetRFCEnforcement returns the RFCEnforcement field if non-nil, zero value otherwise. + +### GetRFCEnforcementOk + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest) GetRFCEnforcementOk() (*bool, bool)` + +GetRFCEnforcementOk returns a tuple with the RFCEnforcement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRFCEnforcement + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest) SetRFCEnforcement(v bool)` + +SetRFCEnforcement sets RFCEnforcement field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse.md b/v1/docs/KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse.md new file mode 100644 index 0000000..367efb8 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse.md @@ -0,0 +1,160 @@ +# KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RSAValidKeySizes** | Pointer to **[]int32** | The allowed RSA key sizes. | [optional] +**ECCValidCurves** | Pointer to **[]string** | The allowed ECC curves. | [optional] +**AllowKeyReuse** | Pointer to **bool** | Whether or not keys can be reused. | [optional] +**AllowWildcards** | Pointer to **bool** | Whether or not wildcards can be used. | [optional] +**RFCEnforcement** | Pointer to **bool** | Whether or not RFC 2818 compliance should be enforced. | [optional] + +## Methods + +### NewKeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse + +`func NewKeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse() *KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse` + +NewKeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse instantiates a new KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsTemplatesGlobalTemplatePolicyResponseWithDefaults + +`func NewKeyfactorApiModelsTemplatesGlobalTemplatePolicyResponseWithDefaults() *KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse` + +NewKeyfactorApiModelsTemplatesGlobalTemplatePolicyResponseWithDefaults instantiates a new KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRSAValidKeySizes + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse) GetRSAValidKeySizes() []int32` + +GetRSAValidKeySizes returns the RSAValidKeySizes field if non-nil, zero value otherwise. + +### GetRSAValidKeySizesOk + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse) GetRSAValidKeySizesOk() (*[]int32, bool)` + +GetRSAValidKeySizesOk returns a tuple with the RSAValidKeySizes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRSAValidKeySizes + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse) SetRSAValidKeySizes(v []int32)` + +SetRSAValidKeySizes sets RSAValidKeySizes field to given value. + +### HasRSAValidKeySizes + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse) HasRSAValidKeySizes() bool` + +HasRSAValidKeySizes returns a boolean if a field has been set. + +### GetECCValidCurves + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse) GetECCValidCurves() []string` + +GetECCValidCurves returns the ECCValidCurves field if non-nil, zero value otherwise. + +### GetECCValidCurvesOk + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse) GetECCValidCurvesOk() (*[]string, bool)` + +GetECCValidCurvesOk returns a tuple with the ECCValidCurves field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetECCValidCurves + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse) SetECCValidCurves(v []string)` + +SetECCValidCurves sets ECCValidCurves field to given value. + +### HasECCValidCurves + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse) HasECCValidCurves() bool` + +HasECCValidCurves returns a boolean if a field has been set. + +### GetAllowKeyReuse + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse) GetAllowKeyReuse() bool` + +GetAllowKeyReuse returns the AllowKeyReuse field if non-nil, zero value otherwise. + +### GetAllowKeyReuseOk + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse) GetAllowKeyReuseOk() (*bool, bool)` + +GetAllowKeyReuseOk returns a tuple with the AllowKeyReuse field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowKeyReuse + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse) SetAllowKeyReuse(v bool)` + +SetAllowKeyReuse sets AllowKeyReuse field to given value. + +### HasAllowKeyReuse + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse) HasAllowKeyReuse() bool` + +HasAllowKeyReuse returns a boolean if a field has been set. + +### GetAllowWildcards + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse) GetAllowWildcards() bool` + +GetAllowWildcards returns the AllowWildcards field if non-nil, zero value otherwise. + +### GetAllowWildcardsOk + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse) GetAllowWildcardsOk() (*bool, bool)` + +GetAllowWildcardsOk returns a tuple with the AllowWildcards field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowWildcards + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse) SetAllowWildcards(v bool)` + +SetAllowWildcards sets AllowWildcards field to given value. + +### HasAllowWildcards + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse) HasAllowWildcards() bool` + +HasAllowWildcards returns a boolean if a field has been set. + +### GetRFCEnforcement + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse) GetRFCEnforcement() bool` + +GetRFCEnforcement returns the RFCEnforcement field if non-nil, zero value otherwise. + +### GetRFCEnforcementOk + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse) GetRFCEnforcementOk() (*bool, bool)` + +GetRFCEnforcementOk returns a tuple with the RFCEnforcement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRFCEnforcement + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse) SetRFCEnforcement(v bool)` + +SetRFCEnforcement sets RFCEnforcement field to given value. + +### HasRFCEnforcement + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse) HasRFCEnforcement() bool` + +HasRFCEnforcement returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest.md b/v1/docs/KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest.md new file mode 100644 index 0000000..d34035a --- /dev/null +++ b/v1/docs/KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest.md @@ -0,0 +1,103 @@ +# KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SubjectPart** | **string** | The subject part to apply the regular expression to. | +**Regex** | Pointer to **string** | The regular expression to apply to the subject part. | [optional] +**Error** | Pointer to **string** | The error message to show when the regex validation fails. | [optional] + +## Methods + +### NewKeyfactorApiModelsTemplatesGlobalTemplateRegexRequest + +`func NewKeyfactorApiModelsTemplatesGlobalTemplateRegexRequest(subjectPart string, ) *KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest` + +NewKeyfactorApiModelsTemplatesGlobalTemplateRegexRequest instantiates a new KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsTemplatesGlobalTemplateRegexRequestWithDefaults + +`func NewKeyfactorApiModelsTemplatesGlobalTemplateRegexRequestWithDefaults() *KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest` + +NewKeyfactorApiModelsTemplatesGlobalTemplateRegexRequestWithDefaults instantiates a new KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSubjectPart + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest) GetSubjectPart() string` + +GetSubjectPart returns the SubjectPart field if non-nil, zero value otherwise. + +### GetSubjectPartOk + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest) GetSubjectPartOk() (*string, bool)` + +GetSubjectPartOk returns a tuple with the SubjectPart field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubjectPart + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest) SetSubjectPart(v string)` + +SetSubjectPart sets SubjectPart field to given value. + + +### GetRegex + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest) GetRegex() string` + +GetRegex returns the Regex field if non-nil, zero value otherwise. + +### GetRegexOk + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest) GetRegexOk() (*string, bool)` + +GetRegexOk returns a tuple with the Regex field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegex + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest) SetRegex(v string)` + +SetRegex sets Regex field to given value. + +### HasRegex + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest) HasRegex() bool` + +HasRegex returns a boolean if a field has been set. + +### GetError + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest) GetError() string` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest) GetErrorOk() (*string, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest) SetError(v string)` + +SetError sets Error field to given value. + +### HasError + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest) HasError() bool` + +HasError returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse.md b/v1/docs/KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse.md new file mode 100644 index 0000000..d5da1d4 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse.md @@ -0,0 +1,108 @@ +# KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SubjectPart** | Pointer to **string** | The subject part to apply the regular expression to. | [optional] +**Regex** | Pointer to **string** | The regular expression to apply to the subject part. | [optional] +**Error** | Pointer to **string** | The error message to show when the regex validation fails. | [optional] + +## Methods + +### NewKeyfactorApiModelsTemplatesGlobalTemplateRegexResponse + +`func NewKeyfactorApiModelsTemplatesGlobalTemplateRegexResponse() *KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse` + +NewKeyfactorApiModelsTemplatesGlobalTemplateRegexResponse instantiates a new KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsTemplatesGlobalTemplateRegexResponseWithDefaults + +`func NewKeyfactorApiModelsTemplatesGlobalTemplateRegexResponseWithDefaults() *KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse` + +NewKeyfactorApiModelsTemplatesGlobalTemplateRegexResponseWithDefaults instantiates a new KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSubjectPart + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse) GetSubjectPart() string` + +GetSubjectPart returns the SubjectPart field if non-nil, zero value otherwise. + +### GetSubjectPartOk + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse) GetSubjectPartOk() (*string, bool)` + +GetSubjectPartOk returns a tuple with the SubjectPart field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubjectPart + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse) SetSubjectPart(v string)` + +SetSubjectPart sets SubjectPart field to given value. + +### HasSubjectPart + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse) HasSubjectPart() bool` + +HasSubjectPart returns a boolean if a field has been set. + +### GetRegex + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse) GetRegex() string` + +GetRegex returns the Regex field if non-nil, zero value otherwise. + +### GetRegexOk + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse) GetRegexOk() (*string, bool)` + +GetRegexOk returns a tuple with the Regex field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegex + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse) SetRegex(v string)` + +SetRegex sets Regex field to given value. + +### HasRegex + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse) HasRegex() bool` + +HasRegex returns a boolean if a field has been set. + +### GetError + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse) GetError() string` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse) GetErrorOk() (*string, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse) SetError(v string)` + +SetError sets Error field to given value. + +### HasError + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse) HasError() bool` + +HasError returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest.md b/v1/docs/KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest.md new file mode 100644 index 0000000..04659eb --- /dev/null +++ b/v1/docs/KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest.md @@ -0,0 +1,93 @@ +# KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TemplateRegexes** | [**[]KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest**](KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest.md) | The regular expressions to use for validation during enrollment. | +**TemplateDefaults** | [**[]KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest**](KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest.md) | The default values to use during enrollment. | +**TemplatePolicy** | [**KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest**](KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest.md) | | + +## Methods + +### NewKeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest + +`func NewKeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest(templateRegexes []KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest, templateDefaults []KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest, templatePolicy KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest, ) *KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest` + +NewKeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest instantiates a new KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsTemplatesGlobalTemplateSettingsRequestWithDefaults + +`func NewKeyfactorApiModelsTemplatesGlobalTemplateSettingsRequestWithDefaults() *KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest` + +NewKeyfactorApiModelsTemplatesGlobalTemplateSettingsRequestWithDefaults instantiates a new KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTemplateRegexes + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest) GetTemplateRegexes() []KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest` + +GetTemplateRegexes returns the TemplateRegexes field if non-nil, zero value otherwise. + +### GetTemplateRegexesOk + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest) GetTemplateRegexesOk() (*[]KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest, bool)` + +GetTemplateRegexesOk returns a tuple with the TemplateRegexes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateRegexes + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest) SetTemplateRegexes(v []KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest)` + +SetTemplateRegexes sets TemplateRegexes field to given value. + + +### GetTemplateDefaults + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest) GetTemplateDefaults() []KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest` + +GetTemplateDefaults returns the TemplateDefaults field if non-nil, zero value otherwise. + +### GetTemplateDefaultsOk + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest) GetTemplateDefaultsOk() (*[]KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest, bool)` + +GetTemplateDefaultsOk returns a tuple with the TemplateDefaults field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateDefaults + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest) SetTemplateDefaults(v []KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest)` + +SetTemplateDefaults sets TemplateDefaults field to given value. + + +### GetTemplatePolicy + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest) GetTemplatePolicy() KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest` + +GetTemplatePolicy returns the TemplatePolicy field if non-nil, zero value otherwise. + +### GetTemplatePolicyOk + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest) GetTemplatePolicyOk() (*KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest, bool)` + +GetTemplatePolicyOk returns a tuple with the TemplatePolicy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplatePolicy + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest) SetTemplatePolicy(v KeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest)` + +SetTemplatePolicy sets TemplatePolicy field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse.md b/v1/docs/KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse.md new file mode 100644 index 0000000..f443314 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse.md @@ -0,0 +1,108 @@ +# KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TemplateRegexes** | Pointer to [**[]KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse**](KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse.md) | The regular expressions to use for validation during enrollment. | [optional] +**TemplateDefaults** | Pointer to [**[]KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse**](KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse.md) | The default values to use during enrollment. | [optional] +**TemplatePolicy** | Pointer to [**KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse**](KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse.md) | | [optional] + +## Methods + +### NewKeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse + +`func NewKeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse() *KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse` + +NewKeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse instantiates a new KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsTemplatesGlobalTemplateSettingsResponseWithDefaults + +`func NewKeyfactorApiModelsTemplatesGlobalTemplateSettingsResponseWithDefaults() *KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse` + +NewKeyfactorApiModelsTemplatesGlobalTemplateSettingsResponseWithDefaults instantiates a new KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTemplateRegexes + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse) GetTemplateRegexes() []KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse` + +GetTemplateRegexes returns the TemplateRegexes field if non-nil, zero value otherwise. + +### GetTemplateRegexesOk + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse) GetTemplateRegexesOk() (*[]KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse, bool)` + +GetTemplateRegexesOk returns a tuple with the TemplateRegexes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateRegexes + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse) SetTemplateRegexes(v []KeyfactorApiModelsTemplatesGlobalTemplateRegexResponse)` + +SetTemplateRegexes sets TemplateRegexes field to given value. + +### HasTemplateRegexes + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse) HasTemplateRegexes() bool` + +HasTemplateRegexes returns a boolean if a field has been set. + +### GetTemplateDefaults + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse) GetTemplateDefaults() []KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse` + +GetTemplateDefaults returns the TemplateDefaults field if non-nil, zero value otherwise. + +### GetTemplateDefaultsOk + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse) GetTemplateDefaultsOk() (*[]KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse, bool)` + +GetTemplateDefaultsOk returns a tuple with the TemplateDefaults field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateDefaults + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse) SetTemplateDefaults(v []KeyfactorApiModelsTemplatesGlobalTemplateDefaultResponse)` + +SetTemplateDefaults sets TemplateDefaults field to given value. + +### HasTemplateDefaults + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse) HasTemplateDefaults() bool` + +HasTemplateDefaults returns a boolean if a field has been set. + +### GetTemplatePolicy + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse) GetTemplatePolicy() KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse` + +GetTemplatePolicy returns the TemplatePolicy field if non-nil, zero value otherwise. + +### GetTemplatePolicyOk + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse) GetTemplatePolicyOk() (*KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse, bool)` + +GetTemplatePolicyOk returns a tuple with the TemplatePolicy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplatePolicy + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse) SetTemplatePolicy(v KeyfactorApiModelsTemplatesGlobalTemplatePolicyResponse)` + +SetTemplatePolicy sets TemplatePolicy field to given value. + +### HasTemplatePolicy + +`func (o *KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse) HasTemplatePolicy() bool` + +HasTemplatePolicy returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse.md b/v1/docs/KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse.md new file mode 100644 index 0000000..0eca8a8 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse.md @@ -0,0 +1,82 @@ +# KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SubjectPart** | Pointer to **string** | The subject part to apply the default to. | [optional] +**Value** | Pointer to **string** | The value to apply by default. | [optional] + +## Methods + +### NewKeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse + +`func NewKeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse() *KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse` + +NewKeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse instantiates a new KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponseWithDefaults + +`func NewKeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponseWithDefaults() *KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse` + +NewKeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponseWithDefaults instantiates a new KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSubjectPart + +`func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse) GetSubjectPart() string` + +GetSubjectPart returns the SubjectPart field if non-nil, zero value otherwise. + +### GetSubjectPartOk + +`func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse) GetSubjectPartOk() (*string, bool)` + +GetSubjectPartOk returns a tuple with the SubjectPart field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubjectPart + +`func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse) SetSubjectPart(v string)` + +SetSubjectPart sets SubjectPart field to given value. + +### HasSubjectPart + +`func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse) HasSubjectPart() bool` + +HasSubjectPart returns a boolean if a field has been set. + +### GetValue + +`func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse) HasValue() bool` + +HasValue returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse.md b/v1/docs/KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse.md new file mode 100644 index 0000000..21fe4d7 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse.md @@ -0,0 +1,160 @@ +# KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RSAValidKeySizes** | Pointer to **[]int32** | The allowed RSA key sizes. | [optional] +**ECCValidCurves** | Pointer to **[]string** | The allowed ECC curves. | [optional] +**AllowKeyReuse** | Pointer to **bool** | Whether or not keys can be reused. | [optional] +**AllowWildcards** | Pointer to **bool** | Whether or not wildcards can be used. | [optional] +**RFCEnforcement** | Pointer to **bool** | Whether or not RFC 2818 compliance should be enforced. | [optional] + +## Methods + +### NewKeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse + +`func NewKeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse() *KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse` + +NewKeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse instantiates a new KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponseWithDefaults + +`func NewKeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponseWithDefaults() *KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse` + +NewKeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponseWithDefaults instantiates a new KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRSAValidKeySizes + +`func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse) GetRSAValidKeySizes() []int32` + +GetRSAValidKeySizes returns the RSAValidKeySizes field if non-nil, zero value otherwise. + +### GetRSAValidKeySizesOk + +`func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse) GetRSAValidKeySizesOk() (*[]int32, bool)` + +GetRSAValidKeySizesOk returns a tuple with the RSAValidKeySizes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRSAValidKeySizes + +`func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse) SetRSAValidKeySizes(v []int32)` + +SetRSAValidKeySizes sets RSAValidKeySizes field to given value. + +### HasRSAValidKeySizes + +`func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse) HasRSAValidKeySizes() bool` + +HasRSAValidKeySizes returns a boolean if a field has been set. + +### GetECCValidCurves + +`func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse) GetECCValidCurves() []string` + +GetECCValidCurves returns the ECCValidCurves field if non-nil, zero value otherwise. + +### GetECCValidCurvesOk + +`func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse) GetECCValidCurvesOk() (*[]string, bool)` + +GetECCValidCurvesOk returns a tuple with the ECCValidCurves field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetECCValidCurves + +`func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse) SetECCValidCurves(v []string)` + +SetECCValidCurves sets ECCValidCurves field to given value. + +### HasECCValidCurves + +`func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse) HasECCValidCurves() bool` + +HasECCValidCurves returns a boolean if a field has been set. + +### GetAllowKeyReuse + +`func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse) GetAllowKeyReuse() bool` + +GetAllowKeyReuse returns the AllowKeyReuse field if non-nil, zero value otherwise. + +### GetAllowKeyReuseOk + +`func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse) GetAllowKeyReuseOk() (*bool, bool)` + +GetAllowKeyReuseOk returns a tuple with the AllowKeyReuse field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowKeyReuse + +`func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse) SetAllowKeyReuse(v bool)` + +SetAllowKeyReuse sets AllowKeyReuse field to given value. + +### HasAllowKeyReuse + +`func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse) HasAllowKeyReuse() bool` + +HasAllowKeyReuse returns a boolean if a field has been set. + +### GetAllowWildcards + +`func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse) GetAllowWildcards() bool` + +GetAllowWildcards returns the AllowWildcards field if non-nil, zero value otherwise. + +### GetAllowWildcardsOk + +`func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse) GetAllowWildcardsOk() (*bool, bool)` + +GetAllowWildcardsOk returns a tuple with the AllowWildcards field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowWildcards + +`func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse) SetAllowWildcards(v bool)` + +SetAllowWildcards sets AllowWildcards field to given value. + +### HasAllowWildcards + +`func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse) HasAllowWildcards() bool` + +HasAllowWildcards returns a boolean if a field has been set. + +### GetRFCEnforcement + +`func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse) GetRFCEnforcement() bool` + +GetRFCEnforcement returns the RFCEnforcement field if non-nil, zero value otherwise. + +### GetRFCEnforcementOk + +`func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse) GetRFCEnforcementOk() (*bool, bool)` + +GetRFCEnforcementOk returns a tuple with the RFCEnforcement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRFCEnforcement + +`func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse) SetRFCEnforcement(v bool)` + +SetRFCEnforcement sets RFCEnforcement field to given value. + +### HasRFCEnforcement + +`func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse) HasRFCEnforcement() bool` + +HasRFCEnforcement returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse.md b/v1/docs/KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse.md new file mode 100644 index 0000000..f8c387b --- /dev/null +++ b/v1/docs/KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse.md @@ -0,0 +1,108 @@ +# KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SubjectPart** | Pointer to **string** | The subject part to apply the regular expression to. | [optional] +**Regex** | Pointer to **string** | The regular expression to apply to the subject part. | [optional] +**Error** | Pointer to **string** | The error message to show when the regex validation fails. | [optional] + +## Methods + +### NewKeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse + +`func NewKeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse() *KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse` + +NewKeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse instantiates a new KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponseWithDefaults + +`func NewKeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponseWithDefaults() *KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse` + +NewKeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponseWithDefaults instantiates a new KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSubjectPart + +`func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse) GetSubjectPart() string` + +GetSubjectPart returns the SubjectPart field if non-nil, zero value otherwise. + +### GetSubjectPartOk + +`func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse) GetSubjectPartOk() (*string, bool)` + +GetSubjectPartOk returns a tuple with the SubjectPart field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubjectPart + +`func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse) SetSubjectPart(v string)` + +SetSubjectPart sets SubjectPart field to given value. + +### HasSubjectPart + +`func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse) HasSubjectPart() bool` + +HasSubjectPart returns a boolean if a field has been set. + +### GetRegex + +`func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse) GetRegex() string` + +GetRegex returns the Regex field if non-nil, zero value otherwise. + +### GetRegexOk + +`func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse) GetRegexOk() (*string, bool)` + +GetRegexOk returns a tuple with the Regex field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegex + +`func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse) SetRegex(v string)` + +SetRegex sets Regex field to given value. + +### HasRegex + +`func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse) HasRegex() bool` + +HasRegex returns a boolean if a field has been set. + +### GetError + +`func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse) GetError() string` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse) GetErrorOk() (*string, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse) SetError(v string)` + +SetError sets Error field to given value. + +### HasError + +`func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse) HasError() bool` + +HasError returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse.md b/v1/docs/KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse.md new file mode 100644 index 0000000..d38868c --- /dev/null +++ b/v1/docs/KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse.md @@ -0,0 +1,108 @@ +# KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TemplateRegexes** | Pointer to [**[]KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse**](KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse.md) | The regular expressions to use for validation during enrollment. | [optional] +**TemplateDefaults** | Pointer to [**[]KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse**](KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse.md) | The default values to use during enrollment. | [optional] +**TemplatePolicy** | Pointer to [**KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse**](KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse.md) | | [optional] + +## Methods + +### NewKeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse + +`func NewKeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse() *KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse` + +NewKeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse instantiates a new KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponseWithDefaults + +`func NewKeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponseWithDefaults() *KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse` + +NewKeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponseWithDefaults instantiates a new KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTemplateRegexes + +`func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse) GetTemplateRegexes() []KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse` + +GetTemplateRegexes returns the TemplateRegexes field if non-nil, zero value otherwise. + +### GetTemplateRegexesOk + +`func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse) GetTemplateRegexesOk() (*[]KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse, bool)` + +GetTemplateRegexesOk returns a tuple with the TemplateRegexes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateRegexes + +`func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse) SetTemplateRegexes(v []KeyfactorApiModelsTemplatesTemplateEnrollmentRegexResponse)` + +SetTemplateRegexes sets TemplateRegexes field to given value. + +### HasTemplateRegexes + +`func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse) HasTemplateRegexes() bool` + +HasTemplateRegexes returns a boolean if a field has been set. + +### GetTemplateDefaults + +`func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse) GetTemplateDefaults() []KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse` + +GetTemplateDefaults returns the TemplateDefaults field if non-nil, zero value otherwise. + +### GetTemplateDefaultsOk + +`func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse) GetTemplateDefaultsOk() (*[]KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse, bool)` + +GetTemplateDefaultsOk returns a tuple with the TemplateDefaults field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateDefaults + +`func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse) SetTemplateDefaults(v []KeyfactorApiModelsTemplatesTemplateEnrollmentDefaultResponse)` + +SetTemplateDefaults sets TemplateDefaults field to given value. + +### HasTemplateDefaults + +`func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse) HasTemplateDefaults() bool` + +HasTemplateDefaults returns a boolean if a field has been set. + +### GetTemplatePolicy + +`func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse) GetTemplatePolicy() KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse` + +GetTemplatePolicy returns the TemplatePolicy field if non-nil, zero value otherwise. + +### GetTemplatePolicyOk + +`func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse) GetTemplatePolicyOk() (*KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse, bool)` + +GetTemplatePolicyOk returns a tuple with the TemplatePolicy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplatePolicy + +`func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse) SetTemplatePolicy(v KeyfactorApiModelsTemplatesTemplateEnrollmentPolicyResponse)` + +SetTemplatePolicy sets TemplatePolicy field to given value. + +### HasTemplatePolicy + +`func (o *KeyfactorApiModelsTemplatesTemplateEnrollmentSettingsResponse) HasTemplatePolicy() bool` + +HasTemplatePolicy returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsTemplatesValidSubjectPartResponse.md b/v1/docs/KeyfactorApiModelsTemplatesValidSubjectPartResponse.md new file mode 100644 index 0000000..6359311 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsTemplatesValidSubjectPartResponse.md @@ -0,0 +1,82 @@ +# KeyfactorApiModelsTemplatesValidSubjectPartResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SubjectPart** | Pointer to **string** | | [optional] +**SubjectPartName** | Pointer to **string** | | [optional] + +## Methods + +### NewKeyfactorApiModelsTemplatesValidSubjectPartResponse + +`func NewKeyfactorApiModelsTemplatesValidSubjectPartResponse() *KeyfactorApiModelsTemplatesValidSubjectPartResponse` + +NewKeyfactorApiModelsTemplatesValidSubjectPartResponse instantiates a new KeyfactorApiModelsTemplatesValidSubjectPartResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsTemplatesValidSubjectPartResponseWithDefaults + +`func NewKeyfactorApiModelsTemplatesValidSubjectPartResponseWithDefaults() *KeyfactorApiModelsTemplatesValidSubjectPartResponse` + +NewKeyfactorApiModelsTemplatesValidSubjectPartResponseWithDefaults instantiates a new KeyfactorApiModelsTemplatesValidSubjectPartResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSubjectPart + +`func (o *KeyfactorApiModelsTemplatesValidSubjectPartResponse) GetSubjectPart() string` + +GetSubjectPart returns the SubjectPart field if non-nil, zero value otherwise. + +### GetSubjectPartOk + +`func (o *KeyfactorApiModelsTemplatesValidSubjectPartResponse) GetSubjectPartOk() (*string, bool)` + +GetSubjectPartOk returns a tuple with the SubjectPart field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubjectPart + +`func (o *KeyfactorApiModelsTemplatesValidSubjectPartResponse) SetSubjectPart(v string)` + +SetSubjectPart sets SubjectPart field to given value. + +### HasSubjectPart + +`func (o *KeyfactorApiModelsTemplatesValidSubjectPartResponse) HasSubjectPart() bool` + +HasSubjectPart returns a boolean if a field has been set. + +### GetSubjectPartName + +`func (o *KeyfactorApiModelsTemplatesValidSubjectPartResponse) GetSubjectPartName() string` + +GetSubjectPartName returns the SubjectPartName field if non-nil, zero value otherwise. + +### GetSubjectPartNameOk + +`func (o *KeyfactorApiModelsTemplatesValidSubjectPartResponse) GetSubjectPartNameOk() (*string, bool)` + +GetSubjectPartNameOk returns a tuple with the SubjectPartName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubjectPartName + +`func (o *KeyfactorApiModelsTemplatesValidSubjectPartResponse) SetSubjectPartName(v string)` + +SetSubjectPartName sets SubjectPartName field to given value. + +### HasSubjectPartName + +`func (o *KeyfactorApiModelsTemplatesValidSubjectPartResponse) HasSubjectPartName() bool` + +HasSubjectPartName returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsWorkflowsAvailableSignalResponse.md b/v1/docs/KeyfactorApiModelsWorkflowsAvailableSignalResponse.md new file mode 100644 index 0000000..f3cc3be --- /dev/null +++ b/v1/docs/KeyfactorApiModelsWorkflowsAvailableSignalResponse.md @@ -0,0 +1,108 @@ +# KeyfactorApiModelsWorkflowsAvailableSignalResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SignalName** | Pointer to **string** | The name of the signal. | [optional] +**StepSignalId** | Pointer to **string** | The signal Id. | [optional] +**SignalReceived** | Pointer to **bool** | Whether or not the signal has been received. | [optional] + +## Methods + +### NewKeyfactorApiModelsWorkflowsAvailableSignalResponse + +`func NewKeyfactorApiModelsWorkflowsAvailableSignalResponse() *KeyfactorApiModelsWorkflowsAvailableSignalResponse` + +NewKeyfactorApiModelsWorkflowsAvailableSignalResponse instantiates a new KeyfactorApiModelsWorkflowsAvailableSignalResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsWorkflowsAvailableSignalResponseWithDefaults + +`func NewKeyfactorApiModelsWorkflowsAvailableSignalResponseWithDefaults() *KeyfactorApiModelsWorkflowsAvailableSignalResponse` + +NewKeyfactorApiModelsWorkflowsAvailableSignalResponseWithDefaults instantiates a new KeyfactorApiModelsWorkflowsAvailableSignalResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSignalName + +`func (o *KeyfactorApiModelsWorkflowsAvailableSignalResponse) GetSignalName() string` + +GetSignalName returns the SignalName field if non-nil, zero value otherwise. + +### GetSignalNameOk + +`func (o *KeyfactorApiModelsWorkflowsAvailableSignalResponse) GetSignalNameOk() (*string, bool)` + +GetSignalNameOk returns a tuple with the SignalName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignalName + +`func (o *KeyfactorApiModelsWorkflowsAvailableSignalResponse) SetSignalName(v string)` + +SetSignalName sets SignalName field to given value. + +### HasSignalName + +`func (o *KeyfactorApiModelsWorkflowsAvailableSignalResponse) HasSignalName() bool` + +HasSignalName returns a boolean if a field has been set. + +### GetStepSignalId + +`func (o *KeyfactorApiModelsWorkflowsAvailableSignalResponse) GetStepSignalId() string` + +GetStepSignalId returns the StepSignalId field if non-nil, zero value otherwise. + +### GetStepSignalIdOk + +`func (o *KeyfactorApiModelsWorkflowsAvailableSignalResponse) GetStepSignalIdOk() (*string, bool)` + +GetStepSignalIdOk returns a tuple with the StepSignalId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStepSignalId + +`func (o *KeyfactorApiModelsWorkflowsAvailableSignalResponse) SetStepSignalId(v string)` + +SetStepSignalId sets StepSignalId field to given value. + +### HasStepSignalId + +`func (o *KeyfactorApiModelsWorkflowsAvailableSignalResponse) HasStepSignalId() bool` + +HasStepSignalId returns a boolean if a field has been set. + +### GetSignalReceived + +`func (o *KeyfactorApiModelsWorkflowsAvailableSignalResponse) GetSignalReceived() bool` + +GetSignalReceived returns the SignalReceived field if non-nil, zero value otherwise. + +### GetSignalReceivedOk + +`func (o *KeyfactorApiModelsWorkflowsAvailableSignalResponse) GetSignalReceivedOk() (*bool, bool)` + +GetSignalReceivedOk returns a tuple with the SignalReceived field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignalReceived + +`func (o *KeyfactorApiModelsWorkflowsAvailableSignalResponse) SetSignalReceived(v bool)` + +SetSignalReceived sets SignalReceived field to given value. + +### HasSignalReceived + +`func (o *KeyfactorApiModelsWorkflowsAvailableSignalResponse) HasSignalReceived() bool` + +HasSignalReceived returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsWorkflowsAvailableStepQueryResponse.md b/v1/docs/KeyfactorApiModelsWorkflowsAvailableStepQueryResponse.md new file mode 100644 index 0000000..a028008 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsWorkflowsAvailableStepQueryResponse.md @@ -0,0 +1,160 @@ +# KeyfactorApiModelsWorkflowsAvailableStepQueryResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DisplayName** | Pointer to **string** | The display name of the step. | [optional] +**ExtensionName** | Pointer to **string** | The extension name of the step. | [optional] +**SupportedWorkflowTypes** | Pointer to **[]string** | The workflow types which this step can be a part of. | [optional] +**ConfigurationParametersDefinition** | Pointer to [**map[string]KeyfactorApiModelsWorkflowsParameterDefinitionResponse**](KeyfactorApiModelsWorkflowsParameterDefinitionResponse.md) | | [optional] +**SignalsDefinition** | Pointer to [**map[string]KeyfactorApiModelsWorkflowsSignalDefinitionResponse**](KeyfactorApiModelsWorkflowsSignalDefinitionResponse.md) | | [optional] + +## Methods + +### NewKeyfactorApiModelsWorkflowsAvailableStepQueryResponse + +`func NewKeyfactorApiModelsWorkflowsAvailableStepQueryResponse() *KeyfactorApiModelsWorkflowsAvailableStepQueryResponse` + +NewKeyfactorApiModelsWorkflowsAvailableStepQueryResponse instantiates a new KeyfactorApiModelsWorkflowsAvailableStepQueryResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsWorkflowsAvailableStepQueryResponseWithDefaults + +`func NewKeyfactorApiModelsWorkflowsAvailableStepQueryResponseWithDefaults() *KeyfactorApiModelsWorkflowsAvailableStepQueryResponse` + +NewKeyfactorApiModelsWorkflowsAvailableStepQueryResponseWithDefaults instantiates a new KeyfactorApiModelsWorkflowsAvailableStepQueryResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDisplayName + +`func (o *KeyfactorApiModelsWorkflowsAvailableStepQueryResponse) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *KeyfactorApiModelsWorkflowsAvailableStepQueryResponse) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *KeyfactorApiModelsWorkflowsAvailableStepQueryResponse) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *KeyfactorApiModelsWorkflowsAvailableStepQueryResponse) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetExtensionName + +`func (o *KeyfactorApiModelsWorkflowsAvailableStepQueryResponse) GetExtensionName() string` + +GetExtensionName returns the ExtensionName field if non-nil, zero value otherwise. + +### GetExtensionNameOk + +`func (o *KeyfactorApiModelsWorkflowsAvailableStepQueryResponse) GetExtensionNameOk() (*string, bool)` + +GetExtensionNameOk returns a tuple with the ExtensionName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtensionName + +`func (o *KeyfactorApiModelsWorkflowsAvailableStepQueryResponse) SetExtensionName(v string)` + +SetExtensionName sets ExtensionName field to given value. + +### HasExtensionName + +`func (o *KeyfactorApiModelsWorkflowsAvailableStepQueryResponse) HasExtensionName() bool` + +HasExtensionName returns a boolean if a field has been set. + +### GetSupportedWorkflowTypes + +`func (o *KeyfactorApiModelsWorkflowsAvailableStepQueryResponse) GetSupportedWorkflowTypes() []string` + +GetSupportedWorkflowTypes returns the SupportedWorkflowTypes field if non-nil, zero value otherwise. + +### GetSupportedWorkflowTypesOk + +`func (o *KeyfactorApiModelsWorkflowsAvailableStepQueryResponse) GetSupportedWorkflowTypesOk() (*[]string, bool)` + +GetSupportedWorkflowTypesOk returns a tuple with the SupportedWorkflowTypes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSupportedWorkflowTypes + +`func (o *KeyfactorApiModelsWorkflowsAvailableStepQueryResponse) SetSupportedWorkflowTypes(v []string)` + +SetSupportedWorkflowTypes sets SupportedWorkflowTypes field to given value. + +### HasSupportedWorkflowTypes + +`func (o *KeyfactorApiModelsWorkflowsAvailableStepQueryResponse) HasSupportedWorkflowTypes() bool` + +HasSupportedWorkflowTypes returns a boolean if a field has been set. + +### GetConfigurationParametersDefinition + +`func (o *KeyfactorApiModelsWorkflowsAvailableStepQueryResponse) GetConfigurationParametersDefinition() map[string]KeyfactorApiModelsWorkflowsParameterDefinitionResponse` + +GetConfigurationParametersDefinition returns the ConfigurationParametersDefinition field if non-nil, zero value otherwise. + +### GetConfigurationParametersDefinitionOk + +`func (o *KeyfactorApiModelsWorkflowsAvailableStepQueryResponse) GetConfigurationParametersDefinitionOk() (*map[string]KeyfactorApiModelsWorkflowsParameterDefinitionResponse, bool)` + +GetConfigurationParametersDefinitionOk returns a tuple with the ConfigurationParametersDefinition field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigurationParametersDefinition + +`func (o *KeyfactorApiModelsWorkflowsAvailableStepQueryResponse) SetConfigurationParametersDefinition(v map[string]KeyfactorApiModelsWorkflowsParameterDefinitionResponse)` + +SetConfigurationParametersDefinition sets ConfigurationParametersDefinition field to given value. + +### HasConfigurationParametersDefinition + +`func (o *KeyfactorApiModelsWorkflowsAvailableStepQueryResponse) HasConfigurationParametersDefinition() bool` + +HasConfigurationParametersDefinition returns a boolean if a field has been set. + +### GetSignalsDefinition + +`func (o *KeyfactorApiModelsWorkflowsAvailableStepQueryResponse) GetSignalsDefinition() map[string]KeyfactorApiModelsWorkflowsSignalDefinitionResponse` + +GetSignalsDefinition returns the SignalsDefinition field if non-nil, zero value otherwise. + +### GetSignalsDefinitionOk + +`func (o *KeyfactorApiModelsWorkflowsAvailableStepQueryResponse) GetSignalsDefinitionOk() (*map[string]KeyfactorApiModelsWorkflowsSignalDefinitionResponse, bool)` + +GetSignalsDefinitionOk returns a tuple with the SignalsDefinition field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignalsDefinition + +`func (o *KeyfactorApiModelsWorkflowsAvailableStepQueryResponse) SetSignalsDefinition(v map[string]KeyfactorApiModelsWorkflowsSignalDefinitionResponse)` + +SetSignalsDefinition sets SignalsDefinition field to given value. + +### HasSignalsDefinition + +`func (o *KeyfactorApiModelsWorkflowsAvailableStepQueryResponse) HasSignalsDefinition() bool` + +HasSignalsDefinition returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsWorkflowsAvailableStepResponse.md b/v1/docs/KeyfactorApiModelsWorkflowsAvailableStepResponse.md new file mode 100644 index 0000000..4d720bc --- /dev/null +++ b/v1/docs/KeyfactorApiModelsWorkflowsAvailableStepResponse.md @@ -0,0 +1,160 @@ +# KeyfactorApiModelsWorkflowsAvailableStepResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DisplayName** | Pointer to **string** | The display name of the step. | [optional] +**ExtensionName** | Pointer to **string** | The name of the extension. | [optional] +**Outputs** | Pointer to **[]string** | The possible outputs of the step. | [optional] +**ConfigurationParametersDefinition** | Pointer to [**map[string]KeyfactorApiModelsWorkflowsParameterDefinitionResponse**](KeyfactorApiModelsWorkflowsParameterDefinitionResponse.md) | | [optional] +**SignalsDefinition** | Pointer to [**map[string]KeyfactorApiModelsWorkflowsSignalDefinitionResponse**](KeyfactorApiModelsWorkflowsSignalDefinitionResponse.md) | | [optional] + +## Methods + +### NewKeyfactorApiModelsWorkflowsAvailableStepResponse + +`func NewKeyfactorApiModelsWorkflowsAvailableStepResponse() *KeyfactorApiModelsWorkflowsAvailableStepResponse` + +NewKeyfactorApiModelsWorkflowsAvailableStepResponse instantiates a new KeyfactorApiModelsWorkflowsAvailableStepResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsWorkflowsAvailableStepResponseWithDefaults + +`func NewKeyfactorApiModelsWorkflowsAvailableStepResponseWithDefaults() *KeyfactorApiModelsWorkflowsAvailableStepResponse` + +NewKeyfactorApiModelsWorkflowsAvailableStepResponseWithDefaults instantiates a new KeyfactorApiModelsWorkflowsAvailableStepResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDisplayName + +`func (o *KeyfactorApiModelsWorkflowsAvailableStepResponse) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *KeyfactorApiModelsWorkflowsAvailableStepResponse) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *KeyfactorApiModelsWorkflowsAvailableStepResponse) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *KeyfactorApiModelsWorkflowsAvailableStepResponse) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetExtensionName + +`func (o *KeyfactorApiModelsWorkflowsAvailableStepResponse) GetExtensionName() string` + +GetExtensionName returns the ExtensionName field if non-nil, zero value otherwise. + +### GetExtensionNameOk + +`func (o *KeyfactorApiModelsWorkflowsAvailableStepResponse) GetExtensionNameOk() (*string, bool)` + +GetExtensionNameOk returns a tuple with the ExtensionName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtensionName + +`func (o *KeyfactorApiModelsWorkflowsAvailableStepResponse) SetExtensionName(v string)` + +SetExtensionName sets ExtensionName field to given value. + +### HasExtensionName + +`func (o *KeyfactorApiModelsWorkflowsAvailableStepResponse) HasExtensionName() bool` + +HasExtensionName returns a boolean if a field has been set. + +### GetOutputs + +`func (o *KeyfactorApiModelsWorkflowsAvailableStepResponse) GetOutputs() []string` + +GetOutputs returns the Outputs field if non-nil, zero value otherwise. + +### GetOutputsOk + +`func (o *KeyfactorApiModelsWorkflowsAvailableStepResponse) GetOutputsOk() (*[]string, bool)` + +GetOutputsOk returns a tuple with the Outputs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOutputs + +`func (o *KeyfactorApiModelsWorkflowsAvailableStepResponse) SetOutputs(v []string)` + +SetOutputs sets Outputs field to given value. + +### HasOutputs + +`func (o *KeyfactorApiModelsWorkflowsAvailableStepResponse) HasOutputs() bool` + +HasOutputs returns a boolean if a field has been set. + +### GetConfigurationParametersDefinition + +`func (o *KeyfactorApiModelsWorkflowsAvailableStepResponse) GetConfigurationParametersDefinition() map[string]KeyfactorApiModelsWorkflowsParameterDefinitionResponse` + +GetConfigurationParametersDefinition returns the ConfigurationParametersDefinition field if non-nil, zero value otherwise. + +### GetConfigurationParametersDefinitionOk + +`func (o *KeyfactorApiModelsWorkflowsAvailableStepResponse) GetConfigurationParametersDefinitionOk() (*map[string]KeyfactorApiModelsWorkflowsParameterDefinitionResponse, bool)` + +GetConfigurationParametersDefinitionOk returns a tuple with the ConfigurationParametersDefinition field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigurationParametersDefinition + +`func (o *KeyfactorApiModelsWorkflowsAvailableStepResponse) SetConfigurationParametersDefinition(v map[string]KeyfactorApiModelsWorkflowsParameterDefinitionResponse)` + +SetConfigurationParametersDefinition sets ConfigurationParametersDefinition field to given value. + +### HasConfigurationParametersDefinition + +`func (o *KeyfactorApiModelsWorkflowsAvailableStepResponse) HasConfigurationParametersDefinition() bool` + +HasConfigurationParametersDefinition returns a boolean if a field has been set. + +### GetSignalsDefinition + +`func (o *KeyfactorApiModelsWorkflowsAvailableStepResponse) GetSignalsDefinition() map[string]KeyfactorApiModelsWorkflowsSignalDefinitionResponse` + +GetSignalsDefinition returns the SignalsDefinition field if non-nil, zero value otherwise. + +### GetSignalsDefinitionOk + +`func (o *KeyfactorApiModelsWorkflowsAvailableStepResponse) GetSignalsDefinitionOk() (*map[string]KeyfactorApiModelsWorkflowsSignalDefinitionResponse, bool)` + +GetSignalsDefinitionOk returns a tuple with the SignalsDefinition field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignalsDefinition + +`func (o *KeyfactorApiModelsWorkflowsAvailableStepResponse) SetSignalsDefinition(v map[string]KeyfactorApiModelsWorkflowsSignalDefinitionResponse)` + +SetSignalsDefinition sets SignalsDefinition field to given value. + +### HasSignalsDefinition + +`func (o *KeyfactorApiModelsWorkflowsAvailableStepResponse) HasSignalsDefinition() bool` + +HasSignalsDefinition returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsWorkflowsConditionConfigurationRequest.md b/v1/docs/KeyfactorApiModelsWorkflowsConditionConfigurationRequest.md new file mode 100644 index 0000000..f139d35 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsWorkflowsConditionConfigurationRequest.md @@ -0,0 +1,56 @@ +# KeyfactorApiModelsWorkflowsConditionConfigurationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to **string** | The value to compare to true when evaluating conditions. | [optional] + +## Methods + +### NewKeyfactorApiModelsWorkflowsConditionConfigurationRequest + +`func NewKeyfactorApiModelsWorkflowsConditionConfigurationRequest() *KeyfactorApiModelsWorkflowsConditionConfigurationRequest` + +NewKeyfactorApiModelsWorkflowsConditionConfigurationRequest instantiates a new KeyfactorApiModelsWorkflowsConditionConfigurationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsWorkflowsConditionConfigurationRequestWithDefaults + +`func NewKeyfactorApiModelsWorkflowsConditionConfigurationRequestWithDefaults() *KeyfactorApiModelsWorkflowsConditionConfigurationRequest` + +NewKeyfactorApiModelsWorkflowsConditionConfigurationRequestWithDefaults instantiates a new KeyfactorApiModelsWorkflowsConditionConfigurationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *KeyfactorApiModelsWorkflowsConditionConfigurationRequest) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *KeyfactorApiModelsWorkflowsConditionConfigurationRequest) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *KeyfactorApiModelsWorkflowsConditionConfigurationRequest) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *KeyfactorApiModelsWorkflowsConditionConfigurationRequest) HasValue() bool` + +HasValue returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsWorkflowsConditionConfigurationResponse.md b/v1/docs/KeyfactorApiModelsWorkflowsConditionConfigurationResponse.md new file mode 100644 index 0000000..1f772bb --- /dev/null +++ b/v1/docs/KeyfactorApiModelsWorkflowsConditionConfigurationResponse.md @@ -0,0 +1,82 @@ +# KeyfactorApiModelsWorkflowsConditionConfigurationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | The Id of the condition. | [optional] +**Value** | Pointer to **string** | The value to compare to. This value will be compared to a true value. | [optional] + +## Methods + +### NewKeyfactorApiModelsWorkflowsConditionConfigurationResponse + +`func NewKeyfactorApiModelsWorkflowsConditionConfigurationResponse() *KeyfactorApiModelsWorkflowsConditionConfigurationResponse` + +NewKeyfactorApiModelsWorkflowsConditionConfigurationResponse instantiates a new KeyfactorApiModelsWorkflowsConditionConfigurationResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsWorkflowsConditionConfigurationResponseWithDefaults + +`func NewKeyfactorApiModelsWorkflowsConditionConfigurationResponseWithDefaults() *KeyfactorApiModelsWorkflowsConditionConfigurationResponse` + +NewKeyfactorApiModelsWorkflowsConditionConfigurationResponseWithDefaults instantiates a new KeyfactorApiModelsWorkflowsConditionConfigurationResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *KeyfactorApiModelsWorkflowsConditionConfigurationResponse) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *KeyfactorApiModelsWorkflowsConditionConfigurationResponse) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *KeyfactorApiModelsWorkflowsConditionConfigurationResponse) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *KeyfactorApiModelsWorkflowsConditionConfigurationResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetValue + +`func (o *KeyfactorApiModelsWorkflowsConditionConfigurationResponse) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *KeyfactorApiModelsWorkflowsConditionConfigurationResponse) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *KeyfactorApiModelsWorkflowsConditionConfigurationResponse) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *KeyfactorApiModelsWorkflowsConditionConfigurationResponse) HasValue() bool` + +HasValue returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsWorkflowsDefinitionCreateRequest.md b/v1/docs/KeyfactorApiModelsWorkflowsDefinitionCreateRequest.md new file mode 100644 index 0000000..f338f5c --- /dev/null +++ b/v1/docs/KeyfactorApiModelsWorkflowsDefinitionCreateRequest.md @@ -0,0 +1,134 @@ +# KeyfactorApiModelsWorkflowsDefinitionCreateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DisplayName** | Pointer to **string** | Display name of the Definition | [optional] +**Description** | Pointer to **string** | Description of the Definition | [optional] +**Key** | Pointer to **string** | Key to be used to look up definition when starting a new workflow. For enrollment workflowTypes, this should be a template | [optional] +**WorkflowType** | Pointer to **string** | The Type of Workflow | [optional] + +## Methods + +### NewKeyfactorApiModelsWorkflowsDefinitionCreateRequest + +`func NewKeyfactorApiModelsWorkflowsDefinitionCreateRequest() *KeyfactorApiModelsWorkflowsDefinitionCreateRequest` + +NewKeyfactorApiModelsWorkflowsDefinitionCreateRequest instantiates a new KeyfactorApiModelsWorkflowsDefinitionCreateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsWorkflowsDefinitionCreateRequestWithDefaults + +`func NewKeyfactorApiModelsWorkflowsDefinitionCreateRequestWithDefaults() *KeyfactorApiModelsWorkflowsDefinitionCreateRequest` + +NewKeyfactorApiModelsWorkflowsDefinitionCreateRequestWithDefaults instantiates a new KeyfactorApiModelsWorkflowsDefinitionCreateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDisplayName + +`func (o *KeyfactorApiModelsWorkflowsDefinitionCreateRequest) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *KeyfactorApiModelsWorkflowsDefinitionCreateRequest) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *KeyfactorApiModelsWorkflowsDefinitionCreateRequest) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *KeyfactorApiModelsWorkflowsDefinitionCreateRequest) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetDescription + +`func (o *KeyfactorApiModelsWorkflowsDefinitionCreateRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *KeyfactorApiModelsWorkflowsDefinitionCreateRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *KeyfactorApiModelsWorkflowsDefinitionCreateRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *KeyfactorApiModelsWorkflowsDefinitionCreateRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetKey + +`func (o *KeyfactorApiModelsWorkflowsDefinitionCreateRequest) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *KeyfactorApiModelsWorkflowsDefinitionCreateRequest) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *KeyfactorApiModelsWorkflowsDefinitionCreateRequest) SetKey(v string)` + +SetKey sets Key field to given value. + +### HasKey + +`func (o *KeyfactorApiModelsWorkflowsDefinitionCreateRequest) HasKey() bool` + +HasKey returns a boolean if a field has been set. + +### GetWorkflowType + +`func (o *KeyfactorApiModelsWorkflowsDefinitionCreateRequest) GetWorkflowType() string` + +GetWorkflowType returns the WorkflowType field if non-nil, zero value otherwise. + +### GetWorkflowTypeOk + +`func (o *KeyfactorApiModelsWorkflowsDefinitionCreateRequest) GetWorkflowTypeOk() (*string, bool)` + +GetWorkflowTypeOk returns a tuple with the WorkflowType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflowType + +`func (o *KeyfactorApiModelsWorkflowsDefinitionCreateRequest) SetWorkflowType(v string)` + +SetWorkflowType sets WorkflowType field to given value. + +### HasWorkflowType + +`func (o *KeyfactorApiModelsWorkflowsDefinitionCreateRequest) HasWorkflowType() bool` + +HasWorkflowType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsWorkflowsDefinitionQueryResponse.md b/v1/docs/KeyfactorApiModelsWorkflowsDefinitionQueryResponse.md new file mode 100644 index 0000000..2b4b750 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsWorkflowsDefinitionQueryResponse.md @@ -0,0 +1,212 @@ +# KeyfactorApiModelsWorkflowsDefinitionQueryResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**DisplayName** | Pointer to **string** | | [optional] +**Key** | Pointer to **string** | | [optional] +**KeyDisplayName** | Pointer to **string** | | [optional] +**WorkflowType** | Pointer to **string** | | [optional] +**DraftVersion** | Pointer to **int32** | | [optional] +**PublishedVersion** | Pointer to **int32** | | [optional] + +## Methods + +### NewKeyfactorApiModelsWorkflowsDefinitionQueryResponse + +`func NewKeyfactorApiModelsWorkflowsDefinitionQueryResponse() *KeyfactorApiModelsWorkflowsDefinitionQueryResponse` + +NewKeyfactorApiModelsWorkflowsDefinitionQueryResponse instantiates a new KeyfactorApiModelsWorkflowsDefinitionQueryResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsWorkflowsDefinitionQueryResponseWithDefaults + +`func NewKeyfactorApiModelsWorkflowsDefinitionQueryResponseWithDefaults() *KeyfactorApiModelsWorkflowsDefinitionQueryResponse` + +NewKeyfactorApiModelsWorkflowsDefinitionQueryResponseWithDefaults instantiates a new KeyfactorApiModelsWorkflowsDefinitionQueryResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetKey + +`func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) SetKey(v string)` + +SetKey sets Key field to given value. + +### HasKey + +`func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) HasKey() bool` + +HasKey returns a boolean if a field has been set. + +### GetKeyDisplayName + +`func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) GetKeyDisplayName() string` + +GetKeyDisplayName returns the KeyDisplayName field if non-nil, zero value otherwise. + +### GetKeyDisplayNameOk + +`func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) GetKeyDisplayNameOk() (*string, bool)` + +GetKeyDisplayNameOk returns a tuple with the KeyDisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyDisplayName + +`func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) SetKeyDisplayName(v string)` + +SetKeyDisplayName sets KeyDisplayName field to given value. + +### HasKeyDisplayName + +`func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) HasKeyDisplayName() bool` + +HasKeyDisplayName returns a boolean if a field has been set. + +### GetWorkflowType + +`func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) GetWorkflowType() string` + +GetWorkflowType returns the WorkflowType field if non-nil, zero value otherwise. + +### GetWorkflowTypeOk + +`func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) GetWorkflowTypeOk() (*string, bool)` + +GetWorkflowTypeOk returns a tuple with the WorkflowType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflowType + +`func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) SetWorkflowType(v string)` + +SetWorkflowType sets WorkflowType field to given value. + +### HasWorkflowType + +`func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) HasWorkflowType() bool` + +HasWorkflowType returns a boolean if a field has been set. + +### GetDraftVersion + +`func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) GetDraftVersion() int32` + +GetDraftVersion returns the DraftVersion field if non-nil, zero value otherwise. + +### GetDraftVersionOk + +`func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) GetDraftVersionOk() (*int32, bool)` + +GetDraftVersionOk returns a tuple with the DraftVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDraftVersion + +`func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) SetDraftVersion(v int32)` + +SetDraftVersion sets DraftVersion field to given value. + +### HasDraftVersion + +`func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) HasDraftVersion() bool` + +HasDraftVersion returns a boolean if a field has been set. + +### GetPublishedVersion + +`func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) GetPublishedVersion() int32` + +GetPublishedVersion returns the PublishedVersion field if non-nil, zero value otherwise. + +### GetPublishedVersionOk + +`func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) GetPublishedVersionOk() (*int32, bool)` + +GetPublishedVersionOk returns a tuple with the PublishedVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublishedVersion + +`func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) SetPublishedVersion(v int32)` + +SetPublishedVersion sets PublishedVersion field to given value. + +### HasPublishedVersion + +`func (o *KeyfactorApiModelsWorkflowsDefinitionQueryResponse) HasPublishedVersion() bool` + +HasPublishedVersion returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsWorkflowsDefinitionResponse.md b/v1/docs/KeyfactorApiModelsWorkflowsDefinitionResponse.md new file mode 100644 index 0000000..e121bd1 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsWorkflowsDefinitionResponse.md @@ -0,0 +1,290 @@ +# KeyfactorApiModelsWorkflowsDefinitionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**DisplayName** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**Key** | Pointer to **string** | | [optional] +**KeyDisplayName** | Pointer to **string** | | [optional] +**IsPublished** | Pointer to **bool** | | [optional] +**WorkflowType** | Pointer to **string** | | [optional] +**Steps** | Pointer to [**[]KeyfactorApiModelsWorkflowsDefinitionStepResponse**](KeyfactorApiModelsWorkflowsDefinitionStepResponse.md) | | [optional] +**DraftVersion** | Pointer to **int32** | | [optional] +**PublishedVersion** | Pointer to **int32** | | [optional] + +## Methods + +### NewKeyfactorApiModelsWorkflowsDefinitionResponse + +`func NewKeyfactorApiModelsWorkflowsDefinitionResponse() *KeyfactorApiModelsWorkflowsDefinitionResponse` + +NewKeyfactorApiModelsWorkflowsDefinitionResponse instantiates a new KeyfactorApiModelsWorkflowsDefinitionResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsWorkflowsDefinitionResponseWithDefaults + +`func NewKeyfactorApiModelsWorkflowsDefinitionResponseWithDefaults() *KeyfactorApiModelsWorkflowsDefinitionResponse` + +NewKeyfactorApiModelsWorkflowsDefinitionResponseWithDefaults instantiates a new KeyfactorApiModelsWorkflowsDefinitionResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetDescription + +`func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetKey + +`func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) SetKey(v string)` + +SetKey sets Key field to given value. + +### HasKey + +`func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) HasKey() bool` + +HasKey returns a boolean if a field has been set. + +### GetKeyDisplayName + +`func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) GetKeyDisplayName() string` + +GetKeyDisplayName returns the KeyDisplayName field if non-nil, zero value otherwise. + +### GetKeyDisplayNameOk + +`func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) GetKeyDisplayNameOk() (*string, bool)` + +GetKeyDisplayNameOk returns a tuple with the KeyDisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyDisplayName + +`func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) SetKeyDisplayName(v string)` + +SetKeyDisplayName sets KeyDisplayName field to given value. + +### HasKeyDisplayName + +`func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) HasKeyDisplayName() bool` + +HasKeyDisplayName returns a boolean if a field has been set. + +### GetIsPublished + +`func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) GetIsPublished() bool` + +GetIsPublished returns the IsPublished field if non-nil, zero value otherwise. + +### GetIsPublishedOk + +`func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) GetIsPublishedOk() (*bool, bool)` + +GetIsPublishedOk returns a tuple with the IsPublished field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPublished + +`func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) SetIsPublished(v bool)` + +SetIsPublished sets IsPublished field to given value. + +### HasIsPublished + +`func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) HasIsPublished() bool` + +HasIsPublished returns a boolean if a field has been set. + +### GetWorkflowType + +`func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) GetWorkflowType() string` + +GetWorkflowType returns the WorkflowType field if non-nil, zero value otherwise. + +### GetWorkflowTypeOk + +`func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) GetWorkflowTypeOk() (*string, bool)` + +GetWorkflowTypeOk returns a tuple with the WorkflowType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflowType + +`func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) SetWorkflowType(v string)` + +SetWorkflowType sets WorkflowType field to given value. + +### HasWorkflowType + +`func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) HasWorkflowType() bool` + +HasWorkflowType returns a boolean if a field has been set. + +### GetSteps + +`func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) GetSteps() []KeyfactorApiModelsWorkflowsDefinitionStepResponse` + +GetSteps returns the Steps field if non-nil, zero value otherwise. + +### GetStepsOk + +`func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) GetStepsOk() (*[]KeyfactorApiModelsWorkflowsDefinitionStepResponse, bool)` + +GetStepsOk returns a tuple with the Steps field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSteps + +`func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) SetSteps(v []KeyfactorApiModelsWorkflowsDefinitionStepResponse)` + +SetSteps sets Steps field to given value. + +### HasSteps + +`func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) HasSteps() bool` + +HasSteps returns a boolean if a field has been set. + +### GetDraftVersion + +`func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) GetDraftVersion() int32` + +GetDraftVersion returns the DraftVersion field if non-nil, zero value otherwise. + +### GetDraftVersionOk + +`func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) GetDraftVersionOk() (*int32, bool)` + +GetDraftVersionOk returns a tuple with the DraftVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDraftVersion + +`func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) SetDraftVersion(v int32)` + +SetDraftVersion sets DraftVersion field to given value. + +### HasDraftVersion + +`func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) HasDraftVersion() bool` + +HasDraftVersion returns a boolean if a field has been set. + +### GetPublishedVersion + +`func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) GetPublishedVersion() int32` + +GetPublishedVersion returns the PublishedVersion field if non-nil, zero value otherwise. + +### GetPublishedVersionOk + +`func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) GetPublishedVersionOk() (*int32, bool)` + +GetPublishedVersionOk returns a tuple with the PublishedVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublishedVersion + +`func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) SetPublishedVersion(v int32)` + +SetPublishedVersion sets PublishedVersion field to given value. + +### HasPublishedVersion + +`func (o *KeyfactorApiModelsWorkflowsDefinitionResponse) HasPublishedVersion() bool` + +HasPublishedVersion returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsWorkflowsDefinitionStepRequest.md b/v1/docs/KeyfactorApiModelsWorkflowsDefinitionStepRequest.md new file mode 100644 index 0000000..a9659e5 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsWorkflowsDefinitionStepRequest.md @@ -0,0 +1,238 @@ +# KeyfactorApiModelsWorkflowsDefinitionStepRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ExtensionName** | Pointer to **string** | | [optional] +**UniqueName** | Pointer to **string** | | [optional] +**DisplayName** | Pointer to **string** | | [optional] +**Enabled** | Pointer to **bool** | | [optional] +**ConfigurationParameters** | Pointer to **map[string]map[string]interface{}** | | [optional] +**Signals** | Pointer to [**[]KeyfactorApiModelsWorkflowsSignalConfigurationRequest**](KeyfactorApiModelsWorkflowsSignalConfigurationRequest.md) | | [optional] +**Conditions** | Pointer to [**[]KeyfactorApiModelsWorkflowsConditionConfigurationRequest**](KeyfactorApiModelsWorkflowsConditionConfigurationRequest.md) | | [optional] +**Outputs** | Pointer to **map[string]string** | | [optional] + +## Methods + +### NewKeyfactorApiModelsWorkflowsDefinitionStepRequest + +`func NewKeyfactorApiModelsWorkflowsDefinitionStepRequest() *KeyfactorApiModelsWorkflowsDefinitionStepRequest` + +NewKeyfactorApiModelsWorkflowsDefinitionStepRequest instantiates a new KeyfactorApiModelsWorkflowsDefinitionStepRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsWorkflowsDefinitionStepRequestWithDefaults + +`func NewKeyfactorApiModelsWorkflowsDefinitionStepRequestWithDefaults() *KeyfactorApiModelsWorkflowsDefinitionStepRequest` + +NewKeyfactorApiModelsWorkflowsDefinitionStepRequestWithDefaults instantiates a new KeyfactorApiModelsWorkflowsDefinitionStepRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetExtensionName + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) GetExtensionName() string` + +GetExtensionName returns the ExtensionName field if non-nil, zero value otherwise. + +### GetExtensionNameOk + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) GetExtensionNameOk() (*string, bool)` + +GetExtensionNameOk returns a tuple with the ExtensionName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtensionName + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) SetExtensionName(v string)` + +SetExtensionName sets ExtensionName field to given value. + +### HasExtensionName + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) HasExtensionName() bool` + +HasExtensionName returns a boolean if a field has been set. + +### GetUniqueName + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) GetUniqueName() string` + +GetUniqueName returns the UniqueName field if non-nil, zero value otherwise. + +### GetUniqueNameOk + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) GetUniqueNameOk() (*string, bool)` + +GetUniqueNameOk returns a tuple with the UniqueName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUniqueName + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) SetUniqueName(v string)` + +SetUniqueName sets UniqueName field to given value. + +### HasUniqueName + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) HasUniqueName() bool` + +HasUniqueName returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetEnabled + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetConfigurationParameters + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) GetConfigurationParameters() map[string]map[string]interface{}` + +GetConfigurationParameters returns the ConfigurationParameters field if non-nil, zero value otherwise. + +### GetConfigurationParametersOk + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) GetConfigurationParametersOk() (*map[string]map[string]interface{}, bool)` + +GetConfigurationParametersOk returns a tuple with the ConfigurationParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigurationParameters + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) SetConfigurationParameters(v map[string]map[string]interface{})` + +SetConfigurationParameters sets ConfigurationParameters field to given value. + +### HasConfigurationParameters + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) HasConfigurationParameters() bool` + +HasConfigurationParameters returns a boolean if a field has been set. + +### GetSignals + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) GetSignals() []KeyfactorApiModelsWorkflowsSignalConfigurationRequest` + +GetSignals returns the Signals field if non-nil, zero value otherwise. + +### GetSignalsOk + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) GetSignalsOk() (*[]KeyfactorApiModelsWorkflowsSignalConfigurationRequest, bool)` + +GetSignalsOk returns a tuple with the Signals field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignals + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) SetSignals(v []KeyfactorApiModelsWorkflowsSignalConfigurationRequest)` + +SetSignals sets Signals field to given value. + +### HasSignals + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) HasSignals() bool` + +HasSignals returns a boolean if a field has been set. + +### GetConditions + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) GetConditions() []KeyfactorApiModelsWorkflowsConditionConfigurationRequest` + +GetConditions returns the Conditions field if non-nil, zero value otherwise. + +### GetConditionsOk + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) GetConditionsOk() (*[]KeyfactorApiModelsWorkflowsConditionConfigurationRequest, bool)` + +GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditions + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) SetConditions(v []KeyfactorApiModelsWorkflowsConditionConfigurationRequest)` + +SetConditions sets Conditions field to given value. + +### HasConditions + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) HasConditions() bool` + +HasConditions returns a boolean if a field has been set. + +### GetOutputs + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) GetOutputs() map[string]string` + +GetOutputs returns the Outputs field if non-nil, zero value otherwise. + +### GetOutputsOk + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) GetOutputsOk() (*map[string]string, bool)` + +GetOutputsOk returns a tuple with the Outputs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOutputs + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) SetOutputs(v map[string]string)` + +SetOutputs sets Outputs field to given value. + +### HasOutputs + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepRequest) HasOutputs() bool` + +HasOutputs returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsWorkflowsDefinitionStepResponse.md b/v1/docs/KeyfactorApiModelsWorkflowsDefinitionStepResponse.md new file mode 100644 index 0000000..d932d58 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsWorkflowsDefinitionStepResponse.md @@ -0,0 +1,264 @@ +# KeyfactorApiModelsWorkflowsDefinitionStepResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**DisplayName** | Pointer to **string** | | [optional] +**UniqueName** | Pointer to **string** | | [optional] +**ExtensionName** | Pointer to **string** | | [optional] +**Enabled** | Pointer to **bool** | | [optional] +**ConfigurationParameters** | Pointer to **map[string]map[string]interface{}** | | [optional] +**Signals** | Pointer to [**[]KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse**](KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse.md) | | [optional] +**Conditions** | Pointer to [**[]KeyfactorApiModelsWorkflowsConditionConfigurationResponse**](KeyfactorApiModelsWorkflowsConditionConfigurationResponse.md) | | [optional] +**Outputs** | Pointer to **map[string]string** | | [optional] + +## Methods + +### NewKeyfactorApiModelsWorkflowsDefinitionStepResponse + +`func NewKeyfactorApiModelsWorkflowsDefinitionStepResponse() *KeyfactorApiModelsWorkflowsDefinitionStepResponse` + +NewKeyfactorApiModelsWorkflowsDefinitionStepResponse instantiates a new KeyfactorApiModelsWorkflowsDefinitionStepResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsWorkflowsDefinitionStepResponseWithDefaults + +`func NewKeyfactorApiModelsWorkflowsDefinitionStepResponseWithDefaults() *KeyfactorApiModelsWorkflowsDefinitionStepResponse` + +NewKeyfactorApiModelsWorkflowsDefinitionStepResponseWithDefaults instantiates a new KeyfactorApiModelsWorkflowsDefinitionStepResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetUniqueName + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) GetUniqueName() string` + +GetUniqueName returns the UniqueName field if non-nil, zero value otherwise. + +### GetUniqueNameOk + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) GetUniqueNameOk() (*string, bool)` + +GetUniqueNameOk returns a tuple with the UniqueName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUniqueName + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) SetUniqueName(v string)` + +SetUniqueName sets UniqueName field to given value. + +### HasUniqueName + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) HasUniqueName() bool` + +HasUniqueName returns a boolean if a field has been set. + +### GetExtensionName + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) GetExtensionName() string` + +GetExtensionName returns the ExtensionName field if non-nil, zero value otherwise. + +### GetExtensionNameOk + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) GetExtensionNameOk() (*string, bool)` + +GetExtensionNameOk returns a tuple with the ExtensionName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtensionName + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) SetExtensionName(v string)` + +SetExtensionName sets ExtensionName field to given value. + +### HasExtensionName + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) HasExtensionName() bool` + +HasExtensionName returns a boolean if a field has been set. + +### GetEnabled + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetConfigurationParameters + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) GetConfigurationParameters() map[string]map[string]interface{}` + +GetConfigurationParameters returns the ConfigurationParameters field if non-nil, zero value otherwise. + +### GetConfigurationParametersOk + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) GetConfigurationParametersOk() (*map[string]map[string]interface{}, bool)` + +GetConfigurationParametersOk returns a tuple with the ConfigurationParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigurationParameters + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) SetConfigurationParameters(v map[string]map[string]interface{})` + +SetConfigurationParameters sets ConfigurationParameters field to given value. + +### HasConfigurationParameters + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) HasConfigurationParameters() bool` + +HasConfigurationParameters returns a boolean if a field has been set. + +### GetSignals + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) GetSignals() []KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse` + +GetSignals returns the Signals field if non-nil, zero value otherwise. + +### GetSignalsOk + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) GetSignalsOk() (*[]KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse, bool)` + +GetSignalsOk returns a tuple with the Signals field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignals + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) SetSignals(v []KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse)` + +SetSignals sets Signals field to given value. + +### HasSignals + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) HasSignals() bool` + +HasSignals returns a boolean if a field has been set. + +### GetConditions + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) GetConditions() []KeyfactorApiModelsWorkflowsConditionConfigurationResponse` + +GetConditions returns the Conditions field if non-nil, zero value otherwise. + +### GetConditionsOk + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) GetConditionsOk() (*[]KeyfactorApiModelsWorkflowsConditionConfigurationResponse, bool)` + +GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditions + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) SetConditions(v []KeyfactorApiModelsWorkflowsConditionConfigurationResponse)` + +SetConditions sets Conditions field to given value. + +### HasConditions + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) HasConditions() bool` + +HasConditions returns a boolean if a field has been set. + +### GetOutputs + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) GetOutputs() map[string]string` + +GetOutputs returns the Outputs field if non-nil, zero value otherwise. + +### GetOutputsOk + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) GetOutputsOk() (*map[string]string, bool)` + +GetOutputsOk returns a tuple with the Outputs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOutputs + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) SetOutputs(v map[string]string)` + +SetOutputs sets Outputs field to given value. + +### HasOutputs + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepResponse) HasOutputs() bool` + +HasOutputs returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse.md b/v1/docs/KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse.md new file mode 100644 index 0000000..cca8036 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse.md @@ -0,0 +1,82 @@ +# KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RoleIds** | Pointer to **[]int32** | The roles that are allowed to send this signal. | [optional] +**SignalName** | Pointer to **string** | | [optional] + +## Methods + +### NewKeyfactorApiModelsWorkflowsDefinitionStepSignalResponse + +`func NewKeyfactorApiModelsWorkflowsDefinitionStepSignalResponse() *KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse` + +NewKeyfactorApiModelsWorkflowsDefinitionStepSignalResponse instantiates a new KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsWorkflowsDefinitionStepSignalResponseWithDefaults + +`func NewKeyfactorApiModelsWorkflowsDefinitionStepSignalResponseWithDefaults() *KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse` + +NewKeyfactorApiModelsWorkflowsDefinitionStepSignalResponseWithDefaults instantiates a new KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRoleIds + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse) GetRoleIds() []int32` + +GetRoleIds returns the RoleIds field if non-nil, zero value otherwise. + +### GetRoleIdsOk + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse) GetRoleIdsOk() (*[]int32, bool)` + +GetRoleIdsOk returns a tuple with the RoleIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoleIds + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse) SetRoleIds(v []int32)` + +SetRoleIds sets RoleIds field to given value. + +### HasRoleIds + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse) HasRoleIds() bool` + +HasRoleIds returns a boolean if a field has been set. + +### GetSignalName + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse) GetSignalName() string` + +GetSignalName returns the SignalName field if non-nil, zero value otherwise. + +### GetSignalNameOk + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse) GetSignalNameOk() (*string, bool)` + +GetSignalNameOk returns a tuple with the SignalName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignalName + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse) SetSignalName(v string)` + +SetSignalName sets SignalName field to given value. + +### HasSignalName + +`func (o *KeyfactorApiModelsWorkflowsDefinitionStepSignalResponse) HasSignalName() bool` + +HasSignalName returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsWorkflowsDefinitionUpdateRequest.md b/v1/docs/KeyfactorApiModelsWorkflowsDefinitionUpdateRequest.md new file mode 100644 index 0000000..575344c --- /dev/null +++ b/v1/docs/KeyfactorApiModelsWorkflowsDefinitionUpdateRequest.md @@ -0,0 +1,82 @@ +# KeyfactorApiModelsWorkflowsDefinitionUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DisplayName** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewKeyfactorApiModelsWorkflowsDefinitionUpdateRequest + +`func NewKeyfactorApiModelsWorkflowsDefinitionUpdateRequest() *KeyfactorApiModelsWorkflowsDefinitionUpdateRequest` + +NewKeyfactorApiModelsWorkflowsDefinitionUpdateRequest instantiates a new KeyfactorApiModelsWorkflowsDefinitionUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsWorkflowsDefinitionUpdateRequestWithDefaults + +`func NewKeyfactorApiModelsWorkflowsDefinitionUpdateRequestWithDefaults() *KeyfactorApiModelsWorkflowsDefinitionUpdateRequest` + +NewKeyfactorApiModelsWorkflowsDefinitionUpdateRequestWithDefaults instantiates a new KeyfactorApiModelsWorkflowsDefinitionUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDisplayName + +`func (o *KeyfactorApiModelsWorkflowsDefinitionUpdateRequest) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *KeyfactorApiModelsWorkflowsDefinitionUpdateRequest) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *KeyfactorApiModelsWorkflowsDefinitionUpdateRequest) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *KeyfactorApiModelsWorkflowsDefinitionUpdateRequest) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetDescription + +`func (o *KeyfactorApiModelsWorkflowsDefinitionUpdateRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *KeyfactorApiModelsWorkflowsDefinitionUpdateRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *KeyfactorApiModelsWorkflowsDefinitionUpdateRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *KeyfactorApiModelsWorkflowsDefinitionUpdateRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsWorkflowsInstanceDefinitionResponse.md b/v1/docs/KeyfactorApiModelsWorkflowsInstanceDefinitionResponse.md new file mode 100644 index 0000000..f30209e --- /dev/null +++ b/v1/docs/KeyfactorApiModelsWorkflowsInstanceDefinitionResponse.md @@ -0,0 +1,134 @@ +# KeyfactorApiModelsWorkflowsInstanceDefinitionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**DisplayName** | Pointer to **string** | | [optional] +**Version** | Pointer to **int32** | | [optional] +**WorkflowType** | Pointer to **string** | | [optional] + +## Methods + +### NewKeyfactorApiModelsWorkflowsInstanceDefinitionResponse + +`func NewKeyfactorApiModelsWorkflowsInstanceDefinitionResponse() *KeyfactorApiModelsWorkflowsInstanceDefinitionResponse` + +NewKeyfactorApiModelsWorkflowsInstanceDefinitionResponse instantiates a new KeyfactorApiModelsWorkflowsInstanceDefinitionResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsWorkflowsInstanceDefinitionResponseWithDefaults + +`func NewKeyfactorApiModelsWorkflowsInstanceDefinitionResponseWithDefaults() *KeyfactorApiModelsWorkflowsInstanceDefinitionResponse` + +NewKeyfactorApiModelsWorkflowsInstanceDefinitionResponseWithDefaults instantiates a new KeyfactorApiModelsWorkflowsInstanceDefinitionResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *KeyfactorApiModelsWorkflowsInstanceDefinitionResponse) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *KeyfactorApiModelsWorkflowsInstanceDefinitionResponse) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *KeyfactorApiModelsWorkflowsInstanceDefinitionResponse) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *KeyfactorApiModelsWorkflowsInstanceDefinitionResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *KeyfactorApiModelsWorkflowsInstanceDefinitionResponse) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *KeyfactorApiModelsWorkflowsInstanceDefinitionResponse) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *KeyfactorApiModelsWorkflowsInstanceDefinitionResponse) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *KeyfactorApiModelsWorkflowsInstanceDefinitionResponse) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetVersion + +`func (o *KeyfactorApiModelsWorkflowsInstanceDefinitionResponse) GetVersion() int32` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *KeyfactorApiModelsWorkflowsInstanceDefinitionResponse) GetVersionOk() (*int32, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *KeyfactorApiModelsWorkflowsInstanceDefinitionResponse) SetVersion(v int32)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *KeyfactorApiModelsWorkflowsInstanceDefinitionResponse) HasVersion() bool` + +HasVersion returns a boolean if a field has been set. + +### GetWorkflowType + +`func (o *KeyfactorApiModelsWorkflowsInstanceDefinitionResponse) GetWorkflowType() string` + +GetWorkflowType returns the WorkflowType field if non-nil, zero value otherwise. + +### GetWorkflowTypeOk + +`func (o *KeyfactorApiModelsWorkflowsInstanceDefinitionResponse) GetWorkflowTypeOk() (*string, bool)` + +GetWorkflowTypeOk returns a tuple with the WorkflowType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflowType + +`func (o *KeyfactorApiModelsWorkflowsInstanceDefinitionResponse) SetWorkflowType(v string)` + +SetWorkflowType sets WorkflowType field to given value. + +### HasWorkflowType + +`func (o *KeyfactorApiModelsWorkflowsInstanceDefinitionResponse) HasWorkflowType() bool` + +HasWorkflowType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsWorkflowsInstanceQueryResponse.md b/v1/docs/KeyfactorApiModelsWorkflowsInstanceQueryResponse.md new file mode 100644 index 0000000..cafed1b --- /dev/null +++ b/v1/docs/KeyfactorApiModelsWorkflowsInstanceQueryResponse.md @@ -0,0 +1,316 @@ +# KeyfactorApiModelsWorkflowsInstanceQueryResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**Status** | Pointer to **int32** | | [optional] +**CurrentStepId** | Pointer to **string** | | [optional] +**StatusMessage** | Pointer to **string** | | [optional] +**Definition** | Pointer to [**KeyfactorApiModelsWorkflowsInstanceDefinitionResponse**](KeyfactorApiModelsWorkflowsInstanceDefinitionResponse.md) | | [optional] +**CurrentStepDisplayName** | Pointer to **string** | | [optional] +**CurrentStepUniqueName** | Pointer to **string** | | [optional] +**Title** | Pointer to **string** | | [optional] +**LastModified** | Pointer to **time.Time** | | [optional] +**StartDate** | Pointer to **time.Time** | | [optional] +**ReferenceId** | Pointer to **int64** | | [optional] + +## Methods + +### NewKeyfactorApiModelsWorkflowsInstanceQueryResponse + +`func NewKeyfactorApiModelsWorkflowsInstanceQueryResponse() *KeyfactorApiModelsWorkflowsInstanceQueryResponse` + +NewKeyfactorApiModelsWorkflowsInstanceQueryResponse instantiates a new KeyfactorApiModelsWorkflowsInstanceQueryResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsWorkflowsInstanceQueryResponseWithDefaults + +`func NewKeyfactorApiModelsWorkflowsInstanceQueryResponseWithDefaults() *KeyfactorApiModelsWorkflowsInstanceQueryResponse` + +NewKeyfactorApiModelsWorkflowsInstanceQueryResponseWithDefaults instantiates a new KeyfactorApiModelsWorkflowsInstanceQueryResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetStatus + +`func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) GetStatus() int32` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) GetStatusOk() (*int32, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) SetStatus(v int32)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetCurrentStepId + +`func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) GetCurrentStepId() string` + +GetCurrentStepId returns the CurrentStepId field if non-nil, zero value otherwise. + +### GetCurrentStepIdOk + +`func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) GetCurrentStepIdOk() (*string, bool)` + +GetCurrentStepIdOk returns a tuple with the CurrentStepId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCurrentStepId + +`func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) SetCurrentStepId(v string)` + +SetCurrentStepId sets CurrentStepId field to given value. + +### HasCurrentStepId + +`func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) HasCurrentStepId() bool` + +HasCurrentStepId returns a boolean if a field has been set. + +### GetStatusMessage + +`func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) GetStatusMessage() string` + +GetStatusMessage returns the StatusMessage field if non-nil, zero value otherwise. + +### GetStatusMessageOk + +`func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) GetStatusMessageOk() (*string, bool)` + +GetStatusMessageOk returns a tuple with the StatusMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatusMessage + +`func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) SetStatusMessage(v string)` + +SetStatusMessage sets StatusMessage field to given value. + +### HasStatusMessage + +`func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) HasStatusMessage() bool` + +HasStatusMessage returns a boolean if a field has been set. + +### GetDefinition + +`func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) GetDefinition() KeyfactorApiModelsWorkflowsInstanceDefinitionResponse` + +GetDefinition returns the Definition field if non-nil, zero value otherwise. + +### GetDefinitionOk + +`func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) GetDefinitionOk() (*KeyfactorApiModelsWorkflowsInstanceDefinitionResponse, bool)` + +GetDefinitionOk returns a tuple with the Definition field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefinition + +`func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) SetDefinition(v KeyfactorApiModelsWorkflowsInstanceDefinitionResponse)` + +SetDefinition sets Definition field to given value. + +### HasDefinition + +`func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) HasDefinition() bool` + +HasDefinition returns a boolean if a field has been set. + +### GetCurrentStepDisplayName + +`func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) GetCurrentStepDisplayName() string` + +GetCurrentStepDisplayName returns the CurrentStepDisplayName field if non-nil, zero value otherwise. + +### GetCurrentStepDisplayNameOk + +`func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) GetCurrentStepDisplayNameOk() (*string, bool)` + +GetCurrentStepDisplayNameOk returns a tuple with the CurrentStepDisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCurrentStepDisplayName + +`func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) SetCurrentStepDisplayName(v string)` + +SetCurrentStepDisplayName sets CurrentStepDisplayName field to given value. + +### HasCurrentStepDisplayName + +`func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) HasCurrentStepDisplayName() bool` + +HasCurrentStepDisplayName returns a boolean if a field has been set. + +### GetCurrentStepUniqueName + +`func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) GetCurrentStepUniqueName() string` + +GetCurrentStepUniqueName returns the CurrentStepUniqueName field if non-nil, zero value otherwise. + +### GetCurrentStepUniqueNameOk + +`func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) GetCurrentStepUniqueNameOk() (*string, bool)` + +GetCurrentStepUniqueNameOk returns a tuple with the CurrentStepUniqueName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCurrentStepUniqueName + +`func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) SetCurrentStepUniqueName(v string)` + +SetCurrentStepUniqueName sets CurrentStepUniqueName field to given value. + +### HasCurrentStepUniqueName + +`func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) HasCurrentStepUniqueName() bool` + +HasCurrentStepUniqueName returns a boolean if a field has been set. + +### GetTitle + +`func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) SetTitle(v string)` + +SetTitle sets Title field to given value. + +### HasTitle + +`func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) HasTitle() bool` + +HasTitle returns a boolean if a field has been set. + +### GetLastModified + +`func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) GetLastModified() time.Time` + +GetLastModified returns the LastModified field if non-nil, zero value otherwise. + +### GetLastModifiedOk + +`func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) GetLastModifiedOk() (*time.Time, bool)` + +GetLastModifiedOk returns a tuple with the LastModified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastModified + +`func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) SetLastModified(v time.Time)` + +SetLastModified sets LastModified field to given value. + +### HasLastModified + +`func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) HasLastModified() bool` + +HasLastModified returns a boolean if a field has been set. + +### GetStartDate + +`func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) GetStartDate() time.Time` + +GetStartDate returns the StartDate field if non-nil, zero value otherwise. + +### GetStartDateOk + +`func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) GetStartDateOk() (*time.Time, bool)` + +GetStartDateOk returns a tuple with the StartDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartDate + +`func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) SetStartDate(v time.Time)` + +SetStartDate sets StartDate field to given value. + +### HasStartDate + +`func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) HasStartDate() bool` + +HasStartDate returns a boolean if a field has been set. + +### GetReferenceId + +`func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) GetReferenceId() int64` + +GetReferenceId returns the ReferenceId field if non-nil, zero value otherwise. + +### GetReferenceIdOk + +`func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) GetReferenceIdOk() (*int64, bool)` + +GetReferenceIdOk returns a tuple with the ReferenceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceId + +`func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) SetReferenceId(v int64)` + +SetReferenceId sets ReferenceId field to given value. + +### HasReferenceId + +`func (o *KeyfactorApiModelsWorkflowsInstanceQueryResponse) HasReferenceId() bool` + +HasReferenceId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsWorkflowsInstanceResponse.md b/v1/docs/KeyfactorApiModelsWorkflowsInstanceResponse.md new file mode 100644 index 0000000..d1145e6 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsWorkflowsInstanceResponse.md @@ -0,0 +1,394 @@ +# KeyfactorApiModelsWorkflowsInstanceResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**Status** | Pointer to **int32** | | [optional] +**CurrentStepId** | Pointer to **string** | | [optional] +**StatusMessage** | Pointer to **string** | | [optional] +**Signals** | Pointer to [**[]KeyfactorApiModelsWorkflowsAvailableSignalResponse**](KeyfactorApiModelsWorkflowsAvailableSignalResponse.md) | | [optional] +**Definition** | Pointer to [**KeyfactorApiModelsWorkflowsInstanceDefinitionResponse**](KeyfactorApiModelsWorkflowsInstanceDefinitionResponse.md) | | [optional] +**CurrentStepDisplayName** | Pointer to **string** | | [optional] +**CurrentStepUniqueName** | Pointer to **string** | | [optional] +**Title** | Pointer to **string** | | [optional] +**LastModified** | Pointer to **time.Time** | | [optional] +**StartDate** | Pointer to **time.Time** | | [optional] +**InitialData** | Pointer to **map[string]map[string]interface{}** | | [optional] +**CurrentStateData** | Pointer to **map[string]map[string]interface{}** | | [optional] +**ReferenceId** | Pointer to **int64** | | [optional] + +## Methods + +### NewKeyfactorApiModelsWorkflowsInstanceResponse + +`func NewKeyfactorApiModelsWorkflowsInstanceResponse() *KeyfactorApiModelsWorkflowsInstanceResponse` + +NewKeyfactorApiModelsWorkflowsInstanceResponse instantiates a new KeyfactorApiModelsWorkflowsInstanceResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsWorkflowsInstanceResponseWithDefaults + +`func NewKeyfactorApiModelsWorkflowsInstanceResponseWithDefaults() *KeyfactorApiModelsWorkflowsInstanceResponse` + +NewKeyfactorApiModelsWorkflowsInstanceResponseWithDefaults instantiates a new KeyfactorApiModelsWorkflowsInstanceResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetStatus + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetStatus() int32` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetStatusOk() (*int32, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) SetStatus(v int32)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetCurrentStepId + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetCurrentStepId() string` + +GetCurrentStepId returns the CurrentStepId field if non-nil, zero value otherwise. + +### GetCurrentStepIdOk + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetCurrentStepIdOk() (*string, bool)` + +GetCurrentStepIdOk returns a tuple with the CurrentStepId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCurrentStepId + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) SetCurrentStepId(v string)` + +SetCurrentStepId sets CurrentStepId field to given value. + +### HasCurrentStepId + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) HasCurrentStepId() bool` + +HasCurrentStepId returns a boolean if a field has been set. + +### GetStatusMessage + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetStatusMessage() string` + +GetStatusMessage returns the StatusMessage field if non-nil, zero value otherwise. + +### GetStatusMessageOk + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetStatusMessageOk() (*string, bool)` + +GetStatusMessageOk returns a tuple with the StatusMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatusMessage + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) SetStatusMessage(v string)` + +SetStatusMessage sets StatusMessage field to given value. + +### HasStatusMessage + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) HasStatusMessage() bool` + +HasStatusMessage returns a boolean if a field has been set. + +### GetSignals + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetSignals() []KeyfactorApiModelsWorkflowsAvailableSignalResponse` + +GetSignals returns the Signals field if non-nil, zero value otherwise. + +### GetSignalsOk + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetSignalsOk() (*[]KeyfactorApiModelsWorkflowsAvailableSignalResponse, bool)` + +GetSignalsOk returns a tuple with the Signals field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignals + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) SetSignals(v []KeyfactorApiModelsWorkflowsAvailableSignalResponse)` + +SetSignals sets Signals field to given value. + +### HasSignals + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) HasSignals() bool` + +HasSignals returns a boolean if a field has been set. + +### GetDefinition + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetDefinition() KeyfactorApiModelsWorkflowsInstanceDefinitionResponse` + +GetDefinition returns the Definition field if non-nil, zero value otherwise. + +### GetDefinitionOk + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetDefinitionOk() (*KeyfactorApiModelsWorkflowsInstanceDefinitionResponse, bool)` + +GetDefinitionOk returns a tuple with the Definition field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefinition + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) SetDefinition(v KeyfactorApiModelsWorkflowsInstanceDefinitionResponse)` + +SetDefinition sets Definition field to given value. + +### HasDefinition + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) HasDefinition() bool` + +HasDefinition returns a boolean if a field has been set. + +### GetCurrentStepDisplayName + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetCurrentStepDisplayName() string` + +GetCurrentStepDisplayName returns the CurrentStepDisplayName field if non-nil, zero value otherwise. + +### GetCurrentStepDisplayNameOk + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetCurrentStepDisplayNameOk() (*string, bool)` + +GetCurrentStepDisplayNameOk returns a tuple with the CurrentStepDisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCurrentStepDisplayName + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) SetCurrentStepDisplayName(v string)` + +SetCurrentStepDisplayName sets CurrentStepDisplayName field to given value. + +### HasCurrentStepDisplayName + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) HasCurrentStepDisplayName() bool` + +HasCurrentStepDisplayName returns a boolean if a field has been set. + +### GetCurrentStepUniqueName + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetCurrentStepUniqueName() string` + +GetCurrentStepUniqueName returns the CurrentStepUniqueName field if non-nil, zero value otherwise. + +### GetCurrentStepUniqueNameOk + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetCurrentStepUniqueNameOk() (*string, bool)` + +GetCurrentStepUniqueNameOk returns a tuple with the CurrentStepUniqueName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCurrentStepUniqueName + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) SetCurrentStepUniqueName(v string)` + +SetCurrentStepUniqueName sets CurrentStepUniqueName field to given value. + +### HasCurrentStepUniqueName + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) HasCurrentStepUniqueName() bool` + +HasCurrentStepUniqueName returns a boolean if a field has been set. + +### GetTitle + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) SetTitle(v string)` + +SetTitle sets Title field to given value. + +### HasTitle + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) HasTitle() bool` + +HasTitle returns a boolean if a field has been set. + +### GetLastModified + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetLastModified() time.Time` + +GetLastModified returns the LastModified field if non-nil, zero value otherwise. + +### GetLastModifiedOk + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetLastModifiedOk() (*time.Time, bool)` + +GetLastModifiedOk returns a tuple with the LastModified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastModified + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) SetLastModified(v time.Time)` + +SetLastModified sets LastModified field to given value. + +### HasLastModified + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) HasLastModified() bool` + +HasLastModified returns a boolean if a field has been set. + +### GetStartDate + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetStartDate() time.Time` + +GetStartDate returns the StartDate field if non-nil, zero value otherwise. + +### GetStartDateOk + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetStartDateOk() (*time.Time, bool)` + +GetStartDateOk returns a tuple with the StartDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartDate + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) SetStartDate(v time.Time)` + +SetStartDate sets StartDate field to given value. + +### HasStartDate + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) HasStartDate() bool` + +HasStartDate returns a boolean if a field has been set. + +### GetInitialData + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetInitialData() map[string]map[string]interface{}` + +GetInitialData returns the InitialData field if non-nil, zero value otherwise. + +### GetInitialDataOk + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetInitialDataOk() (*map[string]map[string]interface{}, bool)` + +GetInitialDataOk returns a tuple with the InitialData field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInitialData + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) SetInitialData(v map[string]map[string]interface{})` + +SetInitialData sets InitialData field to given value. + +### HasInitialData + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) HasInitialData() bool` + +HasInitialData returns a boolean if a field has been set. + +### GetCurrentStateData + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetCurrentStateData() map[string]map[string]interface{}` + +GetCurrentStateData returns the CurrentStateData field if non-nil, zero value otherwise. + +### GetCurrentStateDataOk + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetCurrentStateDataOk() (*map[string]map[string]interface{}, bool)` + +GetCurrentStateDataOk returns a tuple with the CurrentStateData field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCurrentStateData + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) SetCurrentStateData(v map[string]map[string]interface{})` + +SetCurrentStateData sets CurrentStateData field to given value. + +### HasCurrentStateData + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) HasCurrentStateData() bool` + +HasCurrentStateData returns a boolean if a field has been set. + +### GetReferenceId + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetReferenceId() int64` + +GetReferenceId returns the ReferenceId field if non-nil, zero value otherwise. + +### GetReferenceIdOk + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) GetReferenceIdOk() (*int64, bool)` + +GetReferenceIdOk returns a tuple with the ReferenceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceId + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) SetReferenceId(v int64)` + +SetReferenceId sets ReferenceId field to given value. + +### HasReferenceId + +`func (o *KeyfactorApiModelsWorkflowsInstanceResponse) HasReferenceId() bool` + +HasReferenceId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsWorkflowsParameterDefinitionResponse.md b/v1/docs/KeyfactorApiModelsWorkflowsParameterDefinitionResponse.md new file mode 100644 index 0000000..23ee96a --- /dev/null +++ b/v1/docs/KeyfactorApiModelsWorkflowsParameterDefinitionResponse.md @@ -0,0 +1,238 @@ +# KeyfactorApiModelsWorkflowsParameterDefinitionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DisplayName** | Pointer to **string** | | [optional] +**ParameterType** | Pointer to **int32** | | [optional] +**Required** | Pointer to **bool** | | [optional] +**DefaultValue** | Pointer to **string** | | [optional] +**ControlType** | Pointer to **int32** | | [optional] +**PotentialValues** | Pointer to **map[string]string** | | [optional] +**SupportTokenReplacement** | Pointer to **bool** | | [optional] +**DependsOn** | Pointer to **map[string]string** | | [optional] + +## Methods + +### NewKeyfactorApiModelsWorkflowsParameterDefinitionResponse + +`func NewKeyfactorApiModelsWorkflowsParameterDefinitionResponse() *KeyfactorApiModelsWorkflowsParameterDefinitionResponse` + +NewKeyfactorApiModelsWorkflowsParameterDefinitionResponse instantiates a new KeyfactorApiModelsWorkflowsParameterDefinitionResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsWorkflowsParameterDefinitionResponseWithDefaults + +`func NewKeyfactorApiModelsWorkflowsParameterDefinitionResponseWithDefaults() *KeyfactorApiModelsWorkflowsParameterDefinitionResponse` + +NewKeyfactorApiModelsWorkflowsParameterDefinitionResponseWithDefaults instantiates a new KeyfactorApiModelsWorkflowsParameterDefinitionResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDisplayName + +`func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetParameterType + +`func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) GetParameterType() int32` + +GetParameterType returns the ParameterType field if non-nil, zero value otherwise. + +### GetParameterTypeOk + +`func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) GetParameterTypeOk() (*int32, bool)` + +GetParameterTypeOk returns a tuple with the ParameterType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParameterType + +`func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) SetParameterType(v int32)` + +SetParameterType sets ParameterType field to given value. + +### HasParameterType + +`func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) HasParameterType() bool` + +HasParameterType returns a boolean if a field has been set. + +### GetRequired + +`func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) GetRequired() bool` + +GetRequired returns the Required field if non-nil, zero value otherwise. + +### GetRequiredOk + +`func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) GetRequiredOk() (*bool, bool)` + +GetRequiredOk returns a tuple with the Required field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequired + +`func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) SetRequired(v bool)` + +SetRequired sets Required field to given value. + +### HasRequired + +`func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) HasRequired() bool` + +HasRequired returns a boolean if a field has been set. + +### GetDefaultValue + +`func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) GetDefaultValue() string` + +GetDefaultValue returns the DefaultValue field if non-nil, zero value otherwise. + +### GetDefaultValueOk + +`func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) GetDefaultValueOk() (*string, bool)` + +GetDefaultValueOk returns a tuple with the DefaultValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultValue + +`func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) SetDefaultValue(v string)` + +SetDefaultValue sets DefaultValue field to given value. + +### HasDefaultValue + +`func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) HasDefaultValue() bool` + +HasDefaultValue returns a boolean if a field has been set. + +### GetControlType + +`func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) GetControlType() int32` + +GetControlType returns the ControlType field if non-nil, zero value otherwise. + +### GetControlTypeOk + +`func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) GetControlTypeOk() (*int32, bool)` + +GetControlTypeOk returns a tuple with the ControlType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetControlType + +`func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) SetControlType(v int32)` + +SetControlType sets ControlType field to given value. + +### HasControlType + +`func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) HasControlType() bool` + +HasControlType returns a boolean if a field has been set. + +### GetPotentialValues + +`func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) GetPotentialValues() map[string]string` + +GetPotentialValues returns the PotentialValues field if non-nil, zero value otherwise. + +### GetPotentialValuesOk + +`func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) GetPotentialValuesOk() (*map[string]string, bool)` + +GetPotentialValuesOk returns a tuple with the PotentialValues field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPotentialValues + +`func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) SetPotentialValues(v map[string]string)` + +SetPotentialValues sets PotentialValues field to given value. + +### HasPotentialValues + +`func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) HasPotentialValues() bool` + +HasPotentialValues returns a boolean if a field has been set. + +### GetSupportTokenReplacement + +`func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) GetSupportTokenReplacement() bool` + +GetSupportTokenReplacement returns the SupportTokenReplacement field if non-nil, zero value otherwise. + +### GetSupportTokenReplacementOk + +`func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) GetSupportTokenReplacementOk() (*bool, bool)` + +GetSupportTokenReplacementOk returns a tuple with the SupportTokenReplacement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSupportTokenReplacement + +`func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) SetSupportTokenReplacement(v bool)` + +SetSupportTokenReplacement sets SupportTokenReplacement field to given value. + +### HasSupportTokenReplacement + +`func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) HasSupportTokenReplacement() bool` + +HasSupportTokenReplacement returns a boolean if a field has been set. + +### GetDependsOn + +`func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) GetDependsOn() map[string]string` + +GetDependsOn returns the DependsOn field if non-nil, zero value otherwise. + +### GetDependsOnOk + +`func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) GetDependsOnOk() (*map[string]string, bool)` + +GetDependsOnOk returns a tuple with the DependsOn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDependsOn + +`func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) SetDependsOn(v map[string]string)` + +SetDependsOn sets DependsOn field to given value. + +### HasDependsOn + +`func (o *KeyfactorApiModelsWorkflowsParameterDefinitionResponse) HasDependsOn() bool` + +HasDependsOn returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsWorkflowsSignalConfigurationRequest.md b/v1/docs/KeyfactorApiModelsWorkflowsSignalConfigurationRequest.md new file mode 100644 index 0000000..9e1d389 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsWorkflowsSignalConfigurationRequest.md @@ -0,0 +1,82 @@ +# KeyfactorApiModelsWorkflowsSignalConfigurationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SignalName** | Pointer to **string** | The name of the signal. | [optional] +**RoleIds** | Pointer to **[]int32** | The roles that are allowed to send the signal. | [optional] + +## Methods + +### NewKeyfactorApiModelsWorkflowsSignalConfigurationRequest + +`func NewKeyfactorApiModelsWorkflowsSignalConfigurationRequest() *KeyfactorApiModelsWorkflowsSignalConfigurationRequest` + +NewKeyfactorApiModelsWorkflowsSignalConfigurationRequest instantiates a new KeyfactorApiModelsWorkflowsSignalConfigurationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsWorkflowsSignalConfigurationRequestWithDefaults + +`func NewKeyfactorApiModelsWorkflowsSignalConfigurationRequestWithDefaults() *KeyfactorApiModelsWorkflowsSignalConfigurationRequest` + +NewKeyfactorApiModelsWorkflowsSignalConfigurationRequestWithDefaults instantiates a new KeyfactorApiModelsWorkflowsSignalConfigurationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSignalName + +`func (o *KeyfactorApiModelsWorkflowsSignalConfigurationRequest) GetSignalName() string` + +GetSignalName returns the SignalName field if non-nil, zero value otherwise. + +### GetSignalNameOk + +`func (o *KeyfactorApiModelsWorkflowsSignalConfigurationRequest) GetSignalNameOk() (*string, bool)` + +GetSignalNameOk returns a tuple with the SignalName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignalName + +`func (o *KeyfactorApiModelsWorkflowsSignalConfigurationRequest) SetSignalName(v string)` + +SetSignalName sets SignalName field to given value. + +### HasSignalName + +`func (o *KeyfactorApiModelsWorkflowsSignalConfigurationRequest) HasSignalName() bool` + +HasSignalName returns a boolean if a field has been set. + +### GetRoleIds + +`func (o *KeyfactorApiModelsWorkflowsSignalConfigurationRequest) GetRoleIds() []int32` + +GetRoleIds returns the RoleIds field if non-nil, zero value otherwise. + +### GetRoleIdsOk + +`func (o *KeyfactorApiModelsWorkflowsSignalConfigurationRequest) GetRoleIdsOk() (*[]int32, bool)` + +GetRoleIdsOk returns a tuple with the RoleIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoleIds + +`func (o *KeyfactorApiModelsWorkflowsSignalConfigurationRequest) SetRoleIds(v []int32)` + +SetRoleIds sets RoleIds field to given value. + +### HasRoleIds + +`func (o *KeyfactorApiModelsWorkflowsSignalConfigurationRequest) HasRoleIds() bool` + +HasRoleIds returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsWorkflowsSignalDefinitionResponse.md b/v1/docs/KeyfactorApiModelsWorkflowsSignalDefinitionResponse.md new file mode 100644 index 0000000..9a8ef03 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsWorkflowsSignalDefinitionResponse.md @@ -0,0 +1,56 @@ +# KeyfactorApiModelsWorkflowsSignalDefinitionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**InputParameters** | Pointer to [**map[string]KeyfactorApiModelsWorkflowsParameterDefinitionResponse**](KeyfactorApiModelsWorkflowsParameterDefinitionResponse.md) | | [optional] + +## Methods + +### NewKeyfactorApiModelsWorkflowsSignalDefinitionResponse + +`func NewKeyfactorApiModelsWorkflowsSignalDefinitionResponse() *KeyfactorApiModelsWorkflowsSignalDefinitionResponse` + +NewKeyfactorApiModelsWorkflowsSignalDefinitionResponse instantiates a new KeyfactorApiModelsWorkflowsSignalDefinitionResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsWorkflowsSignalDefinitionResponseWithDefaults + +`func NewKeyfactorApiModelsWorkflowsSignalDefinitionResponseWithDefaults() *KeyfactorApiModelsWorkflowsSignalDefinitionResponse` + +NewKeyfactorApiModelsWorkflowsSignalDefinitionResponseWithDefaults instantiates a new KeyfactorApiModelsWorkflowsSignalDefinitionResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetInputParameters + +`func (o *KeyfactorApiModelsWorkflowsSignalDefinitionResponse) GetInputParameters() map[string]KeyfactorApiModelsWorkflowsParameterDefinitionResponse` + +GetInputParameters returns the InputParameters field if non-nil, zero value otherwise. + +### GetInputParametersOk + +`func (o *KeyfactorApiModelsWorkflowsSignalDefinitionResponse) GetInputParametersOk() (*map[string]KeyfactorApiModelsWorkflowsParameterDefinitionResponse, bool)` + +GetInputParametersOk returns a tuple with the InputParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInputParameters + +`func (o *KeyfactorApiModelsWorkflowsSignalDefinitionResponse) SetInputParameters(v map[string]KeyfactorApiModelsWorkflowsParameterDefinitionResponse)` + +SetInputParameters sets InputParameters field to given value. + +### HasInputParameters + +`func (o *KeyfactorApiModelsWorkflowsSignalDefinitionResponse) HasInputParameters() bool` + +HasInputParameters returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsWorkflowsSignalRequest.md b/v1/docs/KeyfactorApiModelsWorkflowsSignalRequest.md new file mode 100644 index 0000000..5b06c08 --- /dev/null +++ b/v1/docs/KeyfactorApiModelsWorkflowsSignalRequest.md @@ -0,0 +1,82 @@ +# KeyfactorApiModelsWorkflowsSignalRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SignalKey** | Pointer to **string** | The signal key. This is expected to be in a format like \"STEP_NAME.SIGNAL_NAME\" | [optional] +**Data** | Pointer to **map[string]map[string]interface{}** | Arbitrary data to associate with the signal. | [optional] + +## Methods + +### NewKeyfactorApiModelsWorkflowsSignalRequest + +`func NewKeyfactorApiModelsWorkflowsSignalRequest() *KeyfactorApiModelsWorkflowsSignalRequest` + +NewKeyfactorApiModelsWorkflowsSignalRequest instantiates a new KeyfactorApiModelsWorkflowsSignalRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsWorkflowsSignalRequestWithDefaults + +`func NewKeyfactorApiModelsWorkflowsSignalRequestWithDefaults() *KeyfactorApiModelsWorkflowsSignalRequest` + +NewKeyfactorApiModelsWorkflowsSignalRequestWithDefaults instantiates a new KeyfactorApiModelsWorkflowsSignalRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSignalKey + +`func (o *KeyfactorApiModelsWorkflowsSignalRequest) GetSignalKey() string` + +GetSignalKey returns the SignalKey field if non-nil, zero value otherwise. + +### GetSignalKeyOk + +`func (o *KeyfactorApiModelsWorkflowsSignalRequest) GetSignalKeyOk() (*string, bool)` + +GetSignalKeyOk returns a tuple with the SignalKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignalKey + +`func (o *KeyfactorApiModelsWorkflowsSignalRequest) SetSignalKey(v string)` + +SetSignalKey sets SignalKey field to given value. + +### HasSignalKey + +`func (o *KeyfactorApiModelsWorkflowsSignalRequest) HasSignalKey() bool` + +HasSignalKey returns a boolean if a field has been set. + +### GetData + +`func (o *KeyfactorApiModelsWorkflowsSignalRequest) GetData() map[string]map[string]interface{}` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *KeyfactorApiModelsWorkflowsSignalRequest) GetDataOk() (*map[string]map[string]interface{}, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *KeyfactorApiModelsWorkflowsSignalRequest) SetData(v map[string]map[string]interface{})` + +SetData sets Data field to given value. + +### HasData + +`func (o *KeyfactorApiModelsWorkflowsSignalRequest) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse.md b/v1/docs/KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse.md new file mode 100644 index 0000000..ec79b7e --- /dev/null +++ b/v1/docs/KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse.md @@ -0,0 +1,134 @@ +# KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**WorkflowType** | Pointer to **string** | | [optional] +**KeyType** | Pointer to **string** | | [optional] +**ContextParameters** | Pointer to **[]string** | | [optional] +**BuiltInSteps** | Pointer to [**[]KeyfactorApiModelsWorkflowsAvailableStepResponse**](KeyfactorApiModelsWorkflowsAvailableStepResponse.md) | | [optional] + +## Methods + +### NewKeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse + +`func NewKeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse() *KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse` + +NewKeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse instantiates a new KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiModelsWorkflowsWorkflowTypeQueryResponseWithDefaults + +`func NewKeyfactorApiModelsWorkflowsWorkflowTypeQueryResponseWithDefaults() *KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse` + +NewKeyfactorApiModelsWorkflowsWorkflowTypeQueryResponseWithDefaults instantiates a new KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetWorkflowType + +`func (o *KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse) GetWorkflowType() string` + +GetWorkflowType returns the WorkflowType field if non-nil, zero value otherwise. + +### GetWorkflowTypeOk + +`func (o *KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse) GetWorkflowTypeOk() (*string, bool)` + +GetWorkflowTypeOk returns a tuple with the WorkflowType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflowType + +`func (o *KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse) SetWorkflowType(v string)` + +SetWorkflowType sets WorkflowType field to given value. + +### HasWorkflowType + +`func (o *KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse) HasWorkflowType() bool` + +HasWorkflowType returns a boolean if a field has been set. + +### GetKeyType + +`func (o *KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse) GetKeyType() string` + +GetKeyType returns the KeyType field if non-nil, zero value otherwise. + +### GetKeyTypeOk + +`func (o *KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse) GetKeyTypeOk() (*string, bool)` + +GetKeyTypeOk returns a tuple with the KeyType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyType + +`func (o *KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse) SetKeyType(v string)` + +SetKeyType sets KeyType field to given value. + +### HasKeyType + +`func (o *KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse) HasKeyType() bool` + +HasKeyType returns a boolean if a field has been set. + +### GetContextParameters + +`func (o *KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse) GetContextParameters() []string` + +GetContextParameters returns the ContextParameters field if non-nil, zero value otherwise. + +### GetContextParametersOk + +`func (o *KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse) GetContextParametersOk() (*[]string, bool)` + +GetContextParametersOk returns a tuple with the ContextParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContextParameters + +`func (o *KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse) SetContextParameters(v []string)` + +SetContextParameters sets ContextParameters field to given value. + +### HasContextParameters + +`func (o *KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse) HasContextParameters() bool` + +HasContextParameters returns a boolean if a field has been set. + +### GetBuiltInSteps + +`func (o *KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse) GetBuiltInSteps() []KeyfactorApiModelsWorkflowsAvailableStepResponse` + +GetBuiltInSteps returns the BuiltInSteps field if non-nil, zero value otherwise. + +### GetBuiltInStepsOk + +`func (o *KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse) GetBuiltInStepsOk() (*[]KeyfactorApiModelsWorkflowsAvailableStepResponse, bool)` + +GetBuiltInStepsOk returns a tuple with the BuiltInSteps field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBuiltInSteps + +`func (o *KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse) SetBuiltInSteps(v []KeyfactorApiModelsWorkflowsAvailableStepResponse)` + +SetBuiltInSteps sets BuiltInSteps field to given value. + +### HasBuiltInSteps + +`func (o *KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse) HasBuiltInSteps() bool` + +HasBuiltInSteps returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiPAMProviderTypeCreateRequest.md b/v1/docs/KeyfactorApiPAMProviderTypeCreateRequest.md new file mode 100644 index 0000000..f875439 --- /dev/null +++ b/v1/docs/KeyfactorApiPAMProviderTypeCreateRequest.md @@ -0,0 +1,77 @@ +# KeyfactorApiPAMProviderTypeCreateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Parameters** | Pointer to [**[]KeyfactorApiPAMProviderTypeParameterCreateRequest**](KeyfactorApiPAMProviderTypeParameterCreateRequest.md) | | [optional] + +## Methods + +### NewKeyfactorApiPAMProviderTypeCreateRequest + +`func NewKeyfactorApiPAMProviderTypeCreateRequest(name string, ) *KeyfactorApiPAMProviderTypeCreateRequest` + +NewKeyfactorApiPAMProviderTypeCreateRequest instantiates a new KeyfactorApiPAMProviderTypeCreateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiPAMProviderTypeCreateRequestWithDefaults + +`func NewKeyfactorApiPAMProviderTypeCreateRequestWithDefaults() *KeyfactorApiPAMProviderTypeCreateRequest` + +NewKeyfactorApiPAMProviderTypeCreateRequestWithDefaults instantiates a new KeyfactorApiPAMProviderTypeCreateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *KeyfactorApiPAMProviderTypeCreateRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *KeyfactorApiPAMProviderTypeCreateRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *KeyfactorApiPAMProviderTypeCreateRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetParameters + +`func (o *KeyfactorApiPAMProviderTypeCreateRequest) GetParameters() []KeyfactorApiPAMProviderTypeParameterCreateRequest` + +GetParameters returns the Parameters field if non-nil, zero value otherwise. + +### GetParametersOk + +`func (o *KeyfactorApiPAMProviderTypeCreateRequest) GetParametersOk() (*[]KeyfactorApiPAMProviderTypeParameterCreateRequest, bool)` + +GetParametersOk returns a tuple with the Parameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParameters + +`func (o *KeyfactorApiPAMProviderTypeCreateRequest) SetParameters(v []KeyfactorApiPAMProviderTypeParameterCreateRequest)` + +SetParameters sets Parameters field to given value. + +### HasParameters + +`func (o *KeyfactorApiPAMProviderTypeCreateRequest) HasParameters() bool` + +HasParameters returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiPAMProviderTypeParameterCreateRequest.md b/v1/docs/KeyfactorApiPAMProviderTypeParameterCreateRequest.md new file mode 100644 index 0000000..e18b309 --- /dev/null +++ b/v1/docs/KeyfactorApiPAMProviderTypeParameterCreateRequest.md @@ -0,0 +1,129 @@ +# KeyfactorApiPAMProviderTypeParameterCreateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**DisplayName** | Pointer to **string** | | [optional] +**DataType** | Pointer to **int32** | | [optional] +**InstanceLevel** | Pointer to **bool** | | [optional] + +## Methods + +### NewKeyfactorApiPAMProviderTypeParameterCreateRequest + +`func NewKeyfactorApiPAMProviderTypeParameterCreateRequest(name string, ) *KeyfactorApiPAMProviderTypeParameterCreateRequest` + +NewKeyfactorApiPAMProviderTypeParameterCreateRequest instantiates a new KeyfactorApiPAMProviderTypeParameterCreateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiPAMProviderTypeParameterCreateRequestWithDefaults + +`func NewKeyfactorApiPAMProviderTypeParameterCreateRequestWithDefaults() *KeyfactorApiPAMProviderTypeParameterCreateRequest` + +NewKeyfactorApiPAMProviderTypeParameterCreateRequestWithDefaults instantiates a new KeyfactorApiPAMProviderTypeParameterCreateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *KeyfactorApiPAMProviderTypeParameterCreateRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *KeyfactorApiPAMProviderTypeParameterCreateRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *KeyfactorApiPAMProviderTypeParameterCreateRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDisplayName + +`func (o *KeyfactorApiPAMProviderTypeParameterCreateRequest) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *KeyfactorApiPAMProviderTypeParameterCreateRequest) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *KeyfactorApiPAMProviderTypeParameterCreateRequest) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *KeyfactorApiPAMProviderTypeParameterCreateRequest) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetDataType + +`func (o *KeyfactorApiPAMProviderTypeParameterCreateRequest) GetDataType() int32` + +GetDataType returns the DataType field if non-nil, zero value otherwise. + +### GetDataTypeOk + +`func (o *KeyfactorApiPAMProviderTypeParameterCreateRequest) GetDataTypeOk() (*int32, bool)` + +GetDataTypeOk returns a tuple with the DataType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataType + +`func (o *KeyfactorApiPAMProviderTypeParameterCreateRequest) SetDataType(v int32)` + +SetDataType sets DataType field to given value. + +### HasDataType + +`func (o *KeyfactorApiPAMProviderTypeParameterCreateRequest) HasDataType() bool` + +HasDataType returns a boolean if a field has been set. + +### GetInstanceLevel + +`func (o *KeyfactorApiPAMProviderTypeParameterCreateRequest) GetInstanceLevel() bool` + +GetInstanceLevel returns the InstanceLevel field if non-nil, zero value otherwise. + +### GetInstanceLevelOk + +`func (o *KeyfactorApiPAMProviderTypeParameterCreateRequest) GetInstanceLevelOk() (*bool, bool)` + +GetInstanceLevelOk returns a tuple with the InstanceLevel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstanceLevel + +`func (o *KeyfactorApiPAMProviderTypeParameterCreateRequest) SetInstanceLevel(v bool)` + +SetInstanceLevel sets InstanceLevel field to given value. + +### HasInstanceLevel + +`func (o *KeyfactorApiPAMProviderTypeParameterCreateRequest) HasInstanceLevel() bool` + +HasInstanceLevel returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiPAMProviderTypeParameterResponse.md b/v1/docs/KeyfactorApiPAMProviderTypeParameterResponse.md new file mode 100644 index 0000000..4017971 --- /dev/null +++ b/v1/docs/KeyfactorApiPAMProviderTypeParameterResponse.md @@ -0,0 +1,160 @@ +# KeyfactorApiPAMProviderTypeParameterResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Name** | Pointer to **string** | | [optional] +**DisplayName** | Pointer to **string** | | [optional] +**DataType** | Pointer to **int32** | | [optional] +**InstanceLevel** | Pointer to **bool** | | [optional] + +## Methods + +### NewKeyfactorApiPAMProviderTypeParameterResponse + +`func NewKeyfactorApiPAMProviderTypeParameterResponse() *KeyfactorApiPAMProviderTypeParameterResponse` + +NewKeyfactorApiPAMProviderTypeParameterResponse instantiates a new KeyfactorApiPAMProviderTypeParameterResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiPAMProviderTypeParameterResponseWithDefaults + +`func NewKeyfactorApiPAMProviderTypeParameterResponseWithDefaults() *KeyfactorApiPAMProviderTypeParameterResponse` + +NewKeyfactorApiPAMProviderTypeParameterResponseWithDefaults instantiates a new KeyfactorApiPAMProviderTypeParameterResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *KeyfactorApiPAMProviderTypeParameterResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *KeyfactorApiPAMProviderTypeParameterResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *KeyfactorApiPAMProviderTypeParameterResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *KeyfactorApiPAMProviderTypeParameterResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *KeyfactorApiPAMProviderTypeParameterResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *KeyfactorApiPAMProviderTypeParameterResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *KeyfactorApiPAMProviderTypeParameterResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *KeyfactorApiPAMProviderTypeParameterResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *KeyfactorApiPAMProviderTypeParameterResponse) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *KeyfactorApiPAMProviderTypeParameterResponse) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *KeyfactorApiPAMProviderTypeParameterResponse) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *KeyfactorApiPAMProviderTypeParameterResponse) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetDataType + +`func (o *KeyfactorApiPAMProviderTypeParameterResponse) GetDataType() int32` + +GetDataType returns the DataType field if non-nil, zero value otherwise. + +### GetDataTypeOk + +`func (o *KeyfactorApiPAMProviderTypeParameterResponse) GetDataTypeOk() (*int32, bool)` + +GetDataTypeOk returns a tuple with the DataType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataType + +`func (o *KeyfactorApiPAMProviderTypeParameterResponse) SetDataType(v int32)` + +SetDataType sets DataType field to given value. + +### HasDataType + +`func (o *KeyfactorApiPAMProviderTypeParameterResponse) HasDataType() bool` + +HasDataType returns a boolean if a field has been set. + +### GetInstanceLevel + +`func (o *KeyfactorApiPAMProviderTypeParameterResponse) GetInstanceLevel() bool` + +GetInstanceLevel returns the InstanceLevel field if non-nil, zero value otherwise. + +### GetInstanceLevelOk + +`func (o *KeyfactorApiPAMProviderTypeParameterResponse) GetInstanceLevelOk() (*bool, bool)` + +GetInstanceLevelOk returns a tuple with the InstanceLevel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstanceLevel + +`func (o *KeyfactorApiPAMProviderTypeParameterResponse) SetInstanceLevel(v bool)` + +SetInstanceLevel sets InstanceLevel field to given value. + +### HasInstanceLevel + +`func (o *KeyfactorApiPAMProviderTypeParameterResponse) HasInstanceLevel() bool` + +HasInstanceLevel returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorApiPAMProviderTypeResponse.md b/v1/docs/KeyfactorApiPAMProviderTypeResponse.md new file mode 100644 index 0000000..c86287e --- /dev/null +++ b/v1/docs/KeyfactorApiPAMProviderTypeResponse.md @@ -0,0 +1,108 @@ +# KeyfactorApiPAMProviderTypeResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Parameters** | Pointer to [**[]KeyfactorApiPAMProviderTypeParameterResponse**](KeyfactorApiPAMProviderTypeParameterResponse.md) | | [optional] + +## Methods + +### NewKeyfactorApiPAMProviderTypeResponse + +`func NewKeyfactorApiPAMProviderTypeResponse() *KeyfactorApiPAMProviderTypeResponse` + +NewKeyfactorApiPAMProviderTypeResponse instantiates a new KeyfactorApiPAMProviderTypeResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorApiPAMProviderTypeResponseWithDefaults + +`func NewKeyfactorApiPAMProviderTypeResponseWithDefaults() *KeyfactorApiPAMProviderTypeResponse` + +NewKeyfactorApiPAMProviderTypeResponseWithDefaults instantiates a new KeyfactorApiPAMProviderTypeResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *KeyfactorApiPAMProviderTypeResponse) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *KeyfactorApiPAMProviderTypeResponse) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *KeyfactorApiPAMProviderTypeResponse) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *KeyfactorApiPAMProviderTypeResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *KeyfactorApiPAMProviderTypeResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *KeyfactorApiPAMProviderTypeResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *KeyfactorApiPAMProviderTypeResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *KeyfactorApiPAMProviderTypeResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetParameters + +`func (o *KeyfactorApiPAMProviderTypeResponse) GetParameters() []KeyfactorApiPAMProviderTypeParameterResponse` + +GetParameters returns the Parameters field if non-nil, zero value otherwise. + +### GetParametersOk + +`func (o *KeyfactorApiPAMProviderTypeResponse) GetParametersOk() (*[]KeyfactorApiPAMProviderTypeParameterResponse, bool)` + +GetParametersOk returns a tuple with the Parameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParameters + +`func (o *KeyfactorApiPAMProviderTypeResponse) SetParameters(v []KeyfactorApiPAMProviderTypeParameterResponse)` + +SetParameters sets Parameters field to given value. + +### HasParameters + +`func (o *KeyfactorApiPAMProviderTypeResponse) HasParameters() bool` + +HasParameters returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorAuditingQueryingAuditLogEntry.md b/v1/docs/KeyfactorAuditingQueryingAuditLogEntry.md new file mode 100644 index 0000000..26b12d8 --- /dev/null +++ b/v1/docs/KeyfactorAuditingQueryingAuditLogEntry.md @@ -0,0 +1,316 @@ +# KeyfactorAuditingQueryingAuditLogEntry + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Timestamp** | Pointer to **time.Time** | | [optional] +**Message** | Pointer to **string** | | [optional] +**Signature** | Pointer to **string** | | [optional] +**Category** | Pointer to **int32** | | [optional] +**Operation** | Pointer to **int32** | | [optional] +**Level** | Pointer to **int32** | | [optional] +**User** | Pointer to **string** | | [optional] +**EntityType** | Pointer to **string** | | [optional] +**AuditIdentifier** | Pointer to **string** | | [optional] +**ImmutableIdentifier** | Pointer to **string** | | [optional] + +## Methods + +### NewKeyfactorAuditingQueryingAuditLogEntry + +`func NewKeyfactorAuditingQueryingAuditLogEntry() *KeyfactorAuditingQueryingAuditLogEntry` + +NewKeyfactorAuditingQueryingAuditLogEntry instantiates a new KeyfactorAuditingQueryingAuditLogEntry object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorAuditingQueryingAuditLogEntryWithDefaults + +`func NewKeyfactorAuditingQueryingAuditLogEntryWithDefaults() *KeyfactorAuditingQueryingAuditLogEntry` + +NewKeyfactorAuditingQueryingAuditLogEntryWithDefaults instantiates a new KeyfactorAuditingQueryingAuditLogEntry object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetTimestamp + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) GetTimestamp() time.Time` + +GetTimestamp returns the Timestamp field if non-nil, zero value otherwise. + +### GetTimestampOk + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) GetTimestampOk() (*time.Time, bool)` + +GetTimestampOk returns a tuple with the Timestamp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimestamp + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) SetTimestamp(v time.Time)` + +SetTimestamp sets Timestamp field to given value. + +### HasTimestamp + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) HasTimestamp() bool` + +HasTimestamp returns a boolean if a field has been set. + +### GetMessage + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### GetSignature + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) GetSignature() string` + +GetSignature returns the Signature field if non-nil, zero value otherwise. + +### GetSignatureOk + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) GetSignatureOk() (*string, bool)` + +GetSignatureOk returns a tuple with the Signature field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignature + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) SetSignature(v string)` + +SetSignature sets Signature field to given value. + +### HasSignature + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) HasSignature() bool` + +HasSignature returns a boolean if a field has been set. + +### GetCategory + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) GetCategory() int32` + +GetCategory returns the Category field if non-nil, zero value otherwise. + +### GetCategoryOk + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) GetCategoryOk() (*int32, bool)` + +GetCategoryOk returns a tuple with the Category field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCategory + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) SetCategory(v int32)` + +SetCategory sets Category field to given value. + +### HasCategory + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) HasCategory() bool` + +HasCategory returns a boolean if a field has been set. + +### GetOperation + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) GetOperation() int32` + +GetOperation returns the Operation field if non-nil, zero value otherwise. + +### GetOperationOk + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) GetOperationOk() (*int32, bool)` + +GetOperationOk returns a tuple with the Operation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperation + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) SetOperation(v int32)` + +SetOperation sets Operation field to given value. + +### HasOperation + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) HasOperation() bool` + +HasOperation returns a boolean if a field has been set. + +### GetLevel + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) GetLevel() int32` + +GetLevel returns the Level field if non-nil, zero value otherwise. + +### GetLevelOk + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) GetLevelOk() (*int32, bool)` + +GetLevelOk returns a tuple with the Level field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLevel + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) SetLevel(v int32)` + +SetLevel sets Level field to given value. + +### HasLevel + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) HasLevel() bool` + +HasLevel returns a boolean if a field has been set. + +### GetUser + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) GetUser() string` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) GetUserOk() (*string, bool)` + +GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUser + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) SetUser(v string)` + +SetUser sets User field to given value. + +### HasUser + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) HasUser() bool` + +HasUser returns a boolean if a field has been set. + +### GetEntityType + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) GetEntityType() string` + +GetEntityType returns the EntityType field if non-nil, zero value otherwise. + +### GetEntityTypeOk + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) GetEntityTypeOk() (*string, bool)` + +GetEntityTypeOk returns a tuple with the EntityType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEntityType + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) SetEntityType(v string)` + +SetEntityType sets EntityType field to given value. + +### HasEntityType + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) HasEntityType() bool` + +HasEntityType returns a boolean if a field has been set. + +### GetAuditIdentifier + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) GetAuditIdentifier() string` + +GetAuditIdentifier returns the AuditIdentifier field if non-nil, zero value otherwise. + +### GetAuditIdentifierOk + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) GetAuditIdentifierOk() (*string, bool)` + +GetAuditIdentifierOk returns a tuple with the AuditIdentifier field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuditIdentifier + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) SetAuditIdentifier(v string)` + +SetAuditIdentifier sets AuditIdentifier field to given value. + +### HasAuditIdentifier + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) HasAuditIdentifier() bool` + +HasAuditIdentifier returns a boolean if a field has been set. + +### GetImmutableIdentifier + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) GetImmutableIdentifier() string` + +GetImmutableIdentifier returns the ImmutableIdentifier field if non-nil, zero value otherwise. + +### GetImmutableIdentifierOk + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) GetImmutableIdentifierOk() (*string, bool)` + +GetImmutableIdentifierOk returns a tuple with the ImmutableIdentifier field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImmutableIdentifier + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) SetImmutableIdentifier(v string)` + +SetImmutableIdentifier sets ImmutableIdentifier field to given value. + +### HasImmutableIdentifier + +`func (o *KeyfactorAuditingQueryingAuditLogEntry) HasImmutableIdentifier() bool` + +HasImmutableIdentifier returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorCommonSchedulingKeyfactorSchedule.md b/v1/docs/KeyfactorCommonSchedulingKeyfactorSchedule.md new file mode 100644 index 0000000..e56d29c --- /dev/null +++ b/v1/docs/KeyfactorCommonSchedulingKeyfactorSchedule.md @@ -0,0 +1,186 @@ +# KeyfactorCommonSchedulingKeyfactorSchedule + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Immediate** | Pointer to **bool** | | [optional] +**Interval** | Pointer to [**KeyfactorCommonSchedulingModelsIntervalModel**](KeyfactorCommonSchedulingModelsIntervalModel.md) | | [optional] +**Daily** | Pointer to [**KeyfactorCommonSchedulingModelsTimeModel**](KeyfactorCommonSchedulingModelsTimeModel.md) | | [optional] +**Weekly** | Pointer to [**KeyfactorCommonSchedulingModelsWeeklyModel**](KeyfactorCommonSchedulingModelsWeeklyModel.md) | | [optional] +**Monthly** | Pointer to [**KeyfactorCommonSchedulingModelsMonthlyModel**](KeyfactorCommonSchedulingModelsMonthlyModel.md) | | [optional] +**ExactlyOnce** | Pointer to [**KeyfactorCommonSchedulingModelsTimeModel**](KeyfactorCommonSchedulingModelsTimeModel.md) | | [optional] + +## Methods + +### NewKeyfactorCommonSchedulingKeyfactorSchedule + +`func NewKeyfactorCommonSchedulingKeyfactorSchedule() *KeyfactorCommonSchedulingKeyfactorSchedule` + +NewKeyfactorCommonSchedulingKeyfactorSchedule instantiates a new KeyfactorCommonSchedulingKeyfactorSchedule object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorCommonSchedulingKeyfactorScheduleWithDefaults + +`func NewKeyfactorCommonSchedulingKeyfactorScheduleWithDefaults() *KeyfactorCommonSchedulingKeyfactorSchedule` + +NewKeyfactorCommonSchedulingKeyfactorScheduleWithDefaults instantiates a new KeyfactorCommonSchedulingKeyfactorSchedule object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetImmediate + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetImmediate() bool` + +GetImmediate returns the Immediate field if non-nil, zero value otherwise. + +### GetImmediateOk + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetImmediateOk() (*bool, bool)` + +GetImmediateOk returns a tuple with the Immediate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImmediate + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) SetImmediate(v bool)` + +SetImmediate sets Immediate field to given value. + +### HasImmediate + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) HasImmediate() bool` + +HasImmediate returns a boolean if a field has been set. + +### GetInterval + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetInterval() KeyfactorCommonSchedulingModelsIntervalModel` + +GetInterval returns the Interval field if non-nil, zero value otherwise. + +### GetIntervalOk + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetIntervalOk() (*KeyfactorCommonSchedulingModelsIntervalModel, bool)` + +GetIntervalOk returns a tuple with the Interval field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterval + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) SetInterval(v KeyfactorCommonSchedulingModelsIntervalModel)` + +SetInterval sets Interval field to given value. + +### HasInterval + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) HasInterval() bool` + +HasInterval returns a boolean if a field has been set. + +### GetDaily + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetDaily() KeyfactorCommonSchedulingModelsTimeModel` + +GetDaily returns the Daily field if non-nil, zero value otherwise. + +### GetDailyOk + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetDailyOk() (*KeyfactorCommonSchedulingModelsTimeModel, bool)` + +GetDailyOk returns a tuple with the Daily field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDaily + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) SetDaily(v KeyfactorCommonSchedulingModelsTimeModel)` + +SetDaily sets Daily field to given value. + +### HasDaily + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) HasDaily() bool` + +HasDaily returns a boolean if a field has been set. + +### GetWeekly + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetWeekly() KeyfactorCommonSchedulingModelsWeeklyModel` + +GetWeekly returns the Weekly field if non-nil, zero value otherwise. + +### GetWeeklyOk + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetWeeklyOk() (*KeyfactorCommonSchedulingModelsWeeklyModel, bool)` + +GetWeeklyOk returns a tuple with the Weekly field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeekly + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) SetWeekly(v KeyfactorCommonSchedulingModelsWeeklyModel)` + +SetWeekly sets Weekly field to given value. + +### HasWeekly + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) HasWeekly() bool` + +HasWeekly returns a boolean if a field has been set. + +### GetMonthly + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetMonthly() KeyfactorCommonSchedulingModelsMonthlyModel` + +GetMonthly returns the Monthly field if non-nil, zero value otherwise. + +### GetMonthlyOk + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetMonthlyOk() (*KeyfactorCommonSchedulingModelsMonthlyModel, bool)` + +GetMonthlyOk returns a tuple with the Monthly field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonthly + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) SetMonthly(v KeyfactorCommonSchedulingModelsMonthlyModel)` + +SetMonthly sets Monthly field to given value. + +### HasMonthly + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) HasMonthly() bool` + +HasMonthly returns a boolean if a field has been set. + +### GetExactlyOnce + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetExactlyOnce() KeyfactorCommonSchedulingModelsTimeModel` + +GetExactlyOnce returns the ExactlyOnce field if non-nil, zero value otherwise. + +### GetExactlyOnceOk + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) GetExactlyOnceOk() (*KeyfactorCommonSchedulingModelsTimeModel, bool)` + +GetExactlyOnceOk returns a tuple with the ExactlyOnce field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExactlyOnce + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) SetExactlyOnce(v KeyfactorCommonSchedulingModelsTimeModel)` + +SetExactlyOnce sets ExactlyOnce field to given value. + +### HasExactlyOnce + +`func (o *KeyfactorCommonSchedulingKeyfactorSchedule) HasExactlyOnce() bool` + +HasExactlyOnce returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorCommonSchedulingModelsIntervalModel.md b/v1/docs/KeyfactorCommonSchedulingModelsIntervalModel.md new file mode 100644 index 0000000..6fab59c --- /dev/null +++ b/v1/docs/KeyfactorCommonSchedulingModelsIntervalModel.md @@ -0,0 +1,56 @@ +# KeyfactorCommonSchedulingModelsIntervalModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Minutes** | Pointer to **int32** | | [optional] + +## Methods + +### NewKeyfactorCommonSchedulingModelsIntervalModel + +`func NewKeyfactorCommonSchedulingModelsIntervalModel() *KeyfactorCommonSchedulingModelsIntervalModel` + +NewKeyfactorCommonSchedulingModelsIntervalModel instantiates a new KeyfactorCommonSchedulingModelsIntervalModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorCommonSchedulingModelsIntervalModelWithDefaults + +`func NewKeyfactorCommonSchedulingModelsIntervalModelWithDefaults() *KeyfactorCommonSchedulingModelsIntervalModel` + +NewKeyfactorCommonSchedulingModelsIntervalModelWithDefaults instantiates a new KeyfactorCommonSchedulingModelsIntervalModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMinutes + +`func (o *KeyfactorCommonSchedulingModelsIntervalModel) GetMinutes() int32` + +GetMinutes returns the Minutes field if non-nil, zero value otherwise. + +### GetMinutesOk + +`func (o *KeyfactorCommonSchedulingModelsIntervalModel) GetMinutesOk() (*int32, bool)` + +GetMinutesOk returns a tuple with the Minutes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMinutes + +`func (o *KeyfactorCommonSchedulingModelsIntervalModel) SetMinutes(v int32)` + +SetMinutes sets Minutes field to given value. + +### HasMinutes + +`func (o *KeyfactorCommonSchedulingModelsIntervalModel) HasMinutes() bool` + +HasMinutes returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorCommonSchedulingModelsMonthlyModel.md b/v1/docs/KeyfactorCommonSchedulingModelsMonthlyModel.md new file mode 100644 index 0000000..76015a9 --- /dev/null +++ b/v1/docs/KeyfactorCommonSchedulingModelsMonthlyModel.md @@ -0,0 +1,82 @@ +# KeyfactorCommonSchedulingModelsMonthlyModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Day** | Pointer to **int32** | | [optional] +**Time** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewKeyfactorCommonSchedulingModelsMonthlyModel + +`func NewKeyfactorCommonSchedulingModelsMonthlyModel() *KeyfactorCommonSchedulingModelsMonthlyModel` + +NewKeyfactorCommonSchedulingModelsMonthlyModel instantiates a new KeyfactorCommonSchedulingModelsMonthlyModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorCommonSchedulingModelsMonthlyModelWithDefaults + +`func NewKeyfactorCommonSchedulingModelsMonthlyModelWithDefaults() *KeyfactorCommonSchedulingModelsMonthlyModel` + +NewKeyfactorCommonSchedulingModelsMonthlyModelWithDefaults instantiates a new KeyfactorCommonSchedulingModelsMonthlyModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDay + +`func (o *KeyfactorCommonSchedulingModelsMonthlyModel) GetDay() int32` + +GetDay returns the Day field if non-nil, zero value otherwise. + +### GetDayOk + +`func (o *KeyfactorCommonSchedulingModelsMonthlyModel) GetDayOk() (*int32, bool)` + +GetDayOk returns a tuple with the Day field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDay + +`func (o *KeyfactorCommonSchedulingModelsMonthlyModel) SetDay(v int32)` + +SetDay sets Day field to given value. + +### HasDay + +`func (o *KeyfactorCommonSchedulingModelsMonthlyModel) HasDay() bool` + +HasDay returns a boolean if a field has been set. + +### GetTime + +`func (o *KeyfactorCommonSchedulingModelsMonthlyModel) GetTime() time.Time` + +GetTime returns the Time field if non-nil, zero value otherwise. + +### GetTimeOk + +`func (o *KeyfactorCommonSchedulingModelsMonthlyModel) GetTimeOk() (*time.Time, bool)` + +GetTimeOk returns a tuple with the Time field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTime + +`func (o *KeyfactorCommonSchedulingModelsMonthlyModel) SetTime(v time.Time)` + +SetTime sets Time field to given value. + +### HasTime + +`func (o *KeyfactorCommonSchedulingModelsMonthlyModel) HasTime() bool` + +HasTime returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorCommonSchedulingModelsTimeModel.md b/v1/docs/KeyfactorCommonSchedulingModelsTimeModel.md new file mode 100644 index 0000000..7381cf7 --- /dev/null +++ b/v1/docs/KeyfactorCommonSchedulingModelsTimeModel.md @@ -0,0 +1,56 @@ +# KeyfactorCommonSchedulingModelsTimeModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Time** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewKeyfactorCommonSchedulingModelsTimeModel + +`func NewKeyfactorCommonSchedulingModelsTimeModel() *KeyfactorCommonSchedulingModelsTimeModel` + +NewKeyfactorCommonSchedulingModelsTimeModel instantiates a new KeyfactorCommonSchedulingModelsTimeModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorCommonSchedulingModelsTimeModelWithDefaults + +`func NewKeyfactorCommonSchedulingModelsTimeModelWithDefaults() *KeyfactorCommonSchedulingModelsTimeModel` + +NewKeyfactorCommonSchedulingModelsTimeModelWithDefaults instantiates a new KeyfactorCommonSchedulingModelsTimeModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTime + +`func (o *KeyfactorCommonSchedulingModelsTimeModel) GetTime() time.Time` + +GetTime returns the Time field if non-nil, zero value otherwise. + +### GetTimeOk + +`func (o *KeyfactorCommonSchedulingModelsTimeModel) GetTimeOk() (*time.Time, bool)` + +GetTimeOk returns a tuple with the Time field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTime + +`func (o *KeyfactorCommonSchedulingModelsTimeModel) SetTime(v time.Time)` + +SetTime sets Time field to given value. + +### HasTime + +`func (o *KeyfactorCommonSchedulingModelsTimeModel) HasTime() bool` + +HasTime returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/KeyfactorCommonSchedulingModelsWeeklyModel.md b/v1/docs/KeyfactorCommonSchedulingModelsWeeklyModel.md new file mode 100644 index 0000000..f1517eb --- /dev/null +++ b/v1/docs/KeyfactorCommonSchedulingModelsWeeklyModel.md @@ -0,0 +1,82 @@ +# KeyfactorCommonSchedulingModelsWeeklyModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Days** | Pointer to **[]int32** | | [optional] +**Time** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewKeyfactorCommonSchedulingModelsWeeklyModel + +`func NewKeyfactorCommonSchedulingModelsWeeklyModel() *KeyfactorCommonSchedulingModelsWeeklyModel` + +NewKeyfactorCommonSchedulingModelsWeeklyModel instantiates a new KeyfactorCommonSchedulingModelsWeeklyModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKeyfactorCommonSchedulingModelsWeeklyModelWithDefaults + +`func NewKeyfactorCommonSchedulingModelsWeeklyModelWithDefaults() *KeyfactorCommonSchedulingModelsWeeklyModel` + +NewKeyfactorCommonSchedulingModelsWeeklyModelWithDefaults instantiates a new KeyfactorCommonSchedulingModelsWeeklyModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDays + +`func (o *KeyfactorCommonSchedulingModelsWeeklyModel) GetDays() []int32` + +GetDays returns the Days field if non-nil, zero value otherwise. + +### GetDaysOk + +`func (o *KeyfactorCommonSchedulingModelsWeeklyModel) GetDaysOk() (*[]int32, bool)` + +GetDaysOk returns a tuple with the Days field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDays + +`func (o *KeyfactorCommonSchedulingModelsWeeklyModel) SetDays(v []int32)` + +SetDays sets Days field to given value. + +### HasDays + +`func (o *KeyfactorCommonSchedulingModelsWeeklyModel) HasDays() bool` + +HasDays returns a boolean if a field has been set. + +### GetTime + +`func (o *KeyfactorCommonSchedulingModelsWeeklyModel) GetTime() time.Time` + +GetTime returns the Time field if non-nil, zero value otherwise. + +### GetTimeOk + +`func (o *KeyfactorCommonSchedulingModelsWeeklyModel) GetTimeOk() (*time.Time, bool)` + +GetTimeOk returns a tuple with the Time field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTime + +`func (o *KeyfactorCommonSchedulingModelsWeeklyModel) SetTime(v time.Time)` + +SetTime sets Time field to given value. + +### HasTime + +`func (o *KeyfactorCommonSchedulingModelsWeeklyModel) HasTime() bool` + +HasTime returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/LicenseApi.md b/v1/docs/LicenseApi.md new file mode 100644 index 0000000..4df5ac4 --- /dev/null +++ b/v1/docs/LicenseApi.md @@ -0,0 +1,75 @@ +# \LicenseApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**LicenseGetCurrentLicense**](LicenseApi.md#LicenseGetCurrentLicense) | **Get** /License | Gets the current license + + + +## LicenseGetCurrentLicense + +> KeyfactorApiModelsLicenseLicenseResponse LicenseGetCurrentLicense(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Gets the current license + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.LicenseApi.LicenseGetCurrentLicense(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LicenseApi.LicenseGetCurrentLicense``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `LicenseGetCurrentLicense`: KeyfactorApiModelsLicenseLicenseResponse + fmt.Fprintf(os.Stdout, "Response from `LicenseApi.LicenseGetCurrentLicense`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiLicenseGetCurrentLicenseRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsLicenseLicenseResponse**](KeyfactorApiModelsLicenseLicenseResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v1/docs/LogonApi.md b/v1/docs/LogonApi.md new file mode 100644 index 0000000..23aaac9 --- /dev/null +++ b/v1/docs/LogonApi.md @@ -0,0 +1,367 @@ +# \LogonApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**LogonCreateLogon**](LogonApi.md#LogonCreateLogon) | **Post** /SSH/Logons | Creates a logon with the provided properties +[**LogonDelete**](LogonApi.md#LogonDelete) | **Delete** /SSH/Logons/{id} | Deletes a Logon associated with the provided identifier +[**LogonGetLogon**](LogonApi.md#LogonGetLogon) | **Get** /SSH/Logons/{id} | Fetches a Logon associated with the provided identifier +[**LogonLogonAccess**](LogonApi.md#LogonLogonAccess) | **Post** /SSH/Logons/Access | Updates the users with access to an existing logon +[**LogonQueryLogons**](LogonApi.md#LogonQueryLogons) | **Get** /SSH/Logons | Returns all Logons according to the provided filter parameters + + + +## LogonCreateLogon + +> ModelsSSHLogonsLogonResponse LogonCreateLogon(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Logon(logon).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Creates a logon with the provided properties + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + logon := *openapiclient.NewModelsSSHLogonsLogonCreationRequest("Username_example", int32(123)) // ModelsSSHLogonsLogonCreationRequest | Logon properties to be applied to the new logon + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.LogonApi.LogonCreateLogon(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Logon(logon).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LogonApi.LogonCreateLogon``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `LogonCreateLogon`: ModelsSSHLogonsLogonResponse + fmt.Fprintf(os.Stdout, "Response from `LogonApi.LogonCreateLogon`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiLogonCreateLogonRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **logon** | [**ModelsSSHLogonsLogonCreationRequest**](ModelsSSHLogonsLogonCreationRequest.md) | Logon properties to be applied to the new logon | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsSSHLogonsLogonResponse**](ModelsSSHLogonsLogonResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## LogonDelete + +> LogonDelete(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes a Logon associated with the provided identifier + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Keyfactor identifer of the Logon to be deleted + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.LogonApi.LogonDelete(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LogonApi.LogonDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Keyfactor identifer of the Logon to be deleted | + +### Other Parameters + +Other parameters are passed through a pointer to a apiLogonDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## LogonGetLogon + +> ModelsSSHLogonsLogonResponse LogonGetLogon(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Fetches a Logon associated with the provided identifier + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Keyfactor identifer of the Logon to be Fetched + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.LogonApi.LogonGetLogon(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LogonApi.LogonGetLogon``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `LogonGetLogon`: ModelsSSHLogonsLogonResponse + fmt.Fprintf(os.Stdout, "Response from `LogonApi.LogonGetLogon`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Keyfactor identifer of the Logon to be Fetched | + +### Other Parameters + +Other parameters are passed through a pointer to a apiLogonGetLogonRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsSSHLogonsLogonResponse**](ModelsSSHLogonsLogonResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## LogonLogonAccess + +> ModelsSSHAccessLogonUserAccessResponse LogonLogonAccess(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Logon(logon).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Updates the users with access to an existing logon + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + logon := *openapiclient.NewModelsSSHLogonsLogonAccessRequest(int32(123)) // ModelsSSHLogonsLogonAccessRequest | Users to add the existing logon + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.LogonApi.LogonLogonAccess(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Logon(logon).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LogonApi.LogonLogonAccess``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `LogonLogonAccess`: ModelsSSHAccessLogonUserAccessResponse + fmt.Fprintf(os.Stdout, "Response from `LogonApi.LogonLogonAccess`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiLogonLogonAccessRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **logon** | [**ModelsSSHLogonsLogonAccessRequest**](ModelsSSHLogonsLogonAccessRequest.md) | Users to add the existing logon | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsSSHAccessLogonUserAccessResponse**](ModelsSSHAccessLogonUserAccessResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## LogonQueryLogons + +> []ModelsSSHLogonsLogonQueryResponse LogonQueryLogons(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + +Returns all Logons according to the provided filter parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + pqQueryString := "pqQueryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + pqPageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + pqReturnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.LogonApi.LogonQueryLogons(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LogonApi.LogonQueryLogons``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `LogonQueryLogons`: []ModelsSSHLogonsLogonQueryResponse + fmt.Fprintf(os.Stdout, "Response from `LogonApi.LogonQueryLogons`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiLogonQueryLogonsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + **pqQueryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **pqPageReturned** | **int32** | The current page within the result set to be returned | + **pqReturnLimit** | **int32** | Maximum number of records to be returned in a single call | + **pqSortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **pqSortAscending** | **int32** | Field sort direction [0=ascending, 1=descending] | + +### Return type + +[**[]ModelsSSHLogonsLogonQueryResponse**](ModelsSSHLogonsLogonQueryResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v1/docs/MacEnrollmentApi.md b/v1/docs/MacEnrollmentApi.md new file mode 100644 index 0000000..6f519b4 --- /dev/null +++ b/v1/docs/MacEnrollmentApi.md @@ -0,0 +1,144 @@ +# \MacEnrollmentApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**MacEnrollmentEditMacEnrollment**](MacEnrollmentApi.md#MacEnrollmentEditMacEnrollment) | **Put** /MacEnrollment | Updates mac enrollment settings data +[**MacEnrollmentMacEnrollment**](MacEnrollmentApi.md#MacEnrollmentMacEnrollment) | **Get** /MacEnrollment | Gets mac enrollment settings data + + + +## MacEnrollmentEditMacEnrollment + +> KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel MacEnrollmentEditMacEnrollment(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).MacEnrollmentSettings(macEnrollmentSettings).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Updates mac enrollment settings data + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + macEnrollmentSettings := *openapiclient.NewKeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel() // KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel | + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MacEnrollmentApi.MacEnrollmentEditMacEnrollment(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).MacEnrollmentSettings(macEnrollmentSettings).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MacEnrollmentApi.MacEnrollmentEditMacEnrollment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `MacEnrollmentEditMacEnrollment`: KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel + fmt.Fprintf(os.Stdout, "Response from `MacEnrollmentApi.MacEnrollmentEditMacEnrollment`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiMacEnrollmentEditMacEnrollmentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **macEnrollmentSettings** | [**KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel**](KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel**](KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## MacEnrollmentMacEnrollment + +> KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel MacEnrollmentMacEnrollment(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Gets mac enrollment settings data + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MacEnrollmentApi.MacEnrollmentMacEnrollment(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MacEnrollmentApi.MacEnrollmentMacEnrollment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `MacEnrollmentMacEnrollment`: KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel + fmt.Fprintf(os.Stdout, "Response from `MacEnrollmentApi.MacEnrollmentMacEnrollment`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiMacEnrollmentMacEnrollmentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel**](KeyfactorApiModelsMacEnrollmentMacEnrollmentAPIModel.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v1/docs/MetadataFieldApi.md b/v1/docs/MetadataFieldApi.md new file mode 100644 index 0000000..0f4c7c4 --- /dev/null +++ b/v1/docs/MetadataFieldApi.md @@ -0,0 +1,590 @@ +# \MetadataFieldApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**MetadataFieldCreateMetadataField**](MetadataFieldApi.md#MetadataFieldCreateMetadataField) | **Post** /MetadataFields | Creates a new metadata field type with the given metadata field type properties +[**MetadataFieldDeleteMetadataField**](MetadataFieldApi.md#MetadataFieldDeleteMetadataField) | **Delete** /MetadataFields/{id} | Deletes a persisted metadata field type by its unique id +[**MetadataFieldDeleteMetadataFields**](MetadataFieldApi.md#MetadataFieldDeleteMetadataFields) | **Delete** /MetadataFields | Deletes multiple persisted metadata field types by their unique ids +[**MetadataFieldGetAllMetadataFields**](MetadataFieldApi.md#MetadataFieldGetAllMetadataFields) | **Get** /MetadataFields | Returns all metadata field types according to the provided filter and output parameters +[**MetadataFieldGetMetadataField0**](MetadataFieldApi.md#MetadataFieldGetMetadataField0) | **Get** /MetadataFields/{id} | Gets a persisted metadata field type by its unique id +[**MetadataFieldGetMetadataField1**](MetadataFieldApi.md#MetadataFieldGetMetadataField1) | **Get** /MetadataFields/{name} | Gets a persisted metadata field type by its unique name +[**MetadataFieldGetMetadataFieldInUse**](MetadataFieldApi.md#MetadataFieldGetMetadataFieldInUse) | **Get** /MetadataFields/{id}/InUse | Determines if a metadata field type associated with the provided identifier is currently in use +[**MetadataFieldUpdateMetadataField**](MetadataFieldApi.md#MetadataFieldUpdateMetadataField) | **Put** /MetadataFields | Updates a persisted metadata field with the given metadata field type + + + +## MetadataFieldCreateMetadataField + +> KeyfactorApiModelsMetadataFieldMetadataFieldResponse MetadataFieldCreateMetadataField(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).MetadataFieldType(metadataFieldType).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Creates a new metadata field type with the given metadata field type properties + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + metadataFieldType := *openapiclient.NewKeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest("Name_example", "Description_example", int32(123)) // KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest | Properties of the metadata field type to be created + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MetadataFieldApi.MetadataFieldCreateMetadataField(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).MetadataFieldType(metadataFieldType).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MetadataFieldApi.MetadataFieldCreateMetadataField``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `MetadataFieldCreateMetadataField`: KeyfactorApiModelsMetadataFieldMetadataFieldResponse + fmt.Fprintf(os.Stdout, "Response from `MetadataFieldApi.MetadataFieldCreateMetadataField`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiMetadataFieldCreateMetadataFieldRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **metadataFieldType** | [**KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest**](KeyfactorApiModelsMetadataFieldMetadataFieldCreateRequest.md) | Properties of the metadata field type to be created | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsMetadataFieldMetadataFieldResponse**](KeyfactorApiModelsMetadataFieldMetadataFieldResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## MetadataFieldDeleteMetadataField + +> MetadataFieldDeleteMetadataField(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Force(force).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes a persisted metadata field type by its unique id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Keyfactor identifier of the metadata field type + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + force := true // bool | Forces deletion of the metadata field type even if in-use (optional) + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MetadataFieldApi.MetadataFieldDeleteMetadataField(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Force(force).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MetadataFieldApi.MetadataFieldDeleteMetadataField``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Keyfactor identifier of the metadata field type | + +### Other Parameters + +Other parameters are passed through a pointer to a apiMetadataFieldDeleteMetadataFieldRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **force** | **bool** | Forces deletion of the metadata field type even if in-use | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## MetadataFieldDeleteMetadataFields + +> MetadataFieldDeleteMetadataFields(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Ids(ids).Force(force).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes multiple persisted metadata field types by their unique ids + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + ids := []int32{int32(123)} // []int32 | Array of Keyfactor identifiers for metadata field types to be deleted + force := true // bool | Forces deletion of the metadata field type even if in-use (optional) + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MetadataFieldApi.MetadataFieldDeleteMetadataFields(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Ids(ids).Force(force).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MetadataFieldApi.MetadataFieldDeleteMetadataFields``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiMetadataFieldDeleteMetadataFieldsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **ids** | **[]int32** | Array of Keyfactor identifiers for metadata field types to be deleted | + **force** | **bool** | Forces deletion of the metadata field type even if in-use | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## MetadataFieldGetAllMetadataFields + +> []ModelsMetadataFieldTypeModel MetadataFieldGetAllMetadataFields(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + +Returns all metadata field types according to the provided filter and output parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + pqQueryString := "pqQueryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + pqPageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + pqReturnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MetadataFieldApi.MetadataFieldGetAllMetadataFields(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MetadataFieldApi.MetadataFieldGetAllMetadataFields``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `MetadataFieldGetAllMetadataFields`: []ModelsMetadataFieldTypeModel + fmt.Fprintf(os.Stdout, "Response from `MetadataFieldApi.MetadataFieldGetAllMetadataFields`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiMetadataFieldGetAllMetadataFieldsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + **pqQueryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **pqPageReturned** | **int32** | The current page within the result set to be returned | + **pqReturnLimit** | **int32** | Maximum number of records to be returned in a single call | + **pqSortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **pqSortAscending** | **int32** | Field sort direction [0=ascending, 1=descending] | + +### Return type + +[**[]ModelsMetadataFieldTypeModel**](ModelsMetadataFieldTypeModel.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## MetadataFieldGetMetadataField0 + +> ModelsMetadataFieldTypeModel MetadataFieldGetMetadataField0(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Gets a persisted metadata field type by its unique id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | The unique id of the metadata field type + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MetadataFieldApi.MetadataFieldGetMetadataField0(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MetadataFieldApi.MetadataFieldGetMetadataField0``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `MetadataFieldGetMetadataField0`: ModelsMetadataFieldTypeModel + fmt.Fprintf(os.Stdout, "Response from `MetadataFieldApi.MetadataFieldGetMetadataField0`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | The unique id of the metadata field type | + +### Other Parameters + +Other parameters are passed through a pointer to a apiMetadataFieldGetMetadataField0Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsMetadataFieldTypeModel**](ModelsMetadataFieldTypeModel.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## MetadataFieldGetMetadataField1 + +> ModelsMetadataFieldTypeModel MetadataFieldGetMetadataField1(ctx, name).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Gets a persisted metadata field type by its unique name + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | The unique name of the metadata field. + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MetadataFieldApi.MetadataFieldGetMetadataField1(context.Background(), name).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MetadataFieldApi.MetadataFieldGetMetadataField1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `MetadataFieldGetMetadataField1`: ModelsMetadataFieldTypeModel + fmt.Fprintf(os.Stdout, "Response from `MetadataFieldApi.MetadataFieldGetMetadataField1`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | The unique name of the metadata field. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiMetadataFieldGetMetadataField1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsMetadataFieldTypeModel**](ModelsMetadataFieldTypeModel.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## MetadataFieldGetMetadataFieldInUse + +> bool MetadataFieldGetMetadataFieldInUse(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Determines if a metadata field type associated with the provided identifier is currently in use + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Keyfactor identitifer of the metadata field + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MetadataFieldApi.MetadataFieldGetMetadataFieldInUse(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MetadataFieldApi.MetadataFieldGetMetadataFieldInUse``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `MetadataFieldGetMetadataFieldInUse`: bool + fmt.Fprintf(os.Stdout, "Response from `MetadataFieldApi.MetadataFieldGetMetadataFieldInUse`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Keyfactor identitifer of the metadata field | + +### Other Parameters + +Other parameters are passed through a pointer to a apiMetadataFieldGetMetadataFieldInUseRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +**bool** + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## MetadataFieldUpdateMetadataField + +> KeyfactorApiModelsMetadataFieldMetadataFieldResponse MetadataFieldUpdateMetadataField(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).MetadataFieldType(metadataFieldType).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Updates a persisted metadata field with the given metadata field type + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + metadataFieldType := *openapiclient.NewKeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest(int32(123), "Name_example", "Description_example", int32(123)) // KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest | Properties of the metadata field type to be updated + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MetadataFieldApi.MetadataFieldUpdateMetadataField(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).MetadataFieldType(metadataFieldType).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MetadataFieldApi.MetadataFieldUpdateMetadataField``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `MetadataFieldUpdateMetadataField`: KeyfactorApiModelsMetadataFieldMetadataFieldResponse + fmt.Fprintf(os.Stdout, "Response from `MetadataFieldApi.MetadataFieldUpdateMetadataField`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiMetadataFieldUpdateMetadataFieldRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **metadataFieldType** | [**KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest**](KeyfactorApiModelsMetadataFieldMetadataFieldUpdateRequest.md) | Properties of the metadata field type to be updated | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsMetadataFieldMetadataFieldResponse**](KeyfactorApiModelsMetadataFieldMetadataFieldResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v1/docs/ModelsAgentsAgentPool.md b/v1/docs/ModelsAgentsAgentPool.md new file mode 100644 index 0000000..0bd1dea --- /dev/null +++ b/v1/docs/ModelsAgentsAgentPool.md @@ -0,0 +1,155 @@ +# ModelsAgentsAgentPool + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AgentPoolId** | Pointer to **string** | GUID identifier of the agent pool | [optional] +**Name** | **string** | Name of the agent pool | +**DiscoverAgentsCount** | Pointer to **int32** | Number of agents that can perform discovery jobs | [optional] +**MonitorAgentsCount** | Pointer to **int32** | Number of agents that can perform monitoring jobs | [optional] +**Agents** | Pointer to [**[]ModelsAgentsAgentPoolAgent**](ModelsAgentsAgentPoolAgent.md) | List of the agents assigned to the pool | [optional] + +## Methods + +### NewModelsAgentsAgentPool + +`func NewModelsAgentsAgentPool(name string, ) *ModelsAgentsAgentPool` + +NewModelsAgentsAgentPool instantiates a new ModelsAgentsAgentPool object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsAgentsAgentPoolWithDefaults + +`func NewModelsAgentsAgentPoolWithDefaults() *ModelsAgentsAgentPool` + +NewModelsAgentsAgentPoolWithDefaults instantiates a new ModelsAgentsAgentPool object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAgentPoolId + +`func (o *ModelsAgentsAgentPool) GetAgentPoolId() string` + +GetAgentPoolId returns the AgentPoolId field if non-nil, zero value otherwise. + +### GetAgentPoolIdOk + +`func (o *ModelsAgentsAgentPool) GetAgentPoolIdOk() (*string, bool)` + +GetAgentPoolIdOk returns a tuple with the AgentPoolId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentPoolId + +`func (o *ModelsAgentsAgentPool) SetAgentPoolId(v string)` + +SetAgentPoolId sets AgentPoolId field to given value. + +### HasAgentPoolId + +`func (o *ModelsAgentsAgentPool) HasAgentPoolId() bool` + +HasAgentPoolId returns a boolean if a field has been set. + +### GetName + +`func (o *ModelsAgentsAgentPool) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ModelsAgentsAgentPool) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ModelsAgentsAgentPool) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDiscoverAgentsCount + +`func (o *ModelsAgentsAgentPool) GetDiscoverAgentsCount() int32` + +GetDiscoverAgentsCount returns the DiscoverAgentsCount field if non-nil, zero value otherwise. + +### GetDiscoverAgentsCountOk + +`func (o *ModelsAgentsAgentPool) GetDiscoverAgentsCountOk() (*int32, bool)` + +GetDiscoverAgentsCountOk returns a tuple with the DiscoverAgentsCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiscoverAgentsCount + +`func (o *ModelsAgentsAgentPool) SetDiscoverAgentsCount(v int32)` + +SetDiscoverAgentsCount sets DiscoverAgentsCount field to given value. + +### HasDiscoverAgentsCount + +`func (o *ModelsAgentsAgentPool) HasDiscoverAgentsCount() bool` + +HasDiscoverAgentsCount returns a boolean if a field has been set. + +### GetMonitorAgentsCount + +`func (o *ModelsAgentsAgentPool) GetMonitorAgentsCount() int32` + +GetMonitorAgentsCount returns the MonitorAgentsCount field if non-nil, zero value otherwise. + +### GetMonitorAgentsCountOk + +`func (o *ModelsAgentsAgentPool) GetMonitorAgentsCountOk() (*int32, bool)` + +GetMonitorAgentsCountOk returns a tuple with the MonitorAgentsCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonitorAgentsCount + +`func (o *ModelsAgentsAgentPool) SetMonitorAgentsCount(v int32)` + +SetMonitorAgentsCount sets MonitorAgentsCount field to given value. + +### HasMonitorAgentsCount + +`func (o *ModelsAgentsAgentPool) HasMonitorAgentsCount() bool` + +HasMonitorAgentsCount returns a boolean if a field has been set. + +### GetAgents + +`func (o *ModelsAgentsAgentPool) GetAgents() []ModelsAgentsAgentPoolAgent` + +GetAgents returns the Agents field if non-nil, zero value otherwise. + +### GetAgentsOk + +`func (o *ModelsAgentsAgentPool) GetAgentsOk() (*[]ModelsAgentsAgentPoolAgent, bool)` + +GetAgentsOk returns a tuple with the Agents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgents + +`func (o *ModelsAgentsAgentPool) SetAgents(v []ModelsAgentsAgentPoolAgent)` + +SetAgents sets Agents field to given value. + +### HasAgents + +`func (o *ModelsAgentsAgentPool) HasAgents() bool` + +HasAgents returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsAgentsAgentPoolAgent.md b/v1/docs/ModelsAgentsAgentPoolAgent.md new file mode 100644 index 0000000..fa9d7d6 --- /dev/null +++ b/v1/docs/ModelsAgentsAgentPoolAgent.md @@ -0,0 +1,212 @@ +# ModelsAgentsAgentPoolAgent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AgentId** | Pointer to **string** | | [optional] +**EnableDiscover** | Pointer to **bool** | | [optional] +**EnableMonitor** | Pointer to **bool** | | [optional] +**Version** | Pointer to **string** | | [optional] +**AllowsDiscover** | Pointer to **bool** | | [optional] +**AllowsMonitor** | Pointer to **bool** | | [optional] +**ClientMachine** | Pointer to **string** | | [optional] + +## Methods + +### NewModelsAgentsAgentPoolAgent + +`func NewModelsAgentsAgentPoolAgent() *ModelsAgentsAgentPoolAgent` + +NewModelsAgentsAgentPoolAgent instantiates a new ModelsAgentsAgentPoolAgent object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsAgentsAgentPoolAgentWithDefaults + +`func NewModelsAgentsAgentPoolAgentWithDefaults() *ModelsAgentsAgentPoolAgent` + +NewModelsAgentsAgentPoolAgentWithDefaults instantiates a new ModelsAgentsAgentPoolAgent object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAgentId + +`func (o *ModelsAgentsAgentPoolAgent) GetAgentId() string` + +GetAgentId returns the AgentId field if non-nil, zero value otherwise. + +### GetAgentIdOk + +`func (o *ModelsAgentsAgentPoolAgent) GetAgentIdOk() (*string, bool)` + +GetAgentIdOk returns a tuple with the AgentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentId + +`func (o *ModelsAgentsAgentPoolAgent) SetAgentId(v string)` + +SetAgentId sets AgentId field to given value. + +### HasAgentId + +`func (o *ModelsAgentsAgentPoolAgent) HasAgentId() bool` + +HasAgentId returns a boolean if a field has been set. + +### GetEnableDiscover + +`func (o *ModelsAgentsAgentPoolAgent) GetEnableDiscover() bool` + +GetEnableDiscover returns the EnableDiscover field if non-nil, zero value otherwise. + +### GetEnableDiscoverOk + +`func (o *ModelsAgentsAgentPoolAgent) GetEnableDiscoverOk() (*bool, bool)` + +GetEnableDiscoverOk returns a tuple with the EnableDiscover field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnableDiscover + +`func (o *ModelsAgentsAgentPoolAgent) SetEnableDiscover(v bool)` + +SetEnableDiscover sets EnableDiscover field to given value. + +### HasEnableDiscover + +`func (o *ModelsAgentsAgentPoolAgent) HasEnableDiscover() bool` + +HasEnableDiscover returns a boolean if a field has been set. + +### GetEnableMonitor + +`func (o *ModelsAgentsAgentPoolAgent) GetEnableMonitor() bool` + +GetEnableMonitor returns the EnableMonitor field if non-nil, zero value otherwise. + +### GetEnableMonitorOk + +`func (o *ModelsAgentsAgentPoolAgent) GetEnableMonitorOk() (*bool, bool)` + +GetEnableMonitorOk returns a tuple with the EnableMonitor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnableMonitor + +`func (o *ModelsAgentsAgentPoolAgent) SetEnableMonitor(v bool)` + +SetEnableMonitor sets EnableMonitor field to given value. + +### HasEnableMonitor + +`func (o *ModelsAgentsAgentPoolAgent) HasEnableMonitor() bool` + +HasEnableMonitor returns a boolean if a field has been set. + +### GetVersion + +`func (o *ModelsAgentsAgentPoolAgent) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *ModelsAgentsAgentPoolAgent) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *ModelsAgentsAgentPoolAgent) SetVersion(v string)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *ModelsAgentsAgentPoolAgent) HasVersion() bool` + +HasVersion returns a boolean if a field has been set. + +### GetAllowsDiscover + +`func (o *ModelsAgentsAgentPoolAgent) GetAllowsDiscover() bool` + +GetAllowsDiscover returns the AllowsDiscover field if non-nil, zero value otherwise. + +### GetAllowsDiscoverOk + +`func (o *ModelsAgentsAgentPoolAgent) GetAllowsDiscoverOk() (*bool, bool)` + +GetAllowsDiscoverOk returns a tuple with the AllowsDiscover field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowsDiscover + +`func (o *ModelsAgentsAgentPoolAgent) SetAllowsDiscover(v bool)` + +SetAllowsDiscover sets AllowsDiscover field to given value. + +### HasAllowsDiscover + +`func (o *ModelsAgentsAgentPoolAgent) HasAllowsDiscover() bool` + +HasAllowsDiscover returns a boolean if a field has been set. + +### GetAllowsMonitor + +`func (o *ModelsAgentsAgentPoolAgent) GetAllowsMonitor() bool` + +GetAllowsMonitor returns the AllowsMonitor field if non-nil, zero value otherwise. + +### GetAllowsMonitorOk + +`func (o *ModelsAgentsAgentPoolAgent) GetAllowsMonitorOk() (*bool, bool)` + +GetAllowsMonitorOk returns a tuple with the AllowsMonitor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowsMonitor + +`func (o *ModelsAgentsAgentPoolAgent) SetAllowsMonitor(v bool)` + +SetAllowsMonitor sets AllowsMonitor field to given value. + +### HasAllowsMonitor + +`func (o *ModelsAgentsAgentPoolAgent) HasAllowsMonitor() bool` + +HasAllowsMonitor returns a boolean if a field has been set. + +### GetClientMachine + +`func (o *ModelsAgentsAgentPoolAgent) GetClientMachine() string` + +GetClientMachine returns the ClientMachine field if non-nil, zero value otherwise. + +### GetClientMachineOk + +`func (o *ModelsAgentsAgentPoolAgent) GetClientMachineOk() (*string, bool)` + +GetClientMachineOk returns a tuple with the ClientMachine field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientMachine + +`func (o *ModelsAgentsAgentPoolAgent) SetClientMachine(v string)` + +SetClientMachine sets ClientMachine field to given value. + +### HasClientMachine + +`func (o *ModelsAgentsAgentPoolAgent) HasClientMachine() bool` + +HasClientMachine returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsCRLRequestModel.md b/v1/docs/ModelsCRLRequestModel.md new file mode 100644 index 0000000..3962fe9 --- /dev/null +++ b/v1/docs/ModelsCRLRequestModel.md @@ -0,0 +1,77 @@ +# ModelsCRLRequestModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CertificateAuthorityLogicalName** | **string** | | +**CertificateAuthorityHostName** | Pointer to **string** | | [optional] + +## Methods + +### NewModelsCRLRequestModel + +`func NewModelsCRLRequestModel(certificateAuthorityLogicalName string, ) *ModelsCRLRequestModel` + +NewModelsCRLRequestModel instantiates a new ModelsCRLRequestModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsCRLRequestModelWithDefaults + +`func NewModelsCRLRequestModelWithDefaults() *ModelsCRLRequestModel` + +NewModelsCRLRequestModelWithDefaults instantiates a new ModelsCRLRequestModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCertificateAuthorityLogicalName + +`func (o *ModelsCRLRequestModel) GetCertificateAuthorityLogicalName() string` + +GetCertificateAuthorityLogicalName returns the CertificateAuthorityLogicalName field if non-nil, zero value otherwise. + +### GetCertificateAuthorityLogicalNameOk + +`func (o *ModelsCRLRequestModel) GetCertificateAuthorityLogicalNameOk() (*string, bool)` + +GetCertificateAuthorityLogicalNameOk returns a tuple with the CertificateAuthorityLogicalName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateAuthorityLogicalName + +`func (o *ModelsCRLRequestModel) SetCertificateAuthorityLogicalName(v string)` + +SetCertificateAuthorityLogicalName sets CertificateAuthorityLogicalName field to given value. + + +### GetCertificateAuthorityHostName + +`func (o *ModelsCRLRequestModel) GetCertificateAuthorityHostName() string` + +GetCertificateAuthorityHostName returns the CertificateAuthorityHostName field if non-nil, zero value otherwise. + +### GetCertificateAuthorityHostNameOk + +`func (o *ModelsCRLRequestModel) GetCertificateAuthorityHostNameOk() (*string, bool)` + +GetCertificateAuthorityHostNameOk returns a tuple with the CertificateAuthorityHostName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateAuthorityHostName + +`func (o *ModelsCRLRequestModel) SetCertificateAuthorityHostName(v string)` + +SetCertificateAuthorityHostName sets CertificateAuthorityHostName field to given value. + +### HasCertificateAuthorityHostName + +`func (o *ModelsCRLRequestModel) HasCertificateAuthorityHostName() bool` + +HasCertificateAuthorityHostName returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsCSRContents.md b/v1/docs/ModelsCSRContents.md new file mode 100644 index 0000000..ad4ec15 --- /dev/null +++ b/v1/docs/ModelsCSRContents.md @@ -0,0 +1,51 @@ +# ModelsCSRContents + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CSR** | **string** | | + +## Methods + +### NewModelsCSRContents + +`func NewModelsCSRContents(cSR string, ) *ModelsCSRContents` + +NewModelsCSRContents instantiates a new ModelsCSRContents object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsCSRContentsWithDefaults + +`func NewModelsCSRContentsWithDefaults() *ModelsCSRContents` + +NewModelsCSRContentsWithDefaults instantiates a new ModelsCSRContents object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCSR + +`func (o *ModelsCSRContents) GetCSR() string` + +GetCSR returns the CSR field if non-nil, zero value otherwise. + +### GetCSROk + +`func (o *ModelsCSRContents) GetCSROk() (*string, bool)` + +GetCSROk returns a tuple with the CSR field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCSR + +`func (o *ModelsCSRContents) SetCSR(v string)` + +SetCSR sets CSR field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsCSRGenerationResponseModel.md b/v1/docs/ModelsCSRGenerationResponseModel.md new file mode 100644 index 0000000..2fa6e3e --- /dev/null +++ b/v1/docs/ModelsCSRGenerationResponseModel.md @@ -0,0 +1,82 @@ +# ModelsCSRGenerationResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CSRFilePath** | Pointer to **string** | | [optional] +**CSRText** | Pointer to **string** | | [optional] + +## Methods + +### NewModelsCSRGenerationResponseModel + +`func NewModelsCSRGenerationResponseModel() *ModelsCSRGenerationResponseModel` + +NewModelsCSRGenerationResponseModel instantiates a new ModelsCSRGenerationResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsCSRGenerationResponseModelWithDefaults + +`func NewModelsCSRGenerationResponseModelWithDefaults() *ModelsCSRGenerationResponseModel` + +NewModelsCSRGenerationResponseModelWithDefaults instantiates a new ModelsCSRGenerationResponseModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCSRFilePath + +`func (o *ModelsCSRGenerationResponseModel) GetCSRFilePath() string` + +GetCSRFilePath returns the CSRFilePath field if non-nil, zero value otherwise. + +### GetCSRFilePathOk + +`func (o *ModelsCSRGenerationResponseModel) GetCSRFilePathOk() (*string, bool)` + +GetCSRFilePathOk returns a tuple with the CSRFilePath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCSRFilePath + +`func (o *ModelsCSRGenerationResponseModel) SetCSRFilePath(v string)` + +SetCSRFilePath sets CSRFilePath field to given value. + +### HasCSRFilePath + +`func (o *ModelsCSRGenerationResponseModel) HasCSRFilePath() bool` + +HasCSRFilePath returns a boolean if a field has been set. + +### GetCSRText + +`func (o *ModelsCSRGenerationResponseModel) GetCSRText() string` + +GetCSRText returns the CSRText field if non-nil, zero value otherwise. + +### GetCSRTextOk + +`func (o *ModelsCSRGenerationResponseModel) GetCSRTextOk() (*string, bool)` + +GetCSRTextOk returns a tuple with the CSRText field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCSRText + +`func (o *ModelsCSRGenerationResponseModel) SetCSRText(v string)` + +SetCSRText sets CSRText field to given value. + +### HasCSRText + +`func (o *ModelsCSRGenerationResponseModel) HasCSRText() bool` + +HasCSRText returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsCertStoreLocationsCertificateLocationsGroup.md b/v1/docs/ModelsCertStoreLocationsCertificateLocationsGroup.md new file mode 100644 index 0000000..396df29 --- /dev/null +++ b/v1/docs/ModelsCertStoreLocationsCertificateLocationsGroup.md @@ -0,0 +1,134 @@ +# ModelsCertStoreLocationsCertificateLocationsGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreType** | Pointer to **string** | | [optional] [readonly] +**StoreTypeId** | Pointer to **int32** | | [optional] [readonly] +**StoreCount** | Pointer to **int32** | | [optional] [readonly] +**Locations** | Pointer to [**[]ModelsCertStoreLocationsCertificateStoreLocationsDetail**](ModelsCertStoreLocationsCertificateStoreLocationsDetail.md) | | [optional] + +## Methods + +### NewModelsCertStoreLocationsCertificateLocationsGroup + +`func NewModelsCertStoreLocationsCertificateLocationsGroup() *ModelsCertStoreLocationsCertificateLocationsGroup` + +NewModelsCertStoreLocationsCertificateLocationsGroup instantiates a new ModelsCertStoreLocationsCertificateLocationsGroup object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsCertStoreLocationsCertificateLocationsGroupWithDefaults + +`func NewModelsCertStoreLocationsCertificateLocationsGroupWithDefaults() *ModelsCertStoreLocationsCertificateLocationsGroup` + +NewModelsCertStoreLocationsCertificateLocationsGroupWithDefaults instantiates a new ModelsCertStoreLocationsCertificateLocationsGroup object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStoreType + +`func (o *ModelsCertStoreLocationsCertificateLocationsGroup) GetStoreType() string` + +GetStoreType returns the StoreType field if non-nil, zero value otherwise. + +### GetStoreTypeOk + +`func (o *ModelsCertStoreLocationsCertificateLocationsGroup) GetStoreTypeOk() (*string, bool)` + +GetStoreTypeOk returns a tuple with the StoreType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStoreType + +`func (o *ModelsCertStoreLocationsCertificateLocationsGroup) SetStoreType(v string)` + +SetStoreType sets StoreType field to given value. + +### HasStoreType + +`func (o *ModelsCertStoreLocationsCertificateLocationsGroup) HasStoreType() bool` + +HasStoreType returns a boolean if a field has been set. + +### GetStoreTypeId + +`func (o *ModelsCertStoreLocationsCertificateLocationsGroup) GetStoreTypeId() int32` + +GetStoreTypeId returns the StoreTypeId field if non-nil, zero value otherwise. + +### GetStoreTypeIdOk + +`func (o *ModelsCertStoreLocationsCertificateLocationsGroup) GetStoreTypeIdOk() (*int32, bool)` + +GetStoreTypeIdOk returns a tuple with the StoreTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStoreTypeId + +`func (o *ModelsCertStoreLocationsCertificateLocationsGroup) SetStoreTypeId(v int32)` + +SetStoreTypeId sets StoreTypeId field to given value. + +### HasStoreTypeId + +`func (o *ModelsCertStoreLocationsCertificateLocationsGroup) HasStoreTypeId() bool` + +HasStoreTypeId returns a boolean if a field has been set. + +### GetStoreCount + +`func (o *ModelsCertStoreLocationsCertificateLocationsGroup) GetStoreCount() int32` + +GetStoreCount returns the StoreCount field if non-nil, zero value otherwise. + +### GetStoreCountOk + +`func (o *ModelsCertStoreLocationsCertificateLocationsGroup) GetStoreCountOk() (*int32, bool)` + +GetStoreCountOk returns a tuple with the StoreCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStoreCount + +`func (o *ModelsCertStoreLocationsCertificateLocationsGroup) SetStoreCount(v int32)` + +SetStoreCount sets StoreCount field to given value. + +### HasStoreCount + +`func (o *ModelsCertStoreLocationsCertificateLocationsGroup) HasStoreCount() bool` + +HasStoreCount returns a boolean if a field has been set. + +### GetLocations + +`func (o *ModelsCertStoreLocationsCertificateLocationsGroup) GetLocations() []ModelsCertStoreLocationsCertificateStoreLocationsDetail` + +GetLocations returns the Locations field if non-nil, zero value otherwise. + +### GetLocationsOk + +`func (o *ModelsCertStoreLocationsCertificateLocationsGroup) GetLocationsOk() (*[]ModelsCertStoreLocationsCertificateStoreLocationsDetail, bool)` + +GetLocationsOk returns a tuple with the Locations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocations + +`func (o *ModelsCertStoreLocationsCertificateLocationsGroup) SetLocations(v []ModelsCertStoreLocationsCertificateStoreLocationsDetail)` + +SetLocations sets Locations field to given value. + +### HasLocations + +`func (o *ModelsCertStoreLocationsCertificateLocationsGroup) HasLocations() bool` + +HasLocations returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsCertStoreLocationsCertificateStoreLocationsDetail.md b/v1/docs/ModelsCertStoreLocationsCertificateStoreLocationsDetail.md new file mode 100644 index 0000000..ce2bf7e --- /dev/null +++ b/v1/docs/ModelsCertStoreLocationsCertificateStoreLocationsDetail.md @@ -0,0 +1,264 @@ +# ModelsCertStoreLocationsCertificateStoreLocationsDetail + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreId** | Pointer to **string** | | [optional] +**StoreTypeId** | Pointer to **int32** | | [optional] +**ClientMachine** | Pointer to **string** | | [optional] +**StorePath** | Pointer to **string** | | [optional] +**AgentPool** | Pointer to **string** | | [optional] +**Alias** | Pointer to **string** | | [optional] +**IPAddress** | Pointer to **string** | | [optional] +**Port** | Pointer to **int32** | | [optional] +**NetworkName** | Pointer to **string** | | [optional] + +## Methods + +### NewModelsCertStoreLocationsCertificateStoreLocationsDetail + +`func NewModelsCertStoreLocationsCertificateStoreLocationsDetail() *ModelsCertStoreLocationsCertificateStoreLocationsDetail` + +NewModelsCertStoreLocationsCertificateStoreLocationsDetail instantiates a new ModelsCertStoreLocationsCertificateStoreLocationsDetail object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsCertStoreLocationsCertificateStoreLocationsDetailWithDefaults + +`func NewModelsCertStoreLocationsCertificateStoreLocationsDetailWithDefaults() *ModelsCertStoreLocationsCertificateStoreLocationsDetail` + +NewModelsCertStoreLocationsCertificateStoreLocationsDetailWithDefaults instantiates a new ModelsCertStoreLocationsCertificateStoreLocationsDetail object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStoreId + +`func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) GetStoreId() string` + +GetStoreId returns the StoreId field if non-nil, zero value otherwise. + +### GetStoreIdOk + +`func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) GetStoreIdOk() (*string, bool)` + +GetStoreIdOk returns a tuple with the StoreId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStoreId + +`func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) SetStoreId(v string)` + +SetStoreId sets StoreId field to given value. + +### HasStoreId + +`func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) HasStoreId() bool` + +HasStoreId returns a boolean if a field has been set. + +### GetStoreTypeId + +`func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) GetStoreTypeId() int32` + +GetStoreTypeId returns the StoreTypeId field if non-nil, zero value otherwise. + +### GetStoreTypeIdOk + +`func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) GetStoreTypeIdOk() (*int32, bool)` + +GetStoreTypeIdOk returns a tuple with the StoreTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStoreTypeId + +`func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) SetStoreTypeId(v int32)` + +SetStoreTypeId sets StoreTypeId field to given value. + +### HasStoreTypeId + +`func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) HasStoreTypeId() bool` + +HasStoreTypeId returns a boolean if a field has been set. + +### GetClientMachine + +`func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) GetClientMachine() string` + +GetClientMachine returns the ClientMachine field if non-nil, zero value otherwise. + +### GetClientMachineOk + +`func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) GetClientMachineOk() (*string, bool)` + +GetClientMachineOk returns a tuple with the ClientMachine field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientMachine + +`func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) SetClientMachine(v string)` + +SetClientMachine sets ClientMachine field to given value. + +### HasClientMachine + +`func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) HasClientMachine() bool` + +HasClientMachine returns a boolean if a field has been set. + +### GetStorePath + +`func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) GetStorePath() string` + +GetStorePath returns the StorePath field if non-nil, zero value otherwise. + +### GetStorePathOk + +`func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) GetStorePathOk() (*string, bool)` + +GetStorePathOk returns a tuple with the StorePath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStorePath + +`func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) SetStorePath(v string)` + +SetStorePath sets StorePath field to given value. + +### HasStorePath + +`func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) HasStorePath() bool` + +HasStorePath returns a boolean if a field has been set. + +### GetAgentPool + +`func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) GetAgentPool() string` + +GetAgentPool returns the AgentPool field if non-nil, zero value otherwise. + +### GetAgentPoolOk + +`func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) GetAgentPoolOk() (*string, bool)` + +GetAgentPoolOk returns a tuple with the AgentPool field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentPool + +`func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) SetAgentPool(v string)` + +SetAgentPool sets AgentPool field to given value. + +### HasAgentPool + +`func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) HasAgentPool() bool` + +HasAgentPool returns a boolean if a field has been set. + +### GetAlias + +`func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) GetAlias() string` + +GetAlias returns the Alias field if non-nil, zero value otherwise. + +### GetAliasOk + +`func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) GetAliasOk() (*string, bool)` + +GetAliasOk returns a tuple with the Alias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlias + +`func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) SetAlias(v string)` + +SetAlias sets Alias field to given value. + +### HasAlias + +`func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) HasAlias() bool` + +HasAlias returns a boolean if a field has been set. + +### GetIPAddress + +`func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) GetIPAddress() string` + +GetIPAddress returns the IPAddress field if non-nil, zero value otherwise. + +### GetIPAddressOk + +`func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) GetIPAddressOk() (*string, bool)` + +GetIPAddressOk returns a tuple with the IPAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIPAddress + +`func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) SetIPAddress(v string)` + +SetIPAddress sets IPAddress field to given value. + +### HasIPAddress + +`func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) HasIPAddress() bool` + +HasIPAddress returns a boolean if a field has been set. + +### GetPort + +`func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) GetPort() int32` + +GetPort returns the Port field if non-nil, zero value otherwise. + +### GetPortOk + +`func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) GetPortOk() (*int32, bool)` + +GetPortOk returns a tuple with the Port field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPort + +`func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) SetPort(v int32)` + +SetPort sets Port field to given value. + +### HasPort + +`func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) HasPort() bool` + +HasPort returns a boolean if a field has been set. + +### GetNetworkName + +`func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) GetNetworkName() string` + +GetNetworkName returns the NetworkName field if non-nil, zero value otherwise. + +### GetNetworkNameOk + +`func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) GetNetworkNameOk() (*string, bool)` + +GetNetworkNameOk returns a tuple with the NetworkName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNetworkName + +`func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) SetNetworkName(v string)` + +SetNetworkName sets NetworkName field to given value. + +### HasNetworkName + +`func (o *ModelsCertStoreLocationsCertificateStoreLocationsDetail) HasNetworkName() bool` + +HasNetworkName returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsCertStoreNewPasswordRequest.md b/v1/docs/ModelsCertStoreNewPasswordRequest.md new file mode 100644 index 0000000..4a8dd63 --- /dev/null +++ b/v1/docs/ModelsCertStoreNewPasswordRequest.md @@ -0,0 +1,72 @@ +# ModelsCertStoreNewPasswordRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CertStoreId** | **string** | | +**NewPassword** | **map[string]interface{}** | | + +## Methods + +### NewModelsCertStoreNewPasswordRequest + +`func NewModelsCertStoreNewPasswordRequest(certStoreId string, newPassword map[string]interface{}, ) *ModelsCertStoreNewPasswordRequest` + +NewModelsCertStoreNewPasswordRequest instantiates a new ModelsCertStoreNewPasswordRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsCertStoreNewPasswordRequestWithDefaults + +`func NewModelsCertStoreNewPasswordRequestWithDefaults() *ModelsCertStoreNewPasswordRequest` + +NewModelsCertStoreNewPasswordRequestWithDefaults instantiates a new ModelsCertStoreNewPasswordRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCertStoreId + +`func (o *ModelsCertStoreNewPasswordRequest) GetCertStoreId() string` + +GetCertStoreId returns the CertStoreId field if non-nil, zero value otherwise. + +### GetCertStoreIdOk + +`func (o *ModelsCertStoreNewPasswordRequest) GetCertStoreIdOk() (*string, bool)` + +GetCertStoreIdOk returns a tuple with the CertStoreId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertStoreId + +`func (o *ModelsCertStoreNewPasswordRequest) SetCertStoreId(v string)` + +SetCertStoreId sets CertStoreId field to given value. + + +### GetNewPassword + +`func (o *ModelsCertStoreNewPasswordRequest) GetNewPassword() map[string]interface{}` + +GetNewPassword returns the NewPassword field if non-nil, zero value otherwise. + +### GetNewPasswordOk + +`func (o *ModelsCertStoreNewPasswordRequest) GetNewPasswordOk() (*map[string]interface{}, bool)` + +GetNewPasswordOk returns a tuple with the NewPassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNewPassword + +`func (o *ModelsCertStoreNewPasswordRequest) SetNewPassword(v map[string]interface{})` + +SetNewPassword sets NewPassword field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsCertStoreTypePasswordOptions.md b/v1/docs/ModelsCertStoreTypePasswordOptions.md new file mode 100644 index 0000000..920ec90 --- /dev/null +++ b/v1/docs/ModelsCertStoreTypePasswordOptions.md @@ -0,0 +1,108 @@ +# ModelsCertStoreTypePasswordOptions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EntrySupported** | Pointer to **bool** | | [optional] +**StoreRequired** | Pointer to **bool** | | [optional] +**Style** | Pointer to **string** | | [optional] + +## Methods + +### NewModelsCertStoreTypePasswordOptions + +`func NewModelsCertStoreTypePasswordOptions() *ModelsCertStoreTypePasswordOptions` + +NewModelsCertStoreTypePasswordOptions instantiates a new ModelsCertStoreTypePasswordOptions object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsCertStoreTypePasswordOptionsWithDefaults + +`func NewModelsCertStoreTypePasswordOptionsWithDefaults() *ModelsCertStoreTypePasswordOptions` + +NewModelsCertStoreTypePasswordOptionsWithDefaults instantiates a new ModelsCertStoreTypePasswordOptions object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEntrySupported + +`func (o *ModelsCertStoreTypePasswordOptions) GetEntrySupported() bool` + +GetEntrySupported returns the EntrySupported field if non-nil, zero value otherwise. + +### GetEntrySupportedOk + +`func (o *ModelsCertStoreTypePasswordOptions) GetEntrySupportedOk() (*bool, bool)` + +GetEntrySupportedOk returns a tuple with the EntrySupported field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEntrySupported + +`func (o *ModelsCertStoreTypePasswordOptions) SetEntrySupported(v bool)` + +SetEntrySupported sets EntrySupported field to given value. + +### HasEntrySupported + +`func (o *ModelsCertStoreTypePasswordOptions) HasEntrySupported() bool` + +HasEntrySupported returns a boolean if a field has been set. + +### GetStoreRequired + +`func (o *ModelsCertStoreTypePasswordOptions) GetStoreRequired() bool` + +GetStoreRequired returns the StoreRequired field if non-nil, zero value otherwise. + +### GetStoreRequiredOk + +`func (o *ModelsCertStoreTypePasswordOptions) GetStoreRequiredOk() (*bool, bool)` + +GetStoreRequiredOk returns a tuple with the StoreRequired field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStoreRequired + +`func (o *ModelsCertStoreTypePasswordOptions) SetStoreRequired(v bool)` + +SetStoreRequired sets StoreRequired field to given value. + +### HasStoreRequired + +`func (o *ModelsCertStoreTypePasswordOptions) HasStoreRequired() bool` + +HasStoreRequired returns a boolean if a field has been set. + +### GetStyle + +`func (o *ModelsCertStoreTypePasswordOptions) GetStyle() string` + +GetStyle returns the Style field if non-nil, zero value otherwise. + +### GetStyleOk + +`func (o *ModelsCertStoreTypePasswordOptions) GetStyleOk() (*string, bool)` + +GetStyleOk returns a tuple with the Style field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStyle + +`func (o *ModelsCertStoreTypePasswordOptions) SetStyle(v string)` + +SetStyle sets Style field to given value. + +### HasStyle + +`func (o *ModelsCertStoreTypePasswordOptions) HasStyle() bool` + +HasStyle returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsCertStoreTypeSupportedOperations.md b/v1/docs/ModelsCertStoreTypeSupportedOperations.md new file mode 100644 index 0000000..3b4119f --- /dev/null +++ b/v1/docs/ModelsCertStoreTypeSupportedOperations.md @@ -0,0 +1,160 @@ +# ModelsCertStoreTypeSupportedOperations + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Add** | Pointer to **bool** | | [optional] +**Create** | Pointer to **bool** | | [optional] +**Discovery** | Pointer to **bool** | | [optional] +**Enrollment** | Pointer to **bool** | | [optional] +**Remove** | Pointer to **bool** | | [optional] + +## Methods + +### NewModelsCertStoreTypeSupportedOperations + +`func NewModelsCertStoreTypeSupportedOperations() *ModelsCertStoreTypeSupportedOperations` + +NewModelsCertStoreTypeSupportedOperations instantiates a new ModelsCertStoreTypeSupportedOperations object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsCertStoreTypeSupportedOperationsWithDefaults + +`func NewModelsCertStoreTypeSupportedOperationsWithDefaults() *ModelsCertStoreTypeSupportedOperations` + +NewModelsCertStoreTypeSupportedOperationsWithDefaults instantiates a new ModelsCertStoreTypeSupportedOperations object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAdd + +`func (o *ModelsCertStoreTypeSupportedOperations) GetAdd() bool` + +GetAdd returns the Add field if non-nil, zero value otherwise. + +### GetAddOk + +`func (o *ModelsCertStoreTypeSupportedOperations) GetAddOk() (*bool, bool)` + +GetAddOk returns a tuple with the Add field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdd + +`func (o *ModelsCertStoreTypeSupportedOperations) SetAdd(v bool)` + +SetAdd sets Add field to given value. + +### HasAdd + +`func (o *ModelsCertStoreTypeSupportedOperations) HasAdd() bool` + +HasAdd returns a boolean if a field has been set. + +### GetCreate + +`func (o *ModelsCertStoreTypeSupportedOperations) GetCreate() bool` + +GetCreate returns the Create field if non-nil, zero value otherwise. + +### GetCreateOk + +`func (o *ModelsCertStoreTypeSupportedOperations) GetCreateOk() (*bool, bool)` + +GetCreateOk returns a tuple with the Create field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreate + +`func (o *ModelsCertStoreTypeSupportedOperations) SetCreate(v bool)` + +SetCreate sets Create field to given value. + +### HasCreate + +`func (o *ModelsCertStoreTypeSupportedOperations) HasCreate() bool` + +HasCreate returns a boolean if a field has been set. + +### GetDiscovery + +`func (o *ModelsCertStoreTypeSupportedOperations) GetDiscovery() bool` + +GetDiscovery returns the Discovery field if non-nil, zero value otherwise. + +### GetDiscoveryOk + +`func (o *ModelsCertStoreTypeSupportedOperations) GetDiscoveryOk() (*bool, bool)` + +GetDiscoveryOk returns a tuple with the Discovery field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiscovery + +`func (o *ModelsCertStoreTypeSupportedOperations) SetDiscovery(v bool)` + +SetDiscovery sets Discovery field to given value. + +### HasDiscovery + +`func (o *ModelsCertStoreTypeSupportedOperations) HasDiscovery() bool` + +HasDiscovery returns a boolean if a field has been set. + +### GetEnrollment + +`func (o *ModelsCertStoreTypeSupportedOperations) GetEnrollment() bool` + +GetEnrollment returns the Enrollment field if non-nil, zero value otherwise. + +### GetEnrollmentOk + +`func (o *ModelsCertStoreTypeSupportedOperations) GetEnrollmentOk() (*bool, bool)` + +GetEnrollmentOk returns a tuple with the Enrollment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnrollment + +`func (o *ModelsCertStoreTypeSupportedOperations) SetEnrollment(v bool)` + +SetEnrollment sets Enrollment field to given value. + +### HasEnrollment + +`func (o *ModelsCertStoreTypeSupportedOperations) HasEnrollment() bool` + +HasEnrollment returns a boolean if a field has been set. + +### GetRemove + +`func (o *ModelsCertStoreTypeSupportedOperations) GetRemove() bool` + +GetRemove returns the Remove field if non-nil, zero value otherwise. + +### GetRemoveOk + +`func (o *ModelsCertStoreTypeSupportedOperations) GetRemoveOk() (*bool, bool)` + +GetRemoveOk returns a tuple with the Remove field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRemove + +`func (o *ModelsCertStoreTypeSupportedOperations) SetRemove(v bool)` + +SetRemove sets Remove field to given value. + +### HasRemove + +`func (o *ModelsCertStoreTypeSupportedOperations) HasRemove() bool` + +HasRemove returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsCertStoresSchedule.md b/v1/docs/ModelsCertStoresSchedule.md new file mode 100644 index 0000000..e09ba10 --- /dev/null +++ b/v1/docs/ModelsCertStoresSchedule.md @@ -0,0 +1,77 @@ +# ModelsCertStoresSchedule + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreIds** | **[]string** | | +**Schedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] + +## Methods + +### NewModelsCertStoresSchedule + +`func NewModelsCertStoresSchedule(storeIds []string, ) *ModelsCertStoresSchedule` + +NewModelsCertStoresSchedule instantiates a new ModelsCertStoresSchedule object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsCertStoresScheduleWithDefaults + +`func NewModelsCertStoresScheduleWithDefaults() *ModelsCertStoresSchedule` + +NewModelsCertStoresScheduleWithDefaults instantiates a new ModelsCertStoresSchedule object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStoreIds + +`func (o *ModelsCertStoresSchedule) GetStoreIds() []string` + +GetStoreIds returns the StoreIds field if non-nil, zero value otherwise. + +### GetStoreIdsOk + +`func (o *ModelsCertStoresSchedule) GetStoreIdsOk() (*[]string, bool)` + +GetStoreIdsOk returns a tuple with the StoreIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStoreIds + +`func (o *ModelsCertStoresSchedule) SetStoreIds(v []string)` + +SetStoreIds sets StoreIds field to given value. + + +### GetSchedule + +`func (o *ModelsCertStoresSchedule) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetSchedule returns the Schedule field if non-nil, zero value otherwise. + +### GetScheduleOk + +`func (o *ModelsCertStoresSchedule) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetScheduleOk returns a tuple with the Schedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSchedule + +`func (o *ModelsCertStoresSchedule) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetSchedule sets Schedule field to given value. + +### HasSchedule + +`func (o *ModelsCertStoresSchedule) HasSchedule() bool` + +HasSchedule returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate.md b/v1/docs/ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate.md new file mode 100644 index 0000000..b345c25 --- /dev/null +++ b/v1/docs/ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate.md @@ -0,0 +1,154 @@ +# ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IssuedDN** | Pointer to **NullableString** | | [optional] +**IssuerDN** | Pointer to **NullableString** | | [optional] +**Thumbprint** | Pointer to **string** | | [optional] +**ExpirationDate** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate + +`func NewModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate() *ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate` + +NewModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate instantiates a new ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsCertificateAuthoritiesCertificateAuthorityAuthCertificateWithDefaults + +`func NewModelsCertificateAuthoritiesCertificateAuthorityAuthCertificateWithDefaults() *ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate` + +NewModelsCertificateAuthoritiesCertificateAuthorityAuthCertificateWithDefaults instantiates a new ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetIssuedDN + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) GetIssuedDN() string` + +GetIssuedDN returns the IssuedDN field if non-nil, zero value otherwise. + +### GetIssuedDNOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) GetIssuedDNOk() (*string, bool)` + +GetIssuedDNOk returns a tuple with the IssuedDN field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuedDN + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) SetIssuedDN(v string)` + +SetIssuedDN sets IssuedDN field to given value. + +### HasIssuedDN + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) HasIssuedDN() bool` + +HasIssuedDN returns a boolean if a field has been set. + +### SetIssuedDNNil + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) SetIssuedDNNil(b bool)` + + SetIssuedDNNil sets the value for IssuedDN to be an explicit nil + +### UnsetIssuedDN +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) UnsetIssuedDN()` + +UnsetIssuedDN ensures that no value is present for IssuedDN, not even an explicit nil +### GetIssuerDN + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) GetIssuerDN() string` + +GetIssuerDN returns the IssuerDN field if non-nil, zero value otherwise. + +### GetIssuerDNOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) GetIssuerDNOk() (*string, bool)` + +GetIssuerDNOk returns a tuple with the IssuerDN field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuerDN + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) SetIssuerDN(v string)` + +SetIssuerDN sets IssuerDN field to given value. + +### HasIssuerDN + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) HasIssuerDN() bool` + +HasIssuerDN returns a boolean if a field has been set. + +### SetIssuerDNNil + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) SetIssuerDNNil(b bool)` + + SetIssuerDNNil sets the value for IssuerDN to be an explicit nil + +### UnsetIssuerDN +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) UnsetIssuerDN()` + +UnsetIssuerDN ensures that no value is present for IssuerDN, not even an explicit nil +### GetThumbprint + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) GetThumbprint() string` + +GetThumbprint returns the Thumbprint field if non-nil, zero value otherwise. + +### GetThumbprintOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) GetThumbprintOk() (*string, bool)` + +GetThumbprintOk returns a tuple with the Thumbprint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThumbprint + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) SetThumbprint(v string)` + +SetThumbprint sets Thumbprint field to given value. + +### HasThumbprint + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) HasThumbprint() bool` + +HasThumbprint returns a boolean if a field has been set. + +### GetExpirationDate + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) GetExpirationDate() time.Time` + +GetExpirationDate returns the ExpirationDate field if non-nil, zero value otherwise. + +### GetExpirationDateOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) GetExpirationDateOk() (*time.Time, bool)` + +GetExpirationDateOk returns a tuple with the ExpirationDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpirationDate + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) SetExpirationDate(v time.Time)` + +SetExpirationDate sets ExpirationDate field to given value. + +### HasExpirationDate + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate) HasExpirationDate() bool` + +HasExpirationDate returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsCertificateAuthoritiesCertificateAuthorityRequest.md b/v1/docs/ModelsCertificateAuthoritiesCertificateAuthorityRequest.md new file mode 100644 index 0000000..f7cf317 --- /dev/null +++ b/v1/docs/ModelsCertificateAuthoritiesCertificateAuthorityRequest.md @@ -0,0 +1,862 @@ +# ModelsCertificateAuthoritiesCertificateAuthorityRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**LogicalName** | Pointer to **string** | | [optional] +**HostName** | Pointer to **string** | | [optional] +**Delegate** | Pointer to **bool** | | [optional] +**DelegateEnrollment** | Pointer to **bool** | | [optional] +**ForestRoot** | Pointer to **string** | | [optional] +**ConfigurationTenant** | Pointer to **string** | | [optional] +**Remote** | Pointer to **bool** | | [optional] +**Agent** | Pointer to **string** | | [optional] +**Standalone** | Pointer to **bool** | | [optional] +**MonitorThresholds** | Pointer to **bool** | | [optional] +**IssuanceMax** | Pointer to **int32** | | [optional] +**IssuanceMin** | Pointer to **int32** | | [optional] +**FailureMax** | Pointer to **int32** | | [optional] +**RFCEnforcement** | Pointer to **bool** | | [optional] +**Properties** | Pointer to **string** | | [optional] +**AllowedEnrollmentTypes** | Pointer to **int32** | | [optional] +**KeyRetention** | Pointer to **int32** | | [optional] +**KeyRetentionDays** | Pointer to **int32** | | [optional] +**ExplicitCredentials** | Pointer to **bool** | | [optional] +**SubscriberTerms** | Pointer to **bool** | | [optional] +**ExplicitUser** | Pointer to **string** | | [optional] +**ExplicitPassword** | Pointer to [**ModelsKeyfactorAPISecret**](ModelsKeyfactorAPISecret.md) | | [optional] +**UseAllowedRequesters** | Pointer to **bool** | | [optional] +**AllowedRequesters** | Pointer to **[]string** | | [optional] +**FullScan** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**IncrementalScan** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**ThresholdCheck** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**AuthCertificatePassword** | Pointer to [**ModelsKeyfactorAPISecret**](ModelsKeyfactorAPISecret.md) | | [optional] +**AuthCertificate** | Pointer to [**ModelsKeyfactorAPISecret**](ModelsKeyfactorAPISecret.md) | | [optional] +**CAType** | Pointer to **int32** | | [optional] +**EnforceUniqueDN** | Pointer to **bool** | | [optional] + +## Methods + +### NewModelsCertificateAuthoritiesCertificateAuthorityRequest + +`func NewModelsCertificateAuthoritiesCertificateAuthorityRequest() *ModelsCertificateAuthoritiesCertificateAuthorityRequest` + +NewModelsCertificateAuthoritiesCertificateAuthorityRequest instantiates a new ModelsCertificateAuthoritiesCertificateAuthorityRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsCertificateAuthoritiesCertificateAuthorityRequestWithDefaults + +`func NewModelsCertificateAuthoritiesCertificateAuthorityRequestWithDefaults() *ModelsCertificateAuthoritiesCertificateAuthorityRequest` + +NewModelsCertificateAuthoritiesCertificateAuthorityRequestWithDefaults instantiates a new ModelsCertificateAuthoritiesCertificateAuthorityRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetLogicalName + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetLogicalName() string` + +GetLogicalName returns the LogicalName field if non-nil, zero value otherwise. + +### GetLogicalNameOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetLogicalNameOk() (*string, bool)` + +GetLogicalNameOk returns a tuple with the LogicalName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogicalName + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetLogicalName(v string)` + +SetLogicalName sets LogicalName field to given value. + +### HasLogicalName + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasLogicalName() bool` + +HasLogicalName returns a boolean if a field has been set. + +### GetHostName + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetHostName() string` + +GetHostName returns the HostName field if non-nil, zero value otherwise. + +### GetHostNameOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetHostNameOk() (*string, bool)` + +GetHostNameOk returns a tuple with the HostName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHostName + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetHostName(v string)` + +SetHostName sets HostName field to given value. + +### HasHostName + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasHostName() bool` + +HasHostName returns a boolean if a field has been set. + +### GetDelegate + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetDelegate() bool` + +GetDelegate returns the Delegate field if non-nil, zero value otherwise. + +### GetDelegateOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetDelegateOk() (*bool, bool)` + +GetDelegateOk returns a tuple with the Delegate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDelegate + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetDelegate(v bool)` + +SetDelegate sets Delegate field to given value. + +### HasDelegate + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasDelegate() bool` + +HasDelegate returns a boolean if a field has been set. + +### GetDelegateEnrollment + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetDelegateEnrollment() bool` + +GetDelegateEnrollment returns the DelegateEnrollment field if non-nil, zero value otherwise. + +### GetDelegateEnrollmentOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetDelegateEnrollmentOk() (*bool, bool)` + +GetDelegateEnrollmentOk returns a tuple with the DelegateEnrollment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDelegateEnrollment + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetDelegateEnrollment(v bool)` + +SetDelegateEnrollment sets DelegateEnrollment field to given value. + +### HasDelegateEnrollment + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasDelegateEnrollment() bool` + +HasDelegateEnrollment returns a boolean if a field has been set. + +### GetForestRoot + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetForestRoot() string` + +GetForestRoot returns the ForestRoot field if non-nil, zero value otherwise. + +### GetForestRootOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetForestRootOk() (*string, bool)` + +GetForestRootOk returns a tuple with the ForestRoot field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetForestRoot + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetForestRoot(v string)` + +SetForestRoot sets ForestRoot field to given value. + +### HasForestRoot + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasForestRoot() bool` + +HasForestRoot returns a boolean if a field has been set. + +### GetConfigurationTenant + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetConfigurationTenant() string` + +GetConfigurationTenant returns the ConfigurationTenant field if non-nil, zero value otherwise. + +### GetConfigurationTenantOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetConfigurationTenantOk() (*string, bool)` + +GetConfigurationTenantOk returns a tuple with the ConfigurationTenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigurationTenant + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetConfigurationTenant(v string)` + +SetConfigurationTenant sets ConfigurationTenant field to given value. + +### HasConfigurationTenant + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasConfigurationTenant() bool` + +HasConfigurationTenant returns a boolean if a field has been set. + +### GetRemote + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetRemote() bool` + +GetRemote returns the Remote field if non-nil, zero value otherwise. + +### GetRemoteOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetRemoteOk() (*bool, bool)` + +GetRemoteOk returns a tuple with the Remote field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRemote + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetRemote(v bool)` + +SetRemote sets Remote field to given value. + +### HasRemote + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasRemote() bool` + +HasRemote returns a boolean if a field has been set. + +### GetAgent + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetAgent() string` + +GetAgent returns the Agent field if non-nil, zero value otherwise. + +### GetAgentOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetAgentOk() (*string, bool)` + +GetAgentOk returns a tuple with the Agent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgent + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetAgent(v string)` + +SetAgent sets Agent field to given value. + +### HasAgent + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasAgent() bool` + +HasAgent returns a boolean if a field has been set. + +### GetStandalone + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetStandalone() bool` + +GetStandalone returns the Standalone field if non-nil, zero value otherwise. + +### GetStandaloneOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetStandaloneOk() (*bool, bool)` + +GetStandaloneOk returns a tuple with the Standalone field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStandalone + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetStandalone(v bool)` + +SetStandalone sets Standalone field to given value. + +### HasStandalone + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasStandalone() bool` + +HasStandalone returns a boolean if a field has been set. + +### GetMonitorThresholds + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetMonitorThresholds() bool` + +GetMonitorThresholds returns the MonitorThresholds field if non-nil, zero value otherwise. + +### GetMonitorThresholdsOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetMonitorThresholdsOk() (*bool, bool)` + +GetMonitorThresholdsOk returns a tuple with the MonitorThresholds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonitorThresholds + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetMonitorThresholds(v bool)` + +SetMonitorThresholds sets MonitorThresholds field to given value. + +### HasMonitorThresholds + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasMonitorThresholds() bool` + +HasMonitorThresholds returns a boolean if a field has been set. + +### GetIssuanceMax + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetIssuanceMax() int32` + +GetIssuanceMax returns the IssuanceMax field if non-nil, zero value otherwise. + +### GetIssuanceMaxOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetIssuanceMaxOk() (*int32, bool)` + +GetIssuanceMaxOk returns a tuple with the IssuanceMax field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuanceMax + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetIssuanceMax(v int32)` + +SetIssuanceMax sets IssuanceMax field to given value. + +### HasIssuanceMax + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasIssuanceMax() bool` + +HasIssuanceMax returns a boolean if a field has been set. + +### GetIssuanceMin + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetIssuanceMin() int32` + +GetIssuanceMin returns the IssuanceMin field if non-nil, zero value otherwise. + +### GetIssuanceMinOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetIssuanceMinOk() (*int32, bool)` + +GetIssuanceMinOk returns a tuple with the IssuanceMin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuanceMin + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetIssuanceMin(v int32)` + +SetIssuanceMin sets IssuanceMin field to given value. + +### HasIssuanceMin + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasIssuanceMin() bool` + +HasIssuanceMin returns a boolean if a field has been set. + +### GetFailureMax + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetFailureMax() int32` + +GetFailureMax returns the FailureMax field if non-nil, zero value otherwise. + +### GetFailureMaxOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetFailureMaxOk() (*int32, bool)` + +GetFailureMaxOk returns a tuple with the FailureMax field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFailureMax + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetFailureMax(v int32)` + +SetFailureMax sets FailureMax field to given value. + +### HasFailureMax + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasFailureMax() bool` + +HasFailureMax returns a boolean if a field has been set. + +### GetRFCEnforcement + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetRFCEnforcement() bool` + +GetRFCEnforcement returns the RFCEnforcement field if non-nil, zero value otherwise. + +### GetRFCEnforcementOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetRFCEnforcementOk() (*bool, bool)` + +GetRFCEnforcementOk returns a tuple with the RFCEnforcement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRFCEnforcement + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetRFCEnforcement(v bool)` + +SetRFCEnforcement sets RFCEnforcement field to given value. + +### HasRFCEnforcement + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasRFCEnforcement() bool` + +HasRFCEnforcement returns a boolean if a field has been set. + +### GetProperties + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetProperties() string` + +GetProperties returns the Properties field if non-nil, zero value otherwise. + +### GetPropertiesOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetPropertiesOk() (*string, bool)` + +GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProperties + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetProperties(v string)` + +SetProperties sets Properties field to given value. + +### HasProperties + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasProperties() bool` + +HasProperties returns a boolean if a field has been set. + +### GetAllowedEnrollmentTypes + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetAllowedEnrollmentTypes() int32` + +GetAllowedEnrollmentTypes returns the AllowedEnrollmentTypes field if non-nil, zero value otherwise. + +### GetAllowedEnrollmentTypesOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetAllowedEnrollmentTypesOk() (*int32, bool)` + +GetAllowedEnrollmentTypesOk returns a tuple with the AllowedEnrollmentTypes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowedEnrollmentTypes + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetAllowedEnrollmentTypes(v int32)` + +SetAllowedEnrollmentTypes sets AllowedEnrollmentTypes field to given value. + +### HasAllowedEnrollmentTypes + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasAllowedEnrollmentTypes() bool` + +HasAllowedEnrollmentTypes returns a boolean if a field has been set. + +### GetKeyRetention + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetKeyRetention() int32` + +GetKeyRetention returns the KeyRetention field if non-nil, zero value otherwise. + +### GetKeyRetentionOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetKeyRetentionOk() (*int32, bool)` + +GetKeyRetentionOk returns a tuple with the KeyRetention field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyRetention + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetKeyRetention(v int32)` + +SetKeyRetention sets KeyRetention field to given value. + +### HasKeyRetention + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasKeyRetention() bool` + +HasKeyRetention returns a boolean if a field has been set. + +### GetKeyRetentionDays + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetKeyRetentionDays() int32` + +GetKeyRetentionDays returns the KeyRetentionDays field if non-nil, zero value otherwise. + +### GetKeyRetentionDaysOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetKeyRetentionDaysOk() (*int32, bool)` + +GetKeyRetentionDaysOk returns a tuple with the KeyRetentionDays field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyRetentionDays + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetKeyRetentionDays(v int32)` + +SetKeyRetentionDays sets KeyRetentionDays field to given value. + +### HasKeyRetentionDays + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasKeyRetentionDays() bool` + +HasKeyRetentionDays returns a boolean if a field has been set. + +### GetExplicitCredentials + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetExplicitCredentials() bool` + +GetExplicitCredentials returns the ExplicitCredentials field if non-nil, zero value otherwise. + +### GetExplicitCredentialsOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetExplicitCredentialsOk() (*bool, bool)` + +GetExplicitCredentialsOk returns a tuple with the ExplicitCredentials field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExplicitCredentials + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetExplicitCredentials(v bool)` + +SetExplicitCredentials sets ExplicitCredentials field to given value. + +### HasExplicitCredentials + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasExplicitCredentials() bool` + +HasExplicitCredentials returns a boolean if a field has been set. + +### GetSubscriberTerms + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetSubscriberTerms() bool` + +GetSubscriberTerms returns the SubscriberTerms field if non-nil, zero value otherwise. + +### GetSubscriberTermsOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetSubscriberTermsOk() (*bool, bool)` + +GetSubscriberTermsOk returns a tuple with the SubscriberTerms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubscriberTerms + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetSubscriberTerms(v bool)` + +SetSubscriberTerms sets SubscriberTerms field to given value. + +### HasSubscriberTerms + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasSubscriberTerms() bool` + +HasSubscriberTerms returns a boolean if a field has been set. + +### GetExplicitUser + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetExplicitUser() string` + +GetExplicitUser returns the ExplicitUser field if non-nil, zero value otherwise. + +### GetExplicitUserOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetExplicitUserOk() (*string, bool)` + +GetExplicitUserOk returns a tuple with the ExplicitUser field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExplicitUser + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetExplicitUser(v string)` + +SetExplicitUser sets ExplicitUser field to given value. + +### HasExplicitUser + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasExplicitUser() bool` + +HasExplicitUser returns a boolean if a field has been set. + +### GetExplicitPassword + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetExplicitPassword() ModelsKeyfactorAPISecret` + +GetExplicitPassword returns the ExplicitPassword field if non-nil, zero value otherwise. + +### GetExplicitPasswordOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetExplicitPasswordOk() (*ModelsKeyfactorAPISecret, bool)` + +GetExplicitPasswordOk returns a tuple with the ExplicitPassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExplicitPassword + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetExplicitPassword(v ModelsKeyfactorAPISecret)` + +SetExplicitPassword sets ExplicitPassword field to given value. + +### HasExplicitPassword + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasExplicitPassword() bool` + +HasExplicitPassword returns a boolean if a field has been set. + +### GetUseAllowedRequesters + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetUseAllowedRequesters() bool` + +GetUseAllowedRequesters returns the UseAllowedRequesters field if non-nil, zero value otherwise. + +### GetUseAllowedRequestersOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetUseAllowedRequestersOk() (*bool, bool)` + +GetUseAllowedRequestersOk returns a tuple with the UseAllowedRequesters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseAllowedRequesters + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetUseAllowedRequesters(v bool)` + +SetUseAllowedRequesters sets UseAllowedRequesters field to given value. + +### HasUseAllowedRequesters + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasUseAllowedRequesters() bool` + +HasUseAllowedRequesters returns a boolean if a field has been set. + +### GetAllowedRequesters + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetAllowedRequesters() []string` + +GetAllowedRequesters returns the AllowedRequesters field if non-nil, zero value otherwise. + +### GetAllowedRequestersOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetAllowedRequestersOk() (*[]string, bool)` + +GetAllowedRequestersOk returns a tuple with the AllowedRequesters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowedRequesters + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetAllowedRequesters(v []string)` + +SetAllowedRequesters sets AllowedRequesters field to given value. + +### HasAllowedRequesters + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasAllowedRequesters() bool` + +HasAllowedRequesters returns a boolean if a field has been set. + +### GetFullScan + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetFullScan() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetFullScan returns the FullScan field if non-nil, zero value otherwise. + +### GetFullScanOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetFullScanOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetFullScanOk returns a tuple with the FullScan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFullScan + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetFullScan(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetFullScan sets FullScan field to given value. + +### HasFullScan + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasFullScan() bool` + +HasFullScan returns a boolean if a field has been set. + +### GetIncrementalScan + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetIncrementalScan() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetIncrementalScan returns the IncrementalScan field if non-nil, zero value otherwise. + +### GetIncrementalScanOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetIncrementalScanOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetIncrementalScanOk returns a tuple with the IncrementalScan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIncrementalScan + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetIncrementalScan(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetIncrementalScan sets IncrementalScan field to given value. + +### HasIncrementalScan + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasIncrementalScan() bool` + +HasIncrementalScan returns a boolean if a field has been set. + +### GetThresholdCheck + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetThresholdCheck() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetThresholdCheck returns the ThresholdCheck field if non-nil, zero value otherwise. + +### GetThresholdCheckOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetThresholdCheckOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetThresholdCheckOk returns a tuple with the ThresholdCheck field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThresholdCheck + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetThresholdCheck(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetThresholdCheck sets ThresholdCheck field to given value. + +### HasThresholdCheck + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasThresholdCheck() bool` + +HasThresholdCheck returns a boolean if a field has been set. + +### GetAuthCertificatePassword + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetAuthCertificatePassword() ModelsKeyfactorAPISecret` + +GetAuthCertificatePassword returns the AuthCertificatePassword field if non-nil, zero value otherwise. + +### GetAuthCertificatePasswordOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetAuthCertificatePasswordOk() (*ModelsKeyfactorAPISecret, bool)` + +GetAuthCertificatePasswordOk returns a tuple with the AuthCertificatePassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthCertificatePassword + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetAuthCertificatePassword(v ModelsKeyfactorAPISecret)` + +SetAuthCertificatePassword sets AuthCertificatePassword field to given value. + +### HasAuthCertificatePassword + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasAuthCertificatePassword() bool` + +HasAuthCertificatePassword returns a boolean if a field has been set. + +### GetAuthCertificate + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetAuthCertificate() ModelsKeyfactorAPISecret` + +GetAuthCertificate returns the AuthCertificate field if non-nil, zero value otherwise. + +### GetAuthCertificateOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetAuthCertificateOk() (*ModelsKeyfactorAPISecret, bool)` + +GetAuthCertificateOk returns a tuple with the AuthCertificate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthCertificate + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetAuthCertificate(v ModelsKeyfactorAPISecret)` + +SetAuthCertificate sets AuthCertificate field to given value. + +### HasAuthCertificate + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasAuthCertificate() bool` + +HasAuthCertificate returns a boolean if a field has been set. + +### GetCAType + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetCAType() int32` + +GetCAType returns the CAType field if non-nil, zero value otherwise. + +### GetCATypeOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetCATypeOk() (*int32, bool)` + +GetCATypeOk returns a tuple with the CAType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCAType + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetCAType(v int32)` + +SetCAType sets CAType field to given value. + +### HasCAType + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasCAType() bool` + +HasCAType returns a boolean if a field has been set. + +### GetEnforceUniqueDN + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetEnforceUniqueDN() bool` + +GetEnforceUniqueDN returns the EnforceUniqueDN field if non-nil, zero value otherwise. + +### GetEnforceUniqueDNOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) GetEnforceUniqueDNOk() (*bool, bool)` + +GetEnforceUniqueDNOk returns a tuple with the EnforceUniqueDN field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnforceUniqueDN + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) SetEnforceUniqueDN(v bool)` + +SetEnforceUniqueDN sets EnforceUniqueDN field to given value. + +### HasEnforceUniqueDN + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityRequest) HasEnforceUniqueDN() bool` + +HasEnforceUniqueDN returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsCertificateAuthoritiesCertificateAuthorityResponse.md b/v1/docs/ModelsCertificateAuthoritiesCertificateAuthorityResponse.md new file mode 100644 index 0000000..3d2b613 --- /dev/null +++ b/v1/docs/ModelsCertificateAuthoritiesCertificateAuthorityResponse.md @@ -0,0 +1,888 @@ +# ModelsCertificateAuthoritiesCertificateAuthorityResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**LogicalName** | Pointer to **string** | | [optional] +**HostName** | Pointer to **string** | | [optional] +**Delegate** | Pointer to **bool** | | [optional] +**DelegateEnrollment** | Pointer to **bool** | | [optional] +**ForestRoot** | Pointer to **string** | | [optional] [readonly] +**ConfigurationTenant** | Pointer to **string** | | [optional] +**Remote** | Pointer to **bool** | | [optional] +**Agent** | Pointer to **string** | | [optional] +**Standalone** | Pointer to **bool** | | [optional] +**MonitorThresholds** | Pointer to **bool** | | [optional] +**IssuanceMax** | Pointer to **int32** | | [optional] +**IssuanceMin** | Pointer to **int32** | | [optional] +**DenialMax** | Pointer to **int32** | | [optional] +**FailureMax** | Pointer to **int32** | | [optional] +**RFCEnforcement** | Pointer to **bool** | | [optional] +**Properties** | Pointer to **string** | | [optional] +**AllowedEnrollmentTypes** | Pointer to **int32** | | [optional] +**KeyRetention** | Pointer to **int32** | | [optional] +**KeyRetentionDays** | Pointer to **int32** | | [optional] +**ExplicitCredentials** | Pointer to **bool** | | [optional] +**SubscriberTerms** | Pointer to **bool** | | [optional] +**ExplicitUser** | Pointer to **string** | | [optional] +**ExplicitPassword** | Pointer to [**ModelsKeyfactorAPISecret**](ModelsKeyfactorAPISecret.md) | | [optional] +**UseAllowedRequesters** | Pointer to **bool** | | [optional] +**AllowedRequesters** | Pointer to **[]string** | | [optional] +**FullScan** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**IncrementalScan** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**ThresholdCheck** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**CAType** | Pointer to **int32** | | [optional] +**AuthCertificate** | Pointer to [**ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate**](ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate.md) | | [optional] +**EnforceUniqueDN** | Pointer to **bool** | | [optional] +**LastScan** | Pointer to **string** | | [optional] [readonly] + +## Methods + +### NewModelsCertificateAuthoritiesCertificateAuthorityResponse + +`func NewModelsCertificateAuthoritiesCertificateAuthorityResponse() *ModelsCertificateAuthoritiesCertificateAuthorityResponse` + +NewModelsCertificateAuthoritiesCertificateAuthorityResponse instantiates a new ModelsCertificateAuthoritiesCertificateAuthorityResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsCertificateAuthoritiesCertificateAuthorityResponseWithDefaults + +`func NewModelsCertificateAuthoritiesCertificateAuthorityResponseWithDefaults() *ModelsCertificateAuthoritiesCertificateAuthorityResponse` + +NewModelsCertificateAuthoritiesCertificateAuthorityResponseWithDefaults instantiates a new ModelsCertificateAuthoritiesCertificateAuthorityResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetLogicalName + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetLogicalName() string` + +GetLogicalName returns the LogicalName field if non-nil, zero value otherwise. + +### GetLogicalNameOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetLogicalNameOk() (*string, bool)` + +GetLogicalNameOk returns a tuple with the LogicalName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogicalName + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetLogicalName(v string)` + +SetLogicalName sets LogicalName field to given value. + +### HasLogicalName + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasLogicalName() bool` + +HasLogicalName returns a boolean if a field has been set. + +### GetHostName + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetHostName() string` + +GetHostName returns the HostName field if non-nil, zero value otherwise. + +### GetHostNameOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetHostNameOk() (*string, bool)` + +GetHostNameOk returns a tuple with the HostName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHostName + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetHostName(v string)` + +SetHostName sets HostName field to given value. + +### HasHostName + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasHostName() bool` + +HasHostName returns a boolean if a field has been set. + +### GetDelegate + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetDelegate() bool` + +GetDelegate returns the Delegate field if non-nil, zero value otherwise. + +### GetDelegateOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetDelegateOk() (*bool, bool)` + +GetDelegateOk returns a tuple with the Delegate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDelegate + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetDelegate(v bool)` + +SetDelegate sets Delegate field to given value. + +### HasDelegate + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasDelegate() bool` + +HasDelegate returns a boolean if a field has been set. + +### GetDelegateEnrollment + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetDelegateEnrollment() bool` + +GetDelegateEnrollment returns the DelegateEnrollment field if non-nil, zero value otherwise. + +### GetDelegateEnrollmentOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetDelegateEnrollmentOk() (*bool, bool)` + +GetDelegateEnrollmentOk returns a tuple with the DelegateEnrollment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDelegateEnrollment + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetDelegateEnrollment(v bool)` + +SetDelegateEnrollment sets DelegateEnrollment field to given value. + +### HasDelegateEnrollment + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasDelegateEnrollment() bool` + +HasDelegateEnrollment returns a boolean if a field has been set. + +### GetForestRoot + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetForestRoot() string` + +GetForestRoot returns the ForestRoot field if non-nil, zero value otherwise. + +### GetForestRootOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetForestRootOk() (*string, bool)` + +GetForestRootOk returns a tuple with the ForestRoot field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetForestRoot + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetForestRoot(v string)` + +SetForestRoot sets ForestRoot field to given value. + +### HasForestRoot + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasForestRoot() bool` + +HasForestRoot returns a boolean if a field has been set. + +### GetConfigurationTenant + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetConfigurationTenant() string` + +GetConfigurationTenant returns the ConfigurationTenant field if non-nil, zero value otherwise. + +### GetConfigurationTenantOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetConfigurationTenantOk() (*string, bool)` + +GetConfigurationTenantOk returns a tuple with the ConfigurationTenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigurationTenant + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetConfigurationTenant(v string)` + +SetConfigurationTenant sets ConfigurationTenant field to given value. + +### HasConfigurationTenant + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasConfigurationTenant() bool` + +HasConfigurationTenant returns a boolean if a field has been set. + +### GetRemote + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetRemote() bool` + +GetRemote returns the Remote field if non-nil, zero value otherwise. + +### GetRemoteOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetRemoteOk() (*bool, bool)` + +GetRemoteOk returns a tuple with the Remote field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRemote + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetRemote(v bool)` + +SetRemote sets Remote field to given value. + +### HasRemote + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasRemote() bool` + +HasRemote returns a boolean if a field has been set. + +### GetAgent + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetAgent() string` + +GetAgent returns the Agent field if non-nil, zero value otherwise. + +### GetAgentOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetAgentOk() (*string, bool)` + +GetAgentOk returns a tuple with the Agent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgent + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetAgent(v string)` + +SetAgent sets Agent field to given value. + +### HasAgent + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasAgent() bool` + +HasAgent returns a boolean if a field has been set. + +### GetStandalone + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetStandalone() bool` + +GetStandalone returns the Standalone field if non-nil, zero value otherwise. + +### GetStandaloneOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetStandaloneOk() (*bool, bool)` + +GetStandaloneOk returns a tuple with the Standalone field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStandalone + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetStandalone(v bool)` + +SetStandalone sets Standalone field to given value. + +### HasStandalone + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasStandalone() bool` + +HasStandalone returns a boolean if a field has been set. + +### GetMonitorThresholds + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetMonitorThresholds() bool` + +GetMonitorThresholds returns the MonitorThresholds field if non-nil, zero value otherwise. + +### GetMonitorThresholdsOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetMonitorThresholdsOk() (*bool, bool)` + +GetMonitorThresholdsOk returns a tuple with the MonitorThresholds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonitorThresholds + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetMonitorThresholds(v bool)` + +SetMonitorThresholds sets MonitorThresholds field to given value. + +### HasMonitorThresholds + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasMonitorThresholds() bool` + +HasMonitorThresholds returns a boolean if a field has been set. + +### GetIssuanceMax + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetIssuanceMax() int32` + +GetIssuanceMax returns the IssuanceMax field if non-nil, zero value otherwise. + +### GetIssuanceMaxOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetIssuanceMaxOk() (*int32, bool)` + +GetIssuanceMaxOk returns a tuple with the IssuanceMax field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuanceMax + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetIssuanceMax(v int32)` + +SetIssuanceMax sets IssuanceMax field to given value. + +### HasIssuanceMax + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasIssuanceMax() bool` + +HasIssuanceMax returns a boolean if a field has been set. + +### GetIssuanceMin + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetIssuanceMin() int32` + +GetIssuanceMin returns the IssuanceMin field if non-nil, zero value otherwise. + +### GetIssuanceMinOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetIssuanceMinOk() (*int32, bool)` + +GetIssuanceMinOk returns a tuple with the IssuanceMin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuanceMin + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetIssuanceMin(v int32)` + +SetIssuanceMin sets IssuanceMin field to given value. + +### HasIssuanceMin + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasIssuanceMin() bool` + +HasIssuanceMin returns a boolean if a field has been set. + +### GetDenialMax + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetDenialMax() int32` + +GetDenialMax returns the DenialMax field if non-nil, zero value otherwise. + +### GetDenialMaxOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetDenialMaxOk() (*int32, bool)` + +GetDenialMaxOk returns a tuple with the DenialMax field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDenialMax + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetDenialMax(v int32)` + +SetDenialMax sets DenialMax field to given value. + +### HasDenialMax + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasDenialMax() bool` + +HasDenialMax returns a boolean if a field has been set. + +### GetFailureMax + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetFailureMax() int32` + +GetFailureMax returns the FailureMax field if non-nil, zero value otherwise. + +### GetFailureMaxOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetFailureMaxOk() (*int32, bool)` + +GetFailureMaxOk returns a tuple with the FailureMax field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFailureMax + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetFailureMax(v int32)` + +SetFailureMax sets FailureMax field to given value. + +### HasFailureMax + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasFailureMax() bool` + +HasFailureMax returns a boolean if a field has been set. + +### GetRFCEnforcement + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetRFCEnforcement() bool` + +GetRFCEnforcement returns the RFCEnforcement field if non-nil, zero value otherwise. + +### GetRFCEnforcementOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetRFCEnforcementOk() (*bool, bool)` + +GetRFCEnforcementOk returns a tuple with the RFCEnforcement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRFCEnforcement + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetRFCEnforcement(v bool)` + +SetRFCEnforcement sets RFCEnforcement field to given value. + +### HasRFCEnforcement + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasRFCEnforcement() bool` + +HasRFCEnforcement returns a boolean if a field has been set. + +### GetProperties + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetProperties() string` + +GetProperties returns the Properties field if non-nil, zero value otherwise. + +### GetPropertiesOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetPropertiesOk() (*string, bool)` + +GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProperties + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetProperties(v string)` + +SetProperties sets Properties field to given value. + +### HasProperties + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasProperties() bool` + +HasProperties returns a boolean if a field has been set. + +### GetAllowedEnrollmentTypes + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetAllowedEnrollmentTypes() int32` + +GetAllowedEnrollmentTypes returns the AllowedEnrollmentTypes field if non-nil, zero value otherwise. + +### GetAllowedEnrollmentTypesOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetAllowedEnrollmentTypesOk() (*int32, bool)` + +GetAllowedEnrollmentTypesOk returns a tuple with the AllowedEnrollmentTypes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowedEnrollmentTypes + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetAllowedEnrollmentTypes(v int32)` + +SetAllowedEnrollmentTypes sets AllowedEnrollmentTypes field to given value. + +### HasAllowedEnrollmentTypes + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasAllowedEnrollmentTypes() bool` + +HasAllowedEnrollmentTypes returns a boolean if a field has been set. + +### GetKeyRetention + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetKeyRetention() int32` + +GetKeyRetention returns the KeyRetention field if non-nil, zero value otherwise. + +### GetKeyRetentionOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetKeyRetentionOk() (*int32, bool)` + +GetKeyRetentionOk returns a tuple with the KeyRetention field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyRetention + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetKeyRetention(v int32)` + +SetKeyRetention sets KeyRetention field to given value. + +### HasKeyRetention + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasKeyRetention() bool` + +HasKeyRetention returns a boolean if a field has been set. + +### GetKeyRetentionDays + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetKeyRetentionDays() int32` + +GetKeyRetentionDays returns the KeyRetentionDays field if non-nil, zero value otherwise. + +### GetKeyRetentionDaysOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetKeyRetentionDaysOk() (*int32, bool)` + +GetKeyRetentionDaysOk returns a tuple with the KeyRetentionDays field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyRetentionDays + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetKeyRetentionDays(v int32)` + +SetKeyRetentionDays sets KeyRetentionDays field to given value. + +### HasKeyRetentionDays + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasKeyRetentionDays() bool` + +HasKeyRetentionDays returns a boolean if a field has been set. + +### GetExplicitCredentials + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetExplicitCredentials() bool` + +GetExplicitCredentials returns the ExplicitCredentials field if non-nil, zero value otherwise. + +### GetExplicitCredentialsOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetExplicitCredentialsOk() (*bool, bool)` + +GetExplicitCredentialsOk returns a tuple with the ExplicitCredentials field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExplicitCredentials + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetExplicitCredentials(v bool)` + +SetExplicitCredentials sets ExplicitCredentials field to given value. + +### HasExplicitCredentials + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasExplicitCredentials() bool` + +HasExplicitCredentials returns a boolean if a field has been set. + +### GetSubscriberTerms + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetSubscriberTerms() bool` + +GetSubscriberTerms returns the SubscriberTerms field if non-nil, zero value otherwise. + +### GetSubscriberTermsOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetSubscriberTermsOk() (*bool, bool)` + +GetSubscriberTermsOk returns a tuple with the SubscriberTerms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubscriberTerms + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetSubscriberTerms(v bool)` + +SetSubscriberTerms sets SubscriberTerms field to given value. + +### HasSubscriberTerms + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasSubscriberTerms() bool` + +HasSubscriberTerms returns a boolean if a field has been set. + +### GetExplicitUser + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetExplicitUser() string` + +GetExplicitUser returns the ExplicitUser field if non-nil, zero value otherwise. + +### GetExplicitUserOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetExplicitUserOk() (*string, bool)` + +GetExplicitUserOk returns a tuple with the ExplicitUser field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExplicitUser + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetExplicitUser(v string)` + +SetExplicitUser sets ExplicitUser field to given value. + +### HasExplicitUser + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasExplicitUser() bool` + +HasExplicitUser returns a boolean if a field has been set. + +### GetExplicitPassword + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetExplicitPassword() ModelsKeyfactorAPISecret` + +GetExplicitPassword returns the ExplicitPassword field if non-nil, zero value otherwise. + +### GetExplicitPasswordOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetExplicitPasswordOk() (*ModelsKeyfactorAPISecret, bool)` + +GetExplicitPasswordOk returns a tuple with the ExplicitPassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExplicitPassword + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetExplicitPassword(v ModelsKeyfactorAPISecret)` + +SetExplicitPassword sets ExplicitPassword field to given value. + +### HasExplicitPassword + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasExplicitPassword() bool` + +HasExplicitPassword returns a boolean if a field has been set. + +### GetUseAllowedRequesters + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetUseAllowedRequesters() bool` + +GetUseAllowedRequesters returns the UseAllowedRequesters field if non-nil, zero value otherwise. + +### GetUseAllowedRequestersOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetUseAllowedRequestersOk() (*bool, bool)` + +GetUseAllowedRequestersOk returns a tuple with the UseAllowedRequesters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseAllowedRequesters + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetUseAllowedRequesters(v bool)` + +SetUseAllowedRequesters sets UseAllowedRequesters field to given value. + +### HasUseAllowedRequesters + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasUseAllowedRequesters() bool` + +HasUseAllowedRequesters returns a boolean if a field has been set. + +### GetAllowedRequesters + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetAllowedRequesters() []string` + +GetAllowedRequesters returns the AllowedRequesters field if non-nil, zero value otherwise. + +### GetAllowedRequestersOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetAllowedRequestersOk() (*[]string, bool)` + +GetAllowedRequestersOk returns a tuple with the AllowedRequesters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowedRequesters + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetAllowedRequesters(v []string)` + +SetAllowedRequesters sets AllowedRequesters field to given value. + +### HasAllowedRequesters + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasAllowedRequesters() bool` + +HasAllowedRequesters returns a boolean if a field has been set. + +### GetFullScan + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetFullScan() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetFullScan returns the FullScan field if non-nil, zero value otherwise. + +### GetFullScanOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetFullScanOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetFullScanOk returns a tuple with the FullScan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFullScan + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetFullScan(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetFullScan sets FullScan field to given value. + +### HasFullScan + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasFullScan() bool` + +HasFullScan returns a boolean if a field has been set. + +### GetIncrementalScan + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetIncrementalScan() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetIncrementalScan returns the IncrementalScan field if non-nil, zero value otherwise. + +### GetIncrementalScanOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetIncrementalScanOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetIncrementalScanOk returns a tuple with the IncrementalScan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIncrementalScan + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetIncrementalScan(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetIncrementalScan sets IncrementalScan field to given value. + +### HasIncrementalScan + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasIncrementalScan() bool` + +HasIncrementalScan returns a boolean if a field has been set. + +### GetThresholdCheck + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetThresholdCheck() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetThresholdCheck returns the ThresholdCheck field if non-nil, zero value otherwise. + +### GetThresholdCheckOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetThresholdCheckOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetThresholdCheckOk returns a tuple with the ThresholdCheck field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThresholdCheck + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetThresholdCheck(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetThresholdCheck sets ThresholdCheck field to given value. + +### HasThresholdCheck + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasThresholdCheck() bool` + +HasThresholdCheck returns a boolean if a field has been set. + +### GetCAType + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetCAType() int32` + +GetCAType returns the CAType field if non-nil, zero value otherwise. + +### GetCATypeOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetCATypeOk() (*int32, bool)` + +GetCATypeOk returns a tuple with the CAType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCAType + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetCAType(v int32)` + +SetCAType sets CAType field to given value. + +### HasCAType + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasCAType() bool` + +HasCAType returns a boolean if a field has been set. + +### GetAuthCertificate + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetAuthCertificate() ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate` + +GetAuthCertificate returns the AuthCertificate field if non-nil, zero value otherwise. + +### GetAuthCertificateOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetAuthCertificateOk() (*ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate, bool)` + +GetAuthCertificateOk returns a tuple with the AuthCertificate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthCertificate + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetAuthCertificate(v ModelsCertificateAuthoritiesCertificateAuthorityAuthCertificate)` + +SetAuthCertificate sets AuthCertificate field to given value. + +### HasAuthCertificate + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasAuthCertificate() bool` + +HasAuthCertificate returns a boolean if a field has been set. + +### GetEnforceUniqueDN + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetEnforceUniqueDN() bool` + +GetEnforceUniqueDN returns the EnforceUniqueDN field if non-nil, zero value otherwise. + +### GetEnforceUniqueDNOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetEnforceUniqueDNOk() (*bool, bool)` + +GetEnforceUniqueDNOk returns a tuple with the EnforceUniqueDN field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnforceUniqueDN + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetEnforceUniqueDN(v bool)` + +SetEnforceUniqueDN sets EnforceUniqueDN field to given value. + +### HasEnforceUniqueDN + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasEnforceUniqueDN() bool` + +HasEnforceUniqueDN returns a boolean if a field has been set. + +### GetLastScan + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetLastScan() string` + +GetLastScan returns the LastScan field if non-nil, zero value otherwise. + +### GetLastScanOk + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) GetLastScanOk() (*string, bool)` + +GetLastScanOk returns a tuple with the LastScan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastScan + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) SetLastScan(v string)` + +SetLastScan sets LastScan field to given value. + +### HasLastScan + +`func (o *ModelsCertificateAuthoritiesCertificateAuthorityResponse) HasLastScan() bool` + +HasLastScan returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsCertificateDetails.md b/v1/docs/ModelsCertificateDetails.md new file mode 100644 index 0000000..359b60e --- /dev/null +++ b/v1/docs/ModelsCertificateDetails.md @@ -0,0 +1,232 @@ +# ModelsCertificateDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IssuedDN** | Pointer to **NullableString** | | [optional] +**IssuerDN** | Pointer to **NullableString** | | [optional] +**Thumbprint** | Pointer to **string** | | [optional] +**NotAfter** | Pointer to **time.Time** | | [optional] +**NotBefore** | Pointer to **time.Time** | | [optional] +**Metadata** | Pointer to **map[string]string** | | [optional] +**IsEndEntity** | Pointer to **bool** | | [optional] + +## Methods + +### NewModelsCertificateDetails + +`func NewModelsCertificateDetails() *ModelsCertificateDetails` + +NewModelsCertificateDetails instantiates a new ModelsCertificateDetails object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsCertificateDetailsWithDefaults + +`func NewModelsCertificateDetailsWithDefaults() *ModelsCertificateDetails` + +NewModelsCertificateDetailsWithDefaults instantiates a new ModelsCertificateDetails object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetIssuedDN + +`func (o *ModelsCertificateDetails) GetIssuedDN() string` + +GetIssuedDN returns the IssuedDN field if non-nil, zero value otherwise. + +### GetIssuedDNOk + +`func (o *ModelsCertificateDetails) GetIssuedDNOk() (*string, bool)` + +GetIssuedDNOk returns a tuple with the IssuedDN field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuedDN + +`func (o *ModelsCertificateDetails) SetIssuedDN(v string)` + +SetIssuedDN sets IssuedDN field to given value. + +### HasIssuedDN + +`func (o *ModelsCertificateDetails) HasIssuedDN() bool` + +HasIssuedDN returns a boolean if a field has been set. + +### SetIssuedDNNil + +`func (o *ModelsCertificateDetails) SetIssuedDNNil(b bool)` + + SetIssuedDNNil sets the value for IssuedDN to be an explicit nil + +### UnsetIssuedDN +`func (o *ModelsCertificateDetails) UnsetIssuedDN()` + +UnsetIssuedDN ensures that no value is present for IssuedDN, not even an explicit nil +### GetIssuerDN + +`func (o *ModelsCertificateDetails) GetIssuerDN() string` + +GetIssuerDN returns the IssuerDN field if non-nil, zero value otherwise. + +### GetIssuerDNOk + +`func (o *ModelsCertificateDetails) GetIssuerDNOk() (*string, bool)` + +GetIssuerDNOk returns a tuple with the IssuerDN field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuerDN + +`func (o *ModelsCertificateDetails) SetIssuerDN(v string)` + +SetIssuerDN sets IssuerDN field to given value. + +### HasIssuerDN + +`func (o *ModelsCertificateDetails) HasIssuerDN() bool` + +HasIssuerDN returns a boolean if a field has been set. + +### SetIssuerDNNil + +`func (o *ModelsCertificateDetails) SetIssuerDNNil(b bool)` + + SetIssuerDNNil sets the value for IssuerDN to be an explicit nil + +### UnsetIssuerDN +`func (o *ModelsCertificateDetails) UnsetIssuerDN()` + +UnsetIssuerDN ensures that no value is present for IssuerDN, not even an explicit nil +### GetThumbprint + +`func (o *ModelsCertificateDetails) GetThumbprint() string` + +GetThumbprint returns the Thumbprint field if non-nil, zero value otherwise. + +### GetThumbprintOk + +`func (o *ModelsCertificateDetails) GetThumbprintOk() (*string, bool)` + +GetThumbprintOk returns a tuple with the Thumbprint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThumbprint + +`func (o *ModelsCertificateDetails) SetThumbprint(v string)` + +SetThumbprint sets Thumbprint field to given value. + +### HasThumbprint + +`func (o *ModelsCertificateDetails) HasThumbprint() bool` + +HasThumbprint returns a boolean if a field has been set. + +### GetNotAfter + +`func (o *ModelsCertificateDetails) GetNotAfter() time.Time` + +GetNotAfter returns the NotAfter field if non-nil, zero value otherwise. + +### GetNotAfterOk + +`func (o *ModelsCertificateDetails) GetNotAfterOk() (*time.Time, bool)` + +GetNotAfterOk returns a tuple with the NotAfter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNotAfter + +`func (o *ModelsCertificateDetails) SetNotAfter(v time.Time)` + +SetNotAfter sets NotAfter field to given value. + +### HasNotAfter + +`func (o *ModelsCertificateDetails) HasNotAfter() bool` + +HasNotAfter returns a boolean if a field has been set. + +### GetNotBefore + +`func (o *ModelsCertificateDetails) GetNotBefore() time.Time` + +GetNotBefore returns the NotBefore field if non-nil, zero value otherwise. + +### GetNotBeforeOk + +`func (o *ModelsCertificateDetails) GetNotBeforeOk() (*time.Time, bool)` + +GetNotBeforeOk returns a tuple with the NotBefore field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNotBefore + +`func (o *ModelsCertificateDetails) SetNotBefore(v time.Time)` + +SetNotBefore sets NotBefore field to given value. + +### HasNotBefore + +`func (o *ModelsCertificateDetails) HasNotBefore() bool` + +HasNotBefore returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ModelsCertificateDetails) GetMetadata() map[string]string` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ModelsCertificateDetails) GetMetadataOk() (*map[string]string, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ModelsCertificateDetails) SetMetadata(v map[string]string)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ModelsCertificateDetails) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetIsEndEntity + +`func (o *ModelsCertificateDetails) GetIsEndEntity() bool` + +GetIsEndEntity returns the IsEndEntity field if non-nil, zero value otherwise. + +### GetIsEndEntityOk + +`func (o *ModelsCertificateDetails) GetIsEndEntityOk() (*bool, bool)` + +GetIsEndEntityOk returns a tuple with the IsEndEntity field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsEndEntity + +`func (o *ModelsCertificateDetails) SetIsEndEntity(v bool)` + +SetIsEndEntity sets IsEndEntity field to given value. + +### HasIsEndEntity + +`func (o *ModelsCertificateDetails) HasIsEndEntity() bool` + +HasIsEndEntity returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsCertificateDownloadRequest.md b/v1/docs/ModelsCertificateDownloadRequest.md new file mode 100644 index 0000000..7e8c4f7 --- /dev/null +++ b/v1/docs/ModelsCertificateDownloadRequest.md @@ -0,0 +1,170 @@ +# ModelsCertificateDownloadRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CertID** | Pointer to **int32** | | [optional] +**SerialNumber** | Pointer to **string** | | [optional] +**IssuerDN** | Pointer to **NullableString** | | [optional] +**Thumbprint** | Pointer to **string** | | [optional] +**IncludeChain** | Pointer to **bool** | | [optional] + +## Methods + +### NewModelsCertificateDownloadRequest + +`func NewModelsCertificateDownloadRequest() *ModelsCertificateDownloadRequest` + +NewModelsCertificateDownloadRequest instantiates a new ModelsCertificateDownloadRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsCertificateDownloadRequestWithDefaults + +`func NewModelsCertificateDownloadRequestWithDefaults() *ModelsCertificateDownloadRequest` + +NewModelsCertificateDownloadRequestWithDefaults instantiates a new ModelsCertificateDownloadRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCertID + +`func (o *ModelsCertificateDownloadRequest) GetCertID() int32` + +GetCertID returns the CertID field if non-nil, zero value otherwise. + +### GetCertIDOk + +`func (o *ModelsCertificateDownloadRequest) GetCertIDOk() (*int32, bool)` + +GetCertIDOk returns a tuple with the CertID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertID + +`func (o *ModelsCertificateDownloadRequest) SetCertID(v int32)` + +SetCertID sets CertID field to given value. + +### HasCertID + +`func (o *ModelsCertificateDownloadRequest) HasCertID() bool` + +HasCertID returns a boolean if a field has been set. + +### GetSerialNumber + +`func (o *ModelsCertificateDownloadRequest) GetSerialNumber() string` + +GetSerialNumber returns the SerialNumber field if non-nil, zero value otherwise. + +### GetSerialNumberOk + +`func (o *ModelsCertificateDownloadRequest) GetSerialNumberOk() (*string, bool)` + +GetSerialNumberOk returns a tuple with the SerialNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerialNumber + +`func (o *ModelsCertificateDownloadRequest) SetSerialNumber(v string)` + +SetSerialNumber sets SerialNumber field to given value. + +### HasSerialNumber + +`func (o *ModelsCertificateDownloadRequest) HasSerialNumber() bool` + +HasSerialNumber returns a boolean if a field has been set. + +### GetIssuerDN + +`func (o *ModelsCertificateDownloadRequest) GetIssuerDN() string` + +GetIssuerDN returns the IssuerDN field if non-nil, zero value otherwise. + +### GetIssuerDNOk + +`func (o *ModelsCertificateDownloadRequest) GetIssuerDNOk() (*string, bool)` + +GetIssuerDNOk returns a tuple with the IssuerDN field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuerDN + +`func (o *ModelsCertificateDownloadRequest) SetIssuerDN(v string)` + +SetIssuerDN sets IssuerDN field to given value. + +### HasIssuerDN + +`func (o *ModelsCertificateDownloadRequest) HasIssuerDN() bool` + +HasIssuerDN returns a boolean if a field has been set. + +### SetIssuerDNNil + +`func (o *ModelsCertificateDownloadRequest) SetIssuerDNNil(b bool)` + + SetIssuerDNNil sets the value for IssuerDN to be an explicit nil + +### UnsetIssuerDN +`func (o *ModelsCertificateDownloadRequest) UnsetIssuerDN()` + +UnsetIssuerDN ensures that no value is present for IssuerDN, not even an explicit nil +### GetThumbprint + +`func (o *ModelsCertificateDownloadRequest) GetThumbprint() string` + +GetThumbprint returns the Thumbprint field if non-nil, zero value otherwise. + +### GetThumbprintOk + +`func (o *ModelsCertificateDownloadRequest) GetThumbprintOk() (*string, bool)` + +GetThumbprintOk returns a tuple with the Thumbprint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThumbprint + +`func (o *ModelsCertificateDownloadRequest) SetThumbprint(v string)` + +SetThumbprint sets Thumbprint field to given value. + +### HasThumbprint + +`func (o *ModelsCertificateDownloadRequest) HasThumbprint() bool` + +HasThumbprint returns a boolean if a field has been set. + +### GetIncludeChain + +`func (o *ModelsCertificateDownloadRequest) GetIncludeChain() bool` + +GetIncludeChain returns the IncludeChain field if non-nil, zero value otherwise. + +### GetIncludeChainOk + +`func (o *ModelsCertificateDownloadRequest) GetIncludeChainOk() (*bool, bool)` + +GetIncludeChainOk returns a tuple with the IncludeChain field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIncludeChain + +`func (o *ModelsCertificateDownloadRequest) SetIncludeChain(v bool)` + +SetIncludeChain sets IncludeChain field to given value. + +### HasIncludeChain + +`func (o *ModelsCertificateDownloadRequest) HasIncludeChain() bool` + +HasIncludeChain returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsCertificateDownloadResponse.md b/v1/docs/ModelsCertificateDownloadResponse.md new file mode 100644 index 0000000..aa9e191 --- /dev/null +++ b/v1/docs/ModelsCertificateDownloadResponse.md @@ -0,0 +1,56 @@ +# ModelsCertificateDownloadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | Pointer to **string** | | [optional] + +## Methods + +### NewModelsCertificateDownloadResponse + +`func NewModelsCertificateDownloadResponse() *ModelsCertificateDownloadResponse` + +NewModelsCertificateDownloadResponse instantiates a new ModelsCertificateDownloadResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsCertificateDownloadResponseWithDefaults + +`func NewModelsCertificateDownloadResponseWithDefaults() *ModelsCertificateDownloadResponse` + +NewModelsCertificateDownloadResponseWithDefaults instantiates a new ModelsCertificateDownloadResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetContent + +`func (o *ModelsCertificateDownloadResponse) GetContent() string` + +GetContent returns the Content field if non-nil, zero value otherwise. + +### GetContentOk + +`func (o *ModelsCertificateDownloadResponse) GetContentOk() (*string, bool)` + +GetContentOk returns a tuple with the Content field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContent + +`func (o *ModelsCertificateDownloadResponse) SetContent(v string)` + +SetContent sets Content field to given value. + +### HasContent + +`func (o *ModelsCertificateDownloadResponse) HasContent() bool` + +HasContent returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsCertificateImportRequestModel.md b/v1/docs/ModelsCertificateImportRequestModel.md new file mode 100644 index 0000000..ed63a02 --- /dev/null +++ b/v1/docs/ModelsCertificateImportRequestModel.md @@ -0,0 +1,207 @@ +# ModelsCertificateImportRequestModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Certificate** | **string** | Base64-encoded certificate contents | +**Password** | Pointer to **string** | Optional password associated if required for a PFX | [optional] +**Metadata** | Pointer to **map[string]string** | Colleciton of metadata to be associated with the imported certificate | [optional] +**StoreIds** | Pointer to **[]string** | List of the Keyfactor certificate store identifiers (GUID) with which the imported certificate should be associated | [optional] +**StoreTypes** | Pointer to [**[]ModelsEnrollmentManagementStoreType**](ModelsEnrollmentManagementStoreType.md) | List of the certificate store types with with the imported certificate should be associated | [optional] +**Schedule** | Pointer to **time.Time** | Schedule on which the certificate should be imported | [optional] +**ImportMetadata** | Pointer to **bool** | Whether or not we should validate and import the certificate's metadata. | [optional] + +## Methods + +### NewModelsCertificateImportRequestModel + +`func NewModelsCertificateImportRequestModel(certificate string, ) *ModelsCertificateImportRequestModel` + +NewModelsCertificateImportRequestModel instantiates a new ModelsCertificateImportRequestModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsCertificateImportRequestModelWithDefaults + +`func NewModelsCertificateImportRequestModelWithDefaults() *ModelsCertificateImportRequestModel` + +NewModelsCertificateImportRequestModelWithDefaults instantiates a new ModelsCertificateImportRequestModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCertificate + +`func (o *ModelsCertificateImportRequestModel) GetCertificate() string` + +GetCertificate returns the Certificate field if non-nil, zero value otherwise. + +### GetCertificateOk + +`func (o *ModelsCertificateImportRequestModel) GetCertificateOk() (*string, bool)` + +GetCertificateOk returns a tuple with the Certificate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificate + +`func (o *ModelsCertificateImportRequestModel) SetCertificate(v string)` + +SetCertificate sets Certificate field to given value. + + +### GetPassword + +`func (o *ModelsCertificateImportRequestModel) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *ModelsCertificateImportRequestModel) GetPasswordOk() (*string, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *ModelsCertificateImportRequestModel) SetPassword(v string)` + +SetPassword sets Password field to given value. + +### HasPassword + +`func (o *ModelsCertificateImportRequestModel) HasPassword() bool` + +HasPassword returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ModelsCertificateImportRequestModel) GetMetadata() map[string]string` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ModelsCertificateImportRequestModel) GetMetadataOk() (*map[string]string, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ModelsCertificateImportRequestModel) SetMetadata(v map[string]string)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ModelsCertificateImportRequestModel) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetStoreIds + +`func (o *ModelsCertificateImportRequestModel) GetStoreIds() []string` + +GetStoreIds returns the StoreIds field if non-nil, zero value otherwise. + +### GetStoreIdsOk + +`func (o *ModelsCertificateImportRequestModel) GetStoreIdsOk() (*[]string, bool)` + +GetStoreIdsOk returns a tuple with the StoreIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStoreIds + +`func (o *ModelsCertificateImportRequestModel) SetStoreIds(v []string)` + +SetStoreIds sets StoreIds field to given value. + +### HasStoreIds + +`func (o *ModelsCertificateImportRequestModel) HasStoreIds() bool` + +HasStoreIds returns a boolean if a field has been set. + +### GetStoreTypes + +`func (o *ModelsCertificateImportRequestModel) GetStoreTypes() []ModelsEnrollmentManagementStoreType` + +GetStoreTypes returns the StoreTypes field if non-nil, zero value otherwise. + +### GetStoreTypesOk + +`func (o *ModelsCertificateImportRequestModel) GetStoreTypesOk() (*[]ModelsEnrollmentManagementStoreType, bool)` + +GetStoreTypesOk returns a tuple with the StoreTypes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStoreTypes + +`func (o *ModelsCertificateImportRequestModel) SetStoreTypes(v []ModelsEnrollmentManagementStoreType)` + +SetStoreTypes sets StoreTypes field to given value. + +### HasStoreTypes + +`func (o *ModelsCertificateImportRequestModel) HasStoreTypes() bool` + +HasStoreTypes returns a boolean if a field has been set. + +### GetSchedule + +`func (o *ModelsCertificateImportRequestModel) GetSchedule() time.Time` + +GetSchedule returns the Schedule field if non-nil, zero value otherwise. + +### GetScheduleOk + +`func (o *ModelsCertificateImportRequestModel) GetScheduleOk() (*time.Time, bool)` + +GetScheduleOk returns a tuple with the Schedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSchedule + +`func (o *ModelsCertificateImportRequestModel) SetSchedule(v time.Time)` + +SetSchedule sets Schedule field to given value. + +### HasSchedule + +`func (o *ModelsCertificateImportRequestModel) HasSchedule() bool` + +HasSchedule returns a boolean if a field has been set. + +### GetImportMetadata + +`func (o *ModelsCertificateImportRequestModel) GetImportMetadata() bool` + +GetImportMetadata returns the ImportMetadata field if non-nil, zero value otherwise. + +### GetImportMetadataOk + +`func (o *ModelsCertificateImportRequestModel) GetImportMetadataOk() (*bool, bool)` + +GetImportMetadataOk returns a tuple with the ImportMetadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImportMetadata + +`func (o *ModelsCertificateImportRequestModel) SetImportMetadata(v bool)` + +SetImportMetadata sets ImportMetadata field to given value. + +### HasImportMetadata + +`func (o *ModelsCertificateImportRequestModel) HasImportMetadata() bool` + +HasImportMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsCertificateImportResponseModel.md b/v1/docs/ModelsCertificateImportResponseModel.md new file mode 100644 index 0000000..cc662b4 --- /dev/null +++ b/v1/docs/ModelsCertificateImportResponseModel.md @@ -0,0 +1,134 @@ +# ModelsCertificateImportResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ImportStatus** | Pointer to **int32** | | [optional] +**JobStatus** | Pointer to **int32** | | [optional] +**InvalidKeystores** | Pointer to [**[]ModelsInvalidKeystore**](ModelsInvalidKeystore.md) | | [optional] +**Thumbprint** | Pointer to **string** | | [optional] + +## Methods + +### NewModelsCertificateImportResponseModel + +`func NewModelsCertificateImportResponseModel() *ModelsCertificateImportResponseModel` + +NewModelsCertificateImportResponseModel instantiates a new ModelsCertificateImportResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsCertificateImportResponseModelWithDefaults + +`func NewModelsCertificateImportResponseModelWithDefaults() *ModelsCertificateImportResponseModel` + +NewModelsCertificateImportResponseModelWithDefaults instantiates a new ModelsCertificateImportResponseModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetImportStatus + +`func (o *ModelsCertificateImportResponseModel) GetImportStatus() int32` + +GetImportStatus returns the ImportStatus field if non-nil, zero value otherwise. + +### GetImportStatusOk + +`func (o *ModelsCertificateImportResponseModel) GetImportStatusOk() (*int32, bool)` + +GetImportStatusOk returns a tuple with the ImportStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImportStatus + +`func (o *ModelsCertificateImportResponseModel) SetImportStatus(v int32)` + +SetImportStatus sets ImportStatus field to given value. + +### HasImportStatus + +`func (o *ModelsCertificateImportResponseModel) HasImportStatus() bool` + +HasImportStatus returns a boolean if a field has been set. + +### GetJobStatus + +`func (o *ModelsCertificateImportResponseModel) GetJobStatus() int32` + +GetJobStatus returns the JobStatus field if non-nil, zero value otherwise. + +### GetJobStatusOk + +`func (o *ModelsCertificateImportResponseModel) GetJobStatusOk() (*int32, bool)` + +GetJobStatusOk returns a tuple with the JobStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobStatus + +`func (o *ModelsCertificateImportResponseModel) SetJobStatus(v int32)` + +SetJobStatus sets JobStatus field to given value. + +### HasJobStatus + +`func (o *ModelsCertificateImportResponseModel) HasJobStatus() bool` + +HasJobStatus returns a boolean if a field has been set. + +### GetInvalidKeystores + +`func (o *ModelsCertificateImportResponseModel) GetInvalidKeystores() []ModelsInvalidKeystore` + +GetInvalidKeystores returns the InvalidKeystores field if non-nil, zero value otherwise. + +### GetInvalidKeystoresOk + +`func (o *ModelsCertificateImportResponseModel) GetInvalidKeystoresOk() (*[]ModelsInvalidKeystore, bool)` + +GetInvalidKeystoresOk returns a tuple with the InvalidKeystores field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInvalidKeystores + +`func (o *ModelsCertificateImportResponseModel) SetInvalidKeystores(v []ModelsInvalidKeystore)` + +SetInvalidKeystores sets InvalidKeystores field to given value. + +### HasInvalidKeystores + +`func (o *ModelsCertificateImportResponseModel) HasInvalidKeystores() bool` + +HasInvalidKeystores returns a boolean if a field has been set. + +### GetThumbprint + +`func (o *ModelsCertificateImportResponseModel) GetThumbprint() string` + +GetThumbprint returns the Thumbprint field if non-nil, zero value otherwise. + +### GetThumbprintOk + +`func (o *ModelsCertificateImportResponseModel) GetThumbprintOk() (*string, bool)` + +GetThumbprintOk returns a tuple with the Thumbprint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThumbprint + +`func (o *ModelsCertificateImportResponseModel) SetThumbprint(v string)` + +SetThumbprint sets Thumbprint field to given value. + +### HasThumbprint + +`func (o *ModelsCertificateImportResponseModel) HasThumbprint() bool` + +HasThumbprint returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsCertificateLocationSpecifier.md b/v1/docs/ModelsCertificateLocationSpecifier.md new file mode 100644 index 0000000..014ece9 --- /dev/null +++ b/v1/docs/ModelsCertificateLocationSpecifier.md @@ -0,0 +1,108 @@ +# ModelsCertificateLocationSpecifier + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Alias** | Pointer to **string** | | [optional] +**CertificateStoreId** | Pointer to **string** | | [optional] +**JobFields** | Pointer to **map[string]map[string]interface{}** | | [optional] + +## Methods + +### NewModelsCertificateLocationSpecifier + +`func NewModelsCertificateLocationSpecifier() *ModelsCertificateLocationSpecifier` + +NewModelsCertificateLocationSpecifier instantiates a new ModelsCertificateLocationSpecifier object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsCertificateLocationSpecifierWithDefaults + +`func NewModelsCertificateLocationSpecifierWithDefaults() *ModelsCertificateLocationSpecifier` + +NewModelsCertificateLocationSpecifierWithDefaults instantiates a new ModelsCertificateLocationSpecifier object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAlias + +`func (o *ModelsCertificateLocationSpecifier) GetAlias() string` + +GetAlias returns the Alias field if non-nil, zero value otherwise. + +### GetAliasOk + +`func (o *ModelsCertificateLocationSpecifier) GetAliasOk() (*string, bool)` + +GetAliasOk returns a tuple with the Alias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlias + +`func (o *ModelsCertificateLocationSpecifier) SetAlias(v string)` + +SetAlias sets Alias field to given value. + +### HasAlias + +`func (o *ModelsCertificateLocationSpecifier) HasAlias() bool` + +HasAlias returns a boolean if a field has been set. + +### GetCertificateStoreId + +`func (o *ModelsCertificateLocationSpecifier) GetCertificateStoreId() string` + +GetCertificateStoreId returns the CertificateStoreId field if non-nil, zero value otherwise. + +### GetCertificateStoreIdOk + +`func (o *ModelsCertificateLocationSpecifier) GetCertificateStoreIdOk() (*string, bool)` + +GetCertificateStoreIdOk returns a tuple with the CertificateStoreId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateStoreId + +`func (o *ModelsCertificateLocationSpecifier) SetCertificateStoreId(v string)` + +SetCertificateStoreId sets CertificateStoreId field to given value. + +### HasCertificateStoreId + +`func (o *ModelsCertificateLocationSpecifier) HasCertificateStoreId() bool` + +HasCertificateStoreId returns a boolean if a field has been set. + +### GetJobFields + +`func (o *ModelsCertificateLocationSpecifier) GetJobFields() map[string]map[string]interface{}` + +GetJobFields returns the JobFields field if non-nil, zero value otherwise. + +### GetJobFieldsOk + +`func (o *ModelsCertificateLocationSpecifier) GetJobFieldsOk() (*map[string]map[string]interface{}, bool)` + +GetJobFieldsOk returns a tuple with the JobFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobFields + +`func (o *ModelsCertificateLocationSpecifier) SetJobFields(v map[string]map[string]interface{})` + +SetJobFields sets JobFields field to given value. + +### HasJobFields + +`func (o *ModelsCertificateLocationSpecifier) HasJobFields() bool` + +HasJobFields returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsCertificateQuery.md b/v1/docs/ModelsCertificateQuery.md new file mode 100644 index 0000000..9940bce --- /dev/null +++ b/v1/docs/ModelsCertificateQuery.md @@ -0,0 +1,238 @@ +# ModelsCertificateQuery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**Automated** | Pointer to **bool** | | [optional] +**Content** | Pointer to **string** | | [optional] +**DuplicationField** | Pointer to **int32** | | [optional] +**ShowOnDashboard** | Pointer to **bool** | | [optional] +**Favorite** | Pointer to **bool** | | [optional] + +## Methods + +### NewModelsCertificateQuery + +`func NewModelsCertificateQuery() *ModelsCertificateQuery` + +NewModelsCertificateQuery instantiates a new ModelsCertificateQuery object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsCertificateQueryWithDefaults + +`func NewModelsCertificateQueryWithDefaults() *ModelsCertificateQuery` + +NewModelsCertificateQueryWithDefaults instantiates a new ModelsCertificateQuery object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsCertificateQuery) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsCertificateQuery) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsCertificateQuery) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ModelsCertificateQuery) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *ModelsCertificateQuery) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ModelsCertificateQuery) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ModelsCertificateQuery) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ModelsCertificateQuery) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDescription + +`func (o *ModelsCertificateQuery) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ModelsCertificateQuery) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *ModelsCertificateQuery) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ModelsCertificateQuery) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetAutomated + +`func (o *ModelsCertificateQuery) GetAutomated() bool` + +GetAutomated returns the Automated field if non-nil, zero value otherwise. + +### GetAutomatedOk + +`func (o *ModelsCertificateQuery) GetAutomatedOk() (*bool, bool)` + +GetAutomatedOk returns a tuple with the Automated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAutomated + +`func (o *ModelsCertificateQuery) SetAutomated(v bool)` + +SetAutomated sets Automated field to given value. + +### HasAutomated + +`func (o *ModelsCertificateQuery) HasAutomated() bool` + +HasAutomated returns a boolean if a field has been set. + +### GetContent + +`func (o *ModelsCertificateQuery) GetContent() string` + +GetContent returns the Content field if non-nil, zero value otherwise. + +### GetContentOk + +`func (o *ModelsCertificateQuery) GetContentOk() (*string, bool)` + +GetContentOk returns a tuple with the Content field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContent + +`func (o *ModelsCertificateQuery) SetContent(v string)` + +SetContent sets Content field to given value. + +### HasContent + +`func (o *ModelsCertificateQuery) HasContent() bool` + +HasContent returns a boolean if a field has been set. + +### GetDuplicationField + +`func (o *ModelsCertificateQuery) GetDuplicationField() int32` + +GetDuplicationField returns the DuplicationField field if non-nil, zero value otherwise. + +### GetDuplicationFieldOk + +`func (o *ModelsCertificateQuery) GetDuplicationFieldOk() (*int32, bool)` + +GetDuplicationFieldOk returns a tuple with the DuplicationField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDuplicationField + +`func (o *ModelsCertificateQuery) SetDuplicationField(v int32)` + +SetDuplicationField sets DuplicationField field to given value. + +### HasDuplicationField + +`func (o *ModelsCertificateQuery) HasDuplicationField() bool` + +HasDuplicationField returns a boolean if a field has been set. + +### GetShowOnDashboard + +`func (o *ModelsCertificateQuery) GetShowOnDashboard() bool` + +GetShowOnDashboard returns the ShowOnDashboard field if non-nil, zero value otherwise. + +### GetShowOnDashboardOk + +`func (o *ModelsCertificateQuery) GetShowOnDashboardOk() (*bool, bool)` + +GetShowOnDashboardOk returns a tuple with the ShowOnDashboard field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShowOnDashboard + +`func (o *ModelsCertificateQuery) SetShowOnDashboard(v bool)` + +SetShowOnDashboard sets ShowOnDashboard field to given value. + +### HasShowOnDashboard + +`func (o *ModelsCertificateQuery) HasShowOnDashboard() bool` + +HasShowOnDashboard returns a boolean if a field has been set. + +### GetFavorite + +`func (o *ModelsCertificateQuery) GetFavorite() bool` + +GetFavorite returns the Favorite field if non-nil, zero value otherwise. + +### GetFavoriteOk + +`func (o *ModelsCertificateQuery) GetFavoriteOk() (*bool, bool)` + +GetFavoriteOk returns a tuple with the Favorite field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFavorite + +`func (o *ModelsCertificateQuery) SetFavorite(v bool)` + +SetFavorite sets Favorite field to given value. + +### HasFavorite + +`func (o *ModelsCertificateQuery) HasFavorite() bool` + +HasFavorite returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsCertificateRecoveryRequest.md b/v1/docs/ModelsCertificateRecoveryRequest.md new file mode 100644 index 0000000..a6cd151 --- /dev/null +++ b/v1/docs/ModelsCertificateRecoveryRequest.md @@ -0,0 +1,191 @@ +# ModelsCertificateRecoveryRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Password** | **string** | | +**CertID** | Pointer to **int32** | | [optional] +**SerialNumber** | Pointer to **string** | | [optional] +**IssuerDN** | Pointer to **NullableString** | | [optional] +**Thumbprint** | Pointer to **string** | | [optional] +**IncludeChain** | Pointer to **bool** | | [optional] + +## Methods + +### NewModelsCertificateRecoveryRequest + +`func NewModelsCertificateRecoveryRequest(password string, ) *ModelsCertificateRecoveryRequest` + +NewModelsCertificateRecoveryRequest instantiates a new ModelsCertificateRecoveryRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsCertificateRecoveryRequestWithDefaults + +`func NewModelsCertificateRecoveryRequestWithDefaults() *ModelsCertificateRecoveryRequest` + +NewModelsCertificateRecoveryRequestWithDefaults instantiates a new ModelsCertificateRecoveryRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPassword + +`func (o *ModelsCertificateRecoveryRequest) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *ModelsCertificateRecoveryRequest) GetPasswordOk() (*string, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *ModelsCertificateRecoveryRequest) SetPassword(v string)` + +SetPassword sets Password field to given value. + + +### GetCertID + +`func (o *ModelsCertificateRecoveryRequest) GetCertID() int32` + +GetCertID returns the CertID field if non-nil, zero value otherwise. + +### GetCertIDOk + +`func (o *ModelsCertificateRecoveryRequest) GetCertIDOk() (*int32, bool)` + +GetCertIDOk returns a tuple with the CertID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertID + +`func (o *ModelsCertificateRecoveryRequest) SetCertID(v int32)` + +SetCertID sets CertID field to given value. + +### HasCertID + +`func (o *ModelsCertificateRecoveryRequest) HasCertID() bool` + +HasCertID returns a boolean if a field has been set. + +### GetSerialNumber + +`func (o *ModelsCertificateRecoveryRequest) GetSerialNumber() string` + +GetSerialNumber returns the SerialNumber field if non-nil, zero value otherwise. + +### GetSerialNumberOk + +`func (o *ModelsCertificateRecoveryRequest) GetSerialNumberOk() (*string, bool)` + +GetSerialNumberOk returns a tuple with the SerialNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerialNumber + +`func (o *ModelsCertificateRecoveryRequest) SetSerialNumber(v string)` + +SetSerialNumber sets SerialNumber field to given value. + +### HasSerialNumber + +`func (o *ModelsCertificateRecoveryRequest) HasSerialNumber() bool` + +HasSerialNumber returns a boolean if a field has been set. + +### GetIssuerDN + +`func (o *ModelsCertificateRecoveryRequest) GetIssuerDN() string` + +GetIssuerDN returns the IssuerDN field if non-nil, zero value otherwise. + +### GetIssuerDNOk + +`func (o *ModelsCertificateRecoveryRequest) GetIssuerDNOk() (*string, bool)` + +GetIssuerDNOk returns a tuple with the IssuerDN field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuerDN + +`func (o *ModelsCertificateRecoveryRequest) SetIssuerDN(v string)` + +SetIssuerDN sets IssuerDN field to given value. + +### HasIssuerDN + +`func (o *ModelsCertificateRecoveryRequest) HasIssuerDN() bool` + +HasIssuerDN returns a boolean if a field has been set. + +### SetIssuerDNNil + +`func (o *ModelsCertificateRecoveryRequest) SetIssuerDNNil(b bool)` + + SetIssuerDNNil sets the value for IssuerDN to be an explicit nil + +### UnsetIssuerDN +`func (o *ModelsCertificateRecoveryRequest) UnsetIssuerDN()` + +UnsetIssuerDN ensures that no value is present for IssuerDN, not even an explicit nil +### GetThumbprint + +`func (o *ModelsCertificateRecoveryRequest) GetThumbprint() string` + +GetThumbprint returns the Thumbprint field if non-nil, zero value otherwise. + +### GetThumbprintOk + +`func (o *ModelsCertificateRecoveryRequest) GetThumbprintOk() (*string, bool)` + +GetThumbprintOk returns a tuple with the Thumbprint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThumbprint + +`func (o *ModelsCertificateRecoveryRequest) SetThumbprint(v string)` + +SetThumbprint sets Thumbprint field to given value. + +### HasThumbprint + +`func (o *ModelsCertificateRecoveryRequest) HasThumbprint() bool` + +HasThumbprint returns a boolean if a field has been set. + +### GetIncludeChain + +`func (o *ModelsCertificateRecoveryRequest) GetIncludeChain() bool` + +GetIncludeChain returns the IncludeChain field if non-nil, zero value otherwise. + +### GetIncludeChainOk + +`func (o *ModelsCertificateRecoveryRequest) GetIncludeChainOk() (*bool, bool)` + +GetIncludeChainOk returns a tuple with the IncludeChain field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIncludeChain + +`func (o *ModelsCertificateRecoveryRequest) SetIncludeChain(v bool)` + +SetIncludeChain sets IncludeChain field to given value. + +### HasIncludeChain + +`func (o *ModelsCertificateRecoveryRequest) HasIncludeChain() bool` + +HasIncludeChain returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsCertificateRetrievalResponse.md b/v1/docs/ModelsCertificateRetrievalResponse.md new file mode 100644 index 0000000..718b2d4 --- /dev/null +++ b/v1/docs/ModelsCertificateRetrievalResponse.md @@ -0,0 +1,1336 @@ +# ModelsCertificateRetrievalResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Thumbprint** | Pointer to **string** | | [optional] +**SerialNumber** | Pointer to **string** | | [optional] +**IssuedDN** | Pointer to **NullableString** | | [optional] +**IssuedCN** | Pointer to **NullableString** | | [optional] +**ImportDate** | Pointer to **time.Time** | | [optional] +**NotBefore** | Pointer to **time.Time** | | [optional] +**NotAfter** | Pointer to **time.Time** | | [optional] +**IssuerDN** | Pointer to **NullableString** | | [optional] +**PrincipalId** | Pointer to **NullableInt32** | | [optional] +**TemplateId** | Pointer to **int32** | | [optional] +**CertState** | Pointer to **int32** | | [optional] +**KeySizeInBits** | Pointer to **int32** | | [optional] +**KeyType** | Pointer to **int32** | | [optional] +**RequesterId** | Pointer to **int32** | | [optional] +**IssuedOU** | Pointer to **NullableString** | | [optional] +**IssuedEmail** | Pointer to **NullableString** | | [optional] +**KeyUsage** | Pointer to **int32** | | [optional] +**SigningAlgorithm** | Pointer to **string** | | [optional] +**CertStateString** | Pointer to **string** | | [optional] +**KeyTypeString** | Pointer to **string** | | [optional] +**RevocationEffDate** | Pointer to **NullableTime** | | [optional] +**RevocationReason** | Pointer to **NullableInt32** | | [optional] +**RevocationComment** | Pointer to **NullableString** | | [optional] +**CertificateAuthorityId** | Pointer to **int32** | | [optional] +**CertificateAuthorityName** | Pointer to **string** | | [optional] +**TemplateName** | Pointer to **string** | Full template display name. | [optional] +**ArchivedKey** | Pointer to **bool** | | [optional] +**HasPrivateKey** | Pointer to **bool** | | [optional] +**PrincipalName** | Pointer to **NullableString** | | [optional] +**CertRequestId** | Pointer to **int32** | | [optional] +**RequesterName** | Pointer to **string** | | [optional] +**ContentBytes** | Pointer to **string** | | [optional] +**ExtendedKeyUsages** | Pointer to [**[]ModelsCertificateRetrievalResponseExtendedKeyUsageModel**](ModelsCertificateRetrievalResponseExtendedKeyUsageModel.md) | | [optional] +**SubjectAltNameElements** | Pointer to [**[]ModelsCertificateRetrievalResponseSubjectAlternativeNameModel**](ModelsCertificateRetrievalResponseSubjectAlternativeNameModel.md) | | [optional] +**CRLDistributionPoints** | Pointer to [**[]ModelsCertificateRetrievalResponseCRLDistributionPointModel**](ModelsCertificateRetrievalResponseCRLDistributionPointModel.md) | | [optional] +**LocationsCount** | Pointer to [**[]ModelsCertificateRetrievalResponseLocationCountModel**](ModelsCertificateRetrievalResponseLocationCountModel.md) | | [optional] +**SSLLocations** | Pointer to [**[]ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel**](ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel.md) | | [optional] +**Locations** | Pointer to [**[]ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel**](ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel.md) | | [optional] +**Metadata** | Pointer to **map[string]string** | | [optional] +**CertificateKeyId** | Pointer to **int32** | | [optional] +**CARowIndex** | Pointer to **int64** | | [optional] [readonly] +**CARecordId** | Pointer to **string** | | [optional] +**DetailedKeyUsage** | Pointer to [**ModelsCertificateRetrievalResponseDetailedKeyUsageModel**](ModelsCertificateRetrievalResponseDetailedKeyUsageModel.md) | | [optional] +**KeyRecoverable** | Pointer to **bool** | | [optional] +**Curve** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewModelsCertificateRetrievalResponse + +`func NewModelsCertificateRetrievalResponse() *ModelsCertificateRetrievalResponse` + +NewModelsCertificateRetrievalResponse instantiates a new ModelsCertificateRetrievalResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsCertificateRetrievalResponseWithDefaults + +`func NewModelsCertificateRetrievalResponseWithDefaults() *ModelsCertificateRetrievalResponse` + +NewModelsCertificateRetrievalResponseWithDefaults instantiates a new ModelsCertificateRetrievalResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsCertificateRetrievalResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsCertificateRetrievalResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsCertificateRetrievalResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ModelsCertificateRetrievalResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetThumbprint + +`func (o *ModelsCertificateRetrievalResponse) GetThumbprint() string` + +GetThumbprint returns the Thumbprint field if non-nil, zero value otherwise. + +### GetThumbprintOk + +`func (o *ModelsCertificateRetrievalResponse) GetThumbprintOk() (*string, bool)` + +GetThumbprintOk returns a tuple with the Thumbprint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThumbprint + +`func (o *ModelsCertificateRetrievalResponse) SetThumbprint(v string)` + +SetThumbprint sets Thumbprint field to given value. + +### HasThumbprint + +`func (o *ModelsCertificateRetrievalResponse) HasThumbprint() bool` + +HasThumbprint returns a boolean if a field has been set. + +### GetSerialNumber + +`func (o *ModelsCertificateRetrievalResponse) GetSerialNumber() string` + +GetSerialNumber returns the SerialNumber field if non-nil, zero value otherwise. + +### GetSerialNumberOk + +`func (o *ModelsCertificateRetrievalResponse) GetSerialNumberOk() (*string, bool)` + +GetSerialNumberOk returns a tuple with the SerialNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerialNumber + +`func (o *ModelsCertificateRetrievalResponse) SetSerialNumber(v string)` + +SetSerialNumber sets SerialNumber field to given value. + +### HasSerialNumber + +`func (o *ModelsCertificateRetrievalResponse) HasSerialNumber() bool` + +HasSerialNumber returns a boolean if a field has been set. + +### GetIssuedDN + +`func (o *ModelsCertificateRetrievalResponse) GetIssuedDN() string` + +GetIssuedDN returns the IssuedDN field if non-nil, zero value otherwise. + +### GetIssuedDNOk + +`func (o *ModelsCertificateRetrievalResponse) GetIssuedDNOk() (*string, bool)` + +GetIssuedDNOk returns a tuple with the IssuedDN field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuedDN + +`func (o *ModelsCertificateRetrievalResponse) SetIssuedDN(v string)` + +SetIssuedDN sets IssuedDN field to given value. + +### HasIssuedDN + +`func (o *ModelsCertificateRetrievalResponse) HasIssuedDN() bool` + +HasIssuedDN returns a boolean if a field has been set. + +### SetIssuedDNNil + +`func (o *ModelsCertificateRetrievalResponse) SetIssuedDNNil(b bool)` + + SetIssuedDNNil sets the value for IssuedDN to be an explicit nil + +### UnsetIssuedDN +`func (o *ModelsCertificateRetrievalResponse) UnsetIssuedDN()` + +UnsetIssuedDN ensures that no value is present for IssuedDN, not even an explicit nil +### GetIssuedCN + +`func (o *ModelsCertificateRetrievalResponse) GetIssuedCN() string` + +GetIssuedCN returns the IssuedCN field if non-nil, zero value otherwise. + +### GetIssuedCNOk + +`func (o *ModelsCertificateRetrievalResponse) GetIssuedCNOk() (*string, bool)` + +GetIssuedCNOk returns a tuple with the IssuedCN field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuedCN + +`func (o *ModelsCertificateRetrievalResponse) SetIssuedCN(v string)` + +SetIssuedCN sets IssuedCN field to given value. + +### HasIssuedCN + +`func (o *ModelsCertificateRetrievalResponse) HasIssuedCN() bool` + +HasIssuedCN returns a boolean if a field has been set. + +### SetIssuedCNNil + +`func (o *ModelsCertificateRetrievalResponse) SetIssuedCNNil(b bool)` + + SetIssuedCNNil sets the value for IssuedCN to be an explicit nil + +### UnsetIssuedCN +`func (o *ModelsCertificateRetrievalResponse) UnsetIssuedCN()` + +UnsetIssuedCN ensures that no value is present for IssuedCN, not even an explicit nil +### GetImportDate + +`func (o *ModelsCertificateRetrievalResponse) GetImportDate() time.Time` + +GetImportDate returns the ImportDate field if non-nil, zero value otherwise. + +### GetImportDateOk + +`func (o *ModelsCertificateRetrievalResponse) GetImportDateOk() (*time.Time, bool)` + +GetImportDateOk returns a tuple with the ImportDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImportDate + +`func (o *ModelsCertificateRetrievalResponse) SetImportDate(v time.Time)` + +SetImportDate sets ImportDate field to given value. + +### HasImportDate + +`func (o *ModelsCertificateRetrievalResponse) HasImportDate() bool` + +HasImportDate returns a boolean if a field has been set. + +### GetNotBefore + +`func (o *ModelsCertificateRetrievalResponse) GetNotBefore() time.Time` + +GetNotBefore returns the NotBefore field if non-nil, zero value otherwise. + +### GetNotBeforeOk + +`func (o *ModelsCertificateRetrievalResponse) GetNotBeforeOk() (*time.Time, bool)` + +GetNotBeforeOk returns a tuple with the NotBefore field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNotBefore + +`func (o *ModelsCertificateRetrievalResponse) SetNotBefore(v time.Time)` + +SetNotBefore sets NotBefore field to given value. + +### HasNotBefore + +`func (o *ModelsCertificateRetrievalResponse) HasNotBefore() bool` + +HasNotBefore returns a boolean if a field has been set. + +### GetNotAfter + +`func (o *ModelsCertificateRetrievalResponse) GetNotAfter() time.Time` + +GetNotAfter returns the NotAfter field if non-nil, zero value otherwise. + +### GetNotAfterOk + +`func (o *ModelsCertificateRetrievalResponse) GetNotAfterOk() (*time.Time, bool)` + +GetNotAfterOk returns a tuple with the NotAfter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNotAfter + +`func (o *ModelsCertificateRetrievalResponse) SetNotAfter(v time.Time)` + +SetNotAfter sets NotAfter field to given value. + +### HasNotAfter + +`func (o *ModelsCertificateRetrievalResponse) HasNotAfter() bool` + +HasNotAfter returns a boolean if a field has been set. + +### GetIssuerDN + +`func (o *ModelsCertificateRetrievalResponse) GetIssuerDN() string` + +GetIssuerDN returns the IssuerDN field if non-nil, zero value otherwise. + +### GetIssuerDNOk + +`func (o *ModelsCertificateRetrievalResponse) GetIssuerDNOk() (*string, bool)` + +GetIssuerDNOk returns a tuple with the IssuerDN field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuerDN + +`func (o *ModelsCertificateRetrievalResponse) SetIssuerDN(v string)` + +SetIssuerDN sets IssuerDN field to given value. + +### HasIssuerDN + +`func (o *ModelsCertificateRetrievalResponse) HasIssuerDN() bool` + +HasIssuerDN returns a boolean if a field has been set. + +### SetIssuerDNNil + +`func (o *ModelsCertificateRetrievalResponse) SetIssuerDNNil(b bool)` + + SetIssuerDNNil sets the value for IssuerDN to be an explicit nil + +### UnsetIssuerDN +`func (o *ModelsCertificateRetrievalResponse) UnsetIssuerDN()` + +UnsetIssuerDN ensures that no value is present for IssuerDN, not even an explicit nil +### GetPrincipalId + +`func (o *ModelsCertificateRetrievalResponse) GetPrincipalId() int32` + +GetPrincipalId returns the PrincipalId field if non-nil, zero value otherwise. + +### GetPrincipalIdOk + +`func (o *ModelsCertificateRetrievalResponse) GetPrincipalIdOk() (*int32, bool)` + +GetPrincipalIdOk returns a tuple with the PrincipalId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrincipalId + +`func (o *ModelsCertificateRetrievalResponse) SetPrincipalId(v int32)` + +SetPrincipalId sets PrincipalId field to given value. + +### HasPrincipalId + +`func (o *ModelsCertificateRetrievalResponse) HasPrincipalId() bool` + +HasPrincipalId returns a boolean if a field has been set. + +### SetPrincipalIdNil + +`func (o *ModelsCertificateRetrievalResponse) SetPrincipalIdNil(b bool)` + + SetPrincipalIdNil sets the value for PrincipalId to be an explicit nil + +### UnsetPrincipalId +`func (o *ModelsCertificateRetrievalResponse) UnsetPrincipalId()` + +UnsetPrincipalId ensures that no value is present for PrincipalId, not even an explicit nil +### GetTemplateId + +`func (o *ModelsCertificateRetrievalResponse) GetTemplateId() int32` + +GetTemplateId returns the TemplateId field if non-nil, zero value otherwise. + +### GetTemplateIdOk + +`func (o *ModelsCertificateRetrievalResponse) GetTemplateIdOk() (*int32, bool)` + +GetTemplateIdOk returns a tuple with the TemplateId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateId + +`func (o *ModelsCertificateRetrievalResponse) SetTemplateId(v int32)` + +SetTemplateId sets TemplateId field to given value. + +### HasTemplateId + +`func (o *ModelsCertificateRetrievalResponse) HasTemplateId() bool` + +HasTemplateId returns a boolean if a field has been set. + +### GetCertState + +`func (o *ModelsCertificateRetrievalResponse) GetCertState() int32` + +GetCertState returns the CertState field if non-nil, zero value otherwise. + +### GetCertStateOk + +`func (o *ModelsCertificateRetrievalResponse) GetCertStateOk() (*int32, bool)` + +GetCertStateOk returns a tuple with the CertState field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertState + +`func (o *ModelsCertificateRetrievalResponse) SetCertState(v int32)` + +SetCertState sets CertState field to given value. + +### HasCertState + +`func (o *ModelsCertificateRetrievalResponse) HasCertState() bool` + +HasCertState returns a boolean if a field has been set. + +### GetKeySizeInBits + +`func (o *ModelsCertificateRetrievalResponse) GetKeySizeInBits() int32` + +GetKeySizeInBits returns the KeySizeInBits field if non-nil, zero value otherwise. + +### GetKeySizeInBitsOk + +`func (o *ModelsCertificateRetrievalResponse) GetKeySizeInBitsOk() (*int32, bool)` + +GetKeySizeInBitsOk returns a tuple with the KeySizeInBits field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeySizeInBits + +`func (o *ModelsCertificateRetrievalResponse) SetKeySizeInBits(v int32)` + +SetKeySizeInBits sets KeySizeInBits field to given value. + +### HasKeySizeInBits + +`func (o *ModelsCertificateRetrievalResponse) HasKeySizeInBits() bool` + +HasKeySizeInBits returns a boolean if a field has been set. + +### GetKeyType + +`func (o *ModelsCertificateRetrievalResponse) GetKeyType() int32` + +GetKeyType returns the KeyType field if non-nil, zero value otherwise. + +### GetKeyTypeOk + +`func (o *ModelsCertificateRetrievalResponse) GetKeyTypeOk() (*int32, bool)` + +GetKeyTypeOk returns a tuple with the KeyType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyType + +`func (o *ModelsCertificateRetrievalResponse) SetKeyType(v int32)` + +SetKeyType sets KeyType field to given value. + +### HasKeyType + +`func (o *ModelsCertificateRetrievalResponse) HasKeyType() bool` + +HasKeyType returns a boolean if a field has been set. + +### GetRequesterId + +`func (o *ModelsCertificateRetrievalResponse) GetRequesterId() int32` + +GetRequesterId returns the RequesterId field if non-nil, zero value otherwise. + +### GetRequesterIdOk + +`func (o *ModelsCertificateRetrievalResponse) GetRequesterIdOk() (*int32, bool)` + +GetRequesterIdOk returns a tuple with the RequesterId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequesterId + +`func (o *ModelsCertificateRetrievalResponse) SetRequesterId(v int32)` + +SetRequesterId sets RequesterId field to given value. + +### HasRequesterId + +`func (o *ModelsCertificateRetrievalResponse) HasRequesterId() bool` + +HasRequesterId returns a boolean if a field has been set. + +### GetIssuedOU + +`func (o *ModelsCertificateRetrievalResponse) GetIssuedOU() string` + +GetIssuedOU returns the IssuedOU field if non-nil, zero value otherwise. + +### GetIssuedOUOk + +`func (o *ModelsCertificateRetrievalResponse) GetIssuedOUOk() (*string, bool)` + +GetIssuedOUOk returns a tuple with the IssuedOU field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuedOU + +`func (o *ModelsCertificateRetrievalResponse) SetIssuedOU(v string)` + +SetIssuedOU sets IssuedOU field to given value. + +### HasIssuedOU + +`func (o *ModelsCertificateRetrievalResponse) HasIssuedOU() bool` + +HasIssuedOU returns a boolean if a field has been set. + +### SetIssuedOUNil + +`func (o *ModelsCertificateRetrievalResponse) SetIssuedOUNil(b bool)` + + SetIssuedOUNil sets the value for IssuedOU to be an explicit nil + +### UnsetIssuedOU +`func (o *ModelsCertificateRetrievalResponse) UnsetIssuedOU()` + +UnsetIssuedOU ensures that no value is present for IssuedOU, not even an explicit nil +### GetIssuedEmail + +`func (o *ModelsCertificateRetrievalResponse) GetIssuedEmail() string` + +GetIssuedEmail returns the IssuedEmail field if non-nil, zero value otherwise. + +### GetIssuedEmailOk + +`func (o *ModelsCertificateRetrievalResponse) GetIssuedEmailOk() (*string, bool)` + +GetIssuedEmailOk returns a tuple with the IssuedEmail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuedEmail + +`func (o *ModelsCertificateRetrievalResponse) SetIssuedEmail(v string)` + +SetIssuedEmail sets IssuedEmail field to given value. + +### HasIssuedEmail + +`func (o *ModelsCertificateRetrievalResponse) HasIssuedEmail() bool` + +HasIssuedEmail returns a boolean if a field has been set. + +### SetIssuedEmailNil + +`func (o *ModelsCertificateRetrievalResponse) SetIssuedEmailNil(b bool)` + + SetIssuedEmailNil sets the value for IssuedEmail to be an explicit nil + +### UnsetIssuedEmail +`func (o *ModelsCertificateRetrievalResponse) UnsetIssuedEmail()` + +UnsetIssuedEmail ensures that no value is present for IssuedEmail, not even an explicit nil +### GetKeyUsage + +`func (o *ModelsCertificateRetrievalResponse) GetKeyUsage() int32` + +GetKeyUsage returns the KeyUsage field if non-nil, zero value otherwise. + +### GetKeyUsageOk + +`func (o *ModelsCertificateRetrievalResponse) GetKeyUsageOk() (*int32, bool)` + +GetKeyUsageOk returns a tuple with the KeyUsage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyUsage + +`func (o *ModelsCertificateRetrievalResponse) SetKeyUsage(v int32)` + +SetKeyUsage sets KeyUsage field to given value. + +### HasKeyUsage + +`func (o *ModelsCertificateRetrievalResponse) HasKeyUsage() bool` + +HasKeyUsage returns a boolean if a field has been set. + +### GetSigningAlgorithm + +`func (o *ModelsCertificateRetrievalResponse) GetSigningAlgorithm() string` + +GetSigningAlgorithm returns the SigningAlgorithm field if non-nil, zero value otherwise. + +### GetSigningAlgorithmOk + +`func (o *ModelsCertificateRetrievalResponse) GetSigningAlgorithmOk() (*string, bool)` + +GetSigningAlgorithmOk returns a tuple with the SigningAlgorithm field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSigningAlgorithm + +`func (o *ModelsCertificateRetrievalResponse) SetSigningAlgorithm(v string)` + +SetSigningAlgorithm sets SigningAlgorithm field to given value. + +### HasSigningAlgorithm + +`func (o *ModelsCertificateRetrievalResponse) HasSigningAlgorithm() bool` + +HasSigningAlgorithm returns a boolean if a field has been set. + +### GetCertStateString + +`func (o *ModelsCertificateRetrievalResponse) GetCertStateString() string` + +GetCertStateString returns the CertStateString field if non-nil, zero value otherwise. + +### GetCertStateStringOk + +`func (o *ModelsCertificateRetrievalResponse) GetCertStateStringOk() (*string, bool)` + +GetCertStateStringOk returns a tuple with the CertStateString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertStateString + +`func (o *ModelsCertificateRetrievalResponse) SetCertStateString(v string)` + +SetCertStateString sets CertStateString field to given value. + +### HasCertStateString + +`func (o *ModelsCertificateRetrievalResponse) HasCertStateString() bool` + +HasCertStateString returns a boolean if a field has been set. + +### GetKeyTypeString + +`func (o *ModelsCertificateRetrievalResponse) GetKeyTypeString() string` + +GetKeyTypeString returns the KeyTypeString field if non-nil, zero value otherwise. + +### GetKeyTypeStringOk + +`func (o *ModelsCertificateRetrievalResponse) GetKeyTypeStringOk() (*string, bool)` + +GetKeyTypeStringOk returns a tuple with the KeyTypeString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyTypeString + +`func (o *ModelsCertificateRetrievalResponse) SetKeyTypeString(v string)` + +SetKeyTypeString sets KeyTypeString field to given value. + +### HasKeyTypeString + +`func (o *ModelsCertificateRetrievalResponse) HasKeyTypeString() bool` + +HasKeyTypeString returns a boolean if a field has been set. + +### GetRevocationEffDate + +`func (o *ModelsCertificateRetrievalResponse) GetRevocationEffDate() time.Time` + +GetRevocationEffDate returns the RevocationEffDate field if non-nil, zero value otherwise. + +### GetRevocationEffDateOk + +`func (o *ModelsCertificateRetrievalResponse) GetRevocationEffDateOk() (*time.Time, bool)` + +GetRevocationEffDateOk returns a tuple with the RevocationEffDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRevocationEffDate + +`func (o *ModelsCertificateRetrievalResponse) SetRevocationEffDate(v time.Time)` + +SetRevocationEffDate sets RevocationEffDate field to given value. + +### HasRevocationEffDate + +`func (o *ModelsCertificateRetrievalResponse) HasRevocationEffDate() bool` + +HasRevocationEffDate returns a boolean if a field has been set. + +### SetRevocationEffDateNil + +`func (o *ModelsCertificateRetrievalResponse) SetRevocationEffDateNil(b bool)` + + SetRevocationEffDateNil sets the value for RevocationEffDate to be an explicit nil + +### UnsetRevocationEffDate +`func (o *ModelsCertificateRetrievalResponse) UnsetRevocationEffDate()` + +UnsetRevocationEffDate ensures that no value is present for RevocationEffDate, not even an explicit nil +### GetRevocationReason + +`func (o *ModelsCertificateRetrievalResponse) GetRevocationReason() int32` + +GetRevocationReason returns the RevocationReason field if non-nil, zero value otherwise. + +### GetRevocationReasonOk + +`func (o *ModelsCertificateRetrievalResponse) GetRevocationReasonOk() (*int32, bool)` + +GetRevocationReasonOk returns a tuple with the RevocationReason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRevocationReason + +`func (o *ModelsCertificateRetrievalResponse) SetRevocationReason(v int32)` + +SetRevocationReason sets RevocationReason field to given value. + +### HasRevocationReason + +`func (o *ModelsCertificateRetrievalResponse) HasRevocationReason() bool` + +HasRevocationReason returns a boolean if a field has been set. + +### SetRevocationReasonNil + +`func (o *ModelsCertificateRetrievalResponse) SetRevocationReasonNil(b bool)` + + SetRevocationReasonNil sets the value for RevocationReason to be an explicit nil + +### UnsetRevocationReason +`func (o *ModelsCertificateRetrievalResponse) UnsetRevocationReason()` + +UnsetRevocationReason ensures that no value is present for RevocationReason, not even an explicit nil +### GetRevocationComment + +`func (o *ModelsCertificateRetrievalResponse) GetRevocationComment() string` + +GetRevocationComment returns the RevocationComment field if non-nil, zero value otherwise. + +### GetRevocationCommentOk + +`func (o *ModelsCertificateRetrievalResponse) GetRevocationCommentOk() (*string, bool)` + +GetRevocationCommentOk returns a tuple with the RevocationComment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRevocationComment + +`func (o *ModelsCertificateRetrievalResponse) SetRevocationComment(v string)` + +SetRevocationComment sets RevocationComment field to given value. + +### HasRevocationComment + +`func (o *ModelsCertificateRetrievalResponse) HasRevocationComment() bool` + +HasRevocationComment returns a boolean if a field has been set. + +### SetRevocationCommentNil + +`func (o *ModelsCertificateRetrievalResponse) SetRevocationCommentNil(b bool)` + + SetRevocationCommentNil sets the value for RevocationComment to be an explicit nil + +### UnsetRevocationComment +`func (o *ModelsCertificateRetrievalResponse) UnsetRevocationComment()` + +UnsetRevocationComment ensures that no value is present for RevocationComment, not even an explicit nil +### GetCertificateAuthorityId + +`func (o *ModelsCertificateRetrievalResponse) GetCertificateAuthorityId() int32` + +GetCertificateAuthorityId returns the CertificateAuthorityId field if non-nil, zero value otherwise. + +### GetCertificateAuthorityIdOk + +`func (o *ModelsCertificateRetrievalResponse) GetCertificateAuthorityIdOk() (*int32, bool)` + +GetCertificateAuthorityIdOk returns a tuple with the CertificateAuthorityId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateAuthorityId + +`func (o *ModelsCertificateRetrievalResponse) SetCertificateAuthorityId(v int32)` + +SetCertificateAuthorityId sets CertificateAuthorityId field to given value. + +### HasCertificateAuthorityId + +`func (o *ModelsCertificateRetrievalResponse) HasCertificateAuthorityId() bool` + +HasCertificateAuthorityId returns a boolean if a field has been set. + +### GetCertificateAuthorityName + +`func (o *ModelsCertificateRetrievalResponse) GetCertificateAuthorityName() string` + +GetCertificateAuthorityName returns the CertificateAuthorityName field if non-nil, zero value otherwise. + +### GetCertificateAuthorityNameOk + +`func (o *ModelsCertificateRetrievalResponse) GetCertificateAuthorityNameOk() (*string, bool)` + +GetCertificateAuthorityNameOk returns a tuple with the CertificateAuthorityName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateAuthorityName + +`func (o *ModelsCertificateRetrievalResponse) SetCertificateAuthorityName(v string)` + +SetCertificateAuthorityName sets CertificateAuthorityName field to given value. + +### HasCertificateAuthorityName + +`func (o *ModelsCertificateRetrievalResponse) HasCertificateAuthorityName() bool` + +HasCertificateAuthorityName returns a boolean if a field has been set. + +### GetTemplateName + +`func (o *ModelsCertificateRetrievalResponse) GetTemplateName() string` + +GetTemplateName returns the TemplateName field if non-nil, zero value otherwise. + +### GetTemplateNameOk + +`func (o *ModelsCertificateRetrievalResponse) GetTemplateNameOk() (*string, bool)` + +GetTemplateNameOk returns a tuple with the TemplateName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateName + +`func (o *ModelsCertificateRetrievalResponse) SetTemplateName(v string)` + +SetTemplateName sets TemplateName field to given value. + +### HasTemplateName + +`func (o *ModelsCertificateRetrievalResponse) HasTemplateName() bool` + +HasTemplateName returns a boolean if a field has been set. + +### GetArchivedKey + +`func (o *ModelsCertificateRetrievalResponse) GetArchivedKey() bool` + +GetArchivedKey returns the ArchivedKey field if non-nil, zero value otherwise. + +### GetArchivedKeyOk + +`func (o *ModelsCertificateRetrievalResponse) GetArchivedKeyOk() (*bool, bool)` + +GetArchivedKeyOk returns a tuple with the ArchivedKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArchivedKey + +`func (o *ModelsCertificateRetrievalResponse) SetArchivedKey(v bool)` + +SetArchivedKey sets ArchivedKey field to given value. + +### HasArchivedKey + +`func (o *ModelsCertificateRetrievalResponse) HasArchivedKey() bool` + +HasArchivedKey returns a boolean if a field has been set. + +### GetHasPrivateKey + +`func (o *ModelsCertificateRetrievalResponse) GetHasPrivateKey() bool` + +GetHasPrivateKey returns the HasPrivateKey field if non-nil, zero value otherwise. + +### GetHasPrivateKeyOk + +`func (o *ModelsCertificateRetrievalResponse) GetHasPrivateKeyOk() (*bool, bool)` + +GetHasPrivateKeyOk returns a tuple with the HasPrivateKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHasPrivateKey + +`func (o *ModelsCertificateRetrievalResponse) SetHasPrivateKey(v bool)` + +SetHasPrivateKey sets HasPrivateKey field to given value. + +### HasHasPrivateKey + +`func (o *ModelsCertificateRetrievalResponse) HasHasPrivateKey() bool` + +HasHasPrivateKey returns a boolean if a field has been set. + +### GetPrincipalName + +`func (o *ModelsCertificateRetrievalResponse) GetPrincipalName() string` + +GetPrincipalName returns the PrincipalName field if non-nil, zero value otherwise. + +### GetPrincipalNameOk + +`func (o *ModelsCertificateRetrievalResponse) GetPrincipalNameOk() (*string, bool)` + +GetPrincipalNameOk returns a tuple with the PrincipalName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrincipalName + +`func (o *ModelsCertificateRetrievalResponse) SetPrincipalName(v string)` + +SetPrincipalName sets PrincipalName field to given value. + +### HasPrincipalName + +`func (o *ModelsCertificateRetrievalResponse) HasPrincipalName() bool` + +HasPrincipalName returns a boolean if a field has been set. + +### SetPrincipalNameNil + +`func (o *ModelsCertificateRetrievalResponse) SetPrincipalNameNil(b bool)` + + SetPrincipalNameNil sets the value for PrincipalName to be an explicit nil + +### UnsetPrincipalName +`func (o *ModelsCertificateRetrievalResponse) UnsetPrincipalName()` + +UnsetPrincipalName ensures that no value is present for PrincipalName, not even an explicit nil +### GetCertRequestId + +`func (o *ModelsCertificateRetrievalResponse) GetCertRequestId() int32` + +GetCertRequestId returns the CertRequestId field if non-nil, zero value otherwise. + +### GetCertRequestIdOk + +`func (o *ModelsCertificateRetrievalResponse) GetCertRequestIdOk() (*int32, bool)` + +GetCertRequestIdOk returns a tuple with the CertRequestId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertRequestId + +`func (o *ModelsCertificateRetrievalResponse) SetCertRequestId(v int32)` + +SetCertRequestId sets CertRequestId field to given value. + +### HasCertRequestId + +`func (o *ModelsCertificateRetrievalResponse) HasCertRequestId() bool` + +HasCertRequestId returns a boolean if a field has been set. + +### GetRequesterName + +`func (o *ModelsCertificateRetrievalResponse) GetRequesterName() string` + +GetRequesterName returns the RequesterName field if non-nil, zero value otherwise. + +### GetRequesterNameOk + +`func (o *ModelsCertificateRetrievalResponse) GetRequesterNameOk() (*string, bool)` + +GetRequesterNameOk returns a tuple with the RequesterName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequesterName + +`func (o *ModelsCertificateRetrievalResponse) SetRequesterName(v string)` + +SetRequesterName sets RequesterName field to given value. + +### HasRequesterName + +`func (o *ModelsCertificateRetrievalResponse) HasRequesterName() bool` + +HasRequesterName returns a boolean if a field has been set. + +### GetContentBytes + +`func (o *ModelsCertificateRetrievalResponse) GetContentBytes() string` + +GetContentBytes returns the ContentBytes field if non-nil, zero value otherwise. + +### GetContentBytesOk + +`func (o *ModelsCertificateRetrievalResponse) GetContentBytesOk() (*string, bool)` + +GetContentBytesOk returns a tuple with the ContentBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContentBytes + +`func (o *ModelsCertificateRetrievalResponse) SetContentBytes(v string)` + +SetContentBytes sets ContentBytes field to given value. + +### HasContentBytes + +`func (o *ModelsCertificateRetrievalResponse) HasContentBytes() bool` + +HasContentBytes returns a boolean if a field has been set. + +### GetExtendedKeyUsages + +`func (o *ModelsCertificateRetrievalResponse) GetExtendedKeyUsages() []ModelsCertificateRetrievalResponseExtendedKeyUsageModel` + +GetExtendedKeyUsages returns the ExtendedKeyUsages field if non-nil, zero value otherwise. + +### GetExtendedKeyUsagesOk + +`func (o *ModelsCertificateRetrievalResponse) GetExtendedKeyUsagesOk() (*[]ModelsCertificateRetrievalResponseExtendedKeyUsageModel, bool)` + +GetExtendedKeyUsagesOk returns a tuple with the ExtendedKeyUsages field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtendedKeyUsages + +`func (o *ModelsCertificateRetrievalResponse) SetExtendedKeyUsages(v []ModelsCertificateRetrievalResponseExtendedKeyUsageModel)` + +SetExtendedKeyUsages sets ExtendedKeyUsages field to given value. + +### HasExtendedKeyUsages + +`func (o *ModelsCertificateRetrievalResponse) HasExtendedKeyUsages() bool` + +HasExtendedKeyUsages returns a boolean if a field has been set. + +### GetSubjectAltNameElements + +`func (o *ModelsCertificateRetrievalResponse) GetSubjectAltNameElements() []ModelsCertificateRetrievalResponseSubjectAlternativeNameModel` + +GetSubjectAltNameElements returns the SubjectAltNameElements field if non-nil, zero value otherwise. + +### GetSubjectAltNameElementsOk + +`func (o *ModelsCertificateRetrievalResponse) GetSubjectAltNameElementsOk() (*[]ModelsCertificateRetrievalResponseSubjectAlternativeNameModel, bool)` + +GetSubjectAltNameElementsOk returns a tuple with the SubjectAltNameElements field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubjectAltNameElements + +`func (o *ModelsCertificateRetrievalResponse) SetSubjectAltNameElements(v []ModelsCertificateRetrievalResponseSubjectAlternativeNameModel)` + +SetSubjectAltNameElements sets SubjectAltNameElements field to given value. + +### HasSubjectAltNameElements + +`func (o *ModelsCertificateRetrievalResponse) HasSubjectAltNameElements() bool` + +HasSubjectAltNameElements returns a boolean if a field has been set. + +### GetCRLDistributionPoints + +`func (o *ModelsCertificateRetrievalResponse) GetCRLDistributionPoints() []ModelsCertificateRetrievalResponseCRLDistributionPointModel` + +GetCRLDistributionPoints returns the CRLDistributionPoints field if non-nil, zero value otherwise. + +### GetCRLDistributionPointsOk + +`func (o *ModelsCertificateRetrievalResponse) GetCRLDistributionPointsOk() (*[]ModelsCertificateRetrievalResponseCRLDistributionPointModel, bool)` + +GetCRLDistributionPointsOk returns a tuple with the CRLDistributionPoints field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCRLDistributionPoints + +`func (o *ModelsCertificateRetrievalResponse) SetCRLDistributionPoints(v []ModelsCertificateRetrievalResponseCRLDistributionPointModel)` + +SetCRLDistributionPoints sets CRLDistributionPoints field to given value. + +### HasCRLDistributionPoints + +`func (o *ModelsCertificateRetrievalResponse) HasCRLDistributionPoints() bool` + +HasCRLDistributionPoints returns a boolean if a field has been set. + +### GetLocationsCount + +`func (o *ModelsCertificateRetrievalResponse) GetLocationsCount() []ModelsCertificateRetrievalResponseLocationCountModel` + +GetLocationsCount returns the LocationsCount field if non-nil, zero value otherwise. + +### GetLocationsCountOk + +`func (o *ModelsCertificateRetrievalResponse) GetLocationsCountOk() (*[]ModelsCertificateRetrievalResponseLocationCountModel, bool)` + +GetLocationsCountOk returns a tuple with the LocationsCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocationsCount + +`func (o *ModelsCertificateRetrievalResponse) SetLocationsCount(v []ModelsCertificateRetrievalResponseLocationCountModel)` + +SetLocationsCount sets LocationsCount field to given value. + +### HasLocationsCount + +`func (o *ModelsCertificateRetrievalResponse) HasLocationsCount() bool` + +HasLocationsCount returns a boolean if a field has been set. + +### GetSSLLocations + +`func (o *ModelsCertificateRetrievalResponse) GetSSLLocations() []ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel` + +GetSSLLocations returns the SSLLocations field if non-nil, zero value otherwise. + +### GetSSLLocationsOk + +`func (o *ModelsCertificateRetrievalResponse) GetSSLLocationsOk() (*[]ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel, bool)` + +GetSSLLocationsOk returns a tuple with the SSLLocations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSSLLocations + +`func (o *ModelsCertificateRetrievalResponse) SetSSLLocations(v []ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel)` + +SetSSLLocations sets SSLLocations field to given value. + +### HasSSLLocations + +`func (o *ModelsCertificateRetrievalResponse) HasSSLLocations() bool` + +HasSSLLocations returns a boolean if a field has been set. + +### GetLocations + +`func (o *ModelsCertificateRetrievalResponse) GetLocations() []ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel` + +GetLocations returns the Locations field if non-nil, zero value otherwise. + +### GetLocationsOk + +`func (o *ModelsCertificateRetrievalResponse) GetLocationsOk() (*[]ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel, bool)` + +GetLocationsOk returns a tuple with the Locations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocations + +`func (o *ModelsCertificateRetrievalResponse) SetLocations(v []ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel)` + +SetLocations sets Locations field to given value. + +### HasLocations + +`func (o *ModelsCertificateRetrievalResponse) HasLocations() bool` + +HasLocations returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ModelsCertificateRetrievalResponse) GetMetadata() map[string]string` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ModelsCertificateRetrievalResponse) GetMetadataOk() (*map[string]string, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ModelsCertificateRetrievalResponse) SetMetadata(v map[string]string)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ModelsCertificateRetrievalResponse) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetCertificateKeyId + +`func (o *ModelsCertificateRetrievalResponse) GetCertificateKeyId() int32` + +GetCertificateKeyId returns the CertificateKeyId field if non-nil, zero value otherwise. + +### GetCertificateKeyIdOk + +`func (o *ModelsCertificateRetrievalResponse) GetCertificateKeyIdOk() (*int32, bool)` + +GetCertificateKeyIdOk returns a tuple with the CertificateKeyId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateKeyId + +`func (o *ModelsCertificateRetrievalResponse) SetCertificateKeyId(v int32)` + +SetCertificateKeyId sets CertificateKeyId field to given value. + +### HasCertificateKeyId + +`func (o *ModelsCertificateRetrievalResponse) HasCertificateKeyId() bool` + +HasCertificateKeyId returns a boolean if a field has been set. + +### GetCARowIndex + +`func (o *ModelsCertificateRetrievalResponse) GetCARowIndex() int64` + +GetCARowIndex returns the CARowIndex field if non-nil, zero value otherwise. + +### GetCARowIndexOk + +`func (o *ModelsCertificateRetrievalResponse) GetCARowIndexOk() (*int64, bool)` + +GetCARowIndexOk returns a tuple with the CARowIndex field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCARowIndex + +`func (o *ModelsCertificateRetrievalResponse) SetCARowIndex(v int64)` + +SetCARowIndex sets CARowIndex field to given value. + +### HasCARowIndex + +`func (o *ModelsCertificateRetrievalResponse) HasCARowIndex() bool` + +HasCARowIndex returns a boolean if a field has been set. + +### GetCARecordId + +`func (o *ModelsCertificateRetrievalResponse) GetCARecordId() string` + +GetCARecordId returns the CARecordId field if non-nil, zero value otherwise. + +### GetCARecordIdOk + +`func (o *ModelsCertificateRetrievalResponse) GetCARecordIdOk() (*string, bool)` + +GetCARecordIdOk returns a tuple with the CARecordId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCARecordId + +`func (o *ModelsCertificateRetrievalResponse) SetCARecordId(v string)` + +SetCARecordId sets CARecordId field to given value. + +### HasCARecordId + +`func (o *ModelsCertificateRetrievalResponse) HasCARecordId() bool` + +HasCARecordId returns a boolean if a field has been set. + +### GetDetailedKeyUsage + +`func (o *ModelsCertificateRetrievalResponse) GetDetailedKeyUsage() ModelsCertificateRetrievalResponseDetailedKeyUsageModel` + +GetDetailedKeyUsage returns the DetailedKeyUsage field if non-nil, zero value otherwise. + +### GetDetailedKeyUsageOk + +`func (o *ModelsCertificateRetrievalResponse) GetDetailedKeyUsageOk() (*ModelsCertificateRetrievalResponseDetailedKeyUsageModel, bool)` + +GetDetailedKeyUsageOk returns a tuple with the DetailedKeyUsage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDetailedKeyUsage + +`func (o *ModelsCertificateRetrievalResponse) SetDetailedKeyUsage(v ModelsCertificateRetrievalResponseDetailedKeyUsageModel)` + +SetDetailedKeyUsage sets DetailedKeyUsage field to given value. + +### HasDetailedKeyUsage + +`func (o *ModelsCertificateRetrievalResponse) HasDetailedKeyUsage() bool` + +HasDetailedKeyUsage returns a boolean if a field has been set. + +### GetKeyRecoverable + +`func (o *ModelsCertificateRetrievalResponse) GetKeyRecoverable() bool` + +GetKeyRecoverable returns the KeyRecoverable field if non-nil, zero value otherwise. + +### GetKeyRecoverableOk + +`func (o *ModelsCertificateRetrievalResponse) GetKeyRecoverableOk() (*bool, bool)` + +GetKeyRecoverableOk returns a tuple with the KeyRecoverable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyRecoverable + +`func (o *ModelsCertificateRetrievalResponse) SetKeyRecoverable(v bool)` + +SetKeyRecoverable sets KeyRecoverable field to given value. + +### HasKeyRecoverable + +`func (o *ModelsCertificateRetrievalResponse) HasKeyRecoverable() bool` + +HasKeyRecoverable returns a boolean if a field has been set. + +### GetCurve + +`func (o *ModelsCertificateRetrievalResponse) GetCurve() string` + +GetCurve returns the Curve field if non-nil, zero value otherwise. + +### GetCurveOk + +`func (o *ModelsCertificateRetrievalResponse) GetCurveOk() (*string, bool)` + +GetCurveOk returns a tuple with the Curve field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCurve + +`func (o *ModelsCertificateRetrievalResponse) SetCurve(v string)` + +SetCurve sets Curve field to given value. + +### HasCurve + +`func (o *ModelsCertificateRetrievalResponse) HasCurve() bool` + +HasCurve returns a boolean if a field has been set. + +### SetCurveNil + +`func (o *ModelsCertificateRetrievalResponse) SetCurveNil(b bool)` + + SetCurveNil sets the value for Curve to be an explicit nil + +### UnsetCurve +`func (o *ModelsCertificateRetrievalResponse) UnsetCurve()` + +UnsetCurve ensures that no value is present for Curve, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsCertificateRetrievalResponseCRLDistributionPointModel.md b/v1/docs/ModelsCertificateRetrievalResponseCRLDistributionPointModel.md new file mode 100644 index 0000000..35a6f79 --- /dev/null +++ b/v1/docs/ModelsCertificateRetrievalResponseCRLDistributionPointModel.md @@ -0,0 +1,108 @@ +# ModelsCertificateRetrievalResponseCRLDistributionPointModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Url** | Pointer to **string** | | [optional] +**UrlHash** | Pointer to **string** | | [optional] + +## Methods + +### NewModelsCertificateRetrievalResponseCRLDistributionPointModel + +`func NewModelsCertificateRetrievalResponseCRLDistributionPointModel() *ModelsCertificateRetrievalResponseCRLDistributionPointModel` + +NewModelsCertificateRetrievalResponseCRLDistributionPointModel instantiates a new ModelsCertificateRetrievalResponseCRLDistributionPointModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsCertificateRetrievalResponseCRLDistributionPointModelWithDefaults + +`func NewModelsCertificateRetrievalResponseCRLDistributionPointModelWithDefaults() *ModelsCertificateRetrievalResponseCRLDistributionPointModel` + +NewModelsCertificateRetrievalResponseCRLDistributionPointModelWithDefaults instantiates a new ModelsCertificateRetrievalResponseCRLDistributionPointModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsCertificateRetrievalResponseCRLDistributionPointModel) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsCertificateRetrievalResponseCRLDistributionPointModel) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsCertificateRetrievalResponseCRLDistributionPointModel) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ModelsCertificateRetrievalResponseCRLDistributionPointModel) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetUrl + +`func (o *ModelsCertificateRetrievalResponseCRLDistributionPointModel) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *ModelsCertificateRetrievalResponseCRLDistributionPointModel) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *ModelsCertificateRetrievalResponseCRLDistributionPointModel) SetUrl(v string)` + +SetUrl sets Url field to given value. + +### HasUrl + +`func (o *ModelsCertificateRetrievalResponseCRLDistributionPointModel) HasUrl() bool` + +HasUrl returns a boolean if a field has been set. + +### GetUrlHash + +`func (o *ModelsCertificateRetrievalResponseCRLDistributionPointModel) GetUrlHash() string` + +GetUrlHash returns the UrlHash field if non-nil, zero value otherwise. + +### GetUrlHashOk + +`func (o *ModelsCertificateRetrievalResponseCRLDistributionPointModel) GetUrlHashOk() (*string, bool)` + +GetUrlHashOk returns a tuple with the UrlHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrlHash + +`func (o *ModelsCertificateRetrievalResponseCRLDistributionPointModel) SetUrlHash(v string)` + +SetUrlHash sets UrlHash field to given value. + +### HasUrlHash + +`func (o *ModelsCertificateRetrievalResponseCRLDistributionPointModel) HasUrlHash() bool` + +HasUrlHash returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel.md b/v1/docs/ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel.md new file mode 100644 index 0000000..aa03c5b --- /dev/null +++ b/v1/docs/ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel.md @@ -0,0 +1,186 @@ +# ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreMachine** | Pointer to **string** | | [optional] +**StorePath** | Pointer to **string** | | [optional] +**StoreType** | Pointer to **int32** | | [optional] +**Alias** | Pointer to **string** | | [optional] +**ChainLevel** | Pointer to **int32** | | [optional] +**CertStoreId** | Pointer to **string** | | [optional] + +## Methods + +### NewModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel + +`func NewModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel() *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel` + +NewModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel instantiates a new ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsCertificateRetrievalResponseCertificateStoreInventoryItemModelWithDefaults + +`func NewModelsCertificateRetrievalResponseCertificateStoreInventoryItemModelWithDefaults() *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel` + +NewModelsCertificateRetrievalResponseCertificateStoreInventoryItemModelWithDefaults instantiates a new ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStoreMachine + +`func (o *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) GetStoreMachine() string` + +GetStoreMachine returns the StoreMachine field if non-nil, zero value otherwise. + +### GetStoreMachineOk + +`func (o *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) GetStoreMachineOk() (*string, bool)` + +GetStoreMachineOk returns a tuple with the StoreMachine field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStoreMachine + +`func (o *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) SetStoreMachine(v string)` + +SetStoreMachine sets StoreMachine field to given value. + +### HasStoreMachine + +`func (o *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) HasStoreMachine() bool` + +HasStoreMachine returns a boolean if a field has been set. + +### GetStorePath + +`func (o *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) GetStorePath() string` + +GetStorePath returns the StorePath field if non-nil, zero value otherwise. + +### GetStorePathOk + +`func (o *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) GetStorePathOk() (*string, bool)` + +GetStorePathOk returns a tuple with the StorePath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStorePath + +`func (o *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) SetStorePath(v string)` + +SetStorePath sets StorePath field to given value. + +### HasStorePath + +`func (o *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) HasStorePath() bool` + +HasStorePath returns a boolean if a field has been set. + +### GetStoreType + +`func (o *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) GetStoreType() int32` + +GetStoreType returns the StoreType field if non-nil, zero value otherwise. + +### GetStoreTypeOk + +`func (o *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) GetStoreTypeOk() (*int32, bool)` + +GetStoreTypeOk returns a tuple with the StoreType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStoreType + +`func (o *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) SetStoreType(v int32)` + +SetStoreType sets StoreType field to given value. + +### HasStoreType + +`func (o *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) HasStoreType() bool` + +HasStoreType returns a boolean if a field has been set. + +### GetAlias + +`func (o *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) GetAlias() string` + +GetAlias returns the Alias field if non-nil, zero value otherwise. + +### GetAliasOk + +`func (o *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) GetAliasOk() (*string, bool)` + +GetAliasOk returns a tuple with the Alias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlias + +`func (o *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) SetAlias(v string)` + +SetAlias sets Alias field to given value. + +### HasAlias + +`func (o *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) HasAlias() bool` + +HasAlias returns a boolean if a field has been set. + +### GetChainLevel + +`func (o *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) GetChainLevel() int32` + +GetChainLevel returns the ChainLevel field if non-nil, zero value otherwise. + +### GetChainLevelOk + +`func (o *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) GetChainLevelOk() (*int32, bool)` + +GetChainLevelOk returns a tuple with the ChainLevel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChainLevel + +`func (o *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) SetChainLevel(v int32)` + +SetChainLevel sets ChainLevel field to given value. + +### HasChainLevel + +`func (o *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) HasChainLevel() bool` + +HasChainLevel returns a boolean if a field has been set. + +### GetCertStoreId + +`func (o *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) GetCertStoreId() string` + +GetCertStoreId returns the CertStoreId field if non-nil, zero value otherwise. + +### GetCertStoreIdOk + +`func (o *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) GetCertStoreIdOk() (*string, bool)` + +GetCertStoreIdOk returns a tuple with the CertStoreId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertStoreId + +`func (o *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) SetCertStoreId(v string)` + +SetCertStoreId sets CertStoreId field to given value. + +### HasCertStoreId + +`func (o *ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel) HasCertStoreId() bool` + +HasCertStoreId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel.md b/v1/docs/ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel.md new file mode 100644 index 0000000..9a49878 --- /dev/null +++ b/v1/docs/ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel.md @@ -0,0 +1,160 @@ +# ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StorePath** | Pointer to **string** | | [optional] +**AgentPool** | Pointer to **string** | | [optional] +**IPAddress** | Pointer to **string** | | [optional] +**Port** | Pointer to **int32** | | [optional] +**NetworkName** | Pointer to **string** | | [optional] + +## Methods + +### NewModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel + +`func NewModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel() *ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel` + +NewModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel instantiates a new ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsCertificateRetrievalResponseCertificateStoreLocationDetailModelWithDefaults + +`func NewModelsCertificateRetrievalResponseCertificateStoreLocationDetailModelWithDefaults() *ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel` + +NewModelsCertificateRetrievalResponseCertificateStoreLocationDetailModelWithDefaults instantiates a new ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStorePath + +`func (o *ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel) GetStorePath() string` + +GetStorePath returns the StorePath field if non-nil, zero value otherwise. + +### GetStorePathOk + +`func (o *ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel) GetStorePathOk() (*string, bool)` + +GetStorePathOk returns a tuple with the StorePath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStorePath + +`func (o *ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel) SetStorePath(v string)` + +SetStorePath sets StorePath field to given value. + +### HasStorePath + +`func (o *ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel) HasStorePath() bool` + +HasStorePath returns a boolean if a field has been set. + +### GetAgentPool + +`func (o *ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel) GetAgentPool() string` + +GetAgentPool returns the AgentPool field if non-nil, zero value otherwise. + +### GetAgentPoolOk + +`func (o *ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel) GetAgentPoolOk() (*string, bool)` + +GetAgentPoolOk returns a tuple with the AgentPool field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentPool + +`func (o *ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel) SetAgentPool(v string)` + +SetAgentPool sets AgentPool field to given value. + +### HasAgentPool + +`func (o *ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel) HasAgentPool() bool` + +HasAgentPool returns a boolean if a field has been set. + +### GetIPAddress + +`func (o *ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel) GetIPAddress() string` + +GetIPAddress returns the IPAddress field if non-nil, zero value otherwise. + +### GetIPAddressOk + +`func (o *ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel) GetIPAddressOk() (*string, bool)` + +GetIPAddressOk returns a tuple with the IPAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIPAddress + +`func (o *ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel) SetIPAddress(v string)` + +SetIPAddress sets IPAddress field to given value. + +### HasIPAddress + +`func (o *ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel) HasIPAddress() bool` + +HasIPAddress returns a boolean if a field has been set. + +### GetPort + +`func (o *ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel) GetPort() int32` + +GetPort returns the Port field if non-nil, zero value otherwise. + +### GetPortOk + +`func (o *ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel) GetPortOk() (*int32, bool)` + +GetPortOk returns a tuple with the Port field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPort + +`func (o *ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel) SetPort(v int32)` + +SetPort sets Port field to given value. + +### HasPort + +`func (o *ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel) HasPort() bool` + +HasPort returns a boolean if a field has been set. + +### GetNetworkName + +`func (o *ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel) GetNetworkName() string` + +GetNetworkName returns the NetworkName field if non-nil, zero value otherwise. + +### GetNetworkNameOk + +`func (o *ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel) GetNetworkNameOk() (*string, bool)` + +GetNetworkNameOk returns a tuple with the NetworkName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNetworkName + +`func (o *ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel) SetNetworkName(v string)` + +SetNetworkName sets NetworkName field to given value. + +### HasNetworkName + +`func (o *ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel) HasNetworkName() bool` + +HasNetworkName returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsCertificateRetrievalResponseDetailedKeyUsageModel.md b/v1/docs/ModelsCertificateRetrievalResponseDetailedKeyUsageModel.md new file mode 100644 index 0000000..ebefda0 --- /dev/null +++ b/v1/docs/ModelsCertificateRetrievalResponseDetailedKeyUsageModel.md @@ -0,0 +1,290 @@ +# ModelsCertificateRetrievalResponseDetailedKeyUsageModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CrlSign** | Pointer to **bool** | | [optional] +**DataEncipherment** | Pointer to **bool** | | [optional] +**DecipherOnly** | Pointer to **bool** | | [optional] +**DigitalSignature** | Pointer to **bool** | | [optional] +**EncipherOnly** | Pointer to **bool** | | [optional] +**KeyAgreement** | Pointer to **bool** | | [optional] +**KeyCertSign** | Pointer to **bool** | | [optional] +**KeyEncipherment** | Pointer to **bool** | | [optional] +**NonRepudiation** | Pointer to **bool** | | [optional] +**HexCode** | Pointer to **string** | | [optional] + +## Methods + +### NewModelsCertificateRetrievalResponseDetailedKeyUsageModel + +`func NewModelsCertificateRetrievalResponseDetailedKeyUsageModel() *ModelsCertificateRetrievalResponseDetailedKeyUsageModel` + +NewModelsCertificateRetrievalResponseDetailedKeyUsageModel instantiates a new ModelsCertificateRetrievalResponseDetailedKeyUsageModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsCertificateRetrievalResponseDetailedKeyUsageModelWithDefaults + +`func NewModelsCertificateRetrievalResponseDetailedKeyUsageModelWithDefaults() *ModelsCertificateRetrievalResponseDetailedKeyUsageModel` + +NewModelsCertificateRetrievalResponseDetailedKeyUsageModelWithDefaults instantiates a new ModelsCertificateRetrievalResponseDetailedKeyUsageModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCrlSign + +`func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) GetCrlSign() bool` + +GetCrlSign returns the CrlSign field if non-nil, zero value otherwise. + +### GetCrlSignOk + +`func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) GetCrlSignOk() (*bool, bool)` + +GetCrlSignOk returns a tuple with the CrlSign field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCrlSign + +`func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) SetCrlSign(v bool)` + +SetCrlSign sets CrlSign field to given value. + +### HasCrlSign + +`func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) HasCrlSign() bool` + +HasCrlSign returns a boolean if a field has been set. + +### GetDataEncipherment + +`func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) GetDataEncipherment() bool` + +GetDataEncipherment returns the DataEncipherment field if non-nil, zero value otherwise. + +### GetDataEnciphermentOk + +`func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) GetDataEnciphermentOk() (*bool, bool)` + +GetDataEnciphermentOk returns a tuple with the DataEncipherment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataEncipherment + +`func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) SetDataEncipherment(v bool)` + +SetDataEncipherment sets DataEncipherment field to given value. + +### HasDataEncipherment + +`func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) HasDataEncipherment() bool` + +HasDataEncipherment returns a boolean if a field has been set. + +### GetDecipherOnly + +`func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) GetDecipherOnly() bool` + +GetDecipherOnly returns the DecipherOnly field if non-nil, zero value otherwise. + +### GetDecipherOnlyOk + +`func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) GetDecipherOnlyOk() (*bool, bool)` + +GetDecipherOnlyOk returns a tuple with the DecipherOnly field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDecipherOnly + +`func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) SetDecipherOnly(v bool)` + +SetDecipherOnly sets DecipherOnly field to given value. + +### HasDecipherOnly + +`func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) HasDecipherOnly() bool` + +HasDecipherOnly returns a boolean if a field has been set. + +### GetDigitalSignature + +`func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) GetDigitalSignature() bool` + +GetDigitalSignature returns the DigitalSignature field if non-nil, zero value otherwise. + +### GetDigitalSignatureOk + +`func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) GetDigitalSignatureOk() (*bool, bool)` + +GetDigitalSignatureOk returns a tuple with the DigitalSignature field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDigitalSignature + +`func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) SetDigitalSignature(v bool)` + +SetDigitalSignature sets DigitalSignature field to given value. + +### HasDigitalSignature + +`func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) HasDigitalSignature() bool` + +HasDigitalSignature returns a boolean if a field has been set. + +### GetEncipherOnly + +`func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) GetEncipherOnly() bool` + +GetEncipherOnly returns the EncipherOnly field if non-nil, zero value otherwise. + +### GetEncipherOnlyOk + +`func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) GetEncipherOnlyOk() (*bool, bool)` + +GetEncipherOnlyOk returns a tuple with the EncipherOnly field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEncipherOnly + +`func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) SetEncipherOnly(v bool)` + +SetEncipherOnly sets EncipherOnly field to given value. + +### HasEncipherOnly + +`func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) HasEncipherOnly() bool` + +HasEncipherOnly returns a boolean if a field has been set. + +### GetKeyAgreement + +`func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) GetKeyAgreement() bool` + +GetKeyAgreement returns the KeyAgreement field if non-nil, zero value otherwise. + +### GetKeyAgreementOk + +`func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) GetKeyAgreementOk() (*bool, bool)` + +GetKeyAgreementOk returns a tuple with the KeyAgreement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyAgreement + +`func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) SetKeyAgreement(v bool)` + +SetKeyAgreement sets KeyAgreement field to given value. + +### HasKeyAgreement + +`func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) HasKeyAgreement() bool` + +HasKeyAgreement returns a boolean if a field has been set. + +### GetKeyCertSign + +`func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) GetKeyCertSign() bool` + +GetKeyCertSign returns the KeyCertSign field if non-nil, zero value otherwise. + +### GetKeyCertSignOk + +`func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) GetKeyCertSignOk() (*bool, bool)` + +GetKeyCertSignOk returns a tuple with the KeyCertSign field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyCertSign + +`func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) SetKeyCertSign(v bool)` + +SetKeyCertSign sets KeyCertSign field to given value. + +### HasKeyCertSign + +`func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) HasKeyCertSign() bool` + +HasKeyCertSign returns a boolean if a field has been set. + +### GetKeyEncipherment + +`func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) GetKeyEncipherment() bool` + +GetKeyEncipherment returns the KeyEncipherment field if non-nil, zero value otherwise. + +### GetKeyEnciphermentOk + +`func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) GetKeyEnciphermentOk() (*bool, bool)` + +GetKeyEnciphermentOk returns a tuple with the KeyEncipherment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyEncipherment + +`func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) SetKeyEncipherment(v bool)` + +SetKeyEncipherment sets KeyEncipherment field to given value. + +### HasKeyEncipherment + +`func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) HasKeyEncipherment() bool` + +HasKeyEncipherment returns a boolean if a field has been set. + +### GetNonRepudiation + +`func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) GetNonRepudiation() bool` + +GetNonRepudiation returns the NonRepudiation field if non-nil, zero value otherwise. + +### GetNonRepudiationOk + +`func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) GetNonRepudiationOk() (*bool, bool)` + +GetNonRepudiationOk returns a tuple with the NonRepudiation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNonRepudiation + +`func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) SetNonRepudiation(v bool)` + +SetNonRepudiation sets NonRepudiation field to given value. + +### HasNonRepudiation + +`func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) HasNonRepudiation() bool` + +HasNonRepudiation returns a boolean if a field has been set. + +### GetHexCode + +`func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) GetHexCode() string` + +GetHexCode returns the HexCode field if non-nil, zero value otherwise. + +### GetHexCodeOk + +`func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) GetHexCodeOk() (*string, bool)` + +GetHexCodeOk returns a tuple with the HexCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHexCode + +`func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) SetHexCode(v string)` + +SetHexCode sets HexCode field to given value. + +### HasHexCode + +`func (o *ModelsCertificateRetrievalResponseDetailedKeyUsageModel) HasHexCode() bool` + +HasHexCode returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsCertificateRetrievalResponseExtendedKeyUsageModel.md b/v1/docs/ModelsCertificateRetrievalResponseExtendedKeyUsageModel.md new file mode 100644 index 0000000..ae3c535 --- /dev/null +++ b/v1/docs/ModelsCertificateRetrievalResponseExtendedKeyUsageModel.md @@ -0,0 +1,108 @@ +# ModelsCertificateRetrievalResponseExtendedKeyUsageModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Oid** | Pointer to **string** | | [optional] +**DisplayName** | Pointer to **string** | | [optional] + +## Methods + +### NewModelsCertificateRetrievalResponseExtendedKeyUsageModel + +`func NewModelsCertificateRetrievalResponseExtendedKeyUsageModel() *ModelsCertificateRetrievalResponseExtendedKeyUsageModel` + +NewModelsCertificateRetrievalResponseExtendedKeyUsageModel instantiates a new ModelsCertificateRetrievalResponseExtendedKeyUsageModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsCertificateRetrievalResponseExtendedKeyUsageModelWithDefaults + +`func NewModelsCertificateRetrievalResponseExtendedKeyUsageModelWithDefaults() *ModelsCertificateRetrievalResponseExtendedKeyUsageModel` + +NewModelsCertificateRetrievalResponseExtendedKeyUsageModelWithDefaults instantiates a new ModelsCertificateRetrievalResponseExtendedKeyUsageModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsCertificateRetrievalResponseExtendedKeyUsageModel) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsCertificateRetrievalResponseExtendedKeyUsageModel) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsCertificateRetrievalResponseExtendedKeyUsageModel) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ModelsCertificateRetrievalResponseExtendedKeyUsageModel) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetOid + +`func (o *ModelsCertificateRetrievalResponseExtendedKeyUsageModel) GetOid() string` + +GetOid returns the Oid field if non-nil, zero value otherwise. + +### GetOidOk + +`func (o *ModelsCertificateRetrievalResponseExtendedKeyUsageModel) GetOidOk() (*string, bool)` + +GetOidOk returns a tuple with the Oid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOid + +`func (o *ModelsCertificateRetrievalResponseExtendedKeyUsageModel) SetOid(v string)` + +SetOid sets Oid field to given value. + +### HasOid + +`func (o *ModelsCertificateRetrievalResponseExtendedKeyUsageModel) HasOid() bool` + +HasOid returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *ModelsCertificateRetrievalResponseExtendedKeyUsageModel) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *ModelsCertificateRetrievalResponseExtendedKeyUsageModel) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *ModelsCertificateRetrievalResponseExtendedKeyUsageModel) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *ModelsCertificateRetrievalResponseExtendedKeyUsageModel) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsCertificateRetrievalResponseLocationCountModel.md b/v1/docs/ModelsCertificateRetrievalResponseLocationCountModel.md new file mode 100644 index 0000000..df1f6b6 --- /dev/null +++ b/v1/docs/ModelsCertificateRetrievalResponseLocationCountModel.md @@ -0,0 +1,82 @@ +# ModelsCertificateRetrievalResponseLocationCountModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **string** | | [optional] +**Count** | Pointer to **int32** | | [optional] + +## Methods + +### NewModelsCertificateRetrievalResponseLocationCountModel + +`func NewModelsCertificateRetrievalResponseLocationCountModel() *ModelsCertificateRetrievalResponseLocationCountModel` + +NewModelsCertificateRetrievalResponseLocationCountModel instantiates a new ModelsCertificateRetrievalResponseLocationCountModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsCertificateRetrievalResponseLocationCountModelWithDefaults + +`func NewModelsCertificateRetrievalResponseLocationCountModelWithDefaults() *ModelsCertificateRetrievalResponseLocationCountModel` + +NewModelsCertificateRetrievalResponseLocationCountModelWithDefaults instantiates a new ModelsCertificateRetrievalResponseLocationCountModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *ModelsCertificateRetrievalResponseLocationCountModel) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ModelsCertificateRetrievalResponseLocationCountModel) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ModelsCertificateRetrievalResponseLocationCountModel) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *ModelsCertificateRetrievalResponseLocationCountModel) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetCount + +`func (o *ModelsCertificateRetrievalResponseLocationCountModel) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *ModelsCertificateRetrievalResponseLocationCountModel) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *ModelsCertificateRetrievalResponseLocationCountModel) SetCount(v int32)` + +SetCount sets Count field to given value. + +### HasCount + +`func (o *ModelsCertificateRetrievalResponseLocationCountModel) HasCount() bool` + +HasCount returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsCertificateRetrievalResponseSubjectAlternativeNameModel.md b/v1/docs/ModelsCertificateRetrievalResponseSubjectAlternativeNameModel.md new file mode 100644 index 0000000..bcea00d --- /dev/null +++ b/v1/docs/ModelsCertificateRetrievalResponseSubjectAlternativeNameModel.md @@ -0,0 +1,134 @@ +# ModelsCertificateRetrievalResponseSubjectAlternativeNameModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Value** | Pointer to **string** | | [optional] +**Type** | Pointer to **int32** | | [optional] +**ValueHash** | Pointer to **string** | | [optional] + +## Methods + +### NewModelsCertificateRetrievalResponseSubjectAlternativeNameModel + +`func NewModelsCertificateRetrievalResponseSubjectAlternativeNameModel() *ModelsCertificateRetrievalResponseSubjectAlternativeNameModel` + +NewModelsCertificateRetrievalResponseSubjectAlternativeNameModel instantiates a new ModelsCertificateRetrievalResponseSubjectAlternativeNameModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsCertificateRetrievalResponseSubjectAlternativeNameModelWithDefaults + +`func NewModelsCertificateRetrievalResponseSubjectAlternativeNameModelWithDefaults() *ModelsCertificateRetrievalResponseSubjectAlternativeNameModel` + +NewModelsCertificateRetrievalResponseSubjectAlternativeNameModelWithDefaults instantiates a new ModelsCertificateRetrievalResponseSubjectAlternativeNameModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsCertificateRetrievalResponseSubjectAlternativeNameModel) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsCertificateRetrievalResponseSubjectAlternativeNameModel) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsCertificateRetrievalResponseSubjectAlternativeNameModel) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ModelsCertificateRetrievalResponseSubjectAlternativeNameModel) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetValue + +`func (o *ModelsCertificateRetrievalResponseSubjectAlternativeNameModel) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *ModelsCertificateRetrievalResponseSubjectAlternativeNameModel) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *ModelsCertificateRetrievalResponseSubjectAlternativeNameModel) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *ModelsCertificateRetrievalResponseSubjectAlternativeNameModel) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetType + +`func (o *ModelsCertificateRetrievalResponseSubjectAlternativeNameModel) GetType() int32` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ModelsCertificateRetrievalResponseSubjectAlternativeNameModel) GetTypeOk() (*int32, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ModelsCertificateRetrievalResponseSubjectAlternativeNameModel) SetType(v int32)` + +SetType sets Type field to given value. + +### HasType + +`func (o *ModelsCertificateRetrievalResponseSubjectAlternativeNameModel) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetValueHash + +`func (o *ModelsCertificateRetrievalResponseSubjectAlternativeNameModel) GetValueHash() string` + +GetValueHash returns the ValueHash field if non-nil, zero value otherwise. + +### GetValueHashOk + +`func (o *ModelsCertificateRetrievalResponseSubjectAlternativeNameModel) GetValueHashOk() (*string, bool)` + +GetValueHashOk returns a tuple with the ValueHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValueHash + +`func (o *ModelsCertificateRetrievalResponseSubjectAlternativeNameModel) SetValueHash(v string)` + +SetValueHash sets ValueHash field to given value. + +### HasValueHash + +`func (o *ModelsCertificateRetrievalResponseSubjectAlternativeNameModel) HasValueHash() bool` + +HasValueHash returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsCertificateStore.md b/v1/docs/ModelsCertificateStore.md new file mode 100644 index 0000000..acb0fa7 --- /dev/null +++ b/v1/docs/ModelsCertificateStore.md @@ -0,0 +1,472 @@ +# ModelsCertificateStore + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**DisplayName** | Pointer to **string** | | [optional] [readonly] +**ContainerId** | Pointer to **int32** | | [optional] +**ClientMachine** | Pointer to **string** | | [optional] +**Storepath** | Pointer to **string** | | [optional] +**CertStoreInventoryJobId** | Pointer to **string** | | [optional] +**CertStoreType** | Pointer to **int32** | | [optional] +**Approved** | Pointer to **bool** | | [optional] +**CreateIfMissing** | Pointer to **bool** | | [optional] +**Properties** | Pointer to **string** | | [optional] +**AgentId** | Pointer to **string** | | [optional] +**AgentAssigned** | Pointer to **bool** | | [optional] +**ContainerName** | Pointer to **string** | | [optional] +**InventorySchedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**ReenrollmentStatus** | Pointer to [**ModelsReenrollmentStatus**](ModelsReenrollmentStatus.md) | | [optional] +**SetNewPasswordAllowed** | Pointer to **bool** | | [optional] +**Password** | Pointer to **string** | | [optional] + +## Methods + +### NewModelsCertificateStore + +`func NewModelsCertificateStore() *ModelsCertificateStore` + +NewModelsCertificateStore instantiates a new ModelsCertificateStore object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsCertificateStoreWithDefaults + +`func NewModelsCertificateStoreWithDefaults() *ModelsCertificateStore` + +NewModelsCertificateStoreWithDefaults instantiates a new ModelsCertificateStore object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsCertificateStore) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsCertificateStore) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsCertificateStore) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ModelsCertificateStore) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *ModelsCertificateStore) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *ModelsCertificateStore) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *ModelsCertificateStore) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *ModelsCertificateStore) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetContainerId + +`func (o *ModelsCertificateStore) GetContainerId() int32` + +GetContainerId returns the ContainerId field if non-nil, zero value otherwise. + +### GetContainerIdOk + +`func (o *ModelsCertificateStore) GetContainerIdOk() (*int32, bool)` + +GetContainerIdOk returns a tuple with the ContainerId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContainerId + +`func (o *ModelsCertificateStore) SetContainerId(v int32)` + +SetContainerId sets ContainerId field to given value. + +### HasContainerId + +`func (o *ModelsCertificateStore) HasContainerId() bool` + +HasContainerId returns a boolean if a field has been set. + +### GetClientMachine + +`func (o *ModelsCertificateStore) GetClientMachine() string` + +GetClientMachine returns the ClientMachine field if non-nil, zero value otherwise. + +### GetClientMachineOk + +`func (o *ModelsCertificateStore) GetClientMachineOk() (*string, bool)` + +GetClientMachineOk returns a tuple with the ClientMachine field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientMachine + +`func (o *ModelsCertificateStore) SetClientMachine(v string)` + +SetClientMachine sets ClientMachine field to given value. + +### HasClientMachine + +`func (o *ModelsCertificateStore) HasClientMachine() bool` + +HasClientMachine returns a boolean if a field has been set. + +### GetStorepath + +`func (o *ModelsCertificateStore) GetStorepath() string` + +GetStorepath returns the Storepath field if non-nil, zero value otherwise. + +### GetStorepathOk + +`func (o *ModelsCertificateStore) GetStorepathOk() (*string, bool)` + +GetStorepathOk returns a tuple with the Storepath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStorepath + +`func (o *ModelsCertificateStore) SetStorepath(v string)` + +SetStorepath sets Storepath field to given value. + +### HasStorepath + +`func (o *ModelsCertificateStore) HasStorepath() bool` + +HasStorepath returns a boolean if a field has been set. + +### GetCertStoreInventoryJobId + +`func (o *ModelsCertificateStore) GetCertStoreInventoryJobId() string` + +GetCertStoreInventoryJobId returns the CertStoreInventoryJobId field if non-nil, zero value otherwise. + +### GetCertStoreInventoryJobIdOk + +`func (o *ModelsCertificateStore) GetCertStoreInventoryJobIdOk() (*string, bool)` + +GetCertStoreInventoryJobIdOk returns a tuple with the CertStoreInventoryJobId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertStoreInventoryJobId + +`func (o *ModelsCertificateStore) SetCertStoreInventoryJobId(v string)` + +SetCertStoreInventoryJobId sets CertStoreInventoryJobId field to given value. + +### HasCertStoreInventoryJobId + +`func (o *ModelsCertificateStore) HasCertStoreInventoryJobId() bool` + +HasCertStoreInventoryJobId returns a boolean if a field has been set. + +### GetCertStoreType + +`func (o *ModelsCertificateStore) GetCertStoreType() int32` + +GetCertStoreType returns the CertStoreType field if non-nil, zero value otherwise. + +### GetCertStoreTypeOk + +`func (o *ModelsCertificateStore) GetCertStoreTypeOk() (*int32, bool)` + +GetCertStoreTypeOk returns a tuple with the CertStoreType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertStoreType + +`func (o *ModelsCertificateStore) SetCertStoreType(v int32)` + +SetCertStoreType sets CertStoreType field to given value. + +### HasCertStoreType + +`func (o *ModelsCertificateStore) HasCertStoreType() bool` + +HasCertStoreType returns a boolean if a field has been set. + +### GetApproved + +`func (o *ModelsCertificateStore) GetApproved() bool` + +GetApproved returns the Approved field if non-nil, zero value otherwise. + +### GetApprovedOk + +`func (o *ModelsCertificateStore) GetApprovedOk() (*bool, bool)` + +GetApprovedOk returns a tuple with the Approved field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApproved + +`func (o *ModelsCertificateStore) SetApproved(v bool)` + +SetApproved sets Approved field to given value. + +### HasApproved + +`func (o *ModelsCertificateStore) HasApproved() bool` + +HasApproved returns a boolean if a field has been set. + +### GetCreateIfMissing + +`func (o *ModelsCertificateStore) GetCreateIfMissing() bool` + +GetCreateIfMissing returns the CreateIfMissing field if non-nil, zero value otherwise. + +### GetCreateIfMissingOk + +`func (o *ModelsCertificateStore) GetCreateIfMissingOk() (*bool, bool)` + +GetCreateIfMissingOk returns a tuple with the CreateIfMissing field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreateIfMissing + +`func (o *ModelsCertificateStore) SetCreateIfMissing(v bool)` + +SetCreateIfMissing sets CreateIfMissing field to given value. + +### HasCreateIfMissing + +`func (o *ModelsCertificateStore) HasCreateIfMissing() bool` + +HasCreateIfMissing returns a boolean if a field has been set. + +### GetProperties + +`func (o *ModelsCertificateStore) GetProperties() string` + +GetProperties returns the Properties field if non-nil, zero value otherwise. + +### GetPropertiesOk + +`func (o *ModelsCertificateStore) GetPropertiesOk() (*string, bool)` + +GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProperties + +`func (o *ModelsCertificateStore) SetProperties(v string)` + +SetProperties sets Properties field to given value. + +### HasProperties + +`func (o *ModelsCertificateStore) HasProperties() bool` + +HasProperties returns a boolean if a field has been set. + +### GetAgentId + +`func (o *ModelsCertificateStore) GetAgentId() string` + +GetAgentId returns the AgentId field if non-nil, zero value otherwise. + +### GetAgentIdOk + +`func (o *ModelsCertificateStore) GetAgentIdOk() (*string, bool)` + +GetAgentIdOk returns a tuple with the AgentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentId + +`func (o *ModelsCertificateStore) SetAgentId(v string)` + +SetAgentId sets AgentId field to given value. + +### HasAgentId + +`func (o *ModelsCertificateStore) HasAgentId() bool` + +HasAgentId returns a boolean if a field has been set. + +### GetAgentAssigned + +`func (o *ModelsCertificateStore) GetAgentAssigned() bool` + +GetAgentAssigned returns the AgentAssigned field if non-nil, zero value otherwise. + +### GetAgentAssignedOk + +`func (o *ModelsCertificateStore) GetAgentAssignedOk() (*bool, bool)` + +GetAgentAssignedOk returns a tuple with the AgentAssigned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentAssigned + +`func (o *ModelsCertificateStore) SetAgentAssigned(v bool)` + +SetAgentAssigned sets AgentAssigned field to given value. + +### HasAgentAssigned + +`func (o *ModelsCertificateStore) HasAgentAssigned() bool` + +HasAgentAssigned returns a boolean if a field has been set. + +### GetContainerName + +`func (o *ModelsCertificateStore) GetContainerName() string` + +GetContainerName returns the ContainerName field if non-nil, zero value otherwise. + +### GetContainerNameOk + +`func (o *ModelsCertificateStore) GetContainerNameOk() (*string, bool)` + +GetContainerNameOk returns a tuple with the ContainerName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContainerName + +`func (o *ModelsCertificateStore) SetContainerName(v string)` + +SetContainerName sets ContainerName field to given value. + +### HasContainerName + +`func (o *ModelsCertificateStore) HasContainerName() bool` + +HasContainerName returns a boolean if a field has been set. + +### GetInventorySchedule + +`func (o *ModelsCertificateStore) GetInventorySchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetInventorySchedule returns the InventorySchedule field if non-nil, zero value otherwise. + +### GetInventoryScheduleOk + +`func (o *ModelsCertificateStore) GetInventoryScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetInventoryScheduleOk returns a tuple with the InventorySchedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInventorySchedule + +`func (o *ModelsCertificateStore) SetInventorySchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetInventorySchedule sets InventorySchedule field to given value. + +### HasInventorySchedule + +`func (o *ModelsCertificateStore) HasInventorySchedule() bool` + +HasInventorySchedule returns a boolean if a field has been set. + +### GetReenrollmentStatus + +`func (o *ModelsCertificateStore) GetReenrollmentStatus() ModelsReenrollmentStatus` + +GetReenrollmentStatus returns the ReenrollmentStatus field if non-nil, zero value otherwise. + +### GetReenrollmentStatusOk + +`func (o *ModelsCertificateStore) GetReenrollmentStatusOk() (*ModelsReenrollmentStatus, bool)` + +GetReenrollmentStatusOk returns a tuple with the ReenrollmentStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReenrollmentStatus + +`func (o *ModelsCertificateStore) SetReenrollmentStatus(v ModelsReenrollmentStatus)` + +SetReenrollmentStatus sets ReenrollmentStatus field to given value. + +### HasReenrollmentStatus + +`func (o *ModelsCertificateStore) HasReenrollmentStatus() bool` + +HasReenrollmentStatus returns a boolean if a field has been set. + +### GetSetNewPasswordAllowed + +`func (o *ModelsCertificateStore) GetSetNewPasswordAllowed() bool` + +GetSetNewPasswordAllowed returns the SetNewPasswordAllowed field if non-nil, zero value otherwise. + +### GetSetNewPasswordAllowedOk + +`func (o *ModelsCertificateStore) GetSetNewPasswordAllowedOk() (*bool, bool)` + +GetSetNewPasswordAllowedOk returns a tuple with the SetNewPasswordAllowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSetNewPasswordAllowed + +`func (o *ModelsCertificateStore) SetSetNewPasswordAllowed(v bool)` + +SetSetNewPasswordAllowed sets SetNewPasswordAllowed field to given value. + +### HasSetNewPasswordAllowed + +`func (o *ModelsCertificateStore) HasSetNewPasswordAllowed() bool` + +HasSetNewPasswordAllowed returns a boolean if a field has been set. + +### GetPassword + +`func (o *ModelsCertificateStore) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *ModelsCertificateStore) GetPasswordOk() (*string, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *ModelsCertificateStore) SetPassword(v string)` + +SetPassword sets Password field to given value. + +### HasPassword + +`func (o *ModelsCertificateStore) HasPassword() bool` + +HasPassword returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsCertificateStoreContainerListResponse.md b/v1/docs/ModelsCertificateStoreContainerListResponse.md new file mode 100644 index 0000000..3ee3f67 --- /dev/null +++ b/v1/docs/ModelsCertificateStoreContainerListResponse.md @@ -0,0 +1,186 @@ +# ModelsCertificateStoreContainerListResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Name** | Pointer to **string** | | [optional] +**OverwriteSchedules** | Pointer to **bool** | | [optional] +**Schedule** | Pointer to **string** | | [optional] +**CertStoreType** | Pointer to **int32** | | [optional] +**StoreCount** | Pointer to **int32** | | [optional] + +## Methods + +### NewModelsCertificateStoreContainerListResponse + +`func NewModelsCertificateStoreContainerListResponse() *ModelsCertificateStoreContainerListResponse` + +NewModelsCertificateStoreContainerListResponse instantiates a new ModelsCertificateStoreContainerListResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsCertificateStoreContainerListResponseWithDefaults + +`func NewModelsCertificateStoreContainerListResponseWithDefaults() *ModelsCertificateStoreContainerListResponse` + +NewModelsCertificateStoreContainerListResponseWithDefaults instantiates a new ModelsCertificateStoreContainerListResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsCertificateStoreContainerListResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsCertificateStoreContainerListResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsCertificateStoreContainerListResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ModelsCertificateStoreContainerListResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *ModelsCertificateStoreContainerListResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ModelsCertificateStoreContainerListResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ModelsCertificateStoreContainerListResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ModelsCertificateStoreContainerListResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetOverwriteSchedules + +`func (o *ModelsCertificateStoreContainerListResponse) GetOverwriteSchedules() bool` + +GetOverwriteSchedules returns the OverwriteSchedules field if non-nil, zero value otherwise. + +### GetOverwriteSchedulesOk + +`func (o *ModelsCertificateStoreContainerListResponse) GetOverwriteSchedulesOk() (*bool, bool)` + +GetOverwriteSchedulesOk returns a tuple with the OverwriteSchedules field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOverwriteSchedules + +`func (o *ModelsCertificateStoreContainerListResponse) SetOverwriteSchedules(v bool)` + +SetOverwriteSchedules sets OverwriteSchedules field to given value. + +### HasOverwriteSchedules + +`func (o *ModelsCertificateStoreContainerListResponse) HasOverwriteSchedules() bool` + +HasOverwriteSchedules returns a boolean if a field has been set. + +### GetSchedule + +`func (o *ModelsCertificateStoreContainerListResponse) GetSchedule() string` + +GetSchedule returns the Schedule field if non-nil, zero value otherwise. + +### GetScheduleOk + +`func (o *ModelsCertificateStoreContainerListResponse) GetScheduleOk() (*string, bool)` + +GetScheduleOk returns a tuple with the Schedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSchedule + +`func (o *ModelsCertificateStoreContainerListResponse) SetSchedule(v string)` + +SetSchedule sets Schedule field to given value. + +### HasSchedule + +`func (o *ModelsCertificateStoreContainerListResponse) HasSchedule() bool` + +HasSchedule returns a boolean if a field has been set. + +### GetCertStoreType + +`func (o *ModelsCertificateStoreContainerListResponse) GetCertStoreType() int32` + +GetCertStoreType returns the CertStoreType field if non-nil, zero value otherwise. + +### GetCertStoreTypeOk + +`func (o *ModelsCertificateStoreContainerListResponse) GetCertStoreTypeOk() (*int32, bool)` + +GetCertStoreTypeOk returns a tuple with the CertStoreType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertStoreType + +`func (o *ModelsCertificateStoreContainerListResponse) SetCertStoreType(v int32)` + +SetCertStoreType sets CertStoreType field to given value. + +### HasCertStoreType + +`func (o *ModelsCertificateStoreContainerListResponse) HasCertStoreType() bool` + +HasCertStoreType returns a boolean if a field has been set. + +### GetStoreCount + +`func (o *ModelsCertificateStoreContainerListResponse) GetStoreCount() int32` + +GetStoreCount returns the StoreCount field if non-nil, zero value otherwise. + +### GetStoreCountOk + +`func (o *ModelsCertificateStoreContainerListResponse) GetStoreCountOk() (*int32, bool)` + +GetStoreCountOk returns a tuple with the StoreCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStoreCount + +`func (o *ModelsCertificateStoreContainerListResponse) SetStoreCount(v int32)` + +SetStoreCount sets StoreCount field to given value. + +### HasStoreCount + +`func (o *ModelsCertificateStoreContainerListResponse) HasStoreCount() bool` + +HasStoreCount returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsCertificateStoreCreateServerRequest.md b/v1/docs/ModelsCertificateStoreCreateServerRequest.md new file mode 100644 index 0000000..4aa88f5 --- /dev/null +++ b/v1/docs/ModelsCertificateStoreCreateServerRequest.md @@ -0,0 +1,161 @@ +# ModelsCertificateStoreCreateServerRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Username** | [**ModelsKeyfactorAPISecret**](ModelsKeyfactorAPISecret.md) | | +**Password** | [**ModelsKeyfactorAPISecret**](ModelsKeyfactorAPISecret.md) | | +**UseSSL** | **bool** | | +**ServerType** | **int32** | | +**Name** | **string** | | +**Container** | Pointer to **int32** | | [optional] + +## Methods + +### NewModelsCertificateStoreCreateServerRequest + +`func NewModelsCertificateStoreCreateServerRequest(username ModelsKeyfactorAPISecret, password ModelsKeyfactorAPISecret, useSSL bool, serverType int32, name string, ) *ModelsCertificateStoreCreateServerRequest` + +NewModelsCertificateStoreCreateServerRequest instantiates a new ModelsCertificateStoreCreateServerRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsCertificateStoreCreateServerRequestWithDefaults + +`func NewModelsCertificateStoreCreateServerRequestWithDefaults() *ModelsCertificateStoreCreateServerRequest` + +NewModelsCertificateStoreCreateServerRequestWithDefaults instantiates a new ModelsCertificateStoreCreateServerRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUsername + +`func (o *ModelsCertificateStoreCreateServerRequest) GetUsername() ModelsKeyfactorAPISecret` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *ModelsCertificateStoreCreateServerRequest) GetUsernameOk() (*ModelsKeyfactorAPISecret, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *ModelsCertificateStoreCreateServerRequest) SetUsername(v ModelsKeyfactorAPISecret)` + +SetUsername sets Username field to given value. + + +### GetPassword + +`func (o *ModelsCertificateStoreCreateServerRequest) GetPassword() ModelsKeyfactorAPISecret` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *ModelsCertificateStoreCreateServerRequest) GetPasswordOk() (*ModelsKeyfactorAPISecret, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *ModelsCertificateStoreCreateServerRequest) SetPassword(v ModelsKeyfactorAPISecret)` + +SetPassword sets Password field to given value. + + +### GetUseSSL + +`func (o *ModelsCertificateStoreCreateServerRequest) GetUseSSL() bool` + +GetUseSSL returns the UseSSL field if non-nil, zero value otherwise. + +### GetUseSSLOk + +`func (o *ModelsCertificateStoreCreateServerRequest) GetUseSSLOk() (*bool, bool)` + +GetUseSSLOk returns a tuple with the UseSSL field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseSSL + +`func (o *ModelsCertificateStoreCreateServerRequest) SetUseSSL(v bool)` + +SetUseSSL sets UseSSL field to given value. + + +### GetServerType + +`func (o *ModelsCertificateStoreCreateServerRequest) GetServerType() int32` + +GetServerType returns the ServerType field if non-nil, zero value otherwise. + +### GetServerTypeOk + +`func (o *ModelsCertificateStoreCreateServerRequest) GetServerTypeOk() (*int32, bool)` + +GetServerTypeOk returns a tuple with the ServerType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerType + +`func (o *ModelsCertificateStoreCreateServerRequest) SetServerType(v int32)` + +SetServerType sets ServerType field to given value. + + +### GetName + +`func (o *ModelsCertificateStoreCreateServerRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ModelsCertificateStoreCreateServerRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ModelsCertificateStoreCreateServerRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetContainer + +`func (o *ModelsCertificateStoreCreateServerRequest) GetContainer() int32` + +GetContainer returns the Container field if non-nil, zero value otherwise. + +### GetContainerOk + +`func (o *ModelsCertificateStoreCreateServerRequest) GetContainerOk() (*int32, bool)` + +GetContainerOk returns a tuple with the Container field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContainer + +`func (o *ModelsCertificateStoreCreateServerRequest) SetContainer(v int32)` + +SetContainer sets Container field to given value. + +### HasContainer + +`func (o *ModelsCertificateStoreCreateServerRequest) HasContainer() bool` + +HasContainer returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsCertificateStoreEntry.md b/v1/docs/ModelsCertificateStoreEntry.md new file mode 100644 index 0000000..53a8250 --- /dev/null +++ b/v1/docs/ModelsCertificateStoreEntry.md @@ -0,0 +1,207 @@ +# ModelsCertificateStoreEntry + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CertificateStoreId** | **string** | | +**Alias** | Pointer to **string** | | [optional] +**JobFields** | Pointer to **map[string]map[string]interface{}** | | [optional] +**Overwrite** | Pointer to **bool** | | [optional] +**EntryPassword** | Pointer to [**ModelsKeyfactorAPISecret**](ModelsKeyfactorAPISecret.md) | | [optional] +**PfxPassword** | Pointer to **string** | The PFX password. | [optional] +**IncludePrivateKey** | Pointer to **bool** | | [optional] + +## Methods + +### NewModelsCertificateStoreEntry + +`func NewModelsCertificateStoreEntry(certificateStoreId string, ) *ModelsCertificateStoreEntry` + +NewModelsCertificateStoreEntry instantiates a new ModelsCertificateStoreEntry object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsCertificateStoreEntryWithDefaults + +`func NewModelsCertificateStoreEntryWithDefaults() *ModelsCertificateStoreEntry` + +NewModelsCertificateStoreEntryWithDefaults instantiates a new ModelsCertificateStoreEntry object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCertificateStoreId + +`func (o *ModelsCertificateStoreEntry) GetCertificateStoreId() string` + +GetCertificateStoreId returns the CertificateStoreId field if non-nil, zero value otherwise. + +### GetCertificateStoreIdOk + +`func (o *ModelsCertificateStoreEntry) GetCertificateStoreIdOk() (*string, bool)` + +GetCertificateStoreIdOk returns a tuple with the CertificateStoreId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateStoreId + +`func (o *ModelsCertificateStoreEntry) SetCertificateStoreId(v string)` + +SetCertificateStoreId sets CertificateStoreId field to given value. + + +### GetAlias + +`func (o *ModelsCertificateStoreEntry) GetAlias() string` + +GetAlias returns the Alias field if non-nil, zero value otherwise. + +### GetAliasOk + +`func (o *ModelsCertificateStoreEntry) GetAliasOk() (*string, bool)` + +GetAliasOk returns a tuple with the Alias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlias + +`func (o *ModelsCertificateStoreEntry) SetAlias(v string)` + +SetAlias sets Alias field to given value. + +### HasAlias + +`func (o *ModelsCertificateStoreEntry) HasAlias() bool` + +HasAlias returns a boolean if a field has been set. + +### GetJobFields + +`func (o *ModelsCertificateStoreEntry) GetJobFields() map[string]map[string]interface{}` + +GetJobFields returns the JobFields field if non-nil, zero value otherwise. + +### GetJobFieldsOk + +`func (o *ModelsCertificateStoreEntry) GetJobFieldsOk() (*map[string]map[string]interface{}, bool)` + +GetJobFieldsOk returns a tuple with the JobFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobFields + +`func (o *ModelsCertificateStoreEntry) SetJobFields(v map[string]map[string]interface{})` + +SetJobFields sets JobFields field to given value. + +### HasJobFields + +`func (o *ModelsCertificateStoreEntry) HasJobFields() bool` + +HasJobFields returns a boolean if a field has been set. + +### GetOverwrite + +`func (o *ModelsCertificateStoreEntry) GetOverwrite() bool` + +GetOverwrite returns the Overwrite field if non-nil, zero value otherwise. + +### GetOverwriteOk + +`func (o *ModelsCertificateStoreEntry) GetOverwriteOk() (*bool, bool)` + +GetOverwriteOk returns a tuple with the Overwrite field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOverwrite + +`func (o *ModelsCertificateStoreEntry) SetOverwrite(v bool)` + +SetOverwrite sets Overwrite field to given value. + +### HasOverwrite + +`func (o *ModelsCertificateStoreEntry) HasOverwrite() bool` + +HasOverwrite returns a boolean if a field has been set. + +### GetEntryPassword + +`func (o *ModelsCertificateStoreEntry) GetEntryPassword() ModelsKeyfactorAPISecret` + +GetEntryPassword returns the EntryPassword field if non-nil, zero value otherwise. + +### GetEntryPasswordOk + +`func (o *ModelsCertificateStoreEntry) GetEntryPasswordOk() (*ModelsKeyfactorAPISecret, bool)` + +GetEntryPasswordOk returns a tuple with the EntryPassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEntryPassword + +`func (o *ModelsCertificateStoreEntry) SetEntryPassword(v ModelsKeyfactorAPISecret)` + +SetEntryPassword sets EntryPassword field to given value. + +### HasEntryPassword + +`func (o *ModelsCertificateStoreEntry) HasEntryPassword() bool` + +HasEntryPassword returns a boolean if a field has been set. + +### GetPfxPassword + +`func (o *ModelsCertificateStoreEntry) GetPfxPassword() string` + +GetPfxPassword returns the PfxPassword field if non-nil, zero value otherwise. + +### GetPfxPasswordOk + +`func (o *ModelsCertificateStoreEntry) GetPfxPasswordOk() (*string, bool)` + +GetPfxPasswordOk returns a tuple with the PfxPassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPfxPassword + +`func (o *ModelsCertificateStoreEntry) SetPfxPassword(v string)` + +SetPfxPassword sets PfxPassword field to given value. + +### HasPfxPassword + +`func (o *ModelsCertificateStoreEntry) HasPfxPassword() bool` + +HasPfxPassword returns a boolean if a field has been set. + +### GetIncludePrivateKey + +`func (o *ModelsCertificateStoreEntry) GetIncludePrivateKey() bool` + +GetIncludePrivateKey returns the IncludePrivateKey field if non-nil, zero value otherwise. + +### GetIncludePrivateKeyOk + +`func (o *ModelsCertificateStoreEntry) GetIncludePrivateKeyOk() (*bool, bool)` + +GetIncludePrivateKeyOk returns a tuple with the IncludePrivateKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIncludePrivateKey + +`func (o *ModelsCertificateStoreEntry) SetIncludePrivateKey(v bool)` + +SetIncludePrivateKey sets IncludePrivateKey field to given value. + +### HasIncludePrivateKey + +`func (o *ModelsCertificateStoreEntry) HasIncludePrivateKey() bool` + +HasIncludePrivateKey returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsCertificateStoreInventory.md b/v1/docs/ModelsCertificateStoreInventory.md new file mode 100644 index 0000000..4618161 --- /dev/null +++ b/v1/docs/ModelsCertificateStoreInventory.md @@ -0,0 +1,108 @@ +# ModelsCertificateStoreInventory + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**Certificates** | Pointer to [**[]ModelsCertificateStoreInventoryCertificates**](ModelsCertificateStoreInventoryCertificates.md) | | [optional] +**Parameters** | Pointer to **map[string]map[string]interface{}** | | [optional] + +## Methods + +### NewModelsCertificateStoreInventory + +`func NewModelsCertificateStoreInventory() *ModelsCertificateStoreInventory` + +NewModelsCertificateStoreInventory instantiates a new ModelsCertificateStoreInventory object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsCertificateStoreInventoryWithDefaults + +`func NewModelsCertificateStoreInventoryWithDefaults() *ModelsCertificateStoreInventory` + +NewModelsCertificateStoreInventoryWithDefaults instantiates a new ModelsCertificateStoreInventory object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *ModelsCertificateStoreInventory) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ModelsCertificateStoreInventory) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ModelsCertificateStoreInventory) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ModelsCertificateStoreInventory) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetCertificates + +`func (o *ModelsCertificateStoreInventory) GetCertificates() []ModelsCertificateStoreInventoryCertificates` + +GetCertificates returns the Certificates field if non-nil, zero value otherwise. + +### GetCertificatesOk + +`func (o *ModelsCertificateStoreInventory) GetCertificatesOk() (*[]ModelsCertificateStoreInventoryCertificates, bool)` + +GetCertificatesOk returns a tuple with the Certificates field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificates + +`func (o *ModelsCertificateStoreInventory) SetCertificates(v []ModelsCertificateStoreInventoryCertificates)` + +SetCertificates sets Certificates field to given value. + +### HasCertificates + +`func (o *ModelsCertificateStoreInventory) HasCertificates() bool` + +HasCertificates returns a boolean if a field has been set. + +### GetParameters + +`func (o *ModelsCertificateStoreInventory) GetParameters() map[string]map[string]interface{}` + +GetParameters returns the Parameters field if non-nil, zero value otherwise. + +### GetParametersOk + +`func (o *ModelsCertificateStoreInventory) GetParametersOk() (*map[string]map[string]interface{}, bool)` + +GetParametersOk returns a tuple with the Parameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParameters + +`func (o *ModelsCertificateStoreInventory) SetParameters(v map[string]map[string]interface{})` + +SetParameters sets Parameters field to given value. + +### HasParameters + +`func (o *ModelsCertificateStoreInventory) HasParameters() bool` + +HasParameters returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsCertificateStoreInventoryCertificates.md b/v1/docs/ModelsCertificateStoreInventoryCertificates.md new file mode 100644 index 0000000..899209e --- /dev/null +++ b/v1/docs/ModelsCertificateStoreInventoryCertificates.md @@ -0,0 +1,310 @@ +# ModelsCertificateStoreInventoryCertificates + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**IssuedDN** | Pointer to **NullableString** | | [optional] +**SerialNumber** | Pointer to **string** | | [optional] +**NotBefore** | Pointer to **time.Time** | | [optional] +**NotAfter** | Pointer to **time.Time** | | [optional] +**SigningAlgorithm** | Pointer to **string** | | [optional] +**IssuerDN** | Pointer to **NullableString** | | [optional] +**Thumbprint** | Pointer to **string** | | [optional] +**CertStoreInventoryItemId** | Pointer to **int32** | | [optional] +**Metadata** | Pointer to **map[string]map[string]interface{}** | | [optional] + +## Methods + +### NewModelsCertificateStoreInventoryCertificates + +`func NewModelsCertificateStoreInventoryCertificates() *ModelsCertificateStoreInventoryCertificates` + +NewModelsCertificateStoreInventoryCertificates instantiates a new ModelsCertificateStoreInventoryCertificates object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsCertificateStoreInventoryCertificatesWithDefaults + +`func NewModelsCertificateStoreInventoryCertificatesWithDefaults() *ModelsCertificateStoreInventoryCertificates` + +NewModelsCertificateStoreInventoryCertificatesWithDefaults instantiates a new ModelsCertificateStoreInventoryCertificates object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsCertificateStoreInventoryCertificates) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsCertificateStoreInventoryCertificates) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsCertificateStoreInventoryCertificates) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ModelsCertificateStoreInventoryCertificates) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetIssuedDN + +`func (o *ModelsCertificateStoreInventoryCertificates) GetIssuedDN() string` + +GetIssuedDN returns the IssuedDN field if non-nil, zero value otherwise. + +### GetIssuedDNOk + +`func (o *ModelsCertificateStoreInventoryCertificates) GetIssuedDNOk() (*string, bool)` + +GetIssuedDNOk returns a tuple with the IssuedDN field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuedDN + +`func (o *ModelsCertificateStoreInventoryCertificates) SetIssuedDN(v string)` + +SetIssuedDN sets IssuedDN field to given value. + +### HasIssuedDN + +`func (o *ModelsCertificateStoreInventoryCertificates) HasIssuedDN() bool` + +HasIssuedDN returns a boolean if a field has been set. + +### SetIssuedDNNil + +`func (o *ModelsCertificateStoreInventoryCertificates) SetIssuedDNNil(b bool)` + + SetIssuedDNNil sets the value for IssuedDN to be an explicit nil + +### UnsetIssuedDN +`func (o *ModelsCertificateStoreInventoryCertificates) UnsetIssuedDN()` + +UnsetIssuedDN ensures that no value is present for IssuedDN, not even an explicit nil +### GetSerialNumber + +`func (o *ModelsCertificateStoreInventoryCertificates) GetSerialNumber() string` + +GetSerialNumber returns the SerialNumber field if non-nil, zero value otherwise. + +### GetSerialNumberOk + +`func (o *ModelsCertificateStoreInventoryCertificates) GetSerialNumberOk() (*string, bool)` + +GetSerialNumberOk returns a tuple with the SerialNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerialNumber + +`func (o *ModelsCertificateStoreInventoryCertificates) SetSerialNumber(v string)` + +SetSerialNumber sets SerialNumber field to given value. + +### HasSerialNumber + +`func (o *ModelsCertificateStoreInventoryCertificates) HasSerialNumber() bool` + +HasSerialNumber returns a boolean if a field has been set. + +### GetNotBefore + +`func (o *ModelsCertificateStoreInventoryCertificates) GetNotBefore() time.Time` + +GetNotBefore returns the NotBefore field if non-nil, zero value otherwise. + +### GetNotBeforeOk + +`func (o *ModelsCertificateStoreInventoryCertificates) GetNotBeforeOk() (*time.Time, bool)` + +GetNotBeforeOk returns a tuple with the NotBefore field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNotBefore + +`func (o *ModelsCertificateStoreInventoryCertificates) SetNotBefore(v time.Time)` + +SetNotBefore sets NotBefore field to given value. + +### HasNotBefore + +`func (o *ModelsCertificateStoreInventoryCertificates) HasNotBefore() bool` + +HasNotBefore returns a boolean if a field has been set. + +### GetNotAfter + +`func (o *ModelsCertificateStoreInventoryCertificates) GetNotAfter() time.Time` + +GetNotAfter returns the NotAfter field if non-nil, zero value otherwise. + +### GetNotAfterOk + +`func (o *ModelsCertificateStoreInventoryCertificates) GetNotAfterOk() (*time.Time, bool)` + +GetNotAfterOk returns a tuple with the NotAfter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNotAfter + +`func (o *ModelsCertificateStoreInventoryCertificates) SetNotAfter(v time.Time)` + +SetNotAfter sets NotAfter field to given value. + +### HasNotAfter + +`func (o *ModelsCertificateStoreInventoryCertificates) HasNotAfter() bool` + +HasNotAfter returns a boolean if a field has been set. + +### GetSigningAlgorithm + +`func (o *ModelsCertificateStoreInventoryCertificates) GetSigningAlgorithm() string` + +GetSigningAlgorithm returns the SigningAlgorithm field if non-nil, zero value otherwise. + +### GetSigningAlgorithmOk + +`func (o *ModelsCertificateStoreInventoryCertificates) GetSigningAlgorithmOk() (*string, bool)` + +GetSigningAlgorithmOk returns a tuple with the SigningAlgorithm field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSigningAlgorithm + +`func (o *ModelsCertificateStoreInventoryCertificates) SetSigningAlgorithm(v string)` + +SetSigningAlgorithm sets SigningAlgorithm field to given value. + +### HasSigningAlgorithm + +`func (o *ModelsCertificateStoreInventoryCertificates) HasSigningAlgorithm() bool` + +HasSigningAlgorithm returns a boolean if a field has been set. + +### GetIssuerDN + +`func (o *ModelsCertificateStoreInventoryCertificates) GetIssuerDN() string` + +GetIssuerDN returns the IssuerDN field if non-nil, zero value otherwise. + +### GetIssuerDNOk + +`func (o *ModelsCertificateStoreInventoryCertificates) GetIssuerDNOk() (*string, bool)` + +GetIssuerDNOk returns a tuple with the IssuerDN field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuerDN + +`func (o *ModelsCertificateStoreInventoryCertificates) SetIssuerDN(v string)` + +SetIssuerDN sets IssuerDN field to given value. + +### HasIssuerDN + +`func (o *ModelsCertificateStoreInventoryCertificates) HasIssuerDN() bool` + +HasIssuerDN returns a boolean if a field has been set. + +### SetIssuerDNNil + +`func (o *ModelsCertificateStoreInventoryCertificates) SetIssuerDNNil(b bool)` + + SetIssuerDNNil sets the value for IssuerDN to be an explicit nil + +### UnsetIssuerDN +`func (o *ModelsCertificateStoreInventoryCertificates) UnsetIssuerDN()` + +UnsetIssuerDN ensures that no value is present for IssuerDN, not even an explicit nil +### GetThumbprint + +`func (o *ModelsCertificateStoreInventoryCertificates) GetThumbprint() string` + +GetThumbprint returns the Thumbprint field if non-nil, zero value otherwise. + +### GetThumbprintOk + +`func (o *ModelsCertificateStoreInventoryCertificates) GetThumbprintOk() (*string, bool)` + +GetThumbprintOk returns a tuple with the Thumbprint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThumbprint + +`func (o *ModelsCertificateStoreInventoryCertificates) SetThumbprint(v string)` + +SetThumbprint sets Thumbprint field to given value. + +### HasThumbprint + +`func (o *ModelsCertificateStoreInventoryCertificates) HasThumbprint() bool` + +HasThumbprint returns a boolean if a field has been set. + +### GetCertStoreInventoryItemId + +`func (o *ModelsCertificateStoreInventoryCertificates) GetCertStoreInventoryItemId() int32` + +GetCertStoreInventoryItemId returns the CertStoreInventoryItemId field if non-nil, zero value otherwise. + +### GetCertStoreInventoryItemIdOk + +`func (o *ModelsCertificateStoreInventoryCertificates) GetCertStoreInventoryItemIdOk() (*int32, bool)` + +GetCertStoreInventoryItemIdOk returns a tuple with the CertStoreInventoryItemId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertStoreInventoryItemId + +`func (o *ModelsCertificateStoreInventoryCertificates) SetCertStoreInventoryItemId(v int32)` + +SetCertStoreInventoryItemId sets CertStoreInventoryItemId field to given value. + +### HasCertStoreInventoryItemId + +`func (o *ModelsCertificateStoreInventoryCertificates) HasCertStoreInventoryItemId() bool` + +HasCertStoreInventoryItemId returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ModelsCertificateStoreInventoryCertificates) GetMetadata() map[string]map[string]interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ModelsCertificateStoreInventoryCertificates) GetMetadataOk() (*map[string]map[string]interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ModelsCertificateStoreInventoryCertificates) SetMetadata(v map[string]map[string]interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ModelsCertificateStoreInventoryCertificates) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsCertificateStoreServerResponse.md b/v1/docs/ModelsCertificateStoreServerResponse.md new file mode 100644 index 0000000..d59081b --- /dev/null +++ b/v1/docs/ModelsCertificateStoreServerResponse.md @@ -0,0 +1,134 @@ +# ModelsCertificateStoreServerResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**UseSSL** | Pointer to **bool** | | [optional] +**ServerType** | Pointer to **int32** | | [optional] +**Name** | Pointer to **string** | | [optional] + +## Methods + +### NewModelsCertificateStoreServerResponse + +`func NewModelsCertificateStoreServerResponse() *ModelsCertificateStoreServerResponse` + +NewModelsCertificateStoreServerResponse instantiates a new ModelsCertificateStoreServerResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsCertificateStoreServerResponseWithDefaults + +`func NewModelsCertificateStoreServerResponseWithDefaults() *ModelsCertificateStoreServerResponse` + +NewModelsCertificateStoreServerResponseWithDefaults instantiates a new ModelsCertificateStoreServerResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsCertificateStoreServerResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsCertificateStoreServerResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsCertificateStoreServerResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ModelsCertificateStoreServerResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetUseSSL + +`func (o *ModelsCertificateStoreServerResponse) GetUseSSL() bool` + +GetUseSSL returns the UseSSL field if non-nil, zero value otherwise. + +### GetUseSSLOk + +`func (o *ModelsCertificateStoreServerResponse) GetUseSSLOk() (*bool, bool)` + +GetUseSSLOk returns a tuple with the UseSSL field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseSSL + +`func (o *ModelsCertificateStoreServerResponse) SetUseSSL(v bool)` + +SetUseSSL sets UseSSL field to given value. + +### HasUseSSL + +`func (o *ModelsCertificateStoreServerResponse) HasUseSSL() bool` + +HasUseSSL returns a boolean if a field has been set. + +### GetServerType + +`func (o *ModelsCertificateStoreServerResponse) GetServerType() int32` + +GetServerType returns the ServerType field if non-nil, zero value otherwise. + +### GetServerTypeOk + +`func (o *ModelsCertificateStoreServerResponse) GetServerTypeOk() (*int32, bool)` + +GetServerTypeOk returns a tuple with the ServerType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerType + +`func (o *ModelsCertificateStoreServerResponse) SetServerType(v int32)` + +SetServerType sets ServerType field to given value. + +### HasServerType + +`func (o *ModelsCertificateStoreServerResponse) HasServerType() bool` + +HasServerType returns a boolean if a field has been set. + +### GetName + +`func (o *ModelsCertificateStoreServerResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ModelsCertificateStoreServerResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ModelsCertificateStoreServerResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ModelsCertificateStoreServerResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsCertificateStoreTypeProperty.md b/v1/docs/ModelsCertificateStoreTypeProperty.md new file mode 100644 index 0000000..d52efe5 --- /dev/null +++ b/v1/docs/ModelsCertificateStoreTypeProperty.md @@ -0,0 +1,212 @@ +# ModelsCertificateStoreTypeProperty + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreTypeId** | Pointer to **int32** | | [optional] +**Name** | Pointer to **string** | | [optional] +**DisplayName** | Pointer to **string** | | [optional] +**Type** | Pointer to **string** | | [optional] +**DependsOn** | Pointer to **string** | | [optional] +**DefaultValue** | Pointer to **string** | | [optional] +**Required** | Pointer to **bool** | | [optional] + +## Methods + +### NewModelsCertificateStoreTypeProperty + +`func NewModelsCertificateStoreTypeProperty() *ModelsCertificateStoreTypeProperty` + +NewModelsCertificateStoreTypeProperty instantiates a new ModelsCertificateStoreTypeProperty object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsCertificateStoreTypePropertyWithDefaults + +`func NewModelsCertificateStoreTypePropertyWithDefaults() *ModelsCertificateStoreTypeProperty` + +NewModelsCertificateStoreTypePropertyWithDefaults instantiates a new ModelsCertificateStoreTypeProperty object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStoreTypeId + +`func (o *ModelsCertificateStoreTypeProperty) GetStoreTypeId() int32` + +GetStoreTypeId returns the StoreTypeId field if non-nil, zero value otherwise. + +### GetStoreTypeIdOk + +`func (o *ModelsCertificateStoreTypeProperty) GetStoreTypeIdOk() (*int32, bool)` + +GetStoreTypeIdOk returns a tuple with the StoreTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStoreTypeId + +`func (o *ModelsCertificateStoreTypeProperty) SetStoreTypeId(v int32)` + +SetStoreTypeId sets StoreTypeId field to given value. + +### HasStoreTypeId + +`func (o *ModelsCertificateStoreTypeProperty) HasStoreTypeId() bool` + +HasStoreTypeId returns a boolean if a field has been set. + +### GetName + +`func (o *ModelsCertificateStoreTypeProperty) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ModelsCertificateStoreTypeProperty) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ModelsCertificateStoreTypeProperty) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ModelsCertificateStoreTypeProperty) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *ModelsCertificateStoreTypeProperty) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *ModelsCertificateStoreTypeProperty) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *ModelsCertificateStoreTypeProperty) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *ModelsCertificateStoreTypeProperty) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetType + +`func (o *ModelsCertificateStoreTypeProperty) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ModelsCertificateStoreTypeProperty) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ModelsCertificateStoreTypeProperty) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *ModelsCertificateStoreTypeProperty) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetDependsOn + +`func (o *ModelsCertificateStoreTypeProperty) GetDependsOn() string` + +GetDependsOn returns the DependsOn field if non-nil, zero value otherwise. + +### GetDependsOnOk + +`func (o *ModelsCertificateStoreTypeProperty) GetDependsOnOk() (*string, bool)` + +GetDependsOnOk returns a tuple with the DependsOn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDependsOn + +`func (o *ModelsCertificateStoreTypeProperty) SetDependsOn(v string)` + +SetDependsOn sets DependsOn field to given value. + +### HasDependsOn + +`func (o *ModelsCertificateStoreTypeProperty) HasDependsOn() bool` + +HasDependsOn returns a boolean if a field has been set. + +### GetDefaultValue + +`func (o *ModelsCertificateStoreTypeProperty) GetDefaultValue() string` + +GetDefaultValue returns the DefaultValue field if non-nil, zero value otherwise. + +### GetDefaultValueOk + +`func (o *ModelsCertificateStoreTypeProperty) GetDefaultValueOk() (*string, bool)` + +GetDefaultValueOk returns a tuple with the DefaultValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultValue + +`func (o *ModelsCertificateStoreTypeProperty) SetDefaultValue(v string)` + +SetDefaultValue sets DefaultValue field to given value. + +### HasDefaultValue + +`func (o *ModelsCertificateStoreTypeProperty) HasDefaultValue() bool` + +HasDefaultValue returns a boolean if a field has been set. + +### GetRequired + +`func (o *ModelsCertificateStoreTypeProperty) GetRequired() bool` + +GetRequired returns the Required field if non-nil, zero value otherwise. + +### GetRequiredOk + +`func (o *ModelsCertificateStoreTypeProperty) GetRequiredOk() (*bool, bool)` + +GetRequiredOk returns a tuple with the Required field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequired + +`func (o *ModelsCertificateStoreTypeProperty) SetRequired(v bool)` + +SetRequired sets Required field to given value. + +### HasRequired + +`func (o *ModelsCertificateStoreTypeProperty) HasRequired() bool` + +HasRequired returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter.md b/v1/docs/ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter.md new file mode 100644 index 0000000..230f41b --- /dev/null +++ b/v1/docs/ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter.md @@ -0,0 +1,238 @@ +# ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreTypeId** | Pointer to **int32** | | [optional] +**Name** | Pointer to **string** | | [optional] +**DisplayName** | Pointer to **string** | | [optional] +**Type** | Pointer to **string** | | [optional] +**RequiredWhen** | Pointer to **map[string]bool** | | [optional] +**DependsOn** | Pointer to **string** | | [optional] +**DefaultValue** | Pointer to **string** | | [optional] +**Options** | Pointer to **string** | | [optional] + +## Methods + +### NewModelsCertificateStoreTypesCertificateStoreTypeEntryParameter + +`func NewModelsCertificateStoreTypesCertificateStoreTypeEntryParameter() *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter` + +NewModelsCertificateStoreTypesCertificateStoreTypeEntryParameter instantiates a new ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsCertificateStoreTypesCertificateStoreTypeEntryParameterWithDefaults + +`func NewModelsCertificateStoreTypesCertificateStoreTypeEntryParameterWithDefaults() *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter` + +NewModelsCertificateStoreTypesCertificateStoreTypeEntryParameterWithDefaults instantiates a new ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStoreTypeId + +`func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetStoreTypeId() int32` + +GetStoreTypeId returns the StoreTypeId field if non-nil, zero value otherwise. + +### GetStoreTypeIdOk + +`func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetStoreTypeIdOk() (*int32, bool)` + +GetStoreTypeIdOk returns a tuple with the StoreTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStoreTypeId + +`func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) SetStoreTypeId(v int32)` + +SetStoreTypeId sets StoreTypeId field to given value. + +### HasStoreTypeId + +`func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) HasStoreTypeId() bool` + +HasStoreTypeId returns a boolean if a field has been set. + +### GetName + +`func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetType + +`func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetRequiredWhen + +`func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetRequiredWhen() map[string]bool` + +GetRequiredWhen returns the RequiredWhen field if non-nil, zero value otherwise. + +### GetRequiredWhenOk + +`func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetRequiredWhenOk() (*map[string]bool, bool)` + +GetRequiredWhenOk returns a tuple with the RequiredWhen field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequiredWhen + +`func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) SetRequiredWhen(v map[string]bool)` + +SetRequiredWhen sets RequiredWhen field to given value. + +### HasRequiredWhen + +`func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) HasRequiredWhen() bool` + +HasRequiredWhen returns a boolean if a field has been set. + +### GetDependsOn + +`func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetDependsOn() string` + +GetDependsOn returns the DependsOn field if non-nil, zero value otherwise. + +### GetDependsOnOk + +`func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetDependsOnOk() (*string, bool)` + +GetDependsOnOk returns a tuple with the DependsOn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDependsOn + +`func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) SetDependsOn(v string)` + +SetDependsOn sets DependsOn field to given value. + +### HasDependsOn + +`func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) HasDependsOn() bool` + +HasDependsOn returns a boolean if a field has been set. + +### GetDefaultValue + +`func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetDefaultValue() string` + +GetDefaultValue returns the DefaultValue field if non-nil, zero value otherwise. + +### GetDefaultValueOk + +`func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetDefaultValueOk() (*string, bool)` + +GetDefaultValueOk returns a tuple with the DefaultValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultValue + +`func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) SetDefaultValue(v string)` + +SetDefaultValue sets DefaultValue field to given value. + +### HasDefaultValue + +`func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) HasDefaultValue() bool` + +HasDefaultValue returns a boolean if a field has been set. + +### GetOptions + +`func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetOptions() string` + +GetOptions returns the Options field if non-nil, zero value otherwise. + +### GetOptionsOk + +`func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) GetOptionsOk() (*string, bool)` + +GetOptionsOk returns a tuple with the Options field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOptions + +`func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) SetOptions(v string)` + +SetOptions sets Options field to given value. + +### HasOptions + +`func (o *ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter) HasOptions() bool` + +HasOptions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsCertificateStoreUpdateServerRequest.md b/v1/docs/ModelsCertificateStoreUpdateServerRequest.md new file mode 100644 index 0000000..e8afbde --- /dev/null +++ b/v1/docs/ModelsCertificateStoreUpdateServerRequest.md @@ -0,0 +1,161 @@ +# ModelsCertificateStoreUpdateServerRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | +**Username** | [**ModelsKeyfactorAPISecret**](ModelsKeyfactorAPISecret.md) | | +**Password** | [**ModelsKeyfactorAPISecret**](ModelsKeyfactorAPISecret.md) | | +**UseSSL** | **bool** | | +**Name** | **string** | | +**Container** | Pointer to **int32** | | [optional] + +## Methods + +### NewModelsCertificateStoreUpdateServerRequest + +`func NewModelsCertificateStoreUpdateServerRequest(id int32, username ModelsKeyfactorAPISecret, password ModelsKeyfactorAPISecret, useSSL bool, name string, ) *ModelsCertificateStoreUpdateServerRequest` + +NewModelsCertificateStoreUpdateServerRequest instantiates a new ModelsCertificateStoreUpdateServerRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsCertificateStoreUpdateServerRequestWithDefaults + +`func NewModelsCertificateStoreUpdateServerRequestWithDefaults() *ModelsCertificateStoreUpdateServerRequest` + +NewModelsCertificateStoreUpdateServerRequestWithDefaults instantiates a new ModelsCertificateStoreUpdateServerRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsCertificateStoreUpdateServerRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsCertificateStoreUpdateServerRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsCertificateStoreUpdateServerRequest) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUsername + +`func (o *ModelsCertificateStoreUpdateServerRequest) GetUsername() ModelsKeyfactorAPISecret` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *ModelsCertificateStoreUpdateServerRequest) GetUsernameOk() (*ModelsKeyfactorAPISecret, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *ModelsCertificateStoreUpdateServerRequest) SetUsername(v ModelsKeyfactorAPISecret)` + +SetUsername sets Username field to given value. + + +### GetPassword + +`func (o *ModelsCertificateStoreUpdateServerRequest) GetPassword() ModelsKeyfactorAPISecret` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *ModelsCertificateStoreUpdateServerRequest) GetPasswordOk() (*ModelsKeyfactorAPISecret, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *ModelsCertificateStoreUpdateServerRequest) SetPassword(v ModelsKeyfactorAPISecret)` + +SetPassword sets Password field to given value. + + +### GetUseSSL + +`func (o *ModelsCertificateStoreUpdateServerRequest) GetUseSSL() bool` + +GetUseSSL returns the UseSSL field if non-nil, zero value otherwise. + +### GetUseSSLOk + +`func (o *ModelsCertificateStoreUpdateServerRequest) GetUseSSLOk() (*bool, bool)` + +GetUseSSLOk returns a tuple with the UseSSL field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseSSL + +`func (o *ModelsCertificateStoreUpdateServerRequest) SetUseSSL(v bool)` + +SetUseSSL sets UseSSL field to given value. + + +### GetName + +`func (o *ModelsCertificateStoreUpdateServerRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ModelsCertificateStoreUpdateServerRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ModelsCertificateStoreUpdateServerRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetContainer + +`func (o *ModelsCertificateStoreUpdateServerRequest) GetContainer() int32` + +GetContainer returns the Container field if non-nil, zero value otherwise. + +### GetContainerOk + +`func (o *ModelsCertificateStoreUpdateServerRequest) GetContainerOk() (*int32, bool)` + +GetContainerOk returns a tuple with the Container field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContainer + +`func (o *ModelsCertificateStoreUpdateServerRequest) SetContainer(v int32)` + +SetContainer sets Container field to given value. + +### HasContainer + +`func (o *ModelsCertificateStoreUpdateServerRequest) HasContainer() bool` + +HasContainer returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsCertificateStoresCertificateStoreCreateRequest.md b/v1/docs/ModelsCertificateStoresCertificateStoreCreateRequest.md new file mode 100644 index 0000000..9b1386a --- /dev/null +++ b/v1/docs/ModelsCertificateStoresCertificateStoreCreateRequest.md @@ -0,0 +1,290 @@ +# ModelsCertificateStoresCertificateStoreCreateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ContainerId** | Pointer to **int32** | | [optional] +**ClientMachine** | Pointer to **string** | | [optional] +**Storepath** | Pointer to **string** | | [optional] +**CertStoreType** | Pointer to **int32** | | [optional] +**CreateIfMissing** | Pointer to **bool** | | [optional] +**Properties** | Pointer to **string** | | [optional] +**AgentId** | Pointer to **string** | | [optional] +**AgentAssigned** | Pointer to **bool** | | [optional] +**InventorySchedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**Password** | Pointer to [**ModelsKeyfactorAPISecret**](ModelsKeyfactorAPISecret.md) | | [optional] + +## Methods + +### NewModelsCertificateStoresCertificateStoreCreateRequest + +`func NewModelsCertificateStoresCertificateStoreCreateRequest() *ModelsCertificateStoresCertificateStoreCreateRequest` + +NewModelsCertificateStoresCertificateStoreCreateRequest instantiates a new ModelsCertificateStoresCertificateStoreCreateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsCertificateStoresCertificateStoreCreateRequestWithDefaults + +`func NewModelsCertificateStoresCertificateStoreCreateRequestWithDefaults() *ModelsCertificateStoresCertificateStoreCreateRequest` + +NewModelsCertificateStoresCertificateStoreCreateRequestWithDefaults instantiates a new ModelsCertificateStoresCertificateStoreCreateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetContainerId + +`func (o *ModelsCertificateStoresCertificateStoreCreateRequest) GetContainerId() int32` + +GetContainerId returns the ContainerId field if non-nil, zero value otherwise. + +### GetContainerIdOk + +`func (o *ModelsCertificateStoresCertificateStoreCreateRequest) GetContainerIdOk() (*int32, bool)` + +GetContainerIdOk returns a tuple with the ContainerId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContainerId + +`func (o *ModelsCertificateStoresCertificateStoreCreateRequest) SetContainerId(v int32)` + +SetContainerId sets ContainerId field to given value. + +### HasContainerId + +`func (o *ModelsCertificateStoresCertificateStoreCreateRequest) HasContainerId() bool` + +HasContainerId returns a boolean if a field has been set. + +### GetClientMachine + +`func (o *ModelsCertificateStoresCertificateStoreCreateRequest) GetClientMachine() string` + +GetClientMachine returns the ClientMachine field if non-nil, zero value otherwise. + +### GetClientMachineOk + +`func (o *ModelsCertificateStoresCertificateStoreCreateRequest) GetClientMachineOk() (*string, bool)` + +GetClientMachineOk returns a tuple with the ClientMachine field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientMachine + +`func (o *ModelsCertificateStoresCertificateStoreCreateRequest) SetClientMachine(v string)` + +SetClientMachine sets ClientMachine field to given value. + +### HasClientMachine + +`func (o *ModelsCertificateStoresCertificateStoreCreateRequest) HasClientMachine() bool` + +HasClientMachine returns a boolean if a field has been set. + +### GetStorepath + +`func (o *ModelsCertificateStoresCertificateStoreCreateRequest) GetStorepath() string` + +GetStorepath returns the Storepath field if non-nil, zero value otherwise. + +### GetStorepathOk + +`func (o *ModelsCertificateStoresCertificateStoreCreateRequest) GetStorepathOk() (*string, bool)` + +GetStorepathOk returns a tuple with the Storepath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStorepath + +`func (o *ModelsCertificateStoresCertificateStoreCreateRequest) SetStorepath(v string)` + +SetStorepath sets Storepath field to given value. + +### HasStorepath + +`func (o *ModelsCertificateStoresCertificateStoreCreateRequest) HasStorepath() bool` + +HasStorepath returns a boolean if a field has been set. + +### GetCertStoreType + +`func (o *ModelsCertificateStoresCertificateStoreCreateRequest) GetCertStoreType() int32` + +GetCertStoreType returns the CertStoreType field if non-nil, zero value otherwise. + +### GetCertStoreTypeOk + +`func (o *ModelsCertificateStoresCertificateStoreCreateRequest) GetCertStoreTypeOk() (*int32, bool)` + +GetCertStoreTypeOk returns a tuple with the CertStoreType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertStoreType + +`func (o *ModelsCertificateStoresCertificateStoreCreateRequest) SetCertStoreType(v int32)` + +SetCertStoreType sets CertStoreType field to given value. + +### HasCertStoreType + +`func (o *ModelsCertificateStoresCertificateStoreCreateRequest) HasCertStoreType() bool` + +HasCertStoreType returns a boolean if a field has been set. + +### GetCreateIfMissing + +`func (o *ModelsCertificateStoresCertificateStoreCreateRequest) GetCreateIfMissing() bool` + +GetCreateIfMissing returns the CreateIfMissing field if non-nil, zero value otherwise. + +### GetCreateIfMissingOk + +`func (o *ModelsCertificateStoresCertificateStoreCreateRequest) GetCreateIfMissingOk() (*bool, bool)` + +GetCreateIfMissingOk returns a tuple with the CreateIfMissing field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreateIfMissing + +`func (o *ModelsCertificateStoresCertificateStoreCreateRequest) SetCreateIfMissing(v bool)` + +SetCreateIfMissing sets CreateIfMissing field to given value. + +### HasCreateIfMissing + +`func (o *ModelsCertificateStoresCertificateStoreCreateRequest) HasCreateIfMissing() bool` + +HasCreateIfMissing returns a boolean if a field has been set. + +### GetProperties + +`func (o *ModelsCertificateStoresCertificateStoreCreateRequest) GetProperties() string` + +GetProperties returns the Properties field if non-nil, zero value otherwise. + +### GetPropertiesOk + +`func (o *ModelsCertificateStoresCertificateStoreCreateRequest) GetPropertiesOk() (*string, bool)` + +GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProperties + +`func (o *ModelsCertificateStoresCertificateStoreCreateRequest) SetProperties(v string)` + +SetProperties sets Properties field to given value. + +### HasProperties + +`func (o *ModelsCertificateStoresCertificateStoreCreateRequest) HasProperties() bool` + +HasProperties returns a boolean if a field has been set. + +### GetAgentId + +`func (o *ModelsCertificateStoresCertificateStoreCreateRequest) GetAgentId() string` + +GetAgentId returns the AgentId field if non-nil, zero value otherwise. + +### GetAgentIdOk + +`func (o *ModelsCertificateStoresCertificateStoreCreateRequest) GetAgentIdOk() (*string, bool)` + +GetAgentIdOk returns a tuple with the AgentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentId + +`func (o *ModelsCertificateStoresCertificateStoreCreateRequest) SetAgentId(v string)` + +SetAgentId sets AgentId field to given value. + +### HasAgentId + +`func (o *ModelsCertificateStoresCertificateStoreCreateRequest) HasAgentId() bool` + +HasAgentId returns a boolean if a field has been set. + +### GetAgentAssigned + +`func (o *ModelsCertificateStoresCertificateStoreCreateRequest) GetAgentAssigned() bool` + +GetAgentAssigned returns the AgentAssigned field if non-nil, zero value otherwise. + +### GetAgentAssignedOk + +`func (o *ModelsCertificateStoresCertificateStoreCreateRequest) GetAgentAssignedOk() (*bool, bool)` + +GetAgentAssignedOk returns a tuple with the AgentAssigned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentAssigned + +`func (o *ModelsCertificateStoresCertificateStoreCreateRequest) SetAgentAssigned(v bool)` + +SetAgentAssigned sets AgentAssigned field to given value. + +### HasAgentAssigned + +`func (o *ModelsCertificateStoresCertificateStoreCreateRequest) HasAgentAssigned() bool` + +HasAgentAssigned returns a boolean if a field has been set. + +### GetInventorySchedule + +`func (o *ModelsCertificateStoresCertificateStoreCreateRequest) GetInventorySchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetInventorySchedule returns the InventorySchedule field if non-nil, zero value otherwise. + +### GetInventoryScheduleOk + +`func (o *ModelsCertificateStoresCertificateStoreCreateRequest) GetInventoryScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetInventoryScheduleOk returns a tuple with the InventorySchedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInventorySchedule + +`func (o *ModelsCertificateStoresCertificateStoreCreateRequest) SetInventorySchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetInventorySchedule sets InventorySchedule field to given value. + +### HasInventorySchedule + +`func (o *ModelsCertificateStoresCertificateStoreCreateRequest) HasInventorySchedule() bool` + +HasInventorySchedule returns a boolean if a field has been set. + +### GetPassword + +`func (o *ModelsCertificateStoresCertificateStoreCreateRequest) GetPassword() ModelsKeyfactorAPISecret` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *ModelsCertificateStoresCertificateStoreCreateRequest) GetPasswordOk() (*ModelsKeyfactorAPISecret, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *ModelsCertificateStoresCertificateStoreCreateRequest) SetPassword(v ModelsKeyfactorAPISecret)` + +SetPassword sets Password field to given value. + +### HasPassword + +`func (o *ModelsCertificateStoresCertificateStoreCreateRequest) HasPassword() bool` + +HasPassword returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsCertificateStoresCertificateStoreUpdateRequest.md b/v1/docs/ModelsCertificateStoresCertificateStoreUpdateRequest.md new file mode 100644 index 0000000..27eff7d --- /dev/null +++ b/v1/docs/ModelsCertificateStoresCertificateStoreUpdateRequest.md @@ -0,0 +1,212 @@ +# ModelsCertificateStoresCertificateStoreUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**ContainerId** | Pointer to **int32** | | [optional] +**CreateIfMissing** | Pointer to **bool** | | [optional] +**Properties** | Pointer to **string** | | [optional] +**AgentId** | Pointer to **string** | | [optional] +**InventorySchedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**Password** | Pointer to [**ModelsKeyfactorAPISecret**](ModelsKeyfactorAPISecret.md) | | [optional] + +## Methods + +### NewModelsCertificateStoresCertificateStoreUpdateRequest + +`func NewModelsCertificateStoresCertificateStoreUpdateRequest() *ModelsCertificateStoresCertificateStoreUpdateRequest` + +NewModelsCertificateStoresCertificateStoreUpdateRequest instantiates a new ModelsCertificateStoresCertificateStoreUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsCertificateStoresCertificateStoreUpdateRequestWithDefaults + +`func NewModelsCertificateStoresCertificateStoreUpdateRequestWithDefaults() *ModelsCertificateStoresCertificateStoreUpdateRequest` + +NewModelsCertificateStoresCertificateStoreUpdateRequestWithDefaults instantiates a new ModelsCertificateStoresCertificateStoreUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetContainerId + +`func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) GetContainerId() int32` + +GetContainerId returns the ContainerId field if non-nil, zero value otherwise. + +### GetContainerIdOk + +`func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) GetContainerIdOk() (*int32, bool)` + +GetContainerIdOk returns a tuple with the ContainerId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContainerId + +`func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) SetContainerId(v int32)` + +SetContainerId sets ContainerId field to given value. + +### HasContainerId + +`func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) HasContainerId() bool` + +HasContainerId returns a boolean if a field has been set. + +### GetCreateIfMissing + +`func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) GetCreateIfMissing() bool` + +GetCreateIfMissing returns the CreateIfMissing field if non-nil, zero value otherwise. + +### GetCreateIfMissingOk + +`func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) GetCreateIfMissingOk() (*bool, bool)` + +GetCreateIfMissingOk returns a tuple with the CreateIfMissing field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreateIfMissing + +`func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) SetCreateIfMissing(v bool)` + +SetCreateIfMissing sets CreateIfMissing field to given value. + +### HasCreateIfMissing + +`func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) HasCreateIfMissing() bool` + +HasCreateIfMissing returns a boolean if a field has been set. + +### GetProperties + +`func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) GetProperties() string` + +GetProperties returns the Properties field if non-nil, zero value otherwise. + +### GetPropertiesOk + +`func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) GetPropertiesOk() (*string, bool)` + +GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProperties + +`func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) SetProperties(v string)` + +SetProperties sets Properties field to given value. + +### HasProperties + +`func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) HasProperties() bool` + +HasProperties returns a boolean if a field has been set. + +### GetAgentId + +`func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) GetAgentId() string` + +GetAgentId returns the AgentId field if non-nil, zero value otherwise. + +### GetAgentIdOk + +`func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) GetAgentIdOk() (*string, bool)` + +GetAgentIdOk returns a tuple with the AgentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentId + +`func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) SetAgentId(v string)` + +SetAgentId sets AgentId field to given value. + +### HasAgentId + +`func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) HasAgentId() bool` + +HasAgentId returns a boolean if a field has been set. + +### GetInventorySchedule + +`func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) GetInventorySchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetInventorySchedule returns the InventorySchedule field if non-nil, zero value otherwise. + +### GetInventoryScheduleOk + +`func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) GetInventoryScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetInventoryScheduleOk returns a tuple with the InventorySchedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInventorySchedule + +`func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) SetInventorySchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetInventorySchedule sets InventorySchedule field to given value. + +### HasInventorySchedule + +`func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) HasInventorySchedule() bool` + +HasInventorySchedule returns a boolean if a field has been set. + +### GetPassword + +`func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) GetPassword() ModelsKeyfactorAPISecret` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) GetPasswordOk() (*ModelsKeyfactorAPISecret, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) SetPassword(v ModelsKeyfactorAPISecret)` + +SetPassword sets Password field to given value. + +### HasPassword + +`func (o *ModelsCertificateStoresCertificateStoreUpdateRequest) HasPassword() bool` + +HasPassword returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsCertificateValidationResponse.md b/v1/docs/ModelsCertificateValidationResponse.md new file mode 100644 index 0000000..0b6b409 --- /dev/null +++ b/v1/docs/ModelsCertificateValidationResponse.md @@ -0,0 +1,82 @@ +# ModelsCertificateValidationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Valid** | Pointer to **bool** | States whether the certificate is valid or not | [optional] +**Results** | Pointer to **map[string]string** | Lists any reasons why the certificate is not valid | [optional] + +## Methods + +### NewModelsCertificateValidationResponse + +`func NewModelsCertificateValidationResponse() *ModelsCertificateValidationResponse` + +NewModelsCertificateValidationResponse instantiates a new ModelsCertificateValidationResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsCertificateValidationResponseWithDefaults + +`func NewModelsCertificateValidationResponseWithDefaults() *ModelsCertificateValidationResponse` + +NewModelsCertificateValidationResponseWithDefaults instantiates a new ModelsCertificateValidationResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValid + +`func (o *ModelsCertificateValidationResponse) GetValid() bool` + +GetValid returns the Valid field if non-nil, zero value otherwise. + +### GetValidOk + +`func (o *ModelsCertificateValidationResponse) GetValidOk() (*bool, bool)` + +GetValidOk returns a tuple with the Valid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValid + +`func (o *ModelsCertificateValidationResponse) SetValid(v bool)` + +SetValid sets Valid field to given value. + +### HasValid + +`func (o *ModelsCertificateValidationResponse) HasValid() bool` + +HasValid returns a boolean if a field has been set. + +### GetResults + +`func (o *ModelsCertificateValidationResponse) GetResults() map[string]string` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *ModelsCertificateValidationResponse) GetResultsOk() (*map[string]string, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *ModelsCertificateValidationResponse) SetResults(v map[string]string)` + +SetResults sets Results field to given value. + +### HasResults + +`func (o *ModelsCertificateValidationResponse) HasResults() bool` + +HasResults returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsCollectionRolePermissions.md b/v1/docs/ModelsCollectionRolePermissions.md new file mode 100644 index 0000000..2fcd38a --- /dev/null +++ b/v1/docs/ModelsCollectionRolePermissions.md @@ -0,0 +1,82 @@ +# ModelsCollectionRolePermissions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RoleId** | Pointer to **int32** | | [optional] +**Permissions** | Pointer to **[]string** | | [optional] + +## Methods + +### NewModelsCollectionRolePermissions + +`func NewModelsCollectionRolePermissions() *ModelsCollectionRolePermissions` + +NewModelsCollectionRolePermissions instantiates a new ModelsCollectionRolePermissions object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsCollectionRolePermissionsWithDefaults + +`func NewModelsCollectionRolePermissionsWithDefaults() *ModelsCollectionRolePermissions` + +NewModelsCollectionRolePermissionsWithDefaults instantiates a new ModelsCollectionRolePermissions object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRoleId + +`func (o *ModelsCollectionRolePermissions) GetRoleId() int32` + +GetRoleId returns the RoleId field if non-nil, zero value otherwise. + +### GetRoleIdOk + +`func (o *ModelsCollectionRolePermissions) GetRoleIdOk() (*int32, bool)` + +GetRoleIdOk returns a tuple with the RoleId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoleId + +`func (o *ModelsCollectionRolePermissions) SetRoleId(v int32)` + +SetRoleId sets RoleId field to given value. + +### HasRoleId + +`func (o *ModelsCollectionRolePermissions) HasRoleId() bool` + +HasRoleId returns a boolean if a field has been set. + +### GetPermissions + +`func (o *ModelsCollectionRolePermissions) GetPermissions() []string` + +GetPermissions returns the Permissions field if non-nil, zero value otherwise. + +### GetPermissionsOk + +`func (o *ModelsCollectionRolePermissions) GetPermissionsOk() (*[]string, bool)` + +GetPermissionsOk returns a tuple with the Permissions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissions + +`func (o *ModelsCollectionRolePermissions) SetPermissions(v []string)` + +SetPermissions sets Permissions field to given value. + +### HasPermissions + +`func (o *ModelsCollectionRolePermissions) HasPermissions() bool` + +HasPermissions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsContainerAssignment.md b/v1/docs/ModelsContainerAssignment.md new file mode 100644 index 0000000..d66f31e --- /dev/null +++ b/v1/docs/ModelsContainerAssignment.md @@ -0,0 +1,129 @@ +# ModelsContainerAssignment + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CertStoreContainerId** | Pointer to **int32** | | [optional] +**NewContainerName** | Pointer to **string** | | [optional] +**NewContainerType** | Pointer to **int32** | | [optional] +**KeystoreIds** | **[]string** | | + +## Methods + +### NewModelsContainerAssignment + +`func NewModelsContainerAssignment(keystoreIds []string, ) *ModelsContainerAssignment` + +NewModelsContainerAssignment instantiates a new ModelsContainerAssignment object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsContainerAssignmentWithDefaults + +`func NewModelsContainerAssignmentWithDefaults() *ModelsContainerAssignment` + +NewModelsContainerAssignmentWithDefaults instantiates a new ModelsContainerAssignment object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCertStoreContainerId + +`func (o *ModelsContainerAssignment) GetCertStoreContainerId() int32` + +GetCertStoreContainerId returns the CertStoreContainerId field if non-nil, zero value otherwise. + +### GetCertStoreContainerIdOk + +`func (o *ModelsContainerAssignment) GetCertStoreContainerIdOk() (*int32, bool)` + +GetCertStoreContainerIdOk returns a tuple with the CertStoreContainerId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertStoreContainerId + +`func (o *ModelsContainerAssignment) SetCertStoreContainerId(v int32)` + +SetCertStoreContainerId sets CertStoreContainerId field to given value. + +### HasCertStoreContainerId + +`func (o *ModelsContainerAssignment) HasCertStoreContainerId() bool` + +HasCertStoreContainerId returns a boolean if a field has been set. + +### GetNewContainerName + +`func (o *ModelsContainerAssignment) GetNewContainerName() string` + +GetNewContainerName returns the NewContainerName field if non-nil, zero value otherwise. + +### GetNewContainerNameOk + +`func (o *ModelsContainerAssignment) GetNewContainerNameOk() (*string, bool)` + +GetNewContainerNameOk returns a tuple with the NewContainerName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNewContainerName + +`func (o *ModelsContainerAssignment) SetNewContainerName(v string)` + +SetNewContainerName sets NewContainerName field to given value. + +### HasNewContainerName + +`func (o *ModelsContainerAssignment) HasNewContainerName() bool` + +HasNewContainerName returns a boolean if a field has been set. + +### GetNewContainerType + +`func (o *ModelsContainerAssignment) GetNewContainerType() int32` + +GetNewContainerType returns the NewContainerType field if non-nil, zero value otherwise. + +### GetNewContainerTypeOk + +`func (o *ModelsContainerAssignment) GetNewContainerTypeOk() (*int32, bool)` + +GetNewContainerTypeOk returns a tuple with the NewContainerType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNewContainerType + +`func (o *ModelsContainerAssignment) SetNewContainerType(v int32)` + +SetNewContainerType sets NewContainerType field to given value. + +### HasNewContainerType + +`func (o *ModelsContainerAssignment) HasNewContainerType() bool` + +HasNewContainerType returns a boolean if a field has been set. + +### GetKeystoreIds + +`func (o *ModelsContainerAssignment) GetKeystoreIds() []string` + +GetKeystoreIds returns the KeystoreIds field if non-nil, zero value otherwise. + +### GetKeystoreIdsOk + +`func (o *ModelsContainerAssignment) GetKeystoreIdsOk() (*[]string, bool)` + +GetKeystoreIdsOk returns a tuple with the KeystoreIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeystoreIds + +`func (o *ModelsContainerAssignment) SetKeystoreIds(v []string)` + +SetKeystoreIds sets KeystoreIds field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsCustomReport.md b/v1/docs/ModelsCustomReport.md new file mode 100644 index 0000000..00b280f --- /dev/null +++ b/v1/docs/ModelsCustomReport.md @@ -0,0 +1,186 @@ +# ModelsCustomReport + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CustomURL** | Pointer to **string** | | [optional] +**Id** | Pointer to **int32** | | [optional] +**DisplayName** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**InNavigator** | Pointer to **bool** | | [optional] +**Favorite** | Pointer to **bool** | | [optional] + +## Methods + +### NewModelsCustomReport + +`func NewModelsCustomReport() *ModelsCustomReport` + +NewModelsCustomReport instantiates a new ModelsCustomReport object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsCustomReportWithDefaults + +`func NewModelsCustomReportWithDefaults() *ModelsCustomReport` + +NewModelsCustomReportWithDefaults instantiates a new ModelsCustomReport object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCustomURL + +`func (o *ModelsCustomReport) GetCustomURL() string` + +GetCustomURL returns the CustomURL field if non-nil, zero value otherwise. + +### GetCustomURLOk + +`func (o *ModelsCustomReport) GetCustomURLOk() (*string, bool)` + +GetCustomURLOk returns a tuple with the CustomURL field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomURL + +`func (o *ModelsCustomReport) SetCustomURL(v string)` + +SetCustomURL sets CustomURL field to given value. + +### HasCustomURL + +`func (o *ModelsCustomReport) HasCustomURL() bool` + +HasCustomURL returns a boolean if a field has been set. + +### GetId + +`func (o *ModelsCustomReport) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsCustomReport) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsCustomReport) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ModelsCustomReport) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *ModelsCustomReport) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *ModelsCustomReport) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *ModelsCustomReport) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *ModelsCustomReport) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetDescription + +`func (o *ModelsCustomReport) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ModelsCustomReport) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *ModelsCustomReport) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ModelsCustomReport) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetInNavigator + +`func (o *ModelsCustomReport) GetInNavigator() bool` + +GetInNavigator returns the InNavigator field if non-nil, zero value otherwise. + +### GetInNavigatorOk + +`func (o *ModelsCustomReport) GetInNavigatorOk() (*bool, bool)` + +GetInNavigatorOk returns a tuple with the InNavigator field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInNavigator + +`func (o *ModelsCustomReport) SetInNavigator(v bool)` + +SetInNavigator sets InNavigator field to given value. + +### HasInNavigator + +`func (o *ModelsCustomReport) HasInNavigator() bool` + +HasInNavigator returns a boolean if a field has been set. + +### GetFavorite + +`func (o *ModelsCustomReport) GetFavorite() bool` + +GetFavorite returns the Favorite field if non-nil, zero value otherwise. + +### GetFavoriteOk + +`func (o *ModelsCustomReport) GetFavoriteOk() (*bool, bool)` + +GetFavoriteOk returns a tuple with the Favorite field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFavorite + +`func (o *ModelsCustomReport) SetFavorite(v bool)` + +SetFavorite sets Favorite field to given value. + +### HasFavorite + +`func (o *ModelsCustomReport) HasFavorite() bool` + +HasFavorite returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsCustomReportCreationRequest.md b/v1/docs/ModelsCustomReportCreationRequest.md new file mode 100644 index 0000000..2f70c6d --- /dev/null +++ b/v1/docs/ModelsCustomReportCreationRequest.md @@ -0,0 +1,145 @@ +# ModelsCustomReportCreationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CustomURL** | **string** | | +**DisplayName** | **string** | | +**Description** | **string** | | +**InNavigator** | Pointer to **bool** | | [optional] +**Favorite** | Pointer to **bool** | | [optional] + +## Methods + +### NewModelsCustomReportCreationRequest + +`func NewModelsCustomReportCreationRequest(customURL string, displayName string, description string, ) *ModelsCustomReportCreationRequest` + +NewModelsCustomReportCreationRequest instantiates a new ModelsCustomReportCreationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsCustomReportCreationRequestWithDefaults + +`func NewModelsCustomReportCreationRequestWithDefaults() *ModelsCustomReportCreationRequest` + +NewModelsCustomReportCreationRequestWithDefaults instantiates a new ModelsCustomReportCreationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCustomURL + +`func (o *ModelsCustomReportCreationRequest) GetCustomURL() string` + +GetCustomURL returns the CustomURL field if non-nil, zero value otherwise. + +### GetCustomURLOk + +`func (o *ModelsCustomReportCreationRequest) GetCustomURLOk() (*string, bool)` + +GetCustomURLOk returns a tuple with the CustomURL field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomURL + +`func (o *ModelsCustomReportCreationRequest) SetCustomURL(v string)` + +SetCustomURL sets CustomURL field to given value. + + +### GetDisplayName + +`func (o *ModelsCustomReportCreationRequest) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *ModelsCustomReportCreationRequest) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *ModelsCustomReportCreationRequest) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + + +### GetDescription + +`func (o *ModelsCustomReportCreationRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ModelsCustomReportCreationRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *ModelsCustomReportCreationRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + + +### GetInNavigator + +`func (o *ModelsCustomReportCreationRequest) GetInNavigator() bool` + +GetInNavigator returns the InNavigator field if non-nil, zero value otherwise. + +### GetInNavigatorOk + +`func (o *ModelsCustomReportCreationRequest) GetInNavigatorOk() (*bool, bool)` + +GetInNavigatorOk returns a tuple with the InNavigator field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInNavigator + +`func (o *ModelsCustomReportCreationRequest) SetInNavigator(v bool)` + +SetInNavigator sets InNavigator field to given value. + +### HasInNavigator + +`func (o *ModelsCustomReportCreationRequest) HasInNavigator() bool` + +HasInNavigator returns a boolean if a field has been set. + +### GetFavorite + +`func (o *ModelsCustomReportCreationRequest) GetFavorite() bool` + +GetFavorite returns the Favorite field if non-nil, zero value otherwise. + +### GetFavoriteOk + +`func (o *ModelsCustomReportCreationRequest) GetFavoriteOk() (*bool, bool)` + +GetFavoriteOk returns a tuple with the Favorite field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFavorite + +`func (o *ModelsCustomReportCreationRequest) SetFavorite(v bool)` + +SetFavorite sets Favorite field to given value. + +### HasFavorite + +`func (o *ModelsCustomReportCreationRequest) HasFavorite() bool` + +HasFavorite returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsCustomReportUpdateRequest.md b/v1/docs/ModelsCustomReportUpdateRequest.md new file mode 100644 index 0000000..2591bb1 --- /dev/null +++ b/v1/docs/ModelsCustomReportUpdateRequest.md @@ -0,0 +1,181 @@ +# ModelsCustomReportUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CustomURL** | Pointer to **string** | | [optional] +**Id** | **int32** | | +**DisplayName** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**InNavigator** | Pointer to **bool** | | [optional] +**Favorite** | Pointer to **bool** | | [optional] + +## Methods + +### NewModelsCustomReportUpdateRequest + +`func NewModelsCustomReportUpdateRequest(id int32, ) *ModelsCustomReportUpdateRequest` + +NewModelsCustomReportUpdateRequest instantiates a new ModelsCustomReportUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsCustomReportUpdateRequestWithDefaults + +`func NewModelsCustomReportUpdateRequestWithDefaults() *ModelsCustomReportUpdateRequest` + +NewModelsCustomReportUpdateRequestWithDefaults instantiates a new ModelsCustomReportUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCustomURL + +`func (o *ModelsCustomReportUpdateRequest) GetCustomURL() string` + +GetCustomURL returns the CustomURL field if non-nil, zero value otherwise. + +### GetCustomURLOk + +`func (o *ModelsCustomReportUpdateRequest) GetCustomURLOk() (*string, bool)` + +GetCustomURLOk returns a tuple with the CustomURL field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomURL + +`func (o *ModelsCustomReportUpdateRequest) SetCustomURL(v string)` + +SetCustomURL sets CustomURL field to given value. + +### HasCustomURL + +`func (o *ModelsCustomReportUpdateRequest) HasCustomURL() bool` + +HasCustomURL returns a boolean if a field has been set. + +### GetId + +`func (o *ModelsCustomReportUpdateRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsCustomReportUpdateRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsCustomReportUpdateRequest) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetDisplayName + +`func (o *ModelsCustomReportUpdateRequest) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *ModelsCustomReportUpdateRequest) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *ModelsCustomReportUpdateRequest) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *ModelsCustomReportUpdateRequest) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetDescription + +`func (o *ModelsCustomReportUpdateRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ModelsCustomReportUpdateRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *ModelsCustomReportUpdateRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ModelsCustomReportUpdateRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetInNavigator + +`func (o *ModelsCustomReportUpdateRequest) GetInNavigator() bool` + +GetInNavigator returns the InNavigator field if non-nil, zero value otherwise. + +### GetInNavigatorOk + +`func (o *ModelsCustomReportUpdateRequest) GetInNavigatorOk() (*bool, bool)` + +GetInNavigatorOk returns a tuple with the InNavigator field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInNavigator + +`func (o *ModelsCustomReportUpdateRequest) SetInNavigator(v bool)` + +SetInNavigator sets InNavigator field to given value. + +### HasInNavigator + +`func (o *ModelsCustomReportUpdateRequest) HasInNavigator() bool` + +HasInNavigator returns a boolean if a field has been set. + +### GetFavorite + +`func (o *ModelsCustomReportUpdateRequest) GetFavorite() bool` + +GetFavorite returns the Favorite field if non-nil, zero value otherwise. + +### GetFavoriteOk + +`func (o *ModelsCustomReportUpdateRequest) GetFavoriteOk() (*bool, bool)` + +GetFavoriteOk returns a tuple with the Favorite field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFavorite + +`func (o *ModelsCustomReportUpdateRequest) SetFavorite(v bool)` + +SetFavorite sets Favorite field to given value. + +### HasFavorite + +`func (o *ModelsCustomReportUpdateRequest) HasFavorite() bool` + +HasFavorite returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsDiscoveryJobRequest.md b/v1/docs/ModelsDiscoveryJobRequest.md new file mode 100644 index 0000000..36e96af --- /dev/null +++ b/v1/docs/ModelsDiscoveryJobRequest.md @@ -0,0 +1,363 @@ +# ModelsDiscoveryJobRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ClientMachine** | Pointer to **string** | | [optional] +**AgentId** | Pointer to **string** | | [optional] +**Type** | **int32** | | +**JobExecutionTimestamp** | Pointer to **time.Time** | | [optional] +**Dirs** | Pointer to **string** | | [optional] +**IgnoredDirs** | Pointer to **string** | | [optional] +**Extensions** | Pointer to **string** | | [optional] +**NamePatterns** | Pointer to **string** | | [optional] +**SymLinks** | Pointer to **bool** | | [optional] +**Compatibility** | Pointer to **bool** | | [optional] +**ServerUsername** | Pointer to [**ModelsKeyfactorAPISecret**](ModelsKeyfactorAPISecret.md) | | [optional] +**ServerPassword** | Pointer to [**ModelsKeyfactorAPISecret**](ModelsKeyfactorAPISecret.md) | | [optional] +**ServerUseSsl** | Pointer to **bool** | | [optional] + +## Methods + +### NewModelsDiscoveryJobRequest + +`func NewModelsDiscoveryJobRequest(type_ int32, ) *ModelsDiscoveryJobRequest` + +NewModelsDiscoveryJobRequest instantiates a new ModelsDiscoveryJobRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsDiscoveryJobRequestWithDefaults + +`func NewModelsDiscoveryJobRequestWithDefaults() *ModelsDiscoveryJobRequest` + +NewModelsDiscoveryJobRequestWithDefaults instantiates a new ModelsDiscoveryJobRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetClientMachine + +`func (o *ModelsDiscoveryJobRequest) GetClientMachine() string` + +GetClientMachine returns the ClientMachine field if non-nil, zero value otherwise. + +### GetClientMachineOk + +`func (o *ModelsDiscoveryJobRequest) GetClientMachineOk() (*string, bool)` + +GetClientMachineOk returns a tuple with the ClientMachine field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientMachine + +`func (o *ModelsDiscoveryJobRequest) SetClientMachine(v string)` + +SetClientMachine sets ClientMachine field to given value. + +### HasClientMachine + +`func (o *ModelsDiscoveryJobRequest) HasClientMachine() bool` + +HasClientMachine returns a boolean if a field has been set. + +### GetAgentId + +`func (o *ModelsDiscoveryJobRequest) GetAgentId() string` + +GetAgentId returns the AgentId field if non-nil, zero value otherwise. + +### GetAgentIdOk + +`func (o *ModelsDiscoveryJobRequest) GetAgentIdOk() (*string, bool)` + +GetAgentIdOk returns a tuple with the AgentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentId + +`func (o *ModelsDiscoveryJobRequest) SetAgentId(v string)` + +SetAgentId sets AgentId field to given value. + +### HasAgentId + +`func (o *ModelsDiscoveryJobRequest) HasAgentId() bool` + +HasAgentId returns a boolean if a field has been set. + +### GetType + +`func (o *ModelsDiscoveryJobRequest) GetType() int32` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ModelsDiscoveryJobRequest) GetTypeOk() (*int32, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ModelsDiscoveryJobRequest) SetType(v int32)` + +SetType sets Type field to given value. + + +### GetJobExecutionTimestamp + +`func (o *ModelsDiscoveryJobRequest) GetJobExecutionTimestamp() time.Time` + +GetJobExecutionTimestamp returns the JobExecutionTimestamp field if non-nil, zero value otherwise. + +### GetJobExecutionTimestampOk + +`func (o *ModelsDiscoveryJobRequest) GetJobExecutionTimestampOk() (*time.Time, bool)` + +GetJobExecutionTimestampOk returns a tuple with the JobExecutionTimestamp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobExecutionTimestamp + +`func (o *ModelsDiscoveryJobRequest) SetJobExecutionTimestamp(v time.Time)` + +SetJobExecutionTimestamp sets JobExecutionTimestamp field to given value. + +### HasJobExecutionTimestamp + +`func (o *ModelsDiscoveryJobRequest) HasJobExecutionTimestamp() bool` + +HasJobExecutionTimestamp returns a boolean if a field has been set. + +### GetDirs + +`func (o *ModelsDiscoveryJobRequest) GetDirs() string` + +GetDirs returns the Dirs field if non-nil, zero value otherwise. + +### GetDirsOk + +`func (o *ModelsDiscoveryJobRequest) GetDirsOk() (*string, bool)` + +GetDirsOk returns a tuple with the Dirs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDirs + +`func (o *ModelsDiscoveryJobRequest) SetDirs(v string)` + +SetDirs sets Dirs field to given value. + +### HasDirs + +`func (o *ModelsDiscoveryJobRequest) HasDirs() bool` + +HasDirs returns a boolean if a field has been set. + +### GetIgnoredDirs + +`func (o *ModelsDiscoveryJobRequest) GetIgnoredDirs() string` + +GetIgnoredDirs returns the IgnoredDirs field if non-nil, zero value otherwise. + +### GetIgnoredDirsOk + +`func (o *ModelsDiscoveryJobRequest) GetIgnoredDirsOk() (*string, bool)` + +GetIgnoredDirsOk returns a tuple with the IgnoredDirs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIgnoredDirs + +`func (o *ModelsDiscoveryJobRequest) SetIgnoredDirs(v string)` + +SetIgnoredDirs sets IgnoredDirs field to given value. + +### HasIgnoredDirs + +`func (o *ModelsDiscoveryJobRequest) HasIgnoredDirs() bool` + +HasIgnoredDirs returns a boolean if a field has been set. + +### GetExtensions + +`func (o *ModelsDiscoveryJobRequest) GetExtensions() string` + +GetExtensions returns the Extensions field if non-nil, zero value otherwise. + +### GetExtensionsOk + +`func (o *ModelsDiscoveryJobRequest) GetExtensionsOk() (*string, bool)` + +GetExtensionsOk returns a tuple with the Extensions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtensions + +`func (o *ModelsDiscoveryJobRequest) SetExtensions(v string)` + +SetExtensions sets Extensions field to given value. + +### HasExtensions + +`func (o *ModelsDiscoveryJobRequest) HasExtensions() bool` + +HasExtensions returns a boolean if a field has been set. + +### GetNamePatterns + +`func (o *ModelsDiscoveryJobRequest) GetNamePatterns() string` + +GetNamePatterns returns the NamePatterns field if non-nil, zero value otherwise. + +### GetNamePatternsOk + +`func (o *ModelsDiscoveryJobRequest) GetNamePatternsOk() (*string, bool)` + +GetNamePatternsOk returns a tuple with the NamePatterns field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamePatterns + +`func (o *ModelsDiscoveryJobRequest) SetNamePatterns(v string)` + +SetNamePatterns sets NamePatterns field to given value. + +### HasNamePatterns + +`func (o *ModelsDiscoveryJobRequest) HasNamePatterns() bool` + +HasNamePatterns returns a boolean if a field has been set. + +### GetSymLinks + +`func (o *ModelsDiscoveryJobRequest) GetSymLinks() bool` + +GetSymLinks returns the SymLinks field if non-nil, zero value otherwise. + +### GetSymLinksOk + +`func (o *ModelsDiscoveryJobRequest) GetSymLinksOk() (*bool, bool)` + +GetSymLinksOk returns a tuple with the SymLinks field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSymLinks + +`func (o *ModelsDiscoveryJobRequest) SetSymLinks(v bool)` + +SetSymLinks sets SymLinks field to given value. + +### HasSymLinks + +`func (o *ModelsDiscoveryJobRequest) HasSymLinks() bool` + +HasSymLinks returns a boolean if a field has been set. + +### GetCompatibility + +`func (o *ModelsDiscoveryJobRequest) GetCompatibility() bool` + +GetCompatibility returns the Compatibility field if non-nil, zero value otherwise. + +### GetCompatibilityOk + +`func (o *ModelsDiscoveryJobRequest) GetCompatibilityOk() (*bool, bool)` + +GetCompatibilityOk returns a tuple with the Compatibility field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCompatibility + +`func (o *ModelsDiscoveryJobRequest) SetCompatibility(v bool)` + +SetCompatibility sets Compatibility field to given value. + +### HasCompatibility + +`func (o *ModelsDiscoveryJobRequest) HasCompatibility() bool` + +HasCompatibility returns a boolean if a field has been set. + +### GetServerUsername + +`func (o *ModelsDiscoveryJobRequest) GetServerUsername() ModelsKeyfactorAPISecret` + +GetServerUsername returns the ServerUsername field if non-nil, zero value otherwise. + +### GetServerUsernameOk + +`func (o *ModelsDiscoveryJobRequest) GetServerUsernameOk() (*ModelsKeyfactorAPISecret, bool)` + +GetServerUsernameOk returns a tuple with the ServerUsername field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerUsername + +`func (o *ModelsDiscoveryJobRequest) SetServerUsername(v ModelsKeyfactorAPISecret)` + +SetServerUsername sets ServerUsername field to given value. + +### HasServerUsername + +`func (o *ModelsDiscoveryJobRequest) HasServerUsername() bool` + +HasServerUsername returns a boolean if a field has been set. + +### GetServerPassword + +`func (o *ModelsDiscoveryJobRequest) GetServerPassword() ModelsKeyfactorAPISecret` + +GetServerPassword returns the ServerPassword field if non-nil, zero value otherwise. + +### GetServerPasswordOk + +`func (o *ModelsDiscoveryJobRequest) GetServerPasswordOk() (*ModelsKeyfactorAPISecret, bool)` + +GetServerPasswordOk returns a tuple with the ServerPassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerPassword + +`func (o *ModelsDiscoveryJobRequest) SetServerPassword(v ModelsKeyfactorAPISecret)` + +SetServerPassword sets ServerPassword field to given value. + +### HasServerPassword + +`func (o *ModelsDiscoveryJobRequest) HasServerPassword() bool` + +HasServerPassword returns a boolean if a field has been set. + +### GetServerUseSsl + +`func (o *ModelsDiscoveryJobRequest) GetServerUseSsl() bool` + +GetServerUseSsl returns the ServerUseSsl field if non-nil, zero value otherwise. + +### GetServerUseSslOk + +`func (o *ModelsDiscoveryJobRequest) GetServerUseSslOk() (*bool, bool)` + +GetServerUseSslOk returns a tuple with the ServerUseSsl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerUseSsl + +`func (o *ModelsDiscoveryJobRequest) SetServerUseSsl(v bool)` + +SetServerUseSsl sets ServerUseSsl field to given value. + +### HasServerUseSsl + +`func (o *ModelsDiscoveryJobRequest) HasServerUseSsl() bool` + +HasServerUseSsl returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsEnrollmentAvailableRenewal.md b/v1/docs/ModelsEnrollmentAvailableRenewal.md new file mode 100644 index 0000000..b4d312c --- /dev/null +++ b/v1/docs/ModelsEnrollmentAvailableRenewal.md @@ -0,0 +1,82 @@ +# ModelsEnrollmentAvailableRenewal + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AvailableRenewalType** | Pointer to **int32** | | [optional] +**Message** | Pointer to **string** | | [optional] + +## Methods + +### NewModelsEnrollmentAvailableRenewal + +`func NewModelsEnrollmentAvailableRenewal() *ModelsEnrollmentAvailableRenewal` + +NewModelsEnrollmentAvailableRenewal instantiates a new ModelsEnrollmentAvailableRenewal object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsEnrollmentAvailableRenewalWithDefaults + +`func NewModelsEnrollmentAvailableRenewalWithDefaults() *ModelsEnrollmentAvailableRenewal` + +NewModelsEnrollmentAvailableRenewalWithDefaults instantiates a new ModelsEnrollmentAvailableRenewal object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAvailableRenewalType + +`func (o *ModelsEnrollmentAvailableRenewal) GetAvailableRenewalType() int32` + +GetAvailableRenewalType returns the AvailableRenewalType field if non-nil, zero value otherwise. + +### GetAvailableRenewalTypeOk + +`func (o *ModelsEnrollmentAvailableRenewal) GetAvailableRenewalTypeOk() (*int32, bool)` + +GetAvailableRenewalTypeOk returns a tuple with the AvailableRenewalType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAvailableRenewalType + +`func (o *ModelsEnrollmentAvailableRenewal) SetAvailableRenewalType(v int32)` + +SetAvailableRenewalType sets AvailableRenewalType field to given value. + +### HasAvailableRenewalType + +`func (o *ModelsEnrollmentAvailableRenewal) HasAvailableRenewalType() bool` + +HasAvailableRenewalType returns a boolean if a field has been set. + +### GetMessage + +`func (o *ModelsEnrollmentAvailableRenewal) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *ModelsEnrollmentAvailableRenewal) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *ModelsEnrollmentAvailableRenewal) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *ModelsEnrollmentAvailableRenewal) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsEnrollmentCSREnrollmentRequest.md b/v1/docs/ModelsEnrollmentCSREnrollmentRequest.md new file mode 100644 index 0000000..a2dbb24 --- /dev/null +++ b/v1/docs/ModelsEnrollmentCSREnrollmentRequest.md @@ -0,0 +1,233 @@ +# ModelsEnrollmentCSREnrollmentRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CSR** | **string** | | +**CertificateAuthority** | Pointer to **string** | | [optional] +**IncludeChain** | Pointer to **bool** | | [optional] +**Metadata** | Pointer to **map[string]interface{}** | | [optional] +**AdditionalEnrollmentFields** | Pointer to **map[string]map[string]interface{}** | | [optional] +**Timestamp** | Pointer to **time.Time** | | [optional] +**Template** | Pointer to **string** | | [optional] +**SANs** | Pointer to **map[string][]string** | | [optional] + +## Methods + +### NewModelsEnrollmentCSREnrollmentRequest + +`func NewModelsEnrollmentCSREnrollmentRequest(cSR string, ) *ModelsEnrollmentCSREnrollmentRequest` + +NewModelsEnrollmentCSREnrollmentRequest instantiates a new ModelsEnrollmentCSREnrollmentRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsEnrollmentCSREnrollmentRequestWithDefaults + +`func NewModelsEnrollmentCSREnrollmentRequestWithDefaults() *ModelsEnrollmentCSREnrollmentRequest` + +NewModelsEnrollmentCSREnrollmentRequestWithDefaults instantiates a new ModelsEnrollmentCSREnrollmentRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCSR + +`func (o *ModelsEnrollmentCSREnrollmentRequest) GetCSR() string` + +GetCSR returns the CSR field if non-nil, zero value otherwise. + +### GetCSROk + +`func (o *ModelsEnrollmentCSREnrollmentRequest) GetCSROk() (*string, bool)` + +GetCSROk returns a tuple with the CSR field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCSR + +`func (o *ModelsEnrollmentCSREnrollmentRequest) SetCSR(v string)` + +SetCSR sets CSR field to given value. + + +### GetCertificateAuthority + +`func (o *ModelsEnrollmentCSREnrollmentRequest) GetCertificateAuthority() string` + +GetCertificateAuthority returns the CertificateAuthority field if non-nil, zero value otherwise. + +### GetCertificateAuthorityOk + +`func (o *ModelsEnrollmentCSREnrollmentRequest) GetCertificateAuthorityOk() (*string, bool)` + +GetCertificateAuthorityOk returns a tuple with the CertificateAuthority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateAuthority + +`func (o *ModelsEnrollmentCSREnrollmentRequest) SetCertificateAuthority(v string)` + +SetCertificateAuthority sets CertificateAuthority field to given value. + +### HasCertificateAuthority + +`func (o *ModelsEnrollmentCSREnrollmentRequest) HasCertificateAuthority() bool` + +HasCertificateAuthority returns a boolean if a field has been set. + +### GetIncludeChain + +`func (o *ModelsEnrollmentCSREnrollmentRequest) GetIncludeChain() bool` + +GetIncludeChain returns the IncludeChain field if non-nil, zero value otherwise. + +### GetIncludeChainOk + +`func (o *ModelsEnrollmentCSREnrollmentRequest) GetIncludeChainOk() (*bool, bool)` + +GetIncludeChainOk returns a tuple with the IncludeChain field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIncludeChain + +`func (o *ModelsEnrollmentCSREnrollmentRequest) SetIncludeChain(v bool)` + +SetIncludeChain sets IncludeChain field to given value. + +### HasIncludeChain + +`func (o *ModelsEnrollmentCSREnrollmentRequest) HasIncludeChain() bool` + +HasIncludeChain returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ModelsEnrollmentCSREnrollmentRequest) GetMetadata() map[string]interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ModelsEnrollmentCSREnrollmentRequest) GetMetadataOk() (*map[string]interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ModelsEnrollmentCSREnrollmentRequest) SetMetadata(v map[string]interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ModelsEnrollmentCSREnrollmentRequest) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetAdditionalEnrollmentFields + +`func (o *ModelsEnrollmentCSREnrollmentRequest) GetAdditionalEnrollmentFields() map[string]map[string]interface{}` + +GetAdditionalEnrollmentFields returns the AdditionalEnrollmentFields field if non-nil, zero value otherwise. + +### GetAdditionalEnrollmentFieldsOk + +`func (o *ModelsEnrollmentCSREnrollmentRequest) GetAdditionalEnrollmentFieldsOk() (*map[string]map[string]interface{}, bool)` + +GetAdditionalEnrollmentFieldsOk returns a tuple with the AdditionalEnrollmentFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdditionalEnrollmentFields + +`func (o *ModelsEnrollmentCSREnrollmentRequest) SetAdditionalEnrollmentFields(v map[string]map[string]interface{})` + +SetAdditionalEnrollmentFields sets AdditionalEnrollmentFields field to given value. + +### HasAdditionalEnrollmentFields + +`func (o *ModelsEnrollmentCSREnrollmentRequest) HasAdditionalEnrollmentFields() bool` + +HasAdditionalEnrollmentFields returns a boolean if a field has been set. + +### GetTimestamp + +`func (o *ModelsEnrollmentCSREnrollmentRequest) GetTimestamp() time.Time` + +GetTimestamp returns the Timestamp field if non-nil, zero value otherwise. + +### GetTimestampOk + +`func (o *ModelsEnrollmentCSREnrollmentRequest) GetTimestampOk() (*time.Time, bool)` + +GetTimestampOk returns a tuple with the Timestamp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimestamp + +`func (o *ModelsEnrollmentCSREnrollmentRequest) SetTimestamp(v time.Time)` + +SetTimestamp sets Timestamp field to given value. + +### HasTimestamp + +`func (o *ModelsEnrollmentCSREnrollmentRequest) HasTimestamp() bool` + +HasTimestamp returns a boolean if a field has been set. + +### GetTemplate + +`func (o *ModelsEnrollmentCSREnrollmentRequest) GetTemplate() string` + +GetTemplate returns the Template field if non-nil, zero value otherwise. + +### GetTemplateOk + +`func (o *ModelsEnrollmentCSREnrollmentRequest) GetTemplateOk() (*string, bool)` + +GetTemplateOk returns a tuple with the Template field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplate + +`func (o *ModelsEnrollmentCSREnrollmentRequest) SetTemplate(v string)` + +SetTemplate sets Template field to given value. + +### HasTemplate + +`func (o *ModelsEnrollmentCSREnrollmentRequest) HasTemplate() bool` + +HasTemplate returns a boolean if a field has been set. + +### GetSANs + +`func (o *ModelsEnrollmentCSREnrollmentRequest) GetSANs() map[string][]string` + +GetSANs returns the SANs field if non-nil, zero value otherwise. + +### GetSANsOk + +`func (o *ModelsEnrollmentCSREnrollmentRequest) GetSANsOk() (*map[string][]string, bool)` + +GetSANsOk returns a tuple with the SANs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSANs + +`func (o *ModelsEnrollmentCSREnrollmentRequest) SetSANs(v map[string][]string)` + +SetSANs sets SANs field to given value. + +### HasSANs + +`func (o *ModelsEnrollmentCSREnrollmentRequest) HasSANs() bool` + +HasSANs returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsEnrollmentCSREnrollmentResponse.md b/v1/docs/ModelsEnrollmentCSREnrollmentResponse.md new file mode 100644 index 0000000..b5ae54e --- /dev/null +++ b/v1/docs/ModelsEnrollmentCSREnrollmentResponse.md @@ -0,0 +1,82 @@ +# ModelsEnrollmentCSREnrollmentResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CertificateInformation** | Pointer to [**ModelsPkcs10CertificateResponse**](ModelsPkcs10CertificateResponse.md) | | [optional] +**Metadata** | Pointer to **map[string]string** | | [optional] + +## Methods + +### NewModelsEnrollmentCSREnrollmentResponse + +`func NewModelsEnrollmentCSREnrollmentResponse() *ModelsEnrollmentCSREnrollmentResponse` + +NewModelsEnrollmentCSREnrollmentResponse instantiates a new ModelsEnrollmentCSREnrollmentResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsEnrollmentCSREnrollmentResponseWithDefaults + +`func NewModelsEnrollmentCSREnrollmentResponseWithDefaults() *ModelsEnrollmentCSREnrollmentResponse` + +NewModelsEnrollmentCSREnrollmentResponseWithDefaults instantiates a new ModelsEnrollmentCSREnrollmentResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCertificateInformation + +`func (o *ModelsEnrollmentCSREnrollmentResponse) GetCertificateInformation() ModelsPkcs10CertificateResponse` + +GetCertificateInformation returns the CertificateInformation field if non-nil, zero value otherwise. + +### GetCertificateInformationOk + +`func (o *ModelsEnrollmentCSREnrollmentResponse) GetCertificateInformationOk() (*ModelsPkcs10CertificateResponse, bool)` + +GetCertificateInformationOk returns a tuple with the CertificateInformation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateInformation + +`func (o *ModelsEnrollmentCSREnrollmentResponse) SetCertificateInformation(v ModelsPkcs10CertificateResponse)` + +SetCertificateInformation sets CertificateInformation field to given value. + +### HasCertificateInformation + +`func (o *ModelsEnrollmentCSREnrollmentResponse) HasCertificateInformation() bool` + +HasCertificateInformation returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ModelsEnrollmentCSREnrollmentResponse) GetMetadata() map[string]string` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ModelsEnrollmentCSREnrollmentResponse) GetMetadataOk() (*map[string]string, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ModelsEnrollmentCSREnrollmentResponse) SetMetadata(v map[string]string)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ModelsEnrollmentCSREnrollmentResponse) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsEnrollmentCSRGenerationRequest.md b/v1/docs/ModelsEnrollmentCSRGenerationRequest.md new file mode 100644 index 0000000..3d28c4c --- /dev/null +++ b/v1/docs/ModelsEnrollmentCSRGenerationRequest.md @@ -0,0 +1,145 @@ +# ModelsEnrollmentCSRGenerationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Subject** | **string** | Subject for the requested certificate | +**KeyType** | **string** | Certificate key type [RSA, ECC] | +**KeyLength** | **int32** | Size of the certificate key (ex: RSA 1024, 2048, 4096/ECC 256, 384, 521) | +**Template** | Pointer to **string** | | [optional] +**SANs** | Pointer to **map[string][]string** | | [optional] + +## Methods + +### NewModelsEnrollmentCSRGenerationRequest + +`func NewModelsEnrollmentCSRGenerationRequest(subject string, keyType string, keyLength int32, ) *ModelsEnrollmentCSRGenerationRequest` + +NewModelsEnrollmentCSRGenerationRequest instantiates a new ModelsEnrollmentCSRGenerationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsEnrollmentCSRGenerationRequestWithDefaults + +`func NewModelsEnrollmentCSRGenerationRequestWithDefaults() *ModelsEnrollmentCSRGenerationRequest` + +NewModelsEnrollmentCSRGenerationRequestWithDefaults instantiates a new ModelsEnrollmentCSRGenerationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSubject + +`func (o *ModelsEnrollmentCSRGenerationRequest) GetSubject() string` + +GetSubject returns the Subject field if non-nil, zero value otherwise. + +### GetSubjectOk + +`func (o *ModelsEnrollmentCSRGenerationRequest) GetSubjectOk() (*string, bool)` + +GetSubjectOk returns a tuple with the Subject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubject + +`func (o *ModelsEnrollmentCSRGenerationRequest) SetSubject(v string)` + +SetSubject sets Subject field to given value. + + +### GetKeyType + +`func (o *ModelsEnrollmentCSRGenerationRequest) GetKeyType() string` + +GetKeyType returns the KeyType field if non-nil, zero value otherwise. + +### GetKeyTypeOk + +`func (o *ModelsEnrollmentCSRGenerationRequest) GetKeyTypeOk() (*string, bool)` + +GetKeyTypeOk returns a tuple with the KeyType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyType + +`func (o *ModelsEnrollmentCSRGenerationRequest) SetKeyType(v string)` + +SetKeyType sets KeyType field to given value. + + +### GetKeyLength + +`func (o *ModelsEnrollmentCSRGenerationRequest) GetKeyLength() int32` + +GetKeyLength returns the KeyLength field if non-nil, zero value otherwise. + +### GetKeyLengthOk + +`func (o *ModelsEnrollmentCSRGenerationRequest) GetKeyLengthOk() (*int32, bool)` + +GetKeyLengthOk returns a tuple with the KeyLength field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyLength + +`func (o *ModelsEnrollmentCSRGenerationRequest) SetKeyLength(v int32)` + +SetKeyLength sets KeyLength field to given value. + + +### GetTemplate + +`func (o *ModelsEnrollmentCSRGenerationRequest) GetTemplate() string` + +GetTemplate returns the Template field if non-nil, zero value otherwise. + +### GetTemplateOk + +`func (o *ModelsEnrollmentCSRGenerationRequest) GetTemplateOk() (*string, bool)` + +GetTemplateOk returns a tuple with the Template field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplate + +`func (o *ModelsEnrollmentCSRGenerationRequest) SetTemplate(v string)` + +SetTemplate sets Template field to given value. + +### HasTemplate + +`func (o *ModelsEnrollmentCSRGenerationRequest) HasTemplate() bool` + +HasTemplate returns a boolean if a field has been set. + +### GetSANs + +`func (o *ModelsEnrollmentCSRGenerationRequest) GetSANs() map[string][]string` + +GetSANs returns the SANs field if non-nil, zero value otherwise. + +### GetSANsOk + +`func (o *ModelsEnrollmentCSRGenerationRequest) GetSANsOk() (*map[string][]string, bool)` + +GetSANsOk returns a tuple with the SANs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSANs + +`func (o *ModelsEnrollmentCSRGenerationRequest) SetSANs(v map[string][]string)` + +SetSANs sets SANs field to given value. + +### HasSANs + +`func (o *ModelsEnrollmentCSRGenerationRequest) HasSANs() bool` + +HasSANs returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsEnrollmentExistingEnrollmentManagementRequest.md b/v1/docs/ModelsEnrollmentExistingEnrollmentManagementRequest.md new file mode 100644 index 0000000..530a37b --- /dev/null +++ b/v1/docs/ModelsEnrollmentExistingEnrollmentManagementRequest.md @@ -0,0 +1,160 @@ +# ModelsEnrollmentExistingEnrollmentManagementRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ExistingCertificateId** | Pointer to **int32** | | [optional] +**CertificateId** | Pointer to **int32** | | [optional] +**RequestId** | Pointer to **int32** | | [optional] +**Password** | Pointer to **string** | | [optional] +**JobTime** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewModelsEnrollmentExistingEnrollmentManagementRequest + +`func NewModelsEnrollmentExistingEnrollmentManagementRequest() *ModelsEnrollmentExistingEnrollmentManagementRequest` + +NewModelsEnrollmentExistingEnrollmentManagementRequest instantiates a new ModelsEnrollmentExistingEnrollmentManagementRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsEnrollmentExistingEnrollmentManagementRequestWithDefaults + +`func NewModelsEnrollmentExistingEnrollmentManagementRequestWithDefaults() *ModelsEnrollmentExistingEnrollmentManagementRequest` + +NewModelsEnrollmentExistingEnrollmentManagementRequestWithDefaults instantiates a new ModelsEnrollmentExistingEnrollmentManagementRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetExistingCertificateId + +`func (o *ModelsEnrollmentExistingEnrollmentManagementRequest) GetExistingCertificateId() int32` + +GetExistingCertificateId returns the ExistingCertificateId field if non-nil, zero value otherwise. + +### GetExistingCertificateIdOk + +`func (o *ModelsEnrollmentExistingEnrollmentManagementRequest) GetExistingCertificateIdOk() (*int32, bool)` + +GetExistingCertificateIdOk returns a tuple with the ExistingCertificateId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExistingCertificateId + +`func (o *ModelsEnrollmentExistingEnrollmentManagementRequest) SetExistingCertificateId(v int32)` + +SetExistingCertificateId sets ExistingCertificateId field to given value. + +### HasExistingCertificateId + +`func (o *ModelsEnrollmentExistingEnrollmentManagementRequest) HasExistingCertificateId() bool` + +HasExistingCertificateId returns a boolean if a field has been set. + +### GetCertificateId + +`func (o *ModelsEnrollmentExistingEnrollmentManagementRequest) GetCertificateId() int32` + +GetCertificateId returns the CertificateId field if non-nil, zero value otherwise. + +### GetCertificateIdOk + +`func (o *ModelsEnrollmentExistingEnrollmentManagementRequest) GetCertificateIdOk() (*int32, bool)` + +GetCertificateIdOk returns a tuple with the CertificateId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateId + +`func (o *ModelsEnrollmentExistingEnrollmentManagementRequest) SetCertificateId(v int32)` + +SetCertificateId sets CertificateId field to given value. + +### HasCertificateId + +`func (o *ModelsEnrollmentExistingEnrollmentManagementRequest) HasCertificateId() bool` + +HasCertificateId returns a boolean if a field has been set. + +### GetRequestId + +`func (o *ModelsEnrollmentExistingEnrollmentManagementRequest) GetRequestId() int32` + +GetRequestId returns the RequestId field if non-nil, zero value otherwise. + +### GetRequestIdOk + +`func (o *ModelsEnrollmentExistingEnrollmentManagementRequest) GetRequestIdOk() (*int32, bool)` + +GetRequestIdOk returns a tuple with the RequestId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestId + +`func (o *ModelsEnrollmentExistingEnrollmentManagementRequest) SetRequestId(v int32)` + +SetRequestId sets RequestId field to given value. + +### HasRequestId + +`func (o *ModelsEnrollmentExistingEnrollmentManagementRequest) HasRequestId() bool` + +HasRequestId returns a boolean if a field has been set. + +### GetPassword + +`func (o *ModelsEnrollmentExistingEnrollmentManagementRequest) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *ModelsEnrollmentExistingEnrollmentManagementRequest) GetPasswordOk() (*string, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *ModelsEnrollmentExistingEnrollmentManagementRequest) SetPassword(v string)` + +SetPassword sets Password field to given value. + +### HasPassword + +`func (o *ModelsEnrollmentExistingEnrollmentManagementRequest) HasPassword() bool` + +HasPassword returns a boolean if a field has been set. + +### GetJobTime + +`func (o *ModelsEnrollmentExistingEnrollmentManagementRequest) GetJobTime() time.Time` + +GetJobTime returns the JobTime field if non-nil, zero value otherwise. + +### GetJobTimeOk + +`func (o *ModelsEnrollmentExistingEnrollmentManagementRequest) GetJobTimeOk() (*time.Time, bool)` + +GetJobTimeOk returns a tuple with the JobTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobTime + +`func (o *ModelsEnrollmentExistingEnrollmentManagementRequest) SetJobTime(v time.Time)` + +SetJobTime sets JobTime field to given value. + +### HasJobTime + +`func (o *ModelsEnrollmentExistingEnrollmentManagementRequest) HasJobTime() bool` + +HasJobTime returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsEnrollmentManagementStoreType.md b/v1/docs/ModelsEnrollmentManagementStoreType.md new file mode 100644 index 0000000..278dce5 --- /dev/null +++ b/v1/docs/ModelsEnrollmentManagementStoreType.md @@ -0,0 +1,134 @@ +# ModelsEnrollmentManagementStoreType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StoreTypeId** | Pointer to **int32** | | [optional] +**Alias** | Pointer to **string** | | [optional] +**Overwrite** | Pointer to **bool** | | [optional] +**Properties** | Pointer to **[]map[string]interface{}** | | [optional] + +## Methods + +### NewModelsEnrollmentManagementStoreType + +`func NewModelsEnrollmentManagementStoreType() *ModelsEnrollmentManagementStoreType` + +NewModelsEnrollmentManagementStoreType instantiates a new ModelsEnrollmentManagementStoreType object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsEnrollmentManagementStoreTypeWithDefaults + +`func NewModelsEnrollmentManagementStoreTypeWithDefaults() *ModelsEnrollmentManagementStoreType` + +NewModelsEnrollmentManagementStoreTypeWithDefaults instantiates a new ModelsEnrollmentManagementStoreType object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStoreTypeId + +`func (o *ModelsEnrollmentManagementStoreType) GetStoreTypeId() int32` + +GetStoreTypeId returns the StoreTypeId field if non-nil, zero value otherwise. + +### GetStoreTypeIdOk + +`func (o *ModelsEnrollmentManagementStoreType) GetStoreTypeIdOk() (*int32, bool)` + +GetStoreTypeIdOk returns a tuple with the StoreTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStoreTypeId + +`func (o *ModelsEnrollmentManagementStoreType) SetStoreTypeId(v int32)` + +SetStoreTypeId sets StoreTypeId field to given value. + +### HasStoreTypeId + +`func (o *ModelsEnrollmentManagementStoreType) HasStoreTypeId() bool` + +HasStoreTypeId returns a boolean if a field has been set. + +### GetAlias + +`func (o *ModelsEnrollmentManagementStoreType) GetAlias() string` + +GetAlias returns the Alias field if non-nil, zero value otherwise. + +### GetAliasOk + +`func (o *ModelsEnrollmentManagementStoreType) GetAliasOk() (*string, bool)` + +GetAliasOk returns a tuple with the Alias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlias + +`func (o *ModelsEnrollmentManagementStoreType) SetAlias(v string)` + +SetAlias sets Alias field to given value. + +### HasAlias + +`func (o *ModelsEnrollmentManagementStoreType) HasAlias() bool` + +HasAlias returns a boolean if a field has been set. + +### GetOverwrite + +`func (o *ModelsEnrollmentManagementStoreType) GetOverwrite() bool` + +GetOverwrite returns the Overwrite field if non-nil, zero value otherwise. + +### GetOverwriteOk + +`func (o *ModelsEnrollmentManagementStoreType) GetOverwriteOk() (*bool, bool)` + +GetOverwriteOk returns a tuple with the Overwrite field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOverwrite + +`func (o *ModelsEnrollmentManagementStoreType) SetOverwrite(v bool)` + +SetOverwrite sets Overwrite field to given value. + +### HasOverwrite + +`func (o *ModelsEnrollmentManagementStoreType) HasOverwrite() bool` + +HasOverwrite returns a boolean if a field has been set. + +### GetProperties + +`func (o *ModelsEnrollmentManagementStoreType) GetProperties() []map[string]interface{}` + +GetProperties returns the Properties field if non-nil, zero value otherwise. + +### GetPropertiesOk + +`func (o *ModelsEnrollmentManagementStoreType) GetPropertiesOk() (*[]map[string]interface{}, bool)` + +GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProperties + +`func (o *ModelsEnrollmentManagementStoreType) SetProperties(v []map[string]interface{})` + +SetProperties sets Properties field to given value. + +### HasProperties + +`func (o *ModelsEnrollmentManagementStoreType) HasProperties() bool` + +HasProperties returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsEnrollmentPFXEnrollmentRequest.md b/v1/docs/ModelsEnrollmentPFXEnrollmentRequest.md new file mode 100644 index 0000000..6035e96 --- /dev/null +++ b/v1/docs/ModelsEnrollmentPFXEnrollmentRequest.md @@ -0,0 +1,342 @@ +# ModelsEnrollmentPFXEnrollmentRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CustomFriendlyName** | Pointer to **string** | | [optional] +**Password** | Pointer to **string** | | [optional] +**PopulateMissingValuesFromAD** | Pointer to **bool** | | [optional] +**Subject** | Pointer to **string** | | [optional] +**IncludeChain** | Pointer to **bool** | | [optional] +**RenewalCertificateId** | Pointer to **int32** | | [optional] +**CertificateAuthority** | Pointer to **string** | | [optional] +**Metadata** | Pointer to **map[string]interface{}** | | [optional] +**AdditionalEnrollmentFields** | Pointer to **map[string]map[string]interface{}** | | [optional] +**Timestamp** | Pointer to **time.Time** | | [optional] +**Template** | Pointer to **string** | | [optional] +**SANs** | Pointer to **map[string][]string** | | [optional] + +## Methods + +### NewModelsEnrollmentPFXEnrollmentRequest + +`func NewModelsEnrollmentPFXEnrollmentRequest() *ModelsEnrollmentPFXEnrollmentRequest` + +NewModelsEnrollmentPFXEnrollmentRequest instantiates a new ModelsEnrollmentPFXEnrollmentRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsEnrollmentPFXEnrollmentRequestWithDefaults + +`func NewModelsEnrollmentPFXEnrollmentRequestWithDefaults() *ModelsEnrollmentPFXEnrollmentRequest` + +NewModelsEnrollmentPFXEnrollmentRequestWithDefaults instantiates a new ModelsEnrollmentPFXEnrollmentRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCustomFriendlyName + +`func (o *ModelsEnrollmentPFXEnrollmentRequest) GetCustomFriendlyName() string` + +GetCustomFriendlyName returns the CustomFriendlyName field if non-nil, zero value otherwise. + +### GetCustomFriendlyNameOk + +`func (o *ModelsEnrollmentPFXEnrollmentRequest) GetCustomFriendlyNameOk() (*string, bool)` + +GetCustomFriendlyNameOk returns a tuple with the CustomFriendlyName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFriendlyName + +`func (o *ModelsEnrollmentPFXEnrollmentRequest) SetCustomFriendlyName(v string)` + +SetCustomFriendlyName sets CustomFriendlyName field to given value. + +### HasCustomFriendlyName + +`func (o *ModelsEnrollmentPFXEnrollmentRequest) HasCustomFriendlyName() bool` + +HasCustomFriendlyName returns a boolean if a field has been set. + +### GetPassword + +`func (o *ModelsEnrollmentPFXEnrollmentRequest) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *ModelsEnrollmentPFXEnrollmentRequest) GetPasswordOk() (*string, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *ModelsEnrollmentPFXEnrollmentRequest) SetPassword(v string)` + +SetPassword sets Password field to given value. + +### HasPassword + +`func (o *ModelsEnrollmentPFXEnrollmentRequest) HasPassword() bool` + +HasPassword returns a boolean if a field has been set. + +### GetPopulateMissingValuesFromAD + +`func (o *ModelsEnrollmentPFXEnrollmentRequest) GetPopulateMissingValuesFromAD() bool` + +GetPopulateMissingValuesFromAD returns the PopulateMissingValuesFromAD field if non-nil, zero value otherwise. + +### GetPopulateMissingValuesFromADOk + +`func (o *ModelsEnrollmentPFXEnrollmentRequest) GetPopulateMissingValuesFromADOk() (*bool, bool)` + +GetPopulateMissingValuesFromADOk returns a tuple with the PopulateMissingValuesFromAD field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPopulateMissingValuesFromAD + +`func (o *ModelsEnrollmentPFXEnrollmentRequest) SetPopulateMissingValuesFromAD(v bool)` + +SetPopulateMissingValuesFromAD sets PopulateMissingValuesFromAD field to given value. + +### HasPopulateMissingValuesFromAD + +`func (o *ModelsEnrollmentPFXEnrollmentRequest) HasPopulateMissingValuesFromAD() bool` + +HasPopulateMissingValuesFromAD returns a boolean if a field has been set. + +### GetSubject + +`func (o *ModelsEnrollmentPFXEnrollmentRequest) GetSubject() string` + +GetSubject returns the Subject field if non-nil, zero value otherwise. + +### GetSubjectOk + +`func (o *ModelsEnrollmentPFXEnrollmentRequest) GetSubjectOk() (*string, bool)` + +GetSubjectOk returns a tuple with the Subject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubject + +`func (o *ModelsEnrollmentPFXEnrollmentRequest) SetSubject(v string)` + +SetSubject sets Subject field to given value. + +### HasSubject + +`func (o *ModelsEnrollmentPFXEnrollmentRequest) HasSubject() bool` + +HasSubject returns a boolean if a field has been set. + +### GetIncludeChain + +`func (o *ModelsEnrollmentPFXEnrollmentRequest) GetIncludeChain() bool` + +GetIncludeChain returns the IncludeChain field if non-nil, zero value otherwise. + +### GetIncludeChainOk + +`func (o *ModelsEnrollmentPFXEnrollmentRequest) GetIncludeChainOk() (*bool, bool)` + +GetIncludeChainOk returns a tuple with the IncludeChain field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIncludeChain + +`func (o *ModelsEnrollmentPFXEnrollmentRequest) SetIncludeChain(v bool)` + +SetIncludeChain sets IncludeChain field to given value. + +### HasIncludeChain + +`func (o *ModelsEnrollmentPFXEnrollmentRequest) HasIncludeChain() bool` + +HasIncludeChain returns a boolean if a field has been set. + +### GetRenewalCertificateId + +`func (o *ModelsEnrollmentPFXEnrollmentRequest) GetRenewalCertificateId() int32` + +GetRenewalCertificateId returns the RenewalCertificateId field if non-nil, zero value otherwise. + +### GetRenewalCertificateIdOk + +`func (o *ModelsEnrollmentPFXEnrollmentRequest) GetRenewalCertificateIdOk() (*int32, bool)` + +GetRenewalCertificateIdOk returns a tuple with the RenewalCertificateId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRenewalCertificateId + +`func (o *ModelsEnrollmentPFXEnrollmentRequest) SetRenewalCertificateId(v int32)` + +SetRenewalCertificateId sets RenewalCertificateId field to given value. + +### HasRenewalCertificateId + +`func (o *ModelsEnrollmentPFXEnrollmentRequest) HasRenewalCertificateId() bool` + +HasRenewalCertificateId returns a boolean if a field has been set. + +### GetCertificateAuthority + +`func (o *ModelsEnrollmentPFXEnrollmentRequest) GetCertificateAuthority() string` + +GetCertificateAuthority returns the CertificateAuthority field if non-nil, zero value otherwise. + +### GetCertificateAuthorityOk + +`func (o *ModelsEnrollmentPFXEnrollmentRequest) GetCertificateAuthorityOk() (*string, bool)` + +GetCertificateAuthorityOk returns a tuple with the CertificateAuthority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateAuthority + +`func (o *ModelsEnrollmentPFXEnrollmentRequest) SetCertificateAuthority(v string)` + +SetCertificateAuthority sets CertificateAuthority field to given value. + +### HasCertificateAuthority + +`func (o *ModelsEnrollmentPFXEnrollmentRequest) HasCertificateAuthority() bool` + +HasCertificateAuthority returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ModelsEnrollmentPFXEnrollmentRequest) GetMetadata() map[string]interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ModelsEnrollmentPFXEnrollmentRequest) GetMetadataOk() (*map[string]interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ModelsEnrollmentPFXEnrollmentRequest) SetMetadata(v map[string]interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ModelsEnrollmentPFXEnrollmentRequest) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetAdditionalEnrollmentFields + +`func (o *ModelsEnrollmentPFXEnrollmentRequest) GetAdditionalEnrollmentFields() map[string]map[string]interface{}` + +GetAdditionalEnrollmentFields returns the AdditionalEnrollmentFields field if non-nil, zero value otherwise. + +### GetAdditionalEnrollmentFieldsOk + +`func (o *ModelsEnrollmentPFXEnrollmentRequest) GetAdditionalEnrollmentFieldsOk() (*map[string]map[string]interface{}, bool)` + +GetAdditionalEnrollmentFieldsOk returns a tuple with the AdditionalEnrollmentFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdditionalEnrollmentFields + +`func (o *ModelsEnrollmentPFXEnrollmentRequest) SetAdditionalEnrollmentFields(v map[string]map[string]interface{})` + +SetAdditionalEnrollmentFields sets AdditionalEnrollmentFields field to given value. + +### HasAdditionalEnrollmentFields + +`func (o *ModelsEnrollmentPFXEnrollmentRequest) HasAdditionalEnrollmentFields() bool` + +HasAdditionalEnrollmentFields returns a boolean if a field has been set. + +### GetTimestamp + +`func (o *ModelsEnrollmentPFXEnrollmentRequest) GetTimestamp() time.Time` + +GetTimestamp returns the Timestamp field if non-nil, zero value otherwise. + +### GetTimestampOk + +`func (o *ModelsEnrollmentPFXEnrollmentRequest) GetTimestampOk() (*time.Time, bool)` + +GetTimestampOk returns a tuple with the Timestamp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimestamp + +`func (o *ModelsEnrollmentPFXEnrollmentRequest) SetTimestamp(v time.Time)` + +SetTimestamp sets Timestamp field to given value. + +### HasTimestamp + +`func (o *ModelsEnrollmentPFXEnrollmentRequest) HasTimestamp() bool` + +HasTimestamp returns a boolean if a field has been set. + +### GetTemplate + +`func (o *ModelsEnrollmentPFXEnrollmentRequest) GetTemplate() string` + +GetTemplate returns the Template field if non-nil, zero value otherwise. + +### GetTemplateOk + +`func (o *ModelsEnrollmentPFXEnrollmentRequest) GetTemplateOk() (*string, bool)` + +GetTemplateOk returns a tuple with the Template field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplate + +`func (o *ModelsEnrollmentPFXEnrollmentRequest) SetTemplate(v string)` + +SetTemplate sets Template field to given value. + +### HasTemplate + +`func (o *ModelsEnrollmentPFXEnrollmentRequest) HasTemplate() bool` + +HasTemplate returns a boolean if a field has been set. + +### GetSANs + +`func (o *ModelsEnrollmentPFXEnrollmentRequest) GetSANs() map[string][]string` + +GetSANs returns the SANs field if non-nil, zero value otherwise. + +### GetSANsOk + +`func (o *ModelsEnrollmentPFXEnrollmentRequest) GetSANsOk() (*map[string][]string, bool)` + +GetSANsOk returns a tuple with the SANs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSANs + +`func (o *ModelsEnrollmentPFXEnrollmentRequest) SetSANs(v map[string][]string)` + +SetSANs sets SANs field to given value. + +### HasSANs + +`func (o *ModelsEnrollmentPFXEnrollmentRequest) HasSANs() bool` + +HasSANs returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsEnrollmentPFXEnrollmentResponse.md b/v1/docs/ModelsEnrollmentPFXEnrollmentResponse.md new file mode 100644 index 0000000..fbc2dff --- /dev/null +++ b/v1/docs/ModelsEnrollmentPFXEnrollmentResponse.md @@ -0,0 +1,82 @@ +# ModelsEnrollmentPFXEnrollmentResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CertificateInformation** | Pointer to [**ModelsPkcs12CertificateResponse**](ModelsPkcs12CertificateResponse.md) | | [optional] +**Metadata** | Pointer to **map[string]string** | | [optional] + +## Methods + +### NewModelsEnrollmentPFXEnrollmentResponse + +`func NewModelsEnrollmentPFXEnrollmentResponse() *ModelsEnrollmentPFXEnrollmentResponse` + +NewModelsEnrollmentPFXEnrollmentResponse instantiates a new ModelsEnrollmentPFXEnrollmentResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsEnrollmentPFXEnrollmentResponseWithDefaults + +`func NewModelsEnrollmentPFXEnrollmentResponseWithDefaults() *ModelsEnrollmentPFXEnrollmentResponse` + +NewModelsEnrollmentPFXEnrollmentResponseWithDefaults instantiates a new ModelsEnrollmentPFXEnrollmentResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCertificateInformation + +`func (o *ModelsEnrollmentPFXEnrollmentResponse) GetCertificateInformation() ModelsPkcs12CertificateResponse` + +GetCertificateInformation returns the CertificateInformation field if non-nil, zero value otherwise. + +### GetCertificateInformationOk + +`func (o *ModelsEnrollmentPFXEnrollmentResponse) GetCertificateInformationOk() (*ModelsPkcs12CertificateResponse, bool)` + +GetCertificateInformationOk returns a tuple with the CertificateInformation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateInformation + +`func (o *ModelsEnrollmentPFXEnrollmentResponse) SetCertificateInformation(v ModelsPkcs12CertificateResponse)` + +SetCertificateInformation sets CertificateInformation field to given value. + +### HasCertificateInformation + +`func (o *ModelsEnrollmentPFXEnrollmentResponse) HasCertificateInformation() bool` + +HasCertificateInformation returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ModelsEnrollmentPFXEnrollmentResponse) GetMetadata() map[string]string` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ModelsEnrollmentPFXEnrollmentResponse) GetMetadataOk() (*map[string]string, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ModelsEnrollmentPFXEnrollmentResponse) SetMetadata(v map[string]string)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ModelsEnrollmentPFXEnrollmentResponse) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsEnrollmentRenewalRequest.md b/v1/docs/ModelsEnrollmentRenewalRequest.md new file mode 100644 index 0000000..5cad5bd --- /dev/null +++ b/v1/docs/ModelsEnrollmentRenewalRequest.md @@ -0,0 +1,160 @@ +# ModelsEnrollmentRenewalRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CertificateId** | Pointer to **int32** | | [optional] +**Thumbprint** | Pointer to **string** | | [optional] +**CertificateAuthority** | Pointer to **string** | | [optional] +**Template** | Pointer to **string** | | [optional] +**Timestamp** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewModelsEnrollmentRenewalRequest + +`func NewModelsEnrollmentRenewalRequest() *ModelsEnrollmentRenewalRequest` + +NewModelsEnrollmentRenewalRequest instantiates a new ModelsEnrollmentRenewalRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsEnrollmentRenewalRequestWithDefaults + +`func NewModelsEnrollmentRenewalRequestWithDefaults() *ModelsEnrollmentRenewalRequest` + +NewModelsEnrollmentRenewalRequestWithDefaults instantiates a new ModelsEnrollmentRenewalRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCertificateId + +`func (o *ModelsEnrollmentRenewalRequest) GetCertificateId() int32` + +GetCertificateId returns the CertificateId field if non-nil, zero value otherwise. + +### GetCertificateIdOk + +`func (o *ModelsEnrollmentRenewalRequest) GetCertificateIdOk() (*int32, bool)` + +GetCertificateIdOk returns a tuple with the CertificateId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateId + +`func (o *ModelsEnrollmentRenewalRequest) SetCertificateId(v int32)` + +SetCertificateId sets CertificateId field to given value. + +### HasCertificateId + +`func (o *ModelsEnrollmentRenewalRequest) HasCertificateId() bool` + +HasCertificateId returns a boolean if a field has been set. + +### GetThumbprint + +`func (o *ModelsEnrollmentRenewalRequest) GetThumbprint() string` + +GetThumbprint returns the Thumbprint field if non-nil, zero value otherwise. + +### GetThumbprintOk + +`func (o *ModelsEnrollmentRenewalRequest) GetThumbprintOk() (*string, bool)` + +GetThumbprintOk returns a tuple with the Thumbprint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThumbprint + +`func (o *ModelsEnrollmentRenewalRequest) SetThumbprint(v string)` + +SetThumbprint sets Thumbprint field to given value. + +### HasThumbprint + +`func (o *ModelsEnrollmentRenewalRequest) HasThumbprint() bool` + +HasThumbprint returns a boolean if a field has been set. + +### GetCertificateAuthority + +`func (o *ModelsEnrollmentRenewalRequest) GetCertificateAuthority() string` + +GetCertificateAuthority returns the CertificateAuthority field if non-nil, zero value otherwise. + +### GetCertificateAuthorityOk + +`func (o *ModelsEnrollmentRenewalRequest) GetCertificateAuthorityOk() (*string, bool)` + +GetCertificateAuthorityOk returns a tuple with the CertificateAuthority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateAuthority + +`func (o *ModelsEnrollmentRenewalRequest) SetCertificateAuthority(v string)` + +SetCertificateAuthority sets CertificateAuthority field to given value. + +### HasCertificateAuthority + +`func (o *ModelsEnrollmentRenewalRequest) HasCertificateAuthority() bool` + +HasCertificateAuthority returns a boolean if a field has been set. + +### GetTemplate + +`func (o *ModelsEnrollmentRenewalRequest) GetTemplate() string` + +GetTemplate returns the Template field if non-nil, zero value otherwise. + +### GetTemplateOk + +`func (o *ModelsEnrollmentRenewalRequest) GetTemplateOk() (*string, bool)` + +GetTemplateOk returns a tuple with the Template field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplate + +`func (o *ModelsEnrollmentRenewalRequest) SetTemplate(v string)` + +SetTemplate sets Template field to given value. + +### HasTemplate + +`func (o *ModelsEnrollmentRenewalRequest) HasTemplate() bool` + +HasTemplate returns a boolean if a field has been set. + +### GetTimestamp + +`func (o *ModelsEnrollmentRenewalRequest) GetTimestamp() time.Time` + +GetTimestamp returns the Timestamp field if non-nil, zero value otherwise. + +### GetTimestampOk + +`func (o *ModelsEnrollmentRenewalRequest) GetTimestampOk() (*time.Time, bool)` + +GetTimestampOk returns a tuple with the Timestamp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimestamp + +`func (o *ModelsEnrollmentRenewalRequest) SetTimestamp(v time.Time)` + +SetTimestamp sets Timestamp field to given value. + +### HasTimestamp + +`func (o *ModelsEnrollmentRenewalRequest) HasTimestamp() bool` + +HasTimestamp returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsEnrollmentRenewalResponse.md b/v1/docs/ModelsEnrollmentRenewalResponse.md new file mode 100644 index 0000000..7d103e8 --- /dev/null +++ b/v1/docs/ModelsEnrollmentRenewalResponse.md @@ -0,0 +1,248 @@ +# ModelsEnrollmentRenewalResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**KeyfactorId** | Pointer to **int32** | | [optional] +**KeyfactorRequestId** | Pointer to **int32** | | [optional] +**Thumbprint** | Pointer to **string** | | [optional] +**SerialNumber** | Pointer to **string** | | [optional] +**IssuerDN** | Pointer to **NullableString** | | [optional] +**RequestDisposition** | Pointer to **string** | | [optional] +**DispositionMessage** | Pointer to **string** | | [optional] +**Password** | Pointer to **string** | | [optional] + +## Methods + +### NewModelsEnrollmentRenewalResponse + +`func NewModelsEnrollmentRenewalResponse() *ModelsEnrollmentRenewalResponse` + +NewModelsEnrollmentRenewalResponse instantiates a new ModelsEnrollmentRenewalResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsEnrollmentRenewalResponseWithDefaults + +`func NewModelsEnrollmentRenewalResponseWithDefaults() *ModelsEnrollmentRenewalResponse` + +NewModelsEnrollmentRenewalResponseWithDefaults instantiates a new ModelsEnrollmentRenewalResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKeyfactorId + +`func (o *ModelsEnrollmentRenewalResponse) GetKeyfactorId() int32` + +GetKeyfactorId returns the KeyfactorId field if non-nil, zero value otherwise. + +### GetKeyfactorIdOk + +`func (o *ModelsEnrollmentRenewalResponse) GetKeyfactorIdOk() (*int32, bool)` + +GetKeyfactorIdOk returns a tuple with the KeyfactorId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyfactorId + +`func (o *ModelsEnrollmentRenewalResponse) SetKeyfactorId(v int32)` + +SetKeyfactorId sets KeyfactorId field to given value. + +### HasKeyfactorId + +`func (o *ModelsEnrollmentRenewalResponse) HasKeyfactorId() bool` + +HasKeyfactorId returns a boolean if a field has been set. + +### GetKeyfactorRequestId + +`func (o *ModelsEnrollmentRenewalResponse) GetKeyfactorRequestId() int32` + +GetKeyfactorRequestId returns the KeyfactorRequestId field if non-nil, zero value otherwise. + +### GetKeyfactorRequestIdOk + +`func (o *ModelsEnrollmentRenewalResponse) GetKeyfactorRequestIdOk() (*int32, bool)` + +GetKeyfactorRequestIdOk returns a tuple with the KeyfactorRequestId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyfactorRequestId + +`func (o *ModelsEnrollmentRenewalResponse) SetKeyfactorRequestId(v int32)` + +SetKeyfactorRequestId sets KeyfactorRequestId field to given value. + +### HasKeyfactorRequestId + +`func (o *ModelsEnrollmentRenewalResponse) HasKeyfactorRequestId() bool` + +HasKeyfactorRequestId returns a boolean if a field has been set. + +### GetThumbprint + +`func (o *ModelsEnrollmentRenewalResponse) GetThumbprint() string` + +GetThumbprint returns the Thumbprint field if non-nil, zero value otherwise. + +### GetThumbprintOk + +`func (o *ModelsEnrollmentRenewalResponse) GetThumbprintOk() (*string, bool)` + +GetThumbprintOk returns a tuple with the Thumbprint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThumbprint + +`func (o *ModelsEnrollmentRenewalResponse) SetThumbprint(v string)` + +SetThumbprint sets Thumbprint field to given value. + +### HasThumbprint + +`func (o *ModelsEnrollmentRenewalResponse) HasThumbprint() bool` + +HasThumbprint returns a boolean if a field has been set. + +### GetSerialNumber + +`func (o *ModelsEnrollmentRenewalResponse) GetSerialNumber() string` + +GetSerialNumber returns the SerialNumber field if non-nil, zero value otherwise. + +### GetSerialNumberOk + +`func (o *ModelsEnrollmentRenewalResponse) GetSerialNumberOk() (*string, bool)` + +GetSerialNumberOk returns a tuple with the SerialNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerialNumber + +`func (o *ModelsEnrollmentRenewalResponse) SetSerialNumber(v string)` + +SetSerialNumber sets SerialNumber field to given value. + +### HasSerialNumber + +`func (o *ModelsEnrollmentRenewalResponse) HasSerialNumber() bool` + +HasSerialNumber returns a boolean if a field has been set. + +### GetIssuerDN + +`func (o *ModelsEnrollmentRenewalResponse) GetIssuerDN() string` + +GetIssuerDN returns the IssuerDN field if non-nil, zero value otherwise. + +### GetIssuerDNOk + +`func (o *ModelsEnrollmentRenewalResponse) GetIssuerDNOk() (*string, bool)` + +GetIssuerDNOk returns a tuple with the IssuerDN field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuerDN + +`func (o *ModelsEnrollmentRenewalResponse) SetIssuerDN(v string)` + +SetIssuerDN sets IssuerDN field to given value. + +### HasIssuerDN + +`func (o *ModelsEnrollmentRenewalResponse) HasIssuerDN() bool` + +HasIssuerDN returns a boolean if a field has been set. + +### SetIssuerDNNil + +`func (o *ModelsEnrollmentRenewalResponse) SetIssuerDNNil(b bool)` + + SetIssuerDNNil sets the value for IssuerDN to be an explicit nil + +### UnsetIssuerDN +`func (o *ModelsEnrollmentRenewalResponse) UnsetIssuerDN()` + +UnsetIssuerDN ensures that no value is present for IssuerDN, not even an explicit nil +### GetRequestDisposition + +`func (o *ModelsEnrollmentRenewalResponse) GetRequestDisposition() string` + +GetRequestDisposition returns the RequestDisposition field if non-nil, zero value otherwise. + +### GetRequestDispositionOk + +`func (o *ModelsEnrollmentRenewalResponse) GetRequestDispositionOk() (*string, bool)` + +GetRequestDispositionOk returns a tuple with the RequestDisposition field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestDisposition + +`func (o *ModelsEnrollmentRenewalResponse) SetRequestDisposition(v string)` + +SetRequestDisposition sets RequestDisposition field to given value. + +### HasRequestDisposition + +`func (o *ModelsEnrollmentRenewalResponse) HasRequestDisposition() bool` + +HasRequestDisposition returns a boolean if a field has been set. + +### GetDispositionMessage + +`func (o *ModelsEnrollmentRenewalResponse) GetDispositionMessage() string` + +GetDispositionMessage returns the DispositionMessage field if non-nil, zero value otherwise. + +### GetDispositionMessageOk + +`func (o *ModelsEnrollmentRenewalResponse) GetDispositionMessageOk() (*string, bool)` + +GetDispositionMessageOk returns a tuple with the DispositionMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDispositionMessage + +`func (o *ModelsEnrollmentRenewalResponse) SetDispositionMessage(v string)` + +SetDispositionMessage sets DispositionMessage field to given value. + +### HasDispositionMessage + +`func (o *ModelsEnrollmentRenewalResponse) HasDispositionMessage() bool` + +HasDispositionMessage returns a boolean if a field has been set. + +### GetPassword + +`func (o *ModelsEnrollmentRenewalResponse) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *ModelsEnrollmentRenewalResponse) GetPasswordOk() (*string, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *ModelsEnrollmentRenewalResponse) SetPassword(v string)` + +SetPassword sets Password field to given value. + +### HasPassword + +`func (o *ModelsEnrollmentRenewalResponse) HasPassword() bool` + +HasPassword returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsExtendedKeyUsage.md b/v1/docs/ModelsExtendedKeyUsage.md new file mode 100644 index 0000000..5e7c173 --- /dev/null +++ b/v1/docs/ModelsExtendedKeyUsage.md @@ -0,0 +1,108 @@ +# ModelsExtendedKeyUsage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Oid** | Pointer to **string** | | [optional] +**DisplayName** | Pointer to **string** | | [optional] + +## Methods + +### NewModelsExtendedKeyUsage + +`func NewModelsExtendedKeyUsage() *ModelsExtendedKeyUsage` + +NewModelsExtendedKeyUsage instantiates a new ModelsExtendedKeyUsage object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsExtendedKeyUsageWithDefaults + +`func NewModelsExtendedKeyUsageWithDefaults() *ModelsExtendedKeyUsage` + +NewModelsExtendedKeyUsageWithDefaults instantiates a new ModelsExtendedKeyUsage object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsExtendedKeyUsage) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsExtendedKeyUsage) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsExtendedKeyUsage) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ModelsExtendedKeyUsage) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetOid + +`func (o *ModelsExtendedKeyUsage) GetOid() string` + +GetOid returns the Oid field if non-nil, zero value otherwise. + +### GetOidOk + +`func (o *ModelsExtendedKeyUsage) GetOidOk() (*string, bool)` + +GetOidOk returns a tuple with the Oid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOid + +`func (o *ModelsExtendedKeyUsage) SetOid(v string)` + +SetOid sets Oid field to given value. + +### HasOid + +`func (o *ModelsExtendedKeyUsage) HasOid() bool` + +HasOid returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *ModelsExtendedKeyUsage) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *ModelsExtendedKeyUsage) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *ModelsExtendedKeyUsage) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *ModelsExtendedKeyUsage) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsInvalidKeystore.md b/v1/docs/ModelsInvalidKeystore.md new file mode 100644 index 0000000..360b541 --- /dev/null +++ b/v1/docs/ModelsInvalidKeystore.md @@ -0,0 +1,186 @@ +# ModelsInvalidKeystore + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**KeystoreId** | Pointer to **string** | | [optional] +**ClientMachine** | Pointer to **string** | | [optional] +**StorePath** | Pointer to **string** | | [optional] +**Alias** | Pointer to **string** | | [optional] +**Reason** | Pointer to **int32** | | [optional] +**Explanation** | Pointer to **string** | | [optional] + +## Methods + +### NewModelsInvalidKeystore + +`func NewModelsInvalidKeystore() *ModelsInvalidKeystore` + +NewModelsInvalidKeystore instantiates a new ModelsInvalidKeystore object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsInvalidKeystoreWithDefaults + +`func NewModelsInvalidKeystoreWithDefaults() *ModelsInvalidKeystore` + +NewModelsInvalidKeystoreWithDefaults instantiates a new ModelsInvalidKeystore object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKeystoreId + +`func (o *ModelsInvalidKeystore) GetKeystoreId() string` + +GetKeystoreId returns the KeystoreId field if non-nil, zero value otherwise. + +### GetKeystoreIdOk + +`func (o *ModelsInvalidKeystore) GetKeystoreIdOk() (*string, bool)` + +GetKeystoreIdOk returns a tuple with the KeystoreId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeystoreId + +`func (o *ModelsInvalidKeystore) SetKeystoreId(v string)` + +SetKeystoreId sets KeystoreId field to given value. + +### HasKeystoreId + +`func (o *ModelsInvalidKeystore) HasKeystoreId() bool` + +HasKeystoreId returns a boolean if a field has been set. + +### GetClientMachine + +`func (o *ModelsInvalidKeystore) GetClientMachine() string` + +GetClientMachine returns the ClientMachine field if non-nil, zero value otherwise. + +### GetClientMachineOk + +`func (o *ModelsInvalidKeystore) GetClientMachineOk() (*string, bool)` + +GetClientMachineOk returns a tuple with the ClientMachine field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientMachine + +`func (o *ModelsInvalidKeystore) SetClientMachine(v string)` + +SetClientMachine sets ClientMachine field to given value. + +### HasClientMachine + +`func (o *ModelsInvalidKeystore) HasClientMachine() bool` + +HasClientMachine returns a boolean if a field has been set. + +### GetStorePath + +`func (o *ModelsInvalidKeystore) GetStorePath() string` + +GetStorePath returns the StorePath field if non-nil, zero value otherwise. + +### GetStorePathOk + +`func (o *ModelsInvalidKeystore) GetStorePathOk() (*string, bool)` + +GetStorePathOk returns a tuple with the StorePath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStorePath + +`func (o *ModelsInvalidKeystore) SetStorePath(v string)` + +SetStorePath sets StorePath field to given value. + +### HasStorePath + +`func (o *ModelsInvalidKeystore) HasStorePath() bool` + +HasStorePath returns a boolean if a field has been set. + +### GetAlias + +`func (o *ModelsInvalidKeystore) GetAlias() string` + +GetAlias returns the Alias field if non-nil, zero value otherwise. + +### GetAliasOk + +`func (o *ModelsInvalidKeystore) GetAliasOk() (*string, bool)` + +GetAliasOk returns a tuple with the Alias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlias + +`func (o *ModelsInvalidKeystore) SetAlias(v string)` + +SetAlias sets Alias field to given value. + +### HasAlias + +`func (o *ModelsInvalidKeystore) HasAlias() bool` + +HasAlias returns a boolean if a field has been set. + +### GetReason + +`func (o *ModelsInvalidKeystore) GetReason() int32` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *ModelsInvalidKeystore) GetReasonOk() (*int32, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *ModelsInvalidKeystore) SetReason(v int32)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *ModelsInvalidKeystore) HasReason() bool` + +HasReason returns a boolean if a field has been set. + +### GetExplanation + +`func (o *ModelsInvalidKeystore) GetExplanation() string` + +GetExplanation returns the Explanation field if non-nil, zero value otherwise. + +### GetExplanationOk + +`func (o *ModelsInvalidKeystore) GetExplanationOk() (*string, bool)` + +GetExplanationOk returns a tuple with the Explanation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExplanation + +`func (o *ModelsInvalidKeystore) SetExplanation(v string)` + +SetExplanation sets Explanation field to given value. + +### HasExplanation + +`func (o *ModelsInvalidKeystore) HasExplanation() bool` + +HasExplanation returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsKeyfactorAPISecret.md b/v1/docs/ModelsKeyfactorAPISecret.md new file mode 100644 index 0000000..bb9e66b --- /dev/null +++ b/v1/docs/ModelsKeyfactorAPISecret.md @@ -0,0 +1,108 @@ +# ModelsKeyfactorAPISecret + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SecretValue** | Pointer to **string** | | [optional] +**Parameters** | Pointer to **map[string]string** | | [optional] +**Provider** | Pointer to **int32** | | [optional] + +## Methods + +### NewModelsKeyfactorAPISecret + +`func NewModelsKeyfactorAPISecret() *ModelsKeyfactorAPISecret` + +NewModelsKeyfactorAPISecret instantiates a new ModelsKeyfactorAPISecret object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsKeyfactorAPISecretWithDefaults + +`func NewModelsKeyfactorAPISecretWithDefaults() *ModelsKeyfactorAPISecret` + +NewModelsKeyfactorAPISecretWithDefaults instantiates a new ModelsKeyfactorAPISecret object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSecretValue + +`func (o *ModelsKeyfactorAPISecret) GetSecretValue() string` + +GetSecretValue returns the SecretValue field if non-nil, zero value otherwise. + +### GetSecretValueOk + +`func (o *ModelsKeyfactorAPISecret) GetSecretValueOk() (*string, bool)` + +GetSecretValueOk returns a tuple with the SecretValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecretValue + +`func (o *ModelsKeyfactorAPISecret) SetSecretValue(v string)` + +SetSecretValue sets SecretValue field to given value. + +### HasSecretValue + +`func (o *ModelsKeyfactorAPISecret) HasSecretValue() bool` + +HasSecretValue returns a boolean if a field has been set. + +### GetParameters + +`func (o *ModelsKeyfactorAPISecret) GetParameters() map[string]string` + +GetParameters returns the Parameters field if non-nil, zero value otherwise. + +### GetParametersOk + +`func (o *ModelsKeyfactorAPISecret) GetParametersOk() (*map[string]string, bool)` + +GetParametersOk returns a tuple with the Parameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParameters + +`func (o *ModelsKeyfactorAPISecret) SetParameters(v map[string]string)` + +SetParameters sets Parameters field to given value. + +### HasParameters + +`func (o *ModelsKeyfactorAPISecret) HasParameters() bool` + +HasParameters returns a boolean if a field has been set. + +### GetProvider + +`func (o *ModelsKeyfactorAPISecret) GetProvider() int32` + +GetProvider returns the Provider field if non-nil, zero value otherwise. + +### GetProviderOk + +`func (o *ModelsKeyfactorAPISecret) GetProviderOk() (*int32, bool)` + +GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvider + +`func (o *ModelsKeyfactorAPISecret) SetProvider(v int32)` + +SetProvider sets Provider field to given value. + +### HasProvider + +`func (o *ModelsKeyfactorAPISecret) HasProvider() bool` + +HasProvider returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsMetadataAllUpdateRequest.md b/v1/docs/ModelsMetadataAllUpdateRequest.md new file mode 100644 index 0000000..50a0862 --- /dev/null +++ b/v1/docs/ModelsMetadataAllUpdateRequest.md @@ -0,0 +1,103 @@ +# ModelsMetadataAllUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Query** | Pointer to **string** | | [optional] +**CertificateIds** | Pointer to **[]int32** | | [optional] +**Metadata** | [**[]ModelsMetadataSingleUpdateRequest**](ModelsMetadataSingleUpdateRequest.md) | | + +## Methods + +### NewModelsMetadataAllUpdateRequest + +`func NewModelsMetadataAllUpdateRequest(metadata []ModelsMetadataSingleUpdateRequest, ) *ModelsMetadataAllUpdateRequest` + +NewModelsMetadataAllUpdateRequest instantiates a new ModelsMetadataAllUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsMetadataAllUpdateRequestWithDefaults + +`func NewModelsMetadataAllUpdateRequestWithDefaults() *ModelsMetadataAllUpdateRequest` + +NewModelsMetadataAllUpdateRequestWithDefaults instantiates a new ModelsMetadataAllUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetQuery + +`func (o *ModelsMetadataAllUpdateRequest) GetQuery() string` + +GetQuery returns the Query field if non-nil, zero value otherwise. + +### GetQueryOk + +`func (o *ModelsMetadataAllUpdateRequest) GetQueryOk() (*string, bool)` + +GetQueryOk returns a tuple with the Query field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuery + +`func (o *ModelsMetadataAllUpdateRequest) SetQuery(v string)` + +SetQuery sets Query field to given value. + +### HasQuery + +`func (o *ModelsMetadataAllUpdateRequest) HasQuery() bool` + +HasQuery returns a boolean if a field has been set. + +### GetCertificateIds + +`func (o *ModelsMetadataAllUpdateRequest) GetCertificateIds() []int32` + +GetCertificateIds returns the CertificateIds field if non-nil, zero value otherwise. + +### GetCertificateIdsOk + +`func (o *ModelsMetadataAllUpdateRequest) GetCertificateIdsOk() (*[]int32, bool)` + +GetCertificateIdsOk returns a tuple with the CertificateIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateIds + +`func (o *ModelsMetadataAllUpdateRequest) SetCertificateIds(v []int32)` + +SetCertificateIds sets CertificateIds field to given value. + +### HasCertificateIds + +`func (o *ModelsMetadataAllUpdateRequest) HasCertificateIds() bool` + +HasCertificateIds returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ModelsMetadataAllUpdateRequest) GetMetadata() []ModelsMetadataSingleUpdateRequest` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ModelsMetadataAllUpdateRequest) GetMetadataOk() (*[]ModelsMetadataSingleUpdateRequest, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ModelsMetadataAllUpdateRequest) SetMetadata(v []ModelsMetadataSingleUpdateRequest)` + +SetMetadata sets Metadata field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsMetadataFieldTypeModel.md b/v1/docs/ModelsMetadataFieldTypeModel.md new file mode 100644 index 0000000..9c7a04d --- /dev/null +++ b/v1/docs/ModelsMetadataFieldTypeModel.md @@ -0,0 +1,316 @@ +# ModelsMetadataFieldTypeModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**DataType** | Pointer to **int32** | | [optional] +**Hint** | Pointer to **string** | | [optional] +**Validation** | Pointer to **string** | | [optional] +**Enrollment** | Pointer to **int32** | | [optional] +**Message** | Pointer to **string** | | [optional] +**Options** | Pointer to **string** | | [optional] +**DefaultValue** | Pointer to **string** | | [optional] +**DisplayOrder** | Pointer to **int32** | | [optional] + +## Methods + +### NewModelsMetadataFieldTypeModel + +`func NewModelsMetadataFieldTypeModel() *ModelsMetadataFieldTypeModel` + +NewModelsMetadataFieldTypeModel instantiates a new ModelsMetadataFieldTypeModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsMetadataFieldTypeModelWithDefaults + +`func NewModelsMetadataFieldTypeModelWithDefaults() *ModelsMetadataFieldTypeModel` + +NewModelsMetadataFieldTypeModelWithDefaults instantiates a new ModelsMetadataFieldTypeModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsMetadataFieldTypeModel) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsMetadataFieldTypeModel) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsMetadataFieldTypeModel) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ModelsMetadataFieldTypeModel) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *ModelsMetadataFieldTypeModel) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ModelsMetadataFieldTypeModel) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ModelsMetadataFieldTypeModel) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ModelsMetadataFieldTypeModel) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDescription + +`func (o *ModelsMetadataFieldTypeModel) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ModelsMetadataFieldTypeModel) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *ModelsMetadataFieldTypeModel) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ModelsMetadataFieldTypeModel) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetDataType + +`func (o *ModelsMetadataFieldTypeModel) GetDataType() int32` + +GetDataType returns the DataType field if non-nil, zero value otherwise. + +### GetDataTypeOk + +`func (o *ModelsMetadataFieldTypeModel) GetDataTypeOk() (*int32, bool)` + +GetDataTypeOk returns a tuple with the DataType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataType + +`func (o *ModelsMetadataFieldTypeModel) SetDataType(v int32)` + +SetDataType sets DataType field to given value. + +### HasDataType + +`func (o *ModelsMetadataFieldTypeModel) HasDataType() bool` + +HasDataType returns a boolean if a field has been set. + +### GetHint + +`func (o *ModelsMetadataFieldTypeModel) GetHint() string` + +GetHint returns the Hint field if non-nil, zero value otherwise. + +### GetHintOk + +`func (o *ModelsMetadataFieldTypeModel) GetHintOk() (*string, bool)` + +GetHintOk returns a tuple with the Hint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHint + +`func (o *ModelsMetadataFieldTypeModel) SetHint(v string)` + +SetHint sets Hint field to given value. + +### HasHint + +`func (o *ModelsMetadataFieldTypeModel) HasHint() bool` + +HasHint returns a boolean if a field has been set. + +### GetValidation + +`func (o *ModelsMetadataFieldTypeModel) GetValidation() string` + +GetValidation returns the Validation field if non-nil, zero value otherwise. + +### GetValidationOk + +`func (o *ModelsMetadataFieldTypeModel) GetValidationOk() (*string, bool)` + +GetValidationOk returns a tuple with the Validation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValidation + +`func (o *ModelsMetadataFieldTypeModel) SetValidation(v string)` + +SetValidation sets Validation field to given value. + +### HasValidation + +`func (o *ModelsMetadataFieldTypeModel) HasValidation() bool` + +HasValidation returns a boolean if a field has been set. + +### GetEnrollment + +`func (o *ModelsMetadataFieldTypeModel) GetEnrollment() int32` + +GetEnrollment returns the Enrollment field if non-nil, zero value otherwise. + +### GetEnrollmentOk + +`func (o *ModelsMetadataFieldTypeModel) GetEnrollmentOk() (*int32, bool)` + +GetEnrollmentOk returns a tuple with the Enrollment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnrollment + +`func (o *ModelsMetadataFieldTypeModel) SetEnrollment(v int32)` + +SetEnrollment sets Enrollment field to given value. + +### HasEnrollment + +`func (o *ModelsMetadataFieldTypeModel) HasEnrollment() bool` + +HasEnrollment returns a boolean if a field has been set. + +### GetMessage + +`func (o *ModelsMetadataFieldTypeModel) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *ModelsMetadataFieldTypeModel) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *ModelsMetadataFieldTypeModel) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *ModelsMetadataFieldTypeModel) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### GetOptions + +`func (o *ModelsMetadataFieldTypeModel) GetOptions() string` + +GetOptions returns the Options field if non-nil, zero value otherwise. + +### GetOptionsOk + +`func (o *ModelsMetadataFieldTypeModel) GetOptionsOk() (*string, bool)` + +GetOptionsOk returns a tuple with the Options field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOptions + +`func (o *ModelsMetadataFieldTypeModel) SetOptions(v string)` + +SetOptions sets Options field to given value. + +### HasOptions + +`func (o *ModelsMetadataFieldTypeModel) HasOptions() bool` + +HasOptions returns a boolean if a field has been set. + +### GetDefaultValue + +`func (o *ModelsMetadataFieldTypeModel) GetDefaultValue() string` + +GetDefaultValue returns the DefaultValue field if non-nil, zero value otherwise. + +### GetDefaultValueOk + +`func (o *ModelsMetadataFieldTypeModel) GetDefaultValueOk() (*string, bool)` + +GetDefaultValueOk returns a tuple with the DefaultValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultValue + +`func (o *ModelsMetadataFieldTypeModel) SetDefaultValue(v string)` + +SetDefaultValue sets DefaultValue field to given value. + +### HasDefaultValue + +`func (o *ModelsMetadataFieldTypeModel) HasDefaultValue() bool` + +HasDefaultValue returns a boolean if a field has been set. + +### GetDisplayOrder + +`func (o *ModelsMetadataFieldTypeModel) GetDisplayOrder() int32` + +GetDisplayOrder returns the DisplayOrder field if non-nil, zero value otherwise. + +### GetDisplayOrderOk + +`func (o *ModelsMetadataFieldTypeModel) GetDisplayOrderOk() (*int32, bool)` + +GetDisplayOrderOk returns a tuple with the DisplayOrder field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayOrder + +`func (o *ModelsMetadataFieldTypeModel) SetDisplayOrder(v int32)` + +SetDisplayOrder sets DisplayOrder field to given value. + +### HasDisplayOrder + +`func (o *ModelsMetadataFieldTypeModel) HasDisplayOrder() bool` + +HasDisplayOrder returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsMetadataSingleUpdateRequest.md b/v1/docs/ModelsMetadataSingleUpdateRequest.md new file mode 100644 index 0000000..ad8d242 --- /dev/null +++ b/v1/docs/ModelsMetadataSingleUpdateRequest.md @@ -0,0 +1,108 @@ +# ModelsMetadataSingleUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MetadataName** | Pointer to **string** | | [optional] +**Value** | Pointer to **string** | | [optional] +**OverwriteExisting** | Pointer to **bool** | | [optional] + +## Methods + +### NewModelsMetadataSingleUpdateRequest + +`func NewModelsMetadataSingleUpdateRequest() *ModelsMetadataSingleUpdateRequest` + +NewModelsMetadataSingleUpdateRequest instantiates a new ModelsMetadataSingleUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsMetadataSingleUpdateRequestWithDefaults + +`func NewModelsMetadataSingleUpdateRequestWithDefaults() *ModelsMetadataSingleUpdateRequest` + +NewModelsMetadataSingleUpdateRequestWithDefaults instantiates a new ModelsMetadataSingleUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMetadataName + +`func (o *ModelsMetadataSingleUpdateRequest) GetMetadataName() string` + +GetMetadataName returns the MetadataName field if non-nil, zero value otherwise. + +### GetMetadataNameOk + +`func (o *ModelsMetadataSingleUpdateRequest) GetMetadataNameOk() (*string, bool)` + +GetMetadataNameOk returns a tuple with the MetadataName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadataName + +`func (o *ModelsMetadataSingleUpdateRequest) SetMetadataName(v string)` + +SetMetadataName sets MetadataName field to given value. + +### HasMetadataName + +`func (o *ModelsMetadataSingleUpdateRequest) HasMetadataName() bool` + +HasMetadataName returns a boolean if a field has been set. + +### GetValue + +`func (o *ModelsMetadataSingleUpdateRequest) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *ModelsMetadataSingleUpdateRequest) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *ModelsMetadataSingleUpdateRequest) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *ModelsMetadataSingleUpdateRequest) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetOverwriteExisting + +`func (o *ModelsMetadataSingleUpdateRequest) GetOverwriteExisting() bool` + +GetOverwriteExisting returns the OverwriteExisting field if non-nil, zero value otherwise. + +### GetOverwriteExistingOk + +`func (o *ModelsMetadataSingleUpdateRequest) GetOverwriteExistingOk() (*bool, bool)` + +GetOverwriteExistingOk returns a tuple with the OverwriteExisting field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOverwriteExisting + +`func (o *ModelsMetadataSingleUpdateRequest) SetOverwriteExisting(v bool)` + +SetOverwriteExisting sets OverwriteExisting field to given value. + +### HasOverwriteExisting + +`func (o *ModelsMetadataSingleUpdateRequest) HasOverwriteExisting() bool` + +HasOverwriteExisting returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsMetadataUpdateRequest.md b/v1/docs/ModelsMetadataUpdateRequest.md new file mode 100644 index 0000000..4d4a9a6 --- /dev/null +++ b/v1/docs/ModelsMetadataUpdateRequest.md @@ -0,0 +1,77 @@ +# ModelsMetadataUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Metadata** | **map[string]string** | | + +## Methods + +### NewModelsMetadataUpdateRequest + +`func NewModelsMetadataUpdateRequest(metadata map[string]string, ) *ModelsMetadataUpdateRequest` + +NewModelsMetadataUpdateRequest instantiates a new ModelsMetadataUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsMetadataUpdateRequestWithDefaults + +`func NewModelsMetadataUpdateRequestWithDefaults() *ModelsMetadataUpdateRequest` + +NewModelsMetadataUpdateRequestWithDefaults instantiates a new ModelsMetadataUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsMetadataUpdateRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsMetadataUpdateRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsMetadataUpdateRequest) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ModelsMetadataUpdateRequest) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ModelsMetadataUpdateRequest) GetMetadata() map[string]string` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ModelsMetadataUpdateRequest) GetMetadataOk() (*map[string]string, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ModelsMetadataUpdateRequest) SetMetadata(v map[string]string)` + +SetMetadata sets Metadata field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsMonitoringRevocationMonitoringAlertResponse.md b/v1/docs/ModelsMonitoringRevocationMonitoringAlertResponse.md new file mode 100644 index 0000000..9aba2db --- /dev/null +++ b/v1/docs/ModelsMonitoringRevocationMonitoringAlertResponse.md @@ -0,0 +1,108 @@ +# ModelsMonitoringRevocationMonitoringAlertResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Subject** | Pointer to **string** | | [optional] +**Message** | Pointer to **string** | | [optional] +**Recipients** | Pointer to **[]string** | | [optional] + +## Methods + +### NewModelsMonitoringRevocationMonitoringAlertResponse + +`func NewModelsMonitoringRevocationMonitoringAlertResponse() *ModelsMonitoringRevocationMonitoringAlertResponse` + +NewModelsMonitoringRevocationMonitoringAlertResponse instantiates a new ModelsMonitoringRevocationMonitoringAlertResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsMonitoringRevocationMonitoringAlertResponseWithDefaults + +`func NewModelsMonitoringRevocationMonitoringAlertResponseWithDefaults() *ModelsMonitoringRevocationMonitoringAlertResponse` + +NewModelsMonitoringRevocationMonitoringAlertResponseWithDefaults instantiates a new ModelsMonitoringRevocationMonitoringAlertResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSubject + +`func (o *ModelsMonitoringRevocationMonitoringAlertResponse) GetSubject() string` + +GetSubject returns the Subject field if non-nil, zero value otherwise. + +### GetSubjectOk + +`func (o *ModelsMonitoringRevocationMonitoringAlertResponse) GetSubjectOk() (*string, bool)` + +GetSubjectOk returns a tuple with the Subject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubject + +`func (o *ModelsMonitoringRevocationMonitoringAlertResponse) SetSubject(v string)` + +SetSubject sets Subject field to given value. + +### HasSubject + +`func (o *ModelsMonitoringRevocationMonitoringAlertResponse) HasSubject() bool` + +HasSubject returns a boolean if a field has been set. + +### GetMessage + +`func (o *ModelsMonitoringRevocationMonitoringAlertResponse) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *ModelsMonitoringRevocationMonitoringAlertResponse) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *ModelsMonitoringRevocationMonitoringAlertResponse) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *ModelsMonitoringRevocationMonitoringAlertResponse) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### GetRecipients + +`func (o *ModelsMonitoringRevocationMonitoringAlertResponse) GetRecipients() []string` + +GetRecipients returns the Recipients field if non-nil, zero value otherwise. + +### GetRecipientsOk + +`func (o *ModelsMonitoringRevocationMonitoringAlertResponse) GetRecipientsOk() (*[]string, bool)` + +GetRecipientsOk returns a tuple with the Recipients field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecipients + +`func (o *ModelsMonitoringRevocationMonitoringAlertResponse) SetRecipients(v []string)` + +SetRecipients sets Recipients field to given value. + +### HasRecipients + +`func (o *ModelsMonitoringRevocationMonitoringAlertResponse) HasRecipients() bool` + +HasRecipients returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsOrchestratorJobsBulkOrchestratorJobPair.md b/v1/docs/ModelsOrchestratorJobsBulkOrchestratorJobPair.md new file mode 100644 index 0000000..ed7bd36 --- /dev/null +++ b/v1/docs/ModelsOrchestratorJobsBulkOrchestratorJobPair.md @@ -0,0 +1,82 @@ +# ModelsOrchestratorJobsBulkOrchestratorJobPair + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**JobId** | Pointer to **string** | | [optional] +**OrchestratorId** | Pointer to **string** | | [optional] + +## Methods + +### NewModelsOrchestratorJobsBulkOrchestratorJobPair + +`func NewModelsOrchestratorJobsBulkOrchestratorJobPair() *ModelsOrchestratorJobsBulkOrchestratorJobPair` + +NewModelsOrchestratorJobsBulkOrchestratorJobPair instantiates a new ModelsOrchestratorJobsBulkOrchestratorJobPair object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsOrchestratorJobsBulkOrchestratorJobPairWithDefaults + +`func NewModelsOrchestratorJobsBulkOrchestratorJobPairWithDefaults() *ModelsOrchestratorJobsBulkOrchestratorJobPair` + +NewModelsOrchestratorJobsBulkOrchestratorJobPairWithDefaults instantiates a new ModelsOrchestratorJobsBulkOrchestratorJobPair object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetJobId + +`func (o *ModelsOrchestratorJobsBulkOrchestratorJobPair) GetJobId() string` + +GetJobId returns the JobId field if non-nil, zero value otherwise. + +### GetJobIdOk + +`func (o *ModelsOrchestratorJobsBulkOrchestratorJobPair) GetJobIdOk() (*string, bool)` + +GetJobIdOk returns a tuple with the JobId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobId + +`func (o *ModelsOrchestratorJobsBulkOrchestratorJobPair) SetJobId(v string)` + +SetJobId sets JobId field to given value. + +### HasJobId + +`func (o *ModelsOrchestratorJobsBulkOrchestratorJobPair) HasJobId() bool` + +HasJobId returns a boolean if a field has been set. + +### GetOrchestratorId + +`func (o *ModelsOrchestratorJobsBulkOrchestratorJobPair) GetOrchestratorId() string` + +GetOrchestratorId returns the OrchestratorId field if non-nil, zero value otherwise. + +### GetOrchestratorIdOk + +`func (o *ModelsOrchestratorJobsBulkOrchestratorJobPair) GetOrchestratorIdOk() (*string, bool)` + +GetOrchestratorIdOk returns a tuple with the OrchestratorId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrchestratorId + +`func (o *ModelsOrchestratorJobsBulkOrchestratorJobPair) SetOrchestratorId(v string)` + +SetOrchestratorId sets OrchestratorId field to given value. + +### HasOrchestratorId + +`func (o *ModelsOrchestratorJobsBulkOrchestratorJobPair) HasOrchestratorId() bool` + +HasOrchestratorId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsOrchestratorJobsJob.md b/v1/docs/ModelsOrchestratorJobsJob.md new file mode 100644 index 0000000..88b0cca --- /dev/null +++ b/v1/docs/ModelsOrchestratorJobsJob.md @@ -0,0 +1,186 @@ +# ModelsOrchestratorJobsJob + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**ClientMachine** | Pointer to **string** | | [optional] +**Target** | Pointer to **string** | | [optional] +**Schedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**Requested** | Pointer to **string** | | [optional] +**JobType** | Pointer to **string** | | [optional] + +## Methods + +### NewModelsOrchestratorJobsJob + +`func NewModelsOrchestratorJobsJob() *ModelsOrchestratorJobsJob` + +NewModelsOrchestratorJobsJob instantiates a new ModelsOrchestratorJobsJob object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsOrchestratorJobsJobWithDefaults + +`func NewModelsOrchestratorJobsJobWithDefaults() *ModelsOrchestratorJobsJob` + +NewModelsOrchestratorJobsJobWithDefaults instantiates a new ModelsOrchestratorJobsJob object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsOrchestratorJobsJob) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsOrchestratorJobsJob) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsOrchestratorJobsJob) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ModelsOrchestratorJobsJob) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetClientMachine + +`func (o *ModelsOrchestratorJobsJob) GetClientMachine() string` + +GetClientMachine returns the ClientMachine field if non-nil, zero value otherwise. + +### GetClientMachineOk + +`func (o *ModelsOrchestratorJobsJob) GetClientMachineOk() (*string, bool)` + +GetClientMachineOk returns a tuple with the ClientMachine field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientMachine + +`func (o *ModelsOrchestratorJobsJob) SetClientMachine(v string)` + +SetClientMachine sets ClientMachine field to given value. + +### HasClientMachine + +`func (o *ModelsOrchestratorJobsJob) HasClientMachine() bool` + +HasClientMachine returns a boolean if a field has been set. + +### GetTarget + +`func (o *ModelsOrchestratorJobsJob) GetTarget() string` + +GetTarget returns the Target field if non-nil, zero value otherwise. + +### GetTargetOk + +`func (o *ModelsOrchestratorJobsJob) GetTargetOk() (*string, bool)` + +GetTargetOk returns a tuple with the Target field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTarget + +`func (o *ModelsOrchestratorJobsJob) SetTarget(v string)` + +SetTarget sets Target field to given value. + +### HasTarget + +`func (o *ModelsOrchestratorJobsJob) HasTarget() bool` + +HasTarget returns a boolean if a field has been set. + +### GetSchedule + +`func (o *ModelsOrchestratorJobsJob) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetSchedule returns the Schedule field if non-nil, zero value otherwise. + +### GetScheduleOk + +`func (o *ModelsOrchestratorJobsJob) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetScheduleOk returns a tuple with the Schedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSchedule + +`func (o *ModelsOrchestratorJobsJob) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetSchedule sets Schedule field to given value. + +### HasSchedule + +`func (o *ModelsOrchestratorJobsJob) HasSchedule() bool` + +HasSchedule returns a boolean if a field has been set. + +### GetRequested + +`func (o *ModelsOrchestratorJobsJob) GetRequested() string` + +GetRequested returns the Requested field if non-nil, zero value otherwise. + +### GetRequestedOk + +`func (o *ModelsOrchestratorJobsJob) GetRequestedOk() (*string, bool)` + +GetRequestedOk returns a tuple with the Requested field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequested + +`func (o *ModelsOrchestratorJobsJob) SetRequested(v string)` + +SetRequested sets Requested field to given value. + +### HasRequested + +`func (o *ModelsOrchestratorJobsJob) HasRequested() bool` + +HasRequested returns a boolean if a field has been set. + +### GetJobType + +`func (o *ModelsOrchestratorJobsJob) GetJobType() string` + +GetJobType returns the JobType field if non-nil, zero value otherwise. + +### GetJobTypeOk + +`func (o *ModelsOrchestratorJobsJob) GetJobTypeOk() (*string, bool)` + +GetJobTypeOk returns a tuple with the JobType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobType + +`func (o *ModelsOrchestratorJobsJob) SetJobType(v string)` + +SetJobType sets JobType field to given value. + +### HasJobType + +`func (o *ModelsOrchestratorJobsJob) HasJobType() bool` + +HasJobType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsOrchestratorJobsJobTypeCreateRequest.md b/v1/docs/ModelsOrchestratorJobsJobTypeCreateRequest.md new file mode 100644 index 0000000..85c823f --- /dev/null +++ b/v1/docs/ModelsOrchestratorJobsJobTypeCreateRequest.md @@ -0,0 +1,103 @@ +# ModelsOrchestratorJobsJobTypeCreateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**JobTypeName** | **string** | | +**Description** | Pointer to **string** | | [optional] +**JobTypeFields** | Pointer to [**[]ModelsOrchestratorJobsJobTypeFieldRequest**](ModelsOrchestratorJobsJobTypeFieldRequest.md) | | [optional] + +## Methods + +### NewModelsOrchestratorJobsJobTypeCreateRequest + +`func NewModelsOrchestratorJobsJobTypeCreateRequest(jobTypeName string, ) *ModelsOrchestratorJobsJobTypeCreateRequest` + +NewModelsOrchestratorJobsJobTypeCreateRequest instantiates a new ModelsOrchestratorJobsJobTypeCreateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsOrchestratorJobsJobTypeCreateRequestWithDefaults + +`func NewModelsOrchestratorJobsJobTypeCreateRequestWithDefaults() *ModelsOrchestratorJobsJobTypeCreateRequest` + +NewModelsOrchestratorJobsJobTypeCreateRequestWithDefaults instantiates a new ModelsOrchestratorJobsJobTypeCreateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetJobTypeName + +`func (o *ModelsOrchestratorJobsJobTypeCreateRequest) GetJobTypeName() string` + +GetJobTypeName returns the JobTypeName field if non-nil, zero value otherwise. + +### GetJobTypeNameOk + +`func (o *ModelsOrchestratorJobsJobTypeCreateRequest) GetJobTypeNameOk() (*string, bool)` + +GetJobTypeNameOk returns a tuple with the JobTypeName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobTypeName + +`func (o *ModelsOrchestratorJobsJobTypeCreateRequest) SetJobTypeName(v string)` + +SetJobTypeName sets JobTypeName field to given value. + + +### GetDescription + +`func (o *ModelsOrchestratorJobsJobTypeCreateRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ModelsOrchestratorJobsJobTypeCreateRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *ModelsOrchestratorJobsJobTypeCreateRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ModelsOrchestratorJobsJobTypeCreateRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetJobTypeFields + +`func (o *ModelsOrchestratorJobsJobTypeCreateRequest) GetJobTypeFields() []ModelsOrchestratorJobsJobTypeFieldRequest` + +GetJobTypeFields returns the JobTypeFields field if non-nil, zero value otherwise. + +### GetJobTypeFieldsOk + +`func (o *ModelsOrchestratorJobsJobTypeCreateRequest) GetJobTypeFieldsOk() (*[]ModelsOrchestratorJobsJobTypeFieldRequest, bool)` + +GetJobTypeFieldsOk returns a tuple with the JobTypeFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobTypeFields + +`func (o *ModelsOrchestratorJobsJobTypeCreateRequest) SetJobTypeFields(v []ModelsOrchestratorJobsJobTypeFieldRequest)` + +SetJobTypeFields sets JobTypeFields field to given value. + +### HasJobTypeFields + +`func (o *ModelsOrchestratorJobsJobTypeCreateRequest) HasJobTypeFields() bool` + +HasJobTypeFields returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsOrchestratorJobsJobTypeFieldRequest.md b/v1/docs/ModelsOrchestratorJobsJobTypeFieldRequest.md new file mode 100644 index 0000000..8be6f49 --- /dev/null +++ b/v1/docs/ModelsOrchestratorJobsJobTypeFieldRequest.md @@ -0,0 +1,124 @@ +# ModelsOrchestratorJobsJobTypeFieldRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Type** | **int32** | | +**DefaultValue** | Pointer to **string** | | [optional] +**Required** | Pointer to **bool** | | [optional] + +## Methods + +### NewModelsOrchestratorJobsJobTypeFieldRequest + +`func NewModelsOrchestratorJobsJobTypeFieldRequest(name string, type_ int32, ) *ModelsOrchestratorJobsJobTypeFieldRequest` + +NewModelsOrchestratorJobsJobTypeFieldRequest instantiates a new ModelsOrchestratorJobsJobTypeFieldRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsOrchestratorJobsJobTypeFieldRequestWithDefaults + +`func NewModelsOrchestratorJobsJobTypeFieldRequestWithDefaults() *ModelsOrchestratorJobsJobTypeFieldRequest` + +NewModelsOrchestratorJobsJobTypeFieldRequestWithDefaults instantiates a new ModelsOrchestratorJobsJobTypeFieldRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *ModelsOrchestratorJobsJobTypeFieldRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ModelsOrchestratorJobsJobTypeFieldRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ModelsOrchestratorJobsJobTypeFieldRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetType + +`func (o *ModelsOrchestratorJobsJobTypeFieldRequest) GetType() int32` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ModelsOrchestratorJobsJobTypeFieldRequest) GetTypeOk() (*int32, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ModelsOrchestratorJobsJobTypeFieldRequest) SetType(v int32)` + +SetType sets Type field to given value. + + +### GetDefaultValue + +`func (o *ModelsOrchestratorJobsJobTypeFieldRequest) GetDefaultValue() string` + +GetDefaultValue returns the DefaultValue field if non-nil, zero value otherwise. + +### GetDefaultValueOk + +`func (o *ModelsOrchestratorJobsJobTypeFieldRequest) GetDefaultValueOk() (*string, bool)` + +GetDefaultValueOk returns a tuple with the DefaultValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultValue + +`func (o *ModelsOrchestratorJobsJobTypeFieldRequest) SetDefaultValue(v string)` + +SetDefaultValue sets DefaultValue field to given value. + +### HasDefaultValue + +`func (o *ModelsOrchestratorJobsJobTypeFieldRequest) HasDefaultValue() bool` + +HasDefaultValue returns a boolean if a field has been set. + +### GetRequired + +`func (o *ModelsOrchestratorJobsJobTypeFieldRequest) GetRequired() bool` + +GetRequired returns the Required field if non-nil, zero value otherwise. + +### GetRequiredOk + +`func (o *ModelsOrchestratorJobsJobTypeFieldRequest) GetRequiredOk() (*bool, bool)` + +GetRequiredOk returns a tuple with the Required field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequired + +`func (o *ModelsOrchestratorJobsJobTypeFieldRequest) SetRequired(v bool)` + +SetRequired sets Required field to given value. + +### HasRequired + +`func (o *ModelsOrchestratorJobsJobTypeFieldRequest) HasRequired() bool` + +HasRequired returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsOrchestratorJobsJobTypeUpdateRequest.md b/v1/docs/ModelsOrchestratorJobsJobTypeUpdateRequest.md new file mode 100644 index 0000000..2cbba5b --- /dev/null +++ b/v1/docs/ModelsOrchestratorJobsJobTypeUpdateRequest.md @@ -0,0 +1,124 @@ +# ModelsOrchestratorJobsJobTypeUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | +**JobTypeName** | **string** | | +**Description** | Pointer to **string** | | [optional] +**JobTypeFields** | Pointer to [**[]ModelsOrchestratorJobsJobTypeFieldRequest**](ModelsOrchestratorJobsJobTypeFieldRequest.md) | | [optional] + +## Methods + +### NewModelsOrchestratorJobsJobTypeUpdateRequest + +`func NewModelsOrchestratorJobsJobTypeUpdateRequest(id string, jobTypeName string, ) *ModelsOrchestratorJobsJobTypeUpdateRequest` + +NewModelsOrchestratorJobsJobTypeUpdateRequest instantiates a new ModelsOrchestratorJobsJobTypeUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsOrchestratorJobsJobTypeUpdateRequestWithDefaults + +`func NewModelsOrchestratorJobsJobTypeUpdateRequestWithDefaults() *ModelsOrchestratorJobsJobTypeUpdateRequest` + +NewModelsOrchestratorJobsJobTypeUpdateRequestWithDefaults instantiates a new ModelsOrchestratorJobsJobTypeUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsOrchestratorJobsJobTypeUpdateRequest) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsOrchestratorJobsJobTypeUpdateRequest) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsOrchestratorJobsJobTypeUpdateRequest) SetId(v string)` + +SetId sets Id field to given value. + + +### GetJobTypeName + +`func (o *ModelsOrchestratorJobsJobTypeUpdateRequest) GetJobTypeName() string` + +GetJobTypeName returns the JobTypeName field if non-nil, zero value otherwise. + +### GetJobTypeNameOk + +`func (o *ModelsOrchestratorJobsJobTypeUpdateRequest) GetJobTypeNameOk() (*string, bool)` + +GetJobTypeNameOk returns a tuple with the JobTypeName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobTypeName + +`func (o *ModelsOrchestratorJobsJobTypeUpdateRequest) SetJobTypeName(v string)` + +SetJobTypeName sets JobTypeName field to given value. + + +### GetDescription + +`func (o *ModelsOrchestratorJobsJobTypeUpdateRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ModelsOrchestratorJobsJobTypeUpdateRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *ModelsOrchestratorJobsJobTypeUpdateRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ModelsOrchestratorJobsJobTypeUpdateRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetJobTypeFields + +`func (o *ModelsOrchestratorJobsJobTypeUpdateRequest) GetJobTypeFields() []ModelsOrchestratorJobsJobTypeFieldRequest` + +GetJobTypeFields returns the JobTypeFields field if non-nil, zero value otherwise. + +### GetJobTypeFieldsOk + +`func (o *ModelsOrchestratorJobsJobTypeUpdateRequest) GetJobTypeFieldsOk() (*[]ModelsOrchestratorJobsJobTypeFieldRequest, bool)` + +GetJobTypeFieldsOk returns a tuple with the JobTypeFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobTypeFields + +`func (o *ModelsOrchestratorJobsJobTypeUpdateRequest) SetJobTypeFields(v []ModelsOrchestratorJobsJobTypeFieldRequest)` + +SetJobTypeFields sets JobTypeFields field to given value. + +### HasJobTypeFields + +`func (o *ModelsOrchestratorJobsJobTypeUpdateRequest) HasJobTypeFields() bool` + +HasJobTypeFields returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsOrchestratorJobsScheduleBulkJobRequest.md b/v1/docs/ModelsOrchestratorJobsScheduleBulkJobRequest.md new file mode 100644 index 0000000..a11943b --- /dev/null +++ b/v1/docs/ModelsOrchestratorJobsScheduleBulkJobRequest.md @@ -0,0 +1,124 @@ +# ModelsOrchestratorJobsScheduleBulkJobRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrchestratorIds** | **[]string** | | +**JobTypeName** | **string** | | +**Schedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**JobFields** | Pointer to **map[string]string** | | [optional] + +## Methods + +### NewModelsOrchestratorJobsScheduleBulkJobRequest + +`func NewModelsOrchestratorJobsScheduleBulkJobRequest(orchestratorIds []string, jobTypeName string, ) *ModelsOrchestratorJobsScheduleBulkJobRequest` + +NewModelsOrchestratorJobsScheduleBulkJobRequest instantiates a new ModelsOrchestratorJobsScheduleBulkJobRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsOrchestratorJobsScheduleBulkJobRequestWithDefaults + +`func NewModelsOrchestratorJobsScheduleBulkJobRequestWithDefaults() *ModelsOrchestratorJobsScheduleBulkJobRequest` + +NewModelsOrchestratorJobsScheduleBulkJobRequestWithDefaults instantiates a new ModelsOrchestratorJobsScheduleBulkJobRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetOrchestratorIds + +`func (o *ModelsOrchestratorJobsScheduleBulkJobRequest) GetOrchestratorIds() []string` + +GetOrchestratorIds returns the OrchestratorIds field if non-nil, zero value otherwise. + +### GetOrchestratorIdsOk + +`func (o *ModelsOrchestratorJobsScheduleBulkJobRequest) GetOrchestratorIdsOk() (*[]string, bool)` + +GetOrchestratorIdsOk returns a tuple with the OrchestratorIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrchestratorIds + +`func (o *ModelsOrchestratorJobsScheduleBulkJobRequest) SetOrchestratorIds(v []string)` + +SetOrchestratorIds sets OrchestratorIds field to given value. + + +### GetJobTypeName + +`func (o *ModelsOrchestratorJobsScheduleBulkJobRequest) GetJobTypeName() string` + +GetJobTypeName returns the JobTypeName field if non-nil, zero value otherwise. + +### GetJobTypeNameOk + +`func (o *ModelsOrchestratorJobsScheduleBulkJobRequest) GetJobTypeNameOk() (*string, bool)` + +GetJobTypeNameOk returns a tuple with the JobTypeName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobTypeName + +`func (o *ModelsOrchestratorJobsScheduleBulkJobRequest) SetJobTypeName(v string)` + +SetJobTypeName sets JobTypeName field to given value. + + +### GetSchedule + +`func (o *ModelsOrchestratorJobsScheduleBulkJobRequest) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetSchedule returns the Schedule field if non-nil, zero value otherwise. + +### GetScheduleOk + +`func (o *ModelsOrchestratorJobsScheduleBulkJobRequest) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetScheduleOk returns a tuple with the Schedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSchedule + +`func (o *ModelsOrchestratorJobsScheduleBulkJobRequest) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetSchedule sets Schedule field to given value. + +### HasSchedule + +`func (o *ModelsOrchestratorJobsScheduleBulkJobRequest) HasSchedule() bool` + +HasSchedule returns a boolean if a field has been set. + +### GetJobFields + +`func (o *ModelsOrchestratorJobsScheduleBulkJobRequest) GetJobFields() map[string]string` + +GetJobFields returns the JobFields field if non-nil, zero value otherwise. + +### GetJobFieldsOk + +`func (o *ModelsOrchestratorJobsScheduleBulkJobRequest) GetJobFieldsOk() (*map[string]string, bool)` + +GetJobFieldsOk returns a tuple with the JobFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobFields + +`func (o *ModelsOrchestratorJobsScheduleBulkJobRequest) SetJobFields(v map[string]string)` + +SetJobFields sets JobFields field to given value. + +### HasJobFields + +`func (o *ModelsOrchestratorJobsScheduleBulkJobRequest) HasJobFields() bool` + +HasJobFields returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsOrchestratorJobsScheduleJobRequest.md b/v1/docs/ModelsOrchestratorJobsScheduleJobRequest.md new file mode 100644 index 0000000..84e59c6 --- /dev/null +++ b/v1/docs/ModelsOrchestratorJobsScheduleJobRequest.md @@ -0,0 +1,124 @@ +# ModelsOrchestratorJobsScheduleJobRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AgentId** | **string** | | +**JobTypeName** | **string** | | +**Schedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**JobFields** | Pointer to **map[string]string** | | [optional] + +## Methods + +### NewModelsOrchestratorJobsScheduleJobRequest + +`func NewModelsOrchestratorJobsScheduleJobRequest(agentId string, jobTypeName string, ) *ModelsOrchestratorJobsScheduleJobRequest` + +NewModelsOrchestratorJobsScheduleJobRequest instantiates a new ModelsOrchestratorJobsScheduleJobRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsOrchestratorJobsScheduleJobRequestWithDefaults + +`func NewModelsOrchestratorJobsScheduleJobRequestWithDefaults() *ModelsOrchestratorJobsScheduleJobRequest` + +NewModelsOrchestratorJobsScheduleJobRequestWithDefaults instantiates a new ModelsOrchestratorJobsScheduleJobRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAgentId + +`func (o *ModelsOrchestratorJobsScheduleJobRequest) GetAgentId() string` + +GetAgentId returns the AgentId field if non-nil, zero value otherwise. + +### GetAgentIdOk + +`func (o *ModelsOrchestratorJobsScheduleJobRequest) GetAgentIdOk() (*string, bool)` + +GetAgentIdOk returns a tuple with the AgentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentId + +`func (o *ModelsOrchestratorJobsScheduleJobRequest) SetAgentId(v string)` + +SetAgentId sets AgentId field to given value. + + +### GetJobTypeName + +`func (o *ModelsOrchestratorJobsScheduleJobRequest) GetJobTypeName() string` + +GetJobTypeName returns the JobTypeName field if non-nil, zero value otherwise. + +### GetJobTypeNameOk + +`func (o *ModelsOrchestratorJobsScheduleJobRequest) GetJobTypeNameOk() (*string, bool)` + +GetJobTypeNameOk returns a tuple with the JobTypeName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobTypeName + +`func (o *ModelsOrchestratorJobsScheduleJobRequest) SetJobTypeName(v string)` + +SetJobTypeName sets JobTypeName field to given value. + + +### GetSchedule + +`func (o *ModelsOrchestratorJobsScheduleJobRequest) GetSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetSchedule returns the Schedule field if non-nil, zero value otherwise. + +### GetScheduleOk + +`func (o *ModelsOrchestratorJobsScheduleJobRequest) GetScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetScheduleOk returns a tuple with the Schedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSchedule + +`func (o *ModelsOrchestratorJobsScheduleJobRequest) SetSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetSchedule sets Schedule field to given value. + +### HasSchedule + +`func (o *ModelsOrchestratorJobsScheduleJobRequest) HasSchedule() bool` + +HasSchedule returns a boolean if a field has been set. + +### GetJobFields + +`func (o *ModelsOrchestratorJobsScheduleJobRequest) GetJobFields() map[string]string` + +GetJobFields returns the JobFields field if non-nil, zero value otherwise. + +### GetJobFieldsOk + +`func (o *ModelsOrchestratorJobsScheduleJobRequest) GetJobFieldsOk() (*map[string]string, bool)` + +GetJobFieldsOk returns a tuple with the JobFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobFields + +`func (o *ModelsOrchestratorJobsScheduleJobRequest) SetJobFields(v map[string]string)` + +SetJobFields sets JobFields field to given value. + +### HasJobFields + +`func (o *ModelsOrchestratorJobsScheduleJobRequest) HasJobFields() bool` + +HasJobFields returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsPKICertificateOperation.md b/v1/docs/ModelsPKICertificateOperation.md new file mode 100644 index 0000000..1c16911 --- /dev/null +++ b/v1/docs/ModelsPKICertificateOperation.md @@ -0,0 +1,186 @@ +# ModelsPKICertificateOperation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int64** | | [optional] +**OperationStart** | Pointer to **time.Time** | | [optional] +**OperationEnd** | Pointer to **time.Time** | | [optional] +**Username** | Pointer to **string** | | [optional] +**Comment** | Pointer to **string** | | [optional] +**Action** | Pointer to **string** | | [optional] + +## Methods + +### NewModelsPKICertificateOperation + +`func NewModelsPKICertificateOperation() *ModelsPKICertificateOperation` + +NewModelsPKICertificateOperation instantiates a new ModelsPKICertificateOperation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsPKICertificateOperationWithDefaults + +`func NewModelsPKICertificateOperationWithDefaults() *ModelsPKICertificateOperation` + +NewModelsPKICertificateOperationWithDefaults instantiates a new ModelsPKICertificateOperation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsPKICertificateOperation) GetId() int64` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsPKICertificateOperation) GetIdOk() (*int64, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsPKICertificateOperation) SetId(v int64)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ModelsPKICertificateOperation) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetOperationStart + +`func (o *ModelsPKICertificateOperation) GetOperationStart() time.Time` + +GetOperationStart returns the OperationStart field if non-nil, zero value otherwise. + +### GetOperationStartOk + +`func (o *ModelsPKICertificateOperation) GetOperationStartOk() (*time.Time, bool)` + +GetOperationStartOk returns a tuple with the OperationStart field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperationStart + +`func (o *ModelsPKICertificateOperation) SetOperationStart(v time.Time)` + +SetOperationStart sets OperationStart field to given value. + +### HasOperationStart + +`func (o *ModelsPKICertificateOperation) HasOperationStart() bool` + +HasOperationStart returns a boolean if a field has been set. + +### GetOperationEnd + +`func (o *ModelsPKICertificateOperation) GetOperationEnd() time.Time` + +GetOperationEnd returns the OperationEnd field if non-nil, zero value otherwise. + +### GetOperationEndOk + +`func (o *ModelsPKICertificateOperation) GetOperationEndOk() (*time.Time, bool)` + +GetOperationEndOk returns a tuple with the OperationEnd field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperationEnd + +`func (o *ModelsPKICertificateOperation) SetOperationEnd(v time.Time)` + +SetOperationEnd sets OperationEnd field to given value. + +### HasOperationEnd + +`func (o *ModelsPKICertificateOperation) HasOperationEnd() bool` + +HasOperationEnd returns a boolean if a field has been set. + +### GetUsername + +`func (o *ModelsPKICertificateOperation) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *ModelsPKICertificateOperation) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *ModelsPKICertificateOperation) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *ModelsPKICertificateOperation) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + +### GetComment + +`func (o *ModelsPKICertificateOperation) GetComment() string` + +GetComment returns the Comment field if non-nil, zero value otherwise. + +### GetCommentOk + +`func (o *ModelsPKICertificateOperation) GetCommentOk() (*string, bool)` + +GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComment + +`func (o *ModelsPKICertificateOperation) SetComment(v string)` + +SetComment sets Comment field to given value. + +### HasComment + +`func (o *ModelsPKICertificateOperation) HasComment() bool` + +HasComment returns a boolean if a field has been set. + +### GetAction + +`func (o *ModelsPKICertificateOperation) GetAction() string` + +GetAction returns the Action field if non-nil, zero value otherwise. + +### GetActionOk + +`func (o *ModelsPKICertificateOperation) GetActionOk() (*string, bool)` + +GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAction + +`func (o *ModelsPKICertificateOperation) SetAction(v string)` + +SetAction sets Action field to given value. + +### HasAction + +`func (o *ModelsPKICertificateOperation) HasAction() bool` + +HasAction returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsPagedQuery.md b/v1/docs/ModelsPagedQuery.md new file mode 100644 index 0000000..af2cc9a --- /dev/null +++ b/v1/docs/ModelsPagedQuery.md @@ -0,0 +1,160 @@ +# ModelsPagedQuery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**QueryString** | Pointer to **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | [optional] +**PageReturned** | Pointer to **int32** | The current page within the result set to be returned | [optional] +**ReturnLimit** | Pointer to **int32** | Maximum number of records to be returned in a single call | [optional] +**SortField** | Pointer to **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | [optional] +**SortAscending** | Pointer to **int32** | Field sort direction [0=ascending, 1=descending] | [optional] + +## Methods + +### NewModelsPagedQuery + +`func NewModelsPagedQuery() *ModelsPagedQuery` + +NewModelsPagedQuery instantiates a new ModelsPagedQuery object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsPagedQueryWithDefaults + +`func NewModelsPagedQueryWithDefaults() *ModelsPagedQuery` + +NewModelsPagedQueryWithDefaults instantiates a new ModelsPagedQuery object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetQueryString + +`func (o *ModelsPagedQuery) GetQueryString() string` + +GetQueryString returns the QueryString field if non-nil, zero value otherwise. + +### GetQueryStringOk + +`func (o *ModelsPagedQuery) GetQueryStringOk() (*string, bool)` + +GetQueryStringOk returns a tuple with the QueryString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQueryString + +`func (o *ModelsPagedQuery) SetQueryString(v string)` + +SetQueryString sets QueryString field to given value. + +### HasQueryString + +`func (o *ModelsPagedQuery) HasQueryString() bool` + +HasQueryString returns a boolean if a field has been set. + +### GetPageReturned + +`func (o *ModelsPagedQuery) GetPageReturned() int32` + +GetPageReturned returns the PageReturned field if non-nil, zero value otherwise. + +### GetPageReturnedOk + +`func (o *ModelsPagedQuery) GetPageReturnedOk() (*int32, bool)` + +GetPageReturnedOk returns a tuple with the PageReturned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageReturned + +`func (o *ModelsPagedQuery) SetPageReturned(v int32)` + +SetPageReturned sets PageReturned field to given value. + +### HasPageReturned + +`func (o *ModelsPagedQuery) HasPageReturned() bool` + +HasPageReturned returns a boolean if a field has been set. + +### GetReturnLimit + +`func (o *ModelsPagedQuery) GetReturnLimit() int32` + +GetReturnLimit returns the ReturnLimit field if non-nil, zero value otherwise. + +### GetReturnLimitOk + +`func (o *ModelsPagedQuery) GetReturnLimitOk() (*int32, bool)` + +GetReturnLimitOk returns a tuple with the ReturnLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReturnLimit + +`func (o *ModelsPagedQuery) SetReturnLimit(v int32)` + +SetReturnLimit sets ReturnLimit field to given value. + +### HasReturnLimit + +`func (o *ModelsPagedQuery) HasReturnLimit() bool` + +HasReturnLimit returns a boolean if a field has been set. + +### GetSortField + +`func (o *ModelsPagedQuery) GetSortField() string` + +GetSortField returns the SortField field if non-nil, zero value otherwise. + +### GetSortFieldOk + +`func (o *ModelsPagedQuery) GetSortFieldOk() (*string, bool)` + +GetSortFieldOk returns a tuple with the SortField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortField + +`func (o *ModelsPagedQuery) SetSortField(v string)` + +SetSortField sets SortField field to given value. + +### HasSortField + +`func (o *ModelsPagedQuery) HasSortField() bool` + +HasSortField returns a boolean if a field has been set. + +### GetSortAscending + +`func (o *ModelsPagedQuery) GetSortAscending() int32` + +GetSortAscending returns the SortAscending field if non-nil, zero value otherwise. + +### GetSortAscendingOk + +`func (o *ModelsPagedQuery) GetSortAscendingOk() (*int32, bool)` + +GetSortAscendingOk returns a tuple with the SortAscending field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortAscending + +`func (o *ModelsPagedQuery) SetSortAscending(v int32)` + +SetSortAscending sets SortAscending field to given value. + +### HasSortAscending + +`func (o *ModelsPagedQuery) HasSortAscending() bool` + +HasSortAscending returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsPendingCSRResponse.md b/v1/docs/ModelsPendingCSRResponse.md new file mode 100644 index 0000000..e557472 --- /dev/null +++ b/v1/docs/ModelsPendingCSRResponse.md @@ -0,0 +1,134 @@ +# ModelsPendingCSRResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**CSR** | Pointer to **string** | | [optional] +**RequestTime** | Pointer to **time.Time** | | [optional] +**Subject** | Pointer to **[]string** | | [optional] + +## Methods + +### NewModelsPendingCSRResponse + +`func NewModelsPendingCSRResponse() *ModelsPendingCSRResponse` + +NewModelsPendingCSRResponse instantiates a new ModelsPendingCSRResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsPendingCSRResponseWithDefaults + +`func NewModelsPendingCSRResponseWithDefaults() *ModelsPendingCSRResponse` + +NewModelsPendingCSRResponseWithDefaults instantiates a new ModelsPendingCSRResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsPendingCSRResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsPendingCSRResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsPendingCSRResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ModelsPendingCSRResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetCSR + +`func (o *ModelsPendingCSRResponse) GetCSR() string` + +GetCSR returns the CSR field if non-nil, zero value otherwise. + +### GetCSROk + +`func (o *ModelsPendingCSRResponse) GetCSROk() (*string, bool)` + +GetCSROk returns a tuple with the CSR field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCSR + +`func (o *ModelsPendingCSRResponse) SetCSR(v string)` + +SetCSR sets CSR field to given value. + +### HasCSR + +`func (o *ModelsPendingCSRResponse) HasCSR() bool` + +HasCSR returns a boolean if a field has been set. + +### GetRequestTime + +`func (o *ModelsPendingCSRResponse) GetRequestTime() time.Time` + +GetRequestTime returns the RequestTime field if non-nil, zero value otherwise. + +### GetRequestTimeOk + +`func (o *ModelsPendingCSRResponse) GetRequestTimeOk() (*time.Time, bool)` + +GetRequestTimeOk returns a tuple with the RequestTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestTime + +`func (o *ModelsPendingCSRResponse) SetRequestTime(v time.Time)` + +SetRequestTime sets RequestTime field to given value. + +### HasRequestTime + +`func (o *ModelsPendingCSRResponse) HasRequestTime() bool` + +HasRequestTime returns a boolean if a field has been set. + +### GetSubject + +`func (o *ModelsPendingCSRResponse) GetSubject() []string` + +GetSubject returns the Subject field if non-nil, zero value otherwise. + +### GetSubjectOk + +`func (o *ModelsPendingCSRResponse) GetSubjectOk() (*[]string, bool)` + +GetSubjectOk returns a tuple with the Subject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubject + +`func (o *ModelsPendingCSRResponse) SetSubject(v []string)` + +SetSubject sets Subject field to given value. + +### HasSubject + +`func (o *ModelsPendingCSRResponse) HasSubject() bool` + +HasSubject returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsPkcs10CertificateResponse.md b/v1/docs/ModelsPkcs10CertificateResponse.md new file mode 100644 index 0000000..618506a --- /dev/null +++ b/v1/docs/ModelsPkcs10CertificateResponse.md @@ -0,0 +1,284 @@ +# ModelsPkcs10CertificateResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SerialNumber** | Pointer to **string** | | [optional] +**IssuerDN** | Pointer to **NullableString** | | [optional] +**Thumbprint** | Pointer to **string** | | [optional] +**KeyfactorID** | Pointer to **int32** | The integer ID of the certificate in the keyfactor database, if Issued | [optional] +**Certificates** | Pointer to **[]string** | | [optional] +**KeyfactorRequestId** | Pointer to **int32** | The integer id of the certificate request in the Keyfactor database, if one exists. | [optional] +**RequestDisposition** | Pointer to **string** | | [optional] +**DispositionMessage** | Pointer to **string** | | [optional] +**EnrollmentContext** | Pointer to **map[string]string** | | [optional] + +## Methods + +### NewModelsPkcs10CertificateResponse + +`func NewModelsPkcs10CertificateResponse() *ModelsPkcs10CertificateResponse` + +NewModelsPkcs10CertificateResponse instantiates a new ModelsPkcs10CertificateResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsPkcs10CertificateResponseWithDefaults + +`func NewModelsPkcs10CertificateResponseWithDefaults() *ModelsPkcs10CertificateResponse` + +NewModelsPkcs10CertificateResponseWithDefaults instantiates a new ModelsPkcs10CertificateResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSerialNumber + +`func (o *ModelsPkcs10CertificateResponse) GetSerialNumber() string` + +GetSerialNumber returns the SerialNumber field if non-nil, zero value otherwise. + +### GetSerialNumberOk + +`func (o *ModelsPkcs10CertificateResponse) GetSerialNumberOk() (*string, bool)` + +GetSerialNumberOk returns a tuple with the SerialNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerialNumber + +`func (o *ModelsPkcs10CertificateResponse) SetSerialNumber(v string)` + +SetSerialNumber sets SerialNumber field to given value. + +### HasSerialNumber + +`func (o *ModelsPkcs10CertificateResponse) HasSerialNumber() bool` + +HasSerialNumber returns a boolean if a field has been set. + +### GetIssuerDN + +`func (o *ModelsPkcs10CertificateResponse) GetIssuerDN() string` + +GetIssuerDN returns the IssuerDN field if non-nil, zero value otherwise. + +### GetIssuerDNOk + +`func (o *ModelsPkcs10CertificateResponse) GetIssuerDNOk() (*string, bool)` + +GetIssuerDNOk returns a tuple with the IssuerDN field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuerDN + +`func (o *ModelsPkcs10CertificateResponse) SetIssuerDN(v string)` + +SetIssuerDN sets IssuerDN field to given value. + +### HasIssuerDN + +`func (o *ModelsPkcs10CertificateResponse) HasIssuerDN() bool` + +HasIssuerDN returns a boolean if a field has been set. + +### SetIssuerDNNil + +`func (o *ModelsPkcs10CertificateResponse) SetIssuerDNNil(b bool)` + + SetIssuerDNNil sets the value for IssuerDN to be an explicit nil + +### UnsetIssuerDN +`func (o *ModelsPkcs10CertificateResponse) UnsetIssuerDN()` + +UnsetIssuerDN ensures that no value is present for IssuerDN, not even an explicit nil +### GetThumbprint + +`func (o *ModelsPkcs10CertificateResponse) GetThumbprint() string` + +GetThumbprint returns the Thumbprint field if non-nil, zero value otherwise. + +### GetThumbprintOk + +`func (o *ModelsPkcs10CertificateResponse) GetThumbprintOk() (*string, bool)` + +GetThumbprintOk returns a tuple with the Thumbprint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThumbprint + +`func (o *ModelsPkcs10CertificateResponse) SetThumbprint(v string)` + +SetThumbprint sets Thumbprint field to given value. + +### HasThumbprint + +`func (o *ModelsPkcs10CertificateResponse) HasThumbprint() bool` + +HasThumbprint returns a boolean if a field has been set. + +### GetKeyfactorID + +`func (o *ModelsPkcs10CertificateResponse) GetKeyfactorID() int32` + +GetKeyfactorID returns the KeyfactorID field if non-nil, zero value otherwise. + +### GetKeyfactorIDOk + +`func (o *ModelsPkcs10CertificateResponse) GetKeyfactorIDOk() (*int32, bool)` + +GetKeyfactorIDOk returns a tuple with the KeyfactorID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyfactorID + +`func (o *ModelsPkcs10CertificateResponse) SetKeyfactorID(v int32)` + +SetKeyfactorID sets KeyfactorID field to given value. + +### HasKeyfactorID + +`func (o *ModelsPkcs10CertificateResponse) HasKeyfactorID() bool` + +HasKeyfactorID returns a boolean if a field has been set. + +### GetCertificates + +`func (o *ModelsPkcs10CertificateResponse) GetCertificates() []string` + +GetCertificates returns the Certificates field if non-nil, zero value otherwise. + +### GetCertificatesOk + +`func (o *ModelsPkcs10CertificateResponse) GetCertificatesOk() (*[]string, bool)` + +GetCertificatesOk returns a tuple with the Certificates field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificates + +`func (o *ModelsPkcs10CertificateResponse) SetCertificates(v []string)` + +SetCertificates sets Certificates field to given value. + +### HasCertificates + +`func (o *ModelsPkcs10CertificateResponse) HasCertificates() bool` + +HasCertificates returns a boolean if a field has been set. + +### GetKeyfactorRequestId + +`func (o *ModelsPkcs10CertificateResponse) GetKeyfactorRequestId() int32` + +GetKeyfactorRequestId returns the KeyfactorRequestId field if non-nil, zero value otherwise. + +### GetKeyfactorRequestIdOk + +`func (o *ModelsPkcs10CertificateResponse) GetKeyfactorRequestIdOk() (*int32, bool)` + +GetKeyfactorRequestIdOk returns a tuple with the KeyfactorRequestId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyfactorRequestId + +`func (o *ModelsPkcs10CertificateResponse) SetKeyfactorRequestId(v int32)` + +SetKeyfactorRequestId sets KeyfactorRequestId field to given value. + +### HasKeyfactorRequestId + +`func (o *ModelsPkcs10CertificateResponse) HasKeyfactorRequestId() bool` + +HasKeyfactorRequestId returns a boolean if a field has been set. + +### GetRequestDisposition + +`func (o *ModelsPkcs10CertificateResponse) GetRequestDisposition() string` + +GetRequestDisposition returns the RequestDisposition field if non-nil, zero value otherwise. + +### GetRequestDispositionOk + +`func (o *ModelsPkcs10CertificateResponse) GetRequestDispositionOk() (*string, bool)` + +GetRequestDispositionOk returns a tuple with the RequestDisposition field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestDisposition + +`func (o *ModelsPkcs10CertificateResponse) SetRequestDisposition(v string)` + +SetRequestDisposition sets RequestDisposition field to given value. + +### HasRequestDisposition + +`func (o *ModelsPkcs10CertificateResponse) HasRequestDisposition() bool` + +HasRequestDisposition returns a boolean if a field has been set. + +### GetDispositionMessage + +`func (o *ModelsPkcs10CertificateResponse) GetDispositionMessage() string` + +GetDispositionMessage returns the DispositionMessage field if non-nil, zero value otherwise. + +### GetDispositionMessageOk + +`func (o *ModelsPkcs10CertificateResponse) GetDispositionMessageOk() (*string, bool)` + +GetDispositionMessageOk returns a tuple with the DispositionMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDispositionMessage + +`func (o *ModelsPkcs10CertificateResponse) SetDispositionMessage(v string)` + +SetDispositionMessage sets DispositionMessage field to given value. + +### HasDispositionMessage + +`func (o *ModelsPkcs10CertificateResponse) HasDispositionMessage() bool` + +HasDispositionMessage returns a boolean if a field has been set. + +### GetEnrollmentContext + +`func (o *ModelsPkcs10CertificateResponse) GetEnrollmentContext() map[string]string` + +GetEnrollmentContext returns the EnrollmentContext field if non-nil, zero value otherwise. + +### GetEnrollmentContextOk + +`func (o *ModelsPkcs10CertificateResponse) GetEnrollmentContextOk() (*map[string]string, bool)` + +GetEnrollmentContextOk returns a tuple with the EnrollmentContext field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnrollmentContext + +`func (o *ModelsPkcs10CertificateResponse) SetEnrollmentContext(v map[string]string)` + +SetEnrollmentContext sets EnrollmentContext field to given value. + +### HasEnrollmentContext + +`func (o *ModelsPkcs10CertificateResponse) HasEnrollmentContext() bool` + +HasEnrollmentContext returns a boolean if a field has been set. + +### SetEnrollmentContextNil + +`func (o *ModelsPkcs10CertificateResponse) SetEnrollmentContextNil(b bool)` + + SetEnrollmentContextNil sets the value for EnrollmentContext to be an explicit nil + +### UnsetEnrollmentContext +`func (o *ModelsPkcs10CertificateResponse) UnsetEnrollmentContext()` + +UnsetEnrollmentContext ensures that no value is present for EnrollmentContext, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsPkcs12CertificateResponse.md b/v1/docs/ModelsPkcs12CertificateResponse.md new file mode 100644 index 0000000..89f5ecc --- /dev/null +++ b/v1/docs/ModelsPkcs12CertificateResponse.md @@ -0,0 +1,310 @@ +# ModelsPkcs12CertificateResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SerialNumber** | Pointer to **string** | | [optional] +**IssuerDN** | Pointer to **NullableString** | | [optional] +**Thumbprint** | Pointer to **string** | | [optional] +**KeyfactorId** | Pointer to **int32** | | [optional] +**Pkcs12Blob** | Pointer to **string** | | [optional] +**Password** | Pointer to **string** | | [optional] +**KeyfactorRequestId** | Pointer to **int32** | The integer id of the certificate request in the Keyfactor database, if one exists. | [optional] +**RequestDisposition** | Pointer to **string** | | [optional] +**DispositionMessage** | Pointer to **string** | | [optional] +**EnrollmentContext** | Pointer to **map[string]string** | | [optional] + +## Methods + +### NewModelsPkcs12CertificateResponse + +`func NewModelsPkcs12CertificateResponse() *ModelsPkcs12CertificateResponse` + +NewModelsPkcs12CertificateResponse instantiates a new ModelsPkcs12CertificateResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsPkcs12CertificateResponseWithDefaults + +`func NewModelsPkcs12CertificateResponseWithDefaults() *ModelsPkcs12CertificateResponse` + +NewModelsPkcs12CertificateResponseWithDefaults instantiates a new ModelsPkcs12CertificateResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSerialNumber + +`func (o *ModelsPkcs12CertificateResponse) GetSerialNumber() string` + +GetSerialNumber returns the SerialNumber field if non-nil, zero value otherwise. + +### GetSerialNumberOk + +`func (o *ModelsPkcs12CertificateResponse) GetSerialNumberOk() (*string, bool)` + +GetSerialNumberOk returns a tuple with the SerialNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerialNumber + +`func (o *ModelsPkcs12CertificateResponse) SetSerialNumber(v string)` + +SetSerialNumber sets SerialNumber field to given value. + +### HasSerialNumber + +`func (o *ModelsPkcs12CertificateResponse) HasSerialNumber() bool` + +HasSerialNumber returns a boolean if a field has been set. + +### GetIssuerDN + +`func (o *ModelsPkcs12CertificateResponse) GetIssuerDN() string` + +GetIssuerDN returns the IssuerDN field if non-nil, zero value otherwise. + +### GetIssuerDNOk + +`func (o *ModelsPkcs12CertificateResponse) GetIssuerDNOk() (*string, bool)` + +GetIssuerDNOk returns a tuple with the IssuerDN field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuerDN + +`func (o *ModelsPkcs12CertificateResponse) SetIssuerDN(v string)` + +SetIssuerDN sets IssuerDN field to given value. + +### HasIssuerDN + +`func (o *ModelsPkcs12CertificateResponse) HasIssuerDN() bool` + +HasIssuerDN returns a boolean if a field has been set. + +### SetIssuerDNNil + +`func (o *ModelsPkcs12CertificateResponse) SetIssuerDNNil(b bool)` + + SetIssuerDNNil sets the value for IssuerDN to be an explicit nil + +### UnsetIssuerDN +`func (o *ModelsPkcs12CertificateResponse) UnsetIssuerDN()` + +UnsetIssuerDN ensures that no value is present for IssuerDN, not even an explicit nil +### GetThumbprint + +`func (o *ModelsPkcs12CertificateResponse) GetThumbprint() string` + +GetThumbprint returns the Thumbprint field if non-nil, zero value otherwise. + +### GetThumbprintOk + +`func (o *ModelsPkcs12CertificateResponse) GetThumbprintOk() (*string, bool)` + +GetThumbprintOk returns a tuple with the Thumbprint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThumbprint + +`func (o *ModelsPkcs12CertificateResponse) SetThumbprint(v string)` + +SetThumbprint sets Thumbprint field to given value. + +### HasThumbprint + +`func (o *ModelsPkcs12CertificateResponse) HasThumbprint() bool` + +HasThumbprint returns a boolean if a field has been set. + +### GetKeyfactorId + +`func (o *ModelsPkcs12CertificateResponse) GetKeyfactorId() int32` + +GetKeyfactorId returns the KeyfactorId field if non-nil, zero value otherwise. + +### GetKeyfactorIdOk + +`func (o *ModelsPkcs12CertificateResponse) GetKeyfactorIdOk() (*int32, bool)` + +GetKeyfactorIdOk returns a tuple with the KeyfactorId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyfactorId + +`func (o *ModelsPkcs12CertificateResponse) SetKeyfactorId(v int32)` + +SetKeyfactorId sets KeyfactorId field to given value. + +### HasKeyfactorId + +`func (o *ModelsPkcs12CertificateResponse) HasKeyfactorId() bool` + +HasKeyfactorId returns a boolean if a field has been set. + +### GetPkcs12Blob + +`func (o *ModelsPkcs12CertificateResponse) GetPkcs12Blob() string` + +GetPkcs12Blob returns the Pkcs12Blob field if non-nil, zero value otherwise. + +### GetPkcs12BlobOk + +`func (o *ModelsPkcs12CertificateResponse) GetPkcs12BlobOk() (*string, bool)` + +GetPkcs12BlobOk returns a tuple with the Pkcs12Blob field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPkcs12Blob + +`func (o *ModelsPkcs12CertificateResponse) SetPkcs12Blob(v string)` + +SetPkcs12Blob sets Pkcs12Blob field to given value. + +### HasPkcs12Blob + +`func (o *ModelsPkcs12CertificateResponse) HasPkcs12Blob() bool` + +HasPkcs12Blob returns a boolean if a field has been set. + +### GetPassword + +`func (o *ModelsPkcs12CertificateResponse) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *ModelsPkcs12CertificateResponse) GetPasswordOk() (*string, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *ModelsPkcs12CertificateResponse) SetPassword(v string)` + +SetPassword sets Password field to given value. + +### HasPassword + +`func (o *ModelsPkcs12CertificateResponse) HasPassword() bool` + +HasPassword returns a boolean if a field has been set. + +### GetKeyfactorRequestId + +`func (o *ModelsPkcs12CertificateResponse) GetKeyfactorRequestId() int32` + +GetKeyfactorRequestId returns the KeyfactorRequestId field if non-nil, zero value otherwise. + +### GetKeyfactorRequestIdOk + +`func (o *ModelsPkcs12CertificateResponse) GetKeyfactorRequestIdOk() (*int32, bool)` + +GetKeyfactorRequestIdOk returns a tuple with the KeyfactorRequestId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyfactorRequestId + +`func (o *ModelsPkcs12CertificateResponse) SetKeyfactorRequestId(v int32)` + +SetKeyfactorRequestId sets KeyfactorRequestId field to given value. + +### HasKeyfactorRequestId + +`func (o *ModelsPkcs12CertificateResponse) HasKeyfactorRequestId() bool` + +HasKeyfactorRequestId returns a boolean if a field has been set. + +### GetRequestDisposition + +`func (o *ModelsPkcs12CertificateResponse) GetRequestDisposition() string` + +GetRequestDisposition returns the RequestDisposition field if non-nil, zero value otherwise. + +### GetRequestDispositionOk + +`func (o *ModelsPkcs12CertificateResponse) GetRequestDispositionOk() (*string, bool)` + +GetRequestDispositionOk returns a tuple with the RequestDisposition field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestDisposition + +`func (o *ModelsPkcs12CertificateResponse) SetRequestDisposition(v string)` + +SetRequestDisposition sets RequestDisposition field to given value. + +### HasRequestDisposition + +`func (o *ModelsPkcs12CertificateResponse) HasRequestDisposition() bool` + +HasRequestDisposition returns a boolean if a field has been set. + +### GetDispositionMessage + +`func (o *ModelsPkcs12CertificateResponse) GetDispositionMessage() string` + +GetDispositionMessage returns the DispositionMessage field if non-nil, zero value otherwise. + +### GetDispositionMessageOk + +`func (o *ModelsPkcs12CertificateResponse) GetDispositionMessageOk() (*string, bool)` + +GetDispositionMessageOk returns a tuple with the DispositionMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDispositionMessage + +`func (o *ModelsPkcs12CertificateResponse) SetDispositionMessage(v string)` + +SetDispositionMessage sets DispositionMessage field to given value. + +### HasDispositionMessage + +`func (o *ModelsPkcs12CertificateResponse) HasDispositionMessage() bool` + +HasDispositionMessage returns a boolean if a field has been set. + +### GetEnrollmentContext + +`func (o *ModelsPkcs12CertificateResponse) GetEnrollmentContext() map[string]string` + +GetEnrollmentContext returns the EnrollmentContext field if non-nil, zero value otherwise. + +### GetEnrollmentContextOk + +`func (o *ModelsPkcs12CertificateResponse) GetEnrollmentContextOk() (*map[string]string, bool)` + +GetEnrollmentContextOk returns a tuple with the EnrollmentContext field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnrollmentContext + +`func (o *ModelsPkcs12CertificateResponse) SetEnrollmentContext(v map[string]string)` + +SetEnrollmentContext sets EnrollmentContext field to given value. + +### HasEnrollmentContext + +`func (o *ModelsPkcs12CertificateResponse) HasEnrollmentContext() bool` + +HasEnrollmentContext returns a boolean if a field has been set. + +### SetEnrollmentContextNil + +`func (o *ModelsPkcs12CertificateResponse) SetEnrollmentContextNil(b bool)` + + SetEnrollmentContextNil sets the value for EnrollmentContext to be an explicit nil + +### UnsetEnrollmentContext +`func (o *ModelsPkcs12CertificateResponse) UnsetEnrollmentContext()` + +UnsetEnrollmentContext ensures that no value is present for EnrollmentContext, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsQueryModelsPagedAgentBlueprintJobsQuery.md b/v1/docs/ModelsQueryModelsPagedAgentBlueprintJobsQuery.md new file mode 100644 index 0000000..e4a1692 --- /dev/null +++ b/v1/docs/ModelsQueryModelsPagedAgentBlueprintJobsQuery.md @@ -0,0 +1,160 @@ +# ModelsQueryModelsPagedAgentBlueprintJobsQuery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PageReturned** | Pointer to **int32** | The current page within the result set to be returned | [optional] +**SkipCount** | Pointer to **int32** | Number of records to be skipped before inclusion in the result set | [optional] [readonly] +**ReturnLimit** | Pointer to **int32** | Maximum number of records to be returned in a single call | [optional] +**SortField** | Pointer to **string** | Field by which the results should be sorted (OperationStart, OperationEnd, UserName) | [optional] +**SortAscending** | Pointer to **int32** | Field sort direction [0=ascending, 1=descending] | [optional] + +## Methods + +### NewModelsQueryModelsPagedAgentBlueprintJobsQuery + +`func NewModelsQueryModelsPagedAgentBlueprintJobsQuery() *ModelsQueryModelsPagedAgentBlueprintJobsQuery` + +NewModelsQueryModelsPagedAgentBlueprintJobsQuery instantiates a new ModelsQueryModelsPagedAgentBlueprintJobsQuery object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsQueryModelsPagedAgentBlueprintJobsQueryWithDefaults + +`func NewModelsQueryModelsPagedAgentBlueprintJobsQueryWithDefaults() *ModelsQueryModelsPagedAgentBlueprintJobsQuery` + +NewModelsQueryModelsPagedAgentBlueprintJobsQueryWithDefaults instantiates a new ModelsQueryModelsPagedAgentBlueprintJobsQuery object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPageReturned + +`func (o *ModelsQueryModelsPagedAgentBlueprintJobsQuery) GetPageReturned() int32` + +GetPageReturned returns the PageReturned field if non-nil, zero value otherwise. + +### GetPageReturnedOk + +`func (o *ModelsQueryModelsPagedAgentBlueprintJobsQuery) GetPageReturnedOk() (*int32, bool)` + +GetPageReturnedOk returns a tuple with the PageReturned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageReturned + +`func (o *ModelsQueryModelsPagedAgentBlueprintJobsQuery) SetPageReturned(v int32)` + +SetPageReturned sets PageReturned field to given value. + +### HasPageReturned + +`func (o *ModelsQueryModelsPagedAgentBlueprintJobsQuery) HasPageReturned() bool` + +HasPageReturned returns a boolean if a field has been set. + +### GetSkipCount + +`func (o *ModelsQueryModelsPagedAgentBlueprintJobsQuery) GetSkipCount() int32` + +GetSkipCount returns the SkipCount field if non-nil, zero value otherwise. + +### GetSkipCountOk + +`func (o *ModelsQueryModelsPagedAgentBlueprintJobsQuery) GetSkipCountOk() (*int32, bool)` + +GetSkipCountOk returns a tuple with the SkipCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSkipCount + +`func (o *ModelsQueryModelsPagedAgentBlueprintJobsQuery) SetSkipCount(v int32)` + +SetSkipCount sets SkipCount field to given value. + +### HasSkipCount + +`func (o *ModelsQueryModelsPagedAgentBlueprintJobsQuery) HasSkipCount() bool` + +HasSkipCount returns a boolean if a field has been set. + +### GetReturnLimit + +`func (o *ModelsQueryModelsPagedAgentBlueprintJobsQuery) GetReturnLimit() int32` + +GetReturnLimit returns the ReturnLimit field if non-nil, zero value otherwise. + +### GetReturnLimitOk + +`func (o *ModelsQueryModelsPagedAgentBlueprintJobsQuery) GetReturnLimitOk() (*int32, bool)` + +GetReturnLimitOk returns a tuple with the ReturnLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReturnLimit + +`func (o *ModelsQueryModelsPagedAgentBlueprintJobsQuery) SetReturnLimit(v int32)` + +SetReturnLimit sets ReturnLimit field to given value. + +### HasReturnLimit + +`func (o *ModelsQueryModelsPagedAgentBlueprintJobsQuery) HasReturnLimit() bool` + +HasReturnLimit returns a boolean if a field has been set. + +### GetSortField + +`func (o *ModelsQueryModelsPagedAgentBlueprintJobsQuery) GetSortField() string` + +GetSortField returns the SortField field if non-nil, zero value otherwise. + +### GetSortFieldOk + +`func (o *ModelsQueryModelsPagedAgentBlueprintJobsQuery) GetSortFieldOk() (*string, bool)` + +GetSortFieldOk returns a tuple with the SortField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortField + +`func (o *ModelsQueryModelsPagedAgentBlueprintJobsQuery) SetSortField(v string)` + +SetSortField sets SortField field to given value. + +### HasSortField + +`func (o *ModelsQueryModelsPagedAgentBlueprintJobsQuery) HasSortField() bool` + +HasSortField returns a boolean if a field has been set. + +### GetSortAscending + +`func (o *ModelsQueryModelsPagedAgentBlueprintJobsQuery) GetSortAscending() int32` + +GetSortAscending returns the SortAscending field if non-nil, zero value otherwise. + +### GetSortAscendingOk + +`func (o *ModelsQueryModelsPagedAgentBlueprintJobsQuery) GetSortAscendingOk() (*int32, bool)` + +GetSortAscendingOk returns a tuple with the SortAscending field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortAscending + +`func (o *ModelsQueryModelsPagedAgentBlueprintJobsQuery) SetSortAscending(v int32)` + +SetSortAscending sets SortAscending field to given value. + +### HasSortAscending + +`func (o *ModelsQueryModelsPagedAgentBlueprintJobsQuery) HasSortAscending() bool` + +HasSortAscending returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsQueryModelsPagedAgentBlueprintQuery.md b/v1/docs/ModelsQueryModelsPagedAgentBlueprintQuery.md new file mode 100644 index 0000000..e02d179 --- /dev/null +++ b/v1/docs/ModelsQueryModelsPagedAgentBlueprintQuery.md @@ -0,0 +1,160 @@ +# ModelsQueryModelsPagedAgentBlueprintQuery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PageReturned** | Pointer to **int32** | The current page within the result set to be returned | [optional] +**SkipCount** | Pointer to **int32** | Number of records to be skipped before inclusion in the result set | [optional] [readonly] +**ReturnLimit** | Pointer to **int32** | Maximum number of records to be returned in a single call | [optional] +**SortField** | Pointer to **string** | Field by which the results should be sorted (OperationStart, OperationEnd, UserName) | [optional] +**SortAscending** | Pointer to **int32** | Field sort direction [0=ascending, 1=descending] | [optional] + +## Methods + +### NewModelsQueryModelsPagedAgentBlueprintQuery + +`func NewModelsQueryModelsPagedAgentBlueprintQuery() *ModelsQueryModelsPagedAgentBlueprintQuery` + +NewModelsQueryModelsPagedAgentBlueprintQuery instantiates a new ModelsQueryModelsPagedAgentBlueprintQuery object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsQueryModelsPagedAgentBlueprintQueryWithDefaults + +`func NewModelsQueryModelsPagedAgentBlueprintQueryWithDefaults() *ModelsQueryModelsPagedAgentBlueprintQuery` + +NewModelsQueryModelsPagedAgentBlueprintQueryWithDefaults instantiates a new ModelsQueryModelsPagedAgentBlueprintQuery object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPageReturned + +`func (o *ModelsQueryModelsPagedAgentBlueprintQuery) GetPageReturned() int32` + +GetPageReturned returns the PageReturned field if non-nil, zero value otherwise. + +### GetPageReturnedOk + +`func (o *ModelsQueryModelsPagedAgentBlueprintQuery) GetPageReturnedOk() (*int32, bool)` + +GetPageReturnedOk returns a tuple with the PageReturned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageReturned + +`func (o *ModelsQueryModelsPagedAgentBlueprintQuery) SetPageReturned(v int32)` + +SetPageReturned sets PageReturned field to given value. + +### HasPageReturned + +`func (o *ModelsQueryModelsPagedAgentBlueprintQuery) HasPageReturned() bool` + +HasPageReturned returns a boolean if a field has been set. + +### GetSkipCount + +`func (o *ModelsQueryModelsPagedAgentBlueprintQuery) GetSkipCount() int32` + +GetSkipCount returns the SkipCount field if non-nil, zero value otherwise. + +### GetSkipCountOk + +`func (o *ModelsQueryModelsPagedAgentBlueprintQuery) GetSkipCountOk() (*int32, bool)` + +GetSkipCountOk returns a tuple with the SkipCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSkipCount + +`func (o *ModelsQueryModelsPagedAgentBlueprintQuery) SetSkipCount(v int32)` + +SetSkipCount sets SkipCount field to given value. + +### HasSkipCount + +`func (o *ModelsQueryModelsPagedAgentBlueprintQuery) HasSkipCount() bool` + +HasSkipCount returns a boolean if a field has been set. + +### GetReturnLimit + +`func (o *ModelsQueryModelsPagedAgentBlueprintQuery) GetReturnLimit() int32` + +GetReturnLimit returns the ReturnLimit field if non-nil, zero value otherwise. + +### GetReturnLimitOk + +`func (o *ModelsQueryModelsPagedAgentBlueprintQuery) GetReturnLimitOk() (*int32, bool)` + +GetReturnLimitOk returns a tuple with the ReturnLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReturnLimit + +`func (o *ModelsQueryModelsPagedAgentBlueprintQuery) SetReturnLimit(v int32)` + +SetReturnLimit sets ReturnLimit field to given value. + +### HasReturnLimit + +`func (o *ModelsQueryModelsPagedAgentBlueprintQuery) HasReturnLimit() bool` + +HasReturnLimit returns a boolean if a field has been set. + +### GetSortField + +`func (o *ModelsQueryModelsPagedAgentBlueprintQuery) GetSortField() string` + +GetSortField returns the SortField field if non-nil, zero value otherwise. + +### GetSortFieldOk + +`func (o *ModelsQueryModelsPagedAgentBlueprintQuery) GetSortFieldOk() (*string, bool)` + +GetSortFieldOk returns a tuple with the SortField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortField + +`func (o *ModelsQueryModelsPagedAgentBlueprintQuery) SetSortField(v string)` + +SetSortField sets SortField field to given value. + +### HasSortField + +`func (o *ModelsQueryModelsPagedAgentBlueprintQuery) HasSortField() bool` + +HasSortField returns a boolean if a field has been set. + +### GetSortAscending + +`func (o *ModelsQueryModelsPagedAgentBlueprintQuery) GetSortAscending() int32` + +GetSortAscending returns the SortAscending field if non-nil, zero value otherwise. + +### GetSortAscendingOk + +`func (o *ModelsQueryModelsPagedAgentBlueprintQuery) GetSortAscendingOk() (*int32, bool)` + +GetSortAscendingOk returns a tuple with the SortAscending field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortAscending + +`func (o *ModelsQueryModelsPagedAgentBlueprintQuery) SetSortAscending(v int32)` + +SetSortAscending sets SortAscending field to given value. + +### HasSortAscending + +`func (o *ModelsQueryModelsPagedAgentBlueprintQuery) HasSortAscending() bool` + +HasSortAscending returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsQueryModelsPagedAgentBlueprintStoresQuery.md b/v1/docs/ModelsQueryModelsPagedAgentBlueprintStoresQuery.md new file mode 100644 index 0000000..c9f0395 --- /dev/null +++ b/v1/docs/ModelsQueryModelsPagedAgentBlueprintStoresQuery.md @@ -0,0 +1,160 @@ +# ModelsQueryModelsPagedAgentBlueprintStoresQuery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PageReturned** | Pointer to **int32** | The current page within the result set to be returned | [optional] +**SkipCount** | Pointer to **int32** | Number of records to be skipped before inclusion in the result set | [optional] [readonly] +**ReturnLimit** | Pointer to **int32** | Maximum number of records to be returned in a single call | [optional] +**SortField** | Pointer to **string** | Field by which the results should be sorted (OperationStart, OperationEnd, UserName) | [optional] +**SortAscending** | Pointer to **int32** | Field sort direction [0=ascending, 1=descending] | [optional] + +## Methods + +### NewModelsQueryModelsPagedAgentBlueprintStoresQuery + +`func NewModelsQueryModelsPagedAgentBlueprintStoresQuery() *ModelsQueryModelsPagedAgentBlueprintStoresQuery` + +NewModelsQueryModelsPagedAgentBlueprintStoresQuery instantiates a new ModelsQueryModelsPagedAgentBlueprintStoresQuery object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsQueryModelsPagedAgentBlueprintStoresQueryWithDefaults + +`func NewModelsQueryModelsPagedAgentBlueprintStoresQueryWithDefaults() *ModelsQueryModelsPagedAgentBlueprintStoresQuery` + +NewModelsQueryModelsPagedAgentBlueprintStoresQueryWithDefaults instantiates a new ModelsQueryModelsPagedAgentBlueprintStoresQuery object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPageReturned + +`func (o *ModelsQueryModelsPagedAgentBlueprintStoresQuery) GetPageReturned() int32` + +GetPageReturned returns the PageReturned field if non-nil, zero value otherwise. + +### GetPageReturnedOk + +`func (o *ModelsQueryModelsPagedAgentBlueprintStoresQuery) GetPageReturnedOk() (*int32, bool)` + +GetPageReturnedOk returns a tuple with the PageReturned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageReturned + +`func (o *ModelsQueryModelsPagedAgentBlueprintStoresQuery) SetPageReturned(v int32)` + +SetPageReturned sets PageReturned field to given value. + +### HasPageReturned + +`func (o *ModelsQueryModelsPagedAgentBlueprintStoresQuery) HasPageReturned() bool` + +HasPageReturned returns a boolean if a field has been set. + +### GetSkipCount + +`func (o *ModelsQueryModelsPagedAgentBlueprintStoresQuery) GetSkipCount() int32` + +GetSkipCount returns the SkipCount field if non-nil, zero value otherwise. + +### GetSkipCountOk + +`func (o *ModelsQueryModelsPagedAgentBlueprintStoresQuery) GetSkipCountOk() (*int32, bool)` + +GetSkipCountOk returns a tuple with the SkipCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSkipCount + +`func (o *ModelsQueryModelsPagedAgentBlueprintStoresQuery) SetSkipCount(v int32)` + +SetSkipCount sets SkipCount field to given value. + +### HasSkipCount + +`func (o *ModelsQueryModelsPagedAgentBlueprintStoresQuery) HasSkipCount() bool` + +HasSkipCount returns a boolean if a field has been set. + +### GetReturnLimit + +`func (o *ModelsQueryModelsPagedAgentBlueprintStoresQuery) GetReturnLimit() int32` + +GetReturnLimit returns the ReturnLimit field if non-nil, zero value otherwise. + +### GetReturnLimitOk + +`func (o *ModelsQueryModelsPagedAgentBlueprintStoresQuery) GetReturnLimitOk() (*int32, bool)` + +GetReturnLimitOk returns a tuple with the ReturnLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReturnLimit + +`func (o *ModelsQueryModelsPagedAgentBlueprintStoresQuery) SetReturnLimit(v int32)` + +SetReturnLimit sets ReturnLimit field to given value. + +### HasReturnLimit + +`func (o *ModelsQueryModelsPagedAgentBlueprintStoresQuery) HasReturnLimit() bool` + +HasReturnLimit returns a boolean if a field has been set. + +### GetSortField + +`func (o *ModelsQueryModelsPagedAgentBlueprintStoresQuery) GetSortField() string` + +GetSortField returns the SortField field if non-nil, zero value otherwise. + +### GetSortFieldOk + +`func (o *ModelsQueryModelsPagedAgentBlueprintStoresQuery) GetSortFieldOk() (*string, bool)` + +GetSortFieldOk returns a tuple with the SortField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortField + +`func (o *ModelsQueryModelsPagedAgentBlueprintStoresQuery) SetSortField(v string)` + +SetSortField sets SortField field to given value. + +### HasSortField + +`func (o *ModelsQueryModelsPagedAgentBlueprintStoresQuery) HasSortField() bool` + +HasSortField returns a boolean if a field has been set. + +### GetSortAscending + +`func (o *ModelsQueryModelsPagedAgentBlueprintStoresQuery) GetSortAscending() int32` + +GetSortAscending returns the SortAscending field if non-nil, zero value otherwise. + +### GetSortAscendingOk + +`func (o *ModelsQueryModelsPagedAgentBlueprintStoresQuery) GetSortAscendingOk() (*int32, bool)` + +GetSortAscendingOk returns a tuple with the SortAscending field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortAscending + +`func (o *ModelsQueryModelsPagedAgentBlueprintStoresQuery) SetSortAscending(v int32)` + +SetSortAscending sets SortAscending field to given value. + +### HasSortAscending + +`func (o *ModelsQueryModelsPagedAgentBlueprintStoresQuery) HasSortAscending() bool` + +HasSortAscending returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsQueryModelsPagedAgentJobHistoryQuery.md b/v1/docs/ModelsQueryModelsPagedAgentJobHistoryQuery.md new file mode 100644 index 0000000..2d1bdf5 --- /dev/null +++ b/v1/docs/ModelsQueryModelsPagedAgentJobHistoryQuery.md @@ -0,0 +1,160 @@ +# ModelsQueryModelsPagedAgentJobHistoryQuery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**QueryString** | Pointer to **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | [optional] +**PageReturned** | Pointer to **int32** | The current page within the result set to be returned | [optional] +**ReturnLimit** | Pointer to **int32** | Maximum number of records to be returned in a single call | [optional] +**SortField** | Pointer to **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | [optional] +**SortAscending** | Pointer to **int32** | Field sort direction [0=ascending, 1=descending] | [optional] + +## Methods + +### NewModelsQueryModelsPagedAgentJobHistoryQuery + +`func NewModelsQueryModelsPagedAgentJobHistoryQuery() *ModelsQueryModelsPagedAgentJobHistoryQuery` + +NewModelsQueryModelsPagedAgentJobHistoryQuery instantiates a new ModelsQueryModelsPagedAgentJobHistoryQuery object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsQueryModelsPagedAgentJobHistoryQueryWithDefaults + +`func NewModelsQueryModelsPagedAgentJobHistoryQueryWithDefaults() *ModelsQueryModelsPagedAgentJobHistoryQuery` + +NewModelsQueryModelsPagedAgentJobHistoryQueryWithDefaults instantiates a new ModelsQueryModelsPagedAgentJobHistoryQuery object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetQueryString + +`func (o *ModelsQueryModelsPagedAgentJobHistoryQuery) GetQueryString() string` + +GetQueryString returns the QueryString field if non-nil, zero value otherwise. + +### GetQueryStringOk + +`func (o *ModelsQueryModelsPagedAgentJobHistoryQuery) GetQueryStringOk() (*string, bool)` + +GetQueryStringOk returns a tuple with the QueryString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQueryString + +`func (o *ModelsQueryModelsPagedAgentJobHistoryQuery) SetQueryString(v string)` + +SetQueryString sets QueryString field to given value. + +### HasQueryString + +`func (o *ModelsQueryModelsPagedAgentJobHistoryQuery) HasQueryString() bool` + +HasQueryString returns a boolean if a field has been set. + +### GetPageReturned + +`func (o *ModelsQueryModelsPagedAgentJobHistoryQuery) GetPageReturned() int32` + +GetPageReturned returns the PageReturned field if non-nil, zero value otherwise. + +### GetPageReturnedOk + +`func (o *ModelsQueryModelsPagedAgentJobHistoryQuery) GetPageReturnedOk() (*int32, bool)` + +GetPageReturnedOk returns a tuple with the PageReturned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageReturned + +`func (o *ModelsQueryModelsPagedAgentJobHistoryQuery) SetPageReturned(v int32)` + +SetPageReturned sets PageReturned field to given value. + +### HasPageReturned + +`func (o *ModelsQueryModelsPagedAgentJobHistoryQuery) HasPageReturned() bool` + +HasPageReturned returns a boolean if a field has been set. + +### GetReturnLimit + +`func (o *ModelsQueryModelsPagedAgentJobHistoryQuery) GetReturnLimit() int32` + +GetReturnLimit returns the ReturnLimit field if non-nil, zero value otherwise. + +### GetReturnLimitOk + +`func (o *ModelsQueryModelsPagedAgentJobHistoryQuery) GetReturnLimitOk() (*int32, bool)` + +GetReturnLimitOk returns a tuple with the ReturnLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReturnLimit + +`func (o *ModelsQueryModelsPagedAgentJobHistoryQuery) SetReturnLimit(v int32)` + +SetReturnLimit sets ReturnLimit field to given value. + +### HasReturnLimit + +`func (o *ModelsQueryModelsPagedAgentJobHistoryQuery) HasReturnLimit() bool` + +HasReturnLimit returns a boolean if a field has been set. + +### GetSortField + +`func (o *ModelsQueryModelsPagedAgentJobHistoryQuery) GetSortField() string` + +GetSortField returns the SortField field if non-nil, zero value otherwise. + +### GetSortFieldOk + +`func (o *ModelsQueryModelsPagedAgentJobHistoryQuery) GetSortFieldOk() (*string, bool)` + +GetSortFieldOk returns a tuple with the SortField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortField + +`func (o *ModelsQueryModelsPagedAgentJobHistoryQuery) SetSortField(v string)` + +SetSortField sets SortField field to given value. + +### HasSortField + +`func (o *ModelsQueryModelsPagedAgentJobHistoryQuery) HasSortField() bool` + +HasSortField returns a boolean if a field has been set. + +### GetSortAscending + +`func (o *ModelsQueryModelsPagedAgentJobHistoryQuery) GetSortAscending() int32` + +GetSortAscending returns the SortAscending field if non-nil, zero value otherwise. + +### GetSortAscendingOk + +`func (o *ModelsQueryModelsPagedAgentJobHistoryQuery) GetSortAscendingOk() (*int32, bool)` + +GetSortAscendingOk returns a tuple with the SortAscending field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortAscending + +`func (o *ModelsQueryModelsPagedAgentJobHistoryQuery) SetSortAscending(v int32)` + +SetSortAscending sets SortAscending field to given value. + +### HasSortAscending + +`func (o *ModelsQueryModelsPagedAgentJobHistoryQuery) HasSortAscending() bool` + +HasSortAscending returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsQueryModelsPagedAgentJobQuery.md b/v1/docs/ModelsQueryModelsPagedAgentJobQuery.md new file mode 100644 index 0000000..862612b --- /dev/null +++ b/v1/docs/ModelsQueryModelsPagedAgentJobQuery.md @@ -0,0 +1,160 @@ +# ModelsQueryModelsPagedAgentJobQuery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**QueryString** | Pointer to **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | [optional] +**PageReturned** | Pointer to **int32** | The current page within the result set to be returned | [optional] +**ReturnLimit** | Pointer to **int32** | Maximum number of records to be returned in a single call | [optional] +**SortField** | Pointer to **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | [optional] +**SortAscending** | Pointer to **int32** | Field sort direction [0=ascending, 1=descending] | [optional] + +## Methods + +### NewModelsQueryModelsPagedAgentJobQuery + +`func NewModelsQueryModelsPagedAgentJobQuery() *ModelsQueryModelsPagedAgentJobQuery` + +NewModelsQueryModelsPagedAgentJobQuery instantiates a new ModelsQueryModelsPagedAgentJobQuery object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsQueryModelsPagedAgentJobQueryWithDefaults + +`func NewModelsQueryModelsPagedAgentJobQueryWithDefaults() *ModelsQueryModelsPagedAgentJobQuery` + +NewModelsQueryModelsPagedAgentJobQueryWithDefaults instantiates a new ModelsQueryModelsPagedAgentJobQuery object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetQueryString + +`func (o *ModelsQueryModelsPagedAgentJobQuery) GetQueryString() string` + +GetQueryString returns the QueryString field if non-nil, zero value otherwise. + +### GetQueryStringOk + +`func (o *ModelsQueryModelsPagedAgentJobQuery) GetQueryStringOk() (*string, bool)` + +GetQueryStringOk returns a tuple with the QueryString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQueryString + +`func (o *ModelsQueryModelsPagedAgentJobQuery) SetQueryString(v string)` + +SetQueryString sets QueryString field to given value. + +### HasQueryString + +`func (o *ModelsQueryModelsPagedAgentJobQuery) HasQueryString() bool` + +HasQueryString returns a boolean if a field has been set. + +### GetPageReturned + +`func (o *ModelsQueryModelsPagedAgentJobQuery) GetPageReturned() int32` + +GetPageReturned returns the PageReturned field if non-nil, zero value otherwise. + +### GetPageReturnedOk + +`func (o *ModelsQueryModelsPagedAgentJobQuery) GetPageReturnedOk() (*int32, bool)` + +GetPageReturnedOk returns a tuple with the PageReturned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageReturned + +`func (o *ModelsQueryModelsPagedAgentJobQuery) SetPageReturned(v int32)` + +SetPageReturned sets PageReturned field to given value. + +### HasPageReturned + +`func (o *ModelsQueryModelsPagedAgentJobQuery) HasPageReturned() bool` + +HasPageReturned returns a boolean if a field has been set. + +### GetReturnLimit + +`func (o *ModelsQueryModelsPagedAgentJobQuery) GetReturnLimit() int32` + +GetReturnLimit returns the ReturnLimit field if non-nil, zero value otherwise. + +### GetReturnLimitOk + +`func (o *ModelsQueryModelsPagedAgentJobQuery) GetReturnLimitOk() (*int32, bool)` + +GetReturnLimitOk returns a tuple with the ReturnLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReturnLimit + +`func (o *ModelsQueryModelsPagedAgentJobQuery) SetReturnLimit(v int32)` + +SetReturnLimit sets ReturnLimit field to given value. + +### HasReturnLimit + +`func (o *ModelsQueryModelsPagedAgentJobQuery) HasReturnLimit() bool` + +HasReturnLimit returns a boolean if a field has been set. + +### GetSortField + +`func (o *ModelsQueryModelsPagedAgentJobQuery) GetSortField() string` + +GetSortField returns the SortField field if non-nil, zero value otherwise. + +### GetSortFieldOk + +`func (o *ModelsQueryModelsPagedAgentJobQuery) GetSortFieldOk() (*string, bool)` + +GetSortFieldOk returns a tuple with the SortField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortField + +`func (o *ModelsQueryModelsPagedAgentJobQuery) SetSortField(v string)` + +SetSortField sets SortField field to given value. + +### HasSortField + +`func (o *ModelsQueryModelsPagedAgentJobQuery) HasSortField() bool` + +HasSortField returns a boolean if a field has been set. + +### GetSortAscending + +`func (o *ModelsQueryModelsPagedAgentJobQuery) GetSortAscending() int32` + +GetSortAscending returns the SortAscending field if non-nil, zero value otherwise. + +### GetSortAscendingOk + +`func (o *ModelsQueryModelsPagedAgentJobQuery) GetSortAscendingOk() (*int32, bool)` + +GetSortAscendingOk returns a tuple with the SortAscending field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortAscending + +`func (o *ModelsQueryModelsPagedAgentJobQuery) SetSortAscending(v int32)` + +SetSortAscending sets SortAscending field to given value. + +### HasSortAscending + +`func (o *ModelsQueryModelsPagedAgentJobQuery) HasSortAscending() bool` + +HasSortAscending returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsQueryModelsPagedAgentPoolAgentsQuery.md b/v1/docs/ModelsQueryModelsPagedAgentPoolAgentsQuery.md new file mode 100644 index 0000000..fcfb1f3 --- /dev/null +++ b/v1/docs/ModelsQueryModelsPagedAgentPoolAgentsQuery.md @@ -0,0 +1,160 @@ +# ModelsQueryModelsPagedAgentPoolAgentsQuery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**QueryString** | Pointer to **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | [optional] +**PageReturned** | Pointer to **int32** | The current page within the result set to be returned | [optional] +**ReturnLimit** | Pointer to **int32** | Maximum number of records to be returned in a single call | [optional] +**SortField** | Pointer to **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | [optional] +**SortAscending** | Pointer to **int32** | Field sort direction [0=ascending, 1=descending] | [optional] + +## Methods + +### NewModelsQueryModelsPagedAgentPoolAgentsQuery + +`func NewModelsQueryModelsPagedAgentPoolAgentsQuery() *ModelsQueryModelsPagedAgentPoolAgentsQuery` + +NewModelsQueryModelsPagedAgentPoolAgentsQuery instantiates a new ModelsQueryModelsPagedAgentPoolAgentsQuery object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsQueryModelsPagedAgentPoolAgentsQueryWithDefaults + +`func NewModelsQueryModelsPagedAgentPoolAgentsQueryWithDefaults() *ModelsQueryModelsPagedAgentPoolAgentsQuery` + +NewModelsQueryModelsPagedAgentPoolAgentsQueryWithDefaults instantiates a new ModelsQueryModelsPagedAgentPoolAgentsQuery object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetQueryString + +`func (o *ModelsQueryModelsPagedAgentPoolAgentsQuery) GetQueryString() string` + +GetQueryString returns the QueryString field if non-nil, zero value otherwise. + +### GetQueryStringOk + +`func (o *ModelsQueryModelsPagedAgentPoolAgentsQuery) GetQueryStringOk() (*string, bool)` + +GetQueryStringOk returns a tuple with the QueryString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQueryString + +`func (o *ModelsQueryModelsPagedAgentPoolAgentsQuery) SetQueryString(v string)` + +SetQueryString sets QueryString field to given value. + +### HasQueryString + +`func (o *ModelsQueryModelsPagedAgentPoolAgentsQuery) HasQueryString() bool` + +HasQueryString returns a boolean if a field has been set. + +### GetPageReturned + +`func (o *ModelsQueryModelsPagedAgentPoolAgentsQuery) GetPageReturned() int32` + +GetPageReturned returns the PageReturned field if non-nil, zero value otherwise. + +### GetPageReturnedOk + +`func (o *ModelsQueryModelsPagedAgentPoolAgentsQuery) GetPageReturnedOk() (*int32, bool)` + +GetPageReturnedOk returns a tuple with the PageReturned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageReturned + +`func (o *ModelsQueryModelsPagedAgentPoolAgentsQuery) SetPageReturned(v int32)` + +SetPageReturned sets PageReturned field to given value. + +### HasPageReturned + +`func (o *ModelsQueryModelsPagedAgentPoolAgentsQuery) HasPageReturned() bool` + +HasPageReturned returns a boolean if a field has been set. + +### GetReturnLimit + +`func (o *ModelsQueryModelsPagedAgentPoolAgentsQuery) GetReturnLimit() int32` + +GetReturnLimit returns the ReturnLimit field if non-nil, zero value otherwise. + +### GetReturnLimitOk + +`func (o *ModelsQueryModelsPagedAgentPoolAgentsQuery) GetReturnLimitOk() (*int32, bool)` + +GetReturnLimitOk returns a tuple with the ReturnLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReturnLimit + +`func (o *ModelsQueryModelsPagedAgentPoolAgentsQuery) SetReturnLimit(v int32)` + +SetReturnLimit sets ReturnLimit field to given value. + +### HasReturnLimit + +`func (o *ModelsQueryModelsPagedAgentPoolAgentsQuery) HasReturnLimit() bool` + +HasReturnLimit returns a boolean if a field has been set. + +### GetSortField + +`func (o *ModelsQueryModelsPagedAgentPoolAgentsQuery) GetSortField() string` + +GetSortField returns the SortField field if non-nil, zero value otherwise. + +### GetSortFieldOk + +`func (o *ModelsQueryModelsPagedAgentPoolAgentsQuery) GetSortFieldOk() (*string, bool)` + +GetSortFieldOk returns a tuple with the SortField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortField + +`func (o *ModelsQueryModelsPagedAgentPoolAgentsQuery) SetSortField(v string)` + +SetSortField sets SortField field to given value. + +### HasSortField + +`func (o *ModelsQueryModelsPagedAgentPoolAgentsQuery) HasSortField() bool` + +HasSortField returns a boolean if a field has been set. + +### GetSortAscending + +`func (o *ModelsQueryModelsPagedAgentPoolAgentsQuery) GetSortAscending() int32` + +GetSortAscending returns the SortAscending field if non-nil, zero value otherwise. + +### GetSortAscendingOk + +`func (o *ModelsQueryModelsPagedAgentPoolAgentsQuery) GetSortAscendingOk() (*int32, bool)` + +GetSortAscendingOk returns a tuple with the SortAscending field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortAscending + +`func (o *ModelsQueryModelsPagedAgentPoolAgentsQuery) SetSortAscending(v int32)` + +SetSortAscending sets SortAscending field to given value. + +### HasSortAscending + +`func (o *ModelsQueryModelsPagedAgentPoolAgentsQuery) HasSortAscending() bool` + +HasSortAscending returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsQueryModelsPagedAgentPoolQuery.md b/v1/docs/ModelsQueryModelsPagedAgentPoolQuery.md new file mode 100644 index 0000000..27bc26e --- /dev/null +++ b/v1/docs/ModelsQueryModelsPagedAgentPoolQuery.md @@ -0,0 +1,160 @@ +# ModelsQueryModelsPagedAgentPoolQuery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**QueryString** | Pointer to **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | [optional] +**PageReturned** | Pointer to **int32** | The current page within the result set to be returned | [optional] +**ReturnLimit** | Pointer to **int32** | Maximum number of records to be returned in a single call | [optional] +**SortField** | Pointer to **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | [optional] +**SortAscending** | Pointer to **int32** | Field sort direction [0=ascending, 1=descending] | [optional] + +## Methods + +### NewModelsQueryModelsPagedAgentPoolQuery + +`func NewModelsQueryModelsPagedAgentPoolQuery() *ModelsQueryModelsPagedAgentPoolQuery` + +NewModelsQueryModelsPagedAgentPoolQuery instantiates a new ModelsQueryModelsPagedAgentPoolQuery object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsQueryModelsPagedAgentPoolQueryWithDefaults + +`func NewModelsQueryModelsPagedAgentPoolQueryWithDefaults() *ModelsQueryModelsPagedAgentPoolQuery` + +NewModelsQueryModelsPagedAgentPoolQueryWithDefaults instantiates a new ModelsQueryModelsPagedAgentPoolQuery object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetQueryString + +`func (o *ModelsQueryModelsPagedAgentPoolQuery) GetQueryString() string` + +GetQueryString returns the QueryString field if non-nil, zero value otherwise. + +### GetQueryStringOk + +`func (o *ModelsQueryModelsPagedAgentPoolQuery) GetQueryStringOk() (*string, bool)` + +GetQueryStringOk returns a tuple with the QueryString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQueryString + +`func (o *ModelsQueryModelsPagedAgentPoolQuery) SetQueryString(v string)` + +SetQueryString sets QueryString field to given value. + +### HasQueryString + +`func (o *ModelsQueryModelsPagedAgentPoolQuery) HasQueryString() bool` + +HasQueryString returns a boolean if a field has been set. + +### GetPageReturned + +`func (o *ModelsQueryModelsPagedAgentPoolQuery) GetPageReturned() int32` + +GetPageReturned returns the PageReturned field if non-nil, zero value otherwise. + +### GetPageReturnedOk + +`func (o *ModelsQueryModelsPagedAgentPoolQuery) GetPageReturnedOk() (*int32, bool)` + +GetPageReturnedOk returns a tuple with the PageReturned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageReturned + +`func (o *ModelsQueryModelsPagedAgentPoolQuery) SetPageReturned(v int32)` + +SetPageReturned sets PageReturned field to given value. + +### HasPageReturned + +`func (o *ModelsQueryModelsPagedAgentPoolQuery) HasPageReturned() bool` + +HasPageReturned returns a boolean if a field has been set. + +### GetReturnLimit + +`func (o *ModelsQueryModelsPagedAgentPoolQuery) GetReturnLimit() int32` + +GetReturnLimit returns the ReturnLimit field if non-nil, zero value otherwise. + +### GetReturnLimitOk + +`func (o *ModelsQueryModelsPagedAgentPoolQuery) GetReturnLimitOk() (*int32, bool)` + +GetReturnLimitOk returns a tuple with the ReturnLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReturnLimit + +`func (o *ModelsQueryModelsPagedAgentPoolQuery) SetReturnLimit(v int32)` + +SetReturnLimit sets ReturnLimit field to given value. + +### HasReturnLimit + +`func (o *ModelsQueryModelsPagedAgentPoolQuery) HasReturnLimit() bool` + +HasReturnLimit returns a boolean if a field has been set. + +### GetSortField + +`func (o *ModelsQueryModelsPagedAgentPoolQuery) GetSortField() string` + +GetSortField returns the SortField field if non-nil, zero value otherwise. + +### GetSortFieldOk + +`func (o *ModelsQueryModelsPagedAgentPoolQuery) GetSortFieldOk() (*string, bool)` + +GetSortFieldOk returns a tuple with the SortField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortField + +`func (o *ModelsQueryModelsPagedAgentPoolQuery) SetSortField(v string)` + +SetSortField sets SortField field to given value. + +### HasSortField + +`func (o *ModelsQueryModelsPagedAgentPoolQuery) HasSortField() bool` + +HasSortField returns a boolean if a field has been set. + +### GetSortAscending + +`func (o *ModelsQueryModelsPagedAgentPoolQuery) GetSortAscending() int32` + +GetSortAscending returns the SortAscending field if non-nil, zero value otherwise. + +### GetSortAscendingOk + +`func (o *ModelsQueryModelsPagedAgentPoolQuery) GetSortAscendingOk() (*int32, bool)` + +GetSortAscendingOk returns a tuple with the SortAscending field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortAscending + +`func (o *ModelsQueryModelsPagedAgentPoolQuery) SetSortAscending(v int32)` + +SetSortAscending sets SortAscending field to given value. + +### HasSortAscending + +`func (o *ModelsQueryModelsPagedAgentPoolQuery) HasSortAscending() bool` + +HasSortAscending returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsQueryModelsPagedAgentQuery.md b/v1/docs/ModelsQueryModelsPagedAgentQuery.md new file mode 100644 index 0000000..67a96cb --- /dev/null +++ b/v1/docs/ModelsQueryModelsPagedAgentQuery.md @@ -0,0 +1,160 @@ +# ModelsQueryModelsPagedAgentQuery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**QueryString** | Pointer to **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | [optional] +**PageReturned** | Pointer to **int32** | The current page within the result set to be returned | [optional] +**ReturnLimit** | Pointer to **int32** | Maximum number of records to be returned in a single call | [optional] +**SortField** | Pointer to **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | [optional] +**SortAscending** | Pointer to **int32** | Field sort direction [0=ascending, 1=descending] | [optional] + +## Methods + +### NewModelsQueryModelsPagedAgentQuery + +`func NewModelsQueryModelsPagedAgentQuery() *ModelsQueryModelsPagedAgentQuery` + +NewModelsQueryModelsPagedAgentQuery instantiates a new ModelsQueryModelsPagedAgentQuery object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsQueryModelsPagedAgentQueryWithDefaults + +`func NewModelsQueryModelsPagedAgentQueryWithDefaults() *ModelsQueryModelsPagedAgentQuery` + +NewModelsQueryModelsPagedAgentQueryWithDefaults instantiates a new ModelsQueryModelsPagedAgentQuery object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetQueryString + +`func (o *ModelsQueryModelsPagedAgentQuery) GetQueryString() string` + +GetQueryString returns the QueryString field if non-nil, zero value otherwise. + +### GetQueryStringOk + +`func (o *ModelsQueryModelsPagedAgentQuery) GetQueryStringOk() (*string, bool)` + +GetQueryStringOk returns a tuple with the QueryString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQueryString + +`func (o *ModelsQueryModelsPagedAgentQuery) SetQueryString(v string)` + +SetQueryString sets QueryString field to given value. + +### HasQueryString + +`func (o *ModelsQueryModelsPagedAgentQuery) HasQueryString() bool` + +HasQueryString returns a boolean if a field has been set. + +### GetPageReturned + +`func (o *ModelsQueryModelsPagedAgentQuery) GetPageReturned() int32` + +GetPageReturned returns the PageReturned field if non-nil, zero value otherwise. + +### GetPageReturnedOk + +`func (o *ModelsQueryModelsPagedAgentQuery) GetPageReturnedOk() (*int32, bool)` + +GetPageReturnedOk returns a tuple with the PageReturned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageReturned + +`func (o *ModelsQueryModelsPagedAgentQuery) SetPageReturned(v int32)` + +SetPageReturned sets PageReturned field to given value. + +### HasPageReturned + +`func (o *ModelsQueryModelsPagedAgentQuery) HasPageReturned() bool` + +HasPageReturned returns a boolean if a field has been set. + +### GetReturnLimit + +`func (o *ModelsQueryModelsPagedAgentQuery) GetReturnLimit() int32` + +GetReturnLimit returns the ReturnLimit field if non-nil, zero value otherwise. + +### GetReturnLimitOk + +`func (o *ModelsQueryModelsPagedAgentQuery) GetReturnLimitOk() (*int32, bool)` + +GetReturnLimitOk returns a tuple with the ReturnLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReturnLimit + +`func (o *ModelsQueryModelsPagedAgentQuery) SetReturnLimit(v int32)` + +SetReturnLimit sets ReturnLimit field to given value. + +### HasReturnLimit + +`func (o *ModelsQueryModelsPagedAgentQuery) HasReturnLimit() bool` + +HasReturnLimit returns a boolean if a field has been set. + +### GetSortField + +`func (o *ModelsQueryModelsPagedAgentQuery) GetSortField() string` + +GetSortField returns the SortField field if non-nil, zero value otherwise. + +### GetSortFieldOk + +`func (o *ModelsQueryModelsPagedAgentQuery) GetSortFieldOk() (*string, bool)` + +GetSortFieldOk returns a tuple with the SortField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortField + +`func (o *ModelsQueryModelsPagedAgentQuery) SetSortField(v string)` + +SetSortField sets SortField field to given value. + +### HasSortField + +`func (o *ModelsQueryModelsPagedAgentQuery) HasSortField() bool` + +HasSortField returns a boolean if a field has been set. + +### GetSortAscending + +`func (o *ModelsQueryModelsPagedAgentQuery) GetSortAscending() int32` + +GetSortAscending returns the SortAscending field if non-nil, zero value otherwise. + +### GetSortAscendingOk + +`func (o *ModelsQueryModelsPagedAgentQuery) GetSortAscendingOk() (*int32, bool)` + +GetSortAscendingOk returns a tuple with the SortAscending field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortAscending + +`func (o *ModelsQueryModelsPagedAgentQuery) SetSortAscending(v int32)` + +SetSortAscending sets SortAscending field to given value. + +### HasSortAscending + +`func (o *ModelsQueryModelsPagedAgentQuery) HasSortAscending() bool` + +HasSortAscending returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsQueryModelsPagedAuditLogQuery.md b/v1/docs/ModelsQueryModelsPagedAuditLogQuery.md new file mode 100644 index 0000000..3d81e4c --- /dev/null +++ b/v1/docs/ModelsQueryModelsPagedAuditLogQuery.md @@ -0,0 +1,160 @@ +# ModelsQueryModelsPagedAuditLogQuery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**QueryString** | Pointer to **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | [optional] +**PageReturned** | Pointer to **int32** | The current page within the result set to be returned | [optional] +**ReturnLimit** | Pointer to **int32** | Maximum number of records to be returned in a single call | [optional] +**SortField** | Pointer to **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | [optional] +**SortAscending** | Pointer to **int32** | Field sort direction [0=ascending, 1=descending] | [optional] + +## Methods + +### NewModelsQueryModelsPagedAuditLogQuery + +`func NewModelsQueryModelsPagedAuditLogQuery() *ModelsQueryModelsPagedAuditLogQuery` + +NewModelsQueryModelsPagedAuditLogQuery instantiates a new ModelsQueryModelsPagedAuditLogQuery object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsQueryModelsPagedAuditLogQueryWithDefaults + +`func NewModelsQueryModelsPagedAuditLogQueryWithDefaults() *ModelsQueryModelsPagedAuditLogQuery` + +NewModelsQueryModelsPagedAuditLogQueryWithDefaults instantiates a new ModelsQueryModelsPagedAuditLogQuery object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetQueryString + +`func (o *ModelsQueryModelsPagedAuditLogQuery) GetQueryString() string` + +GetQueryString returns the QueryString field if non-nil, zero value otherwise. + +### GetQueryStringOk + +`func (o *ModelsQueryModelsPagedAuditLogQuery) GetQueryStringOk() (*string, bool)` + +GetQueryStringOk returns a tuple with the QueryString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQueryString + +`func (o *ModelsQueryModelsPagedAuditLogQuery) SetQueryString(v string)` + +SetQueryString sets QueryString field to given value. + +### HasQueryString + +`func (o *ModelsQueryModelsPagedAuditLogQuery) HasQueryString() bool` + +HasQueryString returns a boolean if a field has been set. + +### GetPageReturned + +`func (o *ModelsQueryModelsPagedAuditLogQuery) GetPageReturned() int32` + +GetPageReturned returns the PageReturned field if non-nil, zero value otherwise. + +### GetPageReturnedOk + +`func (o *ModelsQueryModelsPagedAuditLogQuery) GetPageReturnedOk() (*int32, bool)` + +GetPageReturnedOk returns a tuple with the PageReturned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageReturned + +`func (o *ModelsQueryModelsPagedAuditLogQuery) SetPageReturned(v int32)` + +SetPageReturned sets PageReturned field to given value. + +### HasPageReturned + +`func (o *ModelsQueryModelsPagedAuditLogQuery) HasPageReturned() bool` + +HasPageReturned returns a boolean if a field has been set. + +### GetReturnLimit + +`func (o *ModelsQueryModelsPagedAuditLogQuery) GetReturnLimit() int32` + +GetReturnLimit returns the ReturnLimit field if non-nil, zero value otherwise. + +### GetReturnLimitOk + +`func (o *ModelsQueryModelsPagedAuditLogQuery) GetReturnLimitOk() (*int32, bool)` + +GetReturnLimitOk returns a tuple with the ReturnLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReturnLimit + +`func (o *ModelsQueryModelsPagedAuditLogQuery) SetReturnLimit(v int32)` + +SetReturnLimit sets ReturnLimit field to given value. + +### HasReturnLimit + +`func (o *ModelsQueryModelsPagedAuditLogQuery) HasReturnLimit() bool` + +HasReturnLimit returns a boolean if a field has been set. + +### GetSortField + +`func (o *ModelsQueryModelsPagedAuditLogQuery) GetSortField() string` + +GetSortField returns the SortField field if non-nil, zero value otherwise. + +### GetSortFieldOk + +`func (o *ModelsQueryModelsPagedAuditLogQuery) GetSortFieldOk() (*string, bool)` + +GetSortFieldOk returns a tuple with the SortField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortField + +`func (o *ModelsQueryModelsPagedAuditLogQuery) SetSortField(v string)` + +SetSortField sets SortField field to given value. + +### HasSortField + +`func (o *ModelsQueryModelsPagedAuditLogQuery) HasSortField() bool` + +HasSortField returns a boolean if a field has been set. + +### GetSortAscending + +`func (o *ModelsQueryModelsPagedAuditLogQuery) GetSortAscending() int32` + +GetSortAscending returns the SortAscending field if non-nil, zero value otherwise. + +### GetSortAscendingOk + +`func (o *ModelsQueryModelsPagedAuditLogQuery) GetSortAscendingOk() (*int32, bool)` + +GetSortAscendingOk returns a tuple with the SortAscending field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortAscending + +`func (o *ModelsQueryModelsPagedAuditLogQuery) SetSortAscending(v int32)` + +SetSortAscending sets SortAscending field to given value. + +### HasSortAscending + +`func (o *ModelsQueryModelsPagedAuditLogQuery) HasSortAscending() bool` + +HasSortAscending returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsQueryModelsPagedCertificateAuthorityQuery.md b/v1/docs/ModelsQueryModelsPagedCertificateAuthorityQuery.md new file mode 100644 index 0000000..e5a6ca9 --- /dev/null +++ b/v1/docs/ModelsQueryModelsPagedCertificateAuthorityQuery.md @@ -0,0 +1,160 @@ +# ModelsQueryModelsPagedCertificateAuthorityQuery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**QueryString** | Pointer to **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | [optional] +**PageReturned** | Pointer to **int32** | The current page within the result set to be returned | [optional] +**ReturnLimit** | Pointer to **int32** | Maximum number of records to be returned in a single call | [optional] +**SortField** | Pointer to **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | [optional] +**SortAscending** | Pointer to **int32** | Field sort direction [0=ascending, 1=descending] | [optional] + +## Methods + +### NewModelsQueryModelsPagedCertificateAuthorityQuery + +`func NewModelsQueryModelsPagedCertificateAuthorityQuery() *ModelsQueryModelsPagedCertificateAuthorityQuery` + +NewModelsQueryModelsPagedCertificateAuthorityQuery instantiates a new ModelsQueryModelsPagedCertificateAuthorityQuery object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsQueryModelsPagedCertificateAuthorityQueryWithDefaults + +`func NewModelsQueryModelsPagedCertificateAuthorityQueryWithDefaults() *ModelsQueryModelsPagedCertificateAuthorityQuery` + +NewModelsQueryModelsPagedCertificateAuthorityQueryWithDefaults instantiates a new ModelsQueryModelsPagedCertificateAuthorityQuery object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetQueryString + +`func (o *ModelsQueryModelsPagedCertificateAuthorityQuery) GetQueryString() string` + +GetQueryString returns the QueryString field if non-nil, zero value otherwise. + +### GetQueryStringOk + +`func (o *ModelsQueryModelsPagedCertificateAuthorityQuery) GetQueryStringOk() (*string, bool)` + +GetQueryStringOk returns a tuple with the QueryString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQueryString + +`func (o *ModelsQueryModelsPagedCertificateAuthorityQuery) SetQueryString(v string)` + +SetQueryString sets QueryString field to given value. + +### HasQueryString + +`func (o *ModelsQueryModelsPagedCertificateAuthorityQuery) HasQueryString() bool` + +HasQueryString returns a boolean if a field has been set. + +### GetPageReturned + +`func (o *ModelsQueryModelsPagedCertificateAuthorityQuery) GetPageReturned() int32` + +GetPageReturned returns the PageReturned field if non-nil, zero value otherwise. + +### GetPageReturnedOk + +`func (o *ModelsQueryModelsPagedCertificateAuthorityQuery) GetPageReturnedOk() (*int32, bool)` + +GetPageReturnedOk returns a tuple with the PageReturned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageReturned + +`func (o *ModelsQueryModelsPagedCertificateAuthorityQuery) SetPageReturned(v int32)` + +SetPageReturned sets PageReturned field to given value. + +### HasPageReturned + +`func (o *ModelsQueryModelsPagedCertificateAuthorityQuery) HasPageReturned() bool` + +HasPageReturned returns a boolean if a field has been set. + +### GetReturnLimit + +`func (o *ModelsQueryModelsPagedCertificateAuthorityQuery) GetReturnLimit() int32` + +GetReturnLimit returns the ReturnLimit field if non-nil, zero value otherwise. + +### GetReturnLimitOk + +`func (o *ModelsQueryModelsPagedCertificateAuthorityQuery) GetReturnLimitOk() (*int32, bool)` + +GetReturnLimitOk returns a tuple with the ReturnLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReturnLimit + +`func (o *ModelsQueryModelsPagedCertificateAuthorityQuery) SetReturnLimit(v int32)` + +SetReturnLimit sets ReturnLimit field to given value. + +### HasReturnLimit + +`func (o *ModelsQueryModelsPagedCertificateAuthorityQuery) HasReturnLimit() bool` + +HasReturnLimit returns a boolean if a field has been set. + +### GetSortField + +`func (o *ModelsQueryModelsPagedCertificateAuthorityQuery) GetSortField() string` + +GetSortField returns the SortField field if non-nil, zero value otherwise. + +### GetSortFieldOk + +`func (o *ModelsQueryModelsPagedCertificateAuthorityQuery) GetSortFieldOk() (*string, bool)` + +GetSortFieldOk returns a tuple with the SortField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortField + +`func (o *ModelsQueryModelsPagedCertificateAuthorityQuery) SetSortField(v string)` + +SetSortField sets SortField field to given value. + +### HasSortField + +`func (o *ModelsQueryModelsPagedCertificateAuthorityQuery) HasSortField() bool` + +HasSortField returns a boolean if a field has been set. + +### GetSortAscending + +`func (o *ModelsQueryModelsPagedCertificateAuthorityQuery) GetSortAscending() int32` + +GetSortAscending returns the SortAscending field if non-nil, zero value otherwise. + +### GetSortAscendingOk + +`func (o *ModelsQueryModelsPagedCertificateAuthorityQuery) GetSortAscendingOk() (*int32, bool)` + +GetSortAscendingOk returns a tuple with the SortAscending field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortAscending + +`func (o *ModelsQueryModelsPagedCertificateAuthorityQuery) SetSortAscending(v int32)` + +SetSortAscending sets SortAscending field to given value. + +### HasSortAscending + +`func (o *ModelsQueryModelsPagedCertificateAuthorityQuery) HasSortAscending() bool` + +HasSortAscending returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsQueryModelsPagedCertificateHistoryQuery.md b/v1/docs/ModelsQueryModelsPagedCertificateHistoryQuery.md new file mode 100644 index 0000000..a6cc5e1 --- /dev/null +++ b/v1/docs/ModelsQueryModelsPagedCertificateHistoryQuery.md @@ -0,0 +1,134 @@ +# ModelsQueryModelsPagedCertificateHistoryQuery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PageReturned** | Pointer to **int32** | The current page within the result set to be returned | [optional] +**ReturnLimit** | Pointer to **int32** | Maximum number of records to be returned in a single call | [optional] +**SortField** | Pointer to **string** | Field by which the results should be sorted (OperationStart, OperationEnd, UserName) | [optional] +**SortAscending** | Pointer to **int32** | Field sort direction [0=ascending, 1=descending] | [optional] + +## Methods + +### NewModelsQueryModelsPagedCertificateHistoryQuery + +`func NewModelsQueryModelsPagedCertificateHistoryQuery() *ModelsQueryModelsPagedCertificateHistoryQuery` + +NewModelsQueryModelsPagedCertificateHistoryQuery instantiates a new ModelsQueryModelsPagedCertificateHistoryQuery object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsQueryModelsPagedCertificateHistoryQueryWithDefaults + +`func NewModelsQueryModelsPagedCertificateHistoryQueryWithDefaults() *ModelsQueryModelsPagedCertificateHistoryQuery` + +NewModelsQueryModelsPagedCertificateHistoryQueryWithDefaults instantiates a new ModelsQueryModelsPagedCertificateHistoryQuery object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPageReturned + +`func (o *ModelsQueryModelsPagedCertificateHistoryQuery) GetPageReturned() int32` + +GetPageReturned returns the PageReturned field if non-nil, zero value otherwise. + +### GetPageReturnedOk + +`func (o *ModelsQueryModelsPagedCertificateHistoryQuery) GetPageReturnedOk() (*int32, bool)` + +GetPageReturnedOk returns a tuple with the PageReturned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageReturned + +`func (o *ModelsQueryModelsPagedCertificateHistoryQuery) SetPageReturned(v int32)` + +SetPageReturned sets PageReturned field to given value. + +### HasPageReturned + +`func (o *ModelsQueryModelsPagedCertificateHistoryQuery) HasPageReturned() bool` + +HasPageReturned returns a boolean if a field has been set. + +### GetReturnLimit + +`func (o *ModelsQueryModelsPagedCertificateHistoryQuery) GetReturnLimit() int32` + +GetReturnLimit returns the ReturnLimit field if non-nil, zero value otherwise. + +### GetReturnLimitOk + +`func (o *ModelsQueryModelsPagedCertificateHistoryQuery) GetReturnLimitOk() (*int32, bool)` + +GetReturnLimitOk returns a tuple with the ReturnLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReturnLimit + +`func (o *ModelsQueryModelsPagedCertificateHistoryQuery) SetReturnLimit(v int32)` + +SetReturnLimit sets ReturnLimit field to given value. + +### HasReturnLimit + +`func (o *ModelsQueryModelsPagedCertificateHistoryQuery) HasReturnLimit() bool` + +HasReturnLimit returns a boolean if a field has been set. + +### GetSortField + +`func (o *ModelsQueryModelsPagedCertificateHistoryQuery) GetSortField() string` + +GetSortField returns the SortField field if non-nil, zero value otherwise. + +### GetSortFieldOk + +`func (o *ModelsQueryModelsPagedCertificateHistoryQuery) GetSortFieldOk() (*string, bool)` + +GetSortFieldOk returns a tuple with the SortField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortField + +`func (o *ModelsQueryModelsPagedCertificateHistoryQuery) SetSortField(v string)` + +SetSortField sets SortField field to given value. + +### HasSortField + +`func (o *ModelsQueryModelsPagedCertificateHistoryQuery) HasSortField() bool` + +HasSortField returns a boolean if a field has been set. + +### GetSortAscending + +`func (o *ModelsQueryModelsPagedCertificateHistoryQuery) GetSortAscending() int32` + +GetSortAscending returns the SortAscending field if non-nil, zero value otherwise. + +### GetSortAscendingOk + +`func (o *ModelsQueryModelsPagedCertificateHistoryQuery) GetSortAscendingOk() (*int32, bool)` + +GetSortAscendingOk returns a tuple with the SortAscending field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortAscending + +`func (o *ModelsQueryModelsPagedCertificateHistoryQuery) SetSortAscending(v int32)` + +SetSortAscending sets SortAscending field to given value. + +### HasSortAscending + +`func (o *ModelsQueryModelsPagedCertificateHistoryQuery) HasSortAscending() bool` + +HasSortAscending returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsQueryModelsPagedCertificateRequestQuery.md b/v1/docs/ModelsQueryModelsPagedCertificateRequestQuery.md new file mode 100644 index 0000000..da90ef4 --- /dev/null +++ b/v1/docs/ModelsQueryModelsPagedCertificateRequestQuery.md @@ -0,0 +1,160 @@ +# ModelsQueryModelsPagedCertificateRequestQuery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**QueryString** | Pointer to **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | [optional] +**PageReturned** | Pointer to **int32** | The current page within the result set to be returned | [optional] +**ReturnLimit** | Pointer to **int32** | Maximum number of records to be returned in a single call | [optional] +**SortField** | Pointer to **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | [optional] +**SortAscending** | Pointer to **int32** | Field sort direction [0=ascending, 1=descending] | [optional] + +## Methods + +### NewModelsQueryModelsPagedCertificateRequestQuery + +`func NewModelsQueryModelsPagedCertificateRequestQuery() *ModelsQueryModelsPagedCertificateRequestQuery` + +NewModelsQueryModelsPagedCertificateRequestQuery instantiates a new ModelsQueryModelsPagedCertificateRequestQuery object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsQueryModelsPagedCertificateRequestQueryWithDefaults + +`func NewModelsQueryModelsPagedCertificateRequestQueryWithDefaults() *ModelsQueryModelsPagedCertificateRequestQuery` + +NewModelsQueryModelsPagedCertificateRequestQueryWithDefaults instantiates a new ModelsQueryModelsPagedCertificateRequestQuery object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetQueryString + +`func (o *ModelsQueryModelsPagedCertificateRequestQuery) GetQueryString() string` + +GetQueryString returns the QueryString field if non-nil, zero value otherwise. + +### GetQueryStringOk + +`func (o *ModelsQueryModelsPagedCertificateRequestQuery) GetQueryStringOk() (*string, bool)` + +GetQueryStringOk returns a tuple with the QueryString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQueryString + +`func (o *ModelsQueryModelsPagedCertificateRequestQuery) SetQueryString(v string)` + +SetQueryString sets QueryString field to given value. + +### HasQueryString + +`func (o *ModelsQueryModelsPagedCertificateRequestQuery) HasQueryString() bool` + +HasQueryString returns a boolean if a field has been set. + +### GetPageReturned + +`func (o *ModelsQueryModelsPagedCertificateRequestQuery) GetPageReturned() int32` + +GetPageReturned returns the PageReturned field if non-nil, zero value otherwise. + +### GetPageReturnedOk + +`func (o *ModelsQueryModelsPagedCertificateRequestQuery) GetPageReturnedOk() (*int32, bool)` + +GetPageReturnedOk returns a tuple with the PageReturned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageReturned + +`func (o *ModelsQueryModelsPagedCertificateRequestQuery) SetPageReturned(v int32)` + +SetPageReturned sets PageReturned field to given value. + +### HasPageReturned + +`func (o *ModelsQueryModelsPagedCertificateRequestQuery) HasPageReturned() bool` + +HasPageReturned returns a boolean if a field has been set. + +### GetReturnLimit + +`func (o *ModelsQueryModelsPagedCertificateRequestQuery) GetReturnLimit() int32` + +GetReturnLimit returns the ReturnLimit field if non-nil, zero value otherwise. + +### GetReturnLimitOk + +`func (o *ModelsQueryModelsPagedCertificateRequestQuery) GetReturnLimitOk() (*int32, bool)` + +GetReturnLimitOk returns a tuple with the ReturnLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReturnLimit + +`func (o *ModelsQueryModelsPagedCertificateRequestQuery) SetReturnLimit(v int32)` + +SetReturnLimit sets ReturnLimit field to given value. + +### HasReturnLimit + +`func (o *ModelsQueryModelsPagedCertificateRequestQuery) HasReturnLimit() bool` + +HasReturnLimit returns a boolean if a field has been set. + +### GetSortField + +`func (o *ModelsQueryModelsPagedCertificateRequestQuery) GetSortField() string` + +GetSortField returns the SortField field if non-nil, zero value otherwise. + +### GetSortFieldOk + +`func (o *ModelsQueryModelsPagedCertificateRequestQuery) GetSortFieldOk() (*string, bool)` + +GetSortFieldOk returns a tuple with the SortField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortField + +`func (o *ModelsQueryModelsPagedCertificateRequestQuery) SetSortField(v string)` + +SetSortField sets SortField field to given value. + +### HasSortField + +`func (o *ModelsQueryModelsPagedCertificateRequestQuery) HasSortField() bool` + +HasSortField returns a boolean if a field has been set. + +### GetSortAscending + +`func (o *ModelsQueryModelsPagedCertificateRequestQuery) GetSortAscending() int32` + +GetSortAscending returns the SortAscending field if non-nil, zero value otherwise. + +### GetSortAscendingOk + +`func (o *ModelsQueryModelsPagedCertificateRequestQuery) GetSortAscendingOk() (*int32, bool)` + +GetSortAscendingOk returns a tuple with the SortAscending field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortAscending + +`func (o *ModelsQueryModelsPagedCertificateRequestQuery) SetSortAscending(v int32)` + +SetSortAscending sets SortAscending field to given value. + +### HasSortAscending + +`func (o *ModelsQueryModelsPagedCertificateRequestQuery) HasSortAscending() bool` + +HasSortAscending returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsQueryModelsPagedCertificateStoreContainerQuery.md b/v1/docs/ModelsQueryModelsPagedCertificateStoreContainerQuery.md new file mode 100644 index 0000000..931b8c9 --- /dev/null +++ b/v1/docs/ModelsQueryModelsPagedCertificateStoreContainerQuery.md @@ -0,0 +1,160 @@ +# ModelsQueryModelsPagedCertificateStoreContainerQuery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**QueryString** | Pointer to **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | [optional] +**PageReturned** | Pointer to **int32** | The current page within the result set to be returned | [optional] +**ReturnLimit** | Pointer to **int32** | Maximum number of records to be returned in a single call | [optional] +**SortField** | Pointer to **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | [optional] +**SortAscending** | Pointer to **int32** | Field sort direction [0=ascending, 1=descending] | [optional] + +## Methods + +### NewModelsQueryModelsPagedCertificateStoreContainerQuery + +`func NewModelsQueryModelsPagedCertificateStoreContainerQuery() *ModelsQueryModelsPagedCertificateStoreContainerQuery` + +NewModelsQueryModelsPagedCertificateStoreContainerQuery instantiates a new ModelsQueryModelsPagedCertificateStoreContainerQuery object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsQueryModelsPagedCertificateStoreContainerQueryWithDefaults + +`func NewModelsQueryModelsPagedCertificateStoreContainerQueryWithDefaults() *ModelsQueryModelsPagedCertificateStoreContainerQuery` + +NewModelsQueryModelsPagedCertificateStoreContainerQueryWithDefaults instantiates a new ModelsQueryModelsPagedCertificateStoreContainerQuery object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetQueryString + +`func (o *ModelsQueryModelsPagedCertificateStoreContainerQuery) GetQueryString() string` + +GetQueryString returns the QueryString field if non-nil, zero value otherwise. + +### GetQueryStringOk + +`func (o *ModelsQueryModelsPagedCertificateStoreContainerQuery) GetQueryStringOk() (*string, bool)` + +GetQueryStringOk returns a tuple with the QueryString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQueryString + +`func (o *ModelsQueryModelsPagedCertificateStoreContainerQuery) SetQueryString(v string)` + +SetQueryString sets QueryString field to given value. + +### HasQueryString + +`func (o *ModelsQueryModelsPagedCertificateStoreContainerQuery) HasQueryString() bool` + +HasQueryString returns a boolean if a field has been set. + +### GetPageReturned + +`func (o *ModelsQueryModelsPagedCertificateStoreContainerQuery) GetPageReturned() int32` + +GetPageReturned returns the PageReturned field if non-nil, zero value otherwise. + +### GetPageReturnedOk + +`func (o *ModelsQueryModelsPagedCertificateStoreContainerQuery) GetPageReturnedOk() (*int32, bool)` + +GetPageReturnedOk returns a tuple with the PageReturned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageReturned + +`func (o *ModelsQueryModelsPagedCertificateStoreContainerQuery) SetPageReturned(v int32)` + +SetPageReturned sets PageReturned field to given value. + +### HasPageReturned + +`func (o *ModelsQueryModelsPagedCertificateStoreContainerQuery) HasPageReturned() bool` + +HasPageReturned returns a boolean if a field has been set. + +### GetReturnLimit + +`func (o *ModelsQueryModelsPagedCertificateStoreContainerQuery) GetReturnLimit() int32` + +GetReturnLimit returns the ReturnLimit field if non-nil, zero value otherwise. + +### GetReturnLimitOk + +`func (o *ModelsQueryModelsPagedCertificateStoreContainerQuery) GetReturnLimitOk() (*int32, bool)` + +GetReturnLimitOk returns a tuple with the ReturnLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReturnLimit + +`func (o *ModelsQueryModelsPagedCertificateStoreContainerQuery) SetReturnLimit(v int32)` + +SetReturnLimit sets ReturnLimit field to given value. + +### HasReturnLimit + +`func (o *ModelsQueryModelsPagedCertificateStoreContainerQuery) HasReturnLimit() bool` + +HasReturnLimit returns a boolean if a field has been set. + +### GetSortField + +`func (o *ModelsQueryModelsPagedCertificateStoreContainerQuery) GetSortField() string` + +GetSortField returns the SortField field if non-nil, zero value otherwise. + +### GetSortFieldOk + +`func (o *ModelsQueryModelsPagedCertificateStoreContainerQuery) GetSortFieldOk() (*string, bool)` + +GetSortFieldOk returns a tuple with the SortField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortField + +`func (o *ModelsQueryModelsPagedCertificateStoreContainerQuery) SetSortField(v string)` + +SetSortField sets SortField field to given value. + +### HasSortField + +`func (o *ModelsQueryModelsPagedCertificateStoreContainerQuery) HasSortField() bool` + +HasSortField returns a boolean if a field has been set. + +### GetSortAscending + +`func (o *ModelsQueryModelsPagedCertificateStoreContainerQuery) GetSortAscending() int32` + +GetSortAscending returns the SortAscending field if non-nil, zero value otherwise. + +### GetSortAscendingOk + +`func (o *ModelsQueryModelsPagedCertificateStoreContainerQuery) GetSortAscendingOk() (*int32, bool)` + +GetSortAscendingOk returns a tuple with the SortAscending field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortAscending + +`func (o *ModelsQueryModelsPagedCertificateStoreContainerQuery) SetSortAscending(v int32)` + +SetSortAscending sets SortAscending field to given value. + +### HasSortAscending + +`func (o *ModelsQueryModelsPagedCertificateStoreContainerQuery) HasSortAscending() bool` + +HasSortAscending returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsQueryModelsPagedCertificateStoreInventoryQuery.md b/v1/docs/ModelsQueryModelsPagedCertificateStoreInventoryQuery.md new file mode 100644 index 0000000..84f6beb --- /dev/null +++ b/v1/docs/ModelsQueryModelsPagedCertificateStoreInventoryQuery.md @@ -0,0 +1,134 @@ +# ModelsQueryModelsPagedCertificateStoreInventoryQuery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PageReturned** | Pointer to **int32** | The current page within the result set to be returned | [optional] +**ReturnLimit** | Pointer to **int32** | Maximum number of records to be returned in a single call | [optional] +**SortField** | Pointer to **string** | Field by which the results should be sorted (OperationStart, OperationEnd, UserName) | [optional] +**SortAscending** | Pointer to **int32** | Field sort direction [0=ascending, 1=descending] | [optional] + +## Methods + +### NewModelsQueryModelsPagedCertificateStoreInventoryQuery + +`func NewModelsQueryModelsPagedCertificateStoreInventoryQuery() *ModelsQueryModelsPagedCertificateStoreInventoryQuery` + +NewModelsQueryModelsPagedCertificateStoreInventoryQuery instantiates a new ModelsQueryModelsPagedCertificateStoreInventoryQuery object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsQueryModelsPagedCertificateStoreInventoryQueryWithDefaults + +`func NewModelsQueryModelsPagedCertificateStoreInventoryQueryWithDefaults() *ModelsQueryModelsPagedCertificateStoreInventoryQuery` + +NewModelsQueryModelsPagedCertificateStoreInventoryQueryWithDefaults instantiates a new ModelsQueryModelsPagedCertificateStoreInventoryQuery object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPageReturned + +`func (o *ModelsQueryModelsPagedCertificateStoreInventoryQuery) GetPageReturned() int32` + +GetPageReturned returns the PageReturned field if non-nil, zero value otherwise. + +### GetPageReturnedOk + +`func (o *ModelsQueryModelsPagedCertificateStoreInventoryQuery) GetPageReturnedOk() (*int32, bool)` + +GetPageReturnedOk returns a tuple with the PageReturned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageReturned + +`func (o *ModelsQueryModelsPagedCertificateStoreInventoryQuery) SetPageReturned(v int32)` + +SetPageReturned sets PageReturned field to given value. + +### HasPageReturned + +`func (o *ModelsQueryModelsPagedCertificateStoreInventoryQuery) HasPageReturned() bool` + +HasPageReturned returns a boolean if a field has been set. + +### GetReturnLimit + +`func (o *ModelsQueryModelsPagedCertificateStoreInventoryQuery) GetReturnLimit() int32` + +GetReturnLimit returns the ReturnLimit field if non-nil, zero value otherwise. + +### GetReturnLimitOk + +`func (o *ModelsQueryModelsPagedCertificateStoreInventoryQuery) GetReturnLimitOk() (*int32, bool)` + +GetReturnLimitOk returns a tuple with the ReturnLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReturnLimit + +`func (o *ModelsQueryModelsPagedCertificateStoreInventoryQuery) SetReturnLimit(v int32)` + +SetReturnLimit sets ReturnLimit field to given value. + +### HasReturnLimit + +`func (o *ModelsQueryModelsPagedCertificateStoreInventoryQuery) HasReturnLimit() bool` + +HasReturnLimit returns a boolean if a field has been set. + +### GetSortField + +`func (o *ModelsQueryModelsPagedCertificateStoreInventoryQuery) GetSortField() string` + +GetSortField returns the SortField field if non-nil, zero value otherwise. + +### GetSortFieldOk + +`func (o *ModelsQueryModelsPagedCertificateStoreInventoryQuery) GetSortFieldOk() (*string, bool)` + +GetSortFieldOk returns a tuple with the SortField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortField + +`func (o *ModelsQueryModelsPagedCertificateStoreInventoryQuery) SetSortField(v string)` + +SetSortField sets SortField field to given value. + +### HasSortField + +`func (o *ModelsQueryModelsPagedCertificateStoreInventoryQuery) HasSortField() bool` + +HasSortField returns a boolean if a field has been set. + +### GetSortAscending + +`func (o *ModelsQueryModelsPagedCertificateStoreInventoryQuery) GetSortAscending() int32` + +GetSortAscending returns the SortAscending field if non-nil, zero value otherwise. + +### GetSortAscendingOk + +`func (o *ModelsQueryModelsPagedCertificateStoreInventoryQuery) GetSortAscendingOk() (*int32, bool)` + +GetSortAscendingOk returns a tuple with the SortAscending field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortAscending + +`func (o *ModelsQueryModelsPagedCertificateStoreInventoryQuery) SetSortAscending(v int32)` + +SetSortAscending sets SortAscending field to given value. + +### HasSortAscending + +`func (o *ModelsQueryModelsPagedCertificateStoreInventoryQuery) HasSortAscending() bool` + +HasSortAscending returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsQueryModelsPagedCertificateStoreQuery.md b/v1/docs/ModelsQueryModelsPagedCertificateStoreQuery.md new file mode 100644 index 0000000..f16c22f --- /dev/null +++ b/v1/docs/ModelsQueryModelsPagedCertificateStoreQuery.md @@ -0,0 +1,160 @@ +# ModelsQueryModelsPagedCertificateStoreQuery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**QueryString** | Pointer to **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | [optional] +**PageReturned** | Pointer to **int32** | The current page within the result set to be returned | [optional] +**ReturnLimit** | Pointer to **int32** | Maximum number of records to be returned in a single call | [optional] +**SortField** | Pointer to **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | [optional] +**SortAscending** | Pointer to **int32** | Field sort direction [0=ascending, 1=descending] | [optional] + +## Methods + +### NewModelsQueryModelsPagedCertificateStoreQuery + +`func NewModelsQueryModelsPagedCertificateStoreQuery() *ModelsQueryModelsPagedCertificateStoreQuery` + +NewModelsQueryModelsPagedCertificateStoreQuery instantiates a new ModelsQueryModelsPagedCertificateStoreQuery object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsQueryModelsPagedCertificateStoreQueryWithDefaults + +`func NewModelsQueryModelsPagedCertificateStoreQueryWithDefaults() *ModelsQueryModelsPagedCertificateStoreQuery` + +NewModelsQueryModelsPagedCertificateStoreQueryWithDefaults instantiates a new ModelsQueryModelsPagedCertificateStoreQuery object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetQueryString + +`func (o *ModelsQueryModelsPagedCertificateStoreQuery) GetQueryString() string` + +GetQueryString returns the QueryString field if non-nil, zero value otherwise. + +### GetQueryStringOk + +`func (o *ModelsQueryModelsPagedCertificateStoreQuery) GetQueryStringOk() (*string, bool)` + +GetQueryStringOk returns a tuple with the QueryString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQueryString + +`func (o *ModelsQueryModelsPagedCertificateStoreQuery) SetQueryString(v string)` + +SetQueryString sets QueryString field to given value. + +### HasQueryString + +`func (o *ModelsQueryModelsPagedCertificateStoreQuery) HasQueryString() bool` + +HasQueryString returns a boolean if a field has been set. + +### GetPageReturned + +`func (o *ModelsQueryModelsPagedCertificateStoreQuery) GetPageReturned() int32` + +GetPageReturned returns the PageReturned field if non-nil, zero value otherwise. + +### GetPageReturnedOk + +`func (o *ModelsQueryModelsPagedCertificateStoreQuery) GetPageReturnedOk() (*int32, bool)` + +GetPageReturnedOk returns a tuple with the PageReturned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageReturned + +`func (o *ModelsQueryModelsPagedCertificateStoreQuery) SetPageReturned(v int32)` + +SetPageReturned sets PageReturned field to given value. + +### HasPageReturned + +`func (o *ModelsQueryModelsPagedCertificateStoreQuery) HasPageReturned() bool` + +HasPageReturned returns a boolean if a field has been set. + +### GetReturnLimit + +`func (o *ModelsQueryModelsPagedCertificateStoreQuery) GetReturnLimit() int32` + +GetReturnLimit returns the ReturnLimit field if non-nil, zero value otherwise. + +### GetReturnLimitOk + +`func (o *ModelsQueryModelsPagedCertificateStoreQuery) GetReturnLimitOk() (*int32, bool)` + +GetReturnLimitOk returns a tuple with the ReturnLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReturnLimit + +`func (o *ModelsQueryModelsPagedCertificateStoreQuery) SetReturnLimit(v int32)` + +SetReturnLimit sets ReturnLimit field to given value. + +### HasReturnLimit + +`func (o *ModelsQueryModelsPagedCertificateStoreQuery) HasReturnLimit() bool` + +HasReturnLimit returns a boolean if a field has been set. + +### GetSortField + +`func (o *ModelsQueryModelsPagedCertificateStoreQuery) GetSortField() string` + +GetSortField returns the SortField field if non-nil, zero value otherwise. + +### GetSortFieldOk + +`func (o *ModelsQueryModelsPagedCertificateStoreQuery) GetSortFieldOk() (*string, bool)` + +GetSortFieldOk returns a tuple with the SortField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortField + +`func (o *ModelsQueryModelsPagedCertificateStoreQuery) SetSortField(v string)` + +SetSortField sets SortField field to given value. + +### HasSortField + +`func (o *ModelsQueryModelsPagedCertificateStoreQuery) HasSortField() bool` + +HasSortField returns a boolean if a field has been set. + +### GetSortAscending + +`func (o *ModelsQueryModelsPagedCertificateStoreQuery) GetSortAscending() int32` + +GetSortAscending returns the SortAscending field if non-nil, zero value otherwise. + +### GetSortAscendingOk + +`func (o *ModelsQueryModelsPagedCertificateStoreQuery) GetSortAscendingOk() (*int32, bool)` + +GetSortAscendingOk returns a tuple with the SortAscending field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortAscending + +`func (o *ModelsQueryModelsPagedCertificateStoreQuery) SetSortAscending(v int32)` + +SetSortAscending sets SortAscending field to given value. + +### HasSortAscending + +`func (o *ModelsQueryModelsPagedCertificateStoreQuery) HasSortAscending() bool` + +HasSortAscending returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsQueryModelsPagedCertificateStoreServerQuery.md b/v1/docs/ModelsQueryModelsPagedCertificateStoreServerQuery.md new file mode 100644 index 0000000..5f8ced8 --- /dev/null +++ b/v1/docs/ModelsQueryModelsPagedCertificateStoreServerQuery.md @@ -0,0 +1,160 @@ +# ModelsQueryModelsPagedCertificateStoreServerQuery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**QueryString** | Pointer to **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | [optional] +**PageReturned** | Pointer to **int32** | The current page within the result set to be returned | [optional] +**ReturnLimit** | Pointer to **int32** | Maximum number of records to be returned in a single call | [optional] +**SortField** | Pointer to **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | [optional] +**SortAscending** | Pointer to **int32** | Field sort direction [0=ascending, 1=descending] | [optional] + +## Methods + +### NewModelsQueryModelsPagedCertificateStoreServerQuery + +`func NewModelsQueryModelsPagedCertificateStoreServerQuery() *ModelsQueryModelsPagedCertificateStoreServerQuery` + +NewModelsQueryModelsPagedCertificateStoreServerQuery instantiates a new ModelsQueryModelsPagedCertificateStoreServerQuery object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsQueryModelsPagedCertificateStoreServerQueryWithDefaults + +`func NewModelsQueryModelsPagedCertificateStoreServerQueryWithDefaults() *ModelsQueryModelsPagedCertificateStoreServerQuery` + +NewModelsQueryModelsPagedCertificateStoreServerQueryWithDefaults instantiates a new ModelsQueryModelsPagedCertificateStoreServerQuery object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetQueryString + +`func (o *ModelsQueryModelsPagedCertificateStoreServerQuery) GetQueryString() string` + +GetQueryString returns the QueryString field if non-nil, zero value otherwise. + +### GetQueryStringOk + +`func (o *ModelsQueryModelsPagedCertificateStoreServerQuery) GetQueryStringOk() (*string, bool)` + +GetQueryStringOk returns a tuple with the QueryString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQueryString + +`func (o *ModelsQueryModelsPagedCertificateStoreServerQuery) SetQueryString(v string)` + +SetQueryString sets QueryString field to given value. + +### HasQueryString + +`func (o *ModelsQueryModelsPagedCertificateStoreServerQuery) HasQueryString() bool` + +HasQueryString returns a boolean if a field has been set. + +### GetPageReturned + +`func (o *ModelsQueryModelsPagedCertificateStoreServerQuery) GetPageReturned() int32` + +GetPageReturned returns the PageReturned field if non-nil, zero value otherwise. + +### GetPageReturnedOk + +`func (o *ModelsQueryModelsPagedCertificateStoreServerQuery) GetPageReturnedOk() (*int32, bool)` + +GetPageReturnedOk returns a tuple with the PageReturned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageReturned + +`func (o *ModelsQueryModelsPagedCertificateStoreServerQuery) SetPageReturned(v int32)` + +SetPageReturned sets PageReturned field to given value. + +### HasPageReturned + +`func (o *ModelsQueryModelsPagedCertificateStoreServerQuery) HasPageReturned() bool` + +HasPageReturned returns a boolean if a field has been set. + +### GetReturnLimit + +`func (o *ModelsQueryModelsPagedCertificateStoreServerQuery) GetReturnLimit() int32` + +GetReturnLimit returns the ReturnLimit field if non-nil, zero value otherwise. + +### GetReturnLimitOk + +`func (o *ModelsQueryModelsPagedCertificateStoreServerQuery) GetReturnLimitOk() (*int32, bool)` + +GetReturnLimitOk returns a tuple with the ReturnLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReturnLimit + +`func (o *ModelsQueryModelsPagedCertificateStoreServerQuery) SetReturnLimit(v int32)` + +SetReturnLimit sets ReturnLimit field to given value. + +### HasReturnLimit + +`func (o *ModelsQueryModelsPagedCertificateStoreServerQuery) HasReturnLimit() bool` + +HasReturnLimit returns a boolean if a field has been set. + +### GetSortField + +`func (o *ModelsQueryModelsPagedCertificateStoreServerQuery) GetSortField() string` + +GetSortField returns the SortField field if non-nil, zero value otherwise. + +### GetSortFieldOk + +`func (o *ModelsQueryModelsPagedCertificateStoreServerQuery) GetSortFieldOk() (*string, bool)` + +GetSortFieldOk returns a tuple with the SortField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortField + +`func (o *ModelsQueryModelsPagedCertificateStoreServerQuery) SetSortField(v string)` + +SetSortField sets SortField field to given value. + +### HasSortField + +`func (o *ModelsQueryModelsPagedCertificateStoreServerQuery) HasSortField() bool` + +HasSortField returns a boolean if a field has been set. + +### GetSortAscending + +`func (o *ModelsQueryModelsPagedCertificateStoreServerQuery) GetSortAscending() int32` + +GetSortAscending returns the SortAscending field if non-nil, zero value otherwise. + +### GetSortAscendingOk + +`func (o *ModelsQueryModelsPagedCertificateStoreServerQuery) GetSortAscendingOk() (*int32, bool)` + +GetSortAscendingOk returns a tuple with the SortAscending field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortAscending + +`func (o *ModelsQueryModelsPagedCertificateStoreServerQuery) SetSortAscending(v int32)` + +SetSortAscending sets SortAscending field to given value. + +### HasSortAscending + +`func (o *ModelsQueryModelsPagedCertificateStoreServerQuery) HasSortAscending() bool` + +HasSortAscending returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsQueryModelsPagedCustomReportQuery.md b/v1/docs/ModelsQueryModelsPagedCustomReportQuery.md new file mode 100644 index 0000000..27a0315 --- /dev/null +++ b/v1/docs/ModelsQueryModelsPagedCustomReportQuery.md @@ -0,0 +1,186 @@ +# ModelsQueryModelsPagedCustomReportQuery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AmmendedQuery** | Pointer to **string** | | [optional] [readonly] +**QueryString** | Pointer to **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | [optional] +**PageReturned** | Pointer to **int32** | The current page within the result set to be returned | [optional] +**ReturnLimit** | Pointer to **int32** | Maximum number of records to be returned in a single call | [optional] +**SortField** | Pointer to **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | [optional] +**SortAscending** | Pointer to **int32** | Field sort direction [0=ascending, 1=descending] | [optional] + +## Methods + +### NewModelsQueryModelsPagedCustomReportQuery + +`func NewModelsQueryModelsPagedCustomReportQuery() *ModelsQueryModelsPagedCustomReportQuery` + +NewModelsQueryModelsPagedCustomReportQuery instantiates a new ModelsQueryModelsPagedCustomReportQuery object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsQueryModelsPagedCustomReportQueryWithDefaults + +`func NewModelsQueryModelsPagedCustomReportQueryWithDefaults() *ModelsQueryModelsPagedCustomReportQuery` + +NewModelsQueryModelsPagedCustomReportQueryWithDefaults instantiates a new ModelsQueryModelsPagedCustomReportQuery object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAmmendedQuery + +`func (o *ModelsQueryModelsPagedCustomReportQuery) GetAmmendedQuery() string` + +GetAmmendedQuery returns the AmmendedQuery field if non-nil, zero value otherwise. + +### GetAmmendedQueryOk + +`func (o *ModelsQueryModelsPagedCustomReportQuery) GetAmmendedQueryOk() (*string, bool)` + +GetAmmendedQueryOk returns a tuple with the AmmendedQuery field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAmmendedQuery + +`func (o *ModelsQueryModelsPagedCustomReportQuery) SetAmmendedQuery(v string)` + +SetAmmendedQuery sets AmmendedQuery field to given value. + +### HasAmmendedQuery + +`func (o *ModelsQueryModelsPagedCustomReportQuery) HasAmmendedQuery() bool` + +HasAmmendedQuery returns a boolean if a field has been set. + +### GetQueryString + +`func (o *ModelsQueryModelsPagedCustomReportQuery) GetQueryString() string` + +GetQueryString returns the QueryString field if non-nil, zero value otherwise. + +### GetQueryStringOk + +`func (o *ModelsQueryModelsPagedCustomReportQuery) GetQueryStringOk() (*string, bool)` + +GetQueryStringOk returns a tuple with the QueryString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQueryString + +`func (o *ModelsQueryModelsPagedCustomReportQuery) SetQueryString(v string)` + +SetQueryString sets QueryString field to given value. + +### HasQueryString + +`func (o *ModelsQueryModelsPagedCustomReportQuery) HasQueryString() bool` + +HasQueryString returns a boolean if a field has been set. + +### GetPageReturned + +`func (o *ModelsQueryModelsPagedCustomReportQuery) GetPageReturned() int32` + +GetPageReturned returns the PageReturned field if non-nil, zero value otherwise. + +### GetPageReturnedOk + +`func (o *ModelsQueryModelsPagedCustomReportQuery) GetPageReturnedOk() (*int32, bool)` + +GetPageReturnedOk returns a tuple with the PageReturned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageReturned + +`func (o *ModelsQueryModelsPagedCustomReportQuery) SetPageReturned(v int32)` + +SetPageReturned sets PageReturned field to given value. + +### HasPageReturned + +`func (o *ModelsQueryModelsPagedCustomReportQuery) HasPageReturned() bool` + +HasPageReturned returns a boolean if a field has been set. + +### GetReturnLimit + +`func (o *ModelsQueryModelsPagedCustomReportQuery) GetReturnLimit() int32` + +GetReturnLimit returns the ReturnLimit field if non-nil, zero value otherwise. + +### GetReturnLimitOk + +`func (o *ModelsQueryModelsPagedCustomReportQuery) GetReturnLimitOk() (*int32, bool)` + +GetReturnLimitOk returns a tuple with the ReturnLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReturnLimit + +`func (o *ModelsQueryModelsPagedCustomReportQuery) SetReturnLimit(v int32)` + +SetReturnLimit sets ReturnLimit field to given value. + +### HasReturnLimit + +`func (o *ModelsQueryModelsPagedCustomReportQuery) HasReturnLimit() bool` + +HasReturnLimit returns a boolean if a field has been set. + +### GetSortField + +`func (o *ModelsQueryModelsPagedCustomReportQuery) GetSortField() string` + +GetSortField returns the SortField field if non-nil, zero value otherwise. + +### GetSortFieldOk + +`func (o *ModelsQueryModelsPagedCustomReportQuery) GetSortFieldOk() (*string, bool)` + +GetSortFieldOk returns a tuple with the SortField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortField + +`func (o *ModelsQueryModelsPagedCustomReportQuery) SetSortField(v string)` + +SetSortField sets SortField field to given value. + +### HasSortField + +`func (o *ModelsQueryModelsPagedCustomReportQuery) HasSortField() bool` + +HasSortField returns a boolean if a field has been set. + +### GetSortAscending + +`func (o *ModelsQueryModelsPagedCustomReportQuery) GetSortAscending() int32` + +GetSortAscending returns the SortAscending field if non-nil, zero value otherwise. + +### GetSortAscendingOk + +`func (o *ModelsQueryModelsPagedCustomReportQuery) GetSortAscendingOk() (*int32, bool)` + +GetSortAscendingOk returns a tuple with the SortAscending field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortAscending + +`func (o *ModelsQueryModelsPagedCustomReportQuery) SetSortAscending(v int32)` + +SetSortAscending sets SortAscending field to given value. + +### HasSortAscending + +`func (o *ModelsQueryModelsPagedCustomReportQuery) HasSortAscending() bool` + +HasSortAscending returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsQueryModelsPagedDeniedAlertQuery.md b/v1/docs/ModelsQueryModelsPagedDeniedAlertQuery.md new file mode 100644 index 0000000..a3d535c --- /dev/null +++ b/v1/docs/ModelsQueryModelsPagedDeniedAlertQuery.md @@ -0,0 +1,160 @@ +# ModelsQueryModelsPagedDeniedAlertQuery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**QueryString** | Pointer to **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | [optional] +**PageReturned** | Pointer to **int32** | The current page within the result set to be returned | [optional] +**ReturnLimit** | Pointer to **int32** | Maximum number of records to be returned in a single call | [optional] +**SortField** | Pointer to **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | [optional] +**SortAscending** | Pointer to **int32** | Field sort direction [0=ascending, 1=descending] | [optional] + +## Methods + +### NewModelsQueryModelsPagedDeniedAlertQuery + +`func NewModelsQueryModelsPagedDeniedAlertQuery() *ModelsQueryModelsPagedDeniedAlertQuery` + +NewModelsQueryModelsPagedDeniedAlertQuery instantiates a new ModelsQueryModelsPagedDeniedAlertQuery object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsQueryModelsPagedDeniedAlertQueryWithDefaults + +`func NewModelsQueryModelsPagedDeniedAlertQueryWithDefaults() *ModelsQueryModelsPagedDeniedAlertQuery` + +NewModelsQueryModelsPagedDeniedAlertQueryWithDefaults instantiates a new ModelsQueryModelsPagedDeniedAlertQuery object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetQueryString + +`func (o *ModelsQueryModelsPagedDeniedAlertQuery) GetQueryString() string` + +GetQueryString returns the QueryString field if non-nil, zero value otherwise. + +### GetQueryStringOk + +`func (o *ModelsQueryModelsPagedDeniedAlertQuery) GetQueryStringOk() (*string, bool)` + +GetQueryStringOk returns a tuple with the QueryString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQueryString + +`func (o *ModelsQueryModelsPagedDeniedAlertQuery) SetQueryString(v string)` + +SetQueryString sets QueryString field to given value. + +### HasQueryString + +`func (o *ModelsQueryModelsPagedDeniedAlertQuery) HasQueryString() bool` + +HasQueryString returns a boolean if a field has been set. + +### GetPageReturned + +`func (o *ModelsQueryModelsPagedDeniedAlertQuery) GetPageReturned() int32` + +GetPageReturned returns the PageReturned field if non-nil, zero value otherwise. + +### GetPageReturnedOk + +`func (o *ModelsQueryModelsPagedDeniedAlertQuery) GetPageReturnedOk() (*int32, bool)` + +GetPageReturnedOk returns a tuple with the PageReturned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageReturned + +`func (o *ModelsQueryModelsPagedDeniedAlertQuery) SetPageReturned(v int32)` + +SetPageReturned sets PageReturned field to given value. + +### HasPageReturned + +`func (o *ModelsQueryModelsPagedDeniedAlertQuery) HasPageReturned() bool` + +HasPageReturned returns a boolean if a field has been set. + +### GetReturnLimit + +`func (o *ModelsQueryModelsPagedDeniedAlertQuery) GetReturnLimit() int32` + +GetReturnLimit returns the ReturnLimit field if non-nil, zero value otherwise. + +### GetReturnLimitOk + +`func (o *ModelsQueryModelsPagedDeniedAlertQuery) GetReturnLimitOk() (*int32, bool)` + +GetReturnLimitOk returns a tuple with the ReturnLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReturnLimit + +`func (o *ModelsQueryModelsPagedDeniedAlertQuery) SetReturnLimit(v int32)` + +SetReturnLimit sets ReturnLimit field to given value. + +### HasReturnLimit + +`func (o *ModelsQueryModelsPagedDeniedAlertQuery) HasReturnLimit() bool` + +HasReturnLimit returns a boolean if a field has been set. + +### GetSortField + +`func (o *ModelsQueryModelsPagedDeniedAlertQuery) GetSortField() string` + +GetSortField returns the SortField field if non-nil, zero value otherwise. + +### GetSortFieldOk + +`func (o *ModelsQueryModelsPagedDeniedAlertQuery) GetSortFieldOk() (*string, bool)` + +GetSortFieldOk returns a tuple with the SortField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortField + +`func (o *ModelsQueryModelsPagedDeniedAlertQuery) SetSortField(v string)` + +SetSortField sets SortField field to given value. + +### HasSortField + +`func (o *ModelsQueryModelsPagedDeniedAlertQuery) HasSortField() bool` + +HasSortField returns a boolean if a field has been set. + +### GetSortAscending + +`func (o *ModelsQueryModelsPagedDeniedAlertQuery) GetSortAscending() int32` + +GetSortAscending returns the SortAscending field if non-nil, zero value otherwise. + +### GetSortAscendingOk + +`func (o *ModelsQueryModelsPagedDeniedAlertQuery) GetSortAscendingOk() (*int32, bool)` + +GetSortAscendingOk returns a tuple with the SortAscending field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortAscending + +`func (o *ModelsQueryModelsPagedDeniedAlertQuery) SetSortAscending(v int32)` + +SetSortAscending sets SortAscending field to given value. + +### HasSortAscending + +`func (o *ModelsQueryModelsPagedDeniedAlertQuery) HasSortAscending() bool` + +HasSortAscending returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsQueryModelsPagedExpirationAlertQuery.md b/v1/docs/ModelsQueryModelsPagedExpirationAlertQuery.md new file mode 100644 index 0000000..328b2c7 --- /dev/null +++ b/v1/docs/ModelsQueryModelsPagedExpirationAlertQuery.md @@ -0,0 +1,160 @@ +# ModelsQueryModelsPagedExpirationAlertQuery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**QueryString** | Pointer to **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | [optional] +**PageReturned** | Pointer to **int32** | The current page within the result set to be returned | [optional] +**ReturnLimit** | Pointer to **int32** | Maximum number of records to be returned in a single call | [optional] +**SortField** | Pointer to **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | [optional] +**SortAscending** | Pointer to **int32** | Field sort direction [0=ascending, 1=descending] | [optional] + +## Methods + +### NewModelsQueryModelsPagedExpirationAlertQuery + +`func NewModelsQueryModelsPagedExpirationAlertQuery() *ModelsQueryModelsPagedExpirationAlertQuery` + +NewModelsQueryModelsPagedExpirationAlertQuery instantiates a new ModelsQueryModelsPagedExpirationAlertQuery object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsQueryModelsPagedExpirationAlertQueryWithDefaults + +`func NewModelsQueryModelsPagedExpirationAlertQueryWithDefaults() *ModelsQueryModelsPagedExpirationAlertQuery` + +NewModelsQueryModelsPagedExpirationAlertQueryWithDefaults instantiates a new ModelsQueryModelsPagedExpirationAlertQuery object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetQueryString + +`func (o *ModelsQueryModelsPagedExpirationAlertQuery) GetQueryString() string` + +GetQueryString returns the QueryString field if non-nil, zero value otherwise. + +### GetQueryStringOk + +`func (o *ModelsQueryModelsPagedExpirationAlertQuery) GetQueryStringOk() (*string, bool)` + +GetQueryStringOk returns a tuple with the QueryString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQueryString + +`func (o *ModelsQueryModelsPagedExpirationAlertQuery) SetQueryString(v string)` + +SetQueryString sets QueryString field to given value. + +### HasQueryString + +`func (o *ModelsQueryModelsPagedExpirationAlertQuery) HasQueryString() bool` + +HasQueryString returns a boolean if a field has been set. + +### GetPageReturned + +`func (o *ModelsQueryModelsPagedExpirationAlertQuery) GetPageReturned() int32` + +GetPageReturned returns the PageReturned field if non-nil, zero value otherwise. + +### GetPageReturnedOk + +`func (o *ModelsQueryModelsPagedExpirationAlertQuery) GetPageReturnedOk() (*int32, bool)` + +GetPageReturnedOk returns a tuple with the PageReturned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageReturned + +`func (o *ModelsQueryModelsPagedExpirationAlertQuery) SetPageReturned(v int32)` + +SetPageReturned sets PageReturned field to given value. + +### HasPageReturned + +`func (o *ModelsQueryModelsPagedExpirationAlertQuery) HasPageReturned() bool` + +HasPageReturned returns a boolean if a field has been set. + +### GetReturnLimit + +`func (o *ModelsQueryModelsPagedExpirationAlertQuery) GetReturnLimit() int32` + +GetReturnLimit returns the ReturnLimit field if non-nil, zero value otherwise. + +### GetReturnLimitOk + +`func (o *ModelsQueryModelsPagedExpirationAlertQuery) GetReturnLimitOk() (*int32, bool)` + +GetReturnLimitOk returns a tuple with the ReturnLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReturnLimit + +`func (o *ModelsQueryModelsPagedExpirationAlertQuery) SetReturnLimit(v int32)` + +SetReturnLimit sets ReturnLimit field to given value. + +### HasReturnLimit + +`func (o *ModelsQueryModelsPagedExpirationAlertQuery) HasReturnLimit() bool` + +HasReturnLimit returns a boolean if a field has been set. + +### GetSortField + +`func (o *ModelsQueryModelsPagedExpirationAlertQuery) GetSortField() string` + +GetSortField returns the SortField field if non-nil, zero value otherwise. + +### GetSortFieldOk + +`func (o *ModelsQueryModelsPagedExpirationAlertQuery) GetSortFieldOk() (*string, bool)` + +GetSortFieldOk returns a tuple with the SortField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortField + +`func (o *ModelsQueryModelsPagedExpirationAlertQuery) SetSortField(v string)` + +SetSortField sets SortField field to given value. + +### HasSortField + +`func (o *ModelsQueryModelsPagedExpirationAlertQuery) HasSortField() bool` + +HasSortField returns a boolean if a field has been set. + +### GetSortAscending + +`func (o *ModelsQueryModelsPagedExpirationAlertQuery) GetSortAscending() int32` + +GetSortAscending returns the SortAscending field if non-nil, zero value otherwise. + +### GetSortAscendingOk + +`func (o *ModelsQueryModelsPagedExpirationAlertQuery) GetSortAscendingOk() (*int32, bool)` + +GetSortAscendingOk returns a tuple with the SortAscending field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortAscending + +`func (o *ModelsQueryModelsPagedExpirationAlertQuery) SetSortAscending(v int32)` + +SetSortAscending sets SortAscending field to given value. + +### HasSortAscending + +`func (o *ModelsQueryModelsPagedExpirationAlertQuery) HasSortAscending() bool` + +HasSortAscending returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsQueryModelsPagedIssuedAlertQuery.md b/v1/docs/ModelsQueryModelsPagedIssuedAlertQuery.md new file mode 100644 index 0000000..ace675a --- /dev/null +++ b/v1/docs/ModelsQueryModelsPagedIssuedAlertQuery.md @@ -0,0 +1,160 @@ +# ModelsQueryModelsPagedIssuedAlertQuery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**QueryString** | Pointer to **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | [optional] +**PageReturned** | Pointer to **int32** | The current page within the result set to be returned | [optional] +**ReturnLimit** | Pointer to **int32** | Maximum number of records to be returned in a single call | [optional] +**SortField** | Pointer to **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | [optional] +**SortAscending** | Pointer to **int32** | Field sort direction [0=ascending, 1=descending] | [optional] + +## Methods + +### NewModelsQueryModelsPagedIssuedAlertQuery + +`func NewModelsQueryModelsPagedIssuedAlertQuery() *ModelsQueryModelsPagedIssuedAlertQuery` + +NewModelsQueryModelsPagedIssuedAlertQuery instantiates a new ModelsQueryModelsPagedIssuedAlertQuery object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsQueryModelsPagedIssuedAlertQueryWithDefaults + +`func NewModelsQueryModelsPagedIssuedAlertQueryWithDefaults() *ModelsQueryModelsPagedIssuedAlertQuery` + +NewModelsQueryModelsPagedIssuedAlertQueryWithDefaults instantiates a new ModelsQueryModelsPagedIssuedAlertQuery object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetQueryString + +`func (o *ModelsQueryModelsPagedIssuedAlertQuery) GetQueryString() string` + +GetQueryString returns the QueryString field if non-nil, zero value otherwise. + +### GetQueryStringOk + +`func (o *ModelsQueryModelsPagedIssuedAlertQuery) GetQueryStringOk() (*string, bool)` + +GetQueryStringOk returns a tuple with the QueryString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQueryString + +`func (o *ModelsQueryModelsPagedIssuedAlertQuery) SetQueryString(v string)` + +SetQueryString sets QueryString field to given value. + +### HasQueryString + +`func (o *ModelsQueryModelsPagedIssuedAlertQuery) HasQueryString() bool` + +HasQueryString returns a boolean if a field has been set. + +### GetPageReturned + +`func (o *ModelsQueryModelsPagedIssuedAlertQuery) GetPageReturned() int32` + +GetPageReturned returns the PageReturned field if non-nil, zero value otherwise. + +### GetPageReturnedOk + +`func (o *ModelsQueryModelsPagedIssuedAlertQuery) GetPageReturnedOk() (*int32, bool)` + +GetPageReturnedOk returns a tuple with the PageReturned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageReturned + +`func (o *ModelsQueryModelsPagedIssuedAlertQuery) SetPageReturned(v int32)` + +SetPageReturned sets PageReturned field to given value. + +### HasPageReturned + +`func (o *ModelsQueryModelsPagedIssuedAlertQuery) HasPageReturned() bool` + +HasPageReturned returns a boolean if a field has been set. + +### GetReturnLimit + +`func (o *ModelsQueryModelsPagedIssuedAlertQuery) GetReturnLimit() int32` + +GetReturnLimit returns the ReturnLimit field if non-nil, zero value otherwise. + +### GetReturnLimitOk + +`func (o *ModelsQueryModelsPagedIssuedAlertQuery) GetReturnLimitOk() (*int32, bool)` + +GetReturnLimitOk returns a tuple with the ReturnLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReturnLimit + +`func (o *ModelsQueryModelsPagedIssuedAlertQuery) SetReturnLimit(v int32)` + +SetReturnLimit sets ReturnLimit field to given value. + +### HasReturnLimit + +`func (o *ModelsQueryModelsPagedIssuedAlertQuery) HasReturnLimit() bool` + +HasReturnLimit returns a boolean if a field has been set. + +### GetSortField + +`func (o *ModelsQueryModelsPagedIssuedAlertQuery) GetSortField() string` + +GetSortField returns the SortField field if non-nil, zero value otherwise. + +### GetSortFieldOk + +`func (o *ModelsQueryModelsPagedIssuedAlertQuery) GetSortFieldOk() (*string, bool)` + +GetSortFieldOk returns a tuple with the SortField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortField + +`func (o *ModelsQueryModelsPagedIssuedAlertQuery) SetSortField(v string)` + +SetSortField sets SortField field to given value. + +### HasSortField + +`func (o *ModelsQueryModelsPagedIssuedAlertQuery) HasSortField() bool` + +HasSortField returns a boolean if a field has been set. + +### GetSortAscending + +`func (o *ModelsQueryModelsPagedIssuedAlertQuery) GetSortAscending() int32` + +GetSortAscending returns the SortAscending field if non-nil, zero value otherwise. + +### GetSortAscendingOk + +`func (o *ModelsQueryModelsPagedIssuedAlertQuery) GetSortAscendingOk() (*int32, bool)` + +GetSortAscendingOk returns a tuple with the SortAscending field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortAscending + +`func (o *ModelsQueryModelsPagedIssuedAlertQuery) SetSortAscending(v int32)` + +SetSortAscending sets SortAscending field to given value. + +### HasSortAscending + +`func (o *ModelsQueryModelsPagedIssuedAlertQuery) HasSortAscending() bool` + +HasSortAscending returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsQueryModelsPagedKeyRotationAlertQuery.md b/v1/docs/ModelsQueryModelsPagedKeyRotationAlertQuery.md new file mode 100644 index 0000000..afb36ed --- /dev/null +++ b/v1/docs/ModelsQueryModelsPagedKeyRotationAlertQuery.md @@ -0,0 +1,160 @@ +# ModelsQueryModelsPagedKeyRotationAlertQuery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**QueryString** | Pointer to **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | [optional] +**PageReturned** | Pointer to **int32** | The current page within the result set to be returned | [optional] +**ReturnLimit** | Pointer to **int32** | Maximum number of records to be returned in a single call | [optional] +**SortField** | Pointer to **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | [optional] +**SortAscending** | Pointer to **int32** | Field sort direction [0=ascending, 1=descending] | [optional] + +## Methods + +### NewModelsQueryModelsPagedKeyRotationAlertQuery + +`func NewModelsQueryModelsPagedKeyRotationAlertQuery() *ModelsQueryModelsPagedKeyRotationAlertQuery` + +NewModelsQueryModelsPagedKeyRotationAlertQuery instantiates a new ModelsQueryModelsPagedKeyRotationAlertQuery object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsQueryModelsPagedKeyRotationAlertQueryWithDefaults + +`func NewModelsQueryModelsPagedKeyRotationAlertQueryWithDefaults() *ModelsQueryModelsPagedKeyRotationAlertQuery` + +NewModelsQueryModelsPagedKeyRotationAlertQueryWithDefaults instantiates a new ModelsQueryModelsPagedKeyRotationAlertQuery object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetQueryString + +`func (o *ModelsQueryModelsPagedKeyRotationAlertQuery) GetQueryString() string` + +GetQueryString returns the QueryString field if non-nil, zero value otherwise. + +### GetQueryStringOk + +`func (o *ModelsQueryModelsPagedKeyRotationAlertQuery) GetQueryStringOk() (*string, bool)` + +GetQueryStringOk returns a tuple with the QueryString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQueryString + +`func (o *ModelsQueryModelsPagedKeyRotationAlertQuery) SetQueryString(v string)` + +SetQueryString sets QueryString field to given value. + +### HasQueryString + +`func (o *ModelsQueryModelsPagedKeyRotationAlertQuery) HasQueryString() bool` + +HasQueryString returns a boolean if a field has been set. + +### GetPageReturned + +`func (o *ModelsQueryModelsPagedKeyRotationAlertQuery) GetPageReturned() int32` + +GetPageReturned returns the PageReturned field if non-nil, zero value otherwise. + +### GetPageReturnedOk + +`func (o *ModelsQueryModelsPagedKeyRotationAlertQuery) GetPageReturnedOk() (*int32, bool)` + +GetPageReturnedOk returns a tuple with the PageReturned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageReturned + +`func (o *ModelsQueryModelsPagedKeyRotationAlertQuery) SetPageReturned(v int32)` + +SetPageReturned sets PageReturned field to given value. + +### HasPageReturned + +`func (o *ModelsQueryModelsPagedKeyRotationAlertQuery) HasPageReturned() bool` + +HasPageReturned returns a boolean if a field has been set. + +### GetReturnLimit + +`func (o *ModelsQueryModelsPagedKeyRotationAlertQuery) GetReturnLimit() int32` + +GetReturnLimit returns the ReturnLimit field if non-nil, zero value otherwise. + +### GetReturnLimitOk + +`func (o *ModelsQueryModelsPagedKeyRotationAlertQuery) GetReturnLimitOk() (*int32, bool)` + +GetReturnLimitOk returns a tuple with the ReturnLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReturnLimit + +`func (o *ModelsQueryModelsPagedKeyRotationAlertQuery) SetReturnLimit(v int32)` + +SetReturnLimit sets ReturnLimit field to given value. + +### HasReturnLimit + +`func (o *ModelsQueryModelsPagedKeyRotationAlertQuery) HasReturnLimit() bool` + +HasReturnLimit returns a boolean if a field has been set. + +### GetSortField + +`func (o *ModelsQueryModelsPagedKeyRotationAlertQuery) GetSortField() string` + +GetSortField returns the SortField field if non-nil, zero value otherwise. + +### GetSortFieldOk + +`func (o *ModelsQueryModelsPagedKeyRotationAlertQuery) GetSortFieldOk() (*string, bool)` + +GetSortFieldOk returns a tuple with the SortField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortField + +`func (o *ModelsQueryModelsPagedKeyRotationAlertQuery) SetSortField(v string)` + +SetSortField sets SortField field to given value. + +### HasSortField + +`func (o *ModelsQueryModelsPagedKeyRotationAlertQuery) HasSortField() bool` + +HasSortField returns a boolean if a field has been set. + +### GetSortAscending + +`func (o *ModelsQueryModelsPagedKeyRotationAlertQuery) GetSortAscending() int32` + +GetSortAscending returns the SortAscending field if non-nil, zero value otherwise. + +### GetSortAscendingOk + +`func (o *ModelsQueryModelsPagedKeyRotationAlertQuery) GetSortAscendingOk() (*int32, bool)` + +GetSortAscendingOk returns a tuple with the SortAscending field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortAscending + +`func (o *ModelsQueryModelsPagedKeyRotationAlertQuery) SetSortAscending(v int32)` + +SetSortAscending sets SortAscending field to given value. + +### HasSortAscending + +`func (o *ModelsQueryModelsPagedKeyRotationAlertQuery) HasSortAscending() bool` + +HasSortAscending returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsQueryModelsPagedLegacyDeniedRequestQuery.md b/v1/docs/ModelsQueryModelsPagedLegacyDeniedRequestQuery.md new file mode 100644 index 0000000..d04c80c --- /dev/null +++ b/v1/docs/ModelsQueryModelsPagedLegacyDeniedRequestQuery.md @@ -0,0 +1,160 @@ +# ModelsQueryModelsPagedLegacyDeniedRequestQuery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**QueryString** | Pointer to **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | [optional] +**PageReturned** | Pointer to **int32** | The current page within the result set to be returned | [optional] +**ReturnLimit** | Pointer to **int32** | Maximum number of records to be returned in a single call | [optional] +**SortField** | Pointer to **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | [optional] +**SortAscending** | Pointer to **int32** | Field sort direction [0=ascending, 1=descending] | [optional] + +## Methods + +### NewModelsQueryModelsPagedLegacyDeniedRequestQuery + +`func NewModelsQueryModelsPagedLegacyDeniedRequestQuery() *ModelsQueryModelsPagedLegacyDeniedRequestQuery` + +NewModelsQueryModelsPagedLegacyDeniedRequestQuery instantiates a new ModelsQueryModelsPagedLegacyDeniedRequestQuery object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsQueryModelsPagedLegacyDeniedRequestQueryWithDefaults + +`func NewModelsQueryModelsPagedLegacyDeniedRequestQueryWithDefaults() *ModelsQueryModelsPagedLegacyDeniedRequestQuery` + +NewModelsQueryModelsPagedLegacyDeniedRequestQueryWithDefaults instantiates a new ModelsQueryModelsPagedLegacyDeniedRequestQuery object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetQueryString + +`func (o *ModelsQueryModelsPagedLegacyDeniedRequestQuery) GetQueryString() string` + +GetQueryString returns the QueryString field if non-nil, zero value otherwise. + +### GetQueryStringOk + +`func (o *ModelsQueryModelsPagedLegacyDeniedRequestQuery) GetQueryStringOk() (*string, bool)` + +GetQueryStringOk returns a tuple with the QueryString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQueryString + +`func (o *ModelsQueryModelsPagedLegacyDeniedRequestQuery) SetQueryString(v string)` + +SetQueryString sets QueryString field to given value. + +### HasQueryString + +`func (o *ModelsQueryModelsPagedLegacyDeniedRequestQuery) HasQueryString() bool` + +HasQueryString returns a boolean if a field has been set. + +### GetPageReturned + +`func (o *ModelsQueryModelsPagedLegacyDeniedRequestQuery) GetPageReturned() int32` + +GetPageReturned returns the PageReturned field if non-nil, zero value otherwise. + +### GetPageReturnedOk + +`func (o *ModelsQueryModelsPagedLegacyDeniedRequestQuery) GetPageReturnedOk() (*int32, bool)` + +GetPageReturnedOk returns a tuple with the PageReturned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageReturned + +`func (o *ModelsQueryModelsPagedLegacyDeniedRequestQuery) SetPageReturned(v int32)` + +SetPageReturned sets PageReturned field to given value. + +### HasPageReturned + +`func (o *ModelsQueryModelsPagedLegacyDeniedRequestQuery) HasPageReturned() bool` + +HasPageReturned returns a boolean if a field has been set. + +### GetReturnLimit + +`func (o *ModelsQueryModelsPagedLegacyDeniedRequestQuery) GetReturnLimit() int32` + +GetReturnLimit returns the ReturnLimit field if non-nil, zero value otherwise. + +### GetReturnLimitOk + +`func (o *ModelsQueryModelsPagedLegacyDeniedRequestQuery) GetReturnLimitOk() (*int32, bool)` + +GetReturnLimitOk returns a tuple with the ReturnLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReturnLimit + +`func (o *ModelsQueryModelsPagedLegacyDeniedRequestQuery) SetReturnLimit(v int32)` + +SetReturnLimit sets ReturnLimit field to given value. + +### HasReturnLimit + +`func (o *ModelsQueryModelsPagedLegacyDeniedRequestQuery) HasReturnLimit() bool` + +HasReturnLimit returns a boolean if a field has been set. + +### GetSortField + +`func (o *ModelsQueryModelsPagedLegacyDeniedRequestQuery) GetSortField() string` + +GetSortField returns the SortField field if non-nil, zero value otherwise. + +### GetSortFieldOk + +`func (o *ModelsQueryModelsPagedLegacyDeniedRequestQuery) GetSortFieldOk() (*string, bool)` + +GetSortFieldOk returns a tuple with the SortField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortField + +`func (o *ModelsQueryModelsPagedLegacyDeniedRequestQuery) SetSortField(v string)` + +SetSortField sets SortField field to given value. + +### HasSortField + +`func (o *ModelsQueryModelsPagedLegacyDeniedRequestQuery) HasSortField() bool` + +HasSortField returns a boolean if a field has been set. + +### GetSortAscending + +`func (o *ModelsQueryModelsPagedLegacyDeniedRequestQuery) GetSortAscending() int32` + +GetSortAscending returns the SortAscending field if non-nil, zero value otherwise. + +### GetSortAscendingOk + +`func (o *ModelsQueryModelsPagedLegacyDeniedRequestQuery) GetSortAscendingOk() (*int32, bool)` + +GetSortAscendingOk returns a tuple with the SortAscending field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortAscending + +`func (o *ModelsQueryModelsPagedLegacyDeniedRequestQuery) SetSortAscending(v int32)` + +SetSortAscending sets SortAscending field to given value. + +### HasSortAscending + +`func (o *ModelsQueryModelsPagedLegacyDeniedRequestQuery) HasSortAscending() bool` + +HasSortAscending returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsQueryModelsPagedMetadataFieldQuery.md b/v1/docs/ModelsQueryModelsPagedMetadataFieldQuery.md new file mode 100644 index 0000000..d8491f9 --- /dev/null +++ b/v1/docs/ModelsQueryModelsPagedMetadataFieldQuery.md @@ -0,0 +1,160 @@ +# ModelsQueryModelsPagedMetadataFieldQuery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**QueryString** | Pointer to **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | [optional] +**PageReturned** | Pointer to **int32** | The current page within the result set to be returned | [optional] +**ReturnLimit** | Pointer to **int32** | Maximum number of records to be returned in a single call | [optional] +**SortField** | Pointer to **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | [optional] +**SortAscending** | Pointer to **int32** | Field sort direction [0=ascending, 1=descending] | [optional] + +## Methods + +### NewModelsQueryModelsPagedMetadataFieldQuery + +`func NewModelsQueryModelsPagedMetadataFieldQuery() *ModelsQueryModelsPagedMetadataFieldQuery` + +NewModelsQueryModelsPagedMetadataFieldQuery instantiates a new ModelsQueryModelsPagedMetadataFieldQuery object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsQueryModelsPagedMetadataFieldQueryWithDefaults + +`func NewModelsQueryModelsPagedMetadataFieldQueryWithDefaults() *ModelsQueryModelsPagedMetadataFieldQuery` + +NewModelsQueryModelsPagedMetadataFieldQueryWithDefaults instantiates a new ModelsQueryModelsPagedMetadataFieldQuery object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetQueryString + +`func (o *ModelsQueryModelsPagedMetadataFieldQuery) GetQueryString() string` + +GetQueryString returns the QueryString field if non-nil, zero value otherwise. + +### GetQueryStringOk + +`func (o *ModelsQueryModelsPagedMetadataFieldQuery) GetQueryStringOk() (*string, bool)` + +GetQueryStringOk returns a tuple with the QueryString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQueryString + +`func (o *ModelsQueryModelsPagedMetadataFieldQuery) SetQueryString(v string)` + +SetQueryString sets QueryString field to given value. + +### HasQueryString + +`func (o *ModelsQueryModelsPagedMetadataFieldQuery) HasQueryString() bool` + +HasQueryString returns a boolean if a field has been set. + +### GetPageReturned + +`func (o *ModelsQueryModelsPagedMetadataFieldQuery) GetPageReturned() int32` + +GetPageReturned returns the PageReturned field if non-nil, zero value otherwise. + +### GetPageReturnedOk + +`func (o *ModelsQueryModelsPagedMetadataFieldQuery) GetPageReturnedOk() (*int32, bool)` + +GetPageReturnedOk returns a tuple with the PageReturned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageReturned + +`func (o *ModelsQueryModelsPagedMetadataFieldQuery) SetPageReturned(v int32)` + +SetPageReturned sets PageReturned field to given value. + +### HasPageReturned + +`func (o *ModelsQueryModelsPagedMetadataFieldQuery) HasPageReturned() bool` + +HasPageReturned returns a boolean if a field has been set. + +### GetReturnLimit + +`func (o *ModelsQueryModelsPagedMetadataFieldQuery) GetReturnLimit() int32` + +GetReturnLimit returns the ReturnLimit field if non-nil, zero value otherwise. + +### GetReturnLimitOk + +`func (o *ModelsQueryModelsPagedMetadataFieldQuery) GetReturnLimitOk() (*int32, bool)` + +GetReturnLimitOk returns a tuple with the ReturnLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReturnLimit + +`func (o *ModelsQueryModelsPagedMetadataFieldQuery) SetReturnLimit(v int32)` + +SetReturnLimit sets ReturnLimit field to given value. + +### HasReturnLimit + +`func (o *ModelsQueryModelsPagedMetadataFieldQuery) HasReturnLimit() bool` + +HasReturnLimit returns a boolean if a field has been set. + +### GetSortField + +`func (o *ModelsQueryModelsPagedMetadataFieldQuery) GetSortField() string` + +GetSortField returns the SortField field if non-nil, zero value otherwise. + +### GetSortFieldOk + +`func (o *ModelsQueryModelsPagedMetadataFieldQuery) GetSortFieldOk() (*string, bool)` + +GetSortFieldOk returns a tuple with the SortField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortField + +`func (o *ModelsQueryModelsPagedMetadataFieldQuery) SetSortField(v string)` + +SetSortField sets SortField field to given value. + +### HasSortField + +`func (o *ModelsQueryModelsPagedMetadataFieldQuery) HasSortField() bool` + +HasSortField returns a boolean if a field has been set. + +### GetSortAscending + +`func (o *ModelsQueryModelsPagedMetadataFieldQuery) GetSortAscending() int32` + +GetSortAscending returns the SortAscending field if non-nil, zero value otherwise. + +### GetSortAscendingOk + +`func (o *ModelsQueryModelsPagedMetadataFieldQuery) GetSortAscendingOk() (*int32, bool)` + +GetSortAscendingOk returns a tuple with the SortAscending field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortAscending + +`func (o *ModelsQueryModelsPagedMetadataFieldQuery) SetSortAscending(v int32)` + +SetSortAscending sets SortAscending field to given value. + +### HasSortAscending + +`func (o *ModelsQueryModelsPagedMetadataFieldQuery) HasSortAscending() bool` + +HasSortAscending returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsQueryModelsPagedPendingAlertQuery.md b/v1/docs/ModelsQueryModelsPagedPendingAlertQuery.md new file mode 100644 index 0000000..a14d459 --- /dev/null +++ b/v1/docs/ModelsQueryModelsPagedPendingAlertQuery.md @@ -0,0 +1,160 @@ +# ModelsQueryModelsPagedPendingAlertQuery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**QueryString** | Pointer to **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | [optional] +**PageReturned** | Pointer to **int32** | The current page within the result set to be returned | [optional] +**ReturnLimit** | Pointer to **int32** | Maximum number of records to be returned in a single call | [optional] +**SortField** | Pointer to **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | [optional] +**SortAscending** | Pointer to **int32** | Field sort direction [0=ascending, 1=descending] | [optional] + +## Methods + +### NewModelsQueryModelsPagedPendingAlertQuery + +`func NewModelsQueryModelsPagedPendingAlertQuery() *ModelsQueryModelsPagedPendingAlertQuery` + +NewModelsQueryModelsPagedPendingAlertQuery instantiates a new ModelsQueryModelsPagedPendingAlertQuery object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsQueryModelsPagedPendingAlertQueryWithDefaults + +`func NewModelsQueryModelsPagedPendingAlertQueryWithDefaults() *ModelsQueryModelsPagedPendingAlertQuery` + +NewModelsQueryModelsPagedPendingAlertQueryWithDefaults instantiates a new ModelsQueryModelsPagedPendingAlertQuery object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetQueryString + +`func (o *ModelsQueryModelsPagedPendingAlertQuery) GetQueryString() string` + +GetQueryString returns the QueryString field if non-nil, zero value otherwise. + +### GetQueryStringOk + +`func (o *ModelsQueryModelsPagedPendingAlertQuery) GetQueryStringOk() (*string, bool)` + +GetQueryStringOk returns a tuple with the QueryString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQueryString + +`func (o *ModelsQueryModelsPagedPendingAlertQuery) SetQueryString(v string)` + +SetQueryString sets QueryString field to given value. + +### HasQueryString + +`func (o *ModelsQueryModelsPagedPendingAlertQuery) HasQueryString() bool` + +HasQueryString returns a boolean if a field has been set. + +### GetPageReturned + +`func (o *ModelsQueryModelsPagedPendingAlertQuery) GetPageReturned() int32` + +GetPageReturned returns the PageReturned field if non-nil, zero value otherwise. + +### GetPageReturnedOk + +`func (o *ModelsQueryModelsPagedPendingAlertQuery) GetPageReturnedOk() (*int32, bool)` + +GetPageReturnedOk returns a tuple with the PageReturned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageReturned + +`func (o *ModelsQueryModelsPagedPendingAlertQuery) SetPageReturned(v int32)` + +SetPageReturned sets PageReturned field to given value. + +### HasPageReturned + +`func (o *ModelsQueryModelsPagedPendingAlertQuery) HasPageReturned() bool` + +HasPageReturned returns a boolean if a field has been set. + +### GetReturnLimit + +`func (o *ModelsQueryModelsPagedPendingAlertQuery) GetReturnLimit() int32` + +GetReturnLimit returns the ReturnLimit field if non-nil, zero value otherwise. + +### GetReturnLimitOk + +`func (o *ModelsQueryModelsPagedPendingAlertQuery) GetReturnLimitOk() (*int32, bool)` + +GetReturnLimitOk returns a tuple with the ReturnLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReturnLimit + +`func (o *ModelsQueryModelsPagedPendingAlertQuery) SetReturnLimit(v int32)` + +SetReturnLimit sets ReturnLimit field to given value. + +### HasReturnLimit + +`func (o *ModelsQueryModelsPagedPendingAlertQuery) HasReturnLimit() bool` + +HasReturnLimit returns a boolean if a field has been set. + +### GetSortField + +`func (o *ModelsQueryModelsPagedPendingAlertQuery) GetSortField() string` + +GetSortField returns the SortField field if non-nil, zero value otherwise. + +### GetSortFieldOk + +`func (o *ModelsQueryModelsPagedPendingAlertQuery) GetSortFieldOk() (*string, bool)` + +GetSortFieldOk returns a tuple with the SortField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortField + +`func (o *ModelsQueryModelsPagedPendingAlertQuery) SetSortField(v string)` + +SetSortField sets SortField field to given value. + +### HasSortField + +`func (o *ModelsQueryModelsPagedPendingAlertQuery) HasSortField() bool` + +HasSortField returns a boolean if a field has been set. + +### GetSortAscending + +`func (o *ModelsQueryModelsPagedPendingAlertQuery) GetSortAscending() int32` + +GetSortAscending returns the SortAscending field if non-nil, zero value otherwise. + +### GetSortAscendingOk + +`func (o *ModelsQueryModelsPagedPendingAlertQuery) GetSortAscendingOk() (*int32, bool)` + +GetSortAscendingOk returns a tuple with the SortAscending field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortAscending + +`func (o *ModelsQueryModelsPagedPendingAlertQuery) SetSortAscending(v int32)` + +SetSortAscending sets SortAscending field to given value. + +### HasSortAscending + +`func (o *ModelsQueryModelsPagedPendingAlertQuery) HasSortAscending() bool` + +HasSortAscending returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsQueryModelsPagedPendingCSRQuery.md b/v1/docs/ModelsQueryModelsPagedPendingCSRQuery.md new file mode 100644 index 0000000..faf428f --- /dev/null +++ b/v1/docs/ModelsQueryModelsPagedPendingCSRQuery.md @@ -0,0 +1,160 @@ +# ModelsQueryModelsPagedPendingCSRQuery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**QueryString** | Pointer to **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | [optional] +**PageReturned** | Pointer to **int32** | The current page within the result set to be returned | [optional] +**ReturnLimit** | Pointer to **int32** | Maximum number of records to be returned in a single call | [optional] +**SortField** | Pointer to **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | [optional] +**SortAscending** | Pointer to **int32** | Field sort direction [0=ascending, 1=descending] | [optional] + +## Methods + +### NewModelsQueryModelsPagedPendingCSRQuery + +`func NewModelsQueryModelsPagedPendingCSRQuery() *ModelsQueryModelsPagedPendingCSRQuery` + +NewModelsQueryModelsPagedPendingCSRQuery instantiates a new ModelsQueryModelsPagedPendingCSRQuery object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsQueryModelsPagedPendingCSRQueryWithDefaults + +`func NewModelsQueryModelsPagedPendingCSRQueryWithDefaults() *ModelsQueryModelsPagedPendingCSRQuery` + +NewModelsQueryModelsPagedPendingCSRQueryWithDefaults instantiates a new ModelsQueryModelsPagedPendingCSRQuery object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetQueryString + +`func (o *ModelsQueryModelsPagedPendingCSRQuery) GetQueryString() string` + +GetQueryString returns the QueryString field if non-nil, zero value otherwise. + +### GetQueryStringOk + +`func (o *ModelsQueryModelsPagedPendingCSRQuery) GetQueryStringOk() (*string, bool)` + +GetQueryStringOk returns a tuple with the QueryString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQueryString + +`func (o *ModelsQueryModelsPagedPendingCSRQuery) SetQueryString(v string)` + +SetQueryString sets QueryString field to given value. + +### HasQueryString + +`func (o *ModelsQueryModelsPagedPendingCSRQuery) HasQueryString() bool` + +HasQueryString returns a boolean if a field has been set. + +### GetPageReturned + +`func (o *ModelsQueryModelsPagedPendingCSRQuery) GetPageReturned() int32` + +GetPageReturned returns the PageReturned field if non-nil, zero value otherwise. + +### GetPageReturnedOk + +`func (o *ModelsQueryModelsPagedPendingCSRQuery) GetPageReturnedOk() (*int32, bool)` + +GetPageReturnedOk returns a tuple with the PageReturned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageReturned + +`func (o *ModelsQueryModelsPagedPendingCSRQuery) SetPageReturned(v int32)` + +SetPageReturned sets PageReturned field to given value. + +### HasPageReturned + +`func (o *ModelsQueryModelsPagedPendingCSRQuery) HasPageReturned() bool` + +HasPageReturned returns a boolean if a field has been set. + +### GetReturnLimit + +`func (o *ModelsQueryModelsPagedPendingCSRQuery) GetReturnLimit() int32` + +GetReturnLimit returns the ReturnLimit field if non-nil, zero value otherwise. + +### GetReturnLimitOk + +`func (o *ModelsQueryModelsPagedPendingCSRQuery) GetReturnLimitOk() (*int32, bool)` + +GetReturnLimitOk returns a tuple with the ReturnLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReturnLimit + +`func (o *ModelsQueryModelsPagedPendingCSRQuery) SetReturnLimit(v int32)` + +SetReturnLimit sets ReturnLimit field to given value. + +### HasReturnLimit + +`func (o *ModelsQueryModelsPagedPendingCSRQuery) HasReturnLimit() bool` + +HasReturnLimit returns a boolean if a field has been set. + +### GetSortField + +`func (o *ModelsQueryModelsPagedPendingCSRQuery) GetSortField() string` + +GetSortField returns the SortField field if non-nil, zero value otherwise. + +### GetSortFieldOk + +`func (o *ModelsQueryModelsPagedPendingCSRQuery) GetSortFieldOk() (*string, bool)` + +GetSortFieldOk returns a tuple with the SortField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortField + +`func (o *ModelsQueryModelsPagedPendingCSRQuery) SetSortField(v string)` + +SetSortField sets SortField field to given value. + +### HasSortField + +`func (o *ModelsQueryModelsPagedPendingCSRQuery) HasSortField() bool` + +HasSortField returns a boolean if a field has been set. + +### GetSortAscending + +`func (o *ModelsQueryModelsPagedPendingCSRQuery) GetSortAscending() int32` + +GetSortAscending returns the SortAscending field if non-nil, zero value otherwise. + +### GetSortAscendingOk + +`func (o *ModelsQueryModelsPagedPendingCSRQuery) GetSortAscendingOk() (*int32, bool)` + +GetSortAscendingOk returns a tuple with the SortAscending field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortAscending + +`func (o *ModelsQueryModelsPagedPendingCSRQuery) SetSortAscending(v int32)` + +SetSortAscending sets SortAscending field to given value. + +### HasSortAscending + +`func (o *ModelsQueryModelsPagedPendingCSRQuery) HasSortAscending() bool` + +HasSortAscending returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsQueryModelsPagedReportQuery.md b/v1/docs/ModelsQueryModelsPagedReportQuery.md new file mode 100644 index 0000000..3f331ae --- /dev/null +++ b/v1/docs/ModelsQueryModelsPagedReportQuery.md @@ -0,0 +1,186 @@ +# ModelsQueryModelsPagedReportQuery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AmmendedQuery** | Pointer to **string** | | [optional] [readonly] +**QueryString** | Pointer to **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | [optional] +**PageReturned** | Pointer to **int32** | The current page within the result set to be returned | [optional] +**ReturnLimit** | Pointer to **int32** | Maximum number of records to be returned in a single call | [optional] +**SortField** | Pointer to **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | [optional] +**SortAscending** | Pointer to **int32** | Field sort direction [0=ascending, 1=descending] | [optional] + +## Methods + +### NewModelsQueryModelsPagedReportQuery + +`func NewModelsQueryModelsPagedReportQuery() *ModelsQueryModelsPagedReportQuery` + +NewModelsQueryModelsPagedReportQuery instantiates a new ModelsQueryModelsPagedReportQuery object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsQueryModelsPagedReportQueryWithDefaults + +`func NewModelsQueryModelsPagedReportQueryWithDefaults() *ModelsQueryModelsPagedReportQuery` + +NewModelsQueryModelsPagedReportQueryWithDefaults instantiates a new ModelsQueryModelsPagedReportQuery object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAmmendedQuery + +`func (o *ModelsQueryModelsPagedReportQuery) GetAmmendedQuery() string` + +GetAmmendedQuery returns the AmmendedQuery field if non-nil, zero value otherwise. + +### GetAmmendedQueryOk + +`func (o *ModelsQueryModelsPagedReportQuery) GetAmmendedQueryOk() (*string, bool)` + +GetAmmendedQueryOk returns a tuple with the AmmendedQuery field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAmmendedQuery + +`func (o *ModelsQueryModelsPagedReportQuery) SetAmmendedQuery(v string)` + +SetAmmendedQuery sets AmmendedQuery field to given value. + +### HasAmmendedQuery + +`func (o *ModelsQueryModelsPagedReportQuery) HasAmmendedQuery() bool` + +HasAmmendedQuery returns a boolean if a field has been set. + +### GetQueryString + +`func (o *ModelsQueryModelsPagedReportQuery) GetQueryString() string` + +GetQueryString returns the QueryString field if non-nil, zero value otherwise. + +### GetQueryStringOk + +`func (o *ModelsQueryModelsPagedReportQuery) GetQueryStringOk() (*string, bool)` + +GetQueryStringOk returns a tuple with the QueryString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQueryString + +`func (o *ModelsQueryModelsPagedReportQuery) SetQueryString(v string)` + +SetQueryString sets QueryString field to given value. + +### HasQueryString + +`func (o *ModelsQueryModelsPagedReportQuery) HasQueryString() bool` + +HasQueryString returns a boolean if a field has been set. + +### GetPageReturned + +`func (o *ModelsQueryModelsPagedReportQuery) GetPageReturned() int32` + +GetPageReturned returns the PageReturned field if non-nil, zero value otherwise. + +### GetPageReturnedOk + +`func (o *ModelsQueryModelsPagedReportQuery) GetPageReturnedOk() (*int32, bool)` + +GetPageReturnedOk returns a tuple with the PageReturned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageReturned + +`func (o *ModelsQueryModelsPagedReportQuery) SetPageReturned(v int32)` + +SetPageReturned sets PageReturned field to given value. + +### HasPageReturned + +`func (o *ModelsQueryModelsPagedReportQuery) HasPageReturned() bool` + +HasPageReturned returns a boolean if a field has been set. + +### GetReturnLimit + +`func (o *ModelsQueryModelsPagedReportQuery) GetReturnLimit() int32` + +GetReturnLimit returns the ReturnLimit field if non-nil, zero value otherwise. + +### GetReturnLimitOk + +`func (o *ModelsQueryModelsPagedReportQuery) GetReturnLimitOk() (*int32, bool)` + +GetReturnLimitOk returns a tuple with the ReturnLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReturnLimit + +`func (o *ModelsQueryModelsPagedReportQuery) SetReturnLimit(v int32)` + +SetReturnLimit sets ReturnLimit field to given value. + +### HasReturnLimit + +`func (o *ModelsQueryModelsPagedReportQuery) HasReturnLimit() bool` + +HasReturnLimit returns a boolean if a field has been set. + +### GetSortField + +`func (o *ModelsQueryModelsPagedReportQuery) GetSortField() string` + +GetSortField returns the SortField field if non-nil, zero value otherwise. + +### GetSortFieldOk + +`func (o *ModelsQueryModelsPagedReportQuery) GetSortFieldOk() (*string, bool)` + +GetSortFieldOk returns a tuple with the SortField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortField + +`func (o *ModelsQueryModelsPagedReportQuery) SetSortField(v string)` + +SetSortField sets SortField field to given value. + +### HasSortField + +`func (o *ModelsQueryModelsPagedReportQuery) HasSortField() bool` + +HasSortField returns a boolean if a field has been set. + +### GetSortAscending + +`func (o *ModelsQueryModelsPagedReportQuery) GetSortAscending() int32` + +GetSortAscending returns the SortAscending field if non-nil, zero value otherwise. + +### GetSortAscendingOk + +`func (o *ModelsQueryModelsPagedReportQuery) GetSortAscendingOk() (*int32, bool)` + +GetSortAscendingOk returns a tuple with the SortAscending field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortAscending + +`func (o *ModelsQueryModelsPagedReportQuery) SetSortAscending(v int32)` + +SetSortAscending sets SortAscending field to given value. + +### HasSortAscending + +`func (o *ModelsQueryModelsPagedReportQuery) HasSortAscending() bool` + +HasSortAscending returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsQueryModelsPagedReportScheduleQuery.md b/v1/docs/ModelsQueryModelsPagedReportScheduleQuery.md new file mode 100644 index 0000000..8e4917b --- /dev/null +++ b/v1/docs/ModelsQueryModelsPagedReportScheduleQuery.md @@ -0,0 +1,160 @@ +# ModelsQueryModelsPagedReportScheduleQuery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**QueryString** | Pointer to **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | [optional] +**PageReturned** | Pointer to **int32** | The current page within the result set to be returned | [optional] +**ReturnLimit** | Pointer to **int32** | Maximum number of records to be returned in a single call | [optional] +**SortField** | Pointer to **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | [optional] +**SortAscending** | Pointer to **int32** | Field sort direction [0=ascending, 1=descending] | [optional] + +## Methods + +### NewModelsQueryModelsPagedReportScheduleQuery + +`func NewModelsQueryModelsPagedReportScheduleQuery() *ModelsQueryModelsPagedReportScheduleQuery` + +NewModelsQueryModelsPagedReportScheduleQuery instantiates a new ModelsQueryModelsPagedReportScheduleQuery object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsQueryModelsPagedReportScheduleQueryWithDefaults + +`func NewModelsQueryModelsPagedReportScheduleQueryWithDefaults() *ModelsQueryModelsPagedReportScheduleQuery` + +NewModelsQueryModelsPagedReportScheduleQueryWithDefaults instantiates a new ModelsQueryModelsPagedReportScheduleQuery object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetQueryString + +`func (o *ModelsQueryModelsPagedReportScheduleQuery) GetQueryString() string` + +GetQueryString returns the QueryString field if non-nil, zero value otherwise. + +### GetQueryStringOk + +`func (o *ModelsQueryModelsPagedReportScheduleQuery) GetQueryStringOk() (*string, bool)` + +GetQueryStringOk returns a tuple with the QueryString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQueryString + +`func (o *ModelsQueryModelsPagedReportScheduleQuery) SetQueryString(v string)` + +SetQueryString sets QueryString field to given value. + +### HasQueryString + +`func (o *ModelsQueryModelsPagedReportScheduleQuery) HasQueryString() bool` + +HasQueryString returns a boolean if a field has been set. + +### GetPageReturned + +`func (o *ModelsQueryModelsPagedReportScheduleQuery) GetPageReturned() int32` + +GetPageReturned returns the PageReturned field if non-nil, zero value otherwise. + +### GetPageReturnedOk + +`func (o *ModelsQueryModelsPagedReportScheduleQuery) GetPageReturnedOk() (*int32, bool)` + +GetPageReturnedOk returns a tuple with the PageReturned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageReturned + +`func (o *ModelsQueryModelsPagedReportScheduleQuery) SetPageReturned(v int32)` + +SetPageReturned sets PageReturned field to given value. + +### HasPageReturned + +`func (o *ModelsQueryModelsPagedReportScheduleQuery) HasPageReturned() bool` + +HasPageReturned returns a boolean if a field has been set. + +### GetReturnLimit + +`func (o *ModelsQueryModelsPagedReportScheduleQuery) GetReturnLimit() int32` + +GetReturnLimit returns the ReturnLimit field if non-nil, zero value otherwise. + +### GetReturnLimitOk + +`func (o *ModelsQueryModelsPagedReportScheduleQuery) GetReturnLimitOk() (*int32, bool)` + +GetReturnLimitOk returns a tuple with the ReturnLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReturnLimit + +`func (o *ModelsQueryModelsPagedReportScheduleQuery) SetReturnLimit(v int32)` + +SetReturnLimit sets ReturnLimit field to given value. + +### HasReturnLimit + +`func (o *ModelsQueryModelsPagedReportScheduleQuery) HasReturnLimit() bool` + +HasReturnLimit returns a boolean if a field has been set. + +### GetSortField + +`func (o *ModelsQueryModelsPagedReportScheduleQuery) GetSortField() string` + +GetSortField returns the SortField field if non-nil, zero value otherwise. + +### GetSortFieldOk + +`func (o *ModelsQueryModelsPagedReportScheduleQuery) GetSortFieldOk() (*string, bool)` + +GetSortFieldOk returns a tuple with the SortField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortField + +`func (o *ModelsQueryModelsPagedReportScheduleQuery) SetSortField(v string)` + +SetSortField sets SortField field to given value. + +### HasSortField + +`func (o *ModelsQueryModelsPagedReportScheduleQuery) HasSortField() bool` + +HasSortField returns a boolean if a field has been set. + +### GetSortAscending + +`func (o *ModelsQueryModelsPagedReportScheduleQuery) GetSortAscending() int32` + +GetSortAscending returns the SortAscending field if non-nil, zero value otherwise. + +### GetSortAscendingOk + +`func (o *ModelsQueryModelsPagedReportScheduleQuery) GetSortAscendingOk() (*int32, bool)` + +GetSortAscendingOk returns a tuple with the SortAscending field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortAscending + +`func (o *ModelsQueryModelsPagedReportScheduleQuery) SetSortAscending(v int32)` + +SetSortAscending sets SortAscending field to given value. + +### HasSortAscending + +`func (o *ModelsQueryModelsPagedReportScheduleQuery) HasSortAscending() bool` + +HasSortAscending returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsQueryModelsPagedRevocationMonitoringQuery.md b/v1/docs/ModelsQueryModelsPagedRevocationMonitoringQuery.md new file mode 100644 index 0000000..2795160 --- /dev/null +++ b/v1/docs/ModelsQueryModelsPagedRevocationMonitoringQuery.md @@ -0,0 +1,160 @@ +# ModelsQueryModelsPagedRevocationMonitoringQuery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**QueryString** | Pointer to **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | [optional] +**PageReturned** | Pointer to **int32** | The current page within the result set to be returned | [optional] +**ReturnLimit** | Pointer to **int32** | Maximum number of records to be returned in a single call | [optional] +**SortField** | Pointer to **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | [optional] +**SortAscending** | Pointer to **int32** | Field sort direction [0=ascending, 1=descending] | [optional] + +## Methods + +### NewModelsQueryModelsPagedRevocationMonitoringQuery + +`func NewModelsQueryModelsPagedRevocationMonitoringQuery() *ModelsQueryModelsPagedRevocationMonitoringQuery` + +NewModelsQueryModelsPagedRevocationMonitoringQuery instantiates a new ModelsQueryModelsPagedRevocationMonitoringQuery object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsQueryModelsPagedRevocationMonitoringQueryWithDefaults + +`func NewModelsQueryModelsPagedRevocationMonitoringQueryWithDefaults() *ModelsQueryModelsPagedRevocationMonitoringQuery` + +NewModelsQueryModelsPagedRevocationMonitoringQueryWithDefaults instantiates a new ModelsQueryModelsPagedRevocationMonitoringQuery object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetQueryString + +`func (o *ModelsQueryModelsPagedRevocationMonitoringQuery) GetQueryString() string` + +GetQueryString returns the QueryString field if non-nil, zero value otherwise. + +### GetQueryStringOk + +`func (o *ModelsQueryModelsPagedRevocationMonitoringQuery) GetQueryStringOk() (*string, bool)` + +GetQueryStringOk returns a tuple with the QueryString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQueryString + +`func (o *ModelsQueryModelsPagedRevocationMonitoringQuery) SetQueryString(v string)` + +SetQueryString sets QueryString field to given value. + +### HasQueryString + +`func (o *ModelsQueryModelsPagedRevocationMonitoringQuery) HasQueryString() bool` + +HasQueryString returns a boolean if a field has been set. + +### GetPageReturned + +`func (o *ModelsQueryModelsPagedRevocationMonitoringQuery) GetPageReturned() int32` + +GetPageReturned returns the PageReturned field if non-nil, zero value otherwise. + +### GetPageReturnedOk + +`func (o *ModelsQueryModelsPagedRevocationMonitoringQuery) GetPageReturnedOk() (*int32, bool)` + +GetPageReturnedOk returns a tuple with the PageReturned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageReturned + +`func (o *ModelsQueryModelsPagedRevocationMonitoringQuery) SetPageReturned(v int32)` + +SetPageReturned sets PageReturned field to given value. + +### HasPageReturned + +`func (o *ModelsQueryModelsPagedRevocationMonitoringQuery) HasPageReturned() bool` + +HasPageReturned returns a boolean if a field has been set. + +### GetReturnLimit + +`func (o *ModelsQueryModelsPagedRevocationMonitoringQuery) GetReturnLimit() int32` + +GetReturnLimit returns the ReturnLimit field if non-nil, zero value otherwise. + +### GetReturnLimitOk + +`func (o *ModelsQueryModelsPagedRevocationMonitoringQuery) GetReturnLimitOk() (*int32, bool)` + +GetReturnLimitOk returns a tuple with the ReturnLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReturnLimit + +`func (o *ModelsQueryModelsPagedRevocationMonitoringQuery) SetReturnLimit(v int32)` + +SetReturnLimit sets ReturnLimit field to given value. + +### HasReturnLimit + +`func (o *ModelsQueryModelsPagedRevocationMonitoringQuery) HasReturnLimit() bool` + +HasReturnLimit returns a boolean if a field has been set. + +### GetSortField + +`func (o *ModelsQueryModelsPagedRevocationMonitoringQuery) GetSortField() string` + +GetSortField returns the SortField field if non-nil, zero value otherwise. + +### GetSortFieldOk + +`func (o *ModelsQueryModelsPagedRevocationMonitoringQuery) GetSortFieldOk() (*string, bool)` + +GetSortFieldOk returns a tuple with the SortField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortField + +`func (o *ModelsQueryModelsPagedRevocationMonitoringQuery) SetSortField(v string)` + +SetSortField sets SortField field to given value. + +### HasSortField + +`func (o *ModelsQueryModelsPagedRevocationMonitoringQuery) HasSortField() bool` + +HasSortField returns a boolean if a field has been set. + +### GetSortAscending + +`func (o *ModelsQueryModelsPagedRevocationMonitoringQuery) GetSortAscending() int32` + +GetSortAscending returns the SortAscending field if non-nil, zero value otherwise. + +### GetSortAscendingOk + +`func (o *ModelsQueryModelsPagedRevocationMonitoringQuery) GetSortAscendingOk() (*int32, bool)` + +GetSortAscendingOk returns a tuple with the SortAscending field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortAscending + +`func (o *ModelsQueryModelsPagedRevocationMonitoringQuery) SetSortAscending(v int32)` + +SetSortAscending sets SortAscending field to given value. + +### HasSortAscending + +`func (o *ModelsQueryModelsPagedRevocationMonitoringQuery) HasSortAscending() bool` + +HasSortAscending returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsQueryModelsPagedSSHLogonQuery.md b/v1/docs/ModelsQueryModelsPagedSSHLogonQuery.md new file mode 100644 index 0000000..d8b70a5 --- /dev/null +++ b/v1/docs/ModelsQueryModelsPagedSSHLogonQuery.md @@ -0,0 +1,160 @@ +# ModelsQueryModelsPagedSSHLogonQuery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**QueryString** | Pointer to **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | [optional] +**PageReturned** | Pointer to **int32** | The current page within the result set to be returned | [optional] +**ReturnLimit** | Pointer to **int32** | Maximum number of records to be returned in a single call | [optional] +**SortField** | Pointer to **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | [optional] +**SortAscending** | Pointer to **int32** | Field sort direction [0=ascending, 1=descending] | [optional] + +## Methods + +### NewModelsQueryModelsPagedSSHLogonQuery + +`func NewModelsQueryModelsPagedSSHLogonQuery() *ModelsQueryModelsPagedSSHLogonQuery` + +NewModelsQueryModelsPagedSSHLogonQuery instantiates a new ModelsQueryModelsPagedSSHLogonQuery object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsQueryModelsPagedSSHLogonQueryWithDefaults + +`func NewModelsQueryModelsPagedSSHLogonQueryWithDefaults() *ModelsQueryModelsPagedSSHLogonQuery` + +NewModelsQueryModelsPagedSSHLogonQueryWithDefaults instantiates a new ModelsQueryModelsPagedSSHLogonQuery object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetQueryString + +`func (o *ModelsQueryModelsPagedSSHLogonQuery) GetQueryString() string` + +GetQueryString returns the QueryString field if non-nil, zero value otherwise. + +### GetQueryStringOk + +`func (o *ModelsQueryModelsPagedSSHLogonQuery) GetQueryStringOk() (*string, bool)` + +GetQueryStringOk returns a tuple with the QueryString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQueryString + +`func (o *ModelsQueryModelsPagedSSHLogonQuery) SetQueryString(v string)` + +SetQueryString sets QueryString field to given value. + +### HasQueryString + +`func (o *ModelsQueryModelsPagedSSHLogonQuery) HasQueryString() bool` + +HasQueryString returns a boolean if a field has been set. + +### GetPageReturned + +`func (o *ModelsQueryModelsPagedSSHLogonQuery) GetPageReturned() int32` + +GetPageReturned returns the PageReturned field if non-nil, zero value otherwise. + +### GetPageReturnedOk + +`func (o *ModelsQueryModelsPagedSSHLogonQuery) GetPageReturnedOk() (*int32, bool)` + +GetPageReturnedOk returns a tuple with the PageReturned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageReturned + +`func (o *ModelsQueryModelsPagedSSHLogonQuery) SetPageReturned(v int32)` + +SetPageReturned sets PageReturned field to given value. + +### HasPageReturned + +`func (o *ModelsQueryModelsPagedSSHLogonQuery) HasPageReturned() bool` + +HasPageReturned returns a boolean if a field has been set. + +### GetReturnLimit + +`func (o *ModelsQueryModelsPagedSSHLogonQuery) GetReturnLimit() int32` + +GetReturnLimit returns the ReturnLimit field if non-nil, zero value otherwise. + +### GetReturnLimitOk + +`func (o *ModelsQueryModelsPagedSSHLogonQuery) GetReturnLimitOk() (*int32, bool)` + +GetReturnLimitOk returns a tuple with the ReturnLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReturnLimit + +`func (o *ModelsQueryModelsPagedSSHLogonQuery) SetReturnLimit(v int32)` + +SetReturnLimit sets ReturnLimit field to given value. + +### HasReturnLimit + +`func (o *ModelsQueryModelsPagedSSHLogonQuery) HasReturnLimit() bool` + +HasReturnLimit returns a boolean if a field has been set. + +### GetSortField + +`func (o *ModelsQueryModelsPagedSSHLogonQuery) GetSortField() string` + +GetSortField returns the SortField field if non-nil, zero value otherwise. + +### GetSortFieldOk + +`func (o *ModelsQueryModelsPagedSSHLogonQuery) GetSortFieldOk() (*string, bool)` + +GetSortFieldOk returns a tuple with the SortField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortField + +`func (o *ModelsQueryModelsPagedSSHLogonQuery) SetSortField(v string)` + +SetSortField sets SortField field to given value. + +### HasSortField + +`func (o *ModelsQueryModelsPagedSSHLogonQuery) HasSortField() bool` + +HasSortField returns a boolean if a field has been set. + +### GetSortAscending + +`func (o *ModelsQueryModelsPagedSSHLogonQuery) GetSortAscending() int32` + +GetSortAscending returns the SortAscending field if non-nil, zero value otherwise. + +### GetSortAscendingOk + +`func (o *ModelsQueryModelsPagedSSHLogonQuery) GetSortAscendingOk() (*int32, bool)` + +GetSortAscendingOk returns a tuple with the SortAscending field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortAscending + +`func (o *ModelsQueryModelsPagedSSHLogonQuery) SetSortAscending(v int32)` + +SetSortAscending sets SortAscending field to given value. + +### HasSortAscending + +`func (o *ModelsQueryModelsPagedSSHLogonQuery) HasSortAscending() bool` + +HasSortAscending returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsQueryModelsPagedSSHServerGroupQuery.md b/v1/docs/ModelsQueryModelsPagedSSHServerGroupQuery.md new file mode 100644 index 0000000..86f2eb7 --- /dev/null +++ b/v1/docs/ModelsQueryModelsPagedSSHServerGroupQuery.md @@ -0,0 +1,160 @@ +# ModelsQueryModelsPagedSSHServerGroupQuery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**QueryString** | Pointer to **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | [optional] +**PageReturned** | Pointer to **int32** | The current page within the result set to be returned | [optional] +**ReturnLimit** | Pointer to **int32** | Maximum number of records to be returned in a single call | [optional] +**SortField** | Pointer to **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | [optional] +**SortAscending** | Pointer to **int32** | Field sort direction [0=ascending, 1=descending] | [optional] + +## Methods + +### NewModelsQueryModelsPagedSSHServerGroupQuery + +`func NewModelsQueryModelsPagedSSHServerGroupQuery() *ModelsQueryModelsPagedSSHServerGroupQuery` + +NewModelsQueryModelsPagedSSHServerGroupQuery instantiates a new ModelsQueryModelsPagedSSHServerGroupQuery object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsQueryModelsPagedSSHServerGroupQueryWithDefaults + +`func NewModelsQueryModelsPagedSSHServerGroupQueryWithDefaults() *ModelsQueryModelsPagedSSHServerGroupQuery` + +NewModelsQueryModelsPagedSSHServerGroupQueryWithDefaults instantiates a new ModelsQueryModelsPagedSSHServerGroupQuery object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetQueryString + +`func (o *ModelsQueryModelsPagedSSHServerGroupQuery) GetQueryString() string` + +GetQueryString returns the QueryString field if non-nil, zero value otherwise. + +### GetQueryStringOk + +`func (o *ModelsQueryModelsPagedSSHServerGroupQuery) GetQueryStringOk() (*string, bool)` + +GetQueryStringOk returns a tuple with the QueryString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQueryString + +`func (o *ModelsQueryModelsPagedSSHServerGroupQuery) SetQueryString(v string)` + +SetQueryString sets QueryString field to given value. + +### HasQueryString + +`func (o *ModelsQueryModelsPagedSSHServerGroupQuery) HasQueryString() bool` + +HasQueryString returns a boolean if a field has been set. + +### GetPageReturned + +`func (o *ModelsQueryModelsPagedSSHServerGroupQuery) GetPageReturned() int32` + +GetPageReturned returns the PageReturned field if non-nil, zero value otherwise. + +### GetPageReturnedOk + +`func (o *ModelsQueryModelsPagedSSHServerGroupQuery) GetPageReturnedOk() (*int32, bool)` + +GetPageReturnedOk returns a tuple with the PageReturned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageReturned + +`func (o *ModelsQueryModelsPagedSSHServerGroupQuery) SetPageReturned(v int32)` + +SetPageReturned sets PageReturned field to given value. + +### HasPageReturned + +`func (o *ModelsQueryModelsPagedSSHServerGroupQuery) HasPageReturned() bool` + +HasPageReturned returns a boolean if a field has been set. + +### GetReturnLimit + +`func (o *ModelsQueryModelsPagedSSHServerGroupQuery) GetReturnLimit() int32` + +GetReturnLimit returns the ReturnLimit field if non-nil, zero value otherwise. + +### GetReturnLimitOk + +`func (o *ModelsQueryModelsPagedSSHServerGroupQuery) GetReturnLimitOk() (*int32, bool)` + +GetReturnLimitOk returns a tuple with the ReturnLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReturnLimit + +`func (o *ModelsQueryModelsPagedSSHServerGroupQuery) SetReturnLimit(v int32)` + +SetReturnLimit sets ReturnLimit field to given value. + +### HasReturnLimit + +`func (o *ModelsQueryModelsPagedSSHServerGroupQuery) HasReturnLimit() bool` + +HasReturnLimit returns a boolean if a field has been set. + +### GetSortField + +`func (o *ModelsQueryModelsPagedSSHServerGroupQuery) GetSortField() string` + +GetSortField returns the SortField field if non-nil, zero value otherwise. + +### GetSortFieldOk + +`func (o *ModelsQueryModelsPagedSSHServerGroupQuery) GetSortFieldOk() (*string, bool)` + +GetSortFieldOk returns a tuple with the SortField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortField + +`func (o *ModelsQueryModelsPagedSSHServerGroupQuery) SetSortField(v string)` + +SetSortField sets SortField field to given value. + +### HasSortField + +`func (o *ModelsQueryModelsPagedSSHServerGroupQuery) HasSortField() bool` + +HasSortField returns a boolean if a field has been set. + +### GetSortAscending + +`func (o *ModelsQueryModelsPagedSSHServerGroupQuery) GetSortAscending() int32` + +GetSortAscending returns the SortAscending field if non-nil, zero value otherwise. + +### GetSortAscendingOk + +`func (o *ModelsQueryModelsPagedSSHServerGroupQuery) GetSortAscendingOk() (*int32, bool)` + +GetSortAscendingOk returns a tuple with the SortAscending field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortAscending + +`func (o *ModelsQueryModelsPagedSSHServerGroupQuery) SetSortAscending(v int32)` + +SetSortAscending sets SortAscending field to given value. + +### HasSortAscending + +`func (o *ModelsQueryModelsPagedSSHServerGroupQuery) HasSortAscending() bool` + +HasSortAscending returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsQueryModelsPagedSSHServerQuery.md b/v1/docs/ModelsQueryModelsPagedSSHServerQuery.md new file mode 100644 index 0000000..0dd719b --- /dev/null +++ b/v1/docs/ModelsQueryModelsPagedSSHServerQuery.md @@ -0,0 +1,160 @@ +# ModelsQueryModelsPagedSSHServerQuery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**QueryString** | Pointer to **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | [optional] +**PageReturned** | Pointer to **int32** | The current page within the result set to be returned | [optional] +**ReturnLimit** | Pointer to **int32** | Maximum number of records to be returned in a single call | [optional] +**SortField** | Pointer to **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | [optional] +**SortAscending** | Pointer to **int32** | Field sort direction [0=ascending, 1=descending] | [optional] + +## Methods + +### NewModelsQueryModelsPagedSSHServerQuery + +`func NewModelsQueryModelsPagedSSHServerQuery() *ModelsQueryModelsPagedSSHServerQuery` + +NewModelsQueryModelsPagedSSHServerQuery instantiates a new ModelsQueryModelsPagedSSHServerQuery object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsQueryModelsPagedSSHServerQueryWithDefaults + +`func NewModelsQueryModelsPagedSSHServerQueryWithDefaults() *ModelsQueryModelsPagedSSHServerQuery` + +NewModelsQueryModelsPagedSSHServerQueryWithDefaults instantiates a new ModelsQueryModelsPagedSSHServerQuery object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetQueryString + +`func (o *ModelsQueryModelsPagedSSHServerQuery) GetQueryString() string` + +GetQueryString returns the QueryString field if non-nil, zero value otherwise. + +### GetQueryStringOk + +`func (o *ModelsQueryModelsPagedSSHServerQuery) GetQueryStringOk() (*string, bool)` + +GetQueryStringOk returns a tuple with the QueryString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQueryString + +`func (o *ModelsQueryModelsPagedSSHServerQuery) SetQueryString(v string)` + +SetQueryString sets QueryString field to given value. + +### HasQueryString + +`func (o *ModelsQueryModelsPagedSSHServerQuery) HasQueryString() bool` + +HasQueryString returns a boolean if a field has been set. + +### GetPageReturned + +`func (o *ModelsQueryModelsPagedSSHServerQuery) GetPageReturned() int32` + +GetPageReturned returns the PageReturned field if non-nil, zero value otherwise. + +### GetPageReturnedOk + +`func (o *ModelsQueryModelsPagedSSHServerQuery) GetPageReturnedOk() (*int32, bool)` + +GetPageReturnedOk returns a tuple with the PageReturned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageReturned + +`func (o *ModelsQueryModelsPagedSSHServerQuery) SetPageReturned(v int32)` + +SetPageReturned sets PageReturned field to given value. + +### HasPageReturned + +`func (o *ModelsQueryModelsPagedSSHServerQuery) HasPageReturned() bool` + +HasPageReturned returns a boolean if a field has been set. + +### GetReturnLimit + +`func (o *ModelsQueryModelsPagedSSHServerQuery) GetReturnLimit() int32` + +GetReturnLimit returns the ReturnLimit field if non-nil, zero value otherwise. + +### GetReturnLimitOk + +`func (o *ModelsQueryModelsPagedSSHServerQuery) GetReturnLimitOk() (*int32, bool)` + +GetReturnLimitOk returns a tuple with the ReturnLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReturnLimit + +`func (o *ModelsQueryModelsPagedSSHServerQuery) SetReturnLimit(v int32)` + +SetReturnLimit sets ReturnLimit field to given value. + +### HasReturnLimit + +`func (o *ModelsQueryModelsPagedSSHServerQuery) HasReturnLimit() bool` + +HasReturnLimit returns a boolean if a field has been set. + +### GetSortField + +`func (o *ModelsQueryModelsPagedSSHServerQuery) GetSortField() string` + +GetSortField returns the SortField field if non-nil, zero value otherwise. + +### GetSortFieldOk + +`func (o *ModelsQueryModelsPagedSSHServerQuery) GetSortFieldOk() (*string, bool)` + +GetSortFieldOk returns a tuple with the SortField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortField + +`func (o *ModelsQueryModelsPagedSSHServerQuery) SetSortField(v string)` + +SetSortField sets SortField field to given value. + +### HasSortField + +`func (o *ModelsQueryModelsPagedSSHServerQuery) HasSortField() bool` + +HasSortField returns a boolean if a field has been set. + +### GetSortAscending + +`func (o *ModelsQueryModelsPagedSSHServerQuery) GetSortAscending() int32` + +GetSortAscending returns the SortAscending field if non-nil, zero value otherwise. + +### GetSortAscendingOk + +`func (o *ModelsQueryModelsPagedSSHServerQuery) GetSortAscendingOk() (*int32, bool)` + +GetSortAscendingOk returns a tuple with the SortAscending field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortAscending + +`func (o *ModelsQueryModelsPagedSSHServerQuery) SetSortAscending(v int32)` + +SetSortAscending sets SortAscending field to given value. + +### HasSortAscending + +`func (o *ModelsQueryModelsPagedSSHServerQuery) HasSortAscending() bool` + +HasSortAscending returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsQueryModelsPagedSSHServiceAccountQuery.md b/v1/docs/ModelsQueryModelsPagedSSHServiceAccountQuery.md new file mode 100644 index 0000000..9d75ad5 --- /dev/null +++ b/v1/docs/ModelsQueryModelsPagedSSHServiceAccountQuery.md @@ -0,0 +1,160 @@ +# ModelsQueryModelsPagedSSHServiceAccountQuery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**QueryString** | Pointer to **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | [optional] +**PageReturned** | Pointer to **int32** | The current page within the result set to be returned | [optional] +**ReturnLimit** | Pointer to **int32** | Maximum number of records to be returned in a single call | [optional] +**SortField** | Pointer to **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | [optional] +**SortAscending** | Pointer to **int32** | Field sort direction [0=ascending, 1=descending] | [optional] + +## Methods + +### NewModelsQueryModelsPagedSSHServiceAccountQuery + +`func NewModelsQueryModelsPagedSSHServiceAccountQuery() *ModelsQueryModelsPagedSSHServiceAccountQuery` + +NewModelsQueryModelsPagedSSHServiceAccountQuery instantiates a new ModelsQueryModelsPagedSSHServiceAccountQuery object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsQueryModelsPagedSSHServiceAccountQueryWithDefaults + +`func NewModelsQueryModelsPagedSSHServiceAccountQueryWithDefaults() *ModelsQueryModelsPagedSSHServiceAccountQuery` + +NewModelsQueryModelsPagedSSHServiceAccountQueryWithDefaults instantiates a new ModelsQueryModelsPagedSSHServiceAccountQuery object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetQueryString + +`func (o *ModelsQueryModelsPagedSSHServiceAccountQuery) GetQueryString() string` + +GetQueryString returns the QueryString field if non-nil, zero value otherwise. + +### GetQueryStringOk + +`func (o *ModelsQueryModelsPagedSSHServiceAccountQuery) GetQueryStringOk() (*string, bool)` + +GetQueryStringOk returns a tuple with the QueryString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQueryString + +`func (o *ModelsQueryModelsPagedSSHServiceAccountQuery) SetQueryString(v string)` + +SetQueryString sets QueryString field to given value. + +### HasQueryString + +`func (o *ModelsQueryModelsPagedSSHServiceAccountQuery) HasQueryString() bool` + +HasQueryString returns a boolean if a field has been set. + +### GetPageReturned + +`func (o *ModelsQueryModelsPagedSSHServiceAccountQuery) GetPageReturned() int32` + +GetPageReturned returns the PageReturned field if non-nil, zero value otherwise. + +### GetPageReturnedOk + +`func (o *ModelsQueryModelsPagedSSHServiceAccountQuery) GetPageReturnedOk() (*int32, bool)` + +GetPageReturnedOk returns a tuple with the PageReturned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageReturned + +`func (o *ModelsQueryModelsPagedSSHServiceAccountQuery) SetPageReturned(v int32)` + +SetPageReturned sets PageReturned field to given value. + +### HasPageReturned + +`func (o *ModelsQueryModelsPagedSSHServiceAccountQuery) HasPageReturned() bool` + +HasPageReturned returns a boolean if a field has been set. + +### GetReturnLimit + +`func (o *ModelsQueryModelsPagedSSHServiceAccountQuery) GetReturnLimit() int32` + +GetReturnLimit returns the ReturnLimit field if non-nil, zero value otherwise. + +### GetReturnLimitOk + +`func (o *ModelsQueryModelsPagedSSHServiceAccountQuery) GetReturnLimitOk() (*int32, bool)` + +GetReturnLimitOk returns a tuple with the ReturnLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReturnLimit + +`func (o *ModelsQueryModelsPagedSSHServiceAccountQuery) SetReturnLimit(v int32)` + +SetReturnLimit sets ReturnLimit field to given value. + +### HasReturnLimit + +`func (o *ModelsQueryModelsPagedSSHServiceAccountQuery) HasReturnLimit() bool` + +HasReturnLimit returns a boolean if a field has been set. + +### GetSortField + +`func (o *ModelsQueryModelsPagedSSHServiceAccountQuery) GetSortField() string` + +GetSortField returns the SortField field if non-nil, zero value otherwise. + +### GetSortFieldOk + +`func (o *ModelsQueryModelsPagedSSHServiceAccountQuery) GetSortFieldOk() (*string, bool)` + +GetSortFieldOk returns a tuple with the SortField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortField + +`func (o *ModelsQueryModelsPagedSSHServiceAccountQuery) SetSortField(v string)` + +SetSortField sets SortField field to given value. + +### HasSortField + +`func (o *ModelsQueryModelsPagedSSHServiceAccountQuery) HasSortField() bool` + +HasSortField returns a boolean if a field has been set. + +### GetSortAscending + +`func (o *ModelsQueryModelsPagedSSHServiceAccountQuery) GetSortAscending() int32` + +GetSortAscending returns the SortAscending field if non-nil, zero value otherwise. + +### GetSortAscendingOk + +`func (o *ModelsQueryModelsPagedSSHServiceAccountQuery) GetSortAscendingOk() (*int32, bool)` + +GetSortAscendingOk returns a tuple with the SortAscending field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortAscending + +`func (o *ModelsQueryModelsPagedSSHServiceAccountQuery) SetSortAscending(v int32)` + +SetSortAscending sets SortAscending field to given value. + +### HasSortAscending + +`func (o *ModelsQueryModelsPagedSSHServiceAccountQuery) HasSortAscending() bool` + +HasSortAscending returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsQueryModelsPagedSSHUnmanagedKeyQuery.md b/v1/docs/ModelsQueryModelsPagedSSHUnmanagedKeyQuery.md new file mode 100644 index 0000000..ddc0c28 --- /dev/null +++ b/v1/docs/ModelsQueryModelsPagedSSHUnmanagedKeyQuery.md @@ -0,0 +1,160 @@ +# ModelsQueryModelsPagedSSHUnmanagedKeyQuery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**QueryString** | Pointer to **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | [optional] +**PageReturned** | Pointer to **int32** | The current page within the result set to be returned | [optional] +**ReturnLimit** | Pointer to **int32** | Maximum number of records to be returned in a single call | [optional] +**SortField** | Pointer to **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | [optional] +**SortAscending** | Pointer to **int32** | Field sort direction [0=ascending, 1=descending] | [optional] + +## Methods + +### NewModelsQueryModelsPagedSSHUnmanagedKeyQuery + +`func NewModelsQueryModelsPagedSSHUnmanagedKeyQuery() *ModelsQueryModelsPagedSSHUnmanagedKeyQuery` + +NewModelsQueryModelsPagedSSHUnmanagedKeyQuery instantiates a new ModelsQueryModelsPagedSSHUnmanagedKeyQuery object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsQueryModelsPagedSSHUnmanagedKeyQueryWithDefaults + +`func NewModelsQueryModelsPagedSSHUnmanagedKeyQueryWithDefaults() *ModelsQueryModelsPagedSSHUnmanagedKeyQuery` + +NewModelsQueryModelsPagedSSHUnmanagedKeyQueryWithDefaults instantiates a new ModelsQueryModelsPagedSSHUnmanagedKeyQuery object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetQueryString + +`func (o *ModelsQueryModelsPagedSSHUnmanagedKeyQuery) GetQueryString() string` + +GetQueryString returns the QueryString field if non-nil, zero value otherwise. + +### GetQueryStringOk + +`func (o *ModelsQueryModelsPagedSSHUnmanagedKeyQuery) GetQueryStringOk() (*string, bool)` + +GetQueryStringOk returns a tuple with the QueryString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQueryString + +`func (o *ModelsQueryModelsPagedSSHUnmanagedKeyQuery) SetQueryString(v string)` + +SetQueryString sets QueryString field to given value. + +### HasQueryString + +`func (o *ModelsQueryModelsPagedSSHUnmanagedKeyQuery) HasQueryString() bool` + +HasQueryString returns a boolean if a field has been set. + +### GetPageReturned + +`func (o *ModelsQueryModelsPagedSSHUnmanagedKeyQuery) GetPageReturned() int32` + +GetPageReturned returns the PageReturned field if non-nil, zero value otherwise. + +### GetPageReturnedOk + +`func (o *ModelsQueryModelsPagedSSHUnmanagedKeyQuery) GetPageReturnedOk() (*int32, bool)` + +GetPageReturnedOk returns a tuple with the PageReturned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageReturned + +`func (o *ModelsQueryModelsPagedSSHUnmanagedKeyQuery) SetPageReturned(v int32)` + +SetPageReturned sets PageReturned field to given value. + +### HasPageReturned + +`func (o *ModelsQueryModelsPagedSSHUnmanagedKeyQuery) HasPageReturned() bool` + +HasPageReturned returns a boolean if a field has been set. + +### GetReturnLimit + +`func (o *ModelsQueryModelsPagedSSHUnmanagedKeyQuery) GetReturnLimit() int32` + +GetReturnLimit returns the ReturnLimit field if non-nil, zero value otherwise. + +### GetReturnLimitOk + +`func (o *ModelsQueryModelsPagedSSHUnmanagedKeyQuery) GetReturnLimitOk() (*int32, bool)` + +GetReturnLimitOk returns a tuple with the ReturnLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReturnLimit + +`func (o *ModelsQueryModelsPagedSSHUnmanagedKeyQuery) SetReturnLimit(v int32)` + +SetReturnLimit sets ReturnLimit field to given value. + +### HasReturnLimit + +`func (o *ModelsQueryModelsPagedSSHUnmanagedKeyQuery) HasReturnLimit() bool` + +HasReturnLimit returns a boolean if a field has been set. + +### GetSortField + +`func (o *ModelsQueryModelsPagedSSHUnmanagedKeyQuery) GetSortField() string` + +GetSortField returns the SortField field if non-nil, zero value otherwise. + +### GetSortFieldOk + +`func (o *ModelsQueryModelsPagedSSHUnmanagedKeyQuery) GetSortFieldOk() (*string, bool)` + +GetSortFieldOk returns a tuple with the SortField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortField + +`func (o *ModelsQueryModelsPagedSSHUnmanagedKeyQuery) SetSortField(v string)` + +SetSortField sets SortField field to given value. + +### HasSortField + +`func (o *ModelsQueryModelsPagedSSHUnmanagedKeyQuery) HasSortField() bool` + +HasSortField returns a boolean if a field has been set. + +### GetSortAscending + +`func (o *ModelsQueryModelsPagedSSHUnmanagedKeyQuery) GetSortAscending() int32` + +GetSortAscending returns the SortAscending field if non-nil, zero value otherwise. + +### GetSortAscendingOk + +`func (o *ModelsQueryModelsPagedSSHUnmanagedKeyQuery) GetSortAscendingOk() (*int32, bool)` + +GetSortAscendingOk returns a tuple with the SortAscending field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortAscending + +`func (o *ModelsQueryModelsPagedSSHUnmanagedKeyQuery) SetSortAscending(v int32)` + +SetSortAscending sets SortAscending field to given value. + +### HasSortAscending + +`func (o *ModelsQueryModelsPagedSSHUnmanagedKeyQuery) HasSortAscending() bool` + +HasSortAscending returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsQueryModelsPagedSSHUserQuery.md b/v1/docs/ModelsQueryModelsPagedSSHUserQuery.md new file mode 100644 index 0000000..db55c59 --- /dev/null +++ b/v1/docs/ModelsQueryModelsPagedSSHUserQuery.md @@ -0,0 +1,160 @@ +# ModelsQueryModelsPagedSSHUserQuery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**QueryString** | Pointer to **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | [optional] +**PageReturned** | Pointer to **int32** | The current page within the result set to be returned | [optional] +**ReturnLimit** | Pointer to **int32** | Maximum number of records to be returned in a single call | [optional] +**SortField** | Pointer to **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | [optional] +**SortAscending** | Pointer to **int32** | Field sort direction [0=ascending, 1=descending] | [optional] + +## Methods + +### NewModelsQueryModelsPagedSSHUserQuery + +`func NewModelsQueryModelsPagedSSHUserQuery() *ModelsQueryModelsPagedSSHUserQuery` + +NewModelsQueryModelsPagedSSHUserQuery instantiates a new ModelsQueryModelsPagedSSHUserQuery object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsQueryModelsPagedSSHUserQueryWithDefaults + +`func NewModelsQueryModelsPagedSSHUserQueryWithDefaults() *ModelsQueryModelsPagedSSHUserQuery` + +NewModelsQueryModelsPagedSSHUserQueryWithDefaults instantiates a new ModelsQueryModelsPagedSSHUserQuery object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetQueryString + +`func (o *ModelsQueryModelsPagedSSHUserQuery) GetQueryString() string` + +GetQueryString returns the QueryString field if non-nil, zero value otherwise. + +### GetQueryStringOk + +`func (o *ModelsQueryModelsPagedSSHUserQuery) GetQueryStringOk() (*string, bool)` + +GetQueryStringOk returns a tuple with the QueryString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQueryString + +`func (o *ModelsQueryModelsPagedSSHUserQuery) SetQueryString(v string)` + +SetQueryString sets QueryString field to given value. + +### HasQueryString + +`func (o *ModelsQueryModelsPagedSSHUserQuery) HasQueryString() bool` + +HasQueryString returns a boolean if a field has been set. + +### GetPageReturned + +`func (o *ModelsQueryModelsPagedSSHUserQuery) GetPageReturned() int32` + +GetPageReturned returns the PageReturned field if non-nil, zero value otherwise. + +### GetPageReturnedOk + +`func (o *ModelsQueryModelsPagedSSHUserQuery) GetPageReturnedOk() (*int32, bool)` + +GetPageReturnedOk returns a tuple with the PageReturned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageReturned + +`func (o *ModelsQueryModelsPagedSSHUserQuery) SetPageReturned(v int32)` + +SetPageReturned sets PageReturned field to given value. + +### HasPageReturned + +`func (o *ModelsQueryModelsPagedSSHUserQuery) HasPageReturned() bool` + +HasPageReturned returns a boolean if a field has been set. + +### GetReturnLimit + +`func (o *ModelsQueryModelsPagedSSHUserQuery) GetReturnLimit() int32` + +GetReturnLimit returns the ReturnLimit field if non-nil, zero value otherwise. + +### GetReturnLimitOk + +`func (o *ModelsQueryModelsPagedSSHUserQuery) GetReturnLimitOk() (*int32, bool)` + +GetReturnLimitOk returns a tuple with the ReturnLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReturnLimit + +`func (o *ModelsQueryModelsPagedSSHUserQuery) SetReturnLimit(v int32)` + +SetReturnLimit sets ReturnLimit field to given value. + +### HasReturnLimit + +`func (o *ModelsQueryModelsPagedSSHUserQuery) HasReturnLimit() bool` + +HasReturnLimit returns a boolean if a field has been set. + +### GetSortField + +`func (o *ModelsQueryModelsPagedSSHUserQuery) GetSortField() string` + +GetSortField returns the SortField field if non-nil, zero value otherwise. + +### GetSortFieldOk + +`func (o *ModelsQueryModelsPagedSSHUserQuery) GetSortFieldOk() (*string, bool)` + +GetSortFieldOk returns a tuple with the SortField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortField + +`func (o *ModelsQueryModelsPagedSSHUserQuery) SetSortField(v string)` + +SetSortField sets SortField field to given value. + +### HasSortField + +`func (o *ModelsQueryModelsPagedSSHUserQuery) HasSortField() bool` + +HasSortField returns a boolean if a field has been set. + +### GetSortAscending + +`func (o *ModelsQueryModelsPagedSSHUserQuery) GetSortAscending() int32` + +GetSortAscending returns the SortAscending field if non-nil, zero value otherwise. + +### GetSortAscendingOk + +`func (o *ModelsQueryModelsPagedSSHUserQuery) GetSortAscendingOk() (*int32, bool)` + +GetSortAscendingOk returns a tuple with the SortAscending field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortAscending + +`func (o *ModelsQueryModelsPagedSSHUserQuery) SetSortAscending(v int32)` + +SetSortAscending sets SortAscending field to given value. + +### HasSortAscending + +`func (o *ModelsQueryModelsPagedSSHUserQuery) HasSortAscending() bool` + +HasSortAscending returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsQueryModelsPagedScanJobPartsQuery.md b/v1/docs/ModelsQueryModelsPagedScanJobPartsQuery.md new file mode 100644 index 0000000..491fbdc --- /dev/null +++ b/v1/docs/ModelsQueryModelsPagedScanJobPartsQuery.md @@ -0,0 +1,186 @@ +# ModelsQueryModelsPagedScanJobPartsQuery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**JobType** | Pointer to **int32** | | [optional] +**QueryString** | Pointer to **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | [optional] +**PageReturned** | Pointer to **int32** | The current page within the result set to be returned | [optional] +**ReturnLimit** | Pointer to **int32** | Maximum number of records to be returned in a single call | [optional] +**SortField** | Pointer to **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | [optional] +**SortAscending** | Pointer to **int32** | Field sort direction [0=ascending, 1=descending] | [optional] + +## Methods + +### NewModelsQueryModelsPagedScanJobPartsQuery + +`func NewModelsQueryModelsPagedScanJobPartsQuery() *ModelsQueryModelsPagedScanJobPartsQuery` + +NewModelsQueryModelsPagedScanJobPartsQuery instantiates a new ModelsQueryModelsPagedScanJobPartsQuery object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsQueryModelsPagedScanJobPartsQueryWithDefaults + +`func NewModelsQueryModelsPagedScanJobPartsQueryWithDefaults() *ModelsQueryModelsPagedScanJobPartsQuery` + +NewModelsQueryModelsPagedScanJobPartsQueryWithDefaults instantiates a new ModelsQueryModelsPagedScanJobPartsQuery object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetJobType + +`func (o *ModelsQueryModelsPagedScanJobPartsQuery) GetJobType() int32` + +GetJobType returns the JobType field if non-nil, zero value otherwise. + +### GetJobTypeOk + +`func (o *ModelsQueryModelsPagedScanJobPartsQuery) GetJobTypeOk() (*int32, bool)` + +GetJobTypeOk returns a tuple with the JobType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobType + +`func (o *ModelsQueryModelsPagedScanJobPartsQuery) SetJobType(v int32)` + +SetJobType sets JobType field to given value. + +### HasJobType + +`func (o *ModelsQueryModelsPagedScanJobPartsQuery) HasJobType() bool` + +HasJobType returns a boolean if a field has been set. + +### GetQueryString + +`func (o *ModelsQueryModelsPagedScanJobPartsQuery) GetQueryString() string` + +GetQueryString returns the QueryString field if non-nil, zero value otherwise. + +### GetQueryStringOk + +`func (o *ModelsQueryModelsPagedScanJobPartsQuery) GetQueryStringOk() (*string, bool)` + +GetQueryStringOk returns a tuple with the QueryString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQueryString + +`func (o *ModelsQueryModelsPagedScanJobPartsQuery) SetQueryString(v string)` + +SetQueryString sets QueryString field to given value. + +### HasQueryString + +`func (o *ModelsQueryModelsPagedScanJobPartsQuery) HasQueryString() bool` + +HasQueryString returns a boolean if a field has been set. + +### GetPageReturned + +`func (o *ModelsQueryModelsPagedScanJobPartsQuery) GetPageReturned() int32` + +GetPageReturned returns the PageReturned field if non-nil, zero value otherwise. + +### GetPageReturnedOk + +`func (o *ModelsQueryModelsPagedScanJobPartsQuery) GetPageReturnedOk() (*int32, bool)` + +GetPageReturnedOk returns a tuple with the PageReturned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageReturned + +`func (o *ModelsQueryModelsPagedScanJobPartsQuery) SetPageReturned(v int32)` + +SetPageReturned sets PageReturned field to given value. + +### HasPageReturned + +`func (o *ModelsQueryModelsPagedScanJobPartsQuery) HasPageReturned() bool` + +HasPageReturned returns a boolean if a field has been set. + +### GetReturnLimit + +`func (o *ModelsQueryModelsPagedScanJobPartsQuery) GetReturnLimit() int32` + +GetReturnLimit returns the ReturnLimit field if non-nil, zero value otherwise. + +### GetReturnLimitOk + +`func (o *ModelsQueryModelsPagedScanJobPartsQuery) GetReturnLimitOk() (*int32, bool)` + +GetReturnLimitOk returns a tuple with the ReturnLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReturnLimit + +`func (o *ModelsQueryModelsPagedScanJobPartsQuery) SetReturnLimit(v int32)` + +SetReturnLimit sets ReturnLimit field to given value. + +### HasReturnLimit + +`func (o *ModelsQueryModelsPagedScanJobPartsQuery) HasReturnLimit() bool` + +HasReturnLimit returns a boolean if a field has been set. + +### GetSortField + +`func (o *ModelsQueryModelsPagedScanJobPartsQuery) GetSortField() string` + +GetSortField returns the SortField field if non-nil, zero value otherwise. + +### GetSortFieldOk + +`func (o *ModelsQueryModelsPagedScanJobPartsQuery) GetSortFieldOk() (*string, bool)` + +GetSortFieldOk returns a tuple with the SortField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortField + +`func (o *ModelsQueryModelsPagedScanJobPartsQuery) SetSortField(v string)` + +SetSortField sets SortField field to given value. + +### HasSortField + +`func (o *ModelsQueryModelsPagedScanJobPartsQuery) HasSortField() bool` + +HasSortField returns a boolean if a field has been set. + +### GetSortAscending + +`func (o *ModelsQueryModelsPagedScanJobPartsQuery) GetSortAscending() int32` + +GetSortAscending returns the SortAscending field if non-nil, zero value otherwise. + +### GetSortAscendingOk + +`func (o *ModelsQueryModelsPagedScanJobPartsQuery) GetSortAscendingOk() (*int32, bool)` + +GetSortAscendingOk returns a tuple with the SortAscending field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortAscending + +`func (o *ModelsQueryModelsPagedScanJobPartsQuery) SetSortAscending(v int32)` + +SetSortAscending sets SortAscending field to given value. + +### HasSortAscending + +`func (o *ModelsQueryModelsPagedScanJobPartsQuery) HasSortAscending() bool` + +HasSortAscending returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsQueryModelsPagedSecurityIdentityQuery.md b/v1/docs/ModelsQueryModelsPagedSecurityIdentityQuery.md new file mode 100644 index 0000000..f50b39d --- /dev/null +++ b/v1/docs/ModelsQueryModelsPagedSecurityIdentityQuery.md @@ -0,0 +1,186 @@ +# ModelsQueryModelsPagedSecurityIdentityQuery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Validate** | Pointer to **bool** | Whether to audit the signed xml for every identity requested by the query | [optional] +**QueryString** | Pointer to **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | [optional] +**PageReturned** | Pointer to **int32** | The current page within the result set to be returned | [optional] +**ReturnLimit** | Pointer to **int32** | Maximum number of records to be returned in a single call | [optional] +**SortField** | Pointer to **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | [optional] +**SortAscending** | Pointer to **int32** | Field sort direction [0=ascending, 1=descending] | [optional] + +## Methods + +### NewModelsQueryModelsPagedSecurityIdentityQuery + +`func NewModelsQueryModelsPagedSecurityIdentityQuery() *ModelsQueryModelsPagedSecurityIdentityQuery` + +NewModelsQueryModelsPagedSecurityIdentityQuery instantiates a new ModelsQueryModelsPagedSecurityIdentityQuery object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsQueryModelsPagedSecurityIdentityQueryWithDefaults + +`func NewModelsQueryModelsPagedSecurityIdentityQueryWithDefaults() *ModelsQueryModelsPagedSecurityIdentityQuery` + +NewModelsQueryModelsPagedSecurityIdentityQueryWithDefaults instantiates a new ModelsQueryModelsPagedSecurityIdentityQuery object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValidate + +`func (o *ModelsQueryModelsPagedSecurityIdentityQuery) GetValidate() bool` + +GetValidate returns the Validate field if non-nil, zero value otherwise. + +### GetValidateOk + +`func (o *ModelsQueryModelsPagedSecurityIdentityQuery) GetValidateOk() (*bool, bool)` + +GetValidateOk returns a tuple with the Validate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValidate + +`func (o *ModelsQueryModelsPagedSecurityIdentityQuery) SetValidate(v bool)` + +SetValidate sets Validate field to given value. + +### HasValidate + +`func (o *ModelsQueryModelsPagedSecurityIdentityQuery) HasValidate() bool` + +HasValidate returns a boolean if a field has been set. + +### GetQueryString + +`func (o *ModelsQueryModelsPagedSecurityIdentityQuery) GetQueryString() string` + +GetQueryString returns the QueryString field if non-nil, zero value otherwise. + +### GetQueryStringOk + +`func (o *ModelsQueryModelsPagedSecurityIdentityQuery) GetQueryStringOk() (*string, bool)` + +GetQueryStringOk returns a tuple with the QueryString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQueryString + +`func (o *ModelsQueryModelsPagedSecurityIdentityQuery) SetQueryString(v string)` + +SetQueryString sets QueryString field to given value. + +### HasQueryString + +`func (o *ModelsQueryModelsPagedSecurityIdentityQuery) HasQueryString() bool` + +HasQueryString returns a boolean if a field has been set. + +### GetPageReturned + +`func (o *ModelsQueryModelsPagedSecurityIdentityQuery) GetPageReturned() int32` + +GetPageReturned returns the PageReturned field if non-nil, zero value otherwise. + +### GetPageReturnedOk + +`func (o *ModelsQueryModelsPagedSecurityIdentityQuery) GetPageReturnedOk() (*int32, bool)` + +GetPageReturnedOk returns a tuple with the PageReturned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageReturned + +`func (o *ModelsQueryModelsPagedSecurityIdentityQuery) SetPageReturned(v int32)` + +SetPageReturned sets PageReturned field to given value. + +### HasPageReturned + +`func (o *ModelsQueryModelsPagedSecurityIdentityQuery) HasPageReturned() bool` + +HasPageReturned returns a boolean if a field has been set. + +### GetReturnLimit + +`func (o *ModelsQueryModelsPagedSecurityIdentityQuery) GetReturnLimit() int32` + +GetReturnLimit returns the ReturnLimit field if non-nil, zero value otherwise. + +### GetReturnLimitOk + +`func (o *ModelsQueryModelsPagedSecurityIdentityQuery) GetReturnLimitOk() (*int32, bool)` + +GetReturnLimitOk returns a tuple with the ReturnLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReturnLimit + +`func (o *ModelsQueryModelsPagedSecurityIdentityQuery) SetReturnLimit(v int32)` + +SetReturnLimit sets ReturnLimit field to given value. + +### HasReturnLimit + +`func (o *ModelsQueryModelsPagedSecurityIdentityQuery) HasReturnLimit() bool` + +HasReturnLimit returns a boolean if a field has been set. + +### GetSortField + +`func (o *ModelsQueryModelsPagedSecurityIdentityQuery) GetSortField() string` + +GetSortField returns the SortField field if non-nil, zero value otherwise. + +### GetSortFieldOk + +`func (o *ModelsQueryModelsPagedSecurityIdentityQuery) GetSortFieldOk() (*string, bool)` + +GetSortFieldOk returns a tuple with the SortField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortField + +`func (o *ModelsQueryModelsPagedSecurityIdentityQuery) SetSortField(v string)` + +SetSortField sets SortField field to given value. + +### HasSortField + +`func (o *ModelsQueryModelsPagedSecurityIdentityQuery) HasSortField() bool` + +HasSortField returns a boolean if a field has been set. + +### GetSortAscending + +`func (o *ModelsQueryModelsPagedSecurityIdentityQuery) GetSortAscending() int32` + +GetSortAscending returns the SortAscending field if non-nil, zero value otherwise. + +### GetSortAscendingOk + +`func (o *ModelsQueryModelsPagedSecurityIdentityQuery) GetSortAscendingOk() (*int32, bool)` + +GetSortAscendingOk returns a tuple with the SortAscending field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortAscending + +`func (o *ModelsQueryModelsPagedSecurityIdentityQuery) SetSortAscending(v int32)` + +SetSortAscending sets SortAscending field to given value. + +### HasSortAscending + +`func (o *ModelsQueryModelsPagedSecurityIdentityQuery) HasSortAscending() bool` + +HasSortAscending returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsQueryModelsPagedSecurityRoleQuery.md b/v1/docs/ModelsQueryModelsPagedSecurityRoleQuery.md new file mode 100644 index 0000000..9f8d1d3 --- /dev/null +++ b/v1/docs/ModelsQueryModelsPagedSecurityRoleQuery.md @@ -0,0 +1,186 @@ +# ModelsQueryModelsPagedSecurityRoleQuery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Validate** | Pointer to **bool** | Whether to audit the signed xml for every role requested by the query | [optional] +**QueryString** | Pointer to **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | [optional] +**PageReturned** | Pointer to **int32** | The current page within the result set to be returned | [optional] +**ReturnLimit** | Pointer to **int32** | Maximum number of records to be returned in a single call | [optional] +**SortField** | Pointer to **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | [optional] +**SortAscending** | Pointer to **int32** | Field sort direction [0=ascending, 1=descending] | [optional] + +## Methods + +### NewModelsQueryModelsPagedSecurityRoleQuery + +`func NewModelsQueryModelsPagedSecurityRoleQuery() *ModelsQueryModelsPagedSecurityRoleQuery` + +NewModelsQueryModelsPagedSecurityRoleQuery instantiates a new ModelsQueryModelsPagedSecurityRoleQuery object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsQueryModelsPagedSecurityRoleQueryWithDefaults + +`func NewModelsQueryModelsPagedSecurityRoleQueryWithDefaults() *ModelsQueryModelsPagedSecurityRoleQuery` + +NewModelsQueryModelsPagedSecurityRoleQueryWithDefaults instantiates a new ModelsQueryModelsPagedSecurityRoleQuery object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValidate + +`func (o *ModelsQueryModelsPagedSecurityRoleQuery) GetValidate() bool` + +GetValidate returns the Validate field if non-nil, zero value otherwise. + +### GetValidateOk + +`func (o *ModelsQueryModelsPagedSecurityRoleQuery) GetValidateOk() (*bool, bool)` + +GetValidateOk returns a tuple with the Validate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValidate + +`func (o *ModelsQueryModelsPagedSecurityRoleQuery) SetValidate(v bool)` + +SetValidate sets Validate field to given value. + +### HasValidate + +`func (o *ModelsQueryModelsPagedSecurityRoleQuery) HasValidate() bool` + +HasValidate returns a boolean if a field has been set. + +### GetQueryString + +`func (o *ModelsQueryModelsPagedSecurityRoleQuery) GetQueryString() string` + +GetQueryString returns the QueryString field if non-nil, zero value otherwise. + +### GetQueryStringOk + +`func (o *ModelsQueryModelsPagedSecurityRoleQuery) GetQueryStringOk() (*string, bool)` + +GetQueryStringOk returns a tuple with the QueryString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQueryString + +`func (o *ModelsQueryModelsPagedSecurityRoleQuery) SetQueryString(v string)` + +SetQueryString sets QueryString field to given value. + +### HasQueryString + +`func (o *ModelsQueryModelsPagedSecurityRoleQuery) HasQueryString() bool` + +HasQueryString returns a boolean if a field has been set. + +### GetPageReturned + +`func (o *ModelsQueryModelsPagedSecurityRoleQuery) GetPageReturned() int32` + +GetPageReturned returns the PageReturned field if non-nil, zero value otherwise. + +### GetPageReturnedOk + +`func (o *ModelsQueryModelsPagedSecurityRoleQuery) GetPageReturnedOk() (*int32, bool)` + +GetPageReturnedOk returns a tuple with the PageReturned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageReturned + +`func (o *ModelsQueryModelsPagedSecurityRoleQuery) SetPageReturned(v int32)` + +SetPageReturned sets PageReturned field to given value. + +### HasPageReturned + +`func (o *ModelsQueryModelsPagedSecurityRoleQuery) HasPageReturned() bool` + +HasPageReturned returns a boolean if a field has been set. + +### GetReturnLimit + +`func (o *ModelsQueryModelsPagedSecurityRoleQuery) GetReturnLimit() int32` + +GetReturnLimit returns the ReturnLimit field if non-nil, zero value otherwise. + +### GetReturnLimitOk + +`func (o *ModelsQueryModelsPagedSecurityRoleQuery) GetReturnLimitOk() (*int32, bool)` + +GetReturnLimitOk returns a tuple with the ReturnLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReturnLimit + +`func (o *ModelsQueryModelsPagedSecurityRoleQuery) SetReturnLimit(v int32)` + +SetReturnLimit sets ReturnLimit field to given value. + +### HasReturnLimit + +`func (o *ModelsQueryModelsPagedSecurityRoleQuery) HasReturnLimit() bool` + +HasReturnLimit returns a boolean if a field has been set. + +### GetSortField + +`func (o *ModelsQueryModelsPagedSecurityRoleQuery) GetSortField() string` + +GetSortField returns the SortField field if non-nil, zero value otherwise. + +### GetSortFieldOk + +`func (o *ModelsQueryModelsPagedSecurityRoleQuery) GetSortFieldOk() (*string, bool)` + +GetSortFieldOk returns a tuple with the SortField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortField + +`func (o *ModelsQueryModelsPagedSecurityRoleQuery) SetSortField(v string)` + +SetSortField sets SortField field to given value. + +### HasSortField + +`func (o *ModelsQueryModelsPagedSecurityRoleQuery) HasSortField() bool` + +HasSortField returns a boolean if a field has been set. + +### GetSortAscending + +`func (o *ModelsQueryModelsPagedSecurityRoleQuery) GetSortAscending() int32` + +GetSortAscending returns the SortAscending field if non-nil, zero value otherwise. + +### GetSortAscendingOk + +`func (o *ModelsQueryModelsPagedSecurityRoleQuery) GetSortAscendingOk() (*int32, bool)` + +GetSortAscendingOk returns a tuple with the SortAscending field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortAscending + +`func (o *ModelsQueryModelsPagedSecurityRoleQuery) SetSortAscending(v int32)` + +SetSortAscending sets SortAscending field to given value. + +### HasSortAscending + +`func (o *ModelsQueryModelsPagedSecurityRoleQuery) HasSortAscending() bool` + +HasSortAscending returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsQueryModelsPagedSslResultQuery.md b/v1/docs/ModelsQueryModelsPagedSslResultQuery.md new file mode 100644 index 0000000..28b0be2 --- /dev/null +++ b/v1/docs/ModelsQueryModelsPagedSslResultQuery.md @@ -0,0 +1,160 @@ +# ModelsQueryModelsPagedSslResultQuery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**QueryString** | Pointer to **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | [optional] +**PageReturned** | Pointer to **int32** | The current page within the result set to be returned | [optional] +**ReturnLimit** | Pointer to **int32** | Maximum number of records to be returned in a single call | [optional] +**SortField** | Pointer to **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | [optional] +**SortAscending** | Pointer to **int32** | Field sort direction [0=ascending, 1=descending] | [optional] + +## Methods + +### NewModelsQueryModelsPagedSslResultQuery + +`func NewModelsQueryModelsPagedSslResultQuery() *ModelsQueryModelsPagedSslResultQuery` + +NewModelsQueryModelsPagedSslResultQuery instantiates a new ModelsQueryModelsPagedSslResultQuery object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsQueryModelsPagedSslResultQueryWithDefaults + +`func NewModelsQueryModelsPagedSslResultQueryWithDefaults() *ModelsQueryModelsPagedSslResultQuery` + +NewModelsQueryModelsPagedSslResultQueryWithDefaults instantiates a new ModelsQueryModelsPagedSslResultQuery object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetQueryString + +`func (o *ModelsQueryModelsPagedSslResultQuery) GetQueryString() string` + +GetQueryString returns the QueryString field if non-nil, zero value otherwise. + +### GetQueryStringOk + +`func (o *ModelsQueryModelsPagedSslResultQuery) GetQueryStringOk() (*string, bool)` + +GetQueryStringOk returns a tuple with the QueryString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQueryString + +`func (o *ModelsQueryModelsPagedSslResultQuery) SetQueryString(v string)` + +SetQueryString sets QueryString field to given value. + +### HasQueryString + +`func (o *ModelsQueryModelsPagedSslResultQuery) HasQueryString() bool` + +HasQueryString returns a boolean if a field has been set. + +### GetPageReturned + +`func (o *ModelsQueryModelsPagedSslResultQuery) GetPageReturned() int32` + +GetPageReturned returns the PageReturned field if non-nil, zero value otherwise. + +### GetPageReturnedOk + +`func (o *ModelsQueryModelsPagedSslResultQuery) GetPageReturnedOk() (*int32, bool)` + +GetPageReturnedOk returns a tuple with the PageReturned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageReturned + +`func (o *ModelsQueryModelsPagedSslResultQuery) SetPageReturned(v int32)` + +SetPageReturned sets PageReturned field to given value. + +### HasPageReturned + +`func (o *ModelsQueryModelsPagedSslResultQuery) HasPageReturned() bool` + +HasPageReturned returns a boolean if a field has been set. + +### GetReturnLimit + +`func (o *ModelsQueryModelsPagedSslResultQuery) GetReturnLimit() int32` + +GetReturnLimit returns the ReturnLimit field if non-nil, zero value otherwise. + +### GetReturnLimitOk + +`func (o *ModelsQueryModelsPagedSslResultQuery) GetReturnLimitOk() (*int32, bool)` + +GetReturnLimitOk returns a tuple with the ReturnLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReturnLimit + +`func (o *ModelsQueryModelsPagedSslResultQuery) SetReturnLimit(v int32)` + +SetReturnLimit sets ReturnLimit field to given value. + +### HasReturnLimit + +`func (o *ModelsQueryModelsPagedSslResultQuery) HasReturnLimit() bool` + +HasReturnLimit returns a boolean if a field has been set. + +### GetSortField + +`func (o *ModelsQueryModelsPagedSslResultQuery) GetSortField() string` + +GetSortField returns the SortField field if non-nil, zero value otherwise. + +### GetSortFieldOk + +`func (o *ModelsQueryModelsPagedSslResultQuery) GetSortFieldOk() (*string, bool)` + +GetSortFieldOk returns a tuple with the SortField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortField + +`func (o *ModelsQueryModelsPagedSslResultQuery) SetSortField(v string)` + +SetSortField sets SortField field to given value. + +### HasSortField + +`func (o *ModelsQueryModelsPagedSslResultQuery) HasSortField() bool` + +HasSortField returns a boolean if a field has been set. + +### GetSortAscending + +`func (o *ModelsQueryModelsPagedSslResultQuery) GetSortAscending() int32` + +GetSortAscending returns the SortAscending field if non-nil, zero value otherwise. + +### GetSortAscendingOk + +`func (o *ModelsQueryModelsPagedSslResultQuery) GetSortAscendingOk() (*int32, bool)` + +GetSortAscendingOk returns a tuple with the SortAscending field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortAscending + +`func (o *ModelsQueryModelsPagedSslResultQuery) SetSortAscending(v int32)` + +SetSortAscending sets SortAscending field to given value. + +### HasSortAscending + +`func (o *ModelsQueryModelsPagedSslResultQuery) HasSortAscending() bool` + +HasSortAscending returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsQueryModelsPagedTemplateQuery.md b/v1/docs/ModelsQueryModelsPagedTemplateQuery.md new file mode 100644 index 0000000..8d0cad9 --- /dev/null +++ b/v1/docs/ModelsQueryModelsPagedTemplateQuery.md @@ -0,0 +1,160 @@ +# ModelsQueryModelsPagedTemplateQuery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**QueryString** | Pointer to **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | [optional] +**PageReturned** | Pointer to **int32** | The current page within the result set to be returned | [optional] +**ReturnLimit** | Pointer to **int32** | Maximum number of records to be returned in a single call | [optional] +**SortField** | Pointer to **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | [optional] +**SortAscending** | Pointer to **int32** | Field sort direction [0=ascending, 1=descending] | [optional] + +## Methods + +### NewModelsQueryModelsPagedTemplateQuery + +`func NewModelsQueryModelsPagedTemplateQuery() *ModelsQueryModelsPagedTemplateQuery` + +NewModelsQueryModelsPagedTemplateQuery instantiates a new ModelsQueryModelsPagedTemplateQuery object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsQueryModelsPagedTemplateQueryWithDefaults + +`func NewModelsQueryModelsPagedTemplateQueryWithDefaults() *ModelsQueryModelsPagedTemplateQuery` + +NewModelsQueryModelsPagedTemplateQueryWithDefaults instantiates a new ModelsQueryModelsPagedTemplateQuery object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetQueryString + +`func (o *ModelsQueryModelsPagedTemplateQuery) GetQueryString() string` + +GetQueryString returns the QueryString field if non-nil, zero value otherwise. + +### GetQueryStringOk + +`func (o *ModelsQueryModelsPagedTemplateQuery) GetQueryStringOk() (*string, bool)` + +GetQueryStringOk returns a tuple with the QueryString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQueryString + +`func (o *ModelsQueryModelsPagedTemplateQuery) SetQueryString(v string)` + +SetQueryString sets QueryString field to given value. + +### HasQueryString + +`func (o *ModelsQueryModelsPagedTemplateQuery) HasQueryString() bool` + +HasQueryString returns a boolean if a field has been set. + +### GetPageReturned + +`func (o *ModelsQueryModelsPagedTemplateQuery) GetPageReturned() int32` + +GetPageReturned returns the PageReturned field if non-nil, zero value otherwise. + +### GetPageReturnedOk + +`func (o *ModelsQueryModelsPagedTemplateQuery) GetPageReturnedOk() (*int32, bool)` + +GetPageReturnedOk returns a tuple with the PageReturned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageReturned + +`func (o *ModelsQueryModelsPagedTemplateQuery) SetPageReturned(v int32)` + +SetPageReturned sets PageReturned field to given value. + +### HasPageReturned + +`func (o *ModelsQueryModelsPagedTemplateQuery) HasPageReturned() bool` + +HasPageReturned returns a boolean if a field has been set. + +### GetReturnLimit + +`func (o *ModelsQueryModelsPagedTemplateQuery) GetReturnLimit() int32` + +GetReturnLimit returns the ReturnLimit field if non-nil, zero value otherwise. + +### GetReturnLimitOk + +`func (o *ModelsQueryModelsPagedTemplateQuery) GetReturnLimitOk() (*int32, bool)` + +GetReturnLimitOk returns a tuple with the ReturnLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReturnLimit + +`func (o *ModelsQueryModelsPagedTemplateQuery) SetReturnLimit(v int32)` + +SetReturnLimit sets ReturnLimit field to given value. + +### HasReturnLimit + +`func (o *ModelsQueryModelsPagedTemplateQuery) HasReturnLimit() bool` + +HasReturnLimit returns a boolean if a field has been set. + +### GetSortField + +`func (o *ModelsQueryModelsPagedTemplateQuery) GetSortField() string` + +GetSortField returns the SortField field if non-nil, zero value otherwise. + +### GetSortFieldOk + +`func (o *ModelsQueryModelsPagedTemplateQuery) GetSortFieldOk() (*string, bool)` + +GetSortFieldOk returns a tuple with the SortField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortField + +`func (o *ModelsQueryModelsPagedTemplateQuery) SetSortField(v string)` + +SetSortField sets SortField field to given value. + +### HasSortField + +`func (o *ModelsQueryModelsPagedTemplateQuery) HasSortField() bool` + +HasSortField returns a boolean if a field has been set. + +### GetSortAscending + +`func (o *ModelsQueryModelsPagedTemplateQuery) GetSortAscending() int32` + +GetSortAscending returns the SortAscending field if non-nil, zero value otherwise. + +### GetSortAscendingOk + +`func (o *ModelsQueryModelsPagedTemplateQuery) GetSortAscendingOk() (*int32, bool)` + +GetSortAscendingOk returns a tuple with the SortAscending field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortAscending + +`func (o *ModelsQueryModelsPagedTemplateQuery) SetSortAscending(v int32)` + +SetSortAscending sets SortAscending field to given value. + +### HasSortAscending + +`func (o *ModelsQueryModelsPagedTemplateQuery) HasSortAscending() bool` + +HasSortAscending returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsQueryModelsWorkflowWorkflowDefinitionQuery.md b/v1/docs/ModelsQueryModelsWorkflowWorkflowDefinitionQuery.md new file mode 100644 index 0000000..1607b53 --- /dev/null +++ b/v1/docs/ModelsQueryModelsWorkflowWorkflowDefinitionQuery.md @@ -0,0 +1,160 @@ +# ModelsQueryModelsWorkflowWorkflowDefinitionQuery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**QueryString** | Pointer to **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | [optional] +**PageReturned** | Pointer to **int32** | The current page within the result set to be returned | [optional] +**ReturnLimit** | Pointer to **int32** | Maximum number of records to be returned in a single call | [optional] +**SortField** | Pointer to **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | [optional] +**SortAscending** | Pointer to **int32** | Field sort direction [0=ascending, 1=descending] | [optional] + +## Methods + +### NewModelsQueryModelsWorkflowWorkflowDefinitionQuery + +`func NewModelsQueryModelsWorkflowWorkflowDefinitionQuery() *ModelsQueryModelsWorkflowWorkflowDefinitionQuery` + +NewModelsQueryModelsWorkflowWorkflowDefinitionQuery instantiates a new ModelsQueryModelsWorkflowWorkflowDefinitionQuery object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsQueryModelsWorkflowWorkflowDefinitionQueryWithDefaults + +`func NewModelsQueryModelsWorkflowWorkflowDefinitionQueryWithDefaults() *ModelsQueryModelsWorkflowWorkflowDefinitionQuery` + +NewModelsQueryModelsWorkflowWorkflowDefinitionQueryWithDefaults instantiates a new ModelsQueryModelsWorkflowWorkflowDefinitionQuery object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetQueryString + +`func (o *ModelsQueryModelsWorkflowWorkflowDefinitionQuery) GetQueryString() string` + +GetQueryString returns the QueryString field if non-nil, zero value otherwise. + +### GetQueryStringOk + +`func (o *ModelsQueryModelsWorkflowWorkflowDefinitionQuery) GetQueryStringOk() (*string, bool)` + +GetQueryStringOk returns a tuple with the QueryString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQueryString + +`func (o *ModelsQueryModelsWorkflowWorkflowDefinitionQuery) SetQueryString(v string)` + +SetQueryString sets QueryString field to given value. + +### HasQueryString + +`func (o *ModelsQueryModelsWorkflowWorkflowDefinitionQuery) HasQueryString() bool` + +HasQueryString returns a boolean if a field has been set. + +### GetPageReturned + +`func (o *ModelsQueryModelsWorkflowWorkflowDefinitionQuery) GetPageReturned() int32` + +GetPageReturned returns the PageReturned field if non-nil, zero value otherwise. + +### GetPageReturnedOk + +`func (o *ModelsQueryModelsWorkflowWorkflowDefinitionQuery) GetPageReturnedOk() (*int32, bool)` + +GetPageReturnedOk returns a tuple with the PageReturned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageReturned + +`func (o *ModelsQueryModelsWorkflowWorkflowDefinitionQuery) SetPageReturned(v int32)` + +SetPageReturned sets PageReturned field to given value. + +### HasPageReturned + +`func (o *ModelsQueryModelsWorkflowWorkflowDefinitionQuery) HasPageReturned() bool` + +HasPageReturned returns a boolean if a field has been set. + +### GetReturnLimit + +`func (o *ModelsQueryModelsWorkflowWorkflowDefinitionQuery) GetReturnLimit() int32` + +GetReturnLimit returns the ReturnLimit field if non-nil, zero value otherwise. + +### GetReturnLimitOk + +`func (o *ModelsQueryModelsWorkflowWorkflowDefinitionQuery) GetReturnLimitOk() (*int32, bool)` + +GetReturnLimitOk returns a tuple with the ReturnLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReturnLimit + +`func (o *ModelsQueryModelsWorkflowWorkflowDefinitionQuery) SetReturnLimit(v int32)` + +SetReturnLimit sets ReturnLimit field to given value. + +### HasReturnLimit + +`func (o *ModelsQueryModelsWorkflowWorkflowDefinitionQuery) HasReturnLimit() bool` + +HasReturnLimit returns a boolean if a field has been set. + +### GetSortField + +`func (o *ModelsQueryModelsWorkflowWorkflowDefinitionQuery) GetSortField() string` + +GetSortField returns the SortField field if non-nil, zero value otherwise. + +### GetSortFieldOk + +`func (o *ModelsQueryModelsWorkflowWorkflowDefinitionQuery) GetSortFieldOk() (*string, bool)` + +GetSortFieldOk returns a tuple with the SortField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortField + +`func (o *ModelsQueryModelsWorkflowWorkflowDefinitionQuery) SetSortField(v string)` + +SetSortField sets SortField field to given value. + +### HasSortField + +`func (o *ModelsQueryModelsWorkflowWorkflowDefinitionQuery) HasSortField() bool` + +HasSortField returns a boolean if a field has been set. + +### GetSortAscending + +`func (o *ModelsQueryModelsWorkflowWorkflowDefinitionQuery) GetSortAscending() int32` + +GetSortAscending returns the SortAscending field if non-nil, zero value otherwise. + +### GetSortAscendingOk + +`func (o *ModelsQueryModelsWorkflowWorkflowDefinitionQuery) GetSortAscendingOk() (*int32, bool)` + +GetSortAscendingOk returns a tuple with the SortAscending field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortAscending + +`func (o *ModelsQueryModelsWorkflowWorkflowDefinitionQuery) SetSortAscending(v int32)` + +SetSortAscending sets SortAscending field to given value. + +### HasSortAscending + +`func (o *ModelsQueryModelsWorkflowWorkflowDefinitionQuery) HasSortAscending() bool` + +HasSortAscending returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsQueryModelsWorkflowWorkflowInstanceQuery.md b/v1/docs/ModelsQueryModelsWorkflowWorkflowInstanceQuery.md new file mode 100644 index 0000000..d576fad --- /dev/null +++ b/v1/docs/ModelsQueryModelsWorkflowWorkflowInstanceQuery.md @@ -0,0 +1,160 @@ +# ModelsQueryModelsWorkflowWorkflowInstanceQuery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**QueryString** | Pointer to **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | [optional] +**PageReturned** | Pointer to **int32** | The current page within the result set to be returned | [optional] +**ReturnLimit** | Pointer to **int32** | Maximum number of records to be returned in a single call | [optional] +**SortField** | Pointer to **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | [optional] +**SortAscending** | Pointer to **int32** | Field sort direction [0=ascending, 1=descending] | [optional] + +## Methods + +### NewModelsQueryModelsWorkflowWorkflowInstanceQuery + +`func NewModelsQueryModelsWorkflowWorkflowInstanceQuery() *ModelsQueryModelsWorkflowWorkflowInstanceQuery` + +NewModelsQueryModelsWorkflowWorkflowInstanceQuery instantiates a new ModelsQueryModelsWorkflowWorkflowInstanceQuery object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsQueryModelsWorkflowWorkflowInstanceQueryWithDefaults + +`func NewModelsQueryModelsWorkflowWorkflowInstanceQueryWithDefaults() *ModelsQueryModelsWorkflowWorkflowInstanceQuery` + +NewModelsQueryModelsWorkflowWorkflowInstanceQueryWithDefaults instantiates a new ModelsQueryModelsWorkflowWorkflowInstanceQuery object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetQueryString + +`func (o *ModelsQueryModelsWorkflowWorkflowInstanceQuery) GetQueryString() string` + +GetQueryString returns the QueryString field if non-nil, zero value otherwise. + +### GetQueryStringOk + +`func (o *ModelsQueryModelsWorkflowWorkflowInstanceQuery) GetQueryStringOk() (*string, bool)` + +GetQueryStringOk returns a tuple with the QueryString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQueryString + +`func (o *ModelsQueryModelsWorkflowWorkflowInstanceQuery) SetQueryString(v string)` + +SetQueryString sets QueryString field to given value. + +### HasQueryString + +`func (o *ModelsQueryModelsWorkflowWorkflowInstanceQuery) HasQueryString() bool` + +HasQueryString returns a boolean if a field has been set. + +### GetPageReturned + +`func (o *ModelsQueryModelsWorkflowWorkflowInstanceQuery) GetPageReturned() int32` + +GetPageReturned returns the PageReturned field if non-nil, zero value otherwise. + +### GetPageReturnedOk + +`func (o *ModelsQueryModelsWorkflowWorkflowInstanceQuery) GetPageReturnedOk() (*int32, bool)` + +GetPageReturnedOk returns a tuple with the PageReturned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageReturned + +`func (o *ModelsQueryModelsWorkflowWorkflowInstanceQuery) SetPageReturned(v int32)` + +SetPageReturned sets PageReturned field to given value. + +### HasPageReturned + +`func (o *ModelsQueryModelsWorkflowWorkflowInstanceQuery) HasPageReturned() bool` + +HasPageReturned returns a boolean if a field has been set. + +### GetReturnLimit + +`func (o *ModelsQueryModelsWorkflowWorkflowInstanceQuery) GetReturnLimit() int32` + +GetReturnLimit returns the ReturnLimit field if non-nil, zero value otherwise. + +### GetReturnLimitOk + +`func (o *ModelsQueryModelsWorkflowWorkflowInstanceQuery) GetReturnLimitOk() (*int32, bool)` + +GetReturnLimitOk returns a tuple with the ReturnLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReturnLimit + +`func (o *ModelsQueryModelsWorkflowWorkflowInstanceQuery) SetReturnLimit(v int32)` + +SetReturnLimit sets ReturnLimit field to given value. + +### HasReturnLimit + +`func (o *ModelsQueryModelsWorkflowWorkflowInstanceQuery) HasReturnLimit() bool` + +HasReturnLimit returns a boolean if a field has been set. + +### GetSortField + +`func (o *ModelsQueryModelsWorkflowWorkflowInstanceQuery) GetSortField() string` + +GetSortField returns the SortField field if non-nil, zero value otherwise. + +### GetSortFieldOk + +`func (o *ModelsQueryModelsWorkflowWorkflowInstanceQuery) GetSortFieldOk() (*string, bool)` + +GetSortFieldOk returns a tuple with the SortField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortField + +`func (o *ModelsQueryModelsWorkflowWorkflowInstanceQuery) SetSortField(v string)` + +SetSortField sets SortField field to given value. + +### HasSortField + +`func (o *ModelsQueryModelsWorkflowWorkflowInstanceQuery) HasSortField() bool` + +HasSortField returns a boolean if a field has been set. + +### GetSortAscending + +`func (o *ModelsQueryModelsWorkflowWorkflowInstanceQuery) GetSortAscending() int32` + +GetSortAscending returns the SortAscending field if non-nil, zero value otherwise. + +### GetSortAscendingOk + +`func (o *ModelsQueryModelsWorkflowWorkflowInstanceQuery) GetSortAscendingOk() (*int32, bool)` + +GetSortAscendingOk returns a tuple with the SortAscending field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortAscending + +`func (o *ModelsQueryModelsWorkflowWorkflowInstanceQuery) SetSortAscending(v int32)` + +SetSortAscending sets SortAscending field to given value. + +### HasSortAscending + +`func (o *ModelsQueryModelsWorkflowWorkflowInstanceQuery) HasSortAscending() bool` + +HasSortAscending returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsQueryModelsWorkflowWorkflowStepSchemaQuery.md b/v1/docs/ModelsQueryModelsWorkflowWorkflowStepSchemaQuery.md new file mode 100644 index 0000000..2dca95a --- /dev/null +++ b/v1/docs/ModelsQueryModelsWorkflowWorkflowStepSchemaQuery.md @@ -0,0 +1,160 @@ +# ModelsQueryModelsWorkflowWorkflowStepSchemaQuery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**QueryString** | Pointer to **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | [optional] +**PageReturned** | Pointer to **int32** | The current page within the result set to be returned | [optional] +**ReturnLimit** | Pointer to **int32** | Maximum number of records to be returned in a single call | [optional] +**SortField** | Pointer to **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | [optional] +**SortAscending** | Pointer to **int32** | Field sort direction [0=ascending, 1=descending] | [optional] + +## Methods + +### NewModelsQueryModelsWorkflowWorkflowStepSchemaQuery + +`func NewModelsQueryModelsWorkflowWorkflowStepSchemaQuery() *ModelsQueryModelsWorkflowWorkflowStepSchemaQuery` + +NewModelsQueryModelsWorkflowWorkflowStepSchemaQuery instantiates a new ModelsQueryModelsWorkflowWorkflowStepSchemaQuery object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsQueryModelsWorkflowWorkflowStepSchemaQueryWithDefaults + +`func NewModelsQueryModelsWorkflowWorkflowStepSchemaQueryWithDefaults() *ModelsQueryModelsWorkflowWorkflowStepSchemaQuery` + +NewModelsQueryModelsWorkflowWorkflowStepSchemaQueryWithDefaults instantiates a new ModelsQueryModelsWorkflowWorkflowStepSchemaQuery object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetQueryString + +`func (o *ModelsQueryModelsWorkflowWorkflowStepSchemaQuery) GetQueryString() string` + +GetQueryString returns the QueryString field if non-nil, zero value otherwise. + +### GetQueryStringOk + +`func (o *ModelsQueryModelsWorkflowWorkflowStepSchemaQuery) GetQueryStringOk() (*string, bool)` + +GetQueryStringOk returns a tuple with the QueryString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQueryString + +`func (o *ModelsQueryModelsWorkflowWorkflowStepSchemaQuery) SetQueryString(v string)` + +SetQueryString sets QueryString field to given value. + +### HasQueryString + +`func (o *ModelsQueryModelsWorkflowWorkflowStepSchemaQuery) HasQueryString() bool` + +HasQueryString returns a boolean if a field has been set. + +### GetPageReturned + +`func (o *ModelsQueryModelsWorkflowWorkflowStepSchemaQuery) GetPageReturned() int32` + +GetPageReturned returns the PageReturned field if non-nil, zero value otherwise. + +### GetPageReturnedOk + +`func (o *ModelsQueryModelsWorkflowWorkflowStepSchemaQuery) GetPageReturnedOk() (*int32, bool)` + +GetPageReturnedOk returns a tuple with the PageReturned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageReturned + +`func (o *ModelsQueryModelsWorkflowWorkflowStepSchemaQuery) SetPageReturned(v int32)` + +SetPageReturned sets PageReturned field to given value. + +### HasPageReturned + +`func (o *ModelsQueryModelsWorkflowWorkflowStepSchemaQuery) HasPageReturned() bool` + +HasPageReturned returns a boolean if a field has been set. + +### GetReturnLimit + +`func (o *ModelsQueryModelsWorkflowWorkflowStepSchemaQuery) GetReturnLimit() int32` + +GetReturnLimit returns the ReturnLimit field if non-nil, zero value otherwise. + +### GetReturnLimitOk + +`func (o *ModelsQueryModelsWorkflowWorkflowStepSchemaQuery) GetReturnLimitOk() (*int32, bool)` + +GetReturnLimitOk returns a tuple with the ReturnLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReturnLimit + +`func (o *ModelsQueryModelsWorkflowWorkflowStepSchemaQuery) SetReturnLimit(v int32)` + +SetReturnLimit sets ReturnLimit field to given value. + +### HasReturnLimit + +`func (o *ModelsQueryModelsWorkflowWorkflowStepSchemaQuery) HasReturnLimit() bool` + +HasReturnLimit returns a boolean if a field has been set. + +### GetSortField + +`func (o *ModelsQueryModelsWorkflowWorkflowStepSchemaQuery) GetSortField() string` + +GetSortField returns the SortField field if non-nil, zero value otherwise. + +### GetSortFieldOk + +`func (o *ModelsQueryModelsWorkflowWorkflowStepSchemaQuery) GetSortFieldOk() (*string, bool)` + +GetSortFieldOk returns a tuple with the SortField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortField + +`func (o *ModelsQueryModelsWorkflowWorkflowStepSchemaQuery) SetSortField(v string)` + +SetSortField sets SortField field to given value. + +### HasSortField + +`func (o *ModelsQueryModelsWorkflowWorkflowStepSchemaQuery) HasSortField() bool` + +HasSortField returns a boolean if a field has been set. + +### GetSortAscending + +`func (o *ModelsQueryModelsWorkflowWorkflowStepSchemaQuery) GetSortAscending() int32` + +GetSortAscending returns the SortAscending field if non-nil, zero value otherwise. + +### GetSortAscendingOk + +`func (o *ModelsQueryModelsWorkflowWorkflowStepSchemaQuery) GetSortAscendingOk() (*int32, bool)` + +GetSortAscendingOk returns a tuple with the SortAscending field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortAscending + +`func (o *ModelsQueryModelsWorkflowWorkflowStepSchemaQuery) SetSortAscending(v int32)` + +SetSortAscending sets SortAscending field to given value. + +### HasSortAscending + +`func (o *ModelsQueryModelsWorkflowWorkflowStepSchemaQuery) HasSortAscending() bool` + +HasSortAscending returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsQueryModelsWorkflowWorkflowTypeQuery.md b/v1/docs/ModelsQueryModelsWorkflowWorkflowTypeQuery.md new file mode 100644 index 0000000..0508cbc --- /dev/null +++ b/v1/docs/ModelsQueryModelsWorkflowWorkflowTypeQuery.md @@ -0,0 +1,160 @@ +# ModelsQueryModelsWorkflowWorkflowTypeQuery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**QueryString** | Pointer to **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | [optional] +**PageReturned** | Pointer to **int32** | The current page within the result set to be returned | [optional] +**ReturnLimit** | Pointer to **int32** | Maximum number of records to be returned in a single call | [optional] +**SortField** | Pointer to **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | [optional] +**SortAscending** | Pointer to **int32** | Field sort direction [0=ascending, 1=descending] | [optional] + +## Methods + +### NewModelsQueryModelsWorkflowWorkflowTypeQuery + +`func NewModelsQueryModelsWorkflowWorkflowTypeQuery() *ModelsQueryModelsWorkflowWorkflowTypeQuery` + +NewModelsQueryModelsWorkflowWorkflowTypeQuery instantiates a new ModelsQueryModelsWorkflowWorkflowTypeQuery object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsQueryModelsWorkflowWorkflowTypeQueryWithDefaults + +`func NewModelsQueryModelsWorkflowWorkflowTypeQueryWithDefaults() *ModelsQueryModelsWorkflowWorkflowTypeQuery` + +NewModelsQueryModelsWorkflowWorkflowTypeQueryWithDefaults instantiates a new ModelsQueryModelsWorkflowWorkflowTypeQuery object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetQueryString + +`func (o *ModelsQueryModelsWorkflowWorkflowTypeQuery) GetQueryString() string` + +GetQueryString returns the QueryString field if non-nil, zero value otherwise. + +### GetQueryStringOk + +`func (o *ModelsQueryModelsWorkflowWorkflowTypeQuery) GetQueryStringOk() (*string, bool)` + +GetQueryStringOk returns a tuple with the QueryString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQueryString + +`func (o *ModelsQueryModelsWorkflowWorkflowTypeQuery) SetQueryString(v string)` + +SetQueryString sets QueryString field to given value. + +### HasQueryString + +`func (o *ModelsQueryModelsWorkflowWorkflowTypeQuery) HasQueryString() bool` + +HasQueryString returns a boolean if a field has been set. + +### GetPageReturned + +`func (o *ModelsQueryModelsWorkflowWorkflowTypeQuery) GetPageReturned() int32` + +GetPageReturned returns the PageReturned field if non-nil, zero value otherwise. + +### GetPageReturnedOk + +`func (o *ModelsQueryModelsWorkflowWorkflowTypeQuery) GetPageReturnedOk() (*int32, bool)` + +GetPageReturnedOk returns a tuple with the PageReturned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageReturned + +`func (o *ModelsQueryModelsWorkflowWorkflowTypeQuery) SetPageReturned(v int32)` + +SetPageReturned sets PageReturned field to given value. + +### HasPageReturned + +`func (o *ModelsQueryModelsWorkflowWorkflowTypeQuery) HasPageReturned() bool` + +HasPageReturned returns a boolean if a field has been set. + +### GetReturnLimit + +`func (o *ModelsQueryModelsWorkflowWorkflowTypeQuery) GetReturnLimit() int32` + +GetReturnLimit returns the ReturnLimit field if non-nil, zero value otherwise. + +### GetReturnLimitOk + +`func (o *ModelsQueryModelsWorkflowWorkflowTypeQuery) GetReturnLimitOk() (*int32, bool)` + +GetReturnLimitOk returns a tuple with the ReturnLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReturnLimit + +`func (o *ModelsQueryModelsWorkflowWorkflowTypeQuery) SetReturnLimit(v int32)` + +SetReturnLimit sets ReturnLimit field to given value. + +### HasReturnLimit + +`func (o *ModelsQueryModelsWorkflowWorkflowTypeQuery) HasReturnLimit() bool` + +HasReturnLimit returns a boolean if a field has been set. + +### GetSortField + +`func (o *ModelsQueryModelsWorkflowWorkflowTypeQuery) GetSortField() string` + +GetSortField returns the SortField field if non-nil, zero value otherwise. + +### GetSortFieldOk + +`func (o *ModelsQueryModelsWorkflowWorkflowTypeQuery) GetSortFieldOk() (*string, bool)` + +GetSortFieldOk returns a tuple with the SortField field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortField + +`func (o *ModelsQueryModelsWorkflowWorkflowTypeQuery) SetSortField(v string)` + +SetSortField sets SortField field to given value. + +### HasSortField + +`func (o *ModelsQueryModelsWorkflowWorkflowTypeQuery) HasSortField() bool` + +HasSortField returns a boolean if a field has been set. + +### GetSortAscending + +`func (o *ModelsQueryModelsWorkflowWorkflowTypeQuery) GetSortAscending() int32` + +GetSortAscending returns the SortAscending field if non-nil, zero value otherwise. + +### GetSortAscendingOk + +`func (o *ModelsQueryModelsWorkflowWorkflowTypeQuery) GetSortAscendingOk() (*int32, bool)` + +GetSortAscendingOk returns a tuple with the SortAscending field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortAscending + +`func (o *ModelsQueryModelsWorkflowWorkflowTypeQuery) SetSortAscending(v int32)` + +SetSortAscending sets SortAscending field to given value. + +### HasSortAscending + +`func (o *ModelsQueryModelsWorkflowWorkflowTypeQuery) HasSortAscending() bool` + +HasSortAscending returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsRecoveryResponse.md b/v1/docs/ModelsRecoveryResponse.md new file mode 100644 index 0000000..9862454 --- /dev/null +++ b/v1/docs/ModelsRecoveryResponse.md @@ -0,0 +1,82 @@ +# ModelsRecoveryResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PFX** | Pointer to **string** | | [optional] +**FileName** | Pointer to **string** | | [optional] + +## Methods + +### NewModelsRecoveryResponse + +`func NewModelsRecoveryResponse() *ModelsRecoveryResponse` + +NewModelsRecoveryResponse instantiates a new ModelsRecoveryResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsRecoveryResponseWithDefaults + +`func NewModelsRecoveryResponseWithDefaults() *ModelsRecoveryResponse` + +NewModelsRecoveryResponseWithDefaults instantiates a new ModelsRecoveryResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPFX + +`func (o *ModelsRecoveryResponse) GetPFX() string` + +GetPFX returns the PFX field if non-nil, zero value otherwise. + +### GetPFXOk + +`func (o *ModelsRecoveryResponse) GetPFXOk() (*string, bool)` + +GetPFXOk returns a tuple with the PFX field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPFX + +`func (o *ModelsRecoveryResponse) SetPFX(v string)` + +SetPFX sets PFX field to given value. + +### HasPFX + +`func (o *ModelsRecoveryResponse) HasPFX() bool` + +HasPFX returns a boolean if a field has been set. + +### GetFileName + +`func (o *ModelsRecoveryResponse) GetFileName() string` + +GetFileName returns the FileName field if non-nil, zero value otherwise. + +### GetFileNameOk + +`func (o *ModelsRecoveryResponse) GetFileNameOk() (*string, bool)` + +GetFileNameOk returns a tuple with the FileName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFileName + +`func (o *ModelsRecoveryResponse) SetFileName(v string)` + +SetFileName sets FileName field to given value. + +### HasFileName + +`func (o *ModelsRecoveryResponse) HasFileName() bool` + +HasFileName returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsReenrollmentStatus.md b/v1/docs/ModelsReenrollmentStatus.md new file mode 100644 index 0000000..5d7160c --- /dev/null +++ b/v1/docs/ModelsReenrollmentStatus.md @@ -0,0 +1,186 @@ +# ModelsReenrollmentStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to **bool** | | [optional] +**AgentId** | Pointer to **string** | | [optional] +**Message** | Pointer to **string** | | [optional] +**JobProperties** | Pointer to **string** | | [optional] +**CustomAliasAllowed** | Pointer to **int32** | | [optional] +**EntryParameters** | Pointer to [**[]ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter**](ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter.md) | | [optional] + +## Methods + +### NewModelsReenrollmentStatus + +`func NewModelsReenrollmentStatus() *ModelsReenrollmentStatus` + +NewModelsReenrollmentStatus instantiates a new ModelsReenrollmentStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsReenrollmentStatusWithDefaults + +`func NewModelsReenrollmentStatusWithDefaults() *ModelsReenrollmentStatus` + +NewModelsReenrollmentStatusWithDefaults instantiates a new ModelsReenrollmentStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *ModelsReenrollmentStatus) GetData() bool` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *ModelsReenrollmentStatus) GetDataOk() (*bool, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *ModelsReenrollmentStatus) SetData(v bool)` + +SetData sets Data field to given value. + +### HasData + +`func (o *ModelsReenrollmentStatus) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetAgentId + +`func (o *ModelsReenrollmentStatus) GetAgentId() string` + +GetAgentId returns the AgentId field if non-nil, zero value otherwise. + +### GetAgentIdOk + +`func (o *ModelsReenrollmentStatus) GetAgentIdOk() (*string, bool)` + +GetAgentIdOk returns a tuple with the AgentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentId + +`func (o *ModelsReenrollmentStatus) SetAgentId(v string)` + +SetAgentId sets AgentId field to given value. + +### HasAgentId + +`func (o *ModelsReenrollmentStatus) HasAgentId() bool` + +HasAgentId returns a boolean if a field has been set. + +### GetMessage + +`func (o *ModelsReenrollmentStatus) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *ModelsReenrollmentStatus) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *ModelsReenrollmentStatus) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *ModelsReenrollmentStatus) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### GetJobProperties + +`func (o *ModelsReenrollmentStatus) GetJobProperties() string` + +GetJobProperties returns the JobProperties field if non-nil, zero value otherwise. + +### GetJobPropertiesOk + +`func (o *ModelsReenrollmentStatus) GetJobPropertiesOk() (*string, bool)` + +GetJobPropertiesOk returns a tuple with the JobProperties field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobProperties + +`func (o *ModelsReenrollmentStatus) SetJobProperties(v string)` + +SetJobProperties sets JobProperties field to given value. + +### HasJobProperties + +`func (o *ModelsReenrollmentStatus) HasJobProperties() bool` + +HasJobProperties returns a boolean if a field has been set. + +### GetCustomAliasAllowed + +`func (o *ModelsReenrollmentStatus) GetCustomAliasAllowed() int32` + +GetCustomAliasAllowed returns the CustomAliasAllowed field if non-nil, zero value otherwise. + +### GetCustomAliasAllowedOk + +`func (o *ModelsReenrollmentStatus) GetCustomAliasAllowedOk() (*int32, bool)` + +GetCustomAliasAllowedOk returns a tuple with the CustomAliasAllowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomAliasAllowed + +`func (o *ModelsReenrollmentStatus) SetCustomAliasAllowed(v int32)` + +SetCustomAliasAllowed sets CustomAliasAllowed field to given value. + +### HasCustomAliasAllowed + +`func (o *ModelsReenrollmentStatus) HasCustomAliasAllowed() bool` + +HasCustomAliasAllowed returns a boolean if a field has been set. + +### GetEntryParameters + +`func (o *ModelsReenrollmentStatus) GetEntryParameters() []ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter` + +GetEntryParameters returns the EntryParameters field if non-nil, zero value otherwise. + +### GetEntryParametersOk + +`func (o *ModelsReenrollmentStatus) GetEntryParametersOk() (*[]ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter, bool)` + +GetEntryParametersOk returns a tuple with the EntryParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEntryParameters + +`func (o *ModelsReenrollmentStatus) SetEntryParameters(v []ModelsCertificateStoreTypesCertificateStoreTypeEntryParameter)` + +SetEntryParameters sets EntryParameters field to given value. + +### HasEntryParameters + +`func (o *ModelsReenrollmentStatus) HasEntryParameters() bool` + +HasEntryParameters returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsReport.md b/v1/docs/ModelsReport.md new file mode 100644 index 0000000..8b40d65 --- /dev/null +++ b/v1/docs/ModelsReport.md @@ -0,0 +1,420 @@ +# ModelsReport + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Scheduled** | Pointer to **int32** | | [optional] +**DisplayName** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**ReportPath** | Pointer to **string** | | [optional] +**VersionNumber** | Pointer to **string** | | [optional] +**Categories** | Pointer to **string** | | [optional] +**ShortName** | Pointer to **string** | | [optional] +**InNavigator** | Pointer to **bool** | | [optional] +**Favorite** | Pointer to **bool** | | [optional] +**RemoveDuplicates** | Pointer to **bool** | | [optional] +**UsesCollection** | Pointer to **bool** | | [optional] +**ReportParameter** | Pointer to [**[]ModelsReportParameters**](ModelsReportParameters.md) | | [optional] +**Schedules** | Pointer to [**[]ModelsReportSchedule**](ModelsReportSchedule.md) | | [optional] +**AcceptedScheduleFormats** | Pointer to **[]string** | | [optional] + +## Methods + +### NewModelsReport + +`func NewModelsReport() *ModelsReport` + +NewModelsReport instantiates a new ModelsReport object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsReportWithDefaults + +`func NewModelsReportWithDefaults() *ModelsReport` + +NewModelsReportWithDefaults instantiates a new ModelsReport object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsReport) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsReport) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsReport) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ModelsReport) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetScheduled + +`func (o *ModelsReport) GetScheduled() int32` + +GetScheduled returns the Scheduled field if non-nil, zero value otherwise. + +### GetScheduledOk + +`func (o *ModelsReport) GetScheduledOk() (*int32, bool)` + +GetScheduledOk returns a tuple with the Scheduled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScheduled + +`func (o *ModelsReport) SetScheduled(v int32)` + +SetScheduled sets Scheduled field to given value. + +### HasScheduled + +`func (o *ModelsReport) HasScheduled() bool` + +HasScheduled returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *ModelsReport) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *ModelsReport) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *ModelsReport) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *ModelsReport) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetDescription + +`func (o *ModelsReport) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ModelsReport) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *ModelsReport) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ModelsReport) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetReportPath + +`func (o *ModelsReport) GetReportPath() string` + +GetReportPath returns the ReportPath field if non-nil, zero value otherwise. + +### GetReportPathOk + +`func (o *ModelsReport) GetReportPathOk() (*string, bool)` + +GetReportPathOk returns a tuple with the ReportPath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReportPath + +`func (o *ModelsReport) SetReportPath(v string)` + +SetReportPath sets ReportPath field to given value. + +### HasReportPath + +`func (o *ModelsReport) HasReportPath() bool` + +HasReportPath returns a boolean if a field has been set. + +### GetVersionNumber + +`func (o *ModelsReport) GetVersionNumber() string` + +GetVersionNumber returns the VersionNumber field if non-nil, zero value otherwise. + +### GetVersionNumberOk + +`func (o *ModelsReport) GetVersionNumberOk() (*string, bool)` + +GetVersionNumberOk returns a tuple with the VersionNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersionNumber + +`func (o *ModelsReport) SetVersionNumber(v string)` + +SetVersionNumber sets VersionNumber field to given value. + +### HasVersionNumber + +`func (o *ModelsReport) HasVersionNumber() bool` + +HasVersionNumber returns a boolean if a field has been set. + +### GetCategories + +`func (o *ModelsReport) GetCategories() string` + +GetCategories returns the Categories field if non-nil, zero value otherwise. + +### GetCategoriesOk + +`func (o *ModelsReport) GetCategoriesOk() (*string, bool)` + +GetCategoriesOk returns a tuple with the Categories field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCategories + +`func (o *ModelsReport) SetCategories(v string)` + +SetCategories sets Categories field to given value. + +### HasCategories + +`func (o *ModelsReport) HasCategories() bool` + +HasCategories returns a boolean if a field has been set. + +### GetShortName + +`func (o *ModelsReport) GetShortName() string` + +GetShortName returns the ShortName field if non-nil, zero value otherwise. + +### GetShortNameOk + +`func (o *ModelsReport) GetShortNameOk() (*string, bool)` + +GetShortNameOk returns a tuple with the ShortName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShortName + +`func (o *ModelsReport) SetShortName(v string)` + +SetShortName sets ShortName field to given value. + +### HasShortName + +`func (o *ModelsReport) HasShortName() bool` + +HasShortName returns a boolean if a field has been set. + +### GetInNavigator + +`func (o *ModelsReport) GetInNavigator() bool` + +GetInNavigator returns the InNavigator field if non-nil, zero value otherwise. + +### GetInNavigatorOk + +`func (o *ModelsReport) GetInNavigatorOk() (*bool, bool)` + +GetInNavigatorOk returns a tuple with the InNavigator field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInNavigator + +`func (o *ModelsReport) SetInNavigator(v bool)` + +SetInNavigator sets InNavigator field to given value. + +### HasInNavigator + +`func (o *ModelsReport) HasInNavigator() bool` + +HasInNavigator returns a boolean if a field has been set. + +### GetFavorite + +`func (o *ModelsReport) GetFavorite() bool` + +GetFavorite returns the Favorite field if non-nil, zero value otherwise. + +### GetFavoriteOk + +`func (o *ModelsReport) GetFavoriteOk() (*bool, bool)` + +GetFavoriteOk returns a tuple with the Favorite field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFavorite + +`func (o *ModelsReport) SetFavorite(v bool)` + +SetFavorite sets Favorite field to given value. + +### HasFavorite + +`func (o *ModelsReport) HasFavorite() bool` + +HasFavorite returns a boolean if a field has been set. + +### GetRemoveDuplicates + +`func (o *ModelsReport) GetRemoveDuplicates() bool` + +GetRemoveDuplicates returns the RemoveDuplicates field if non-nil, zero value otherwise. + +### GetRemoveDuplicatesOk + +`func (o *ModelsReport) GetRemoveDuplicatesOk() (*bool, bool)` + +GetRemoveDuplicatesOk returns a tuple with the RemoveDuplicates field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRemoveDuplicates + +`func (o *ModelsReport) SetRemoveDuplicates(v bool)` + +SetRemoveDuplicates sets RemoveDuplicates field to given value. + +### HasRemoveDuplicates + +`func (o *ModelsReport) HasRemoveDuplicates() bool` + +HasRemoveDuplicates returns a boolean if a field has been set. + +### GetUsesCollection + +`func (o *ModelsReport) GetUsesCollection() bool` + +GetUsesCollection returns the UsesCollection field if non-nil, zero value otherwise. + +### GetUsesCollectionOk + +`func (o *ModelsReport) GetUsesCollectionOk() (*bool, bool)` + +GetUsesCollectionOk returns a tuple with the UsesCollection field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsesCollection + +`func (o *ModelsReport) SetUsesCollection(v bool)` + +SetUsesCollection sets UsesCollection field to given value. + +### HasUsesCollection + +`func (o *ModelsReport) HasUsesCollection() bool` + +HasUsesCollection returns a boolean if a field has been set. + +### GetReportParameter + +`func (o *ModelsReport) GetReportParameter() []ModelsReportParameters` + +GetReportParameter returns the ReportParameter field if non-nil, zero value otherwise. + +### GetReportParameterOk + +`func (o *ModelsReport) GetReportParameterOk() (*[]ModelsReportParameters, bool)` + +GetReportParameterOk returns a tuple with the ReportParameter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReportParameter + +`func (o *ModelsReport) SetReportParameter(v []ModelsReportParameters)` + +SetReportParameter sets ReportParameter field to given value. + +### HasReportParameter + +`func (o *ModelsReport) HasReportParameter() bool` + +HasReportParameter returns a boolean if a field has been set. + +### GetSchedules + +`func (o *ModelsReport) GetSchedules() []ModelsReportSchedule` + +GetSchedules returns the Schedules field if non-nil, zero value otherwise. + +### GetSchedulesOk + +`func (o *ModelsReport) GetSchedulesOk() (*[]ModelsReportSchedule, bool)` + +GetSchedulesOk returns a tuple with the Schedules field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSchedules + +`func (o *ModelsReport) SetSchedules(v []ModelsReportSchedule)` + +SetSchedules sets Schedules field to given value. + +### HasSchedules + +`func (o *ModelsReport) HasSchedules() bool` + +HasSchedules returns a boolean if a field has been set. + +### GetAcceptedScheduleFormats + +`func (o *ModelsReport) GetAcceptedScheduleFormats() []string` + +GetAcceptedScheduleFormats returns the AcceptedScheduleFormats field if non-nil, zero value otherwise. + +### GetAcceptedScheduleFormatsOk + +`func (o *ModelsReport) GetAcceptedScheduleFormatsOk() (*[]string, bool)` + +GetAcceptedScheduleFormatsOk returns a tuple with the AcceptedScheduleFormats field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAcceptedScheduleFormats + +`func (o *ModelsReport) SetAcceptedScheduleFormats(v []string)` + +SetAcceptedScheduleFormats sets AcceptedScheduleFormats field to given value. + +### HasAcceptedScheduleFormats + +`func (o *ModelsReport) HasAcceptedScheduleFormats() bool` + +HasAcceptedScheduleFormats returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsReportParameters.md b/v1/docs/ModelsReportParameters.md new file mode 100644 index 0000000..1492ec6 --- /dev/null +++ b/v1/docs/ModelsReportParameters.md @@ -0,0 +1,238 @@ +# ModelsReportParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**ParameterName** | Pointer to **string** | | [optional] +**ParameterType** | Pointer to **int32** | | [optional] +**DisplayName** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**DefaultValue** | Pointer to **string** | | [optional] +**DisplayOrder** | Pointer to **int32** | | [optional] +**ParameterVisibility** | Pointer to **int32** | | [optional] + +## Methods + +### NewModelsReportParameters + +`func NewModelsReportParameters() *ModelsReportParameters` + +NewModelsReportParameters instantiates a new ModelsReportParameters object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsReportParametersWithDefaults + +`func NewModelsReportParametersWithDefaults() *ModelsReportParameters` + +NewModelsReportParametersWithDefaults instantiates a new ModelsReportParameters object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsReportParameters) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsReportParameters) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsReportParameters) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ModelsReportParameters) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetParameterName + +`func (o *ModelsReportParameters) GetParameterName() string` + +GetParameterName returns the ParameterName field if non-nil, zero value otherwise. + +### GetParameterNameOk + +`func (o *ModelsReportParameters) GetParameterNameOk() (*string, bool)` + +GetParameterNameOk returns a tuple with the ParameterName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParameterName + +`func (o *ModelsReportParameters) SetParameterName(v string)` + +SetParameterName sets ParameterName field to given value. + +### HasParameterName + +`func (o *ModelsReportParameters) HasParameterName() bool` + +HasParameterName returns a boolean if a field has been set. + +### GetParameterType + +`func (o *ModelsReportParameters) GetParameterType() int32` + +GetParameterType returns the ParameterType field if non-nil, zero value otherwise. + +### GetParameterTypeOk + +`func (o *ModelsReportParameters) GetParameterTypeOk() (*int32, bool)` + +GetParameterTypeOk returns a tuple with the ParameterType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParameterType + +`func (o *ModelsReportParameters) SetParameterType(v int32)` + +SetParameterType sets ParameterType field to given value. + +### HasParameterType + +`func (o *ModelsReportParameters) HasParameterType() bool` + +HasParameterType returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *ModelsReportParameters) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *ModelsReportParameters) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *ModelsReportParameters) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *ModelsReportParameters) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetDescription + +`func (o *ModelsReportParameters) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ModelsReportParameters) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *ModelsReportParameters) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ModelsReportParameters) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetDefaultValue + +`func (o *ModelsReportParameters) GetDefaultValue() string` + +GetDefaultValue returns the DefaultValue field if non-nil, zero value otherwise. + +### GetDefaultValueOk + +`func (o *ModelsReportParameters) GetDefaultValueOk() (*string, bool)` + +GetDefaultValueOk returns a tuple with the DefaultValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultValue + +`func (o *ModelsReportParameters) SetDefaultValue(v string)` + +SetDefaultValue sets DefaultValue field to given value. + +### HasDefaultValue + +`func (o *ModelsReportParameters) HasDefaultValue() bool` + +HasDefaultValue returns a boolean if a field has been set. + +### GetDisplayOrder + +`func (o *ModelsReportParameters) GetDisplayOrder() int32` + +GetDisplayOrder returns the DisplayOrder field if non-nil, zero value otherwise. + +### GetDisplayOrderOk + +`func (o *ModelsReportParameters) GetDisplayOrderOk() (*int32, bool)` + +GetDisplayOrderOk returns a tuple with the DisplayOrder field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayOrder + +`func (o *ModelsReportParameters) SetDisplayOrder(v int32)` + +SetDisplayOrder sets DisplayOrder field to given value. + +### HasDisplayOrder + +`func (o *ModelsReportParameters) HasDisplayOrder() bool` + +HasDisplayOrder returns a boolean if a field has been set. + +### GetParameterVisibility + +`func (o *ModelsReportParameters) GetParameterVisibility() int32` + +GetParameterVisibility returns the ParameterVisibility field if non-nil, zero value otherwise. + +### GetParameterVisibilityOk + +`func (o *ModelsReportParameters) GetParameterVisibilityOk() (*int32, bool)` + +GetParameterVisibilityOk returns a tuple with the ParameterVisibility field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParameterVisibility + +`func (o *ModelsReportParameters) SetParameterVisibility(v int32)` + +SetParameterVisibility sets ParameterVisibility field to given value. + +### HasParameterVisibility + +`func (o *ModelsReportParameters) HasParameterVisibility() bool` + +HasParameterVisibility returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsReportParametersRequest.md b/v1/docs/ModelsReportParametersRequest.md new file mode 100644 index 0000000..63af10f --- /dev/null +++ b/v1/docs/ModelsReportParametersRequest.md @@ -0,0 +1,134 @@ +# ModelsReportParametersRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**DisplayName** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**DefaultValue** | Pointer to **string** | | [optional] + +## Methods + +### NewModelsReportParametersRequest + +`func NewModelsReportParametersRequest() *ModelsReportParametersRequest` + +NewModelsReportParametersRequest instantiates a new ModelsReportParametersRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsReportParametersRequestWithDefaults + +`func NewModelsReportParametersRequestWithDefaults() *ModelsReportParametersRequest` + +NewModelsReportParametersRequestWithDefaults instantiates a new ModelsReportParametersRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsReportParametersRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsReportParametersRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsReportParametersRequest) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ModelsReportParametersRequest) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *ModelsReportParametersRequest) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *ModelsReportParametersRequest) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *ModelsReportParametersRequest) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *ModelsReportParametersRequest) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetDescription + +`func (o *ModelsReportParametersRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ModelsReportParametersRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *ModelsReportParametersRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ModelsReportParametersRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetDefaultValue + +`func (o *ModelsReportParametersRequest) GetDefaultValue() string` + +GetDefaultValue returns the DefaultValue field if non-nil, zero value otherwise. + +### GetDefaultValueOk + +`func (o *ModelsReportParametersRequest) GetDefaultValueOk() (*string, bool)` + +GetDefaultValueOk returns a tuple with the DefaultValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultValue + +`func (o *ModelsReportParametersRequest) SetDefaultValue(v string)` + +SetDefaultValue sets DefaultValue field to given value. + +### HasDefaultValue + +`func (o *ModelsReportParametersRequest) HasDefaultValue() bool` + +HasDefaultValue returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsReportRequestModel.md b/v1/docs/ModelsReportRequestModel.md new file mode 100644 index 0000000..ca29c3e --- /dev/null +++ b/v1/docs/ModelsReportRequestModel.md @@ -0,0 +1,134 @@ +# ModelsReportRequestModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**InNavigator** | Pointer to **bool** | | [optional] +**Favorite** | Pointer to **bool** | | [optional] +**RemoveDuplicates** | Pointer to **bool** | | [optional] + +## Methods + +### NewModelsReportRequestModel + +`func NewModelsReportRequestModel() *ModelsReportRequestModel` + +NewModelsReportRequestModel instantiates a new ModelsReportRequestModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsReportRequestModelWithDefaults + +`func NewModelsReportRequestModelWithDefaults() *ModelsReportRequestModel` + +NewModelsReportRequestModelWithDefaults instantiates a new ModelsReportRequestModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsReportRequestModel) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsReportRequestModel) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsReportRequestModel) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ModelsReportRequestModel) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetInNavigator + +`func (o *ModelsReportRequestModel) GetInNavigator() bool` + +GetInNavigator returns the InNavigator field if non-nil, zero value otherwise. + +### GetInNavigatorOk + +`func (o *ModelsReportRequestModel) GetInNavigatorOk() (*bool, bool)` + +GetInNavigatorOk returns a tuple with the InNavigator field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInNavigator + +`func (o *ModelsReportRequestModel) SetInNavigator(v bool)` + +SetInNavigator sets InNavigator field to given value. + +### HasInNavigator + +`func (o *ModelsReportRequestModel) HasInNavigator() bool` + +HasInNavigator returns a boolean if a field has been set. + +### GetFavorite + +`func (o *ModelsReportRequestModel) GetFavorite() bool` + +GetFavorite returns the Favorite field if non-nil, zero value otherwise. + +### GetFavoriteOk + +`func (o *ModelsReportRequestModel) GetFavoriteOk() (*bool, bool)` + +GetFavoriteOk returns a tuple with the Favorite field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFavorite + +`func (o *ModelsReportRequestModel) SetFavorite(v bool)` + +SetFavorite sets Favorite field to given value. + +### HasFavorite + +`func (o *ModelsReportRequestModel) HasFavorite() bool` + +HasFavorite returns a boolean if a field has been set. + +### GetRemoveDuplicates + +`func (o *ModelsReportRequestModel) GetRemoveDuplicates() bool` + +GetRemoveDuplicates returns the RemoveDuplicates field if non-nil, zero value otherwise. + +### GetRemoveDuplicatesOk + +`func (o *ModelsReportRequestModel) GetRemoveDuplicatesOk() (*bool, bool)` + +GetRemoveDuplicatesOk returns a tuple with the RemoveDuplicates field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRemoveDuplicates + +`func (o *ModelsReportRequestModel) SetRemoveDuplicates(v bool)` + +SetRemoveDuplicates sets RemoveDuplicates field to given value. + +### HasRemoveDuplicates + +`func (o *ModelsReportRequestModel) HasRemoveDuplicates() bool` + +HasRemoveDuplicates returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsReportSchedule.md b/v1/docs/ModelsReportSchedule.md new file mode 100644 index 0000000..adbefa4 --- /dev/null +++ b/v1/docs/ModelsReportSchedule.md @@ -0,0 +1,264 @@ +# ModelsReportSchedule + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**SendReport** | Pointer to **bool** | | [optional] +**SaveReport** | Pointer to **bool** | | [optional] +**SaveReportPath** | Pointer to **string** | | [optional] +**ReportFormat** | Pointer to **string** | | [optional] +**KeyfactorSchedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**CertificateCollectionId** | Pointer to **int32** | | [optional] +**EmailRecipients** | Pointer to **[]string** | | [optional] +**RuntimeParameters** | Pointer to **map[string]string** | | [optional] + +## Methods + +### NewModelsReportSchedule + +`func NewModelsReportSchedule() *ModelsReportSchedule` + +NewModelsReportSchedule instantiates a new ModelsReportSchedule object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsReportScheduleWithDefaults + +`func NewModelsReportScheduleWithDefaults() *ModelsReportSchedule` + +NewModelsReportScheduleWithDefaults instantiates a new ModelsReportSchedule object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsReportSchedule) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsReportSchedule) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsReportSchedule) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ModelsReportSchedule) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetSendReport + +`func (o *ModelsReportSchedule) GetSendReport() bool` + +GetSendReport returns the SendReport field if non-nil, zero value otherwise. + +### GetSendReportOk + +`func (o *ModelsReportSchedule) GetSendReportOk() (*bool, bool)` + +GetSendReportOk returns a tuple with the SendReport field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSendReport + +`func (o *ModelsReportSchedule) SetSendReport(v bool)` + +SetSendReport sets SendReport field to given value. + +### HasSendReport + +`func (o *ModelsReportSchedule) HasSendReport() bool` + +HasSendReport returns a boolean if a field has been set. + +### GetSaveReport + +`func (o *ModelsReportSchedule) GetSaveReport() bool` + +GetSaveReport returns the SaveReport field if non-nil, zero value otherwise. + +### GetSaveReportOk + +`func (o *ModelsReportSchedule) GetSaveReportOk() (*bool, bool)` + +GetSaveReportOk returns a tuple with the SaveReport field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSaveReport + +`func (o *ModelsReportSchedule) SetSaveReport(v bool)` + +SetSaveReport sets SaveReport field to given value. + +### HasSaveReport + +`func (o *ModelsReportSchedule) HasSaveReport() bool` + +HasSaveReport returns a boolean if a field has been set. + +### GetSaveReportPath + +`func (o *ModelsReportSchedule) GetSaveReportPath() string` + +GetSaveReportPath returns the SaveReportPath field if non-nil, zero value otherwise. + +### GetSaveReportPathOk + +`func (o *ModelsReportSchedule) GetSaveReportPathOk() (*string, bool)` + +GetSaveReportPathOk returns a tuple with the SaveReportPath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSaveReportPath + +`func (o *ModelsReportSchedule) SetSaveReportPath(v string)` + +SetSaveReportPath sets SaveReportPath field to given value. + +### HasSaveReportPath + +`func (o *ModelsReportSchedule) HasSaveReportPath() bool` + +HasSaveReportPath returns a boolean if a field has been set. + +### GetReportFormat + +`func (o *ModelsReportSchedule) GetReportFormat() string` + +GetReportFormat returns the ReportFormat field if non-nil, zero value otherwise. + +### GetReportFormatOk + +`func (o *ModelsReportSchedule) GetReportFormatOk() (*string, bool)` + +GetReportFormatOk returns a tuple with the ReportFormat field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReportFormat + +`func (o *ModelsReportSchedule) SetReportFormat(v string)` + +SetReportFormat sets ReportFormat field to given value. + +### HasReportFormat + +`func (o *ModelsReportSchedule) HasReportFormat() bool` + +HasReportFormat returns a boolean if a field has been set. + +### GetKeyfactorSchedule + +`func (o *ModelsReportSchedule) GetKeyfactorSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetKeyfactorSchedule returns the KeyfactorSchedule field if non-nil, zero value otherwise. + +### GetKeyfactorScheduleOk + +`func (o *ModelsReportSchedule) GetKeyfactorScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetKeyfactorScheduleOk returns a tuple with the KeyfactorSchedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyfactorSchedule + +`func (o *ModelsReportSchedule) SetKeyfactorSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetKeyfactorSchedule sets KeyfactorSchedule field to given value. + +### HasKeyfactorSchedule + +`func (o *ModelsReportSchedule) HasKeyfactorSchedule() bool` + +HasKeyfactorSchedule returns a boolean if a field has been set. + +### GetCertificateCollectionId + +`func (o *ModelsReportSchedule) GetCertificateCollectionId() int32` + +GetCertificateCollectionId returns the CertificateCollectionId field if non-nil, zero value otherwise. + +### GetCertificateCollectionIdOk + +`func (o *ModelsReportSchedule) GetCertificateCollectionIdOk() (*int32, bool)` + +GetCertificateCollectionIdOk returns a tuple with the CertificateCollectionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateCollectionId + +`func (o *ModelsReportSchedule) SetCertificateCollectionId(v int32)` + +SetCertificateCollectionId sets CertificateCollectionId field to given value. + +### HasCertificateCollectionId + +`func (o *ModelsReportSchedule) HasCertificateCollectionId() bool` + +HasCertificateCollectionId returns a boolean if a field has been set. + +### GetEmailRecipients + +`func (o *ModelsReportSchedule) GetEmailRecipients() []string` + +GetEmailRecipients returns the EmailRecipients field if non-nil, zero value otherwise. + +### GetEmailRecipientsOk + +`func (o *ModelsReportSchedule) GetEmailRecipientsOk() (*[]string, bool)` + +GetEmailRecipientsOk returns a tuple with the EmailRecipients field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmailRecipients + +`func (o *ModelsReportSchedule) SetEmailRecipients(v []string)` + +SetEmailRecipients sets EmailRecipients field to given value. + +### HasEmailRecipients + +`func (o *ModelsReportSchedule) HasEmailRecipients() bool` + +HasEmailRecipients returns a boolean if a field has been set. + +### GetRuntimeParameters + +`func (o *ModelsReportSchedule) GetRuntimeParameters() map[string]string` + +GetRuntimeParameters returns the RuntimeParameters field if non-nil, zero value otherwise. + +### GetRuntimeParametersOk + +`func (o *ModelsReportSchedule) GetRuntimeParametersOk() (*map[string]string, bool)` + +GetRuntimeParametersOk returns a tuple with the RuntimeParameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRuntimeParameters + +`func (o *ModelsReportSchedule) SetRuntimeParameters(v map[string]string)` + +SetRuntimeParameters sets RuntimeParameters field to given value. + +### HasRuntimeParameters + +`func (o *ModelsReportSchedule) HasRuntimeParameters() bool` + +HasRuntimeParameters returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsRevocationRevocationResponse.md b/v1/docs/ModelsRevocationRevocationResponse.md new file mode 100644 index 0000000..042b9a1 --- /dev/null +++ b/v1/docs/ModelsRevocationRevocationResponse.md @@ -0,0 +1,82 @@ +# ModelsRevocationRevocationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RevokedIds** | Pointer to **[]int32** | | [optional] +**SuspendedCerts** | Pointer to [**[]ModelsRevocationSuspendedRevocationResponse**](ModelsRevocationSuspendedRevocationResponse.md) | | [optional] + +## Methods + +### NewModelsRevocationRevocationResponse + +`func NewModelsRevocationRevocationResponse() *ModelsRevocationRevocationResponse` + +NewModelsRevocationRevocationResponse instantiates a new ModelsRevocationRevocationResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsRevocationRevocationResponseWithDefaults + +`func NewModelsRevocationRevocationResponseWithDefaults() *ModelsRevocationRevocationResponse` + +NewModelsRevocationRevocationResponseWithDefaults instantiates a new ModelsRevocationRevocationResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRevokedIds + +`func (o *ModelsRevocationRevocationResponse) GetRevokedIds() []int32` + +GetRevokedIds returns the RevokedIds field if non-nil, zero value otherwise. + +### GetRevokedIdsOk + +`func (o *ModelsRevocationRevocationResponse) GetRevokedIdsOk() (*[]int32, bool)` + +GetRevokedIdsOk returns a tuple with the RevokedIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRevokedIds + +`func (o *ModelsRevocationRevocationResponse) SetRevokedIds(v []int32)` + +SetRevokedIds sets RevokedIds field to given value. + +### HasRevokedIds + +`func (o *ModelsRevocationRevocationResponse) HasRevokedIds() bool` + +HasRevokedIds returns a boolean if a field has been set. + +### GetSuspendedCerts + +`func (o *ModelsRevocationRevocationResponse) GetSuspendedCerts() []ModelsRevocationSuspendedRevocationResponse` + +GetSuspendedCerts returns the SuspendedCerts field if non-nil, zero value otherwise. + +### GetSuspendedCertsOk + +`func (o *ModelsRevocationRevocationResponse) GetSuspendedCertsOk() (*[]ModelsRevocationSuspendedRevocationResponse, bool)` + +GetSuspendedCertsOk returns a tuple with the SuspendedCerts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuspendedCerts + +`func (o *ModelsRevocationRevocationResponse) SetSuspendedCerts(v []ModelsRevocationSuspendedRevocationResponse)` + +SetSuspendedCerts sets SuspendedCerts field to given value. + +### HasSuspendedCerts + +`func (o *ModelsRevocationRevocationResponse) HasSuspendedCerts() bool` + +HasSuspendedCerts returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsRevocationSuspendedRevocationResponse.md b/v1/docs/ModelsRevocationSuspendedRevocationResponse.md new file mode 100644 index 0000000..9542b98 --- /dev/null +++ b/v1/docs/ModelsRevocationSuspendedRevocationResponse.md @@ -0,0 +1,108 @@ +# ModelsRevocationSuspendedRevocationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CertId** | Pointer to **int32** | | [optional] +**WorkflowId** | Pointer to **string** | | [optional] +**Message** | Pointer to **string** | | [optional] + +## Methods + +### NewModelsRevocationSuspendedRevocationResponse + +`func NewModelsRevocationSuspendedRevocationResponse() *ModelsRevocationSuspendedRevocationResponse` + +NewModelsRevocationSuspendedRevocationResponse instantiates a new ModelsRevocationSuspendedRevocationResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsRevocationSuspendedRevocationResponseWithDefaults + +`func NewModelsRevocationSuspendedRevocationResponseWithDefaults() *ModelsRevocationSuspendedRevocationResponse` + +NewModelsRevocationSuspendedRevocationResponseWithDefaults instantiates a new ModelsRevocationSuspendedRevocationResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCertId + +`func (o *ModelsRevocationSuspendedRevocationResponse) GetCertId() int32` + +GetCertId returns the CertId field if non-nil, zero value otherwise. + +### GetCertIdOk + +`func (o *ModelsRevocationSuspendedRevocationResponse) GetCertIdOk() (*int32, bool)` + +GetCertIdOk returns a tuple with the CertId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertId + +`func (o *ModelsRevocationSuspendedRevocationResponse) SetCertId(v int32)` + +SetCertId sets CertId field to given value. + +### HasCertId + +`func (o *ModelsRevocationSuspendedRevocationResponse) HasCertId() bool` + +HasCertId returns a boolean if a field has been set. + +### GetWorkflowId + +`func (o *ModelsRevocationSuspendedRevocationResponse) GetWorkflowId() string` + +GetWorkflowId returns the WorkflowId field if non-nil, zero value otherwise. + +### GetWorkflowIdOk + +`func (o *ModelsRevocationSuspendedRevocationResponse) GetWorkflowIdOk() (*string, bool)` + +GetWorkflowIdOk returns a tuple with the WorkflowId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflowId + +`func (o *ModelsRevocationSuspendedRevocationResponse) SetWorkflowId(v string)` + +SetWorkflowId sets WorkflowId field to given value. + +### HasWorkflowId + +`func (o *ModelsRevocationSuspendedRevocationResponse) HasWorkflowId() bool` + +HasWorkflowId returns a boolean if a field has been set. + +### GetMessage + +`func (o *ModelsRevocationSuspendedRevocationResponse) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *ModelsRevocationSuspendedRevocationResponse) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *ModelsRevocationSuspendedRevocationResponse) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *ModelsRevocationSuspendedRevocationResponse) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsRevokeAllCertificatesRequest.md b/v1/docs/ModelsRevokeAllCertificatesRequest.md new file mode 100644 index 0000000..92de0eb --- /dev/null +++ b/v1/docs/ModelsRevokeAllCertificatesRequest.md @@ -0,0 +1,176 @@ +# ModelsRevokeAllCertificatesRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Query** | Pointer to **string** | The query string of the certificates to revoke | [optional] +**Reason** | **int32** | The Reason for revocation | +**Comment** | **string** | A comment for auditing purposes | +**EffectiveDate** | Pointer to **time.Time** | The date when the certificates are to appear on the revocation list | [optional] +**IncludeRevoked** | Pointer to **bool** | A flag telling the query to include revoked certificates | [optional] +**IncludeExpired** | Pointer to **bool** | A flag telling the query to include expired certificates | [optional] + +## Methods + +### NewModelsRevokeAllCertificatesRequest + +`func NewModelsRevokeAllCertificatesRequest(reason int32, comment string, ) *ModelsRevokeAllCertificatesRequest` + +NewModelsRevokeAllCertificatesRequest instantiates a new ModelsRevokeAllCertificatesRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsRevokeAllCertificatesRequestWithDefaults + +`func NewModelsRevokeAllCertificatesRequestWithDefaults() *ModelsRevokeAllCertificatesRequest` + +NewModelsRevokeAllCertificatesRequestWithDefaults instantiates a new ModelsRevokeAllCertificatesRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetQuery + +`func (o *ModelsRevokeAllCertificatesRequest) GetQuery() string` + +GetQuery returns the Query field if non-nil, zero value otherwise. + +### GetQueryOk + +`func (o *ModelsRevokeAllCertificatesRequest) GetQueryOk() (*string, bool)` + +GetQueryOk returns a tuple with the Query field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuery + +`func (o *ModelsRevokeAllCertificatesRequest) SetQuery(v string)` + +SetQuery sets Query field to given value. + +### HasQuery + +`func (o *ModelsRevokeAllCertificatesRequest) HasQuery() bool` + +HasQuery returns a boolean if a field has been set. + +### GetReason + +`func (o *ModelsRevokeAllCertificatesRequest) GetReason() int32` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *ModelsRevokeAllCertificatesRequest) GetReasonOk() (*int32, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *ModelsRevokeAllCertificatesRequest) SetReason(v int32)` + +SetReason sets Reason field to given value. + + +### GetComment + +`func (o *ModelsRevokeAllCertificatesRequest) GetComment() string` + +GetComment returns the Comment field if non-nil, zero value otherwise. + +### GetCommentOk + +`func (o *ModelsRevokeAllCertificatesRequest) GetCommentOk() (*string, bool)` + +GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComment + +`func (o *ModelsRevokeAllCertificatesRequest) SetComment(v string)` + +SetComment sets Comment field to given value. + + +### GetEffectiveDate + +`func (o *ModelsRevokeAllCertificatesRequest) GetEffectiveDate() time.Time` + +GetEffectiveDate returns the EffectiveDate field if non-nil, zero value otherwise. + +### GetEffectiveDateOk + +`func (o *ModelsRevokeAllCertificatesRequest) GetEffectiveDateOk() (*time.Time, bool)` + +GetEffectiveDateOk returns a tuple with the EffectiveDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEffectiveDate + +`func (o *ModelsRevokeAllCertificatesRequest) SetEffectiveDate(v time.Time)` + +SetEffectiveDate sets EffectiveDate field to given value. + +### HasEffectiveDate + +`func (o *ModelsRevokeAllCertificatesRequest) HasEffectiveDate() bool` + +HasEffectiveDate returns a boolean if a field has been set. + +### GetIncludeRevoked + +`func (o *ModelsRevokeAllCertificatesRequest) GetIncludeRevoked() bool` + +GetIncludeRevoked returns the IncludeRevoked field if non-nil, zero value otherwise. + +### GetIncludeRevokedOk + +`func (o *ModelsRevokeAllCertificatesRequest) GetIncludeRevokedOk() (*bool, bool)` + +GetIncludeRevokedOk returns a tuple with the IncludeRevoked field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIncludeRevoked + +`func (o *ModelsRevokeAllCertificatesRequest) SetIncludeRevoked(v bool)` + +SetIncludeRevoked sets IncludeRevoked field to given value. + +### HasIncludeRevoked + +`func (o *ModelsRevokeAllCertificatesRequest) HasIncludeRevoked() bool` + +HasIncludeRevoked returns a boolean if a field has been set. + +### GetIncludeExpired + +`func (o *ModelsRevokeAllCertificatesRequest) GetIncludeExpired() bool` + +GetIncludeExpired returns the IncludeExpired field if non-nil, zero value otherwise. + +### GetIncludeExpiredOk + +`func (o *ModelsRevokeAllCertificatesRequest) GetIncludeExpiredOk() (*bool, bool)` + +GetIncludeExpiredOk returns a tuple with the IncludeExpired field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIncludeExpired + +`func (o *ModelsRevokeAllCertificatesRequest) SetIncludeExpired(v bool)` + +SetIncludeExpired sets IncludeExpired field to given value. + +### HasIncludeExpired + +`func (o *ModelsRevokeAllCertificatesRequest) HasIncludeExpired() bool` + +HasIncludeExpired returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsRevokeCertificateRequest.md b/v1/docs/ModelsRevokeCertificateRequest.md new file mode 100644 index 0000000..8a76167 --- /dev/null +++ b/v1/docs/ModelsRevokeCertificateRequest.md @@ -0,0 +1,160 @@ +# ModelsRevokeCertificateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CertificateIds** | Pointer to **[]int32** | | [optional] +**Reason** | Pointer to **int32** | | [optional] +**Comment** | Pointer to **string** | | [optional] +**EffectiveDate** | Pointer to **time.Time** | | [optional] +**CollectionId** | Pointer to **int32** | | [optional] + +## Methods + +### NewModelsRevokeCertificateRequest + +`func NewModelsRevokeCertificateRequest() *ModelsRevokeCertificateRequest` + +NewModelsRevokeCertificateRequest instantiates a new ModelsRevokeCertificateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsRevokeCertificateRequestWithDefaults + +`func NewModelsRevokeCertificateRequestWithDefaults() *ModelsRevokeCertificateRequest` + +NewModelsRevokeCertificateRequestWithDefaults instantiates a new ModelsRevokeCertificateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCertificateIds + +`func (o *ModelsRevokeCertificateRequest) GetCertificateIds() []int32` + +GetCertificateIds returns the CertificateIds field if non-nil, zero value otherwise. + +### GetCertificateIdsOk + +`func (o *ModelsRevokeCertificateRequest) GetCertificateIdsOk() (*[]int32, bool)` + +GetCertificateIdsOk returns a tuple with the CertificateIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateIds + +`func (o *ModelsRevokeCertificateRequest) SetCertificateIds(v []int32)` + +SetCertificateIds sets CertificateIds field to given value. + +### HasCertificateIds + +`func (o *ModelsRevokeCertificateRequest) HasCertificateIds() bool` + +HasCertificateIds returns a boolean if a field has been set. + +### GetReason + +`func (o *ModelsRevokeCertificateRequest) GetReason() int32` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *ModelsRevokeCertificateRequest) GetReasonOk() (*int32, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *ModelsRevokeCertificateRequest) SetReason(v int32)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *ModelsRevokeCertificateRequest) HasReason() bool` + +HasReason returns a boolean if a field has been set. + +### GetComment + +`func (o *ModelsRevokeCertificateRequest) GetComment() string` + +GetComment returns the Comment field if non-nil, zero value otherwise. + +### GetCommentOk + +`func (o *ModelsRevokeCertificateRequest) GetCommentOk() (*string, bool)` + +GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComment + +`func (o *ModelsRevokeCertificateRequest) SetComment(v string)` + +SetComment sets Comment field to given value. + +### HasComment + +`func (o *ModelsRevokeCertificateRequest) HasComment() bool` + +HasComment returns a boolean if a field has been set. + +### GetEffectiveDate + +`func (o *ModelsRevokeCertificateRequest) GetEffectiveDate() time.Time` + +GetEffectiveDate returns the EffectiveDate field if non-nil, zero value otherwise. + +### GetEffectiveDateOk + +`func (o *ModelsRevokeCertificateRequest) GetEffectiveDateOk() (*time.Time, bool)` + +GetEffectiveDateOk returns a tuple with the EffectiveDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEffectiveDate + +`func (o *ModelsRevokeCertificateRequest) SetEffectiveDate(v time.Time)` + +SetEffectiveDate sets EffectiveDate field to given value. + +### HasEffectiveDate + +`func (o *ModelsRevokeCertificateRequest) HasEffectiveDate() bool` + +HasEffectiveDate returns a boolean if a field has been set. + +### GetCollectionId + +`func (o *ModelsRevokeCertificateRequest) GetCollectionId() int32` + +GetCollectionId returns the CollectionId field if non-nil, zero value otherwise. + +### GetCollectionIdOk + +`func (o *ModelsRevokeCertificateRequest) GetCollectionIdOk() (*int32, bool)` + +GetCollectionIdOk returns a tuple with the CollectionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCollectionId + +`func (o *ModelsRevokeCertificateRequest) SetCollectionId(v int32)` + +SetCollectionId sets CollectionId field to given value. + +### HasCollectionId + +`func (o *ModelsRevokeCertificateRequest) HasCollectionId() bool` + +HasCollectionId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsSSHAccessLogonUserAccessRequest.md b/v1/docs/ModelsSSHAccessLogonUserAccessRequest.md new file mode 100644 index 0000000..ed0cacf --- /dev/null +++ b/v1/docs/ModelsSSHAccessLogonUserAccessRequest.md @@ -0,0 +1,82 @@ +# ModelsSSHAccessLogonUserAccessRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LogonName** | Pointer to **string** | | [optional] +**Users** | Pointer to **[]string** | | [optional] + +## Methods + +### NewModelsSSHAccessLogonUserAccessRequest + +`func NewModelsSSHAccessLogonUserAccessRequest() *ModelsSSHAccessLogonUserAccessRequest` + +NewModelsSSHAccessLogonUserAccessRequest instantiates a new ModelsSSHAccessLogonUserAccessRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsSSHAccessLogonUserAccessRequestWithDefaults + +`func NewModelsSSHAccessLogonUserAccessRequestWithDefaults() *ModelsSSHAccessLogonUserAccessRequest` + +NewModelsSSHAccessLogonUserAccessRequestWithDefaults instantiates a new ModelsSSHAccessLogonUserAccessRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLogonName + +`func (o *ModelsSSHAccessLogonUserAccessRequest) GetLogonName() string` + +GetLogonName returns the LogonName field if non-nil, zero value otherwise. + +### GetLogonNameOk + +`func (o *ModelsSSHAccessLogonUserAccessRequest) GetLogonNameOk() (*string, bool)` + +GetLogonNameOk returns a tuple with the LogonName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogonName + +`func (o *ModelsSSHAccessLogonUserAccessRequest) SetLogonName(v string)` + +SetLogonName sets LogonName field to given value. + +### HasLogonName + +`func (o *ModelsSSHAccessLogonUserAccessRequest) HasLogonName() bool` + +HasLogonName returns a boolean if a field has been set. + +### GetUsers + +`func (o *ModelsSSHAccessLogonUserAccessRequest) GetUsers() []string` + +GetUsers returns the Users field if non-nil, zero value otherwise. + +### GetUsersOk + +`func (o *ModelsSSHAccessLogonUserAccessRequest) GetUsersOk() (*[]string, bool)` + +GetUsersOk returns a tuple with the Users field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsers + +`func (o *ModelsSSHAccessLogonUserAccessRequest) SetUsers(v []string)` + +SetUsers sets Users field to given value. + +### HasUsers + +`func (o *ModelsSSHAccessLogonUserAccessRequest) HasUsers() bool` + +HasUsers returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsSSHAccessLogonUserAccessResponse.md b/v1/docs/ModelsSSHAccessLogonUserAccessResponse.md new file mode 100644 index 0000000..33c0ca7 --- /dev/null +++ b/v1/docs/ModelsSSHAccessLogonUserAccessResponse.md @@ -0,0 +1,108 @@ +# ModelsSSHAccessLogonUserAccessResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LogonId** | Pointer to **int32** | | [optional] +**LogonName** | Pointer to **string** | | [optional] +**Users** | Pointer to [**[]ModelsSSHUsersSshUserResponse**](ModelsSSHUsersSshUserResponse.md) | | [optional] + +## Methods + +### NewModelsSSHAccessLogonUserAccessResponse + +`func NewModelsSSHAccessLogonUserAccessResponse() *ModelsSSHAccessLogonUserAccessResponse` + +NewModelsSSHAccessLogonUserAccessResponse instantiates a new ModelsSSHAccessLogonUserAccessResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsSSHAccessLogonUserAccessResponseWithDefaults + +`func NewModelsSSHAccessLogonUserAccessResponseWithDefaults() *ModelsSSHAccessLogonUserAccessResponse` + +NewModelsSSHAccessLogonUserAccessResponseWithDefaults instantiates a new ModelsSSHAccessLogonUserAccessResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLogonId + +`func (o *ModelsSSHAccessLogonUserAccessResponse) GetLogonId() int32` + +GetLogonId returns the LogonId field if non-nil, zero value otherwise. + +### GetLogonIdOk + +`func (o *ModelsSSHAccessLogonUserAccessResponse) GetLogonIdOk() (*int32, bool)` + +GetLogonIdOk returns a tuple with the LogonId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogonId + +`func (o *ModelsSSHAccessLogonUserAccessResponse) SetLogonId(v int32)` + +SetLogonId sets LogonId field to given value. + +### HasLogonId + +`func (o *ModelsSSHAccessLogonUserAccessResponse) HasLogonId() bool` + +HasLogonId returns a boolean if a field has been set. + +### GetLogonName + +`func (o *ModelsSSHAccessLogonUserAccessResponse) GetLogonName() string` + +GetLogonName returns the LogonName field if non-nil, zero value otherwise. + +### GetLogonNameOk + +`func (o *ModelsSSHAccessLogonUserAccessResponse) GetLogonNameOk() (*string, bool)` + +GetLogonNameOk returns a tuple with the LogonName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogonName + +`func (o *ModelsSSHAccessLogonUserAccessResponse) SetLogonName(v string)` + +SetLogonName sets LogonName field to given value. + +### HasLogonName + +`func (o *ModelsSSHAccessLogonUserAccessResponse) HasLogonName() bool` + +HasLogonName returns a boolean if a field has been set. + +### GetUsers + +`func (o *ModelsSSHAccessLogonUserAccessResponse) GetUsers() []ModelsSSHUsersSshUserResponse` + +GetUsers returns the Users field if non-nil, zero value otherwise. + +### GetUsersOk + +`func (o *ModelsSSHAccessLogonUserAccessResponse) GetUsersOk() (*[]ModelsSSHUsersSshUserResponse, bool)` + +GetUsersOk returns a tuple with the Users field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsers + +`func (o *ModelsSSHAccessLogonUserAccessResponse) SetUsers(v []ModelsSSHUsersSshUserResponse)` + +SetUsers sets Users field to given value. + +### HasUsers + +`func (o *ModelsSSHAccessLogonUserAccessResponse) HasUsers() bool` + +HasUsers returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsSSHAccessServerAccessRequest.md b/v1/docs/ModelsSSHAccessServerAccessRequest.md new file mode 100644 index 0000000..ae4d587 --- /dev/null +++ b/v1/docs/ModelsSSHAccessServerAccessRequest.md @@ -0,0 +1,72 @@ +# ModelsSSHAccessServerAccessRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ServerId** | **int32** | | +**LogonUsers** | [**[]ModelsSSHAccessLogonUserAccessRequest**](ModelsSSHAccessLogonUserAccessRequest.md) | | + +## Methods + +### NewModelsSSHAccessServerAccessRequest + +`func NewModelsSSHAccessServerAccessRequest(serverId int32, logonUsers []ModelsSSHAccessLogonUserAccessRequest, ) *ModelsSSHAccessServerAccessRequest` + +NewModelsSSHAccessServerAccessRequest instantiates a new ModelsSSHAccessServerAccessRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsSSHAccessServerAccessRequestWithDefaults + +`func NewModelsSSHAccessServerAccessRequestWithDefaults() *ModelsSSHAccessServerAccessRequest` + +NewModelsSSHAccessServerAccessRequestWithDefaults instantiates a new ModelsSSHAccessServerAccessRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetServerId + +`func (o *ModelsSSHAccessServerAccessRequest) GetServerId() int32` + +GetServerId returns the ServerId field if non-nil, zero value otherwise. + +### GetServerIdOk + +`func (o *ModelsSSHAccessServerAccessRequest) GetServerIdOk() (*int32, bool)` + +GetServerIdOk returns a tuple with the ServerId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerId + +`func (o *ModelsSSHAccessServerAccessRequest) SetServerId(v int32)` + +SetServerId sets ServerId field to given value. + + +### GetLogonUsers + +`func (o *ModelsSSHAccessServerAccessRequest) GetLogonUsers() []ModelsSSHAccessLogonUserAccessRequest` + +GetLogonUsers returns the LogonUsers field if non-nil, zero value otherwise. + +### GetLogonUsersOk + +`func (o *ModelsSSHAccessServerAccessRequest) GetLogonUsersOk() (*[]ModelsSSHAccessLogonUserAccessRequest, bool)` + +GetLogonUsersOk returns a tuple with the LogonUsers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogonUsers + +`func (o *ModelsSSHAccessServerAccessRequest) SetLogonUsers(v []ModelsSSHAccessLogonUserAccessRequest)` + +SetLogonUsers sets LogonUsers field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsSSHAccessServerAccessResponse.md b/v1/docs/ModelsSSHAccessServerAccessResponse.md new file mode 100644 index 0000000..44a6eb9 --- /dev/null +++ b/v1/docs/ModelsSSHAccessServerAccessResponse.md @@ -0,0 +1,82 @@ +# ModelsSSHAccessServerAccessResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ServerId** | Pointer to **int32** | | [optional] +**LogonUsers** | Pointer to [**[]ModelsSSHAccessLogonUserAccessResponse**](ModelsSSHAccessLogonUserAccessResponse.md) | | [optional] + +## Methods + +### NewModelsSSHAccessServerAccessResponse + +`func NewModelsSSHAccessServerAccessResponse() *ModelsSSHAccessServerAccessResponse` + +NewModelsSSHAccessServerAccessResponse instantiates a new ModelsSSHAccessServerAccessResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsSSHAccessServerAccessResponseWithDefaults + +`func NewModelsSSHAccessServerAccessResponseWithDefaults() *ModelsSSHAccessServerAccessResponse` + +NewModelsSSHAccessServerAccessResponseWithDefaults instantiates a new ModelsSSHAccessServerAccessResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetServerId + +`func (o *ModelsSSHAccessServerAccessResponse) GetServerId() int32` + +GetServerId returns the ServerId field if non-nil, zero value otherwise. + +### GetServerIdOk + +`func (o *ModelsSSHAccessServerAccessResponse) GetServerIdOk() (*int32, bool)` + +GetServerIdOk returns a tuple with the ServerId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerId + +`func (o *ModelsSSHAccessServerAccessResponse) SetServerId(v int32)` + +SetServerId sets ServerId field to given value. + +### HasServerId + +`func (o *ModelsSSHAccessServerAccessResponse) HasServerId() bool` + +HasServerId returns a boolean if a field has been set. + +### GetLogonUsers + +`func (o *ModelsSSHAccessServerAccessResponse) GetLogonUsers() []ModelsSSHAccessLogonUserAccessResponse` + +GetLogonUsers returns the LogonUsers field if non-nil, zero value otherwise. + +### GetLogonUsersOk + +`func (o *ModelsSSHAccessServerAccessResponse) GetLogonUsersOk() (*[]ModelsSSHAccessLogonUserAccessResponse, bool)` + +GetLogonUsersOk returns a tuple with the LogonUsers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogonUsers + +`func (o *ModelsSSHAccessServerAccessResponse) SetLogonUsers(v []ModelsSSHAccessLogonUserAccessResponse)` + +SetLogonUsers sets LogonUsers field to given value. + +### HasLogonUsers + +`func (o *ModelsSSHAccessServerAccessResponse) HasLogonUsers() bool` + +HasLogonUsers returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsSSHAccessServerGroupAccessRequest.md b/v1/docs/ModelsSSHAccessServerGroupAccessRequest.md new file mode 100644 index 0000000..73f771a --- /dev/null +++ b/v1/docs/ModelsSSHAccessServerGroupAccessRequest.md @@ -0,0 +1,72 @@ +# ModelsSSHAccessServerGroupAccessRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ServerGroupId** | **string** | | +**LogonUsers** | [**[]ModelsSSHAccessLogonUserAccessRequest**](ModelsSSHAccessLogonUserAccessRequest.md) | | + +## Methods + +### NewModelsSSHAccessServerGroupAccessRequest + +`func NewModelsSSHAccessServerGroupAccessRequest(serverGroupId string, logonUsers []ModelsSSHAccessLogonUserAccessRequest, ) *ModelsSSHAccessServerGroupAccessRequest` + +NewModelsSSHAccessServerGroupAccessRequest instantiates a new ModelsSSHAccessServerGroupAccessRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsSSHAccessServerGroupAccessRequestWithDefaults + +`func NewModelsSSHAccessServerGroupAccessRequestWithDefaults() *ModelsSSHAccessServerGroupAccessRequest` + +NewModelsSSHAccessServerGroupAccessRequestWithDefaults instantiates a new ModelsSSHAccessServerGroupAccessRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetServerGroupId + +`func (o *ModelsSSHAccessServerGroupAccessRequest) GetServerGroupId() string` + +GetServerGroupId returns the ServerGroupId field if non-nil, zero value otherwise. + +### GetServerGroupIdOk + +`func (o *ModelsSSHAccessServerGroupAccessRequest) GetServerGroupIdOk() (*string, bool)` + +GetServerGroupIdOk returns a tuple with the ServerGroupId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerGroupId + +`func (o *ModelsSSHAccessServerGroupAccessRequest) SetServerGroupId(v string)` + +SetServerGroupId sets ServerGroupId field to given value. + + +### GetLogonUsers + +`func (o *ModelsSSHAccessServerGroupAccessRequest) GetLogonUsers() []ModelsSSHAccessLogonUserAccessRequest` + +GetLogonUsers returns the LogonUsers field if non-nil, zero value otherwise. + +### GetLogonUsersOk + +`func (o *ModelsSSHAccessServerGroupAccessRequest) GetLogonUsersOk() (*[]ModelsSSHAccessLogonUserAccessRequest, bool)` + +GetLogonUsersOk returns a tuple with the LogonUsers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogonUsers + +`func (o *ModelsSSHAccessServerGroupAccessRequest) SetLogonUsers(v []ModelsSSHAccessLogonUserAccessRequest)` + +SetLogonUsers sets LogonUsers field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsSSHAccessServerGroupAccessResponse.md b/v1/docs/ModelsSSHAccessServerGroupAccessResponse.md new file mode 100644 index 0000000..a98db4a --- /dev/null +++ b/v1/docs/ModelsSSHAccessServerGroupAccessResponse.md @@ -0,0 +1,82 @@ +# ModelsSSHAccessServerGroupAccessResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ServerGroupId** | Pointer to **string** | | [optional] +**LogonUsers** | Pointer to [**[]ModelsSSHAccessLogonUserAccessResponse**](ModelsSSHAccessLogonUserAccessResponse.md) | | [optional] + +## Methods + +### NewModelsSSHAccessServerGroupAccessResponse + +`func NewModelsSSHAccessServerGroupAccessResponse() *ModelsSSHAccessServerGroupAccessResponse` + +NewModelsSSHAccessServerGroupAccessResponse instantiates a new ModelsSSHAccessServerGroupAccessResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsSSHAccessServerGroupAccessResponseWithDefaults + +`func NewModelsSSHAccessServerGroupAccessResponseWithDefaults() *ModelsSSHAccessServerGroupAccessResponse` + +NewModelsSSHAccessServerGroupAccessResponseWithDefaults instantiates a new ModelsSSHAccessServerGroupAccessResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetServerGroupId + +`func (o *ModelsSSHAccessServerGroupAccessResponse) GetServerGroupId() string` + +GetServerGroupId returns the ServerGroupId field if non-nil, zero value otherwise. + +### GetServerGroupIdOk + +`func (o *ModelsSSHAccessServerGroupAccessResponse) GetServerGroupIdOk() (*string, bool)` + +GetServerGroupIdOk returns a tuple with the ServerGroupId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerGroupId + +`func (o *ModelsSSHAccessServerGroupAccessResponse) SetServerGroupId(v string)` + +SetServerGroupId sets ServerGroupId field to given value. + +### HasServerGroupId + +`func (o *ModelsSSHAccessServerGroupAccessResponse) HasServerGroupId() bool` + +HasServerGroupId returns a boolean if a field has been set. + +### GetLogonUsers + +`func (o *ModelsSSHAccessServerGroupAccessResponse) GetLogonUsers() []ModelsSSHAccessLogonUserAccessResponse` + +GetLogonUsers returns the LogonUsers field if non-nil, zero value otherwise. + +### GetLogonUsersOk + +`func (o *ModelsSSHAccessServerGroupAccessResponse) GetLogonUsersOk() (*[]ModelsSSHAccessLogonUserAccessResponse, bool)` + +GetLogonUsersOk returns a tuple with the LogonUsers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogonUsers + +`func (o *ModelsSSHAccessServerGroupAccessResponse) SetLogonUsers(v []ModelsSSHAccessLogonUserAccessResponse)` + +SetLogonUsers sets LogonUsers field to given value. + +### HasLogonUsers + +`func (o *ModelsSSHAccessServerGroupAccessResponse) HasLogonUsers() bool` + +HasLogonUsers returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsSSHKeysKeyGenerationRequest.md b/v1/docs/ModelsSSHKeysKeyGenerationRequest.md new file mode 100644 index 0000000..0505374 --- /dev/null +++ b/v1/docs/ModelsSSHKeysKeyGenerationRequest.md @@ -0,0 +1,161 @@ +# ModelsSSHKeysKeyGenerationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**KeyType** | **string** | | +**PrivateKeyFormat** | **string** | | +**KeyLength** | **int32** | | +**Email** | **string** | | +**Password** | **string** | | +**Comment** | Pointer to **string** | | [optional] + +## Methods + +### NewModelsSSHKeysKeyGenerationRequest + +`func NewModelsSSHKeysKeyGenerationRequest(keyType string, privateKeyFormat string, keyLength int32, email string, password string, ) *ModelsSSHKeysKeyGenerationRequest` + +NewModelsSSHKeysKeyGenerationRequest instantiates a new ModelsSSHKeysKeyGenerationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsSSHKeysKeyGenerationRequestWithDefaults + +`func NewModelsSSHKeysKeyGenerationRequestWithDefaults() *ModelsSSHKeysKeyGenerationRequest` + +NewModelsSSHKeysKeyGenerationRequestWithDefaults instantiates a new ModelsSSHKeysKeyGenerationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKeyType + +`func (o *ModelsSSHKeysKeyGenerationRequest) GetKeyType() string` + +GetKeyType returns the KeyType field if non-nil, zero value otherwise. + +### GetKeyTypeOk + +`func (o *ModelsSSHKeysKeyGenerationRequest) GetKeyTypeOk() (*string, bool)` + +GetKeyTypeOk returns a tuple with the KeyType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyType + +`func (o *ModelsSSHKeysKeyGenerationRequest) SetKeyType(v string)` + +SetKeyType sets KeyType field to given value. + + +### GetPrivateKeyFormat + +`func (o *ModelsSSHKeysKeyGenerationRequest) GetPrivateKeyFormat() string` + +GetPrivateKeyFormat returns the PrivateKeyFormat field if non-nil, zero value otherwise. + +### GetPrivateKeyFormatOk + +`func (o *ModelsSSHKeysKeyGenerationRequest) GetPrivateKeyFormatOk() (*string, bool)` + +GetPrivateKeyFormatOk returns a tuple with the PrivateKeyFormat field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivateKeyFormat + +`func (o *ModelsSSHKeysKeyGenerationRequest) SetPrivateKeyFormat(v string)` + +SetPrivateKeyFormat sets PrivateKeyFormat field to given value. + + +### GetKeyLength + +`func (o *ModelsSSHKeysKeyGenerationRequest) GetKeyLength() int32` + +GetKeyLength returns the KeyLength field if non-nil, zero value otherwise. + +### GetKeyLengthOk + +`func (o *ModelsSSHKeysKeyGenerationRequest) GetKeyLengthOk() (*int32, bool)` + +GetKeyLengthOk returns a tuple with the KeyLength field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyLength + +`func (o *ModelsSSHKeysKeyGenerationRequest) SetKeyLength(v int32)` + +SetKeyLength sets KeyLength field to given value. + + +### GetEmail + +`func (o *ModelsSSHKeysKeyGenerationRequest) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *ModelsSSHKeysKeyGenerationRequest) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *ModelsSSHKeysKeyGenerationRequest) SetEmail(v string)` + +SetEmail sets Email field to given value. + + +### GetPassword + +`func (o *ModelsSSHKeysKeyGenerationRequest) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *ModelsSSHKeysKeyGenerationRequest) GetPasswordOk() (*string, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *ModelsSSHKeysKeyGenerationRequest) SetPassword(v string)` + +SetPassword sets Password field to given value. + + +### GetComment + +`func (o *ModelsSSHKeysKeyGenerationRequest) GetComment() string` + +GetComment returns the Comment field if non-nil, zero value otherwise. + +### GetCommentOk + +`func (o *ModelsSSHKeysKeyGenerationRequest) GetCommentOk() (*string, bool)` + +GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComment + +`func (o *ModelsSSHKeysKeyGenerationRequest) SetComment(v string)` + +SetComment sets Comment field to given value. + +### HasComment + +`func (o *ModelsSSHKeysKeyGenerationRequest) HasComment() bool` + +HasComment returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsSSHKeysKeyResponse.md b/v1/docs/ModelsSSHKeysKeyResponse.md new file mode 100644 index 0000000..e824897 --- /dev/null +++ b/v1/docs/ModelsSSHKeysKeyResponse.md @@ -0,0 +1,316 @@ +# ModelsSSHKeysKeyResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Fingerprint** | Pointer to **string** | | [optional] +**PublicKey** | Pointer to **string** | | [optional] +**PrivateKey** | Pointer to **string** | | [optional] +**KeyType** | Pointer to **string** | | [optional] +**KeyLength** | Pointer to **int32** | | [optional] +**CreationDate** | Pointer to **time.Time** | | [optional] +**StaleDate** | Pointer to **time.Time** | | [optional] +**Email** | Pointer to **string** | | [optional] +**Comments** | Pointer to **[]string** | | [optional] +**LogonCount** | Pointer to **int32** | | [optional] + +## Methods + +### NewModelsSSHKeysKeyResponse + +`func NewModelsSSHKeysKeyResponse() *ModelsSSHKeysKeyResponse` + +NewModelsSSHKeysKeyResponse instantiates a new ModelsSSHKeysKeyResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsSSHKeysKeyResponseWithDefaults + +`func NewModelsSSHKeysKeyResponseWithDefaults() *ModelsSSHKeysKeyResponse` + +NewModelsSSHKeysKeyResponseWithDefaults instantiates a new ModelsSSHKeysKeyResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsSSHKeysKeyResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsSSHKeysKeyResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsSSHKeysKeyResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ModelsSSHKeysKeyResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetFingerprint + +`func (o *ModelsSSHKeysKeyResponse) GetFingerprint() string` + +GetFingerprint returns the Fingerprint field if non-nil, zero value otherwise. + +### GetFingerprintOk + +`func (o *ModelsSSHKeysKeyResponse) GetFingerprintOk() (*string, bool)` + +GetFingerprintOk returns a tuple with the Fingerprint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFingerprint + +`func (o *ModelsSSHKeysKeyResponse) SetFingerprint(v string)` + +SetFingerprint sets Fingerprint field to given value. + +### HasFingerprint + +`func (o *ModelsSSHKeysKeyResponse) HasFingerprint() bool` + +HasFingerprint returns a boolean if a field has been set. + +### GetPublicKey + +`func (o *ModelsSSHKeysKeyResponse) GetPublicKey() string` + +GetPublicKey returns the PublicKey field if non-nil, zero value otherwise. + +### GetPublicKeyOk + +`func (o *ModelsSSHKeysKeyResponse) GetPublicKeyOk() (*string, bool)` + +GetPublicKeyOk returns a tuple with the PublicKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublicKey + +`func (o *ModelsSSHKeysKeyResponse) SetPublicKey(v string)` + +SetPublicKey sets PublicKey field to given value. + +### HasPublicKey + +`func (o *ModelsSSHKeysKeyResponse) HasPublicKey() bool` + +HasPublicKey returns a boolean if a field has been set. + +### GetPrivateKey + +`func (o *ModelsSSHKeysKeyResponse) GetPrivateKey() string` + +GetPrivateKey returns the PrivateKey field if non-nil, zero value otherwise. + +### GetPrivateKeyOk + +`func (o *ModelsSSHKeysKeyResponse) GetPrivateKeyOk() (*string, bool)` + +GetPrivateKeyOk returns a tuple with the PrivateKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivateKey + +`func (o *ModelsSSHKeysKeyResponse) SetPrivateKey(v string)` + +SetPrivateKey sets PrivateKey field to given value. + +### HasPrivateKey + +`func (o *ModelsSSHKeysKeyResponse) HasPrivateKey() bool` + +HasPrivateKey returns a boolean if a field has been set. + +### GetKeyType + +`func (o *ModelsSSHKeysKeyResponse) GetKeyType() string` + +GetKeyType returns the KeyType field if non-nil, zero value otherwise. + +### GetKeyTypeOk + +`func (o *ModelsSSHKeysKeyResponse) GetKeyTypeOk() (*string, bool)` + +GetKeyTypeOk returns a tuple with the KeyType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyType + +`func (o *ModelsSSHKeysKeyResponse) SetKeyType(v string)` + +SetKeyType sets KeyType field to given value. + +### HasKeyType + +`func (o *ModelsSSHKeysKeyResponse) HasKeyType() bool` + +HasKeyType returns a boolean if a field has been set. + +### GetKeyLength + +`func (o *ModelsSSHKeysKeyResponse) GetKeyLength() int32` + +GetKeyLength returns the KeyLength field if non-nil, zero value otherwise. + +### GetKeyLengthOk + +`func (o *ModelsSSHKeysKeyResponse) GetKeyLengthOk() (*int32, bool)` + +GetKeyLengthOk returns a tuple with the KeyLength field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyLength + +`func (o *ModelsSSHKeysKeyResponse) SetKeyLength(v int32)` + +SetKeyLength sets KeyLength field to given value. + +### HasKeyLength + +`func (o *ModelsSSHKeysKeyResponse) HasKeyLength() bool` + +HasKeyLength returns a boolean if a field has been set. + +### GetCreationDate + +`func (o *ModelsSSHKeysKeyResponse) GetCreationDate() time.Time` + +GetCreationDate returns the CreationDate field if non-nil, zero value otherwise. + +### GetCreationDateOk + +`func (o *ModelsSSHKeysKeyResponse) GetCreationDateOk() (*time.Time, bool)` + +GetCreationDateOk returns a tuple with the CreationDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreationDate + +`func (o *ModelsSSHKeysKeyResponse) SetCreationDate(v time.Time)` + +SetCreationDate sets CreationDate field to given value. + +### HasCreationDate + +`func (o *ModelsSSHKeysKeyResponse) HasCreationDate() bool` + +HasCreationDate returns a boolean if a field has been set. + +### GetStaleDate + +`func (o *ModelsSSHKeysKeyResponse) GetStaleDate() time.Time` + +GetStaleDate returns the StaleDate field if non-nil, zero value otherwise. + +### GetStaleDateOk + +`func (o *ModelsSSHKeysKeyResponse) GetStaleDateOk() (*time.Time, bool)` + +GetStaleDateOk returns a tuple with the StaleDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStaleDate + +`func (o *ModelsSSHKeysKeyResponse) SetStaleDate(v time.Time)` + +SetStaleDate sets StaleDate field to given value. + +### HasStaleDate + +`func (o *ModelsSSHKeysKeyResponse) HasStaleDate() bool` + +HasStaleDate returns a boolean if a field has been set. + +### GetEmail + +`func (o *ModelsSSHKeysKeyResponse) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *ModelsSSHKeysKeyResponse) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *ModelsSSHKeysKeyResponse) SetEmail(v string)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *ModelsSSHKeysKeyResponse) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### GetComments + +`func (o *ModelsSSHKeysKeyResponse) GetComments() []string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *ModelsSSHKeysKeyResponse) GetCommentsOk() (*[]string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *ModelsSSHKeysKeyResponse) SetComments(v []string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *ModelsSSHKeysKeyResponse) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetLogonCount + +`func (o *ModelsSSHKeysKeyResponse) GetLogonCount() int32` + +GetLogonCount returns the LogonCount field if non-nil, zero value otherwise. + +### GetLogonCountOk + +`func (o *ModelsSSHKeysKeyResponse) GetLogonCountOk() (*int32, bool)` + +GetLogonCountOk returns a tuple with the LogonCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogonCount + +`func (o *ModelsSSHKeysKeyResponse) SetLogonCount(v int32)` + +SetLogonCount sets LogonCount field to given value. + +### HasLogonCount + +`func (o *ModelsSSHKeysKeyResponse) HasLogonCount() bool` + +HasLogonCount returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsSSHKeysKeyUpdateRequest.md b/v1/docs/ModelsSSHKeysKeyUpdateRequest.md new file mode 100644 index 0000000..a355f8b --- /dev/null +++ b/v1/docs/ModelsSSHKeysKeyUpdateRequest.md @@ -0,0 +1,98 @@ +# ModelsSSHKeysKeyUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | +**Email** | **string** | | +**Comment** | Pointer to **string** | | [optional] + +## Methods + +### NewModelsSSHKeysKeyUpdateRequest + +`func NewModelsSSHKeysKeyUpdateRequest(id int32, email string, ) *ModelsSSHKeysKeyUpdateRequest` + +NewModelsSSHKeysKeyUpdateRequest instantiates a new ModelsSSHKeysKeyUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsSSHKeysKeyUpdateRequestWithDefaults + +`func NewModelsSSHKeysKeyUpdateRequestWithDefaults() *ModelsSSHKeysKeyUpdateRequest` + +NewModelsSSHKeysKeyUpdateRequestWithDefaults instantiates a new ModelsSSHKeysKeyUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsSSHKeysKeyUpdateRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsSSHKeysKeyUpdateRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsSSHKeysKeyUpdateRequest) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetEmail + +`func (o *ModelsSSHKeysKeyUpdateRequest) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *ModelsSSHKeysKeyUpdateRequest) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *ModelsSSHKeysKeyUpdateRequest) SetEmail(v string)` + +SetEmail sets Email field to given value. + + +### GetComment + +`func (o *ModelsSSHKeysKeyUpdateRequest) GetComment() string` + +GetComment returns the Comment field if non-nil, zero value otherwise. + +### GetCommentOk + +`func (o *ModelsSSHKeysKeyUpdateRequest) GetCommentOk() (*string, bool)` + +GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComment + +`func (o *ModelsSSHKeysKeyUpdateRequest) SetComment(v string)` + +SetComment sets Comment field to given value. + +### HasComment + +`func (o *ModelsSSHKeysKeyUpdateRequest) HasComment() bool` + +HasComment returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsSSHKeysUnmanagedKeyResponse.md b/v1/docs/ModelsSSHKeysUnmanagedKeyResponse.md new file mode 100644 index 0000000..d9a3ace --- /dev/null +++ b/v1/docs/ModelsSSHKeysUnmanagedKeyResponse.md @@ -0,0 +1,316 @@ +# ModelsSSHKeysUnmanagedKeyResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Fingerprint** | Pointer to **string** | | [optional] +**PublicKey** | Pointer to **string** | | [optional] +**PrivateKey** | Pointer to **string** | | [optional] +**KeyType** | Pointer to **string** | | [optional] +**KeyLength** | Pointer to **int32** | | [optional] +**DiscoveredDate** | Pointer to **time.Time** | | [optional] +**Email** | Pointer to **string** | | [optional] +**Comments** | Pointer to **[]string** | | [optional] +**Username** | Pointer to **string** | | [optional] +**LogonCount** | Pointer to **int32** | | [optional] + +## Methods + +### NewModelsSSHKeysUnmanagedKeyResponse + +`func NewModelsSSHKeysUnmanagedKeyResponse() *ModelsSSHKeysUnmanagedKeyResponse` + +NewModelsSSHKeysUnmanagedKeyResponse instantiates a new ModelsSSHKeysUnmanagedKeyResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsSSHKeysUnmanagedKeyResponseWithDefaults + +`func NewModelsSSHKeysUnmanagedKeyResponseWithDefaults() *ModelsSSHKeysUnmanagedKeyResponse` + +NewModelsSSHKeysUnmanagedKeyResponseWithDefaults instantiates a new ModelsSSHKeysUnmanagedKeyResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsSSHKeysUnmanagedKeyResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsSSHKeysUnmanagedKeyResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsSSHKeysUnmanagedKeyResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ModelsSSHKeysUnmanagedKeyResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetFingerprint + +`func (o *ModelsSSHKeysUnmanagedKeyResponse) GetFingerprint() string` + +GetFingerprint returns the Fingerprint field if non-nil, zero value otherwise. + +### GetFingerprintOk + +`func (o *ModelsSSHKeysUnmanagedKeyResponse) GetFingerprintOk() (*string, bool)` + +GetFingerprintOk returns a tuple with the Fingerprint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFingerprint + +`func (o *ModelsSSHKeysUnmanagedKeyResponse) SetFingerprint(v string)` + +SetFingerprint sets Fingerprint field to given value. + +### HasFingerprint + +`func (o *ModelsSSHKeysUnmanagedKeyResponse) HasFingerprint() bool` + +HasFingerprint returns a boolean if a field has been set. + +### GetPublicKey + +`func (o *ModelsSSHKeysUnmanagedKeyResponse) GetPublicKey() string` + +GetPublicKey returns the PublicKey field if non-nil, zero value otherwise. + +### GetPublicKeyOk + +`func (o *ModelsSSHKeysUnmanagedKeyResponse) GetPublicKeyOk() (*string, bool)` + +GetPublicKeyOk returns a tuple with the PublicKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublicKey + +`func (o *ModelsSSHKeysUnmanagedKeyResponse) SetPublicKey(v string)` + +SetPublicKey sets PublicKey field to given value. + +### HasPublicKey + +`func (o *ModelsSSHKeysUnmanagedKeyResponse) HasPublicKey() bool` + +HasPublicKey returns a boolean if a field has been set. + +### GetPrivateKey + +`func (o *ModelsSSHKeysUnmanagedKeyResponse) GetPrivateKey() string` + +GetPrivateKey returns the PrivateKey field if non-nil, zero value otherwise. + +### GetPrivateKeyOk + +`func (o *ModelsSSHKeysUnmanagedKeyResponse) GetPrivateKeyOk() (*string, bool)` + +GetPrivateKeyOk returns a tuple with the PrivateKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivateKey + +`func (o *ModelsSSHKeysUnmanagedKeyResponse) SetPrivateKey(v string)` + +SetPrivateKey sets PrivateKey field to given value. + +### HasPrivateKey + +`func (o *ModelsSSHKeysUnmanagedKeyResponse) HasPrivateKey() bool` + +HasPrivateKey returns a boolean if a field has been set. + +### GetKeyType + +`func (o *ModelsSSHKeysUnmanagedKeyResponse) GetKeyType() string` + +GetKeyType returns the KeyType field if non-nil, zero value otherwise. + +### GetKeyTypeOk + +`func (o *ModelsSSHKeysUnmanagedKeyResponse) GetKeyTypeOk() (*string, bool)` + +GetKeyTypeOk returns a tuple with the KeyType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyType + +`func (o *ModelsSSHKeysUnmanagedKeyResponse) SetKeyType(v string)` + +SetKeyType sets KeyType field to given value. + +### HasKeyType + +`func (o *ModelsSSHKeysUnmanagedKeyResponse) HasKeyType() bool` + +HasKeyType returns a boolean if a field has been set. + +### GetKeyLength + +`func (o *ModelsSSHKeysUnmanagedKeyResponse) GetKeyLength() int32` + +GetKeyLength returns the KeyLength field if non-nil, zero value otherwise. + +### GetKeyLengthOk + +`func (o *ModelsSSHKeysUnmanagedKeyResponse) GetKeyLengthOk() (*int32, bool)` + +GetKeyLengthOk returns a tuple with the KeyLength field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyLength + +`func (o *ModelsSSHKeysUnmanagedKeyResponse) SetKeyLength(v int32)` + +SetKeyLength sets KeyLength field to given value. + +### HasKeyLength + +`func (o *ModelsSSHKeysUnmanagedKeyResponse) HasKeyLength() bool` + +HasKeyLength returns a boolean if a field has been set. + +### GetDiscoveredDate + +`func (o *ModelsSSHKeysUnmanagedKeyResponse) GetDiscoveredDate() time.Time` + +GetDiscoveredDate returns the DiscoveredDate field if non-nil, zero value otherwise. + +### GetDiscoveredDateOk + +`func (o *ModelsSSHKeysUnmanagedKeyResponse) GetDiscoveredDateOk() (*time.Time, bool)` + +GetDiscoveredDateOk returns a tuple with the DiscoveredDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiscoveredDate + +`func (o *ModelsSSHKeysUnmanagedKeyResponse) SetDiscoveredDate(v time.Time)` + +SetDiscoveredDate sets DiscoveredDate field to given value. + +### HasDiscoveredDate + +`func (o *ModelsSSHKeysUnmanagedKeyResponse) HasDiscoveredDate() bool` + +HasDiscoveredDate returns a boolean if a field has been set. + +### GetEmail + +`func (o *ModelsSSHKeysUnmanagedKeyResponse) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *ModelsSSHKeysUnmanagedKeyResponse) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *ModelsSSHKeysUnmanagedKeyResponse) SetEmail(v string)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *ModelsSSHKeysUnmanagedKeyResponse) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### GetComments + +`func (o *ModelsSSHKeysUnmanagedKeyResponse) GetComments() []string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *ModelsSSHKeysUnmanagedKeyResponse) GetCommentsOk() (*[]string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *ModelsSSHKeysUnmanagedKeyResponse) SetComments(v []string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *ModelsSSHKeysUnmanagedKeyResponse) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetUsername + +`func (o *ModelsSSHKeysUnmanagedKeyResponse) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *ModelsSSHKeysUnmanagedKeyResponse) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *ModelsSSHKeysUnmanagedKeyResponse) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *ModelsSSHKeysUnmanagedKeyResponse) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + +### GetLogonCount + +`func (o *ModelsSSHKeysUnmanagedKeyResponse) GetLogonCount() int32` + +GetLogonCount returns the LogonCount field if non-nil, zero value otherwise. + +### GetLogonCountOk + +`func (o *ModelsSSHKeysUnmanagedKeyResponse) GetLogonCountOk() (*int32, bool)` + +GetLogonCountOk returns a tuple with the LogonCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogonCount + +`func (o *ModelsSSHKeysUnmanagedKeyResponse) SetLogonCount(v int32)` + +SetLogonCount sets LogonCount field to given value. + +### HasLogonCount + +`func (o *ModelsSSHKeysUnmanagedKeyResponse) HasLogonCount() bool` + +HasLogonCount returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsSSHLogonsLogonAccessRequest.md b/v1/docs/ModelsSSHLogonsLogonAccessRequest.md new file mode 100644 index 0000000..2e572fb --- /dev/null +++ b/v1/docs/ModelsSSHLogonsLogonAccessRequest.md @@ -0,0 +1,77 @@ +# ModelsSSHLogonsLogonAccessRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LogonId** | **int32** | | +**UserIds** | Pointer to **[]int32** | | [optional] + +## Methods + +### NewModelsSSHLogonsLogonAccessRequest + +`func NewModelsSSHLogonsLogonAccessRequest(logonId int32, ) *ModelsSSHLogonsLogonAccessRequest` + +NewModelsSSHLogonsLogonAccessRequest instantiates a new ModelsSSHLogonsLogonAccessRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsSSHLogonsLogonAccessRequestWithDefaults + +`func NewModelsSSHLogonsLogonAccessRequestWithDefaults() *ModelsSSHLogonsLogonAccessRequest` + +NewModelsSSHLogonsLogonAccessRequestWithDefaults instantiates a new ModelsSSHLogonsLogonAccessRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLogonId + +`func (o *ModelsSSHLogonsLogonAccessRequest) GetLogonId() int32` + +GetLogonId returns the LogonId field if non-nil, zero value otherwise. + +### GetLogonIdOk + +`func (o *ModelsSSHLogonsLogonAccessRequest) GetLogonIdOk() (*int32, bool)` + +GetLogonIdOk returns a tuple with the LogonId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogonId + +`func (o *ModelsSSHLogonsLogonAccessRequest) SetLogonId(v int32)` + +SetLogonId sets LogonId field to given value. + + +### GetUserIds + +`func (o *ModelsSSHLogonsLogonAccessRequest) GetUserIds() []int32` + +GetUserIds returns the UserIds field if non-nil, zero value otherwise. + +### GetUserIdsOk + +`func (o *ModelsSSHLogonsLogonAccessRequest) GetUserIdsOk() (*[]int32, bool)` + +GetUserIdsOk returns a tuple with the UserIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserIds + +`func (o *ModelsSSHLogonsLogonAccessRequest) SetUserIds(v []int32)` + +SetUserIds sets UserIds field to given value. + +### HasUserIds + +`func (o *ModelsSSHLogonsLogonAccessRequest) HasUserIds() bool` + +HasUserIds returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsSSHLogonsLogonCreationRequest.md b/v1/docs/ModelsSSHLogonsLogonCreationRequest.md new file mode 100644 index 0000000..774a2ef --- /dev/null +++ b/v1/docs/ModelsSSHLogonsLogonCreationRequest.md @@ -0,0 +1,98 @@ +# ModelsSSHLogonsLogonCreationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Username** | **string** | | +**ServerId** | **int32** | | +**UserIds** | Pointer to **[]int32** | | [optional] + +## Methods + +### NewModelsSSHLogonsLogonCreationRequest + +`func NewModelsSSHLogonsLogonCreationRequest(username string, serverId int32, ) *ModelsSSHLogonsLogonCreationRequest` + +NewModelsSSHLogonsLogonCreationRequest instantiates a new ModelsSSHLogonsLogonCreationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsSSHLogonsLogonCreationRequestWithDefaults + +`func NewModelsSSHLogonsLogonCreationRequestWithDefaults() *ModelsSSHLogonsLogonCreationRequest` + +NewModelsSSHLogonsLogonCreationRequestWithDefaults instantiates a new ModelsSSHLogonsLogonCreationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUsername + +`func (o *ModelsSSHLogonsLogonCreationRequest) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *ModelsSSHLogonsLogonCreationRequest) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *ModelsSSHLogonsLogonCreationRequest) SetUsername(v string)` + +SetUsername sets Username field to given value. + + +### GetServerId + +`func (o *ModelsSSHLogonsLogonCreationRequest) GetServerId() int32` + +GetServerId returns the ServerId field if non-nil, zero value otherwise. + +### GetServerIdOk + +`func (o *ModelsSSHLogonsLogonCreationRequest) GetServerIdOk() (*int32, bool)` + +GetServerIdOk returns a tuple with the ServerId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerId + +`func (o *ModelsSSHLogonsLogonCreationRequest) SetServerId(v int32)` + +SetServerId sets ServerId field to given value. + + +### GetUserIds + +`func (o *ModelsSSHLogonsLogonCreationRequest) GetUserIds() []int32` + +GetUserIds returns the UserIds field if non-nil, zero value otherwise. + +### GetUserIdsOk + +`func (o *ModelsSSHLogonsLogonCreationRequest) GetUserIdsOk() (*[]int32, bool)` + +GetUserIdsOk returns a tuple with the UserIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserIds + +`func (o *ModelsSSHLogonsLogonCreationRequest) SetUserIds(v []int32)` + +SetUserIds sets UserIds field to given value. + +### HasUserIds + +`func (o *ModelsSSHLogonsLogonCreationRequest) HasUserIds() bool` + +HasUserIds returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsSSHLogonsLogonQueryResponse.md b/v1/docs/ModelsSSHLogonsLogonQueryResponse.md new file mode 100644 index 0000000..37cff2a --- /dev/null +++ b/v1/docs/ModelsSSHLogonsLogonQueryResponse.md @@ -0,0 +1,238 @@ +# ModelsSSHLogonsLogonQueryResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Username** | Pointer to **string** | | [optional] +**LastLogon** | Pointer to **time.Time** | | [optional] +**ServerId** | Pointer to **int32** | | [optional] +**ServerName** | Pointer to **string** | | [optional] +**GroupName** | Pointer to **string** | | [optional] +**KeyCount** | Pointer to **int32** | | [optional] +**ServerUnderManagement** | Pointer to **bool** | | [optional] + +## Methods + +### NewModelsSSHLogonsLogonQueryResponse + +`func NewModelsSSHLogonsLogonQueryResponse() *ModelsSSHLogonsLogonQueryResponse` + +NewModelsSSHLogonsLogonQueryResponse instantiates a new ModelsSSHLogonsLogonQueryResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsSSHLogonsLogonQueryResponseWithDefaults + +`func NewModelsSSHLogonsLogonQueryResponseWithDefaults() *ModelsSSHLogonsLogonQueryResponse` + +NewModelsSSHLogonsLogonQueryResponseWithDefaults instantiates a new ModelsSSHLogonsLogonQueryResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsSSHLogonsLogonQueryResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsSSHLogonsLogonQueryResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsSSHLogonsLogonQueryResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ModelsSSHLogonsLogonQueryResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetUsername + +`func (o *ModelsSSHLogonsLogonQueryResponse) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *ModelsSSHLogonsLogonQueryResponse) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *ModelsSSHLogonsLogonQueryResponse) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *ModelsSSHLogonsLogonQueryResponse) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + +### GetLastLogon + +`func (o *ModelsSSHLogonsLogonQueryResponse) GetLastLogon() time.Time` + +GetLastLogon returns the LastLogon field if non-nil, zero value otherwise. + +### GetLastLogonOk + +`func (o *ModelsSSHLogonsLogonQueryResponse) GetLastLogonOk() (*time.Time, bool)` + +GetLastLogonOk returns a tuple with the LastLogon field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastLogon + +`func (o *ModelsSSHLogonsLogonQueryResponse) SetLastLogon(v time.Time)` + +SetLastLogon sets LastLogon field to given value. + +### HasLastLogon + +`func (o *ModelsSSHLogonsLogonQueryResponse) HasLastLogon() bool` + +HasLastLogon returns a boolean if a field has been set. + +### GetServerId + +`func (o *ModelsSSHLogonsLogonQueryResponse) GetServerId() int32` + +GetServerId returns the ServerId field if non-nil, zero value otherwise. + +### GetServerIdOk + +`func (o *ModelsSSHLogonsLogonQueryResponse) GetServerIdOk() (*int32, bool)` + +GetServerIdOk returns a tuple with the ServerId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerId + +`func (o *ModelsSSHLogonsLogonQueryResponse) SetServerId(v int32)` + +SetServerId sets ServerId field to given value. + +### HasServerId + +`func (o *ModelsSSHLogonsLogonQueryResponse) HasServerId() bool` + +HasServerId returns a boolean if a field has been set. + +### GetServerName + +`func (o *ModelsSSHLogonsLogonQueryResponse) GetServerName() string` + +GetServerName returns the ServerName field if non-nil, zero value otherwise. + +### GetServerNameOk + +`func (o *ModelsSSHLogonsLogonQueryResponse) GetServerNameOk() (*string, bool)` + +GetServerNameOk returns a tuple with the ServerName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerName + +`func (o *ModelsSSHLogonsLogonQueryResponse) SetServerName(v string)` + +SetServerName sets ServerName field to given value. + +### HasServerName + +`func (o *ModelsSSHLogonsLogonQueryResponse) HasServerName() bool` + +HasServerName returns a boolean if a field has been set. + +### GetGroupName + +`func (o *ModelsSSHLogonsLogonQueryResponse) GetGroupName() string` + +GetGroupName returns the GroupName field if non-nil, zero value otherwise. + +### GetGroupNameOk + +`func (o *ModelsSSHLogonsLogonQueryResponse) GetGroupNameOk() (*string, bool)` + +GetGroupNameOk returns a tuple with the GroupName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupName + +`func (o *ModelsSSHLogonsLogonQueryResponse) SetGroupName(v string)` + +SetGroupName sets GroupName field to given value. + +### HasGroupName + +`func (o *ModelsSSHLogonsLogonQueryResponse) HasGroupName() bool` + +HasGroupName returns a boolean if a field has been set. + +### GetKeyCount + +`func (o *ModelsSSHLogonsLogonQueryResponse) GetKeyCount() int32` + +GetKeyCount returns the KeyCount field if non-nil, zero value otherwise. + +### GetKeyCountOk + +`func (o *ModelsSSHLogonsLogonQueryResponse) GetKeyCountOk() (*int32, bool)` + +GetKeyCountOk returns a tuple with the KeyCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyCount + +`func (o *ModelsSSHLogonsLogonQueryResponse) SetKeyCount(v int32)` + +SetKeyCount sets KeyCount field to given value. + +### HasKeyCount + +`func (o *ModelsSSHLogonsLogonQueryResponse) HasKeyCount() bool` + +HasKeyCount returns a boolean if a field has been set. + +### GetServerUnderManagement + +`func (o *ModelsSSHLogonsLogonQueryResponse) GetServerUnderManagement() bool` + +GetServerUnderManagement returns the ServerUnderManagement field if non-nil, zero value otherwise. + +### GetServerUnderManagementOk + +`func (o *ModelsSSHLogonsLogonQueryResponse) GetServerUnderManagementOk() (*bool, bool)` + +GetServerUnderManagementOk returns a tuple with the ServerUnderManagement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerUnderManagement + +`func (o *ModelsSSHLogonsLogonQueryResponse) SetServerUnderManagement(v bool)` + +SetServerUnderManagement sets ServerUnderManagement field to given value. + +### HasServerUnderManagement + +`func (o *ModelsSSHLogonsLogonQueryResponse) HasServerUnderManagement() bool` + +HasServerUnderManagement returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsSSHLogonsLogonResponse.md b/v1/docs/ModelsSSHLogonsLogonResponse.md new file mode 100644 index 0000000..f8ebf99 --- /dev/null +++ b/v1/docs/ModelsSSHLogonsLogonResponse.md @@ -0,0 +1,186 @@ +# ModelsSSHLogonsLogonResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Username** | Pointer to **string** | | [optional] +**LastLogon** | Pointer to **time.Time** | | [optional] +**Server** | Pointer to [**ModelsSSHServersServerResponse**](ModelsSSHServersServerResponse.md) | | [optional] +**KeyCount** | Pointer to **int32** | | [optional] +**Access** | Pointer to [**[]ModelsSSHUsersSshUserResponse**](ModelsSSHUsersSshUserResponse.md) | | [optional] + +## Methods + +### NewModelsSSHLogonsLogonResponse + +`func NewModelsSSHLogonsLogonResponse() *ModelsSSHLogonsLogonResponse` + +NewModelsSSHLogonsLogonResponse instantiates a new ModelsSSHLogonsLogonResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsSSHLogonsLogonResponseWithDefaults + +`func NewModelsSSHLogonsLogonResponseWithDefaults() *ModelsSSHLogonsLogonResponse` + +NewModelsSSHLogonsLogonResponseWithDefaults instantiates a new ModelsSSHLogonsLogonResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsSSHLogonsLogonResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsSSHLogonsLogonResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsSSHLogonsLogonResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ModelsSSHLogonsLogonResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetUsername + +`func (o *ModelsSSHLogonsLogonResponse) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *ModelsSSHLogonsLogonResponse) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *ModelsSSHLogonsLogonResponse) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *ModelsSSHLogonsLogonResponse) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + +### GetLastLogon + +`func (o *ModelsSSHLogonsLogonResponse) GetLastLogon() time.Time` + +GetLastLogon returns the LastLogon field if non-nil, zero value otherwise. + +### GetLastLogonOk + +`func (o *ModelsSSHLogonsLogonResponse) GetLastLogonOk() (*time.Time, bool)` + +GetLastLogonOk returns a tuple with the LastLogon field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastLogon + +`func (o *ModelsSSHLogonsLogonResponse) SetLastLogon(v time.Time)` + +SetLastLogon sets LastLogon field to given value. + +### HasLastLogon + +`func (o *ModelsSSHLogonsLogonResponse) HasLastLogon() bool` + +HasLastLogon returns a boolean if a field has been set. + +### GetServer + +`func (o *ModelsSSHLogonsLogonResponse) GetServer() ModelsSSHServersServerResponse` + +GetServer returns the Server field if non-nil, zero value otherwise. + +### GetServerOk + +`func (o *ModelsSSHLogonsLogonResponse) GetServerOk() (*ModelsSSHServersServerResponse, bool)` + +GetServerOk returns a tuple with the Server field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServer + +`func (o *ModelsSSHLogonsLogonResponse) SetServer(v ModelsSSHServersServerResponse)` + +SetServer sets Server field to given value. + +### HasServer + +`func (o *ModelsSSHLogonsLogonResponse) HasServer() bool` + +HasServer returns a boolean if a field has been set. + +### GetKeyCount + +`func (o *ModelsSSHLogonsLogonResponse) GetKeyCount() int32` + +GetKeyCount returns the KeyCount field if non-nil, zero value otherwise. + +### GetKeyCountOk + +`func (o *ModelsSSHLogonsLogonResponse) GetKeyCountOk() (*int32, bool)` + +GetKeyCountOk returns a tuple with the KeyCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyCount + +`func (o *ModelsSSHLogonsLogonResponse) SetKeyCount(v int32)` + +SetKeyCount sets KeyCount field to given value. + +### HasKeyCount + +`func (o *ModelsSSHLogonsLogonResponse) HasKeyCount() bool` + +HasKeyCount returns a boolean if a field has been set. + +### GetAccess + +`func (o *ModelsSSHLogonsLogonResponse) GetAccess() []ModelsSSHUsersSshUserResponse` + +GetAccess returns the Access field if non-nil, zero value otherwise. + +### GetAccessOk + +`func (o *ModelsSSHLogonsLogonResponse) GetAccessOk() (*[]ModelsSSHUsersSshUserResponse, bool)` + +GetAccessOk returns a tuple with the Access field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccess + +`func (o *ModelsSSHLogonsLogonResponse) SetAccess(v []ModelsSSHUsersSshUserResponse)` + +SetAccess sets Access field to given value. + +### HasAccess + +`func (o *ModelsSSHLogonsLogonResponse) HasAccess() bool` + +HasAccess returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsSSHServerGroupsServerGroupCreationRequest.md b/v1/docs/ModelsSSHServerGroupsServerGroupCreationRequest.md new file mode 100644 index 0000000..919dd32 --- /dev/null +++ b/v1/docs/ModelsSSHServerGroupsServerGroupCreationRequest.md @@ -0,0 +1,124 @@ +# ModelsSSHServerGroupsServerGroupCreationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OwnerName** | **string** | | +**GroupName** | **string** | | +**SyncSchedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**UnderManagement** | Pointer to **bool** | | [optional] + +## Methods + +### NewModelsSSHServerGroupsServerGroupCreationRequest + +`func NewModelsSSHServerGroupsServerGroupCreationRequest(ownerName string, groupName string, ) *ModelsSSHServerGroupsServerGroupCreationRequest` + +NewModelsSSHServerGroupsServerGroupCreationRequest instantiates a new ModelsSSHServerGroupsServerGroupCreationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsSSHServerGroupsServerGroupCreationRequestWithDefaults + +`func NewModelsSSHServerGroupsServerGroupCreationRequestWithDefaults() *ModelsSSHServerGroupsServerGroupCreationRequest` + +NewModelsSSHServerGroupsServerGroupCreationRequestWithDefaults instantiates a new ModelsSSHServerGroupsServerGroupCreationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetOwnerName + +`func (o *ModelsSSHServerGroupsServerGroupCreationRequest) GetOwnerName() string` + +GetOwnerName returns the OwnerName field if non-nil, zero value otherwise. + +### GetOwnerNameOk + +`func (o *ModelsSSHServerGroupsServerGroupCreationRequest) GetOwnerNameOk() (*string, bool)` + +GetOwnerNameOk returns a tuple with the OwnerName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwnerName + +`func (o *ModelsSSHServerGroupsServerGroupCreationRequest) SetOwnerName(v string)` + +SetOwnerName sets OwnerName field to given value. + + +### GetGroupName + +`func (o *ModelsSSHServerGroupsServerGroupCreationRequest) GetGroupName() string` + +GetGroupName returns the GroupName field if non-nil, zero value otherwise. + +### GetGroupNameOk + +`func (o *ModelsSSHServerGroupsServerGroupCreationRequest) GetGroupNameOk() (*string, bool)` + +GetGroupNameOk returns a tuple with the GroupName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupName + +`func (o *ModelsSSHServerGroupsServerGroupCreationRequest) SetGroupName(v string)` + +SetGroupName sets GroupName field to given value. + + +### GetSyncSchedule + +`func (o *ModelsSSHServerGroupsServerGroupCreationRequest) GetSyncSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetSyncSchedule returns the SyncSchedule field if non-nil, zero value otherwise. + +### GetSyncScheduleOk + +`func (o *ModelsSSHServerGroupsServerGroupCreationRequest) GetSyncScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetSyncScheduleOk returns a tuple with the SyncSchedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSyncSchedule + +`func (o *ModelsSSHServerGroupsServerGroupCreationRequest) SetSyncSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetSyncSchedule sets SyncSchedule field to given value. + +### HasSyncSchedule + +`func (o *ModelsSSHServerGroupsServerGroupCreationRequest) HasSyncSchedule() bool` + +HasSyncSchedule returns a boolean if a field has been set. + +### GetUnderManagement + +`func (o *ModelsSSHServerGroupsServerGroupCreationRequest) GetUnderManagement() bool` + +GetUnderManagement returns the UnderManagement field if non-nil, zero value otherwise. + +### GetUnderManagementOk + +`func (o *ModelsSSHServerGroupsServerGroupCreationRequest) GetUnderManagementOk() (*bool, bool)` + +GetUnderManagementOk returns a tuple with the UnderManagement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnderManagement + +`func (o *ModelsSSHServerGroupsServerGroupCreationRequest) SetUnderManagement(v bool)` + +SetUnderManagement sets UnderManagement field to given value. + +### HasUnderManagement + +`func (o *ModelsSSHServerGroupsServerGroupCreationRequest) HasUnderManagement() bool` + +HasUnderManagement returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsSSHServerGroupsServerGroupResponse.md b/v1/docs/ModelsSSHServerGroupsServerGroupResponse.md new file mode 100644 index 0000000..3d75ede --- /dev/null +++ b/v1/docs/ModelsSSHServerGroupsServerGroupResponse.md @@ -0,0 +1,186 @@ +# ModelsSSHServerGroupsServerGroupResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**Owner** | Pointer to [**ModelsSSHUsersSshUserResponse**](ModelsSSHUsersSshUserResponse.md) | | [optional] +**GroupName** | Pointer to **string** | | [optional] +**SyncSchedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**UnderManagement** | Pointer to **bool** | | [optional] +**ServerCount** | Pointer to **int32** | | [optional] + +## Methods + +### NewModelsSSHServerGroupsServerGroupResponse + +`func NewModelsSSHServerGroupsServerGroupResponse() *ModelsSSHServerGroupsServerGroupResponse` + +NewModelsSSHServerGroupsServerGroupResponse instantiates a new ModelsSSHServerGroupsServerGroupResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsSSHServerGroupsServerGroupResponseWithDefaults + +`func NewModelsSSHServerGroupsServerGroupResponseWithDefaults() *ModelsSSHServerGroupsServerGroupResponse` + +NewModelsSSHServerGroupsServerGroupResponseWithDefaults instantiates a new ModelsSSHServerGroupsServerGroupResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsSSHServerGroupsServerGroupResponse) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsSSHServerGroupsServerGroupResponse) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsSSHServerGroupsServerGroupResponse) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ModelsSSHServerGroupsServerGroupResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetOwner + +`func (o *ModelsSSHServerGroupsServerGroupResponse) GetOwner() ModelsSSHUsersSshUserResponse` + +GetOwner returns the Owner field if non-nil, zero value otherwise. + +### GetOwnerOk + +`func (o *ModelsSSHServerGroupsServerGroupResponse) GetOwnerOk() (*ModelsSSHUsersSshUserResponse, bool)` + +GetOwnerOk returns a tuple with the Owner field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwner + +`func (o *ModelsSSHServerGroupsServerGroupResponse) SetOwner(v ModelsSSHUsersSshUserResponse)` + +SetOwner sets Owner field to given value. + +### HasOwner + +`func (o *ModelsSSHServerGroupsServerGroupResponse) HasOwner() bool` + +HasOwner returns a boolean if a field has been set. + +### GetGroupName + +`func (o *ModelsSSHServerGroupsServerGroupResponse) GetGroupName() string` + +GetGroupName returns the GroupName field if non-nil, zero value otherwise. + +### GetGroupNameOk + +`func (o *ModelsSSHServerGroupsServerGroupResponse) GetGroupNameOk() (*string, bool)` + +GetGroupNameOk returns a tuple with the GroupName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupName + +`func (o *ModelsSSHServerGroupsServerGroupResponse) SetGroupName(v string)` + +SetGroupName sets GroupName field to given value. + +### HasGroupName + +`func (o *ModelsSSHServerGroupsServerGroupResponse) HasGroupName() bool` + +HasGroupName returns a boolean if a field has been set. + +### GetSyncSchedule + +`func (o *ModelsSSHServerGroupsServerGroupResponse) GetSyncSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetSyncSchedule returns the SyncSchedule field if non-nil, zero value otherwise. + +### GetSyncScheduleOk + +`func (o *ModelsSSHServerGroupsServerGroupResponse) GetSyncScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetSyncScheduleOk returns a tuple with the SyncSchedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSyncSchedule + +`func (o *ModelsSSHServerGroupsServerGroupResponse) SetSyncSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetSyncSchedule sets SyncSchedule field to given value. + +### HasSyncSchedule + +`func (o *ModelsSSHServerGroupsServerGroupResponse) HasSyncSchedule() bool` + +HasSyncSchedule returns a boolean if a field has been set. + +### GetUnderManagement + +`func (o *ModelsSSHServerGroupsServerGroupResponse) GetUnderManagement() bool` + +GetUnderManagement returns the UnderManagement field if non-nil, zero value otherwise. + +### GetUnderManagementOk + +`func (o *ModelsSSHServerGroupsServerGroupResponse) GetUnderManagementOk() (*bool, bool)` + +GetUnderManagementOk returns a tuple with the UnderManagement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnderManagement + +`func (o *ModelsSSHServerGroupsServerGroupResponse) SetUnderManagement(v bool)` + +SetUnderManagement sets UnderManagement field to given value. + +### HasUnderManagement + +`func (o *ModelsSSHServerGroupsServerGroupResponse) HasUnderManagement() bool` + +HasUnderManagement returns a boolean if a field has been set. + +### GetServerCount + +`func (o *ModelsSSHServerGroupsServerGroupResponse) GetServerCount() int32` + +GetServerCount returns the ServerCount field if non-nil, zero value otherwise. + +### GetServerCountOk + +`func (o *ModelsSSHServerGroupsServerGroupResponse) GetServerCountOk() (*int32, bool)` + +GetServerCountOk returns a tuple with the ServerCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerCount + +`func (o *ModelsSSHServerGroupsServerGroupResponse) SetServerCount(v int32)` + +SetServerCount sets ServerCount field to given value. + +### HasServerCount + +`func (o *ModelsSSHServerGroupsServerGroupResponse) HasServerCount() bool` + +HasServerCount returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsSSHServerGroupsServerGroupUpdateRequest.md b/v1/docs/ModelsSSHServerGroupsServerGroupUpdateRequest.md new file mode 100644 index 0000000..93b8229 --- /dev/null +++ b/v1/docs/ModelsSSHServerGroupsServerGroupUpdateRequest.md @@ -0,0 +1,140 @@ +# ModelsSSHServerGroupsServerGroupUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | +**OwnerName** | **string** | | +**GroupName** | **string** | | +**SyncSchedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**UnderManagement** | **bool** | | + +## Methods + +### NewModelsSSHServerGroupsServerGroupUpdateRequest + +`func NewModelsSSHServerGroupsServerGroupUpdateRequest(id string, ownerName string, groupName string, underManagement bool, ) *ModelsSSHServerGroupsServerGroupUpdateRequest` + +NewModelsSSHServerGroupsServerGroupUpdateRequest instantiates a new ModelsSSHServerGroupsServerGroupUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsSSHServerGroupsServerGroupUpdateRequestWithDefaults + +`func NewModelsSSHServerGroupsServerGroupUpdateRequestWithDefaults() *ModelsSSHServerGroupsServerGroupUpdateRequest` + +NewModelsSSHServerGroupsServerGroupUpdateRequestWithDefaults instantiates a new ModelsSSHServerGroupsServerGroupUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsSSHServerGroupsServerGroupUpdateRequest) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsSSHServerGroupsServerGroupUpdateRequest) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsSSHServerGroupsServerGroupUpdateRequest) SetId(v string)` + +SetId sets Id field to given value. + + +### GetOwnerName + +`func (o *ModelsSSHServerGroupsServerGroupUpdateRequest) GetOwnerName() string` + +GetOwnerName returns the OwnerName field if non-nil, zero value otherwise. + +### GetOwnerNameOk + +`func (o *ModelsSSHServerGroupsServerGroupUpdateRequest) GetOwnerNameOk() (*string, bool)` + +GetOwnerNameOk returns a tuple with the OwnerName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwnerName + +`func (o *ModelsSSHServerGroupsServerGroupUpdateRequest) SetOwnerName(v string)` + +SetOwnerName sets OwnerName field to given value. + + +### GetGroupName + +`func (o *ModelsSSHServerGroupsServerGroupUpdateRequest) GetGroupName() string` + +GetGroupName returns the GroupName field if non-nil, zero value otherwise. + +### GetGroupNameOk + +`func (o *ModelsSSHServerGroupsServerGroupUpdateRequest) GetGroupNameOk() (*string, bool)` + +GetGroupNameOk returns a tuple with the GroupName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupName + +`func (o *ModelsSSHServerGroupsServerGroupUpdateRequest) SetGroupName(v string)` + +SetGroupName sets GroupName field to given value. + + +### GetSyncSchedule + +`func (o *ModelsSSHServerGroupsServerGroupUpdateRequest) GetSyncSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetSyncSchedule returns the SyncSchedule field if non-nil, zero value otherwise. + +### GetSyncScheduleOk + +`func (o *ModelsSSHServerGroupsServerGroupUpdateRequest) GetSyncScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetSyncScheduleOk returns a tuple with the SyncSchedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSyncSchedule + +`func (o *ModelsSSHServerGroupsServerGroupUpdateRequest) SetSyncSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetSyncSchedule sets SyncSchedule field to given value. + +### HasSyncSchedule + +`func (o *ModelsSSHServerGroupsServerGroupUpdateRequest) HasSyncSchedule() bool` + +HasSyncSchedule returns a boolean if a field has been set. + +### GetUnderManagement + +`func (o *ModelsSSHServerGroupsServerGroupUpdateRequest) GetUnderManagement() bool` + +GetUnderManagement returns the UnderManagement field if non-nil, zero value otherwise. + +### GetUnderManagementOk + +`func (o *ModelsSSHServerGroupsServerGroupUpdateRequest) GetUnderManagementOk() (*bool, bool)` + +GetUnderManagementOk returns a tuple with the UnderManagement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnderManagement + +`func (o *ModelsSSHServerGroupsServerGroupUpdateRequest) SetUnderManagement(v bool)` + +SetUnderManagement sets UnderManagement field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsSSHServersServerCreationRequest.md b/v1/docs/ModelsSSHServersServerCreationRequest.md new file mode 100644 index 0000000..76982d4 --- /dev/null +++ b/v1/docs/ModelsSSHServersServerCreationRequest.md @@ -0,0 +1,145 @@ +# ModelsSSHServersServerCreationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AgentId** | **string** | | +**Hostname** | **string** | | +**ServerGroupId** | **string** | | +**UnderManagement** | Pointer to **bool** | | [optional] +**Port** | Pointer to **int32** | | [optional] + +## Methods + +### NewModelsSSHServersServerCreationRequest + +`func NewModelsSSHServersServerCreationRequest(agentId string, hostname string, serverGroupId string, ) *ModelsSSHServersServerCreationRequest` + +NewModelsSSHServersServerCreationRequest instantiates a new ModelsSSHServersServerCreationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsSSHServersServerCreationRequestWithDefaults + +`func NewModelsSSHServersServerCreationRequestWithDefaults() *ModelsSSHServersServerCreationRequest` + +NewModelsSSHServersServerCreationRequestWithDefaults instantiates a new ModelsSSHServersServerCreationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAgentId + +`func (o *ModelsSSHServersServerCreationRequest) GetAgentId() string` + +GetAgentId returns the AgentId field if non-nil, zero value otherwise. + +### GetAgentIdOk + +`func (o *ModelsSSHServersServerCreationRequest) GetAgentIdOk() (*string, bool)` + +GetAgentIdOk returns a tuple with the AgentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentId + +`func (o *ModelsSSHServersServerCreationRequest) SetAgentId(v string)` + +SetAgentId sets AgentId field to given value. + + +### GetHostname + +`func (o *ModelsSSHServersServerCreationRequest) GetHostname() string` + +GetHostname returns the Hostname field if non-nil, zero value otherwise. + +### GetHostnameOk + +`func (o *ModelsSSHServersServerCreationRequest) GetHostnameOk() (*string, bool)` + +GetHostnameOk returns a tuple with the Hostname field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHostname + +`func (o *ModelsSSHServersServerCreationRequest) SetHostname(v string)` + +SetHostname sets Hostname field to given value. + + +### GetServerGroupId + +`func (o *ModelsSSHServersServerCreationRequest) GetServerGroupId() string` + +GetServerGroupId returns the ServerGroupId field if non-nil, zero value otherwise. + +### GetServerGroupIdOk + +`func (o *ModelsSSHServersServerCreationRequest) GetServerGroupIdOk() (*string, bool)` + +GetServerGroupIdOk returns a tuple with the ServerGroupId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerGroupId + +`func (o *ModelsSSHServersServerCreationRequest) SetServerGroupId(v string)` + +SetServerGroupId sets ServerGroupId field to given value. + + +### GetUnderManagement + +`func (o *ModelsSSHServersServerCreationRequest) GetUnderManagement() bool` + +GetUnderManagement returns the UnderManagement field if non-nil, zero value otherwise. + +### GetUnderManagementOk + +`func (o *ModelsSSHServersServerCreationRequest) GetUnderManagementOk() (*bool, bool)` + +GetUnderManagementOk returns a tuple with the UnderManagement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnderManagement + +`func (o *ModelsSSHServersServerCreationRequest) SetUnderManagement(v bool)` + +SetUnderManagement sets UnderManagement field to given value. + +### HasUnderManagement + +`func (o *ModelsSSHServersServerCreationRequest) HasUnderManagement() bool` + +HasUnderManagement returns a boolean if a field has been set. + +### GetPort + +`func (o *ModelsSSHServersServerCreationRequest) GetPort() int32` + +GetPort returns the Port field if non-nil, zero value otherwise. + +### GetPortOk + +`func (o *ModelsSSHServersServerCreationRequest) GetPortOk() (*int32, bool)` + +GetPortOk returns a tuple with the Port field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPort + +`func (o *ModelsSSHServersServerCreationRequest) SetPort(v int32)` + +SetPort sets Port field to given value. + +### HasPort + +`func (o *ModelsSSHServersServerCreationRequest) HasPort() bool` + +HasPort returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsSSHServersServerResponse.md b/v1/docs/ModelsSSHServersServerResponse.md new file mode 100644 index 0000000..67078e5 --- /dev/null +++ b/v1/docs/ModelsSSHServersServerResponse.md @@ -0,0 +1,290 @@ +# ModelsSSHServersServerResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**AgentId** | Pointer to **string** | | [optional] +**Hostname** | Pointer to **string** | | [optional] +**ServerGroupId** | Pointer to **string** | | [optional] +**SyncSchedule** | Pointer to [**KeyfactorCommonSchedulingKeyfactorSchedule**](KeyfactorCommonSchedulingKeyfactorSchedule.md) | | [optional] +**UnderManagement** | Pointer to **bool** | | [optional] +**Owner** | Pointer to [**ModelsSSHUsersSshUserResponse**](ModelsSSHUsersSshUserResponse.md) | | [optional] +**GroupName** | Pointer to **string** | | [optional] +**Orchestrator** | Pointer to **string** | | [optional] +**Port** | Pointer to **int32** | | [optional] + +## Methods + +### NewModelsSSHServersServerResponse + +`func NewModelsSSHServersServerResponse() *ModelsSSHServersServerResponse` + +NewModelsSSHServersServerResponse instantiates a new ModelsSSHServersServerResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsSSHServersServerResponseWithDefaults + +`func NewModelsSSHServersServerResponseWithDefaults() *ModelsSSHServersServerResponse` + +NewModelsSSHServersServerResponseWithDefaults instantiates a new ModelsSSHServersServerResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsSSHServersServerResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsSSHServersServerResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsSSHServersServerResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ModelsSSHServersServerResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetAgentId + +`func (o *ModelsSSHServersServerResponse) GetAgentId() string` + +GetAgentId returns the AgentId field if non-nil, zero value otherwise. + +### GetAgentIdOk + +`func (o *ModelsSSHServersServerResponse) GetAgentIdOk() (*string, bool)` + +GetAgentIdOk returns a tuple with the AgentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentId + +`func (o *ModelsSSHServersServerResponse) SetAgentId(v string)` + +SetAgentId sets AgentId field to given value. + +### HasAgentId + +`func (o *ModelsSSHServersServerResponse) HasAgentId() bool` + +HasAgentId returns a boolean if a field has been set. + +### GetHostname + +`func (o *ModelsSSHServersServerResponse) GetHostname() string` + +GetHostname returns the Hostname field if non-nil, zero value otherwise. + +### GetHostnameOk + +`func (o *ModelsSSHServersServerResponse) GetHostnameOk() (*string, bool)` + +GetHostnameOk returns a tuple with the Hostname field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHostname + +`func (o *ModelsSSHServersServerResponse) SetHostname(v string)` + +SetHostname sets Hostname field to given value. + +### HasHostname + +`func (o *ModelsSSHServersServerResponse) HasHostname() bool` + +HasHostname returns a boolean if a field has been set. + +### GetServerGroupId + +`func (o *ModelsSSHServersServerResponse) GetServerGroupId() string` + +GetServerGroupId returns the ServerGroupId field if non-nil, zero value otherwise. + +### GetServerGroupIdOk + +`func (o *ModelsSSHServersServerResponse) GetServerGroupIdOk() (*string, bool)` + +GetServerGroupIdOk returns a tuple with the ServerGroupId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerGroupId + +`func (o *ModelsSSHServersServerResponse) SetServerGroupId(v string)` + +SetServerGroupId sets ServerGroupId field to given value. + +### HasServerGroupId + +`func (o *ModelsSSHServersServerResponse) HasServerGroupId() bool` + +HasServerGroupId returns a boolean if a field has been set. + +### GetSyncSchedule + +`func (o *ModelsSSHServersServerResponse) GetSyncSchedule() KeyfactorCommonSchedulingKeyfactorSchedule` + +GetSyncSchedule returns the SyncSchedule field if non-nil, zero value otherwise. + +### GetSyncScheduleOk + +`func (o *ModelsSSHServersServerResponse) GetSyncScheduleOk() (*KeyfactorCommonSchedulingKeyfactorSchedule, bool)` + +GetSyncScheduleOk returns a tuple with the SyncSchedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSyncSchedule + +`func (o *ModelsSSHServersServerResponse) SetSyncSchedule(v KeyfactorCommonSchedulingKeyfactorSchedule)` + +SetSyncSchedule sets SyncSchedule field to given value. + +### HasSyncSchedule + +`func (o *ModelsSSHServersServerResponse) HasSyncSchedule() bool` + +HasSyncSchedule returns a boolean if a field has been set. + +### GetUnderManagement + +`func (o *ModelsSSHServersServerResponse) GetUnderManagement() bool` + +GetUnderManagement returns the UnderManagement field if non-nil, zero value otherwise. + +### GetUnderManagementOk + +`func (o *ModelsSSHServersServerResponse) GetUnderManagementOk() (*bool, bool)` + +GetUnderManagementOk returns a tuple with the UnderManagement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnderManagement + +`func (o *ModelsSSHServersServerResponse) SetUnderManagement(v bool)` + +SetUnderManagement sets UnderManagement field to given value. + +### HasUnderManagement + +`func (o *ModelsSSHServersServerResponse) HasUnderManagement() bool` + +HasUnderManagement returns a boolean if a field has been set. + +### GetOwner + +`func (o *ModelsSSHServersServerResponse) GetOwner() ModelsSSHUsersSshUserResponse` + +GetOwner returns the Owner field if non-nil, zero value otherwise. + +### GetOwnerOk + +`func (o *ModelsSSHServersServerResponse) GetOwnerOk() (*ModelsSSHUsersSshUserResponse, bool)` + +GetOwnerOk returns a tuple with the Owner field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwner + +`func (o *ModelsSSHServersServerResponse) SetOwner(v ModelsSSHUsersSshUserResponse)` + +SetOwner sets Owner field to given value. + +### HasOwner + +`func (o *ModelsSSHServersServerResponse) HasOwner() bool` + +HasOwner returns a boolean if a field has been set. + +### GetGroupName + +`func (o *ModelsSSHServersServerResponse) GetGroupName() string` + +GetGroupName returns the GroupName field if non-nil, zero value otherwise. + +### GetGroupNameOk + +`func (o *ModelsSSHServersServerResponse) GetGroupNameOk() (*string, bool)` + +GetGroupNameOk returns a tuple with the GroupName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupName + +`func (o *ModelsSSHServersServerResponse) SetGroupName(v string)` + +SetGroupName sets GroupName field to given value. + +### HasGroupName + +`func (o *ModelsSSHServersServerResponse) HasGroupName() bool` + +HasGroupName returns a boolean if a field has been set. + +### GetOrchestrator + +`func (o *ModelsSSHServersServerResponse) GetOrchestrator() string` + +GetOrchestrator returns the Orchestrator field if non-nil, zero value otherwise. + +### GetOrchestratorOk + +`func (o *ModelsSSHServersServerResponse) GetOrchestratorOk() (*string, bool)` + +GetOrchestratorOk returns a tuple with the Orchestrator field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrchestrator + +`func (o *ModelsSSHServersServerResponse) SetOrchestrator(v string)` + +SetOrchestrator sets Orchestrator field to given value. + +### HasOrchestrator + +`func (o *ModelsSSHServersServerResponse) HasOrchestrator() bool` + +HasOrchestrator returns a boolean if a field has been set. + +### GetPort + +`func (o *ModelsSSHServersServerResponse) GetPort() int32` + +GetPort returns the Port field if non-nil, zero value otherwise. + +### GetPortOk + +`func (o *ModelsSSHServersServerResponse) GetPortOk() (*int32, bool)` + +GetPortOk returns a tuple with the Port field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPort + +`func (o *ModelsSSHServersServerResponse) SetPort(v int32)` + +SetPort sets Port field to given value. + +### HasPort + +`func (o *ModelsSSHServersServerResponse) HasPort() bool` + +HasPort returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsSSHServersServerUpdateRequest.md b/v1/docs/ModelsSSHServersServerUpdateRequest.md new file mode 100644 index 0000000..010ab25 --- /dev/null +++ b/v1/docs/ModelsSSHServersServerUpdateRequest.md @@ -0,0 +1,103 @@ +# ModelsSSHServersServerUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | +**UnderManagement** | Pointer to **bool** | | [optional] +**Port** | Pointer to **int32** | | [optional] + +## Methods + +### NewModelsSSHServersServerUpdateRequest + +`func NewModelsSSHServersServerUpdateRequest(id int32, ) *ModelsSSHServersServerUpdateRequest` + +NewModelsSSHServersServerUpdateRequest instantiates a new ModelsSSHServersServerUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsSSHServersServerUpdateRequestWithDefaults + +`func NewModelsSSHServersServerUpdateRequestWithDefaults() *ModelsSSHServersServerUpdateRequest` + +NewModelsSSHServersServerUpdateRequestWithDefaults instantiates a new ModelsSSHServersServerUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsSSHServersServerUpdateRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsSSHServersServerUpdateRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsSSHServersServerUpdateRequest) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUnderManagement + +`func (o *ModelsSSHServersServerUpdateRequest) GetUnderManagement() bool` + +GetUnderManagement returns the UnderManagement field if non-nil, zero value otherwise. + +### GetUnderManagementOk + +`func (o *ModelsSSHServersServerUpdateRequest) GetUnderManagementOk() (*bool, bool)` + +GetUnderManagementOk returns a tuple with the UnderManagement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnderManagement + +`func (o *ModelsSSHServersServerUpdateRequest) SetUnderManagement(v bool)` + +SetUnderManagement sets UnderManagement field to given value. + +### HasUnderManagement + +`func (o *ModelsSSHServersServerUpdateRequest) HasUnderManagement() bool` + +HasUnderManagement returns a boolean if a field has been set. + +### GetPort + +`func (o *ModelsSSHServersServerUpdateRequest) GetPort() int32` + +GetPort returns the Port field if non-nil, zero value otherwise. + +### GetPortOk + +`func (o *ModelsSSHServersServerUpdateRequest) GetPortOk() (*int32, bool)` + +GetPortOk returns a tuple with the Port field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPort + +`func (o *ModelsSSHServersServerUpdateRequest) SetPort(v int32)` + +SetPort sets Port field to given value. + +### HasPort + +`func (o *ModelsSSHServersServerUpdateRequest) HasPort() bool` + +HasPort returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsSSHServiceAccountsServiceAccountCreationRequest.md b/v1/docs/ModelsSSHServiceAccountsServiceAccountCreationRequest.md new file mode 100644 index 0000000..4eb8a5a --- /dev/null +++ b/v1/docs/ModelsSSHServiceAccountsServiceAccountCreationRequest.md @@ -0,0 +1,114 @@ +# ModelsSSHServiceAccountsServiceAccountCreationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**KeyGenerationRequest** | [**ModelsSSHKeysKeyGenerationRequest**](ModelsSSHKeysKeyGenerationRequest.md) | | +**User** | [**ModelsSSHServiceAccountsServiceAccountUserCreationRequest**](ModelsSSHServiceAccountsServiceAccountUserCreationRequest.md) | | +**ClientHostname** | **string** | | +**ServerGroupId** | **string** | | + +## Methods + +### NewModelsSSHServiceAccountsServiceAccountCreationRequest + +`func NewModelsSSHServiceAccountsServiceAccountCreationRequest(keyGenerationRequest ModelsSSHKeysKeyGenerationRequest, user ModelsSSHServiceAccountsServiceAccountUserCreationRequest, clientHostname string, serverGroupId string, ) *ModelsSSHServiceAccountsServiceAccountCreationRequest` + +NewModelsSSHServiceAccountsServiceAccountCreationRequest instantiates a new ModelsSSHServiceAccountsServiceAccountCreationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsSSHServiceAccountsServiceAccountCreationRequestWithDefaults + +`func NewModelsSSHServiceAccountsServiceAccountCreationRequestWithDefaults() *ModelsSSHServiceAccountsServiceAccountCreationRequest` + +NewModelsSSHServiceAccountsServiceAccountCreationRequestWithDefaults instantiates a new ModelsSSHServiceAccountsServiceAccountCreationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKeyGenerationRequest + +`func (o *ModelsSSHServiceAccountsServiceAccountCreationRequest) GetKeyGenerationRequest() ModelsSSHKeysKeyGenerationRequest` + +GetKeyGenerationRequest returns the KeyGenerationRequest field if non-nil, zero value otherwise. + +### GetKeyGenerationRequestOk + +`func (o *ModelsSSHServiceAccountsServiceAccountCreationRequest) GetKeyGenerationRequestOk() (*ModelsSSHKeysKeyGenerationRequest, bool)` + +GetKeyGenerationRequestOk returns a tuple with the KeyGenerationRequest field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyGenerationRequest + +`func (o *ModelsSSHServiceAccountsServiceAccountCreationRequest) SetKeyGenerationRequest(v ModelsSSHKeysKeyGenerationRequest)` + +SetKeyGenerationRequest sets KeyGenerationRequest field to given value. + + +### GetUser + +`func (o *ModelsSSHServiceAccountsServiceAccountCreationRequest) GetUser() ModelsSSHServiceAccountsServiceAccountUserCreationRequest` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *ModelsSSHServiceAccountsServiceAccountCreationRequest) GetUserOk() (*ModelsSSHServiceAccountsServiceAccountUserCreationRequest, bool)` + +GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUser + +`func (o *ModelsSSHServiceAccountsServiceAccountCreationRequest) SetUser(v ModelsSSHServiceAccountsServiceAccountUserCreationRequest)` + +SetUser sets User field to given value. + + +### GetClientHostname + +`func (o *ModelsSSHServiceAccountsServiceAccountCreationRequest) GetClientHostname() string` + +GetClientHostname returns the ClientHostname field if non-nil, zero value otherwise. + +### GetClientHostnameOk + +`func (o *ModelsSSHServiceAccountsServiceAccountCreationRequest) GetClientHostnameOk() (*string, bool)` + +GetClientHostnameOk returns a tuple with the ClientHostname field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientHostname + +`func (o *ModelsSSHServiceAccountsServiceAccountCreationRequest) SetClientHostname(v string)` + +SetClientHostname sets ClientHostname field to given value. + + +### GetServerGroupId + +`func (o *ModelsSSHServiceAccountsServiceAccountCreationRequest) GetServerGroupId() string` + +GetServerGroupId returns the ServerGroupId field if non-nil, zero value otherwise. + +### GetServerGroupIdOk + +`func (o *ModelsSSHServiceAccountsServiceAccountCreationRequest) GetServerGroupIdOk() (*string, bool)` + +GetServerGroupIdOk returns a tuple with the ServerGroupId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerGroupId + +`func (o *ModelsSSHServiceAccountsServiceAccountCreationRequest) SetServerGroupId(v string)` + +SetServerGroupId sets ServerGroupId field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsSSHServiceAccountsServiceAccountResponse.md b/v1/docs/ModelsSSHServiceAccountsServiceAccountResponse.md new file mode 100644 index 0000000..6570709 --- /dev/null +++ b/v1/docs/ModelsSSHServiceAccountsServiceAccountResponse.md @@ -0,0 +1,134 @@ +# ModelsSSHServiceAccountsServiceAccountResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**ClientHostname** | Pointer to **string** | | [optional] +**ServerGroup** | Pointer to [**ModelsSSHServerGroupsServerGroupResponse**](ModelsSSHServerGroupsServerGroupResponse.md) | | [optional] +**User** | Pointer to [**ModelsSSHUsersSshUserResponse**](ModelsSSHUsersSshUserResponse.md) | | [optional] + +## Methods + +### NewModelsSSHServiceAccountsServiceAccountResponse + +`func NewModelsSSHServiceAccountsServiceAccountResponse() *ModelsSSHServiceAccountsServiceAccountResponse` + +NewModelsSSHServiceAccountsServiceAccountResponse instantiates a new ModelsSSHServiceAccountsServiceAccountResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsSSHServiceAccountsServiceAccountResponseWithDefaults + +`func NewModelsSSHServiceAccountsServiceAccountResponseWithDefaults() *ModelsSSHServiceAccountsServiceAccountResponse` + +NewModelsSSHServiceAccountsServiceAccountResponseWithDefaults instantiates a new ModelsSSHServiceAccountsServiceAccountResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsSSHServiceAccountsServiceAccountResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsSSHServiceAccountsServiceAccountResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsSSHServiceAccountsServiceAccountResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ModelsSSHServiceAccountsServiceAccountResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetClientHostname + +`func (o *ModelsSSHServiceAccountsServiceAccountResponse) GetClientHostname() string` + +GetClientHostname returns the ClientHostname field if non-nil, zero value otherwise. + +### GetClientHostnameOk + +`func (o *ModelsSSHServiceAccountsServiceAccountResponse) GetClientHostnameOk() (*string, bool)` + +GetClientHostnameOk returns a tuple with the ClientHostname field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientHostname + +`func (o *ModelsSSHServiceAccountsServiceAccountResponse) SetClientHostname(v string)` + +SetClientHostname sets ClientHostname field to given value. + +### HasClientHostname + +`func (o *ModelsSSHServiceAccountsServiceAccountResponse) HasClientHostname() bool` + +HasClientHostname returns a boolean if a field has been set. + +### GetServerGroup + +`func (o *ModelsSSHServiceAccountsServiceAccountResponse) GetServerGroup() ModelsSSHServerGroupsServerGroupResponse` + +GetServerGroup returns the ServerGroup field if non-nil, zero value otherwise. + +### GetServerGroupOk + +`func (o *ModelsSSHServiceAccountsServiceAccountResponse) GetServerGroupOk() (*ModelsSSHServerGroupsServerGroupResponse, bool)` + +GetServerGroupOk returns a tuple with the ServerGroup field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerGroup + +`func (o *ModelsSSHServiceAccountsServiceAccountResponse) SetServerGroup(v ModelsSSHServerGroupsServerGroupResponse)` + +SetServerGroup sets ServerGroup field to given value. + +### HasServerGroup + +`func (o *ModelsSSHServiceAccountsServiceAccountResponse) HasServerGroup() bool` + +HasServerGroup returns a boolean if a field has been set. + +### GetUser + +`func (o *ModelsSSHServiceAccountsServiceAccountResponse) GetUser() ModelsSSHUsersSshUserResponse` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *ModelsSSHServiceAccountsServiceAccountResponse) GetUserOk() (*ModelsSSHUsersSshUserResponse, bool)` + +GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUser + +`func (o *ModelsSSHServiceAccountsServiceAccountResponse) SetUser(v ModelsSSHUsersSshUserResponse)` + +SetUser sets User field to given value. + +### HasUser + +`func (o *ModelsSSHServiceAccountsServiceAccountResponse) HasUser() bool` + +HasUser returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsSSHServiceAccountsServiceAccountUpdateRequest.md b/v1/docs/ModelsSSHServiceAccountsServiceAccountUpdateRequest.md new file mode 100644 index 0000000..31029b5 --- /dev/null +++ b/v1/docs/ModelsSSHServiceAccountsServiceAccountUpdateRequest.md @@ -0,0 +1,72 @@ +# ModelsSSHServiceAccountsServiceAccountUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**KeyUpdateRequest** | [**ModelsSSHKeysKeyUpdateRequest**](ModelsSSHKeysKeyUpdateRequest.md) | | +**Id** | **int32** | | + +## Methods + +### NewModelsSSHServiceAccountsServiceAccountUpdateRequest + +`func NewModelsSSHServiceAccountsServiceAccountUpdateRequest(keyUpdateRequest ModelsSSHKeysKeyUpdateRequest, id int32, ) *ModelsSSHServiceAccountsServiceAccountUpdateRequest` + +NewModelsSSHServiceAccountsServiceAccountUpdateRequest instantiates a new ModelsSSHServiceAccountsServiceAccountUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsSSHServiceAccountsServiceAccountUpdateRequestWithDefaults + +`func NewModelsSSHServiceAccountsServiceAccountUpdateRequestWithDefaults() *ModelsSSHServiceAccountsServiceAccountUpdateRequest` + +NewModelsSSHServiceAccountsServiceAccountUpdateRequestWithDefaults instantiates a new ModelsSSHServiceAccountsServiceAccountUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKeyUpdateRequest + +`func (o *ModelsSSHServiceAccountsServiceAccountUpdateRequest) GetKeyUpdateRequest() ModelsSSHKeysKeyUpdateRequest` + +GetKeyUpdateRequest returns the KeyUpdateRequest field if non-nil, zero value otherwise. + +### GetKeyUpdateRequestOk + +`func (o *ModelsSSHServiceAccountsServiceAccountUpdateRequest) GetKeyUpdateRequestOk() (*ModelsSSHKeysKeyUpdateRequest, bool)` + +GetKeyUpdateRequestOk returns a tuple with the KeyUpdateRequest field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyUpdateRequest + +`func (o *ModelsSSHServiceAccountsServiceAccountUpdateRequest) SetKeyUpdateRequest(v ModelsSSHKeysKeyUpdateRequest)` + +SetKeyUpdateRequest sets KeyUpdateRequest field to given value. + + +### GetId + +`func (o *ModelsSSHServiceAccountsServiceAccountUpdateRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsSSHServiceAccountsServiceAccountUpdateRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsSSHServiceAccountsServiceAccountUpdateRequest) SetId(v int32)` + +SetId sets Id field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsSSHServiceAccountsServiceAccountUserCreationRequest.md b/v1/docs/ModelsSSHServiceAccountsServiceAccountUserCreationRequest.md new file mode 100644 index 0000000..0f8bfd6 --- /dev/null +++ b/v1/docs/ModelsSSHServiceAccountsServiceAccountUserCreationRequest.md @@ -0,0 +1,77 @@ +# ModelsSSHServiceAccountsServiceAccountUserCreationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Username** | **string** | | +**LogonIds** | Pointer to **[]int32** | | [optional] + +## Methods + +### NewModelsSSHServiceAccountsServiceAccountUserCreationRequest + +`func NewModelsSSHServiceAccountsServiceAccountUserCreationRequest(username string, ) *ModelsSSHServiceAccountsServiceAccountUserCreationRequest` + +NewModelsSSHServiceAccountsServiceAccountUserCreationRequest instantiates a new ModelsSSHServiceAccountsServiceAccountUserCreationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsSSHServiceAccountsServiceAccountUserCreationRequestWithDefaults + +`func NewModelsSSHServiceAccountsServiceAccountUserCreationRequestWithDefaults() *ModelsSSHServiceAccountsServiceAccountUserCreationRequest` + +NewModelsSSHServiceAccountsServiceAccountUserCreationRequestWithDefaults instantiates a new ModelsSSHServiceAccountsServiceAccountUserCreationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUsername + +`func (o *ModelsSSHServiceAccountsServiceAccountUserCreationRequest) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *ModelsSSHServiceAccountsServiceAccountUserCreationRequest) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *ModelsSSHServiceAccountsServiceAccountUserCreationRequest) SetUsername(v string)` + +SetUsername sets Username field to given value. + + +### GetLogonIds + +`func (o *ModelsSSHServiceAccountsServiceAccountUserCreationRequest) GetLogonIds() []int32` + +GetLogonIds returns the LogonIds field if non-nil, zero value otherwise. + +### GetLogonIdsOk + +`func (o *ModelsSSHServiceAccountsServiceAccountUserCreationRequest) GetLogonIdsOk() (*[]int32, bool)` + +GetLogonIdsOk returns a tuple with the LogonIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogonIds + +`func (o *ModelsSSHServiceAccountsServiceAccountUserCreationRequest) SetLogonIds(v []int32)` + +SetLogonIds sets LogonIds field to given value. + +### HasLogonIds + +`func (o *ModelsSSHServiceAccountsServiceAccountUserCreationRequest) HasLogonIds() bool` + +HasLogonIds returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsSSHUsersSshUserAccessResponse.md b/v1/docs/ModelsSSHUsersSshUserAccessResponse.md new file mode 100644 index 0000000..a8b85ed --- /dev/null +++ b/v1/docs/ModelsSSHUsersSshUserAccessResponse.md @@ -0,0 +1,160 @@ +# ModelsSSHUsersSshUserAccessResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Key** | Pointer to [**ModelsSSHKeysKeyResponse**](ModelsSSHKeysKeyResponse.md) | | [optional] +**Username** | Pointer to **string** | | [optional] +**Access** | Pointer to [**[]ModelsSSHLogonsLogonResponse**](ModelsSSHLogonsLogonResponse.md) | | [optional] +**IsGroup** | Pointer to **bool** | | [optional] + +## Methods + +### NewModelsSSHUsersSshUserAccessResponse + +`func NewModelsSSHUsersSshUserAccessResponse() *ModelsSSHUsersSshUserAccessResponse` + +NewModelsSSHUsersSshUserAccessResponse instantiates a new ModelsSSHUsersSshUserAccessResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsSSHUsersSshUserAccessResponseWithDefaults + +`func NewModelsSSHUsersSshUserAccessResponseWithDefaults() *ModelsSSHUsersSshUserAccessResponse` + +NewModelsSSHUsersSshUserAccessResponseWithDefaults instantiates a new ModelsSSHUsersSshUserAccessResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsSSHUsersSshUserAccessResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsSSHUsersSshUserAccessResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsSSHUsersSshUserAccessResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ModelsSSHUsersSshUserAccessResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetKey + +`func (o *ModelsSSHUsersSshUserAccessResponse) GetKey() ModelsSSHKeysKeyResponse` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *ModelsSSHUsersSshUserAccessResponse) GetKeyOk() (*ModelsSSHKeysKeyResponse, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *ModelsSSHUsersSshUserAccessResponse) SetKey(v ModelsSSHKeysKeyResponse)` + +SetKey sets Key field to given value. + +### HasKey + +`func (o *ModelsSSHUsersSshUserAccessResponse) HasKey() bool` + +HasKey returns a boolean if a field has been set. + +### GetUsername + +`func (o *ModelsSSHUsersSshUserAccessResponse) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *ModelsSSHUsersSshUserAccessResponse) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *ModelsSSHUsersSshUserAccessResponse) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *ModelsSSHUsersSshUserAccessResponse) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + +### GetAccess + +`func (o *ModelsSSHUsersSshUserAccessResponse) GetAccess() []ModelsSSHLogonsLogonResponse` + +GetAccess returns the Access field if non-nil, zero value otherwise. + +### GetAccessOk + +`func (o *ModelsSSHUsersSshUserAccessResponse) GetAccessOk() (*[]ModelsSSHLogonsLogonResponse, bool)` + +GetAccessOk returns a tuple with the Access field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccess + +`func (o *ModelsSSHUsersSshUserAccessResponse) SetAccess(v []ModelsSSHLogonsLogonResponse)` + +SetAccess sets Access field to given value. + +### HasAccess + +`func (o *ModelsSSHUsersSshUserAccessResponse) HasAccess() bool` + +HasAccess returns a boolean if a field has been set. + +### GetIsGroup + +`func (o *ModelsSSHUsersSshUserAccessResponse) GetIsGroup() bool` + +GetIsGroup returns the IsGroup field if non-nil, zero value otherwise. + +### GetIsGroupOk + +`func (o *ModelsSSHUsersSshUserAccessResponse) GetIsGroupOk() (*bool, bool)` + +GetIsGroupOk returns a tuple with the IsGroup field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsGroup + +`func (o *ModelsSSHUsersSshUserAccessResponse) SetIsGroup(v bool)` + +SetIsGroup sets IsGroup field to given value. + +### HasIsGroup + +`func (o *ModelsSSHUsersSshUserAccessResponse) HasIsGroup() bool` + +HasIsGroup returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsSSHUsersSshUserCreationRequest.md b/v1/docs/ModelsSSHUsersSshUserCreationRequest.md new file mode 100644 index 0000000..633c3ec --- /dev/null +++ b/v1/docs/ModelsSSHUsersSshUserCreationRequest.md @@ -0,0 +1,77 @@ +# ModelsSSHUsersSshUserCreationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Username** | **string** | | +**LogonIds** | Pointer to **[]int32** | | [optional] + +## Methods + +### NewModelsSSHUsersSshUserCreationRequest + +`func NewModelsSSHUsersSshUserCreationRequest(username string, ) *ModelsSSHUsersSshUserCreationRequest` + +NewModelsSSHUsersSshUserCreationRequest instantiates a new ModelsSSHUsersSshUserCreationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsSSHUsersSshUserCreationRequestWithDefaults + +`func NewModelsSSHUsersSshUserCreationRequestWithDefaults() *ModelsSSHUsersSshUserCreationRequest` + +NewModelsSSHUsersSshUserCreationRequestWithDefaults instantiates a new ModelsSSHUsersSshUserCreationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUsername + +`func (o *ModelsSSHUsersSshUserCreationRequest) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *ModelsSSHUsersSshUserCreationRequest) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *ModelsSSHUsersSshUserCreationRequest) SetUsername(v string)` + +SetUsername sets Username field to given value. + + +### GetLogonIds + +`func (o *ModelsSSHUsersSshUserCreationRequest) GetLogonIds() []int32` + +GetLogonIds returns the LogonIds field if non-nil, zero value otherwise. + +### GetLogonIdsOk + +`func (o *ModelsSSHUsersSshUserCreationRequest) GetLogonIdsOk() (*[]int32, bool)` + +GetLogonIdsOk returns a tuple with the LogonIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogonIds + +`func (o *ModelsSSHUsersSshUserCreationRequest) SetLogonIds(v []int32)` + +SetLogonIds sets LogonIds field to given value. + +### HasLogonIds + +`func (o *ModelsSSHUsersSshUserCreationRequest) HasLogonIds() bool` + +HasLogonIds returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsSSHUsersSshUserResponse.md b/v1/docs/ModelsSSHUsersSshUserResponse.md new file mode 100644 index 0000000..e2486ec --- /dev/null +++ b/v1/docs/ModelsSSHUsersSshUserResponse.md @@ -0,0 +1,134 @@ +# ModelsSSHUsersSshUserResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Key** | Pointer to [**ModelsSSHKeysKeyResponse**](ModelsSSHKeysKeyResponse.md) | | [optional] +**Username** | Pointer to **string** | | [optional] +**LogonIds** | Pointer to **[]int32** | | [optional] + +## Methods + +### NewModelsSSHUsersSshUserResponse + +`func NewModelsSSHUsersSshUserResponse() *ModelsSSHUsersSshUserResponse` + +NewModelsSSHUsersSshUserResponse instantiates a new ModelsSSHUsersSshUserResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsSSHUsersSshUserResponseWithDefaults + +`func NewModelsSSHUsersSshUserResponseWithDefaults() *ModelsSSHUsersSshUserResponse` + +NewModelsSSHUsersSshUserResponseWithDefaults instantiates a new ModelsSSHUsersSshUserResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsSSHUsersSshUserResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsSSHUsersSshUserResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsSSHUsersSshUserResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ModelsSSHUsersSshUserResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetKey + +`func (o *ModelsSSHUsersSshUserResponse) GetKey() ModelsSSHKeysKeyResponse` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *ModelsSSHUsersSshUserResponse) GetKeyOk() (*ModelsSSHKeysKeyResponse, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *ModelsSSHUsersSshUserResponse) SetKey(v ModelsSSHKeysKeyResponse)` + +SetKey sets Key field to given value. + +### HasKey + +`func (o *ModelsSSHUsersSshUserResponse) HasKey() bool` + +HasKey returns a boolean if a field has been set. + +### GetUsername + +`func (o *ModelsSSHUsersSshUserResponse) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *ModelsSSHUsersSshUserResponse) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *ModelsSSHUsersSshUserResponse) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *ModelsSSHUsersSshUserResponse) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + +### GetLogonIds + +`func (o *ModelsSSHUsersSshUserResponse) GetLogonIds() []int32` + +GetLogonIds returns the LogonIds field if non-nil, zero value otherwise. + +### GetLogonIdsOk + +`func (o *ModelsSSHUsersSshUserResponse) GetLogonIdsOk() (*[]int32, bool)` + +GetLogonIdsOk returns a tuple with the LogonIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogonIds + +`func (o *ModelsSSHUsersSshUserResponse) SetLogonIds(v []int32)` + +SetLogonIds sets LogonIds field to given value. + +### HasLogonIds + +`func (o *ModelsSSHUsersSshUserResponse) HasLogonIds() bool` + +HasLogonIds returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsSSHUsersSshUserUpdateRequest.md b/v1/docs/ModelsSSHUsersSshUserUpdateRequest.md new file mode 100644 index 0000000..aaf4376 --- /dev/null +++ b/v1/docs/ModelsSSHUsersSshUserUpdateRequest.md @@ -0,0 +1,77 @@ +# ModelsSSHUsersSshUserUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | +**LogonIds** | Pointer to **[]int32** | | [optional] + +## Methods + +### NewModelsSSHUsersSshUserUpdateRequest + +`func NewModelsSSHUsersSshUserUpdateRequest(id int32, ) *ModelsSSHUsersSshUserUpdateRequest` + +NewModelsSSHUsersSshUserUpdateRequest instantiates a new ModelsSSHUsersSshUserUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsSSHUsersSshUserUpdateRequestWithDefaults + +`func NewModelsSSHUsersSshUserUpdateRequestWithDefaults() *ModelsSSHUsersSshUserUpdateRequest` + +NewModelsSSHUsersSshUserUpdateRequestWithDefaults instantiates a new ModelsSSHUsersSshUserUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsSSHUsersSshUserUpdateRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsSSHUsersSshUserUpdateRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsSSHUsersSshUserUpdateRequest) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetLogonIds + +`func (o *ModelsSSHUsersSshUserUpdateRequest) GetLogonIds() []int32` + +GetLogonIds returns the LogonIds field if non-nil, zero value otherwise. + +### GetLogonIdsOk + +`func (o *ModelsSSHUsersSshUserUpdateRequest) GetLogonIdsOk() (*[]int32, bool)` + +GetLogonIdsOk returns a tuple with the LogonIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogonIds + +`func (o *ModelsSSHUsersSshUserUpdateRequest) SetLogonIds(v []int32)` + +SetLogonIds sets LogonIds field to given value. + +### HasLogonIds + +`func (o *ModelsSSHUsersSshUserUpdateRequest) HasLogonIds() bool` + +HasLogonIds returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsSSLDisplayScanJobPart.md b/v1/docs/ModelsSSLDisplayScanJobPart.md new file mode 100644 index 0000000..f3d6cda --- /dev/null +++ b/v1/docs/ModelsSSLDisplayScanJobPart.md @@ -0,0 +1,186 @@ +# ModelsSSLDisplayScanJobPart + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ScanJobPartId** | Pointer to **string** | | [optional] +**Agent** | Pointer to **string** | | [optional] +**Status** | Pointer to **int32** | | [optional] +**StartTime** | Pointer to **time.Time** | | [optional] +**EndTime** | Pointer to **time.Time** | | [optional] +**EndpointCount** | Pointer to **int32** | | [optional] + +## Methods + +### NewModelsSSLDisplayScanJobPart + +`func NewModelsSSLDisplayScanJobPart() *ModelsSSLDisplayScanJobPart` + +NewModelsSSLDisplayScanJobPart instantiates a new ModelsSSLDisplayScanJobPart object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsSSLDisplayScanJobPartWithDefaults + +`func NewModelsSSLDisplayScanJobPartWithDefaults() *ModelsSSLDisplayScanJobPart` + +NewModelsSSLDisplayScanJobPartWithDefaults instantiates a new ModelsSSLDisplayScanJobPart object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetScanJobPartId + +`func (o *ModelsSSLDisplayScanJobPart) GetScanJobPartId() string` + +GetScanJobPartId returns the ScanJobPartId field if non-nil, zero value otherwise. + +### GetScanJobPartIdOk + +`func (o *ModelsSSLDisplayScanJobPart) GetScanJobPartIdOk() (*string, bool)` + +GetScanJobPartIdOk returns a tuple with the ScanJobPartId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScanJobPartId + +`func (o *ModelsSSLDisplayScanJobPart) SetScanJobPartId(v string)` + +SetScanJobPartId sets ScanJobPartId field to given value. + +### HasScanJobPartId + +`func (o *ModelsSSLDisplayScanJobPart) HasScanJobPartId() bool` + +HasScanJobPartId returns a boolean if a field has been set. + +### GetAgent + +`func (o *ModelsSSLDisplayScanJobPart) GetAgent() string` + +GetAgent returns the Agent field if non-nil, zero value otherwise. + +### GetAgentOk + +`func (o *ModelsSSLDisplayScanJobPart) GetAgentOk() (*string, bool)` + +GetAgentOk returns a tuple with the Agent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgent + +`func (o *ModelsSSLDisplayScanJobPart) SetAgent(v string)` + +SetAgent sets Agent field to given value. + +### HasAgent + +`func (o *ModelsSSLDisplayScanJobPart) HasAgent() bool` + +HasAgent returns a boolean if a field has been set. + +### GetStatus + +`func (o *ModelsSSLDisplayScanJobPart) GetStatus() int32` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ModelsSSLDisplayScanJobPart) GetStatusOk() (*int32, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ModelsSSLDisplayScanJobPart) SetStatus(v int32)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ModelsSSLDisplayScanJobPart) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetStartTime + +`func (o *ModelsSSLDisplayScanJobPart) GetStartTime() time.Time` + +GetStartTime returns the StartTime field if non-nil, zero value otherwise. + +### GetStartTimeOk + +`func (o *ModelsSSLDisplayScanJobPart) GetStartTimeOk() (*time.Time, bool)` + +GetStartTimeOk returns a tuple with the StartTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartTime + +`func (o *ModelsSSLDisplayScanJobPart) SetStartTime(v time.Time)` + +SetStartTime sets StartTime field to given value. + +### HasStartTime + +`func (o *ModelsSSLDisplayScanJobPart) HasStartTime() bool` + +HasStartTime returns a boolean if a field has been set. + +### GetEndTime + +`func (o *ModelsSSLDisplayScanJobPart) GetEndTime() time.Time` + +GetEndTime returns the EndTime field if non-nil, zero value otherwise. + +### GetEndTimeOk + +`func (o *ModelsSSLDisplayScanJobPart) GetEndTimeOk() (*time.Time, bool)` + +GetEndTimeOk returns a tuple with the EndTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndTime + +`func (o *ModelsSSLDisplayScanJobPart) SetEndTime(v time.Time)` + +SetEndTime sets EndTime field to given value. + +### HasEndTime + +`func (o *ModelsSSLDisplayScanJobPart) HasEndTime() bool` + +HasEndTime returns a boolean if a field has been set. + +### GetEndpointCount + +`func (o *ModelsSSLDisplayScanJobPart) GetEndpointCount() int32` + +GetEndpointCount returns the EndpointCount field if non-nil, zero value otherwise. + +### GetEndpointCountOk + +`func (o *ModelsSSLDisplayScanJobPart) GetEndpointCountOk() (*int32, bool)` + +GetEndpointCountOk returns a tuple with the EndpointCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndpointCount + +`func (o *ModelsSSLDisplayScanJobPart) SetEndpointCount(v int32)` + +SetEndpointCount sets EndpointCount field to given value. + +### HasEndpointCount + +`func (o *ModelsSSLDisplayScanJobPart) HasEndpointCount() bool` + +HasEndpointCount returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsSSLEndpoint.md b/v1/docs/ModelsSSLEndpoint.md new file mode 100644 index 0000000..d9d21c8 --- /dev/null +++ b/v1/docs/ModelsSSLEndpoint.md @@ -0,0 +1,238 @@ +# ModelsSSLEndpoint + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EndpointId** | Pointer to **string** | | [optional] +**NetworkId** | Pointer to **string** | | [optional] +**LastHistoryId** | Pointer to **string** | | [optional] +**IpAddressBytes** | Pointer to **string** | | [optional] +**Port** | Pointer to **int32** | | [optional] +**SNIName** | Pointer to **string** | | [optional] +**EnableMonitor** | Pointer to **bool** | | [optional] +**Reviewed** | Pointer to **bool** | | [optional] + +## Methods + +### NewModelsSSLEndpoint + +`func NewModelsSSLEndpoint() *ModelsSSLEndpoint` + +NewModelsSSLEndpoint instantiates a new ModelsSSLEndpoint object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsSSLEndpointWithDefaults + +`func NewModelsSSLEndpointWithDefaults() *ModelsSSLEndpoint` + +NewModelsSSLEndpointWithDefaults instantiates a new ModelsSSLEndpoint object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEndpointId + +`func (o *ModelsSSLEndpoint) GetEndpointId() string` + +GetEndpointId returns the EndpointId field if non-nil, zero value otherwise. + +### GetEndpointIdOk + +`func (o *ModelsSSLEndpoint) GetEndpointIdOk() (*string, bool)` + +GetEndpointIdOk returns a tuple with the EndpointId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndpointId + +`func (o *ModelsSSLEndpoint) SetEndpointId(v string)` + +SetEndpointId sets EndpointId field to given value. + +### HasEndpointId + +`func (o *ModelsSSLEndpoint) HasEndpointId() bool` + +HasEndpointId returns a boolean if a field has been set. + +### GetNetworkId + +`func (o *ModelsSSLEndpoint) GetNetworkId() string` + +GetNetworkId returns the NetworkId field if non-nil, zero value otherwise. + +### GetNetworkIdOk + +`func (o *ModelsSSLEndpoint) GetNetworkIdOk() (*string, bool)` + +GetNetworkIdOk returns a tuple with the NetworkId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNetworkId + +`func (o *ModelsSSLEndpoint) SetNetworkId(v string)` + +SetNetworkId sets NetworkId field to given value. + +### HasNetworkId + +`func (o *ModelsSSLEndpoint) HasNetworkId() bool` + +HasNetworkId returns a boolean if a field has been set. + +### GetLastHistoryId + +`func (o *ModelsSSLEndpoint) GetLastHistoryId() string` + +GetLastHistoryId returns the LastHistoryId field if non-nil, zero value otherwise. + +### GetLastHistoryIdOk + +`func (o *ModelsSSLEndpoint) GetLastHistoryIdOk() (*string, bool)` + +GetLastHistoryIdOk returns a tuple with the LastHistoryId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastHistoryId + +`func (o *ModelsSSLEndpoint) SetLastHistoryId(v string)` + +SetLastHistoryId sets LastHistoryId field to given value. + +### HasLastHistoryId + +`func (o *ModelsSSLEndpoint) HasLastHistoryId() bool` + +HasLastHistoryId returns a boolean if a field has been set. + +### GetIpAddressBytes + +`func (o *ModelsSSLEndpoint) GetIpAddressBytes() string` + +GetIpAddressBytes returns the IpAddressBytes field if non-nil, zero value otherwise. + +### GetIpAddressBytesOk + +`func (o *ModelsSSLEndpoint) GetIpAddressBytesOk() (*string, bool)` + +GetIpAddressBytesOk returns a tuple with the IpAddressBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpAddressBytes + +`func (o *ModelsSSLEndpoint) SetIpAddressBytes(v string)` + +SetIpAddressBytes sets IpAddressBytes field to given value. + +### HasIpAddressBytes + +`func (o *ModelsSSLEndpoint) HasIpAddressBytes() bool` + +HasIpAddressBytes returns a boolean if a field has been set. + +### GetPort + +`func (o *ModelsSSLEndpoint) GetPort() int32` + +GetPort returns the Port field if non-nil, zero value otherwise. + +### GetPortOk + +`func (o *ModelsSSLEndpoint) GetPortOk() (*int32, bool)` + +GetPortOk returns a tuple with the Port field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPort + +`func (o *ModelsSSLEndpoint) SetPort(v int32)` + +SetPort sets Port field to given value. + +### HasPort + +`func (o *ModelsSSLEndpoint) HasPort() bool` + +HasPort returns a boolean if a field has been set. + +### GetSNIName + +`func (o *ModelsSSLEndpoint) GetSNIName() string` + +GetSNIName returns the SNIName field if non-nil, zero value otherwise. + +### GetSNINameOk + +`func (o *ModelsSSLEndpoint) GetSNINameOk() (*string, bool)` + +GetSNINameOk returns a tuple with the SNIName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSNIName + +`func (o *ModelsSSLEndpoint) SetSNIName(v string)` + +SetSNIName sets SNIName field to given value. + +### HasSNIName + +`func (o *ModelsSSLEndpoint) HasSNIName() bool` + +HasSNIName returns a boolean if a field has been set. + +### GetEnableMonitor + +`func (o *ModelsSSLEndpoint) GetEnableMonitor() bool` + +GetEnableMonitor returns the EnableMonitor field if non-nil, zero value otherwise. + +### GetEnableMonitorOk + +`func (o *ModelsSSLEndpoint) GetEnableMonitorOk() (*bool, bool)` + +GetEnableMonitorOk returns a tuple with the EnableMonitor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnableMonitor + +`func (o *ModelsSSLEndpoint) SetEnableMonitor(v bool)` + +SetEnableMonitor sets EnableMonitor field to given value. + +### HasEnableMonitor + +`func (o *ModelsSSLEndpoint) HasEnableMonitor() bool` + +HasEnableMonitor returns a boolean if a field has been set. + +### GetReviewed + +`func (o *ModelsSSLEndpoint) GetReviewed() bool` + +GetReviewed returns the Reviewed field if non-nil, zero value otherwise. + +### GetReviewedOk + +`func (o *ModelsSSLEndpoint) GetReviewedOk() (*bool, bool)` + +GetReviewedOk returns a tuple with the Reviewed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReviewed + +`func (o *ModelsSSLEndpoint) SetReviewed(v bool)` + +SetReviewed sets Reviewed field to given value. + +### HasReviewed + +`func (o *ModelsSSLEndpoint) HasReviewed() bool` + +HasReviewed returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsSSLEndpointHistoryResponse.md b/v1/docs/ModelsSSLEndpointHistoryResponse.md new file mode 100644 index 0000000..7760483 --- /dev/null +++ b/v1/docs/ModelsSSLEndpointHistoryResponse.md @@ -0,0 +1,264 @@ +# ModelsSSLEndpointHistoryResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**HistoryId** | Pointer to **string** | | [optional] +**EndpointId** | Pointer to **string** | | [optional] +**AuditId** | Pointer to **int64** | | [optional] +**Timestamp** | Pointer to **time.Time** | | [optional] +**Status** | Pointer to **int32** | | [optional] +**JobType** | Pointer to **int32** | | [optional] +**ProbeType** | Pointer to **int32** | | [optional] +**ReverseDNS** | Pointer to **string** | | [optional] +**HistoryCertificates** | Pointer to [**[]ModelsSSLEndpointHistoryResponseCertificateModel**](ModelsSSLEndpointHistoryResponseCertificateModel.md) | | [optional] + +## Methods + +### NewModelsSSLEndpointHistoryResponse + +`func NewModelsSSLEndpointHistoryResponse() *ModelsSSLEndpointHistoryResponse` + +NewModelsSSLEndpointHistoryResponse instantiates a new ModelsSSLEndpointHistoryResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsSSLEndpointHistoryResponseWithDefaults + +`func NewModelsSSLEndpointHistoryResponseWithDefaults() *ModelsSSLEndpointHistoryResponse` + +NewModelsSSLEndpointHistoryResponseWithDefaults instantiates a new ModelsSSLEndpointHistoryResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetHistoryId + +`func (o *ModelsSSLEndpointHistoryResponse) GetHistoryId() string` + +GetHistoryId returns the HistoryId field if non-nil, zero value otherwise. + +### GetHistoryIdOk + +`func (o *ModelsSSLEndpointHistoryResponse) GetHistoryIdOk() (*string, bool)` + +GetHistoryIdOk returns a tuple with the HistoryId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHistoryId + +`func (o *ModelsSSLEndpointHistoryResponse) SetHistoryId(v string)` + +SetHistoryId sets HistoryId field to given value. + +### HasHistoryId + +`func (o *ModelsSSLEndpointHistoryResponse) HasHistoryId() bool` + +HasHistoryId returns a boolean if a field has been set. + +### GetEndpointId + +`func (o *ModelsSSLEndpointHistoryResponse) GetEndpointId() string` + +GetEndpointId returns the EndpointId field if non-nil, zero value otherwise. + +### GetEndpointIdOk + +`func (o *ModelsSSLEndpointHistoryResponse) GetEndpointIdOk() (*string, bool)` + +GetEndpointIdOk returns a tuple with the EndpointId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndpointId + +`func (o *ModelsSSLEndpointHistoryResponse) SetEndpointId(v string)` + +SetEndpointId sets EndpointId field to given value. + +### HasEndpointId + +`func (o *ModelsSSLEndpointHistoryResponse) HasEndpointId() bool` + +HasEndpointId returns a boolean if a field has been set. + +### GetAuditId + +`func (o *ModelsSSLEndpointHistoryResponse) GetAuditId() int64` + +GetAuditId returns the AuditId field if non-nil, zero value otherwise. + +### GetAuditIdOk + +`func (o *ModelsSSLEndpointHistoryResponse) GetAuditIdOk() (*int64, bool)` + +GetAuditIdOk returns a tuple with the AuditId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuditId + +`func (o *ModelsSSLEndpointHistoryResponse) SetAuditId(v int64)` + +SetAuditId sets AuditId field to given value. + +### HasAuditId + +`func (o *ModelsSSLEndpointHistoryResponse) HasAuditId() bool` + +HasAuditId returns a boolean if a field has been set. + +### GetTimestamp + +`func (o *ModelsSSLEndpointHistoryResponse) GetTimestamp() time.Time` + +GetTimestamp returns the Timestamp field if non-nil, zero value otherwise. + +### GetTimestampOk + +`func (o *ModelsSSLEndpointHistoryResponse) GetTimestampOk() (*time.Time, bool)` + +GetTimestampOk returns a tuple with the Timestamp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimestamp + +`func (o *ModelsSSLEndpointHistoryResponse) SetTimestamp(v time.Time)` + +SetTimestamp sets Timestamp field to given value. + +### HasTimestamp + +`func (o *ModelsSSLEndpointHistoryResponse) HasTimestamp() bool` + +HasTimestamp returns a boolean if a field has been set. + +### GetStatus + +`func (o *ModelsSSLEndpointHistoryResponse) GetStatus() int32` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ModelsSSLEndpointHistoryResponse) GetStatusOk() (*int32, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ModelsSSLEndpointHistoryResponse) SetStatus(v int32)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ModelsSSLEndpointHistoryResponse) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetJobType + +`func (o *ModelsSSLEndpointHistoryResponse) GetJobType() int32` + +GetJobType returns the JobType field if non-nil, zero value otherwise. + +### GetJobTypeOk + +`func (o *ModelsSSLEndpointHistoryResponse) GetJobTypeOk() (*int32, bool)` + +GetJobTypeOk returns a tuple with the JobType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobType + +`func (o *ModelsSSLEndpointHistoryResponse) SetJobType(v int32)` + +SetJobType sets JobType field to given value. + +### HasJobType + +`func (o *ModelsSSLEndpointHistoryResponse) HasJobType() bool` + +HasJobType returns a boolean if a field has been set. + +### GetProbeType + +`func (o *ModelsSSLEndpointHistoryResponse) GetProbeType() int32` + +GetProbeType returns the ProbeType field if non-nil, zero value otherwise. + +### GetProbeTypeOk + +`func (o *ModelsSSLEndpointHistoryResponse) GetProbeTypeOk() (*int32, bool)` + +GetProbeTypeOk returns a tuple with the ProbeType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProbeType + +`func (o *ModelsSSLEndpointHistoryResponse) SetProbeType(v int32)` + +SetProbeType sets ProbeType field to given value. + +### HasProbeType + +`func (o *ModelsSSLEndpointHistoryResponse) HasProbeType() bool` + +HasProbeType returns a boolean if a field has been set. + +### GetReverseDNS + +`func (o *ModelsSSLEndpointHistoryResponse) GetReverseDNS() string` + +GetReverseDNS returns the ReverseDNS field if non-nil, zero value otherwise. + +### GetReverseDNSOk + +`func (o *ModelsSSLEndpointHistoryResponse) GetReverseDNSOk() (*string, bool)` + +GetReverseDNSOk returns a tuple with the ReverseDNS field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReverseDNS + +`func (o *ModelsSSLEndpointHistoryResponse) SetReverseDNS(v string)` + +SetReverseDNS sets ReverseDNS field to given value. + +### HasReverseDNS + +`func (o *ModelsSSLEndpointHistoryResponse) HasReverseDNS() bool` + +HasReverseDNS returns a boolean if a field has been set. + +### GetHistoryCertificates + +`func (o *ModelsSSLEndpointHistoryResponse) GetHistoryCertificates() []ModelsSSLEndpointHistoryResponseCertificateModel` + +GetHistoryCertificates returns the HistoryCertificates field if non-nil, zero value otherwise. + +### GetHistoryCertificatesOk + +`func (o *ModelsSSLEndpointHistoryResponse) GetHistoryCertificatesOk() (*[]ModelsSSLEndpointHistoryResponseCertificateModel, bool)` + +GetHistoryCertificatesOk returns a tuple with the HistoryCertificates field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHistoryCertificates + +`func (o *ModelsSSLEndpointHistoryResponse) SetHistoryCertificates(v []ModelsSSLEndpointHistoryResponseCertificateModel)` + +SetHistoryCertificates sets HistoryCertificates field to given value. + +### HasHistoryCertificates + +`func (o *ModelsSSLEndpointHistoryResponse) HasHistoryCertificates() bool` + +HasHistoryCertificates returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsSSLEndpointHistoryResponseCertificateModel.md b/v1/docs/ModelsSSLEndpointHistoryResponseCertificateModel.md new file mode 100644 index 0000000..6889ac0 --- /dev/null +++ b/v1/docs/ModelsSSLEndpointHistoryResponseCertificateModel.md @@ -0,0 +1,320 @@ +# ModelsSSLEndpointHistoryResponseCertificateModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**IssuedDN** | Pointer to **NullableString** | | [optional] +**SerialNumber** | Pointer to **string** | | [optional] +**NotBefore** | Pointer to **time.Time** | | [optional] +**NotAfter** | Pointer to **time.Time** | | [optional] +**SigningAlgorithm** | Pointer to **string** | | [optional] +**Thumbprint** | Pointer to **string** | | [optional] +**IssuerDN** | Pointer to **NullableString** | | [optional] +**IssuedCN** | Pointer to **NullableString** | | [optional] +**SubjectAltNameElements** | Pointer to [**[]ModelsSubjectAlternativeName**](ModelsSubjectAlternativeName.md) | | [optional] + +## Methods + +### NewModelsSSLEndpointHistoryResponseCertificateModel + +`func NewModelsSSLEndpointHistoryResponseCertificateModel() *ModelsSSLEndpointHistoryResponseCertificateModel` + +NewModelsSSLEndpointHistoryResponseCertificateModel instantiates a new ModelsSSLEndpointHistoryResponseCertificateModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsSSLEndpointHistoryResponseCertificateModelWithDefaults + +`func NewModelsSSLEndpointHistoryResponseCertificateModelWithDefaults() *ModelsSSLEndpointHistoryResponseCertificateModel` + +NewModelsSSLEndpointHistoryResponseCertificateModelWithDefaults instantiates a new ModelsSSLEndpointHistoryResponseCertificateModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsSSLEndpointHistoryResponseCertificateModel) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsSSLEndpointHistoryResponseCertificateModel) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsSSLEndpointHistoryResponseCertificateModel) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ModelsSSLEndpointHistoryResponseCertificateModel) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetIssuedDN + +`func (o *ModelsSSLEndpointHistoryResponseCertificateModel) GetIssuedDN() string` + +GetIssuedDN returns the IssuedDN field if non-nil, zero value otherwise. + +### GetIssuedDNOk + +`func (o *ModelsSSLEndpointHistoryResponseCertificateModel) GetIssuedDNOk() (*string, bool)` + +GetIssuedDNOk returns a tuple with the IssuedDN field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuedDN + +`func (o *ModelsSSLEndpointHistoryResponseCertificateModel) SetIssuedDN(v string)` + +SetIssuedDN sets IssuedDN field to given value. + +### HasIssuedDN + +`func (o *ModelsSSLEndpointHistoryResponseCertificateModel) HasIssuedDN() bool` + +HasIssuedDN returns a boolean if a field has been set. + +### SetIssuedDNNil + +`func (o *ModelsSSLEndpointHistoryResponseCertificateModel) SetIssuedDNNil(b bool)` + + SetIssuedDNNil sets the value for IssuedDN to be an explicit nil + +### UnsetIssuedDN +`func (o *ModelsSSLEndpointHistoryResponseCertificateModel) UnsetIssuedDN()` + +UnsetIssuedDN ensures that no value is present for IssuedDN, not even an explicit nil +### GetSerialNumber + +`func (o *ModelsSSLEndpointHistoryResponseCertificateModel) GetSerialNumber() string` + +GetSerialNumber returns the SerialNumber field if non-nil, zero value otherwise. + +### GetSerialNumberOk + +`func (o *ModelsSSLEndpointHistoryResponseCertificateModel) GetSerialNumberOk() (*string, bool)` + +GetSerialNumberOk returns a tuple with the SerialNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerialNumber + +`func (o *ModelsSSLEndpointHistoryResponseCertificateModel) SetSerialNumber(v string)` + +SetSerialNumber sets SerialNumber field to given value. + +### HasSerialNumber + +`func (o *ModelsSSLEndpointHistoryResponseCertificateModel) HasSerialNumber() bool` + +HasSerialNumber returns a boolean if a field has been set. + +### GetNotBefore + +`func (o *ModelsSSLEndpointHistoryResponseCertificateModel) GetNotBefore() time.Time` + +GetNotBefore returns the NotBefore field if non-nil, zero value otherwise. + +### GetNotBeforeOk + +`func (o *ModelsSSLEndpointHistoryResponseCertificateModel) GetNotBeforeOk() (*time.Time, bool)` + +GetNotBeforeOk returns a tuple with the NotBefore field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNotBefore + +`func (o *ModelsSSLEndpointHistoryResponseCertificateModel) SetNotBefore(v time.Time)` + +SetNotBefore sets NotBefore field to given value. + +### HasNotBefore + +`func (o *ModelsSSLEndpointHistoryResponseCertificateModel) HasNotBefore() bool` + +HasNotBefore returns a boolean if a field has been set. + +### GetNotAfter + +`func (o *ModelsSSLEndpointHistoryResponseCertificateModel) GetNotAfter() time.Time` + +GetNotAfter returns the NotAfter field if non-nil, zero value otherwise. + +### GetNotAfterOk + +`func (o *ModelsSSLEndpointHistoryResponseCertificateModel) GetNotAfterOk() (*time.Time, bool)` + +GetNotAfterOk returns a tuple with the NotAfter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNotAfter + +`func (o *ModelsSSLEndpointHistoryResponseCertificateModel) SetNotAfter(v time.Time)` + +SetNotAfter sets NotAfter field to given value. + +### HasNotAfter + +`func (o *ModelsSSLEndpointHistoryResponseCertificateModel) HasNotAfter() bool` + +HasNotAfter returns a boolean if a field has been set. + +### GetSigningAlgorithm + +`func (o *ModelsSSLEndpointHistoryResponseCertificateModel) GetSigningAlgorithm() string` + +GetSigningAlgorithm returns the SigningAlgorithm field if non-nil, zero value otherwise. + +### GetSigningAlgorithmOk + +`func (o *ModelsSSLEndpointHistoryResponseCertificateModel) GetSigningAlgorithmOk() (*string, bool)` + +GetSigningAlgorithmOk returns a tuple with the SigningAlgorithm field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSigningAlgorithm + +`func (o *ModelsSSLEndpointHistoryResponseCertificateModel) SetSigningAlgorithm(v string)` + +SetSigningAlgorithm sets SigningAlgorithm field to given value. + +### HasSigningAlgorithm + +`func (o *ModelsSSLEndpointHistoryResponseCertificateModel) HasSigningAlgorithm() bool` + +HasSigningAlgorithm returns a boolean if a field has been set. + +### GetThumbprint + +`func (o *ModelsSSLEndpointHistoryResponseCertificateModel) GetThumbprint() string` + +GetThumbprint returns the Thumbprint field if non-nil, zero value otherwise. + +### GetThumbprintOk + +`func (o *ModelsSSLEndpointHistoryResponseCertificateModel) GetThumbprintOk() (*string, bool)` + +GetThumbprintOk returns a tuple with the Thumbprint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThumbprint + +`func (o *ModelsSSLEndpointHistoryResponseCertificateModel) SetThumbprint(v string)` + +SetThumbprint sets Thumbprint field to given value. + +### HasThumbprint + +`func (o *ModelsSSLEndpointHistoryResponseCertificateModel) HasThumbprint() bool` + +HasThumbprint returns a boolean if a field has been set. + +### GetIssuerDN + +`func (o *ModelsSSLEndpointHistoryResponseCertificateModel) GetIssuerDN() string` + +GetIssuerDN returns the IssuerDN field if non-nil, zero value otherwise. + +### GetIssuerDNOk + +`func (o *ModelsSSLEndpointHistoryResponseCertificateModel) GetIssuerDNOk() (*string, bool)` + +GetIssuerDNOk returns a tuple with the IssuerDN field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuerDN + +`func (o *ModelsSSLEndpointHistoryResponseCertificateModel) SetIssuerDN(v string)` + +SetIssuerDN sets IssuerDN field to given value. + +### HasIssuerDN + +`func (o *ModelsSSLEndpointHistoryResponseCertificateModel) HasIssuerDN() bool` + +HasIssuerDN returns a boolean if a field has been set. + +### SetIssuerDNNil + +`func (o *ModelsSSLEndpointHistoryResponseCertificateModel) SetIssuerDNNil(b bool)` + + SetIssuerDNNil sets the value for IssuerDN to be an explicit nil + +### UnsetIssuerDN +`func (o *ModelsSSLEndpointHistoryResponseCertificateModel) UnsetIssuerDN()` + +UnsetIssuerDN ensures that no value is present for IssuerDN, not even an explicit nil +### GetIssuedCN + +`func (o *ModelsSSLEndpointHistoryResponseCertificateModel) GetIssuedCN() string` + +GetIssuedCN returns the IssuedCN field if non-nil, zero value otherwise. + +### GetIssuedCNOk + +`func (o *ModelsSSLEndpointHistoryResponseCertificateModel) GetIssuedCNOk() (*string, bool)` + +GetIssuedCNOk returns a tuple with the IssuedCN field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuedCN + +`func (o *ModelsSSLEndpointHistoryResponseCertificateModel) SetIssuedCN(v string)` + +SetIssuedCN sets IssuedCN field to given value. + +### HasIssuedCN + +`func (o *ModelsSSLEndpointHistoryResponseCertificateModel) HasIssuedCN() bool` + +HasIssuedCN returns a boolean if a field has been set. + +### SetIssuedCNNil + +`func (o *ModelsSSLEndpointHistoryResponseCertificateModel) SetIssuedCNNil(b bool)` + + SetIssuedCNNil sets the value for IssuedCN to be an explicit nil + +### UnsetIssuedCN +`func (o *ModelsSSLEndpointHistoryResponseCertificateModel) UnsetIssuedCN()` + +UnsetIssuedCN ensures that no value is present for IssuedCN, not even an explicit nil +### GetSubjectAltNameElements + +`func (o *ModelsSSLEndpointHistoryResponseCertificateModel) GetSubjectAltNameElements() []ModelsSubjectAlternativeName` + +GetSubjectAltNameElements returns the SubjectAltNameElements field if non-nil, zero value otherwise. + +### GetSubjectAltNameElementsOk + +`func (o *ModelsSSLEndpointHistoryResponseCertificateModel) GetSubjectAltNameElementsOk() (*[]ModelsSubjectAlternativeName, bool)` + +GetSubjectAltNameElementsOk returns a tuple with the SubjectAltNameElements field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubjectAltNameElements + +`func (o *ModelsSSLEndpointHistoryResponseCertificateModel) SetSubjectAltNameElements(v []ModelsSubjectAlternativeName)` + +SetSubjectAltNameElements sets SubjectAltNameElements field to given value. + +### HasSubjectAltNameElements + +`func (o *ModelsSSLEndpointHistoryResponseCertificateModel) HasSubjectAltNameElements() bool` + +HasSubjectAltNameElements returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsSSLEndpointStatusRequest.md b/v1/docs/ModelsSSLEndpointStatusRequest.md new file mode 100644 index 0000000..36b0f77 --- /dev/null +++ b/v1/docs/ModelsSSLEndpointStatusRequest.md @@ -0,0 +1,72 @@ +# ModelsSSLEndpointStatusRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | +**Status** | **bool** | | + +## Methods + +### NewModelsSSLEndpointStatusRequest + +`func NewModelsSSLEndpointStatusRequest(id string, status bool, ) *ModelsSSLEndpointStatusRequest` + +NewModelsSSLEndpointStatusRequest instantiates a new ModelsSSLEndpointStatusRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsSSLEndpointStatusRequestWithDefaults + +`func NewModelsSSLEndpointStatusRequestWithDefaults() *ModelsSSLEndpointStatusRequest` + +NewModelsSSLEndpointStatusRequestWithDefaults instantiates a new ModelsSSLEndpointStatusRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsSSLEndpointStatusRequest) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsSSLEndpointStatusRequest) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsSSLEndpointStatusRequest) SetId(v string)` + +SetId sets Id field to given value. + + +### GetStatus + +`func (o *ModelsSSLEndpointStatusRequest) GetStatus() bool` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ModelsSSLEndpointStatusRequest) GetStatusOk() (*bool, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ModelsSSLEndpointStatusRequest) SetStatus(v bool)` + +SetStatus sets Status field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsSSLImmediateSslScanRequest.md b/v1/docs/ModelsSSLImmediateSslScanRequest.md new file mode 100644 index 0000000..fb8a06c --- /dev/null +++ b/v1/docs/ModelsSSLImmediateSslScanRequest.md @@ -0,0 +1,72 @@ +# ModelsSSLImmediateSslScanRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Discovery** | **bool** | | +**Monitoring** | **bool** | | + +## Methods + +### NewModelsSSLImmediateSslScanRequest + +`func NewModelsSSLImmediateSslScanRequest(discovery bool, monitoring bool, ) *ModelsSSLImmediateSslScanRequest` + +NewModelsSSLImmediateSslScanRequest instantiates a new ModelsSSLImmediateSslScanRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsSSLImmediateSslScanRequestWithDefaults + +`func NewModelsSSLImmediateSslScanRequestWithDefaults() *ModelsSSLImmediateSslScanRequest` + +NewModelsSSLImmediateSslScanRequestWithDefaults instantiates a new ModelsSSLImmediateSslScanRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDiscovery + +`func (o *ModelsSSLImmediateSslScanRequest) GetDiscovery() bool` + +GetDiscovery returns the Discovery field if non-nil, zero value otherwise. + +### GetDiscoveryOk + +`func (o *ModelsSSLImmediateSslScanRequest) GetDiscoveryOk() (*bool, bool)` + +GetDiscoveryOk returns a tuple with the Discovery field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiscovery + +`func (o *ModelsSSLImmediateSslScanRequest) SetDiscovery(v bool)` + +SetDiscovery sets Discovery field to given value. + + +### GetMonitoring + +`func (o *ModelsSSLImmediateSslScanRequest) GetMonitoring() bool` + +GetMonitoring returns the Monitoring field if non-nil, zero value otherwise. + +### GetMonitoringOk + +`func (o *ModelsSSLImmediateSslScanRequest) GetMonitoringOk() (*bool, bool)` + +GetMonitoringOk returns a tuple with the Monitoring field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonitoring + +`func (o *ModelsSSLImmediateSslScanRequest) SetMonitoring(v bool)` + +SetMonitoring sets Monitoring field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsSSLNetworkDefinition.md b/v1/docs/ModelsSSLNetworkDefinition.md new file mode 100644 index 0000000..e121fca --- /dev/null +++ b/v1/docs/ModelsSSLNetworkDefinition.md @@ -0,0 +1,82 @@ +# ModelsSSLNetworkDefinition + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ItemType** | Pointer to **int32** | | [optional] +**Value** | Pointer to **string** | | [optional] + +## Methods + +### NewModelsSSLNetworkDefinition + +`func NewModelsSSLNetworkDefinition() *ModelsSSLNetworkDefinition` + +NewModelsSSLNetworkDefinition instantiates a new ModelsSSLNetworkDefinition object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsSSLNetworkDefinitionWithDefaults + +`func NewModelsSSLNetworkDefinitionWithDefaults() *ModelsSSLNetworkDefinition` + +NewModelsSSLNetworkDefinitionWithDefaults instantiates a new ModelsSSLNetworkDefinition object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetItemType + +`func (o *ModelsSSLNetworkDefinition) GetItemType() int32` + +GetItemType returns the ItemType field if non-nil, zero value otherwise. + +### GetItemTypeOk + +`func (o *ModelsSSLNetworkDefinition) GetItemTypeOk() (*int32, bool)` + +GetItemTypeOk returns a tuple with the ItemType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItemType + +`func (o *ModelsSSLNetworkDefinition) SetItemType(v int32)` + +SetItemType sets ItemType field to given value. + +### HasItemType + +`func (o *ModelsSSLNetworkDefinition) HasItemType() bool` + +HasItemType returns a boolean if a field has been set. + +### GetValue + +`func (o *ModelsSSLNetworkDefinition) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *ModelsSSLNetworkDefinition) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *ModelsSSLNetworkDefinition) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *ModelsSSLNetworkDefinition) HasValue() bool` + +HasValue returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsSSLNetworkRangesRequest.md b/v1/docs/ModelsSSLNetworkRangesRequest.md new file mode 100644 index 0000000..b6a6865 --- /dev/null +++ b/v1/docs/ModelsSSLNetworkRangesRequest.md @@ -0,0 +1,72 @@ +# ModelsSSLNetworkRangesRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NetworkId** | **string** | | +**Ranges** | **[]string** | | + +## Methods + +### NewModelsSSLNetworkRangesRequest + +`func NewModelsSSLNetworkRangesRequest(networkId string, ranges []string, ) *ModelsSSLNetworkRangesRequest` + +NewModelsSSLNetworkRangesRequest instantiates a new ModelsSSLNetworkRangesRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsSSLNetworkRangesRequestWithDefaults + +`func NewModelsSSLNetworkRangesRequestWithDefaults() *ModelsSSLNetworkRangesRequest` + +NewModelsSSLNetworkRangesRequestWithDefaults instantiates a new ModelsSSLNetworkRangesRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetNetworkId + +`func (o *ModelsSSLNetworkRangesRequest) GetNetworkId() string` + +GetNetworkId returns the NetworkId field if non-nil, zero value otherwise. + +### GetNetworkIdOk + +`func (o *ModelsSSLNetworkRangesRequest) GetNetworkIdOk() (*string, bool)` + +GetNetworkIdOk returns a tuple with the NetworkId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNetworkId + +`func (o *ModelsSSLNetworkRangesRequest) SetNetworkId(v string)` + +SetNetworkId sets NetworkId field to given value. + + +### GetRanges + +`func (o *ModelsSSLNetworkRangesRequest) GetRanges() []string` + +GetRanges returns the Ranges field if non-nil, zero value otherwise. + +### GetRangesOk + +`func (o *ModelsSSLNetworkRangesRequest) GetRangesOk() (*[]string, bool)` + +GetRangesOk returns a tuple with the Ranges field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRanges + +`func (o *ModelsSSLNetworkRangesRequest) SetRanges(v []string)` + +SetRanges sets Ranges field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsSSLScanJobPart.md b/v1/docs/ModelsSSLScanJobPart.md new file mode 100644 index 0000000..702e155 --- /dev/null +++ b/v1/docs/ModelsSSLScanJobPart.md @@ -0,0 +1,472 @@ +# ModelsSSLScanJobPart + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ScanJobPartId** | Pointer to **string** | | [optional] +**LogicalScanJobId** | Pointer to **string** | | [optional] +**AgentJobId** | Pointer to **string** | | [optional] +**EstimatedEndpointCount** | Pointer to **int32** | | [optional] +**Status** | Pointer to **int32** | | [optional] +**StatTotalEndpointCount** | Pointer to **int32** | | [optional] +**StatTimedOutConnectingCount** | Pointer to **int32** | | [optional] +**StatConnectionRefusedCount** | Pointer to **int32** | | [optional] +**StatTimedOutDownloadingCount** | Pointer to **int32** | | [optional] +**StatExceptionDownloadingCount** | Pointer to **int32** | | [optional] +**StatNotSslCount** | Pointer to **int32** | | [optional] +**StatBadSslHandshakeCount** | Pointer to **int32** | | [optional] +**StatCertificateFoundCount** | Pointer to **int32** | | [optional] +**StatNoCertificateCount** | Pointer to **int32** | | [optional] +**ScanJobPartDefinitions** | Pointer to [**[]ModelsSSLScanJobPartDefinition**](ModelsSSLScanJobPartDefinition.md) | | [optional] +**StartTime** | Pointer to **time.Time** | | [optional] +**EndTime** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewModelsSSLScanJobPart + +`func NewModelsSSLScanJobPart() *ModelsSSLScanJobPart` + +NewModelsSSLScanJobPart instantiates a new ModelsSSLScanJobPart object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsSSLScanJobPartWithDefaults + +`func NewModelsSSLScanJobPartWithDefaults() *ModelsSSLScanJobPart` + +NewModelsSSLScanJobPartWithDefaults instantiates a new ModelsSSLScanJobPart object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetScanJobPartId + +`func (o *ModelsSSLScanJobPart) GetScanJobPartId() string` + +GetScanJobPartId returns the ScanJobPartId field if non-nil, zero value otherwise. + +### GetScanJobPartIdOk + +`func (o *ModelsSSLScanJobPart) GetScanJobPartIdOk() (*string, bool)` + +GetScanJobPartIdOk returns a tuple with the ScanJobPartId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScanJobPartId + +`func (o *ModelsSSLScanJobPart) SetScanJobPartId(v string)` + +SetScanJobPartId sets ScanJobPartId field to given value. + +### HasScanJobPartId + +`func (o *ModelsSSLScanJobPart) HasScanJobPartId() bool` + +HasScanJobPartId returns a boolean if a field has been set. + +### GetLogicalScanJobId + +`func (o *ModelsSSLScanJobPart) GetLogicalScanJobId() string` + +GetLogicalScanJobId returns the LogicalScanJobId field if non-nil, zero value otherwise. + +### GetLogicalScanJobIdOk + +`func (o *ModelsSSLScanJobPart) GetLogicalScanJobIdOk() (*string, bool)` + +GetLogicalScanJobIdOk returns a tuple with the LogicalScanJobId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogicalScanJobId + +`func (o *ModelsSSLScanJobPart) SetLogicalScanJobId(v string)` + +SetLogicalScanJobId sets LogicalScanJobId field to given value. + +### HasLogicalScanJobId + +`func (o *ModelsSSLScanJobPart) HasLogicalScanJobId() bool` + +HasLogicalScanJobId returns a boolean if a field has been set. + +### GetAgentJobId + +`func (o *ModelsSSLScanJobPart) GetAgentJobId() string` + +GetAgentJobId returns the AgentJobId field if non-nil, zero value otherwise. + +### GetAgentJobIdOk + +`func (o *ModelsSSLScanJobPart) GetAgentJobIdOk() (*string, bool)` + +GetAgentJobIdOk returns a tuple with the AgentJobId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentJobId + +`func (o *ModelsSSLScanJobPart) SetAgentJobId(v string)` + +SetAgentJobId sets AgentJobId field to given value. + +### HasAgentJobId + +`func (o *ModelsSSLScanJobPart) HasAgentJobId() bool` + +HasAgentJobId returns a boolean if a field has been set. + +### GetEstimatedEndpointCount + +`func (o *ModelsSSLScanJobPart) GetEstimatedEndpointCount() int32` + +GetEstimatedEndpointCount returns the EstimatedEndpointCount field if non-nil, zero value otherwise. + +### GetEstimatedEndpointCountOk + +`func (o *ModelsSSLScanJobPart) GetEstimatedEndpointCountOk() (*int32, bool)` + +GetEstimatedEndpointCountOk returns a tuple with the EstimatedEndpointCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEstimatedEndpointCount + +`func (o *ModelsSSLScanJobPart) SetEstimatedEndpointCount(v int32)` + +SetEstimatedEndpointCount sets EstimatedEndpointCount field to given value. + +### HasEstimatedEndpointCount + +`func (o *ModelsSSLScanJobPart) HasEstimatedEndpointCount() bool` + +HasEstimatedEndpointCount returns a boolean if a field has been set. + +### GetStatus + +`func (o *ModelsSSLScanJobPart) GetStatus() int32` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ModelsSSLScanJobPart) GetStatusOk() (*int32, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ModelsSSLScanJobPart) SetStatus(v int32)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ModelsSSLScanJobPart) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetStatTotalEndpointCount + +`func (o *ModelsSSLScanJobPart) GetStatTotalEndpointCount() int32` + +GetStatTotalEndpointCount returns the StatTotalEndpointCount field if non-nil, zero value otherwise. + +### GetStatTotalEndpointCountOk + +`func (o *ModelsSSLScanJobPart) GetStatTotalEndpointCountOk() (*int32, bool)` + +GetStatTotalEndpointCountOk returns a tuple with the StatTotalEndpointCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatTotalEndpointCount + +`func (o *ModelsSSLScanJobPart) SetStatTotalEndpointCount(v int32)` + +SetStatTotalEndpointCount sets StatTotalEndpointCount field to given value. + +### HasStatTotalEndpointCount + +`func (o *ModelsSSLScanJobPart) HasStatTotalEndpointCount() bool` + +HasStatTotalEndpointCount returns a boolean if a field has been set. + +### GetStatTimedOutConnectingCount + +`func (o *ModelsSSLScanJobPart) GetStatTimedOutConnectingCount() int32` + +GetStatTimedOutConnectingCount returns the StatTimedOutConnectingCount field if non-nil, zero value otherwise. + +### GetStatTimedOutConnectingCountOk + +`func (o *ModelsSSLScanJobPart) GetStatTimedOutConnectingCountOk() (*int32, bool)` + +GetStatTimedOutConnectingCountOk returns a tuple with the StatTimedOutConnectingCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatTimedOutConnectingCount + +`func (o *ModelsSSLScanJobPart) SetStatTimedOutConnectingCount(v int32)` + +SetStatTimedOutConnectingCount sets StatTimedOutConnectingCount field to given value. + +### HasStatTimedOutConnectingCount + +`func (o *ModelsSSLScanJobPart) HasStatTimedOutConnectingCount() bool` + +HasStatTimedOutConnectingCount returns a boolean if a field has been set. + +### GetStatConnectionRefusedCount + +`func (o *ModelsSSLScanJobPart) GetStatConnectionRefusedCount() int32` + +GetStatConnectionRefusedCount returns the StatConnectionRefusedCount field if non-nil, zero value otherwise. + +### GetStatConnectionRefusedCountOk + +`func (o *ModelsSSLScanJobPart) GetStatConnectionRefusedCountOk() (*int32, bool)` + +GetStatConnectionRefusedCountOk returns a tuple with the StatConnectionRefusedCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatConnectionRefusedCount + +`func (o *ModelsSSLScanJobPart) SetStatConnectionRefusedCount(v int32)` + +SetStatConnectionRefusedCount sets StatConnectionRefusedCount field to given value. + +### HasStatConnectionRefusedCount + +`func (o *ModelsSSLScanJobPart) HasStatConnectionRefusedCount() bool` + +HasStatConnectionRefusedCount returns a boolean if a field has been set. + +### GetStatTimedOutDownloadingCount + +`func (o *ModelsSSLScanJobPart) GetStatTimedOutDownloadingCount() int32` + +GetStatTimedOutDownloadingCount returns the StatTimedOutDownloadingCount field if non-nil, zero value otherwise. + +### GetStatTimedOutDownloadingCountOk + +`func (o *ModelsSSLScanJobPart) GetStatTimedOutDownloadingCountOk() (*int32, bool)` + +GetStatTimedOutDownloadingCountOk returns a tuple with the StatTimedOutDownloadingCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatTimedOutDownloadingCount + +`func (o *ModelsSSLScanJobPart) SetStatTimedOutDownloadingCount(v int32)` + +SetStatTimedOutDownloadingCount sets StatTimedOutDownloadingCount field to given value. + +### HasStatTimedOutDownloadingCount + +`func (o *ModelsSSLScanJobPart) HasStatTimedOutDownloadingCount() bool` + +HasStatTimedOutDownloadingCount returns a boolean if a field has been set. + +### GetStatExceptionDownloadingCount + +`func (o *ModelsSSLScanJobPart) GetStatExceptionDownloadingCount() int32` + +GetStatExceptionDownloadingCount returns the StatExceptionDownloadingCount field if non-nil, zero value otherwise. + +### GetStatExceptionDownloadingCountOk + +`func (o *ModelsSSLScanJobPart) GetStatExceptionDownloadingCountOk() (*int32, bool)` + +GetStatExceptionDownloadingCountOk returns a tuple with the StatExceptionDownloadingCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatExceptionDownloadingCount + +`func (o *ModelsSSLScanJobPart) SetStatExceptionDownloadingCount(v int32)` + +SetStatExceptionDownloadingCount sets StatExceptionDownloadingCount field to given value. + +### HasStatExceptionDownloadingCount + +`func (o *ModelsSSLScanJobPart) HasStatExceptionDownloadingCount() bool` + +HasStatExceptionDownloadingCount returns a boolean if a field has been set. + +### GetStatNotSslCount + +`func (o *ModelsSSLScanJobPart) GetStatNotSslCount() int32` + +GetStatNotSslCount returns the StatNotSslCount field if non-nil, zero value otherwise. + +### GetStatNotSslCountOk + +`func (o *ModelsSSLScanJobPart) GetStatNotSslCountOk() (*int32, bool)` + +GetStatNotSslCountOk returns a tuple with the StatNotSslCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatNotSslCount + +`func (o *ModelsSSLScanJobPart) SetStatNotSslCount(v int32)` + +SetStatNotSslCount sets StatNotSslCount field to given value. + +### HasStatNotSslCount + +`func (o *ModelsSSLScanJobPart) HasStatNotSslCount() bool` + +HasStatNotSslCount returns a boolean if a field has been set. + +### GetStatBadSslHandshakeCount + +`func (o *ModelsSSLScanJobPart) GetStatBadSslHandshakeCount() int32` + +GetStatBadSslHandshakeCount returns the StatBadSslHandshakeCount field if non-nil, zero value otherwise. + +### GetStatBadSslHandshakeCountOk + +`func (o *ModelsSSLScanJobPart) GetStatBadSslHandshakeCountOk() (*int32, bool)` + +GetStatBadSslHandshakeCountOk returns a tuple with the StatBadSslHandshakeCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatBadSslHandshakeCount + +`func (o *ModelsSSLScanJobPart) SetStatBadSslHandshakeCount(v int32)` + +SetStatBadSslHandshakeCount sets StatBadSslHandshakeCount field to given value. + +### HasStatBadSslHandshakeCount + +`func (o *ModelsSSLScanJobPart) HasStatBadSslHandshakeCount() bool` + +HasStatBadSslHandshakeCount returns a boolean if a field has been set. + +### GetStatCertificateFoundCount + +`func (o *ModelsSSLScanJobPart) GetStatCertificateFoundCount() int32` + +GetStatCertificateFoundCount returns the StatCertificateFoundCount field if non-nil, zero value otherwise. + +### GetStatCertificateFoundCountOk + +`func (o *ModelsSSLScanJobPart) GetStatCertificateFoundCountOk() (*int32, bool)` + +GetStatCertificateFoundCountOk returns a tuple with the StatCertificateFoundCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatCertificateFoundCount + +`func (o *ModelsSSLScanJobPart) SetStatCertificateFoundCount(v int32)` + +SetStatCertificateFoundCount sets StatCertificateFoundCount field to given value. + +### HasStatCertificateFoundCount + +`func (o *ModelsSSLScanJobPart) HasStatCertificateFoundCount() bool` + +HasStatCertificateFoundCount returns a boolean if a field has been set. + +### GetStatNoCertificateCount + +`func (o *ModelsSSLScanJobPart) GetStatNoCertificateCount() int32` + +GetStatNoCertificateCount returns the StatNoCertificateCount field if non-nil, zero value otherwise. + +### GetStatNoCertificateCountOk + +`func (o *ModelsSSLScanJobPart) GetStatNoCertificateCountOk() (*int32, bool)` + +GetStatNoCertificateCountOk returns a tuple with the StatNoCertificateCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatNoCertificateCount + +`func (o *ModelsSSLScanJobPart) SetStatNoCertificateCount(v int32)` + +SetStatNoCertificateCount sets StatNoCertificateCount field to given value. + +### HasStatNoCertificateCount + +`func (o *ModelsSSLScanJobPart) HasStatNoCertificateCount() bool` + +HasStatNoCertificateCount returns a boolean if a field has been set. + +### GetScanJobPartDefinitions + +`func (o *ModelsSSLScanJobPart) GetScanJobPartDefinitions() []ModelsSSLScanJobPartDefinition` + +GetScanJobPartDefinitions returns the ScanJobPartDefinitions field if non-nil, zero value otherwise. + +### GetScanJobPartDefinitionsOk + +`func (o *ModelsSSLScanJobPart) GetScanJobPartDefinitionsOk() (*[]ModelsSSLScanJobPartDefinition, bool)` + +GetScanJobPartDefinitionsOk returns a tuple with the ScanJobPartDefinitions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScanJobPartDefinitions + +`func (o *ModelsSSLScanJobPart) SetScanJobPartDefinitions(v []ModelsSSLScanJobPartDefinition)` + +SetScanJobPartDefinitions sets ScanJobPartDefinitions field to given value. + +### HasScanJobPartDefinitions + +`func (o *ModelsSSLScanJobPart) HasScanJobPartDefinitions() bool` + +HasScanJobPartDefinitions returns a boolean if a field has been set. + +### GetStartTime + +`func (o *ModelsSSLScanJobPart) GetStartTime() time.Time` + +GetStartTime returns the StartTime field if non-nil, zero value otherwise. + +### GetStartTimeOk + +`func (o *ModelsSSLScanJobPart) GetStartTimeOk() (*time.Time, bool)` + +GetStartTimeOk returns a tuple with the StartTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartTime + +`func (o *ModelsSSLScanJobPart) SetStartTime(v time.Time)` + +SetStartTime sets StartTime field to given value. + +### HasStartTime + +`func (o *ModelsSSLScanJobPart) HasStartTime() bool` + +HasStartTime returns a boolean if a field has been set. + +### GetEndTime + +`func (o *ModelsSSLScanJobPart) GetEndTime() time.Time` + +GetEndTime returns the EndTime field if non-nil, zero value otherwise. + +### GetEndTimeOk + +`func (o *ModelsSSLScanJobPart) GetEndTimeOk() (*time.Time, bool)` + +GetEndTimeOk returns a tuple with the EndTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndTime + +`func (o *ModelsSSLScanJobPart) SetEndTime(v time.Time)` + +SetEndTime sets EndTime field to given value. + +### HasEndTime + +`func (o *ModelsSSLScanJobPart) HasEndTime() bool` + +HasEndTime returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsSSLScanJobPartDefinition.md b/v1/docs/ModelsSSLScanJobPartDefinition.md new file mode 100644 index 0000000..cd70d55 --- /dev/null +++ b/v1/docs/ModelsSSLScanJobPartDefinition.md @@ -0,0 +1,82 @@ +# ModelsSSLScanJobPartDefinition + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ItemType** | Pointer to **int32** | | [optional] +**Value** | Pointer to **string** | | [optional] + +## Methods + +### NewModelsSSLScanJobPartDefinition + +`func NewModelsSSLScanJobPartDefinition() *ModelsSSLScanJobPartDefinition` + +NewModelsSSLScanJobPartDefinition instantiates a new ModelsSSLScanJobPartDefinition object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsSSLScanJobPartDefinitionWithDefaults + +`func NewModelsSSLScanJobPartDefinitionWithDefaults() *ModelsSSLScanJobPartDefinition` + +NewModelsSSLScanJobPartDefinitionWithDefaults instantiates a new ModelsSSLScanJobPartDefinition object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetItemType + +`func (o *ModelsSSLScanJobPartDefinition) GetItemType() int32` + +GetItemType returns the ItemType field if non-nil, zero value otherwise. + +### GetItemTypeOk + +`func (o *ModelsSSLScanJobPartDefinition) GetItemTypeOk() (*int32, bool)` + +GetItemTypeOk returns a tuple with the ItemType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItemType + +`func (o *ModelsSSLScanJobPartDefinition) SetItemType(v int32)` + +SetItemType sets ItemType field to given value. + +### HasItemType + +`func (o *ModelsSSLScanJobPartDefinition) HasItemType() bool` + +HasItemType returns a boolean if a field has been set. + +### GetValue + +`func (o *ModelsSSLScanJobPartDefinition) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *ModelsSSLScanJobPartDefinition) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *ModelsSSLScanJobPartDefinition) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *ModelsSSLScanJobPartDefinition) HasValue() bool` + +HasValue returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsSSLSslScanResult.md b/v1/docs/ModelsSSLSslScanResult.md new file mode 100644 index 0000000..26dde5f --- /dev/null +++ b/v1/docs/ModelsSSLSslScanResult.md @@ -0,0 +1,316 @@ +# ModelsSSLSslScanResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EndpointId** | Pointer to **string** | | [optional] +**ReverseDNS** | Pointer to **string** | | [optional] +**SNIName** | Pointer to **string** | | [optional] +**IpAddress** | Pointer to **string** | | [optional] +**Port** | Pointer to **int32** | | [optional] +**CertificateFound** | Pointer to **bool** | | [optional] +**AgentPoolName** | Pointer to **string** | | [optional] +**NetworkName** | Pointer to **string** | | [optional] +**MonitorStatus** | Pointer to **bool** | | [optional] +**CertificateCN** | Pointer to **string** | | [optional] +**Reviewed** | Pointer to **bool** | | [optional] + +## Methods + +### NewModelsSSLSslScanResult + +`func NewModelsSSLSslScanResult() *ModelsSSLSslScanResult` + +NewModelsSSLSslScanResult instantiates a new ModelsSSLSslScanResult object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsSSLSslScanResultWithDefaults + +`func NewModelsSSLSslScanResultWithDefaults() *ModelsSSLSslScanResult` + +NewModelsSSLSslScanResultWithDefaults instantiates a new ModelsSSLSslScanResult object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEndpointId + +`func (o *ModelsSSLSslScanResult) GetEndpointId() string` + +GetEndpointId returns the EndpointId field if non-nil, zero value otherwise. + +### GetEndpointIdOk + +`func (o *ModelsSSLSslScanResult) GetEndpointIdOk() (*string, bool)` + +GetEndpointIdOk returns a tuple with the EndpointId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndpointId + +`func (o *ModelsSSLSslScanResult) SetEndpointId(v string)` + +SetEndpointId sets EndpointId field to given value. + +### HasEndpointId + +`func (o *ModelsSSLSslScanResult) HasEndpointId() bool` + +HasEndpointId returns a boolean if a field has been set. + +### GetReverseDNS + +`func (o *ModelsSSLSslScanResult) GetReverseDNS() string` + +GetReverseDNS returns the ReverseDNS field if non-nil, zero value otherwise. + +### GetReverseDNSOk + +`func (o *ModelsSSLSslScanResult) GetReverseDNSOk() (*string, bool)` + +GetReverseDNSOk returns a tuple with the ReverseDNS field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReverseDNS + +`func (o *ModelsSSLSslScanResult) SetReverseDNS(v string)` + +SetReverseDNS sets ReverseDNS field to given value. + +### HasReverseDNS + +`func (o *ModelsSSLSslScanResult) HasReverseDNS() bool` + +HasReverseDNS returns a boolean if a field has been set. + +### GetSNIName + +`func (o *ModelsSSLSslScanResult) GetSNIName() string` + +GetSNIName returns the SNIName field if non-nil, zero value otherwise. + +### GetSNINameOk + +`func (o *ModelsSSLSslScanResult) GetSNINameOk() (*string, bool)` + +GetSNINameOk returns a tuple with the SNIName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSNIName + +`func (o *ModelsSSLSslScanResult) SetSNIName(v string)` + +SetSNIName sets SNIName field to given value. + +### HasSNIName + +`func (o *ModelsSSLSslScanResult) HasSNIName() bool` + +HasSNIName returns a boolean if a field has been set. + +### GetIpAddress + +`func (o *ModelsSSLSslScanResult) GetIpAddress() string` + +GetIpAddress returns the IpAddress field if non-nil, zero value otherwise. + +### GetIpAddressOk + +`func (o *ModelsSSLSslScanResult) GetIpAddressOk() (*string, bool)` + +GetIpAddressOk returns a tuple with the IpAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpAddress + +`func (o *ModelsSSLSslScanResult) SetIpAddress(v string)` + +SetIpAddress sets IpAddress field to given value. + +### HasIpAddress + +`func (o *ModelsSSLSslScanResult) HasIpAddress() bool` + +HasIpAddress returns a boolean if a field has been set. + +### GetPort + +`func (o *ModelsSSLSslScanResult) GetPort() int32` + +GetPort returns the Port field if non-nil, zero value otherwise. + +### GetPortOk + +`func (o *ModelsSSLSslScanResult) GetPortOk() (*int32, bool)` + +GetPortOk returns a tuple with the Port field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPort + +`func (o *ModelsSSLSslScanResult) SetPort(v int32)` + +SetPort sets Port field to given value. + +### HasPort + +`func (o *ModelsSSLSslScanResult) HasPort() bool` + +HasPort returns a boolean if a field has been set. + +### GetCertificateFound + +`func (o *ModelsSSLSslScanResult) GetCertificateFound() bool` + +GetCertificateFound returns the CertificateFound field if non-nil, zero value otherwise. + +### GetCertificateFoundOk + +`func (o *ModelsSSLSslScanResult) GetCertificateFoundOk() (*bool, bool)` + +GetCertificateFoundOk returns a tuple with the CertificateFound field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateFound + +`func (o *ModelsSSLSslScanResult) SetCertificateFound(v bool)` + +SetCertificateFound sets CertificateFound field to given value. + +### HasCertificateFound + +`func (o *ModelsSSLSslScanResult) HasCertificateFound() bool` + +HasCertificateFound returns a boolean if a field has been set. + +### GetAgentPoolName + +`func (o *ModelsSSLSslScanResult) GetAgentPoolName() string` + +GetAgentPoolName returns the AgentPoolName field if non-nil, zero value otherwise. + +### GetAgentPoolNameOk + +`func (o *ModelsSSLSslScanResult) GetAgentPoolNameOk() (*string, bool)` + +GetAgentPoolNameOk returns a tuple with the AgentPoolName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentPoolName + +`func (o *ModelsSSLSslScanResult) SetAgentPoolName(v string)` + +SetAgentPoolName sets AgentPoolName field to given value. + +### HasAgentPoolName + +`func (o *ModelsSSLSslScanResult) HasAgentPoolName() bool` + +HasAgentPoolName returns a boolean if a field has been set. + +### GetNetworkName + +`func (o *ModelsSSLSslScanResult) GetNetworkName() string` + +GetNetworkName returns the NetworkName field if non-nil, zero value otherwise. + +### GetNetworkNameOk + +`func (o *ModelsSSLSslScanResult) GetNetworkNameOk() (*string, bool)` + +GetNetworkNameOk returns a tuple with the NetworkName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNetworkName + +`func (o *ModelsSSLSslScanResult) SetNetworkName(v string)` + +SetNetworkName sets NetworkName field to given value. + +### HasNetworkName + +`func (o *ModelsSSLSslScanResult) HasNetworkName() bool` + +HasNetworkName returns a boolean if a field has been set. + +### GetMonitorStatus + +`func (o *ModelsSSLSslScanResult) GetMonitorStatus() bool` + +GetMonitorStatus returns the MonitorStatus field if non-nil, zero value otherwise. + +### GetMonitorStatusOk + +`func (o *ModelsSSLSslScanResult) GetMonitorStatusOk() (*bool, bool)` + +GetMonitorStatusOk returns a tuple with the MonitorStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonitorStatus + +`func (o *ModelsSSLSslScanResult) SetMonitorStatus(v bool)` + +SetMonitorStatus sets MonitorStatus field to given value. + +### HasMonitorStatus + +`func (o *ModelsSSLSslScanResult) HasMonitorStatus() bool` + +HasMonitorStatus returns a boolean if a field has been set. + +### GetCertificateCN + +`func (o *ModelsSSLSslScanResult) GetCertificateCN() string` + +GetCertificateCN returns the CertificateCN field if non-nil, zero value otherwise. + +### GetCertificateCNOk + +`func (o *ModelsSSLSslScanResult) GetCertificateCNOk() (*string, bool)` + +GetCertificateCNOk returns a tuple with the CertificateCN field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateCN + +`func (o *ModelsSSLSslScanResult) SetCertificateCN(v string)` + +SetCertificateCN sets CertificateCN field to given value. + +### HasCertificateCN + +`func (o *ModelsSSLSslScanResult) HasCertificateCN() bool` + +HasCertificateCN returns a boolean if a field has been set. + +### GetReviewed + +`func (o *ModelsSSLSslScanResult) GetReviewed() bool` + +GetReviewed returns the Reviewed field if non-nil, zero value otherwise. + +### GetReviewedOk + +`func (o *ModelsSSLSslScanResult) GetReviewedOk() (*bool, bool)` + +GetReviewedOk returns a tuple with the Reviewed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReviewed + +`func (o *ModelsSSLSslScanResult) SetReviewed(v bool)` + +SetReviewed sets Reviewed field to given value. + +### HasReviewed + +`func (o *ModelsSSLSslScanResult) HasReviewed() bool` + +HasReviewed returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsSecurityCertificatePermissions.md b/v1/docs/ModelsSecurityCertificatePermissions.md new file mode 100644 index 0000000..5a00e47 --- /dev/null +++ b/v1/docs/ModelsSecurityCertificatePermissions.md @@ -0,0 +1,56 @@ +# ModelsSecurityCertificatePermissions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Roles** | Pointer to [**[]ModelsSecuritySecurityRolesSecurityRoleResponseBase**](ModelsSecuritySecurityRolesSecurityRoleResponseBase.md) | | [optional] + +## Methods + +### NewModelsSecurityCertificatePermissions + +`func NewModelsSecurityCertificatePermissions() *ModelsSecurityCertificatePermissions` + +NewModelsSecurityCertificatePermissions instantiates a new ModelsSecurityCertificatePermissions object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsSecurityCertificatePermissionsWithDefaults + +`func NewModelsSecurityCertificatePermissionsWithDefaults() *ModelsSecurityCertificatePermissions` + +NewModelsSecurityCertificatePermissionsWithDefaults instantiates a new ModelsSecurityCertificatePermissions object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRoles + +`func (o *ModelsSecurityCertificatePermissions) GetRoles() []ModelsSecuritySecurityRolesSecurityRoleResponseBase` + +GetRoles returns the Roles field if non-nil, zero value otherwise. + +### GetRolesOk + +`func (o *ModelsSecurityCertificatePermissions) GetRolesOk() (*[]ModelsSecuritySecurityRolesSecurityRoleResponseBase, bool)` + +GetRolesOk returns a tuple with the Roles field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoles + +`func (o *ModelsSecurityCertificatePermissions) SetRoles(v []ModelsSecuritySecurityRolesSecurityRoleResponseBase)` + +SetRoles sets Roles field to given value. + +### HasRoles + +`func (o *ModelsSecurityCertificatePermissions) HasRoles() bool` + +HasRoles returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsSecurityIdentitiesPermissionRolesPairResponse.md b/v1/docs/ModelsSecurityIdentitiesPermissionRolesPairResponse.md new file mode 100644 index 0000000..a3418a6 --- /dev/null +++ b/v1/docs/ModelsSecurityIdentitiesPermissionRolesPairResponse.md @@ -0,0 +1,82 @@ +# ModelsSecurityIdentitiesPermissionRolesPairResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Permission** | Pointer to **string** | | [optional] +**GrantedByRoles** | Pointer to **[]string** | | [optional] + +## Methods + +### NewModelsSecurityIdentitiesPermissionRolesPairResponse + +`func NewModelsSecurityIdentitiesPermissionRolesPairResponse() *ModelsSecurityIdentitiesPermissionRolesPairResponse` + +NewModelsSecurityIdentitiesPermissionRolesPairResponse instantiates a new ModelsSecurityIdentitiesPermissionRolesPairResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsSecurityIdentitiesPermissionRolesPairResponseWithDefaults + +`func NewModelsSecurityIdentitiesPermissionRolesPairResponseWithDefaults() *ModelsSecurityIdentitiesPermissionRolesPairResponse` + +NewModelsSecurityIdentitiesPermissionRolesPairResponseWithDefaults instantiates a new ModelsSecurityIdentitiesPermissionRolesPairResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPermission + +`func (o *ModelsSecurityIdentitiesPermissionRolesPairResponse) GetPermission() string` + +GetPermission returns the Permission field if non-nil, zero value otherwise. + +### GetPermissionOk + +`func (o *ModelsSecurityIdentitiesPermissionRolesPairResponse) GetPermissionOk() (*string, bool)` + +GetPermissionOk returns a tuple with the Permission field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermission + +`func (o *ModelsSecurityIdentitiesPermissionRolesPairResponse) SetPermission(v string)` + +SetPermission sets Permission field to given value. + +### HasPermission + +`func (o *ModelsSecurityIdentitiesPermissionRolesPairResponse) HasPermission() bool` + +HasPermission returns a boolean if a field has been set. + +### GetGrantedByRoles + +`func (o *ModelsSecurityIdentitiesPermissionRolesPairResponse) GetGrantedByRoles() []string` + +GetGrantedByRoles returns the GrantedByRoles field if non-nil, zero value otherwise. + +### GetGrantedByRolesOk + +`func (o *ModelsSecurityIdentitiesPermissionRolesPairResponse) GetGrantedByRolesOk() (*[]string, bool)` + +GetGrantedByRolesOk returns a tuple with the GrantedByRoles field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGrantedByRoles + +`func (o *ModelsSecurityIdentitiesPermissionRolesPairResponse) SetGrantedByRoles(v []string)` + +SetGrantedByRoles sets GrantedByRoles field to given value. + +### HasGrantedByRoles + +`func (o *ModelsSecurityIdentitiesPermissionRolesPairResponse) HasGrantedByRoles() bool` + +HasGrantedByRoles returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsSecurityIdentitiesSecurityIdentityIdentifier.md b/v1/docs/ModelsSecurityIdentitiesSecurityIdentityIdentifier.md new file mode 100644 index 0000000..de78541 --- /dev/null +++ b/v1/docs/ModelsSecurityIdentitiesSecurityIdentityIdentifier.md @@ -0,0 +1,82 @@ +# ModelsSecurityIdentitiesSecurityIdentityIdentifier + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountName** | Pointer to **string** | The username of the security identity. | [optional] +**SID** | Pointer to **string** | The SID of the security identity. | [optional] + +## Methods + +### NewModelsSecurityIdentitiesSecurityIdentityIdentifier + +`func NewModelsSecurityIdentitiesSecurityIdentityIdentifier() *ModelsSecurityIdentitiesSecurityIdentityIdentifier` + +NewModelsSecurityIdentitiesSecurityIdentityIdentifier instantiates a new ModelsSecurityIdentitiesSecurityIdentityIdentifier object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsSecurityIdentitiesSecurityIdentityIdentifierWithDefaults + +`func NewModelsSecurityIdentitiesSecurityIdentityIdentifierWithDefaults() *ModelsSecurityIdentitiesSecurityIdentityIdentifier` + +NewModelsSecurityIdentitiesSecurityIdentityIdentifierWithDefaults instantiates a new ModelsSecurityIdentitiesSecurityIdentityIdentifier object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAccountName + +`func (o *ModelsSecurityIdentitiesSecurityIdentityIdentifier) GetAccountName() string` + +GetAccountName returns the AccountName field if non-nil, zero value otherwise. + +### GetAccountNameOk + +`func (o *ModelsSecurityIdentitiesSecurityIdentityIdentifier) GetAccountNameOk() (*string, bool)` + +GetAccountNameOk returns a tuple with the AccountName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountName + +`func (o *ModelsSecurityIdentitiesSecurityIdentityIdentifier) SetAccountName(v string)` + +SetAccountName sets AccountName field to given value. + +### HasAccountName + +`func (o *ModelsSecurityIdentitiesSecurityIdentityIdentifier) HasAccountName() bool` + +HasAccountName returns a boolean if a field has been set. + +### GetSID + +`func (o *ModelsSecurityIdentitiesSecurityIdentityIdentifier) GetSID() string` + +GetSID returns the SID field if non-nil, zero value otherwise. + +### GetSIDOk + +`func (o *ModelsSecurityIdentitiesSecurityIdentityIdentifier) GetSIDOk() (*string, bool)` + +GetSIDOk returns a tuple with the SID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSID + +`func (o *ModelsSecurityIdentitiesSecurityIdentityIdentifier) SetSID(v string)` + +SetSID sets SID field to given value. + +### HasSID + +`func (o *ModelsSecurityIdentitiesSecurityIdentityIdentifier) HasSID() bool` + +HasSID returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsSecurityIdentitiesSecurityIdentityLookupResponse.md b/v1/docs/ModelsSecurityIdentitiesSecurityIdentityLookupResponse.md new file mode 100644 index 0000000..39632e3 --- /dev/null +++ b/v1/docs/ModelsSecurityIdentitiesSecurityIdentityLookupResponse.md @@ -0,0 +1,56 @@ +# ModelsSecurityIdentitiesSecurityIdentityLookupResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Valid** | Pointer to **bool** | Whether or not the identity is valid. | [optional] + +## Methods + +### NewModelsSecurityIdentitiesSecurityIdentityLookupResponse + +`func NewModelsSecurityIdentitiesSecurityIdentityLookupResponse() *ModelsSecurityIdentitiesSecurityIdentityLookupResponse` + +NewModelsSecurityIdentitiesSecurityIdentityLookupResponse instantiates a new ModelsSecurityIdentitiesSecurityIdentityLookupResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsSecurityIdentitiesSecurityIdentityLookupResponseWithDefaults + +`func NewModelsSecurityIdentitiesSecurityIdentityLookupResponseWithDefaults() *ModelsSecurityIdentitiesSecurityIdentityLookupResponse` + +NewModelsSecurityIdentitiesSecurityIdentityLookupResponseWithDefaults instantiates a new ModelsSecurityIdentitiesSecurityIdentityLookupResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValid + +`func (o *ModelsSecurityIdentitiesSecurityIdentityLookupResponse) GetValid() bool` + +GetValid returns the Valid field if non-nil, zero value otherwise. + +### GetValidOk + +`func (o *ModelsSecurityIdentitiesSecurityIdentityLookupResponse) GetValidOk() (*bool, bool)` + +GetValidOk returns a tuple with the Valid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValid + +`func (o *ModelsSecurityIdentitiesSecurityIdentityLookupResponse) SetValid(v bool)` + +SetValid sets Valid field to given value. + +### HasValid + +`func (o *ModelsSecurityIdentitiesSecurityIdentityLookupResponse) HasValid() bool` + +HasValid returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse.md b/v1/docs/ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse.md new file mode 100644 index 0000000..3e22e5d --- /dev/null +++ b/v1/docs/ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse.md @@ -0,0 +1,134 @@ +# ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Identity** | Pointer to **string** | | [optional] +**SecuredAreaPermissions** | Pointer to [**[]ModelsSecurityIdentitiesPermissionRolesPairResponse**](ModelsSecurityIdentitiesPermissionRolesPairResponse.md) | | [optional] +**CollectionPermissions** | Pointer to [**[]ModelsSecurityIdentitiesPermissionRolesPairResponse**](ModelsSecurityIdentitiesPermissionRolesPairResponse.md) | | [optional] +**ContainerPermissions** | Pointer to [**[]ModelsSecurityIdentitiesPermissionRolesPairResponse**](ModelsSecurityIdentitiesPermissionRolesPairResponse.md) | | [optional] + +## Methods + +### NewModelsSecurityIdentitiesSecurityIdentityPermissionsResponse + +`func NewModelsSecurityIdentitiesSecurityIdentityPermissionsResponse() *ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse` + +NewModelsSecurityIdentitiesSecurityIdentityPermissionsResponse instantiates a new ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsSecurityIdentitiesSecurityIdentityPermissionsResponseWithDefaults + +`func NewModelsSecurityIdentitiesSecurityIdentityPermissionsResponseWithDefaults() *ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse` + +NewModelsSecurityIdentitiesSecurityIdentityPermissionsResponseWithDefaults instantiates a new ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetIdentity + +`func (o *ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse) GetIdentity() string` + +GetIdentity returns the Identity field if non-nil, zero value otherwise. + +### GetIdentityOk + +`func (o *ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse) GetIdentityOk() (*string, bool)` + +GetIdentityOk returns a tuple with the Identity field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIdentity + +`func (o *ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse) SetIdentity(v string)` + +SetIdentity sets Identity field to given value. + +### HasIdentity + +`func (o *ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse) HasIdentity() bool` + +HasIdentity returns a boolean if a field has been set. + +### GetSecuredAreaPermissions + +`func (o *ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse) GetSecuredAreaPermissions() []ModelsSecurityIdentitiesPermissionRolesPairResponse` + +GetSecuredAreaPermissions returns the SecuredAreaPermissions field if non-nil, zero value otherwise. + +### GetSecuredAreaPermissionsOk + +`func (o *ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse) GetSecuredAreaPermissionsOk() (*[]ModelsSecurityIdentitiesPermissionRolesPairResponse, bool)` + +GetSecuredAreaPermissionsOk returns a tuple with the SecuredAreaPermissions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecuredAreaPermissions + +`func (o *ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse) SetSecuredAreaPermissions(v []ModelsSecurityIdentitiesPermissionRolesPairResponse)` + +SetSecuredAreaPermissions sets SecuredAreaPermissions field to given value. + +### HasSecuredAreaPermissions + +`func (o *ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse) HasSecuredAreaPermissions() bool` + +HasSecuredAreaPermissions returns a boolean if a field has been set. + +### GetCollectionPermissions + +`func (o *ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse) GetCollectionPermissions() []ModelsSecurityIdentitiesPermissionRolesPairResponse` + +GetCollectionPermissions returns the CollectionPermissions field if non-nil, zero value otherwise. + +### GetCollectionPermissionsOk + +`func (o *ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse) GetCollectionPermissionsOk() (*[]ModelsSecurityIdentitiesPermissionRolesPairResponse, bool)` + +GetCollectionPermissionsOk returns a tuple with the CollectionPermissions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCollectionPermissions + +`func (o *ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse) SetCollectionPermissions(v []ModelsSecurityIdentitiesPermissionRolesPairResponse)` + +SetCollectionPermissions sets CollectionPermissions field to given value. + +### HasCollectionPermissions + +`func (o *ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse) HasCollectionPermissions() bool` + +HasCollectionPermissions returns a boolean if a field has been set. + +### GetContainerPermissions + +`func (o *ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse) GetContainerPermissions() []ModelsSecurityIdentitiesPermissionRolesPairResponse` + +GetContainerPermissions returns the ContainerPermissions field if non-nil, zero value otherwise. + +### GetContainerPermissionsOk + +`func (o *ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse) GetContainerPermissionsOk() (*[]ModelsSecurityIdentitiesPermissionRolesPairResponse, bool)` + +GetContainerPermissionsOk returns a tuple with the ContainerPermissions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContainerPermissions + +`func (o *ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse) SetContainerPermissions(v []ModelsSecurityIdentitiesPermissionRolesPairResponse)` + +SetContainerPermissions sets ContainerPermissions field to given value. + +### HasContainerPermissions + +`func (o *ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse) HasContainerPermissions() bool` + +HasContainerPermissions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsSecurityIdentitiesSecurityIdentityRequest.md b/v1/docs/ModelsSecurityIdentitiesSecurityIdentityRequest.md new file mode 100644 index 0000000..3544f83 --- /dev/null +++ b/v1/docs/ModelsSecurityIdentitiesSecurityIdentityRequest.md @@ -0,0 +1,51 @@ +# ModelsSecurityIdentitiesSecurityIdentityRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountName** | **string** | The username of the security identity. | + +## Methods + +### NewModelsSecurityIdentitiesSecurityIdentityRequest + +`func NewModelsSecurityIdentitiesSecurityIdentityRequest(accountName string, ) *ModelsSecurityIdentitiesSecurityIdentityRequest` + +NewModelsSecurityIdentitiesSecurityIdentityRequest instantiates a new ModelsSecurityIdentitiesSecurityIdentityRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsSecurityIdentitiesSecurityIdentityRequestWithDefaults + +`func NewModelsSecurityIdentitiesSecurityIdentityRequestWithDefaults() *ModelsSecurityIdentitiesSecurityIdentityRequest` + +NewModelsSecurityIdentitiesSecurityIdentityRequestWithDefaults instantiates a new ModelsSecurityIdentitiesSecurityIdentityRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAccountName + +`func (o *ModelsSecurityIdentitiesSecurityIdentityRequest) GetAccountName() string` + +GetAccountName returns the AccountName field if non-nil, zero value otherwise. + +### GetAccountNameOk + +`func (o *ModelsSecurityIdentitiesSecurityIdentityRequest) GetAccountNameOk() (*string, bool)` + +GetAccountNameOk returns a tuple with the AccountName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountName + +`func (o *ModelsSecurityIdentitiesSecurityIdentityRequest) SetAccountName(v string)` + +SetAccountName sets AccountName field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsSecuritySecurityRolesSecurityRoleCreationRequest.md b/v1/docs/ModelsSecuritySecurityRolesSecurityRoleCreationRequest.md new file mode 100644 index 0000000..9afa6f9 --- /dev/null +++ b/v1/docs/ModelsSecuritySecurityRolesSecurityRoleCreationRequest.md @@ -0,0 +1,176 @@ +# ModelsSecuritySecurityRolesSecurityRoleCreationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | The name of the security role to create | +**Description** | **string** | The description to be used on the created security role | +**Enabled** | Pointer to **bool** | Whether or not the security role should be enabled | [optional] +**Private** | Pointer to **bool** | Whether or not the security role should be private | [optional] +**Permissions** | Pointer to **[]string** | The permissions to include in the role. These must be supplied in the format \"Area:Permission\" | [optional] +**Identities** | Pointer to [**[]ModelsSecurityIdentitiesSecurityIdentityIdentifier**](ModelsSecurityIdentitiesSecurityIdentityIdentifier.md) | The Keyfactor identities to assign to the created role | [optional] + +## Methods + +### NewModelsSecuritySecurityRolesSecurityRoleCreationRequest + +`func NewModelsSecuritySecurityRolesSecurityRoleCreationRequest(name string, description string, ) *ModelsSecuritySecurityRolesSecurityRoleCreationRequest` + +NewModelsSecuritySecurityRolesSecurityRoleCreationRequest instantiates a new ModelsSecuritySecurityRolesSecurityRoleCreationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsSecuritySecurityRolesSecurityRoleCreationRequestWithDefaults + +`func NewModelsSecuritySecurityRolesSecurityRoleCreationRequestWithDefaults() *ModelsSecuritySecurityRolesSecurityRoleCreationRequest` + +NewModelsSecuritySecurityRolesSecurityRoleCreationRequestWithDefaults instantiates a new ModelsSecuritySecurityRolesSecurityRoleCreationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *ModelsSecuritySecurityRolesSecurityRoleCreationRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ModelsSecuritySecurityRolesSecurityRoleCreationRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ModelsSecuritySecurityRolesSecurityRoleCreationRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *ModelsSecuritySecurityRolesSecurityRoleCreationRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ModelsSecuritySecurityRolesSecurityRoleCreationRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *ModelsSecuritySecurityRolesSecurityRoleCreationRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + + +### GetEnabled + +`func (o *ModelsSecuritySecurityRolesSecurityRoleCreationRequest) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *ModelsSecuritySecurityRolesSecurityRoleCreationRequest) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *ModelsSecuritySecurityRolesSecurityRoleCreationRequest) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *ModelsSecuritySecurityRolesSecurityRoleCreationRequest) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetPrivate + +`func (o *ModelsSecuritySecurityRolesSecurityRoleCreationRequest) GetPrivate() bool` + +GetPrivate returns the Private field if non-nil, zero value otherwise. + +### GetPrivateOk + +`func (o *ModelsSecuritySecurityRolesSecurityRoleCreationRequest) GetPrivateOk() (*bool, bool)` + +GetPrivateOk returns a tuple with the Private field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivate + +`func (o *ModelsSecuritySecurityRolesSecurityRoleCreationRequest) SetPrivate(v bool)` + +SetPrivate sets Private field to given value. + +### HasPrivate + +`func (o *ModelsSecuritySecurityRolesSecurityRoleCreationRequest) HasPrivate() bool` + +HasPrivate returns a boolean if a field has been set. + +### GetPermissions + +`func (o *ModelsSecuritySecurityRolesSecurityRoleCreationRequest) GetPermissions() []string` + +GetPermissions returns the Permissions field if non-nil, zero value otherwise. + +### GetPermissionsOk + +`func (o *ModelsSecuritySecurityRolesSecurityRoleCreationRequest) GetPermissionsOk() (*[]string, bool)` + +GetPermissionsOk returns a tuple with the Permissions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissions + +`func (o *ModelsSecuritySecurityRolesSecurityRoleCreationRequest) SetPermissions(v []string)` + +SetPermissions sets Permissions field to given value. + +### HasPermissions + +`func (o *ModelsSecuritySecurityRolesSecurityRoleCreationRequest) HasPermissions() bool` + +HasPermissions returns a boolean if a field has been set. + +### GetIdentities + +`func (o *ModelsSecuritySecurityRolesSecurityRoleCreationRequest) GetIdentities() []ModelsSecurityIdentitiesSecurityIdentityIdentifier` + +GetIdentities returns the Identities field if non-nil, zero value otherwise. + +### GetIdentitiesOk + +`func (o *ModelsSecuritySecurityRolesSecurityRoleCreationRequest) GetIdentitiesOk() (*[]ModelsSecurityIdentitiesSecurityIdentityIdentifier, bool)` + +GetIdentitiesOk returns a tuple with the Identities field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIdentities + +`func (o *ModelsSecuritySecurityRolesSecurityRoleCreationRequest) SetIdentities(v []ModelsSecurityIdentitiesSecurityIdentityIdentifier)` + +SetIdentities sets Identities field to given value. + +### HasIdentities + +`func (o *ModelsSecuritySecurityRolesSecurityRoleCreationRequest) HasIdentities() bool` + +HasIdentities returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsSecuritySecurityRolesSecurityRoleResponseBase.md b/v1/docs/ModelsSecuritySecurityRolesSecurityRoleResponseBase.md new file mode 100644 index 0000000..d9a948c --- /dev/null +++ b/v1/docs/ModelsSecuritySecurityRolesSecurityRoleResponseBase.md @@ -0,0 +1,82 @@ +# ModelsSecuritySecurityRolesSecurityRoleResponseBase + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | The name of the created role | [optional] +**Permissions** | Pointer to **[]string** | The permissions included in the created security role | [optional] + +## Methods + +### NewModelsSecuritySecurityRolesSecurityRoleResponseBase + +`func NewModelsSecuritySecurityRolesSecurityRoleResponseBase() *ModelsSecuritySecurityRolesSecurityRoleResponseBase` + +NewModelsSecuritySecurityRolesSecurityRoleResponseBase instantiates a new ModelsSecuritySecurityRolesSecurityRoleResponseBase object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsSecuritySecurityRolesSecurityRoleResponseBaseWithDefaults + +`func NewModelsSecuritySecurityRolesSecurityRoleResponseBaseWithDefaults() *ModelsSecuritySecurityRolesSecurityRoleResponseBase` + +NewModelsSecuritySecurityRolesSecurityRoleResponseBaseWithDefaults instantiates a new ModelsSecuritySecurityRolesSecurityRoleResponseBase object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *ModelsSecuritySecurityRolesSecurityRoleResponseBase) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ModelsSecuritySecurityRolesSecurityRoleResponseBase) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ModelsSecuritySecurityRolesSecurityRoleResponseBase) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ModelsSecuritySecurityRolesSecurityRoleResponseBase) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetPermissions + +`func (o *ModelsSecuritySecurityRolesSecurityRoleResponseBase) GetPermissions() []string` + +GetPermissions returns the Permissions field if non-nil, zero value otherwise. + +### GetPermissionsOk + +`func (o *ModelsSecuritySecurityRolesSecurityRoleResponseBase) GetPermissionsOk() (*[]string, bool)` + +GetPermissionsOk returns a tuple with the Permissions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissions + +`func (o *ModelsSecuritySecurityRolesSecurityRoleResponseBase) SetPermissions(v []string)` + +SetPermissions sets Permissions field to given value. + +### HasPermissions + +`func (o *ModelsSecuritySecurityRolesSecurityRoleResponseBase) HasPermissions() bool` + +HasPermissions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsSecuritySecurityRolesSecurityRoleUpdateRequest.md b/v1/docs/ModelsSecuritySecurityRolesSecurityRoleUpdateRequest.md new file mode 100644 index 0000000..98c7dad --- /dev/null +++ b/v1/docs/ModelsSecuritySecurityRolesSecurityRoleUpdateRequest.md @@ -0,0 +1,197 @@ +# ModelsSecuritySecurityRolesSecurityRoleUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | The Id of the security role to update | +**Name** | **string** | The name of the security role to update | +**Description** | **string** | The description to be used on the updated security role | +**Enabled** | Pointer to **bool** | Whether or not the security role should be enabled | [optional] +**Private** | Pointer to **bool** | Whether or not the security role should be private | [optional] +**Permissions** | Pointer to **[]string** | The permissions to include in the role. These must be supplied in the format \"Area:Permission\" | [optional] +**Identities** | Pointer to [**[]ModelsSecurityIdentitiesSecurityIdentityIdentifier**](ModelsSecurityIdentitiesSecurityIdentityIdentifier.md) | The Keyfactor identities to assign to the updated role | [optional] + +## Methods + +### NewModelsSecuritySecurityRolesSecurityRoleUpdateRequest + +`func NewModelsSecuritySecurityRolesSecurityRoleUpdateRequest(id int32, name string, description string, ) *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest` + +NewModelsSecuritySecurityRolesSecurityRoleUpdateRequest instantiates a new ModelsSecuritySecurityRolesSecurityRoleUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsSecuritySecurityRolesSecurityRoleUpdateRequestWithDefaults + +`func NewModelsSecuritySecurityRolesSecurityRoleUpdateRequestWithDefaults() *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest` + +NewModelsSecuritySecurityRolesSecurityRoleUpdateRequestWithDefaults instantiates a new ModelsSecuritySecurityRolesSecurityRoleUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetName + +`func (o *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + + +### GetEnabled + +`func (o *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetPrivate + +`func (o *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) GetPrivate() bool` + +GetPrivate returns the Private field if non-nil, zero value otherwise. + +### GetPrivateOk + +`func (o *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) GetPrivateOk() (*bool, bool)` + +GetPrivateOk returns a tuple with the Private field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivate + +`func (o *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) SetPrivate(v bool)` + +SetPrivate sets Private field to given value. + +### HasPrivate + +`func (o *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) HasPrivate() bool` + +HasPrivate returns a boolean if a field has been set. + +### GetPermissions + +`func (o *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) GetPermissions() []string` + +GetPermissions returns the Permissions field if non-nil, zero value otherwise. + +### GetPermissionsOk + +`func (o *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) GetPermissionsOk() (*[]string, bool)` + +GetPermissionsOk returns a tuple with the Permissions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissions + +`func (o *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) SetPermissions(v []string)` + +SetPermissions sets Permissions field to given value. + +### HasPermissions + +`func (o *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) HasPermissions() bool` + +HasPermissions returns a boolean if a field has been set. + +### GetIdentities + +`func (o *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) GetIdentities() []ModelsSecurityIdentitiesSecurityIdentityIdentifier` + +GetIdentities returns the Identities field if non-nil, zero value otherwise. + +### GetIdentitiesOk + +`func (o *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) GetIdentitiesOk() (*[]ModelsSecurityIdentitiesSecurityIdentityIdentifier, bool)` + +GetIdentitiesOk returns a tuple with the Identities field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIdentities + +`func (o *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) SetIdentities(v []ModelsSecurityIdentitiesSecurityIdentityIdentifier)` + +SetIdentities sets Identities field to given value. + +### HasIdentities + +`func (o *ModelsSecuritySecurityRolesSecurityRoleUpdateRequest) HasIdentities() bool` + +HasIdentities returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsSubjectAlternativeName.md b/v1/docs/ModelsSubjectAlternativeName.md new file mode 100644 index 0000000..bea67aa --- /dev/null +++ b/v1/docs/ModelsSubjectAlternativeName.md @@ -0,0 +1,134 @@ +# ModelsSubjectAlternativeName + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Value** | Pointer to **string** | | [optional] +**Type** | Pointer to **int32** | | [optional] +**ValueHash** | Pointer to **string** | | [optional] + +## Methods + +### NewModelsSubjectAlternativeName + +`func NewModelsSubjectAlternativeName() *ModelsSubjectAlternativeName` + +NewModelsSubjectAlternativeName instantiates a new ModelsSubjectAlternativeName object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsSubjectAlternativeNameWithDefaults + +`func NewModelsSubjectAlternativeNameWithDefaults() *ModelsSubjectAlternativeName` + +NewModelsSubjectAlternativeNameWithDefaults instantiates a new ModelsSubjectAlternativeName object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsSubjectAlternativeName) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsSubjectAlternativeName) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsSubjectAlternativeName) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ModelsSubjectAlternativeName) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetValue + +`func (o *ModelsSubjectAlternativeName) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *ModelsSubjectAlternativeName) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *ModelsSubjectAlternativeName) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *ModelsSubjectAlternativeName) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetType + +`func (o *ModelsSubjectAlternativeName) GetType() int32` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ModelsSubjectAlternativeName) GetTypeOk() (*int32, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ModelsSubjectAlternativeName) SetType(v int32)` + +SetType sets Type field to given value. + +### HasType + +`func (o *ModelsSubjectAlternativeName) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetValueHash + +`func (o *ModelsSubjectAlternativeName) GetValueHash() string` + +GetValueHash returns the ValueHash field if non-nil, zero value otherwise. + +### GetValueHashOk + +`func (o *ModelsSubjectAlternativeName) GetValueHashOk() (*string, bool)` + +GetValueHashOk returns a tuple with the ValueHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValueHash + +`func (o *ModelsSubjectAlternativeName) SetValueHash(v string)` + +SetValueHash sets ValueHash field to given value. + +### HasValueHash + +`func (o *ModelsSubjectAlternativeName) HasValueHash() bool` + +HasValueHash returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsTemplateCollectionRetrievalResponse.md b/v1/docs/ModelsTemplateCollectionRetrievalResponse.md new file mode 100644 index 0000000..4f436a6 --- /dev/null +++ b/v1/docs/ModelsTemplateCollectionRetrievalResponse.md @@ -0,0 +1,576 @@ +# ModelsTemplateCollectionRetrievalResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**CommonName** | Pointer to **string** | | [optional] +**TemplateName** | Pointer to **string** | | [optional] +**Oid** | Pointer to **string** | | [optional] +**KeySize** | Pointer to **string** | | [optional] +**KeyType** | Pointer to **string** | | [optional] +**ForestRoot** | Pointer to **string** | | [optional] [readonly] +**ConfigurationTenant** | Pointer to **string** | | [optional] +**FriendlyName** | Pointer to **string** | | [optional] +**KeyRetention** | Pointer to **int32** | | [optional] +**KeyRetentionDays** | Pointer to **int32** | | [optional] +**KeyArchival** | Pointer to **bool** | | [optional] +**EnrollmentFields** | Pointer to [**[]ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel**](ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel.md) | | [optional] +**AllowedEnrollmentTypes** | Pointer to **int32** | | [optional] +**TemplateRegexes** | Pointer to [**[]ModelsTemplateCollectionRetrievalResponseTemplateRegexModel**](ModelsTemplateCollectionRetrievalResponseTemplateRegexModel.md) | | [optional] +**UseAllowedRequesters** | Pointer to **bool** | | [optional] +**AllowedRequesters** | Pointer to **[]string** | | [optional] +**DisplayName** | Pointer to **string** | | [optional] +**RequiresApproval** | Pointer to **bool** | | [optional] +**KeyUsage** | Pointer to **int32** | | [optional] +**ExtendedKeyUsages** | Pointer to [**[]ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel**](ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel.md) | | [optional] + +## Methods + +### NewModelsTemplateCollectionRetrievalResponse + +`func NewModelsTemplateCollectionRetrievalResponse() *ModelsTemplateCollectionRetrievalResponse` + +NewModelsTemplateCollectionRetrievalResponse instantiates a new ModelsTemplateCollectionRetrievalResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsTemplateCollectionRetrievalResponseWithDefaults + +`func NewModelsTemplateCollectionRetrievalResponseWithDefaults() *ModelsTemplateCollectionRetrievalResponse` + +NewModelsTemplateCollectionRetrievalResponseWithDefaults instantiates a new ModelsTemplateCollectionRetrievalResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsTemplateCollectionRetrievalResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsTemplateCollectionRetrievalResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsTemplateCollectionRetrievalResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ModelsTemplateCollectionRetrievalResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetCommonName + +`func (o *ModelsTemplateCollectionRetrievalResponse) GetCommonName() string` + +GetCommonName returns the CommonName field if non-nil, zero value otherwise. + +### GetCommonNameOk + +`func (o *ModelsTemplateCollectionRetrievalResponse) GetCommonNameOk() (*string, bool)` + +GetCommonNameOk returns a tuple with the CommonName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommonName + +`func (o *ModelsTemplateCollectionRetrievalResponse) SetCommonName(v string)` + +SetCommonName sets CommonName field to given value. + +### HasCommonName + +`func (o *ModelsTemplateCollectionRetrievalResponse) HasCommonName() bool` + +HasCommonName returns a boolean if a field has been set. + +### GetTemplateName + +`func (o *ModelsTemplateCollectionRetrievalResponse) GetTemplateName() string` + +GetTemplateName returns the TemplateName field if non-nil, zero value otherwise. + +### GetTemplateNameOk + +`func (o *ModelsTemplateCollectionRetrievalResponse) GetTemplateNameOk() (*string, bool)` + +GetTemplateNameOk returns a tuple with the TemplateName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateName + +`func (o *ModelsTemplateCollectionRetrievalResponse) SetTemplateName(v string)` + +SetTemplateName sets TemplateName field to given value. + +### HasTemplateName + +`func (o *ModelsTemplateCollectionRetrievalResponse) HasTemplateName() bool` + +HasTemplateName returns a boolean if a field has been set. + +### GetOid + +`func (o *ModelsTemplateCollectionRetrievalResponse) GetOid() string` + +GetOid returns the Oid field if non-nil, zero value otherwise. + +### GetOidOk + +`func (o *ModelsTemplateCollectionRetrievalResponse) GetOidOk() (*string, bool)` + +GetOidOk returns a tuple with the Oid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOid + +`func (o *ModelsTemplateCollectionRetrievalResponse) SetOid(v string)` + +SetOid sets Oid field to given value. + +### HasOid + +`func (o *ModelsTemplateCollectionRetrievalResponse) HasOid() bool` + +HasOid returns a boolean if a field has been set. + +### GetKeySize + +`func (o *ModelsTemplateCollectionRetrievalResponse) GetKeySize() string` + +GetKeySize returns the KeySize field if non-nil, zero value otherwise. + +### GetKeySizeOk + +`func (o *ModelsTemplateCollectionRetrievalResponse) GetKeySizeOk() (*string, bool)` + +GetKeySizeOk returns a tuple with the KeySize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeySize + +`func (o *ModelsTemplateCollectionRetrievalResponse) SetKeySize(v string)` + +SetKeySize sets KeySize field to given value. + +### HasKeySize + +`func (o *ModelsTemplateCollectionRetrievalResponse) HasKeySize() bool` + +HasKeySize returns a boolean if a field has been set. + +### GetKeyType + +`func (o *ModelsTemplateCollectionRetrievalResponse) GetKeyType() string` + +GetKeyType returns the KeyType field if non-nil, zero value otherwise. + +### GetKeyTypeOk + +`func (o *ModelsTemplateCollectionRetrievalResponse) GetKeyTypeOk() (*string, bool)` + +GetKeyTypeOk returns a tuple with the KeyType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyType + +`func (o *ModelsTemplateCollectionRetrievalResponse) SetKeyType(v string)` + +SetKeyType sets KeyType field to given value. + +### HasKeyType + +`func (o *ModelsTemplateCollectionRetrievalResponse) HasKeyType() bool` + +HasKeyType returns a boolean if a field has been set. + +### GetForestRoot + +`func (o *ModelsTemplateCollectionRetrievalResponse) GetForestRoot() string` + +GetForestRoot returns the ForestRoot field if non-nil, zero value otherwise. + +### GetForestRootOk + +`func (o *ModelsTemplateCollectionRetrievalResponse) GetForestRootOk() (*string, bool)` + +GetForestRootOk returns a tuple with the ForestRoot field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetForestRoot + +`func (o *ModelsTemplateCollectionRetrievalResponse) SetForestRoot(v string)` + +SetForestRoot sets ForestRoot field to given value. + +### HasForestRoot + +`func (o *ModelsTemplateCollectionRetrievalResponse) HasForestRoot() bool` + +HasForestRoot returns a boolean if a field has been set. + +### GetConfigurationTenant + +`func (o *ModelsTemplateCollectionRetrievalResponse) GetConfigurationTenant() string` + +GetConfigurationTenant returns the ConfigurationTenant field if non-nil, zero value otherwise. + +### GetConfigurationTenantOk + +`func (o *ModelsTemplateCollectionRetrievalResponse) GetConfigurationTenantOk() (*string, bool)` + +GetConfigurationTenantOk returns a tuple with the ConfigurationTenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigurationTenant + +`func (o *ModelsTemplateCollectionRetrievalResponse) SetConfigurationTenant(v string)` + +SetConfigurationTenant sets ConfigurationTenant field to given value. + +### HasConfigurationTenant + +`func (o *ModelsTemplateCollectionRetrievalResponse) HasConfigurationTenant() bool` + +HasConfigurationTenant returns a boolean if a field has been set. + +### GetFriendlyName + +`func (o *ModelsTemplateCollectionRetrievalResponse) GetFriendlyName() string` + +GetFriendlyName returns the FriendlyName field if non-nil, zero value otherwise. + +### GetFriendlyNameOk + +`func (o *ModelsTemplateCollectionRetrievalResponse) GetFriendlyNameOk() (*string, bool)` + +GetFriendlyNameOk returns a tuple with the FriendlyName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFriendlyName + +`func (o *ModelsTemplateCollectionRetrievalResponse) SetFriendlyName(v string)` + +SetFriendlyName sets FriendlyName field to given value. + +### HasFriendlyName + +`func (o *ModelsTemplateCollectionRetrievalResponse) HasFriendlyName() bool` + +HasFriendlyName returns a boolean if a field has been set. + +### GetKeyRetention + +`func (o *ModelsTemplateCollectionRetrievalResponse) GetKeyRetention() int32` + +GetKeyRetention returns the KeyRetention field if non-nil, zero value otherwise. + +### GetKeyRetentionOk + +`func (o *ModelsTemplateCollectionRetrievalResponse) GetKeyRetentionOk() (*int32, bool)` + +GetKeyRetentionOk returns a tuple with the KeyRetention field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyRetention + +`func (o *ModelsTemplateCollectionRetrievalResponse) SetKeyRetention(v int32)` + +SetKeyRetention sets KeyRetention field to given value. + +### HasKeyRetention + +`func (o *ModelsTemplateCollectionRetrievalResponse) HasKeyRetention() bool` + +HasKeyRetention returns a boolean if a field has been set. + +### GetKeyRetentionDays + +`func (o *ModelsTemplateCollectionRetrievalResponse) GetKeyRetentionDays() int32` + +GetKeyRetentionDays returns the KeyRetentionDays field if non-nil, zero value otherwise. + +### GetKeyRetentionDaysOk + +`func (o *ModelsTemplateCollectionRetrievalResponse) GetKeyRetentionDaysOk() (*int32, bool)` + +GetKeyRetentionDaysOk returns a tuple with the KeyRetentionDays field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyRetentionDays + +`func (o *ModelsTemplateCollectionRetrievalResponse) SetKeyRetentionDays(v int32)` + +SetKeyRetentionDays sets KeyRetentionDays field to given value. + +### HasKeyRetentionDays + +`func (o *ModelsTemplateCollectionRetrievalResponse) HasKeyRetentionDays() bool` + +HasKeyRetentionDays returns a boolean if a field has been set. + +### GetKeyArchival + +`func (o *ModelsTemplateCollectionRetrievalResponse) GetKeyArchival() bool` + +GetKeyArchival returns the KeyArchival field if non-nil, zero value otherwise. + +### GetKeyArchivalOk + +`func (o *ModelsTemplateCollectionRetrievalResponse) GetKeyArchivalOk() (*bool, bool)` + +GetKeyArchivalOk returns a tuple with the KeyArchival field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyArchival + +`func (o *ModelsTemplateCollectionRetrievalResponse) SetKeyArchival(v bool)` + +SetKeyArchival sets KeyArchival field to given value. + +### HasKeyArchival + +`func (o *ModelsTemplateCollectionRetrievalResponse) HasKeyArchival() bool` + +HasKeyArchival returns a boolean if a field has been set. + +### GetEnrollmentFields + +`func (o *ModelsTemplateCollectionRetrievalResponse) GetEnrollmentFields() []ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel` + +GetEnrollmentFields returns the EnrollmentFields field if non-nil, zero value otherwise. + +### GetEnrollmentFieldsOk + +`func (o *ModelsTemplateCollectionRetrievalResponse) GetEnrollmentFieldsOk() (*[]ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel, bool)` + +GetEnrollmentFieldsOk returns a tuple with the EnrollmentFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnrollmentFields + +`func (o *ModelsTemplateCollectionRetrievalResponse) SetEnrollmentFields(v []ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel)` + +SetEnrollmentFields sets EnrollmentFields field to given value. + +### HasEnrollmentFields + +`func (o *ModelsTemplateCollectionRetrievalResponse) HasEnrollmentFields() bool` + +HasEnrollmentFields returns a boolean if a field has been set. + +### GetAllowedEnrollmentTypes + +`func (o *ModelsTemplateCollectionRetrievalResponse) GetAllowedEnrollmentTypes() int32` + +GetAllowedEnrollmentTypes returns the AllowedEnrollmentTypes field if non-nil, zero value otherwise. + +### GetAllowedEnrollmentTypesOk + +`func (o *ModelsTemplateCollectionRetrievalResponse) GetAllowedEnrollmentTypesOk() (*int32, bool)` + +GetAllowedEnrollmentTypesOk returns a tuple with the AllowedEnrollmentTypes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowedEnrollmentTypes + +`func (o *ModelsTemplateCollectionRetrievalResponse) SetAllowedEnrollmentTypes(v int32)` + +SetAllowedEnrollmentTypes sets AllowedEnrollmentTypes field to given value. + +### HasAllowedEnrollmentTypes + +`func (o *ModelsTemplateCollectionRetrievalResponse) HasAllowedEnrollmentTypes() bool` + +HasAllowedEnrollmentTypes returns a boolean if a field has been set. + +### GetTemplateRegexes + +`func (o *ModelsTemplateCollectionRetrievalResponse) GetTemplateRegexes() []ModelsTemplateCollectionRetrievalResponseTemplateRegexModel` + +GetTemplateRegexes returns the TemplateRegexes field if non-nil, zero value otherwise. + +### GetTemplateRegexesOk + +`func (o *ModelsTemplateCollectionRetrievalResponse) GetTemplateRegexesOk() (*[]ModelsTemplateCollectionRetrievalResponseTemplateRegexModel, bool)` + +GetTemplateRegexesOk returns a tuple with the TemplateRegexes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateRegexes + +`func (o *ModelsTemplateCollectionRetrievalResponse) SetTemplateRegexes(v []ModelsTemplateCollectionRetrievalResponseTemplateRegexModel)` + +SetTemplateRegexes sets TemplateRegexes field to given value. + +### HasTemplateRegexes + +`func (o *ModelsTemplateCollectionRetrievalResponse) HasTemplateRegexes() bool` + +HasTemplateRegexes returns a boolean if a field has been set. + +### GetUseAllowedRequesters + +`func (o *ModelsTemplateCollectionRetrievalResponse) GetUseAllowedRequesters() bool` + +GetUseAllowedRequesters returns the UseAllowedRequesters field if non-nil, zero value otherwise. + +### GetUseAllowedRequestersOk + +`func (o *ModelsTemplateCollectionRetrievalResponse) GetUseAllowedRequestersOk() (*bool, bool)` + +GetUseAllowedRequestersOk returns a tuple with the UseAllowedRequesters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseAllowedRequesters + +`func (o *ModelsTemplateCollectionRetrievalResponse) SetUseAllowedRequesters(v bool)` + +SetUseAllowedRequesters sets UseAllowedRequesters field to given value. + +### HasUseAllowedRequesters + +`func (o *ModelsTemplateCollectionRetrievalResponse) HasUseAllowedRequesters() bool` + +HasUseAllowedRequesters returns a boolean if a field has been set. + +### GetAllowedRequesters + +`func (o *ModelsTemplateCollectionRetrievalResponse) GetAllowedRequesters() []string` + +GetAllowedRequesters returns the AllowedRequesters field if non-nil, zero value otherwise. + +### GetAllowedRequestersOk + +`func (o *ModelsTemplateCollectionRetrievalResponse) GetAllowedRequestersOk() (*[]string, bool)` + +GetAllowedRequestersOk returns a tuple with the AllowedRequesters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowedRequesters + +`func (o *ModelsTemplateCollectionRetrievalResponse) SetAllowedRequesters(v []string)` + +SetAllowedRequesters sets AllowedRequesters field to given value. + +### HasAllowedRequesters + +`func (o *ModelsTemplateCollectionRetrievalResponse) HasAllowedRequesters() bool` + +HasAllowedRequesters returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *ModelsTemplateCollectionRetrievalResponse) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *ModelsTemplateCollectionRetrievalResponse) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *ModelsTemplateCollectionRetrievalResponse) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *ModelsTemplateCollectionRetrievalResponse) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetRequiresApproval + +`func (o *ModelsTemplateCollectionRetrievalResponse) GetRequiresApproval() bool` + +GetRequiresApproval returns the RequiresApproval field if non-nil, zero value otherwise. + +### GetRequiresApprovalOk + +`func (o *ModelsTemplateCollectionRetrievalResponse) GetRequiresApprovalOk() (*bool, bool)` + +GetRequiresApprovalOk returns a tuple with the RequiresApproval field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequiresApproval + +`func (o *ModelsTemplateCollectionRetrievalResponse) SetRequiresApproval(v bool)` + +SetRequiresApproval sets RequiresApproval field to given value. + +### HasRequiresApproval + +`func (o *ModelsTemplateCollectionRetrievalResponse) HasRequiresApproval() bool` + +HasRequiresApproval returns a boolean if a field has been set. + +### GetKeyUsage + +`func (o *ModelsTemplateCollectionRetrievalResponse) GetKeyUsage() int32` + +GetKeyUsage returns the KeyUsage field if non-nil, zero value otherwise. + +### GetKeyUsageOk + +`func (o *ModelsTemplateCollectionRetrievalResponse) GetKeyUsageOk() (*int32, bool)` + +GetKeyUsageOk returns a tuple with the KeyUsage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyUsage + +`func (o *ModelsTemplateCollectionRetrievalResponse) SetKeyUsage(v int32)` + +SetKeyUsage sets KeyUsage field to given value. + +### HasKeyUsage + +`func (o *ModelsTemplateCollectionRetrievalResponse) HasKeyUsage() bool` + +HasKeyUsage returns a boolean if a field has been set. + +### GetExtendedKeyUsages + +`func (o *ModelsTemplateCollectionRetrievalResponse) GetExtendedKeyUsages() []ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel` + +GetExtendedKeyUsages returns the ExtendedKeyUsages field if non-nil, zero value otherwise. + +### GetExtendedKeyUsagesOk + +`func (o *ModelsTemplateCollectionRetrievalResponse) GetExtendedKeyUsagesOk() (*[]ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel, bool)` + +GetExtendedKeyUsagesOk returns a tuple with the ExtendedKeyUsages field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtendedKeyUsages + +`func (o *ModelsTemplateCollectionRetrievalResponse) SetExtendedKeyUsages(v []ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel)` + +SetExtendedKeyUsages sets ExtendedKeyUsages field to given value. + +### HasExtendedKeyUsages + +`func (o *ModelsTemplateCollectionRetrievalResponse) HasExtendedKeyUsages() bool` + +HasExtendedKeyUsages returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel.md b/v1/docs/ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel.md new file mode 100644 index 0000000..162daf8 --- /dev/null +++ b/v1/docs/ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel.md @@ -0,0 +1,108 @@ +# ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Oid** | Pointer to **string** | | [optional] +**DisplayName** | Pointer to **string** | | [optional] + +## Methods + +### NewModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel + +`func NewModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel() *ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel` + +NewModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel instantiates a new ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModelWithDefaults + +`func NewModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModelWithDefaults() *ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel` + +NewModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModelWithDefaults instantiates a new ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetOid + +`func (o *ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel) GetOid() string` + +GetOid returns the Oid field if non-nil, zero value otherwise. + +### GetOidOk + +`func (o *ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel) GetOidOk() (*string, bool)` + +GetOidOk returns a tuple with the Oid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOid + +`func (o *ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel) SetOid(v string)` + +SetOid sets Oid field to given value. + +### HasOid + +`func (o *ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel) HasOid() bool` + +HasOid returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *ModelsTemplateCollectionRetrievalResponseExtendedKeyUsageModel) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel.md b/v1/docs/ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel.md new file mode 100644 index 0000000..5ea0f85 --- /dev/null +++ b/v1/docs/ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel.md @@ -0,0 +1,134 @@ +# ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Options** | Pointer to **[]string** | | [optional] +**DataType** | Pointer to **int32** | | [optional] + +## Methods + +### NewModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel + +`func NewModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel() *ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel` + +NewModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel instantiates a new ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModelWithDefaults + +`func NewModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModelWithDefaults() *ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel` + +NewModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModelWithDefaults instantiates a new ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetOptions + +`func (o *ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel) GetOptions() []string` + +GetOptions returns the Options field if non-nil, zero value otherwise. + +### GetOptionsOk + +`func (o *ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel) GetOptionsOk() (*[]string, bool)` + +GetOptionsOk returns a tuple with the Options field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOptions + +`func (o *ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel) SetOptions(v []string)` + +SetOptions sets Options field to given value. + +### HasOptions + +`func (o *ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel) HasOptions() bool` + +HasOptions returns a boolean if a field has been set. + +### GetDataType + +`func (o *ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel) GetDataType() int32` + +GetDataType returns the DataType field if non-nil, zero value otherwise. + +### GetDataTypeOk + +`func (o *ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel) GetDataTypeOk() (*int32, bool)` + +GetDataTypeOk returns a tuple with the DataType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataType + +`func (o *ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel) SetDataType(v int32)` + +SetDataType sets DataType field to given value. + +### HasDataType + +`func (o *ModelsTemplateCollectionRetrievalResponseTemplateEnrollmentFieldModel) HasDataType() bool` + +HasDataType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsTemplateCollectionRetrievalResponseTemplateRegexModel.md b/v1/docs/ModelsTemplateCollectionRetrievalResponseTemplateRegexModel.md new file mode 100644 index 0000000..321e5a6 --- /dev/null +++ b/v1/docs/ModelsTemplateCollectionRetrievalResponseTemplateRegexModel.md @@ -0,0 +1,134 @@ +# ModelsTemplateCollectionRetrievalResponseTemplateRegexModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TemplateId** | Pointer to **int32** | | [optional] +**SubjectPart** | Pointer to **string** | | [optional] +**Regex** | Pointer to **string** | | [optional] +**Error** | Pointer to **string** | | [optional] + +## Methods + +### NewModelsTemplateCollectionRetrievalResponseTemplateRegexModel + +`func NewModelsTemplateCollectionRetrievalResponseTemplateRegexModel() *ModelsTemplateCollectionRetrievalResponseTemplateRegexModel` + +NewModelsTemplateCollectionRetrievalResponseTemplateRegexModel instantiates a new ModelsTemplateCollectionRetrievalResponseTemplateRegexModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsTemplateCollectionRetrievalResponseTemplateRegexModelWithDefaults + +`func NewModelsTemplateCollectionRetrievalResponseTemplateRegexModelWithDefaults() *ModelsTemplateCollectionRetrievalResponseTemplateRegexModel` + +NewModelsTemplateCollectionRetrievalResponseTemplateRegexModelWithDefaults instantiates a new ModelsTemplateCollectionRetrievalResponseTemplateRegexModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTemplateId + +`func (o *ModelsTemplateCollectionRetrievalResponseTemplateRegexModel) GetTemplateId() int32` + +GetTemplateId returns the TemplateId field if non-nil, zero value otherwise. + +### GetTemplateIdOk + +`func (o *ModelsTemplateCollectionRetrievalResponseTemplateRegexModel) GetTemplateIdOk() (*int32, bool)` + +GetTemplateIdOk returns a tuple with the TemplateId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateId + +`func (o *ModelsTemplateCollectionRetrievalResponseTemplateRegexModel) SetTemplateId(v int32)` + +SetTemplateId sets TemplateId field to given value. + +### HasTemplateId + +`func (o *ModelsTemplateCollectionRetrievalResponseTemplateRegexModel) HasTemplateId() bool` + +HasTemplateId returns a boolean if a field has been set. + +### GetSubjectPart + +`func (o *ModelsTemplateCollectionRetrievalResponseTemplateRegexModel) GetSubjectPart() string` + +GetSubjectPart returns the SubjectPart field if non-nil, zero value otherwise. + +### GetSubjectPartOk + +`func (o *ModelsTemplateCollectionRetrievalResponseTemplateRegexModel) GetSubjectPartOk() (*string, bool)` + +GetSubjectPartOk returns a tuple with the SubjectPart field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubjectPart + +`func (o *ModelsTemplateCollectionRetrievalResponseTemplateRegexModel) SetSubjectPart(v string)` + +SetSubjectPart sets SubjectPart field to given value. + +### HasSubjectPart + +`func (o *ModelsTemplateCollectionRetrievalResponseTemplateRegexModel) HasSubjectPart() bool` + +HasSubjectPart returns a boolean if a field has been set. + +### GetRegex + +`func (o *ModelsTemplateCollectionRetrievalResponseTemplateRegexModel) GetRegex() string` + +GetRegex returns the Regex field if non-nil, zero value otherwise. + +### GetRegexOk + +`func (o *ModelsTemplateCollectionRetrievalResponseTemplateRegexModel) GetRegexOk() (*string, bool)` + +GetRegexOk returns a tuple with the Regex field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegex + +`func (o *ModelsTemplateCollectionRetrievalResponseTemplateRegexModel) SetRegex(v string)` + +SetRegex sets Regex field to given value. + +### HasRegex + +`func (o *ModelsTemplateCollectionRetrievalResponseTemplateRegexModel) HasRegex() bool` + +HasRegex returns a boolean if a field has been set. + +### GetError + +`func (o *ModelsTemplateCollectionRetrievalResponseTemplateRegexModel) GetError() string` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *ModelsTemplateCollectionRetrievalResponseTemplateRegexModel) GetErrorOk() (*string, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *ModelsTemplateCollectionRetrievalResponseTemplateRegexModel) SetError(v string)` + +SetError sets Error field to given value. + +### HasError + +`func (o *ModelsTemplateCollectionRetrievalResponseTemplateRegexModel) HasError() bool` + +HasError returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsTemplateEnrollmentField.md b/v1/docs/ModelsTemplateEnrollmentField.md new file mode 100644 index 0000000..e6ce8a3 --- /dev/null +++ b/v1/docs/ModelsTemplateEnrollmentField.md @@ -0,0 +1,134 @@ +# ModelsTemplateEnrollmentField + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Options** | Pointer to **[]string** | | [optional] +**DataType** | Pointer to **int32** | | [optional] + +## Methods + +### NewModelsTemplateEnrollmentField + +`func NewModelsTemplateEnrollmentField() *ModelsTemplateEnrollmentField` + +NewModelsTemplateEnrollmentField instantiates a new ModelsTemplateEnrollmentField object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsTemplateEnrollmentFieldWithDefaults + +`func NewModelsTemplateEnrollmentFieldWithDefaults() *ModelsTemplateEnrollmentField` + +NewModelsTemplateEnrollmentFieldWithDefaults instantiates a new ModelsTemplateEnrollmentField object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsTemplateEnrollmentField) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsTemplateEnrollmentField) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsTemplateEnrollmentField) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ModelsTemplateEnrollmentField) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *ModelsTemplateEnrollmentField) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ModelsTemplateEnrollmentField) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ModelsTemplateEnrollmentField) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ModelsTemplateEnrollmentField) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetOptions + +`func (o *ModelsTemplateEnrollmentField) GetOptions() []string` + +GetOptions returns the Options field if non-nil, zero value otherwise. + +### GetOptionsOk + +`func (o *ModelsTemplateEnrollmentField) GetOptionsOk() (*[]string, bool)` + +GetOptionsOk returns a tuple with the Options field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOptions + +`func (o *ModelsTemplateEnrollmentField) SetOptions(v []string)` + +SetOptions sets Options field to given value. + +### HasOptions + +`func (o *ModelsTemplateEnrollmentField) HasOptions() bool` + +HasOptions returns a boolean if a field has been set. + +### GetDataType + +`func (o *ModelsTemplateEnrollmentField) GetDataType() int32` + +GetDataType returns the DataType field if non-nil, zero value otherwise. + +### GetDataTypeOk + +`func (o *ModelsTemplateEnrollmentField) GetDataTypeOk() (*int32, bool)` + +GetDataTypeOk returns a tuple with the DataType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataType + +`func (o *ModelsTemplateEnrollmentField) SetDataType(v int32)` + +SetDataType sets DataType field to given value. + +### HasDataType + +`func (o *ModelsTemplateEnrollmentField) HasDataType() bool` + +HasDataType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsTemplateMetadataField.md b/v1/docs/ModelsTemplateMetadataField.md new file mode 100644 index 0000000..d878485 --- /dev/null +++ b/v1/docs/ModelsTemplateMetadataField.md @@ -0,0 +1,186 @@ +# ModelsTemplateMetadataField + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**DefaultValue** | Pointer to **string** | | [optional] +**MetadataId** | Pointer to **int32** | | [optional] +**Validation** | Pointer to **string** | | [optional] +**Enrollment** | Pointer to **int32** | | [optional] +**Message** | Pointer to **string** | | [optional] + +## Methods + +### NewModelsTemplateMetadataField + +`func NewModelsTemplateMetadataField() *ModelsTemplateMetadataField` + +NewModelsTemplateMetadataField instantiates a new ModelsTemplateMetadataField object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsTemplateMetadataFieldWithDefaults + +`func NewModelsTemplateMetadataFieldWithDefaults() *ModelsTemplateMetadataField` + +NewModelsTemplateMetadataFieldWithDefaults instantiates a new ModelsTemplateMetadataField object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsTemplateMetadataField) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsTemplateMetadataField) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsTemplateMetadataField) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ModelsTemplateMetadataField) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetDefaultValue + +`func (o *ModelsTemplateMetadataField) GetDefaultValue() string` + +GetDefaultValue returns the DefaultValue field if non-nil, zero value otherwise. + +### GetDefaultValueOk + +`func (o *ModelsTemplateMetadataField) GetDefaultValueOk() (*string, bool)` + +GetDefaultValueOk returns a tuple with the DefaultValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultValue + +`func (o *ModelsTemplateMetadataField) SetDefaultValue(v string)` + +SetDefaultValue sets DefaultValue field to given value. + +### HasDefaultValue + +`func (o *ModelsTemplateMetadataField) HasDefaultValue() bool` + +HasDefaultValue returns a boolean if a field has been set. + +### GetMetadataId + +`func (o *ModelsTemplateMetadataField) GetMetadataId() int32` + +GetMetadataId returns the MetadataId field if non-nil, zero value otherwise. + +### GetMetadataIdOk + +`func (o *ModelsTemplateMetadataField) GetMetadataIdOk() (*int32, bool)` + +GetMetadataIdOk returns a tuple with the MetadataId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadataId + +`func (o *ModelsTemplateMetadataField) SetMetadataId(v int32)` + +SetMetadataId sets MetadataId field to given value. + +### HasMetadataId + +`func (o *ModelsTemplateMetadataField) HasMetadataId() bool` + +HasMetadataId returns a boolean if a field has been set. + +### GetValidation + +`func (o *ModelsTemplateMetadataField) GetValidation() string` + +GetValidation returns the Validation field if non-nil, zero value otherwise. + +### GetValidationOk + +`func (o *ModelsTemplateMetadataField) GetValidationOk() (*string, bool)` + +GetValidationOk returns a tuple with the Validation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValidation + +`func (o *ModelsTemplateMetadataField) SetValidation(v string)` + +SetValidation sets Validation field to given value. + +### HasValidation + +`func (o *ModelsTemplateMetadataField) HasValidation() bool` + +HasValidation returns a boolean if a field has been set. + +### GetEnrollment + +`func (o *ModelsTemplateMetadataField) GetEnrollment() int32` + +GetEnrollment returns the Enrollment field if non-nil, zero value otherwise. + +### GetEnrollmentOk + +`func (o *ModelsTemplateMetadataField) GetEnrollmentOk() (*int32, bool)` + +GetEnrollmentOk returns a tuple with the Enrollment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnrollment + +`func (o *ModelsTemplateMetadataField) SetEnrollment(v int32)` + +SetEnrollment sets Enrollment field to given value. + +### HasEnrollment + +`func (o *ModelsTemplateMetadataField) HasEnrollment() bool` + +HasEnrollment returns a boolean if a field has been set. + +### GetMessage + +`func (o *ModelsTemplateMetadataField) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *ModelsTemplateMetadataField) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *ModelsTemplateMetadataField) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *ModelsTemplateMetadataField) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsTemplateRegex.md b/v1/docs/ModelsTemplateRegex.md new file mode 100644 index 0000000..47f1b6f --- /dev/null +++ b/v1/docs/ModelsTemplateRegex.md @@ -0,0 +1,134 @@ +# ModelsTemplateRegex + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TemplateId** | Pointer to **int32** | | [optional] +**SubjectPart** | Pointer to **string** | | [optional] +**Regex** | Pointer to **string** | | [optional] +**Error** | Pointer to **string** | | [optional] + +## Methods + +### NewModelsTemplateRegex + +`func NewModelsTemplateRegex() *ModelsTemplateRegex` + +NewModelsTemplateRegex instantiates a new ModelsTemplateRegex object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsTemplateRegexWithDefaults + +`func NewModelsTemplateRegexWithDefaults() *ModelsTemplateRegex` + +NewModelsTemplateRegexWithDefaults instantiates a new ModelsTemplateRegex object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTemplateId + +`func (o *ModelsTemplateRegex) GetTemplateId() int32` + +GetTemplateId returns the TemplateId field if non-nil, zero value otherwise. + +### GetTemplateIdOk + +`func (o *ModelsTemplateRegex) GetTemplateIdOk() (*int32, bool)` + +GetTemplateIdOk returns a tuple with the TemplateId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateId + +`func (o *ModelsTemplateRegex) SetTemplateId(v int32)` + +SetTemplateId sets TemplateId field to given value. + +### HasTemplateId + +`func (o *ModelsTemplateRegex) HasTemplateId() bool` + +HasTemplateId returns a boolean if a field has been set. + +### GetSubjectPart + +`func (o *ModelsTemplateRegex) GetSubjectPart() string` + +GetSubjectPart returns the SubjectPart field if non-nil, zero value otherwise. + +### GetSubjectPartOk + +`func (o *ModelsTemplateRegex) GetSubjectPartOk() (*string, bool)` + +GetSubjectPartOk returns a tuple with the SubjectPart field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubjectPart + +`func (o *ModelsTemplateRegex) SetSubjectPart(v string)` + +SetSubjectPart sets SubjectPart field to given value. + +### HasSubjectPart + +`func (o *ModelsTemplateRegex) HasSubjectPart() bool` + +HasSubjectPart returns a boolean if a field has been set. + +### GetRegex + +`func (o *ModelsTemplateRegex) GetRegex() string` + +GetRegex returns the Regex field if non-nil, zero value otherwise. + +### GetRegexOk + +`func (o *ModelsTemplateRegex) GetRegexOk() (*string, bool)` + +GetRegexOk returns a tuple with the Regex field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegex + +`func (o *ModelsTemplateRegex) SetRegex(v string)` + +SetRegex sets Regex field to given value. + +### HasRegex + +`func (o *ModelsTemplateRegex) HasRegex() bool` + +HasRegex returns a boolean if a field has been set. + +### GetError + +`func (o *ModelsTemplateRegex) GetError() string` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *ModelsTemplateRegex) GetErrorOk() (*string, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *ModelsTemplateRegex) SetError(v string)` + +SetError sets Error field to given value. + +### HasError + +`func (o *ModelsTemplateRegex) HasError() bool` + +HasError returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsTemplateRetrievalResponse.md b/v1/docs/ModelsTemplateRetrievalResponse.md new file mode 100644 index 0000000..ee01b7d --- /dev/null +++ b/v1/docs/ModelsTemplateRetrievalResponse.md @@ -0,0 +1,716 @@ +# ModelsTemplateRetrievalResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**CommonName** | Pointer to **string** | | [optional] +**TemplateName** | Pointer to **string** | | [optional] +**Oid** | Pointer to **string** | | [optional] +**KeySize** | Pointer to **string** | | [optional] +**KeyType** | Pointer to **string** | | [optional] +**ForestRoot** | Pointer to **string** | | [optional] [readonly] +**ConfigurationTenant** | Pointer to **string** | | [optional] +**FriendlyName** | Pointer to **string** | | [optional] +**KeyRetention** | Pointer to **int32** | | [optional] +**KeyRetentionDays** | Pointer to **int32** | | [optional] +**KeyArchival** | Pointer to **bool** | | [optional] +**EnrollmentFields** | Pointer to [**[]ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel**](ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel.md) | | [optional] +**MetadataFields** | Pointer to [**[]ModelsTemplateRetrievalResponseTemplateMetadataFieldModel**](ModelsTemplateRetrievalResponseTemplateMetadataFieldModel.md) | | [optional] +**AllowedEnrollmentTypes** | Pointer to **int32** | | [optional] +**TemplateRegexes** | Pointer to [**[]ModelsTemplateRetrievalResponseTemplateRegexModel**](ModelsTemplateRetrievalResponseTemplateRegexModel.md) | | [optional] +**TemplateDefaults** | Pointer to [**[]ModelsTemplateRetrievalResponseTemplateDefaultModel**](ModelsTemplateRetrievalResponseTemplateDefaultModel.md) | | [optional] +**TemplatePolicy** | Pointer to [**ModelsTemplateRetrievalResponseTemplatePolicyModel**](ModelsTemplateRetrievalResponseTemplatePolicyModel.md) | | [optional] +**UseAllowedRequesters** | Pointer to **bool** | | [optional] +**AllowedRequesters** | Pointer to **[]string** | | [optional] +**DisplayName** | Pointer to **string** | | [optional] +**RFCEnforcement** | Pointer to **bool** | | [optional] +**RequiresApproval** | Pointer to **bool** | | [optional] +**KeyUsage** | Pointer to **int32** | | [optional] +**ExtendedKeyUsages** | Pointer to [**[]ModelsTemplateRetrievalResponseExtendedKeyUsageModel**](ModelsTemplateRetrievalResponseExtendedKeyUsageModel.md) | | [optional] +**Curve** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewModelsTemplateRetrievalResponse + +`func NewModelsTemplateRetrievalResponse() *ModelsTemplateRetrievalResponse` + +NewModelsTemplateRetrievalResponse instantiates a new ModelsTemplateRetrievalResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsTemplateRetrievalResponseWithDefaults + +`func NewModelsTemplateRetrievalResponseWithDefaults() *ModelsTemplateRetrievalResponse` + +NewModelsTemplateRetrievalResponseWithDefaults instantiates a new ModelsTemplateRetrievalResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsTemplateRetrievalResponse) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsTemplateRetrievalResponse) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsTemplateRetrievalResponse) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ModelsTemplateRetrievalResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetCommonName + +`func (o *ModelsTemplateRetrievalResponse) GetCommonName() string` + +GetCommonName returns the CommonName field if non-nil, zero value otherwise. + +### GetCommonNameOk + +`func (o *ModelsTemplateRetrievalResponse) GetCommonNameOk() (*string, bool)` + +GetCommonNameOk returns a tuple with the CommonName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommonName + +`func (o *ModelsTemplateRetrievalResponse) SetCommonName(v string)` + +SetCommonName sets CommonName field to given value. + +### HasCommonName + +`func (o *ModelsTemplateRetrievalResponse) HasCommonName() bool` + +HasCommonName returns a boolean if a field has been set. + +### GetTemplateName + +`func (o *ModelsTemplateRetrievalResponse) GetTemplateName() string` + +GetTemplateName returns the TemplateName field if non-nil, zero value otherwise. + +### GetTemplateNameOk + +`func (o *ModelsTemplateRetrievalResponse) GetTemplateNameOk() (*string, bool)` + +GetTemplateNameOk returns a tuple with the TemplateName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateName + +`func (o *ModelsTemplateRetrievalResponse) SetTemplateName(v string)` + +SetTemplateName sets TemplateName field to given value. + +### HasTemplateName + +`func (o *ModelsTemplateRetrievalResponse) HasTemplateName() bool` + +HasTemplateName returns a boolean if a field has been set. + +### GetOid + +`func (o *ModelsTemplateRetrievalResponse) GetOid() string` + +GetOid returns the Oid field if non-nil, zero value otherwise. + +### GetOidOk + +`func (o *ModelsTemplateRetrievalResponse) GetOidOk() (*string, bool)` + +GetOidOk returns a tuple with the Oid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOid + +`func (o *ModelsTemplateRetrievalResponse) SetOid(v string)` + +SetOid sets Oid field to given value. + +### HasOid + +`func (o *ModelsTemplateRetrievalResponse) HasOid() bool` + +HasOid returns a boolean if a field has been set. + +### GetKeySize + +`func (o *ModelsTemplateRetrievalResponse) GetKeySize() string` + +GetKeySize returns the KeySize field if non-nil, zero value otherwise. + +### GetKeySizeOk + +`func (o *ModelsTemplateRetrievalResponse) GetKeySizeOk() (*string, bool)` + +GetKeySizeOk returns a tuple with the KeySize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeySize + +`func (o *ModelsTemplateRetrievalResponse) SetKeySize(v string)` + +SetKeySize sets KeySize field to given value. + +### HasKeySize + +`func (o *ModelsTemplateRetrievalResponse) HasKeySize() bool` + +HasKeySize returns a boolean if a field has been set. + +### GetKeyType + +`func (o *ModelsTemplateRetrievalResponse) GetKeyType() string` + +GetKeyType returns the KeyType field if non-nil, zero value otherwise. + +### GetKeyTypeOk + +`func (o *ModelsTemplateRetrievalResponse) GetKeyTypeOk() (*string, bool)` + +GetKeyTypeOk returns a tuple with the KeyType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyType + +`func (o *ModelsTemplateRetrievalResponse) SetKeyType(v string)` + +SetKeyType sets KeyType field to given value. + +### HasKeyType + +`func (o *ModelsTemplateRetrievalResponse) HasKeyType() bool` + +HasKeyType returns a boolean if a field has been set. + +### GetForestRoot + +`func (o *ModelsTemplateRetrievalResponse) GetForestRoot() string` + +GetForestRoot returns the ForestRoot field if non-nil, zero value otherwise. + +### GetForestRootOk + +`func (o *ModelsTemplateRetrievalResponse) GetForestRootOk() (*string, bool)` + +GetForestRootOk returns a tuple with the ForestRoot field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetForestRoot + +`func (o *ModelsTemplateRetrievalResponse) SetForestRoot(v string)` + +SetForestRoot sets ForestRoot field to given value. + +### HasForestRoot + +`func (o *ModelsTemplateRetrievalResponse) HasForestRoot() bool` + +HasForestRoot returns a boolean if a field has been set. + +### GetConfigurationTenant + +`func (o *ModelsTemplateRetrievalResponse) GetConfigurationTenant() string` + +GetConfigurationTenant returns the ConfigurationTenant field if non-nil, zero value otherwise. + +### GetConfigurationTenantOk + +`func (o *ModelsTemplateRetrievalResponse) GetConfigurationTenantOk() (*string, bool)` + +GetConfigurationTenantOk returns a tuple with the ConfigurationTenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigurationTenant + +`func (o *ModelsTemplateRetrievalResponse) SetConfigurationTenant(v string)` + +SetConfigurationTenant sets ConfigurationTenant field to given value. + +### HasConfigurationTenant + +`func (o *ModelsTemplateRetrievalResponse) HasConfigurationTenant() bool` + +HasConfigurationTenant returns a boolean if a field has been set. + +### GetFriendlyName + +`func (o *ModelsTemplateRetrievalResponse) GetFriendlyName() string` + +GetFriendlyName returns the FriendlyName field if non-nil, zero value otherwise. + +### GetFriendlyNameOk + +`func (o *ModelsTemplateRetrievalResponse) GetFriendlyNameOk() (*string, bool)` + +GetFriendlyNameOk returns a tuple with the FriendlyName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFriendlyName + +`func (o *ModelsTemplateRetrievalResponse) SetFriendlyName(v string)` + +SetFriendlyName sets FriendlyName field to given value. + +### HasFriendlyName + +`func (o *ModelsTemplateRetrievalResponse) HasFriendlyName() bool` + +HasFriendlyName returns a boolean if a field has been set. + +### GetKeyRetention + +`func (o *ModelsTemplateRetrievalResponse) GetKeyRetention() int32` + +GetKeyRetention returns the KeyRetention field if non-nil, zero value otherwise. + +### GetKeyRetentionOk + +`func (o *ModelsTemplateRetrievalResponse) GetKeyRetentionOk() (*int32, bool)` + +GetKeyRetentionOk returns a tuple with the KeyRetention field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyRetention + +`func (o *ModelsTemplateRetrievalResponse) SetKeyRetention(v int32)` + +SetKeyRetention sets KeyRetention field to given value. + +### HasKeyRetention + +`func (o *ModelsTemplateRetrievalResponse) HasKeyRetention() bool` + +HasKeyRetention returns a boolean if a field has been set. + +### GetKeyRetentionDays + +`func (o *ModelsTemplateRetrievalResponse) GetKeyRetentionDays() int32` + +GetKeyRetentionDays returns the KeyRetentionDays field if non-nil, zero value otherwise. + +### GetKeyRetentionDaysOk + +`func (o *ModelsTemplateRetrievalResponse) GetKeyRetentionDaysOk() (*int32, bool)` + +GetKeyRetentionDaysOk returns a tuple with the KeyRetentionDays field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyRetentionDays + +`func (o *ModelsTemplateRetrievalResponse) SetKeyRetentionDays(v int32)` + +SetKeyRetentionDays sets KeyRetentionDays field to given value. + +### HasKeyRetentionDays + +`func (o *ModelsTemplateRetrievalResponse) HasKeyRetentionDays() bool` + +HasKeyRetentionDays returns a boolean if a field has been set. + +### GetKeyArchival + +`func (o *ModelsTemplateRetrievalResponse) GetKeyArchival() bool` + +GetKeyArchival returns the KeyArchival field if non-nil, zero value otherwise. + +### GetKeyArchivalOk + +`func (o *ModelsTemplateRetrievalResponse) GetKeyArchivalOk() (*bool, bool)` + +GetKeyArchivalOk returns a tuple with the KeyArchival field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyArchival + +`func (o *ModelsTemplateRetrievalResponse) SetKeyArchival(v bool)` + +SetKeyArchival sets KeyArchival field to given value. + +### HasKeyArchival + +`func (o *ModelsTemplateRetrievalResponse) HasKeyArchival() bool` + +HasKeyArchival returns a boolean if a field has been set. + +### GetEnrollmentFields + +`func (o *ModelsTemplateRetrievalResponse) GetEnrollmentFields() []ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel` + +GetEnrollmentFields returns the EnrollmentFields field if non-nil, zero value otherwise. + +### GetEnrollmentFieldsOk + +`func (o *ModelsTemplateRetrievalResponse) GetEnrollmentFieldsOk() (*[]ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel, bool)` + +GetEnrollmentFieldsOk returns a tuple with the EnrollmentFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnrollmentFields + +`func (o *ModelsTemplateRetrievalResponse) SetEnrollmentFields(v []ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel)` + +SetEnrollmentFields sets EnrollmentFields field to given value. + +### HasEnrollmentFields + +`func (o *ModelsTemplateRetrievalResponse) HasEnrollmentFields() bool` + +HasEnrollmentFields returns a boolean if a field has been set. + +### GetMetadataFields + +`func (o *ModelsTemplateRetrievalResponse) GetMetadataFields() []ModelsTemplateRetrievalResponseTemplateMetadataFieldModel` + +GetMetadataFields returns the MetadataFields field if non-nil, zero value otherwise. + +### GetMetadataFieldsOk + +`func (o *ModelsTemplateRetrievalResponse) GetMetadataFieldsOk() (*[]ModelsTemplateRetrievalResponseTemplateMetadataFieldModel, bool)` + +GetMetadataFieldsOk returns a tuple with the MetadataFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadataFields + +`func (o *ModelsTemplateRetrievalResponse) SetMetadataFields(v []ModelsTemplateRetrievalResponseTemplateMetadataFieldModel)` + +SetMetadataFields sets MetadataFields field to given value. + +### HasMetadataFields + +`func (o *ModelsTemplateRetrievalResponse) HasMetadataFields() bool` + +HasMetadataFields returns a boolean if a field has been set. + +### GetAllowedEnrollmentTypes + +`func (o *ModelsTemplateRetrievalResponse) GetAllowedEnrollmentTypes() int32` + +GetAllowedEnrollmentTypes returns the AllowedEnrollmentTypes field if non-nil, zero value otherwise. + +### GetAllowedEnrollmentTypesOk + +`func (o *ModelsTemplateRetrievalResponse) GetAllowedEnrollmentTypesOk() (*int32, bool)` + +GetAllowedEnrollmentTypesOk returns a tuple with the AllowedEnrollmentTypes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowedEnrollmentTypes + +`func (o *ModelsTemplateRetrievalResponse) SetAllowedEnrollmentTypes(v int32)` + +SetAllowedEnrollmentTypes sets AllowedEnrollmentTypes field to given value. + +### HasAllowedEnrollmentTypes + +`func (o *ModelsTemplateRetrievalResponse) HasAllowedEnrollmentTypes() bool` + +HasAllowedEnrollmentTypes returns a boolean if a field has been set. + +### GetTemplateRegexes + +`func (o *ModelsTemplateRetrievalResponse) GetTemplateRegexes() []ModelsTemplateRetrievalResponseTemplateRegexModel` + +GetTemplateRegexes returns the TemplateRegexes field if non-nil, zero value otherwise. + +### GetTemplateRegexesOk + +`func (o *ModelsTemplateRetrievalResponse) GetTemplateRegexesOk() (*[]ModelsTemplateRetrievalResponseTemplateRegexModel, bool)` + +GetTemplateRegexesOk returns a tuple with the TemplateRegexes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateRegexes + +`func (o *ModelsTemplateRetrievalResponse) SetTemplateRegexes(v []ModelsTemplateRetrievalResponseTemplateRegexModel)` + +SetTemplateRegexes sets TemplateRegexes field to given value. + +### HasTemplateRegexes + +`func (o *ModelsTemplateRetrievalResponse) HasTemplateRegexes() bool` + +HasTemplateRegexes returns a boolean if a field has been set. + +### GetTemplateDefaults + +`func (o *ModelsTemplateRetrievalResponse) GetTemplateDefaults() []ModelsTemplateRetrievalResponseTemplateDefaultModel` + +GetTemplateDefaults returns the TemplateDefaults field if non-nil, zero value otherwise. + +### GetTemplateDefaultsOk + +`func (o *ModelsTemplateRetrievalResponse) GetTemplateDefaultsOk() (*[]ModelsTemplateRetrievalResponseTemplateDefaultModel, bool)` + +GetTemplateDefaultsOk returns a tuple with the TemplateDefaults field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateDefaults + +`func (o *ModelsTemplateRetrievalResponse) SetTemplateDefaults(v []ModelsTemplateRetrievalResponseTemplateDefaultModel)` + +SetTemplateDefaults sets TemplateDefaults field to given value. + +### HasTemplateDefaults + +`func (o *ModelsTemplateRetrievalResponse) HasTemplateDefaults() bool` + +HasTemplateDefaults returns a boolean if a field has been set. + +### GetTemplatePolicy + +`func (o *ModelsTemplateRetrievalResponse) GetTemplatePolicy() ModelsTemplateRetrievalResponseTemplatePolicyModel` + +GetTemplatePolicy returns the TemplatePolicy field if non-nil, zero value otherwise. + +### GetTemplatePolicyOk + +`func (o *ModelsTemplateRetrievalResponse) GetTemplatePolicyOk() (*ModelsTemplateRetrievalResponseTemplatePolicyModel, bool)` + +GetTemplatePolicyOk returns a tuple with the TemplatePolicy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplatePolicy + +`func (o *ModelsTemplateRetrievalResponse) SetTemplatePolicy(v ModelsTemplateRetrievalResponseTemplatePolicyModel)` + +SetTemplatePolicy sets TemplatePolicy field to given value. + +### HasTemplatePolicy + +`func (o *ModelsTemplateRetrievalResponse) HasTemplatePolicy() bool` + +HasTemplatePolicy returns a boolean if a field has been set. + +### GetUseAllowedRequesters + +`func (o *ModelsTemplateRetrievalResponse) GetUseAllowedRequesters() bool` + +GetUseAllowedRequesters returns the UseAllowedRequesters field if non-nil, zero value otherwise. + +### GetUseAllowedRequestersOk + +`func (o *ModelsTemplateRetrievalResponse) GetUseAllowedRequestersOk() (*bool, bool)` + +GetUseAllowedRequestersOk returns a tuple with the UseAllowedRequesters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseAllowedRequesters + +`func (o *ModelsTemplateRetrievalResponse) SetUseAllowedRequesters(v bool)` + +SetUseAllowedRequesters sets UseAllowedRequesters field to given value. + +### HasUseAllowedRequesters + +`func (o *ModelsTemplateRetrievalResponse) HasUseAllowedRequesters() bool` + +HasUseAllowedRequesters returns a boolean if a field has been set. + +### GetAllowedRequesters + +`func (o *ModelsTemplateRetrievalResponse) GetAllowedRequesters() []string` + +GetAllowedRequesters returns the AllowedRequesters field if non-nil, zero value otherwise. + +### GetAllowedRequestersOk + +`func (o *ModelsTemplateRetrievalResponse) GetAllowedRequestersOk() (*[]string, bool)` + +GetAllowedRequestersOk returns a tuple with the AllowedRequesters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowedRequesters + +`func (o *ModelsTemplateRetrievalResponse) SetAllowedRequesters(v []string)` + +SetAllowedRequesters sets AllowedRequesters field to given value. + +### HasAllowedRequesters + +`func (o *ModelsTemplateRetrievalResponse) HasAllowedRequesters() bool` + +HasAllowedRequesters returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *ModelsTemplateRetrievalResponse) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *ModelsTemplateRetrievalResponse) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *ModelsTemplateRetrievalResponse) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *ModelsTemplateRetrievalResponse) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetRFCEnforcement + +`func (o *ModelsTemplateRetrievalResponse) GetRFCEnforcement() bool` + +GetRFCEnforcement returns the RFCEnforcement field if non-nil, zero value otherwise. + +### GetRFCEnforcementOk + +`func (o *ModelsTemplateRetrievalResponse) GetRFCEnforcementOk() (*bool, bool)` + +GetRFCEnforcementOk returns a tuple with the RFCEnforcement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRFCEnforcement + +`func (o *ModelsTemplateRetrievalResponse) SetRFCEnforcement(v bool)` + +SetRFCEnforcement sets RFCEnforcement field to given value. + +### HasRFCEnforcement + +`func (o *ModelsTemplateRetrievalResponse) HasRFCEnforcement() bool` + +HasRFCEnforcement returns a boolean if a field has been set. + +### GetRequiresApproval + +`func (o *ModelsTemplateRetrievalResponse) GetRequiresApproval() bool` + +GetRequiresApproval returns the RequiresApproval field if non-nil, zero value otherwise. + +### GetRequiresApprovalOk + +`func (o *ModelsTemplateRetrievalResponse) GetRequiresApprovalOk() (*bool, bool)` + +GetRequiresApprovalOk returns a tuple with the RequiresApproval field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequiresApproval + +`func (o *ModelsTemplateRetrievalResponse) SetRequiresApproval(v bool)` + +SetRequiresApproval sets RequiresApproval field to given value. + +### HasRequiresApproval + +`func (o *ModelsTemplateRetrievalResponse) HasRequiresApproval() bool` + +HasRequiresApproval returns a boolean if a field has been set. + +### GetKeyUsage + +`func (o *ModelsTemplateRetrievalResponse) GetKeyUsage() int32` + +GetKeyUsage returns the KeyUsage field if non-nil, zero value otherwise. + +### GetKeyUsageOk + +`func (o *ModelsTemplateRetrievalResponse) GetKeyUsageOk() (*int32, bool)` + +GetKeyUsageOk returns a tuple with the KeyUsage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyUsage + +`func (o *ModelsTemplateRetrievalResponse) SetKeyUsage(v int32)` + +SetKeyUsage sets KeyUsage field to given value. + +### HasKeyUsage + +`func (o *ModelsTemplateRetrievalResponse) HasKeyUsage() bool` + +HasKeyUsage returns a boolean if a field has been set. + +### GetExtendedKeyUsages + +`func (o *ModelsTemplateRetrievalResponse) GetExtendedKeyUsages() []ModelsTemplateRetrievalResponseExtendedKeyUsageModel` + +GetExtendedKeyUsages returns the ExtendedKeyUsages field if non-nil, zero value otherwise. + +### GetExtendedKeyUsagesOk + +`func (o *ModelsTemplateRetrievalResponse) GetExtendedKeyUsagesOk() (*[]ModelsTemplateRetrievalResponseExtendedKeyUsageModel, bool)` + +GetExtendedKeyUsagesOk returns a tuple with the ExtendedKeyUsages field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtendedKeyUsages + +`func (o *ModelsTemplateRetrievalResponse) SetExtendedKeyUsages(v []ModelsTemplateRetrievalResponseExtendedKeyUsageModel)` + +SetExtendedKeyUsages sets ExtendedKeyUsages field to given value. + +### HasExtendedKeyUsages + +`func (o *ModelsTemplateRetrievalResponse) HasExtendedKeyUsages() bool` + +HasExtendedKeyUsages returns a boolean if a field has been set. + +### GetCurve + +`func (o *ModelsTemplateRetrievalResponse) GetCurve() string` + +GetCurve returns the Curve field if non-nil, zero value otherwise. + +### GetCurveOk + +`func (o *ModelsTemplateRetrievalResponse) GetCurveOk() (*string, bool)` + +GetCurveOk returns a tuple with the Curve field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCurve + +`func (o *ModelsTemplateRetrievalResponse) SetCurve(v string)` + +SetCurve sets Curve field to given value. + +### HasCurve + +`func (o *ModelsTemplateRetrievalResponse) HasCurve() bool` + +HasCurve returns a boolean if a field has been set. + +### SetCurveNil + +`func (o *ModelsTemplateRetrievalResponse) SetCurveNil(b bool)` + + SetCurveNil sets the value for Curve to be an explicit nil + +### UnsetCurve +`func (o *ModelsTemplateRetrievalResponse) UnsetCurve()` + +UnsetCurve ensures that no value is present for Curve, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsTemplateRetrievalResponseExtendedKeyUsageModel.md b/v1/docs/ModelsTemplateRetrievalResponseExtendedKeyUsageModel.md new file mode 100644 index 0000000..bbf2eb5 --- /dev/null +++ b/v1/docs/ModelsTemplateRetrievalResponseExtendedKeyUsageModel.md @@ -0,0 +1,108 @@ +# ModelsTemplateRetrievalResponseExtendedKeyUsageModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Oid** | Pointer to **string** | | [optional] +**DisplayName** | Pointer to **string** | | [optional] + +## Methods + +### NewModelsTemplateRetrievalResponseExtendedKeyUsageModel + +`func NewModelsTemplateRetrievalResponseExtendedKeyUsageModel() *ModelsTemplateRetrievalResponseExtendedKeyUsageModel` + +NewModelsTemplateRetrievalResponseExtendedKeyUsageModel instantiates a new ModelsTemplateRetrievalResponseExtendedKeyUsageModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsTemplateRetrievalResponseExtendedKeyUsageModelWithDefaults + +`func NewModelsTemplateRetrievalResponseExtendedKeyUsageModelWithDefaults() *ModelsTemplateRetrievalResponseExtendedKeyUsageModel` + +NewModelsTemplateRetrievalResponseExtendedKeyUsageModelWithDefaults instantiates a new ModelsTemplateRetrievalResponseExtendedKeyUsageModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsTemplateRetrievalResponseExtendedKeyUsageModel) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsTemplateRetrievalResponseExtendedKeyUsageModel) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsTemplateRetrievalResponseExtendedKeyUsageModel) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ModelsTemplateRetrievalResponseExtendedKeyUsageModel) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetOid + +`func (o *ModelsTemplateRetrievalResponseExtendedKeyUsageModel) GetOid() string` + +GetOid returns the Oid field if non-nil, zero value otherwise. + +### GetOidOk + +`func (o *ModelsTemplateRetrievalResponseExtendedKeyUsageModel) GetOidOk() (*string, bool)` + +GetOidOk returns a tuple with the Oid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOid + +`func (o *ModelsTemplateRetrievalResponseExtendedKeyUsageModel) SetOid(v string)` + +SetOid sets Oid field to given value. + +### HasOid + +`func (o *ModelsTemplateRetrievalResponseExtendedKeyUsageModel) HasOid() bool` + +HasOid returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *ModelsTemplateRetrievalResponseExtendedKeyUsageModel) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *ModelsTemplateRetrievalResponseExtendedKeyUsageModel) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *ModelsTemplateRetrievalResponseExtendedKeyUsageModel) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *ModelsTemplateRetrievalResponseExtendedKeyUsageModel) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsTemplateRetrievalResponseTemplateDefaultModel.md b/v1/docs/ModelsTemplateRetrievalResponseTemplateDefaultModel.md new file mode 100644 index 0000000..066bc74 --- /dev/null +++ b/v1/docs/ModelsTemplateRetrievalResponseTemplateDefaultModel.md @@ -0,0 +1,82 @@ +# ModelsTemplateRetrievalResponseTemplateDefaultModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SubjectPart** | Pointer to **string** | | [optional] +**Value** | Pointer to **string** | | [optional] + +## Methods + +### NewModelsTemplateRetrievalResponseTemplateDefaultModel + +`func NewModelsTemplateRetrievalResponseTemplateDefaultModel() *ModelsTemplateRetrievalResponseTemplateDefaultModel` + +NewModelsTemplateRetrievalResponseTemplateDefaultModel instantiates a new ModelsTemplateRetrievalResponseTemplateDefaultModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsTemplateRetrievalResponseTemplateDefaultModelWithDefaults + +`func NewModelsTemplateRetrievalResponseTemplateDefaultModelWithDefaults() *ModelsTemplateRetrievalResponseTemplateDefaultModel` + +NewModelsTemplateRetrievalResponseTemplateDefaultModelWithDefaults instantiates a new ModelsTemplateRetrievalResponseTemplateDefaultModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSubjectPart + +`func (o *ModelsTemplateRetrievalResponseTemplateDefaultModel) GetSubjectPart() string` + +GetSubjectPart returns the SubjectPart field if non-nil, zero value otherwise. + +### GetSubjectPartOk + +`func (o *ModelsTemplateRetrievalResponseTemplateDefaultModel) GetSubjectPartOk() (*string, bool)` + +GetSubjectPartOk returns a tuple with the SubjectPart field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubjectPart + +`func (o *ModelsTemplateRetrievalResponseTemplateDefaultModel) SetSubjectPart(v string)` + +SetSubjectPart sets SubjectPart field to given value. + +### HasSubjectPart + +`func (o *ModelsTemplateRetrievalResponseTemplateDefaultModel) HasSubjectPart() bool` + +HasSubjectPart returns a boolean if a field has been set. + +### GetValue + +`func (o *ModelsTemplateRetrievalResponseTemplateDefaultModel) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *ModelsTemplateRetrievalResponseTemplateDefaultModel) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *ModelsTemplateRetrievalResponseTemplateDefaultModel) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *ModelsTemplateRetrievalResponseTemplateDefaultModel) HasValue() bool` + +HasValue returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel.md b/v1/docs/ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel.md new file mode 100644 index 0000000..138d1fb --- /dev/null +++ b/v1/docs/ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel.md @@ -0,0 +1,134 @@ +# ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Options** | Pointer to **[]string** | | [optional] +**DataType** | Pointer to **int32** | | [optional] + +## Methods + +### NewModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel + +`func NewModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel() *ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel` + +NewModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel instantiates a new ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsTemplateRetrievalResponseTemplateEnrollmentFieldModelWithDefaults + +`func NewModelsTemplateRetrievalResponseTemplateEnrollmentFieldModelWithDefaults() *ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel` + +NewModelsTemplateRetrievalResponseTemplateEnrollmentFieldModelWithDefaults instantiates a new ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetOptions + +`func (o *ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel) GetOptions() []string` + +GetOptions returns the Options field if non-nil, zero value otherwise. + +### GetOptionsOk + +`func (o *ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel) GetOptionsOk() (*[]string, bool)` + +GetOptionsOk returns a tuple with the Options field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOptions + +`func (o *ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel) SetOptions(v []string)` + +SetOptions sets Options field to given value. + +### HasOptions + +`func (o *ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel) HasOptions() bool` + +HasOptions returns a boolean if a field has been set. + +### GetDataType + +`func (o *ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel) GetDataType() int32` + +GetDataType returns the DataType field if non-nil, zero value otherwise. + +### GetDataTypeOk + +`func (o *ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel) GetDataTypeOk() (*int32, bool)` + +GetDataTypeOk returns a tuple with the DataType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataType + +`func (o *ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel) SetDataType(v int32)` + +SetDataType sets DataType field to given value. + +### HasDataType + +`func (o *ModelsTemplateRetrievalResponseTemplateEnrollmentFieldModel) HasDataType() bool` + +HasDataType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsTemplateRetrievalResponseTemplateMetadataFieldModel.md b/v1/docs/ModelsTemplateRetrievalResponseTemplateMetadataFieldModel.md new file mode 100644 index 0000000..bb2355c --- /dev/null +++ b/v1/docs/ModelsTemplateRetrievalResponseTemplateMetadataFieldModel.md @@ -0,0 +1,186 @@ +# ModelsTemplateRetrievalResponseTemplateMetadataFieldModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**DefaultValue** | Pointer to **string** | | [optional] +**MetadataId** | Pointer to **int32** | | [optional] +**Validation** | Pointer to **string** | | [optional] +**Enrollment** | Pointer to **int32** | | [optional] +**Message** | Pointer to **string** | | [optional] + +## Methods + +### NewModelsTemplateRetrievalResponseTemplateMetadataFieldModel + +`func NewModelsTemplateRetrievalResponseTemplateMetadataFieldModel() *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel` + +NewModelsTemplateRetrievalResponseTemplateMetadataFieldModel instantiates a new ModelsTemplateRetrievalResponseTemplateMetadataFieldModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsTemplateRetrievalResponseTemplateMetadataFieldModelWithDefaults + +`func NewModelsTemplateRetrievalResponseTemplateMetadataFieldModelWithDefaults() *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel` + +NewModelsTemplateRetrievalResponseTemplateMetadataFieldModelWithDefaults instantiates a new ModelsTemplateRetrievalResponseTemplateMetadataFieldModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetDefaultValue + +`func (o *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel) GetDefaultValue() string` + +GetDefaultValue returns the DefaultValue field if non-nil, zero value otherwise. + +### GetDefaultValueOk + +`func (o *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel) GetDefaultValueOk() (*string, bool)` + +GetDefaultValueOk returns a tuple with the DefaultValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultValue + +`func (o *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel) SetDefaultValue(v string)` + +SetDefaultValue sets DefaultValue field to given value. + +### HasDefaultValue + +`func (o *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel) HasDefaultValue() bool` + +HasDefaultValue returns a boolean if a field has been set. + +### GetMetadataId + +`func (o *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel) GetMetadataId() int32` + +GetMetadataId returns the MetadataId field if non-nil, zero value otherwise. + +### GetMetadataIdOk + +`func (o *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel) GetMetadataIdOk() (*int32, bool)` + +GetMetadataIdOk returns a tuple with the MetadataId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadataId + +`func (o *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel) SetMetadataId(v int32)` + +SetMetadataId sets MetadataId field to given value. + +### HasMetadataId + +`func (o *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel) HasMetadataId() bool` + +HasMetadataId returns a boolean if a field has been set. + +### GetValidation + +`func (o *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel) GetValidation() string` + +GetValidation returns the Validation field if non-nil, zero value otherwise. + +### GetValidationOk + +`func (o *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel) GetValidationOk() (*string, bool)` + +GetValidationOk returns a tuple with the Validation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValidation + +`func (o *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel) SetValidation(v string)` + +SetValidation sets Validation field to given value. + +### HasValidation + +`func (o *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel) HasValidation() bool` + +HasValidation returns a boolean if a field has been set. + +### GetEnrollment + +`func (o *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel) GetEnrollment() int32` + +GetEnrollment returns the Enrollment field if non-nil, zero value otherwise. + +### GetEnrollmentOk + +`func (o *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel) GetEnrollmentOk() (*int32, bool)` + +GetEnrollmentOk returns a tuple with the Enrollment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnrollment + +`func (o *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel) SetEnrollment(v int32)` + +SetEnrollment sets Enrollment field to given value. + +### HasEnrollment + +`func (o *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel) HasEnrollment() bool` + +HasEnrollment returns a boolean if a field has been set. + +### GetMessage + +`func (o *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *ModelsTemplateRetrievalResponseTemplateMetadataFieldModel) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsTemplateRetrievalResponseTemplatePolicyModel.md b/v1/docs/ModelsTemplateRetrievalResponseTemplatePolicyModel.md new file mode 100644 index 0000000..a29691a --- /dev/null +++ b/v1/docs/ModelsTemplateRetrievalResponseTemplatePolicyModel.md @@ -0,0 +1,186 @@ +# ModelsTemplateRetrievalResponseTemplatePolicyModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TemplateId** | Pointer to **int32** | | [optional] +**RSAValidKeySizes** | Pointer to **[]int32** | | [optional] +**ECCValidCurves** | Pointer to **[]string** | | [optional] +**AllowKeyReuse** | Pointer to **bool** | | [optional] +**AllowWildcards** | Pointer to **bool** | | [optional] +**RFCEnforcement** | Pointer to **bool** | | [optional] + +## Methods + +### NewModelsTemplateRetrievalResponseTemplatePolicyModel + +`func NewModelsTemplateRetrievalResponseTemplatePolicyModel() *ModelsTemplateRetrievalResponseTemplatePolicyModel` + +NewModelsTemplateRetrievalResponseTemplatePolicyModel instantiates a new ModelsTemplateRetrievalResponseTemplatePolicyModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsTemplateRetrievalResponseTemplatePolicyModelWithDefaults + +`func NewModelsTemplateRetrievalResponseTemplatePolicyModelWithDefaults() *ModelsTemplateRetrievalResponseTemplatePolicyModel` + +NewModelsTemplateRetrievalResponseTemplatePolicyModelWithDefaults instantiates a new ModelsTemplateRetrievalResponseTemplatePolicyModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTemplateId + +`func (o *ModelsTemplateRetrievalResponseTemplatePolicyModel) GetTemplateId() int32` + +GetTemplateId returns the TemplateId field if non-nil, zero value otherwise. + +### GetTemplateIdOk + +`func (o *ModelsTemplateRetrievalResponseTemplatePolicyModel) GetTemplateIdOk() (*int32, bool)` + +GetTemplateIdOk returns a tuple with the TemplateId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateId + +`func (o *ModelsTemplateRetrievalResponseTemplatePolicyModel) SetTemplateId(v int32)` + +SetTemplateId sets TemplateId field to given value. + +### HasTemplateId + +`func (o *ModelsTemplateRetrievalResponseTemplatePolicyModel) HasTemplateId() bool` + +HasTemplateId returns a boolean if a field has been set. + +### GetRSAValidKeySizes + +`func (o *ModelsTemplateRetrievalResponseTemplatePolicyModel) GetRSAValidKeySizes() []int32` + +GetRSAValidKeySizes returns the RSAValidKeySizes field if non-nil, zero value otherwise. + +### GetRSAValidKeySizesOk + +`func (o *ModelsTemplateRetrievalResponseTemplatePolicyModel) GetRSAValidKeySizesOk() (*[]int32, bool)` + +GetRSAValidKeySizesOk returns a tuple with the RSAValidKeySizes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRSAValidKeySizes + +`func (o *ModelsTemplateRetrievalResponseTemplatePolicyModel) SetRSAValidKeySizes(v []int32)` + +SetRSAValidKeySizes sets RSAValidKeySizes field to given value. + +### HasRSAValidKeySizes + +`func (o *ModelsTemplateRetrievalResponseTemplatePolicyModel) HasRSAValidKeySizes() bool` + +HasRSAValidKeySizes returns a boolean if a field has been set. + +### GetECCValidCurves + +`func (o *ModelsTemplateRetrievalResponseTemplatePolicyModel) GetECCValidCurves() []string` + +GetECCValidCurves returns the ECCValidCurves field if non-nil, zero value otherwise. + +### GetECCValidCurvesOk + +`func (o *ModelsTemplateRetrievalResponseTemplatePolicyModel) GetECCValidCurvesOk() (*[]string, bool)` + +GetECCValidCurvesOk returns a tuple with the ECCValidCurves field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetECCValidCurves + +`func (o *ModelsTemplateRetrievalResponseTemplatePolicyModel) SetECCValidCurves(v []string)` + +SetECCValidCurves sets ECCValidCurves field to given value. + +### HasECCValidCurves + +`func (o *ModelsTemplateRetrievalResponseTemplatePolicyModel) HasECCValidCurves() bool` + +HasECCValidCurves returns a boolean if a field has been set. + +### GetAllowKeyReuse + +`func (o *ModelsTemplateRetrievalResponseTemplatePolicyModel) GetAllowKeyReuse() bool` + +GetAllowKeyReuse returns the AllowKeyReuse field if non-nil, zero value otherwise. + +### GetAllowKeyReuseOk + +`func (o *ModelsTemplateRetrievalResponseTemplatePolicyModel) GetAllowKeyReuseOk() (*bool, bool)` + +GetAllowKeyReuseOk returns a tuple with the AllowKeyReuse field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowKeyReuse + +`func (o *ModelsTemplateRetrievalResponseTemplatePolicyModel) SetAllowKeyReuse(v bool)` + +SetAllowKeyReuse sets AllowKeyReuse field to given value. + +### HasAllowKeyReuse + +`func (o *ModelsTemplateRetrievalResponseTemplatePolicyModel) HasAllowKeyReuse() bool` + +HasAllowKeyReuse returns a boolean if a field has been set. + +### GetAllowWildcards + +`func (o *ModelsTemplateRetrievalResponseTemplatePolicyModel) GetAllowWildcards() bool` + +GetAllowWildcards returns the AllowWildcards field if non-nil, zero value otherwise. + +### GetAllowWildcardsOk + +`func (o *ModelsTemplateRetrievalResponseTemplatePolicyModel) GetAllowWildcardsOk() (*bool, bool)` + +GetAllowWildcardsOk returns a tuple with the AllowWildcards field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowWildcards + +`func (o *ModelsTemplateRetrievalResponseTemplatePolicyModel) SetAllowWildcards(v bool)` + +SetAllowWildcards sets AllowWildcards field to given value. + +### HasAllowWildcards + +`func (o *ModelsTemplateRetrievalResponseTemplatePolicyModel) HasAllowWildcards() bool` + +HasAllowWildcards returns a boolean if a field has been set. + +### GetRFCEnforcement + +`func (o *ModelsTemplateRetrievalResponseTemplatePolicyModel) GetRFCEnforcement() bool` + +GetRFCEnforcement returns the RFCEnforcement field if non-nil, zero value otherwise. + +### GetRFCEnforcementOk + +`func (o *ModelsTemplateRetrievalResponseTemplatePolicyModel) GetRFCEnforcementOk() (*bool, bool)` + +GetRFCEnforcementOk returns a tuple with the RFCEnforcement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRFCEnforcement + +`func (o *ModelsTemplateRetrievalResponseTemplatePolicyModel) SetRFCEnforcement(v bool)` + +SetRFCEnforcement sets RFCEnforcement field to given value. + +### HasRFCEnforcement + +`func (o *ModelsTemplateRetrievalResponseTemplatePolicyModel) HasRFCEnforcement() bool` + +HasRFCEnforcement returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsTemplateRetrievalResponseTemplateRegexModel.md b/v1/docs/ModelsTemplateRetrievalResponseTemplateRegexModel.md new file mode 100644 index 0000000..8f66b60 --- /dev/null +++ b/v1/docs/ModelsTemplateRetrievalResponseTemplateRegexModel.md @@ -0,0 +1,134 @@ +# ModelsTemplateRetrievalResponseTemplateRegexModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TemplateId** | Pointer to **int32** | | [optional] +**SubjectPart** | Pointer to **string** | | [optional] +**Regex** | Pointer to **string** | | [optional] +**Error** | Pointer to **string** | | [optional] + +## Methods + +### NewModelsTemplateRetrievalResponseTemplateRegexModel + +`func NewModelsTemplateRetrievalResponseTemplateRegexModel() *ModelsTemplateRetrievalResponseTemplateRegexModel` + +NewModelsTemplateRetrievalResponseTemplateRegexModel instantiates a new ModelsTemplateRetrievalResponseTemplateRegexModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsTemplateRetrievalResponseTemplateRegexModelWithDefaults + +`func NewModelsTemplateRetrievalResponseTemplateRegexModelWithDefaults() *ModelsTemplateRetrievalResponseTemplateRegexModel` + +NewModelsTemplateRetrievalResponseTemplateRegexModelWithDefaults instantiates a new ModelsTemplateRetrievalResponseTemplateRegexModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTemplateId + +`func (o *ModelsTemplateRetrievalResponseTemplateRegexModel) GetTemplateId() int32` + +GetTemplateId returns the TemplateId field if non-nil, zero value otherwise. + +### GetTemplateIdOk + +`func (o *ModelsTemplateRetrievalResponseTemplateRegexModel) GetTemplateIdOk() (*int32, bool)` + +GetTemplateIdOk returns a tuple with the TemplateId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateId + +`func (o *ModelsTemplateRetrievalResponseTemplateRegexModel) SetTemplateId(v int32)` + +SetTemplateId sets TemplateId field to given value. + +### HasTemplateId + +`func (o *ModelsTemplateRetrievalResponseTemplateRegexModel) HasTemplateId() bool` + +HasTemplateId returns a boolean if a field has been set. + +### GetSubjectPart + +`func (o *ModelsTemplateRetrievalResponseTemplateRegexModel) GetSubjectPart() string` + +GetSubjectPart returns the SubjectPart field if non-nil, zero value otherwise. + +### GetSubjectPartOk + +`func (o *ModelsTemplateRetrievalResponseTemplateRegexModel) GetSubjectPartOk() (*string, bool)` + +GetSubjectPartOk returns a tuple with the SubjectPart field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubjectPart + +`func (o *ModelsTemplateRetrievalResponseTemplateRegexModel) SetSubjectPart(v string)` + +SetSubjectPart sets SubjectPart field to given value. + +### HasSubjectPart + +`func (o *ModelsTemplateRetrievalResponseTemplateRegexModel) HasSubjectPart() bool` + +HasSubjectPart returns a boolean if a field has been set. + +### GetRegex + +`func (o *ModelsTemplateRetrievalResponseTemplateRegexModel) GetRegex() string` + +GetRegex returns the Regex field if non-nil, zero value otherwise. + +### GetRegexOk + +`func (o *ModelsTemplateRetrievalResponseTemplateRegexModel) GetRegexOk() (*string, bool)` + +GetRegexOk returns a tuple with the Regex field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegex + +`func (o *ModelsTemplateRetrievalResponseTemplateRegexModel) SetRegex(v string)` + +SetRegex sets Regex field to given value. + +### HasRegex + +`func (o *ModelsTemplateRetrievalResponseTemplateRegexModel) HasRegex() bool` + +HasRegex returns a boolean if a field has been set. + +### GetError + +`func (o *ModelsTemplateRetrievalResponseTemplateRegexModel) GetError() string` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *ModelsTemplateRetrievalResponseTemplateRegexModel) GetErrorOk() (*string, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *ModelsTemplateRetrievalResponseTemplateRegexModel) SetError(v string)` + +SetError sets Error field to given value. + +### HasError + +`func (o *ModelsTemplateRetrievalResponseTemplateRegexModel) HasError() bool` + +HasError returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsTemplateUpdateRequest.md b/v1/docs/ModelsTemplateUpdateRequest.md new file mode 100644 index 0000000..3f741f8 --- /dev/null +++ b/v1/docs/ModelsTemplateUpdateRequest.md @@ -0,0 +1,472 @@ +# ModelsTemplateUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**KeySize** | Pointer to **string** | | [optional] +**KeyType** | Pointer to **string** | | [optional] +**FriendlyName** | Pointer to **string** | | [optional] +**KeyRetention** | Pointer to **int32** | | [optional] +**KeyRetentionDays** | Pointer to **int32** | | [optional] +**KeyArchival** | Pointer to **bool** | | [optional] +**EnrollmentFields** | Pointer to [**[]ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel**](ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel.md) | | [optional] +**MetadataFields** | Pointer to [**[]ModelsTemplateUpdateRequestTemplateMetadataFieldModel**](ModelsTemplateUpdateRequestTemplateMetadataFieldModel.md) | | [optional] +**AllowedEnrollmentTypes** | Pointer to **int32** | | [optional] +**TemplateRegexes** | Pointer to [**[]ModelsTemplateUpdateRequestTemplateRegexModel**](ModelsTemplateUpdateRequestTemplateRegexModel.md) | | [optional] +**TemplateDefaults** | Pointer to [**[]ModelsTemplateUpdateRequestTemplateDefaultModel**](ModelsTemplateUpdateRequestTemplateDefaultModel.md) | | [optional] +**TemplatePolicy** | Pointer to [**ModelsTemplateUpdateRequestTemplatePolicyModel**](ModelsTemplateUpdateRequestTemplatePolicyModel.md) | | [optional] +**UseAllowedRequesters** | Pointer to **bool** | | [optional] +**AllowedRequesters** | Pointer to **[]string** | | [optional] +**RequiresApproval** | Pointer to **bool** | | [optional] +**KeyUsage** | Pointer to **int32** | | [optional] + +## Methods + +### NewModelsTemplateUpdateRequest + +`func NewModelsTemplateUpdateRequest() *ModelsTemplateUpdateRequest` + +NewModelsTemplateUpdateRequest instantiates a new ModelsTemplateUpdateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsTemplateUpdateRequestWithDefaults + +`func NewModelsTemplateUpdateRequestWithDefaults() *ModelsTemplateUpdateRequest` + +NewModelsTemplateUpdateRequestWithDefaults instantiates a new ModelsTemplateUpdateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsTemplateUpdateRequest) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsTemplateUpdateRequest) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsTemplateUpdateRequest) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ModelsTemplateUpdateRequest) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetKeySize + +`func (o *ModelsTemplateUpdateRequest) GetKeySize() string` + +GetKeySize returns the KeySize field if non-nil, zero value otherwise. + +### GetKeySizeOk + +`func (o *ModelsTemplateUpdateRequest) GetKeySizeOk() (*string, bool)` + +GetKeySizeOk returns a tuple with the KeySize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeySize + +`func (o *ModelsTemplateUpdateRequest) SetKeySize(v string)` + +SetKeySize sets KeySize field to given value. + +### HasKeySize + +`func (o *ModelsTemplateUpdateRequest) HasKeySize() bool` + +HasKeySize returns a boolean if a field has been set. + +### GetKeyType + +`func (o *ModelsTemplateUpdateRequest) GetKeyType() string` + +GetKeyType returns the KeyType field if non-nil, zero value otherwise. + +### GetKeyTypeOk + +`func (o *ModelsTemplateUpdateRequest) GetKeyTypeOk() (*string, bool)` + +GetKeyTypeOk returns a tuple with the KeyType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyType + +`func (o *ModelsTemplateUpdateRequest) SetKeyType(v string)` + +SetKeyType sets KeyType field to given value. + +### HasKeyType + +`func (o *ModelsTemplateUpdateRequest) HasKeyType() bool` + +HasKeyType returns a boolean if a field has been set. + +### GetFriendlyName + +`func (o *ModelsTemplateUpdateRequest) GetFriendlyName() string` + +GetFriendlyName returns the FriendlyName field if non-nil, zero value otherwise. + +### GetFriendlyNameOk + +`func (o *ModelsTemplateUpdateRequest) GetFriendlyNameOk() (*string, bool)` + +GetFriendlyNameOk returns a tuple with the FriendlyName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFriendlyName + +`func (o *ModelsTemplateUpdateRequest) SetFriendlyName(v string)` + +SetFriendlyName sets FriendlyName field to given value. + +### HasFriendlyName + +`func (o *ModelsTemplateUpdateRequest) HasFriendlyName() bool` + +HasFriendlyName returns a boolean if a field has been set. + +### GetKeyRetention + +`func (o *ModelsTemplateUpdateRequest) GetKeyRetention() int32` + +GetKeyRetention returns the KeyRetention field if non-nil, zero value otherwise. + +### GetKeyRetentionOk + +`func (o *ModelsTemplateUpdateRequest) GetKeyRetentionOk() (*int32, bool)` + +GetKeyRetentionOk returns a tuple with the KeyRetention field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyRetention + +`func (o *ModelsTemplateUpdateRequest) SetKeyRetention(v int32)` + +SetKeyRetention sets KeyRetention field to given value. + +### HasKeyRetention + +`func (o *ModelsTemplateUpdateRequest) HasKeyRetention() bool` + +HasKeyRetention returns a boolean if a field has been set. + +### GetKeyRetentionDays + +`func (o *ModelsTemplateUpdateRequest) GetKeyRetentionDays() int32` + +GetKeyRetentionDays returns the KeyRetentionDays field if non-nil, zero value otherwise. + +### GetKeyRetentionDaysOk + +`func (o *ModelsTemplateUpdateRequest) GetKeyRetentionDaysOk() (*int32, bool)` + +GetKeyRetentionDaysOk returns a tuple with the KeyRetentionDays field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyRetentionDays + +`func (o *ModelsTemplateUpdateRequest) SetKeyRetentionDays(v int32)` + +SetKeyRetentionDays sets KeyRetentionDays field to given value. + +### HasKeyRetentionDays + +`func (o *ModelsTemplateUpdateRequest) HasKeyRetentionDays() bool` + +HasKeyRetentionDays returns a boolean if a field has been set. + +### GetKeyArchival + +`func (o *ModelsTemplateUpdateRequest) GetKeyArchival() bool` + +GetKeyArchival returns the KeyArchival field if non-nil, zero value otherwise. + +### GetKeyArchivalOk + +`func (o *ModelsTemplateUpdateRequest) GetKeyArchivalOk() (*bool, bool)` + +GetKeyArchivalOk returns a tuple with the KeyArchival field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyArchival + +`func (o *ModelsTemplateUpdateRequest) SetKeyArchival(v bool)` + +SetKeyArchival sets KeyArchival field to given value. + +### HasKeyArchival + +`func (o *ModelsTemplateUpdateRequest) HasKeyArchival() bool` + +HasKeyArchival returns a boolean if a field has been set. + +### GetEnrollmentFields + +`func (o *ModelsTemplateUpdateRequest) GetEnrollmentFields() []ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel` + +GetEnrollmentFields returns the EnrollmentFields field if non-nil, zero value otherwise. + +### GetEnrollmentFieldsOk + +`func (o *ModelsTemplateUpdateRequest) GetEnrollmentFieldsOk() (*[]ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel, bool)` + +GetEnrollmentFieldsOk returns a tuple with the EnrollmentFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnrollmentFields + +`func (o *ModelsTemplateUpdateRequest) SetEnrollmentFields(v []ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel)` + +SetEnrollmentFields sets EnrollmentFields field to given value. + +### HasEnrollmentFields + +`func (o *ModelsTemplateUpdateRequest) HasEnrollmentFields() bool` + +HasEnrollmentFields returns a boolean if a field has been set. + +### GetMetadataFields + +`func (o *ModelsTemplateUpdateRequest) GetMetadataFields() []ModelsTemplateUpdateRequestTemplateMetadataFieldModel` + +GetMetadataFields returns the MetadataFields field if non-nil, zero value otherwise. + +### GetMetadataFieldsOk + +`func (o *ModelsTemplateUpdateRequest) GetMetadataFieldsOk() (*[]ModelsTemplateUpdateRequestTemplateMetadataFieldModel, bool)` + +GetMetadataFieldsOk returns a tuple with the MetadataFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadataFields + +`func (o *ModelsTemplateUpdateRequest) SetMetadataFields(v []ModelsTemplateUpdateRequestTemplateMetadataFieldModel)` + +SetMetadataFields sets MetadataFields field to given value. + +### HasMetadataFields + +`func (o *ModelsTemplateUpdateRequest) HasMetadataFields() bool` + +HasMetadataFields returns a boolean if a field has been set. + +### GetAllowedEnrollmentTypes + +`func (o *ModelsTemplateUpdateRequest) GetAllowedEnrollmentTypes() int32` + +GetAllowedEnrollmentTypes returns the AllowedEnrollmentTypes field if non-nil, zero value otherwise. + +### GetAllowedEnrollmentTypesOk + +`func (o *ModelsTemplateUpdateRequest) GetAllowedEnrollmentTypesOk() (*int32, bool)` + +GetAllowedEnrollmentTypesOk returns a tuple with the AllowedEnrollmentTypes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowedEnrollmentTypes + +`func (o *ModelsTemplateUpdateRequest) SetAllowedEnrollmentTypes(v int32)` + +SetAllowedEnrollmentTypes sets AllowedEnrollmentTypes field to given value. + +### HasAllowedEnrollmentTypes + +`func (o *ModelsTemplateUpdateRequest) HasAllowedEnrollmentTypes() bool` + +HasAllowedEnrollmentTypes returns a boolean if a field has been set. + +### GetTemplateRegexes + +`func (o *ModelsTemplateUpdateRequest) GetTemplateRegexes() []ModelsTemplateUpdateRequestTemplateRegexModel` + +GetTemplateRegexes returns the TemplateRegexes field if non-nil, zero value otherwise. + +### GetTemplateRegexesOk + +`func (o *ModelsTemplateUpdateRequest) GetTemplateRegexesOk() (*[]ModelsTemplateUpdateRequestTemplateRegexModel, bool)` + +GetTemplateRegexesOk returns a tuple with the TemplateRegexes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateRegexes + +`func (o *ModelsTemplateUpdateRequest) SetTemplateRegexes(v []ModelsTemplateUpdateRequestTemplateRegexModel)` + +SetTemplateRegexes sets TemplateRegexes field to given value. + +### HasTemplateRegexes + +`func (o *ModelsTemplateUpdateRequest) HasTemplateRegexes() bool` + +HasTemplateRegexes returns a boolean if a field has been set. + +### GetTemplateDefaults + +`func (o *ModelsTemplateUpdateRequest) GetTemplateDefaults() []ModelsTemplateUpdateRequestTemplateDefaultModel` + +GetTemplateDefaults returns the TemplateDefaults field if non-nil, zero value otherwise. + +### GetTemplateDefaultsOk + +`func (o *ModelsTemplateUpdateRequest) GetTemplateDefaultsOk() (*[]ModelsTemplateUpdateRequestTemplateDefaultModel, bool)` + +GetTemplateDefaultsOk returns a tuple with the TemplateDefaults field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateDefaults + +`func (o *ModelsTemplateUpdateRequest) SetTemplateDefaults(v []ModelsTemplateUpdateRequestTemplateDefaultModel)` + +SetTemplateDefaults sets TemplateDefaults field to given value. + +### HasTemplateDefaults + +`func (o *ModelsTemplateUpdateRequest) HasTemplateDefaults() bool` + +HasTemplateDefaults returns a boolean if a field has been set. + +### GetTemplatePolicy + +`func (o *ModelsTemplateUpdateRequest) GetTemplatePolicy() ModelsTemplateUpdateRequestTemplatePolicyModel` + +GetTemplatePolicy returns the TemplatePolicy field if non-nil, zero value otherwise. + +### GetTemplatePolicyOk + +`func (o *ModelsTemplateUpdateRequest) GetTemplatePolicyOk() (*ModelsTemplateUpdateRequestTemplatePolicyModel, bool)` + +GetTemplatePolicyOk returns a tuple with the TemplatePolicy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplatePolicy + +`func (o *ModelsTemplateUpdateRequest) SetTemplatePolicy(v ModelsTemplateUpdateRequestTemplatePolicyModel)` + +SetTemplatePolicy sets TemplatePolicy field to given value. + +### HasTemplatePolicy + +`func (o *ModelsTemplateUpdateRequest) HasTemplatePolicy() bool` + +HasTemplatePolicy returns a boolean if a field has been set. + +### GetUseAllowedRequesters + +`func (o *ModelsTemplateUpdateRequest) GetUseAllowedRequesters() bool` + +GetUseAllowedRequesters returns the UseAllowedRequesters field if non-nil, zero value otherwise. + +### GetUseAllowedRequestersOk + +`func (o *ModelsTemplateUpdateRequest) GetUseAllowedRequestersOk() (*bool, bool)` + +GetUseAllowedRequestersOk returns a tuple with the UseAllowedRequesters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseAllowedRequesters + +`func (o *ModelsTemplateUpdateRequest) SetUseAllowedRequesters(v bool)` + +SetUseAllowedRequesters sets UseAllowedRequesters field to given value. + +### HasUseAllowedRequesters + +`func (o *ModelsTemplateUpdateRequest) HasUseAllowedRequesters() bool` + +HasUseAllowedRequesters returns a boolean if a field has been set. + +### GetAllowedRequesters + +`func (o *ModelsTemplateUpdateRequest) GetAllowedRequesters() []string` + +GetAllowedRequesters returns the AllowedRequesters field if non-nil, zero value otherwise. + +### GetAllowedRequestersOk + +`func (o *ModelsTemplateUpdateRequest) GetAllowedRequestersOk() (*[]string, bool)` + +GetAllowedRequestersOk returns a tuple with the AllowedRequesters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowedRequesters + +`func (o *ModelsTemplateUpdateRequest) SetAllowedRequesters(v []string)` + +SetAllowedRequesters sets AllowedRequesters field to given value. + +### HasAllowedRequesters + +`func (o *ModelsTemplateUpdateRequest) HasAllowedRequesters() bool` + +HasAllowedRequesters returns a boolean if a field has been set. + +### GetRequiresApproval + +`func (o *ModelsTemplateUpdateRequest) GetRequiresApproval() bool` + +GetRequiresApproval returns the RequiresApproval field if non-nil, zero value otherwise. + +### GetRequiresApprovalOk + +`func (o *ModelsTemplateUpdateRequest) GetRequiresApprovalOk() (*bool, bool)` + +GetRequiresApprovalOk returns a tuple with the RequiresApproval field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequiresApproval + +`func (o *ModelsTemplateUpdateRequest) SetRequiresApproval(v bool)` + +SetRequiresApproval sets RequiresApproval field to given value. + +### HasRequiresApproval + +`func (o *ModelsTemplateUpdateRequest) HasRequiresApproval() bool` + +HasRequiresApproval returns a boolean if a field has been set. + +### GetKeyUsage + +`func (o *ModelsTemplateUpdateRequest) GetKeyUsage() int32` + +GetKeyUsage returns the KeyUsage field if non-nil, zero value otherwise. + +### GetKeyUsageOk + +`func (o *ModelsTemplateUpdateRequest) GetKeyUsageOk() (*int32, bool)` + +GetKeyUsageOk returns a tuple with the KeyUsage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyUsage + +`func (o *ModelsTemplateUpdateRequest) SetKeyUsage(v int32)` + +SetKeyUsage sets KeyUsage field to given value. + +### HasKeyUsage + +`func (o *ModelsTemplateUpdateRequest) HasKeyUsage() bool` + +HasKeyUsage returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsTemplateUpdateRequestTemplateDefaultModel.md b/v1/docs/ModelsTemplateUpdateRequestTemplateDefaultModel.md new file mode 100644 index 0000000..9f443e1 --- /dev/null +++ b/v1/docs/ModelsTemplateUpdateRequestTemplateDefaultModel.md @@ -0,0 +1,82 @@ +# ModelsTemplateUpdateRequestTemplateDefaultModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SubjectPart** | Pointer to **string** | | [optional] +**Value** | Pointer to **string** | | [optional] + +## Methods + +### NewModelsTemplateUpdateRequestTemplateDefaultModel + +`func NewModelsTemplateUpdateRequestTemplateDefaultModel() *ModelsTemplateUpdateRequestTemplateDefaultModel` + +NewModelsTemplateUpdateRequestTemplateDefaultModel instantiates a new ModelsTemplateUpdateRequestTemplateDefaultModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsTemplateUpdateRequestTemplateDefaultModelWithDefaults + +`func NewModelsTemplateUpdateRequestTemplateDefaultModelWithDefaults() *ModelsTemplateUpdateRequestTemplateDefaultModel` + +NewModelsTemplateUpdateRequestTemplateDefaultModelWithDefaults instantiates a new ModelsTemplateUpdateRequestTemplateDefaultModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSubjectPart + +`func (o *ModelsTemplateUpdateRequestTemplateDefaultModel) GetSubjectPart() string` + +GetSubjectPart returns the SubjectPart field if non-nil, zero value otherwise. + +### GetSubjectPartOk + +`func (o *ModelsTemplateUpdateRequestTemplateDefaultModel) GetSubjectPartOk() (*string, bool)` + +GetSubjectPartOk returns a tuple with the SubjectPart field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubjectPart + +`func (o *ModelsTemplateUpdateRequestTemplateDefaultModel) SetSubjectPart(v string)` + +SetSubjectPart sets SubjectPart field to given value. + +### HasSubjectPart + +`func (o *ModelsTemplateUpdateRequestTemplateDefaultModel) HasSubjectPart() bool` + +HasSubjectPart returns a boolean if a field has been set. + +### GetValue + +`func (o *ModelsTemplateUpdateRequestTemplateDefaultModel) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *ModelsTemplateUpdateRequestTemplateDefaultModel) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *ModelsTemplateUpdateRequestTemplateDefaultModel) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *ModelsTemplateUpdateRequestTemplateDefaultModel) HasValue() bool` + +HasValue returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel.md b/v1/docs/ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel.md new file mode 100644 index 0000000..191c44e --- /dev/null +++ b/v1/docs/ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel.md @@ -0,0 +1,134 @@ +# ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Options** | Pointer to **[]string** | | [optional] +**DataType** | Pointer to **int32** | | [optional] + +## Methods + +### NewModelsTemplateUpdateRequestTemplateEnrollmentFieldModel + +`func NewModelsTemplateUpdateRequestTemplateEnrollmentFieldModel() *ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel` + +NewModelsTemplateUpdateRequestTemplateEnrollmentFieldModel instantiates a new ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsTemplateUpdateRequestTemplateEnrollmentFieldModelWithDefaults + +`func NewModelsTemplateUpdateRequestTemplateEnrollmentFieldModelWithDefaults() *ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel` + +NewModelsTemplateUpdateRequestTemplateEnrollmentFieldModelWithDefaults instantiates a new ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetOptions + +`func (o *ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel) GetOptions() []string` + +GetOptions returns the Options field if non-nil, zero value otherwise. + +### GetOptionsOk + +`func (o *ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel) GetOptionsOk() (*[]string, bool)` + +GetOptionsOk returns a tuple with the Options field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOptions + +`func (o *ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel) SetOptions(v []string)` + +SetOptions sets Options field to given value. + +### HasOptions + +`func (o *ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel) HasOptions() bool` + +HasOptions returns a boolean if a field has been set. + +### GetDataType + +`func (o *ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel) GetDataType() int32` + +GetDataType returns the DataType field if non-nil, zero value otherwise. + +### GetDataTypeOk + +`func (o *ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel) GetDataTypeOk() (*int32, bool)` + +GetDataTypeOk returns a tuple with the DataType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataType + +`func (o *ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel) SetDataType(v int32)` + +SetDataType sets DataType field to given value. + +### HasDataType + +`func (o *ModelsTemplateUpdateRequestTemplateEnrollmentFieldModel) HasDataType() bool` + +HasDataType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsTemplateUpdateRequestTemplateMetadataFieldModel.md b/v1/docs/ModelsTemplateUpdateRequestTemplateMetadataFieldModel.md new file mode 100644 index 0000000..292b6a2 --- /dev/null +++ b/v1/docs/ModelsTemplateUpdateRequestTemplateMetadataFieldModel.md @@ -0,0 +1,186 @@ +# ModelsTemplateUpdateRequestTemplateMetadataFieldModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**DefaultValue** | Pointer to **string** | | [optional] +**MetadataId** | Pointer to **int32** | | [optional] +**Validation** | Pointer to **string** | | [optional] +**Enrollment** | Pointer to **int32** | | [optional] +**Message** | Pointer to **string** | | [optional] + +## Methods + +### NewModelsTemplateUpdateRequestTemplateMetadataFieldModel + +`func NewModelsTemplateUpdateRequestTemplateMetadataFieldModel() *ModelsTemplateUpdateRequestTemplateMetadataFieldModel` + +NewModelsTemplateUpdateRequestTemplateMetadataFieldModel instantiates a new ModelsTemplateUpdateRequestTemplateMetadataFieldModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsTemplateUpdateRequestTemplateMetadataFieldModelWithDefaults + +`func NewModelsTemplateUpdateRequestTemplateMetadataFieldModelWithDefaults() *ModelsTemplateUpdateRequestTemplateMetadataFieldModel` + +NewModelsTemplateUpdateRequestTemplateMetadataFieldModelWithDefaults instantiates a new ModelsTemplateUpdateRequestTemplateMetadataFieldModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsTemplateUpdateRequestTemplateMetadataFieldModel) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsTemplateUpdateRequestTemplateMetadataFieldModel) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsTemplateUpdateRequestTemplateMetadataFieldModel) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ModelsTemplateUpdateRequestTemplateMetadataFieldModel) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetDefaultValue + +`func (o *ModelsTemplateUpdateRequestTemplateMetadataFieldModel) GetDefaultValue() string` + +GetDefaultValue returns the DefaultValue field if non-nil, zero value otherwise. + +### GetDefaultValueOk + +`func (o *ModelsTemplateUpdateRequestTemplateMetadataFieldModel) GetDefaultValueOk() (*string, bool)` + +GetDefaultValueOk returns a tuple with the DefaultValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultValue + +`func (o *ModelsTemplateUpdateRequestTemplateMetadataFieldModel) SetDefaultValue(v string)` + +SetDefaultValue sets DefaultValue field to given value. + +### HasDefaultValue + +`func (o *ModelsTemplateUpdateRequestTemplateMetadataFieldModel) HasDefaultValue() bool` + +HasDefaultValue returns a boolean if a field has been set. + +### GetMetadataId + +`func (o *ModelsTemplateUpdateRequestTemplateMetadataFieldModel) GetMetadataId() int32` + +GetMetadataId returns the MetadataId field if non-nil, zero value otherwise. + +### GetMetadataIdOk + +`func (o *ModelsTemplateUpdateRequestTemplateMetadataFieldModel) GetMetadataIdOk() (*int32, bool)` + +GetMetadataIdOk returns a tuple with the MetadataId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadataId + +`func (o *ModelsTemplateUpdateRequestTemplateMetadataFieldModel) SetMetadataId(v int32)` + +SetMetadataId sets MetadataId field to given value. + +### HasMetadataId + +`func (o *ModelsTemplateUpdateRequestTemplateMetadataFieldModel) HasMetadataId() bool` + +HasMetadataId returns a boolean if a field has been set. + +### GetValidation + +`func (o *ModelsTemplateUpdateRequestTemplateMetadataFieldModel) GetValidation() string` + +GetValidation returns the Validation field if non-nil, zero value otherwise. + +### GetValidationOk + +`func (o *ModelsTemplateUpdateRequestTemplateMetadataFieldModel) GetValidationOk() (*string, bool)` + +GetValidationOk returns a tuple with the Validation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValidation + +`func (o *ModelsTemplateUpdateRequestTemplateMetadataFieldModel) SetValidation(v string)` + +SetValidation sets Validation field to given value. + +### HasValidation + +`func (o *ModelsTemplateUpdateRequestTemplateMetadataFieldModel) HasValidation() bool` + +HasValidation returns a boolean if a field has been set. + +### GetEnrollment + +`func (o *ModelsTemplateUpdateRequestTemplateMetadataFieldModel) GetEnrollment() int32` + +GetEnrollment returns the Enrollment field if non-nil, zero value otherwise. + +### GetEnrollmentOk + +`func (o *ModelsTemplateUpdateRequestTemplateMetadataFieldModel) GetEnrollmentOk() (*int32, bool)` + +GetEnrollmentOk returns a tuple with the Enrollment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnrollment + +`func (o *ModelsTemplateUpdateRequestTemplateMetadataFieldModel) SetEnrollment(v int32)` + +SetEnrollment sets Enrollment field to given value. + +### HasEnrollment + +`func (o *ModelsTemplateUpdateRequestTemplateMetadataFieldModel) HasEnrollment() bool` + +HasEnrollment returns a boolean if a field has been set. + +### GetMessage + +`func (o *ModelsTemplateUpdateRequestTemplateMetadataFieldModel) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *ModelsTemplateUpdateRequestTemplateMetadataFieldModel) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *ModelsTemplateUpdateRequestTemplateMetadataFieldModel) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *ModelsTemplateUpdateRequestTemplateMetadataFieldModel) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsTemplateUpdateRequestTemplatePolicyModel.md b/v1/docs/ModelsTemplateUpdateRequestTemplatePolicyModel.md new file mode 100644 index 0000000..ef287d9 --- /dev/null +++ b/v1/docs/ModelsTemplateUpdateRequestTemplatePolicyModel.md @@ -0,0 +1,186 @@ +# ModelsTemplateUpdateRequestTemplatePolicyModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TemplateId** | Pointer to **int32** | | [optional] +**RSAValidKeySizes** | Pointer to **[]int32** | | [optional] +**ECCValidCurves** | Pointer to **[]string** | | [optional] +**AllowKeyReuse** | Pointer to **bool** | | [optional] +**AllowWildcards** | Pointer to **bool** | | [optional] +**RFCEnforcement** | Pointer to **bool** | | [optional] + +## Methods + +### NewModelsTemplateUpdateRequestTemplatePolicyModel + +`func NewModelsTemplateUpdateRequestTemplatePolicyModel() *ModelsTemplateUpdateRequestTemplatePolicyModel` + +NewModelsTemplateUpdateRequestTemplatePolicyModel instantiates a new ModelsTemplateUpdateRequestTemplatePolicyModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsTemplateUpdateRequestTemplatePolicyModelWithDefaults + +`func NewModelsTemplateUpdateRequestTemplatePolicyModelWithDefaults() *ModelsTemplateUpdateRequestTemplatePolicyModel` + +NewModelsTemplateUpdateRequestTemplatePolicyModelWithDefaults instantiates a new ModelsTemplateUpdateRequestTemplatePolicyModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTemplateId + +`func (o *ModelsTemplateUpdateRequestTemplatePolicyModel) GetTemplateId() int32` + +GetTemplateId returns the TemplateId field if non-nil, zero value otherwise. + +### GetTemplateIdOk + +`func (o *ModelsTemplateUpdateRequestTemplatePolicyModel) GetTemplateIdOk() (*int32, bool)` + +GetTemplateIdOk returns a tuple with the TemplateId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateId + +`func (o *ModelsTemplateUpdateRequestTemplatePolicyModel) SetTemplateId(v int32)` + +SetTemplateId sets TemplateId field to given value. + +### HasTemplateId + +`func (o *ModelsTemplateUpdateRequestTemplatePolicyModel) HasTemplateId() bool` + +HasTemplateId returns a boolean if a field has been set. + +### GetRSAValidKeySizes + +`func (o *ModelsTemplateUpdateRequestTemplatePolicyModel) GetRSAValidKeySizes() []int32` + +GetRSAValidKeySizes returns the RSAValidKeySizes field if non-nil, zero value otherwise. + +### GetRSAValidKeySizesOk + +`func (o *ModelsTemplateUpdateRequestTemplatePolicyModel) GetRSAValidKeySizesOk() (*[]int32, bool)` + +GetRSAValidKeySizesOk returns a tuple with the RSAValidKeySizes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRSAValidKeySizes + +`func (o *ModelsTemplateUpdateRequestTemplatePolicyModel) SetRSAValidKeySizes(v []int32)` + +SetRSAValidKeySizes sets RSAValidKeySizes field to given value. + +### HasRSAValidKeySizes + +`func (o *ModelsTemplateUpdateRequestTemplatePolicyModel) HasRSAValidKeySizes() bool` + +HasRSAValidKeySizes returns a boolean if a field has been set. + +### GetECCValidCurves + +`func (o *ModelsTemplateUpdateRequestTemplatePolicyModel) GetECCValidCurves() []string` + +GetECCValidCurves returns the ECCValidCurves field if non-nil, zero value otherwise. + +### GetECCValidCurvesOk + +`func (o *ModelsTemplateUpdateRequestTemplatePolicyModel) GetECCValidCurvesOk() (*[]string, bool)` + +GetECCValidCurvesOk returns a tuple with the ECCValidCurves field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetECCValidCurves + +`func (o *ModelsTemplateUpdateRequestTemplatePolicyModel) SetECCValidCurves(v []string)` + +SetECCValidCurves sets ECCValidCurves field to given value. + +### HasECCValidCurves + +`func (o *ModelsTemplateUpdateRequestTemplatePolicyModel) HasECCValidCurves() bool` + +HasECCValidCurves returns a boolean if a field has been set. + +### GetAllowKeyReuse + +`func (o *ModelsTemplateUpdateRequestTemplatePolicyModel) GetAllowKeyReuse() bool` + +GetAllowKeyReuse returns the AllowKeyReuse field if non-nil, zero value otherwise. + +### GetAllowKeyReuseOk + +`func (o *ModelsTemplateUpdateRequestTemplatePolicyModel) GetAllowKeyReuseOk() (*bool, bool)` + +GetAllowKeyReuseOk returns a tuple with the AllowKeyReuse field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowKeyReuse + +`func (o *ModelsTemplateUpdateRequestTemplatePolicyModel) SetAllowKeyReuse(v bool)` + +SetAllowKeyReuse sets AllowKeyReuse field to given value. + +### HasAllowKeyReuse + +`func (o *ModelsTemplateUpdateRequestTemplatePolicyModel) HasAllowKeyReuse() bool` + +HasAllowKeyReuse returns a boolean if a field has been set. + +### GetAllowWildcards + +`func (o *ModelsTemplateUpdateRequestTemplatePolicyModel) GetAllowWildcards() bool` + +GetAllowWildcards returns the AllowWildcards field if non-nil, zero value otherwise. + +### GetAllowWildcardsOk + +`func (o *ModelsTemplateUpdateRequestTemplatePolicyModel) GetAllowWildcardsOk() (*bool, bool)` + +GetAllowWildcardsOk returns a tuple with the AllowWildcards field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowWildcards + +`func (o *ModelsTemplateUpdateRequestTemplatePolicyModel) SetAllowWildcards(v bool)` + +SetAllowWildcards sets AllowWildcards field to given value. + +### HasAllowWildcards + +`func (o *ModelsTemplateUpdateRequestTemplatePolicyModel) HasAllowWildcards() bool` + +HasAllowWildcards returns a boolean if a field has been set. + +### GetRFCEnforcement + +`func (o *ModelsTemplateUpdateRequestTemplatePolicyModel) GetRFCEnforcement() bool` + +GetRFCEnforcement returns the RFCEnforcement field if non-nil, zero value otherwise. + +### GetRFCEnforcementOk + +`func (o *ModelsTemplateUpdateRequestTemplatePolicyModel) GetRFCEnforcementOk() (*bool, bool)` + +GetRFCEnforcementOk returns a tuple with the RFCEnforcement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRFCEnforcement + +`func (o *ModelsTemplateUpdateRequestTemplatePolicyModel) SetRFCEnforcement(v bool)` + +SetRFCEnforcement sets RFCEnforcement field to given value. + +### HasRFCEnforcement + +`func (o *ModelsTemplateUpdateRequestTemplatePolicyModel) HasRFCEnforcement() bool` + +HasRFCEnforcement returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsTemplateUpdateRequestTemplateRegexModel.md b/v1/docs/ModelsTemplateUpdateRequestTemplateRegexModel.md new file mode 100644 index 0000000..d2101f2 --- /dev/null +++ b/v1/docs/ModelsTemplateUpdateRequestTemplateRegexModel.md @@ -0,0 +1,134 @@ +# ModelsTemplateUpdateRequestTemplateRegexModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TemplateId** | Pointer to **int32** | | [optional] +**SubjectPart** | Pointer to **string** | | [optional] +**Regex** | Pointer to **string** | | [optional] +**Error** | Pointer to **string** | | [optional] + +## Methods + +### NewModelsTemplateUpdateRequestTemplateRegexModel + +`func NewModelsTemplateUpdateRequestTemplateRegexModel() *ModelsTemplateUpdateRequestTemplateRegexModel` + +NewModelsTemplateUpdateRequestTemplateRegexModel instantiates a new ModelsTemplateUpdateRequestTemplateRegexModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsTemplateUpdateRequestTemplateRegexModelWithDefaults + +`func NewModelsTemplateUpdateRequestTemplateRegexModelWithDefaults() *ModelsTemplateUpdateRequestTemplateRegexModel` + +NewModelsTemplateUpdateRequestTemplateRegexModelWithDefaults instantiates a new ModelsTemplateUpdateRequestTemplateRegexModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTemplateId + +`func (o *ModelsTemplateUpdateRequestTemplateRegexModel) GetTemplateId() int32` + +GetTemplateId returns the TemplateId field if non-nil, zero value otherwise. + +### GetTemplateIdOk + +`func (o *ModelsTemplateUpdateRequestTemplateRegexModel) GetTemplateIdOk() (*int32, bool)` + +GetTemplateIdOk returns a tuple with the TemplateId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateId + +`func (o *ModelsTemplateUpdateRequestTemplateRegexModel) SetTemplateId(v int32)` + +SetTemplateId sets TemplateId field to given value. + +### HasTemplateId + +`func (o *ModelsTemplateUpdateRequestTemplateRegexModel) HasTemplateId() bool` + +HasTemplateId returns a boolean if a field has been set. + +### GetSubjectPart + +`func (o *ModelsTemplateUpdateRequestTemplateRegexModel) GetSubjectPart() string` + +GetSubjectPart returns the SubjectPart field if non-nil, zero value otherwise. + +### GetSubjectPartOk + +`func (o *ModelsTemplateUpdateRequestTemplateRegexModel) GetSubjectPartOk() (*string, bool)` + +GetSubjectPartOk returns a tuple with the SubjectPart field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubjectPart + +`func (o *ModelsTemplateUpdateRequestTemplateRegexModel) SetSubjectPart(v string)` + +SetSubjectPart sets SubjectPart field to given value. + +### HasSubjectPart + +`func (o *ModelsTemplateUpdateRequestTemplateRegexModel) HasSubjectPart() bool` + +HasSubjectPart returns a boolean if a field has been set. + +### GetRegex + +`func (o *ModelsTemplateUpdateRequestTemplateRegexModel) GetRegex() string` + +GetRegex returns the Regex field if non-nil, zero value otherwise. + +### GetRegexOk + +`func (o *ModelsTemplateUpdateRequestTemplateRegexModel) GetRegexOk() (*string, bool)` + +GetRegexOk returns a tuple with the Regex field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegex + +`func (o *ModelsTemplateUpdateRequestTemplateRegexModel) SetRegex(v string)` + +SetRegex sets Regex field to given value. + +### HasRegex + +`func (o *ModelsTemplateUpdateRequestTemplateRegexModel) HasRegex() bool` + +HasRegex returns a boolean if a field has been set. + +### GetError + +`func (o *ModelsTemplateUpdateRequestTemplateRegexModel) GetError() string` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *ModelsTemplateUpdateRequestTemplateRegexModel) GetErrorOk() (*string, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *ModelsTemplateUpdateRequestTemplateRegexModel) SetError(v string)` + +SetError sets Error field to given value. + +### HasError + +`func (o *ModelsTemplateUpdateRequestTemplateRegexModel) HasError() bool` + +HasError returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsWorkflowApproveDenyResult.md b/v1/docs/ModelsWorkflowApproveDenyResult.md new file mode 100644 index 0000000..209c289 --- /dev/null +++ b/v1/docs/ModelsWorkflowApproveDenyResult.md @@ -0,0 +1,108 @@ +# ModelsWorkflowApproveDenyResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Failures** | Pointer to [**[]ModelsWorkflowProcessedCertificateRequest**](ModelsWorkflowProcessedCertificateRequest.md) | | [optional] +**Denials** | Pointer to [**[]ModelsWorkflowProcessedCertificateRequest**](ModelsWorkflowProcessedCertificateRequest.md) | | [optional] +**Successes** | Pointer to [**[]ModelsWorkflowProcessedCertificateRequest**](ModelsWorkflowProcessedCertificateRequest.md) | | [optional] + +## Methods + +### NewModelsWorkflowApproveDenyResult + +`func NewModelsWorkflowApproveDenyResult() *ModelsWorkflowApproveDenyResult` + +NewModelsWorkflowApproveDenyResult instantiates a new ModelsWorkflowApproveDenyResult object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsWorkflowApproveDenyResultWithDefaults + +`func NewModelsWorkflowApproveDenyResultWithDefaults() *ModelsWorkflowApproveDenyResult` + +NewModelsWorkflowApproveDenyResultWithDefaults instantiates a new ModelsWorkflowApproveDenyResult object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFailures + +`func (o *ModelsWorkflowApproveDenyResult) GetFailures() []ModelsWorkflowProcessedCertificateRequest` + +GetFailures returns the Failures field if non-nil, zero value otherwise. + +### GetFailuresOk + +`func (o *ModelsWorkflowApproveDenyResult) GetFailuresOk() (*[]ModelsWorkflowProcessedCertificateRequest, bool)` + +GetFailuresOk returns a tuple with the Failures field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFailures + +`func (o *ModelsWorkflowApproveDenyResult) SetFailures(v []ModelsWorkflowProcessedCertificateRequest)` + +SetFailures sets Failures field to given value. + +### HasFailures + +`func (o *ModelsWorkflowApproveDenyResult) HasFailures() bool` + +HasFailures returns a boolean if a field has been set. + +### GetDenials + +`func (o *ModelsWorkflowApproveDenyResult) GetDenials() []ModelsWorkflowProcessedCertificateRequest` + +GetDenials returns the Denials field if non-nil, zero value otherwise. + +### GetDenialsOk + +`func (o *ModelsWorkflowApproveDenyResult) GetDenialsOk() (*[]ModelsWorkflowProcessedCertificateRequest, bool)` + +GetDenialsOk returns a tuple with the Denials field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDenials + +`func (o *ModelsWorkflowApproveDenyResult) SetDenials(v []ModelsWorkflowProcessedCertificateRequest)` + +SetDenials sets Denials field to given value. + +### HasDenials + +`func (o *ModelsWorkflowApproveDenyResult) HasDenials() bool` + +HasDenials returns a boolean if a field has been set. + +### GetSuccesses + +`func (o *ModelsWorkflowApproveDenyResult) GetSuccesses() []ModelsWorkflowProcessedCertificateRequest` + +GetSuccesses returns the Successes field if non-nil, zero value otherwise. + +### GetSuccessesOk + +`func (o *ModelsWorkflowApproveDenyResult) GetSuccessesOk() (*[]ModelsWorkflowProcessedCertificateRequest, bool)` + +GetSuccessesOk returns a tuple with the Successes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccesses + +`func (o *ModelsWorkflowApproveDenyResult) SetSuccesses(v []ModelsWorkflowProcessedCertificateRequest)` + +SetSuccesses sets Successes field to given value. + +### HasSuccesses + +`func (o *ModelsWorkflowApproveDenyResult) HasSuccesses() bool` + +HasSuccesses returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsWorkflowCertificateRequestCertStoreModel.md b/v1/docs/ModelsWorkflowCertificateRequestCertStoreModel.md new file mode 100644 index 0000000..a028f0f --- /dev/null +++ b/v1/docs/ModelsWorkflowCertificateRequestCertStoreModel.md @@ -0,0 +1,108 @@ +# ModelsWorkflowCertificateRequestCertStoreModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EntryName** | Pointer to **string** | | [optional] +**ClientMachine** | Pointer to **string** | | [optional] +**StorePath** | Pointer to **string** | | [optional] + +## Methods + +### NewModelsWorkflowCertificateRequestCertStoreModel + +`func NewModelsWorkflowCertificateRequestCertStoreModel() *ModelsWorkflowCertificateRequestCertStoreModel` + +NewModelsWorkflowCertificateRequestCertStoreModel instantiates a new ModelsWorkflowCertificateRequestCertStoreModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsWorkflowCertificateRequestCertStoreModelWithDefaults + +`func NewModelsWorkflowCertificateRequestCertStoreModelWithDefaults() *ModelsWorkflowCertificateRequestCertStoreModel` + +NewModelsWorkflowCertificateRequestCertStoreModelWithDefaults instantiates a new ModelsWorkflowCertificateRequestCertStoreModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEntryName + +`func (o *ModelsWorkflowCertificateRequestCertStoreModel) GetEntryName() string` + +GetEntryName returns the EntryName field if non-nil, zero value otherwise. + +### GetEntryNameOk + +`func (o *ModelsWorkflowCertificateRequestCertStoreModel) GetEntryNameOk() (*string, bool)` + +GetEntryNameOk returns a tuple with the EntryName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEntryName + +`func (o *ModelsWorkflowCertificateRequestCertStoreModel) SetEntryName(v string)` + +SetEntryName sets EntryName field to given value. + +### HasEntryName + +`func (o *ModelsWorkflowCertificateRequestCertStoreModel) HasEntryName() bool` + +HasEntryName returns a boolean if a field has been set. + +### GetClientMachine + +`func (o *ModelsWorkflowCertificateRequestCertStoreModel) GetClientMachine() string` + +GetClientMachine returns the ClientMachine field if non-nil, zero value otherwise. + +### GetClientMachineOk + +`func (o *ModelsWorkflowCertificateRequestCertStoreModel) GetClientMachineOk() (*string, bool)` + +GetClientMachineOk returns a tuple with the ClientMachine field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientMachine + +`func (o *ModelsWorkflowCertificateRequestCertStoreModel) SetClientMachine(v string)` + +SetClientMachine sets ClientMachine field to given value. + +### HasClientMachine + +`func (o *ModelsWorkflowCertificateRequestCertStoreModel) HasClientMachine() bool` + +HasClientMachine returns a boolean if a field has been set. + +### GetStorePath + +`func (o *ModelsWorkflowCertificateRequestCertStoreModel) GetStorePath() string` + +GetStorePath returns the StorePath field if non-nil, zero value otherwise. + +### GetStorePathOk + +`func (o *ModelsWorkflowCertificateRequestCertStoreModel) GetStorePathOk() (*string, bool)` + +GetStorePathOk returns a tuple with the StorePath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStorePath + +`func (o *ModelsWorkflowCertificateRequestCertStoreModel) SetStorePath(v string)` + +SetStorePath sets StorePath field to given value. + +### HasStorePath + +`func (o *ModelsWorkflowCertificateRequestCertStoreModel) HasStorePath() bool` + +HasStorePath returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsWorkflowCertificateRequestDetailsModel.md b/v1/docs/ModelsWorkflowCertificateRequestDetailsModel.md new file mode 100644 index 0000000..2a5cb92 --- /dev/null +++ b/v1/docs/ModelsWorkflowCertificateRequestDetailsModel.md @@ -0,0 +1,456 @@ +# ModelsWorkflowCertificateRequestDetailsModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DenialComment** | Pointer to **string** | | [optional] +**KeyLength** | Pointer to **string** | | [optional] +**SANs** | Pointer to **[]string** | | [optional] +**CertStores** | Pointer to [**[]ModelsWorkflowCertificateRequestCertStoreModel**](ModelsWorkflowCertificateRequestCertStoreModel.md) | | [optional] +**Curve** | Pointer to **NullableString** | | [optional] +**Id** | Pointer to **int32** | | [optional] +**CARequestId** | Pointer to **string** | | [optional] +**CommonName** | Pointer to **string** | | [optional] +**DistinguishedName** | Pointer to **string** | | [optional] +**SubmissionDate** | Pointer to **time.Time** | | [optional] +**CertificateAuthority** | Pointer to **string** | | [optional] +**Template** | Pointer to **string** | | [optional] +**Requester** | Pointer to **string** | | [optional] +**State** | Pointer to **int32** | | [optional] +**StateString** | Pointer to **string** | | [optional] [readonly] +**Metadata** | Pointer to **map[string]string** | | [optional] + +## Methods + +### NewModelsWorkflowCertificateRequestDetailsModel + +`func NewModelsWorkflowCertificateRequestDetailsModel() *ModelsWorkflowCertificateRequestDetailsModel` + +NewModelsWorkflowCertificateRequestDetailsModel instantiates a new ModelsWorkflowCertificateRequestDetailsModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsWorkflowCertificateRequestDetailsModelWithDefaults + +`func NewModelsWorkflowCertificateRequestDetailsModelWithDefaults() *ModelsWorkflowCertificateRequestDetailsModel` + +NewModelsWorkflowCertificateRequestDetailsModelWithDefaults instantiates a new ModelsWorkflowCertificateRequestDetailsModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDenialComment + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) GetDenialComment() string` + +GetDenialComment returns the DenialComment field if non-nil, zero value otherwise. + +### GetDenialCommentOk + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) GetDenialCommentOk() (*string, bool)` + +GetDenialCommentOk returns a tuple with the DenialComment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDenialComment + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) SetDenialComment(v string)` + +SetDenialComment sets DenialComment field to given value. + +### HasDenialComment + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) HasDenialComment() bool` + +HasDenialComment returns a boolean if a field has been set. + +### GetKeyLength + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) GetKeyLength() string` + +GetKeyLength returns the KeyLength field if non-nil, zero value otherwise. + +### GetKeyLengthOk + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) GetKeyLengthOk() (*string, bool)` + +GetKeyLengthOk returns a tuple with the KeyLength field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyLength + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) SetKeyLength(v string)` + +SetKeyLength sets KeyLength field to given value. + +### HasKeyLength + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) HasKeyLength() bool` + +HasKeyLength returns a boolean if a field has been set. + +### GetSANs + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) GetSANs() []string` + +GetSANs returns the SANs field if non-nil, zero value otherwise. + +### GetSANsOk + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) GetSANsOk() (*[]string, bool)` + +GetSANsOk returns a tuple with the SANs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSANs + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) SetSANs(v []string)` + +SetSANs sets SANs field to given value. + +### HasSANs + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) HasSANs() bool` + +HasSANs returns a boolean if a field has been set. + +### GetCertStores + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) GetCertStores() []ModelsWorkflowCertificateRequestCertStoreModel` + +GetCertStores returns the CertStores field if non-nil, zero value otherwise. + +### GetCertStoresOk + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) GetCertStoresOk() (*[]ModelsWorkflowCertificateRequestCertStoreModel, bool)` + +GetCertStoresOk returns a tuple with the CertStores field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertStores + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) SetCertStores(v []ModelsWorkflowCertificateRequestCertStoreModel)` + +SetCertStores sets CertStores field to given value. + +### HasCertStores + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) HasCertStores() bool` + +HasCertStores returns a boolean if a field has been set. + +### GetCurve + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) GetCurve() string` + +GetCurve returns the Curve field if non-nil, zero value otherwise. + +### GetCurveOk + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) GetCurveOk() (*string, bool)` + +GetCurveOk returns a tuple with the Curve field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCurve + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) SetCurve(v string)` + +SetCurve sets Curve field to given value. + +### HasCurve + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) HasCurve() bool` + +HasCurve returns a boolean if a field has been set. + +### SetCurveNil + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) SetCurveNil(b bool)` + + SetCurveNil sets the value for Curve to be an explicit nil + +### UnsetCurve +`func (o *ModelsWorkflowCertificateRequestDetailsModel) UnsetCurve()` + +UnsetCurve ensures that no value is present for Curve, not even an explicit nil +### GetId + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetCARequestId + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) GetCARequestId() string` + +GetCARequestId returns the CARequestId field if non-nil, zero value otherwise. + +### GetCARequestIdOk + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) GetCARequestIdOk() (*string, bool)` + +GetCARequestIdOk returns a tuple with the CARequestId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCARequestId + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) SetCARequestId(v string)` + +SetCARequestId sets CARequestId field to given value. + +### HasCARequestId + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) HasCARequestId() bool` + +HasCARequestId returns a boolean if a field has been set. + +### GetCommonName + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) GetCommonName() string` + +GetCommonName returns the CommonName field if non-nil, zero value otherwise. + +### GetCommonNameOk + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) GetCommonNameOk() (*string, bool)` + +GetCommonNameOk returns a tuple with the CommonName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommonName + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) SetCommonName(v string)` + +SetCommonName sets CommonName field to given value. + +### HasCommonName + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) HasCommonName() bool` + +HasCommonName returns a boolean if a field has been set. + +### GetDistinguishedName + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) GetDistinguishedName() string` + +GetDistinguishedName returns the DistinguishedName field if non-nil, zero value otherwise. + +### GetDistinguishedNameOk + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) GetDistinguishedNameOk() (*string, bool)` + +GetDistinguishedNameOk returns a tuple with the DistinguishedName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDistinguishedName + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) SetDistinguishedName(v string)` + +SetDistinguishedName sets DistinguishedName field to given value. + +### HasDistinguishedName + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) HasDistinguishedName() bool` + +HasDistinguishedName returns a boolean if a field has been set. + +### GetSubmissionDate + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) GetSubmissionDate() time.Time` + +GetSubmissionDate returns the SubmissionDate field if non-nil, zero value otherwise. + +### GetSubmissionDateOk + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) GetSubmissionDateOk() (*time.Time, bool)` + +GetSubmissionDateOk returns a tuple with the SubmissionDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubmissionDate + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) SetSubmissionDate(v time.Time)` + +SetSubmissionDate sets SubmissionDate field to given value. + +### HasSubmissionDate + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) HasSubmissionDate() bool` + +HasSubmissionDate returns a boolean if a field has been set. + +### GetCertificateAuthority + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) GetCertificateAuthority() string` + +GetCertificateAuthority returns the CertificateAuthority field if non-nil, zero value otherwise. + +### GetCertificateAuthorityOk + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) GetCertificateAuthorityOk() (*string, bool)` + +GetCertificateAuthorityOk returns a tuple with the CertificateAuthority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateAuthority + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) SetCertificateAuthority(v string)` + +SetCertificateAuthority sets CertificateAuthority field to given value. + +### HasCertificateAuthority + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) HasCertificateAuthority() bool` + +HasCertificateAuthority returns a boolean if a field has been set. + +### GetTemplate + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) GetTemplate() string` + +GetTemplate returns the Template field if non-nil, zero value otherwise. + +### GetTemplateOk + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) GetTemplateOk() (*string, bool)` + +GetTemplateOk returns a tuple with the Template field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplate + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) SetTemplate(v string)` + +SetTemplate sets Template field to given value. + +### HasTemplate + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) HasTemplate() bool` + +HasTemplate returns a boolean if a field has been set. + +### GetRequester + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) GetRequester() string` + +GetRequester returns the Requester field if non-nil, zero value otherwise. + +### GetRequesterOk + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) GetRequesterOk() (*string, bool)` + +GetRequesterOk returns a tuple with the Requester field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequester + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) SetRequester(v string)` + +SetRequester sets Requester field to given value. + +### HasRequester + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) HasRequester() bool` + +HasRequester returns a boolean if a field has been set. + +### GetState + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) GetState() int32` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) GetStateOk() (*int32, bool)` + +GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetState + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) SetState(v int32)` + +SetState sets State field to given value. + +### HasState + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) HasState() bool` + +HasState returns a boolean if a field has been set. + +### GetStateString + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) GetStateString() string` + +GetStateString returns the StateString field if non-nil, zero value otherwise. + +### GetStateStringOk + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) GetStateStringOk() (*string, bool)` + +GetStateStringOk returns a tuple with the StateString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStateString + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) SetStateString(v string)` + +SetStateString sets StateString field to given value. + +### HasStateString + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) HasStateString() bool` + +HasStateString returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) GetMetadata() map[string]string` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) GetMetadataOk() (*map[string]string, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) SetMetadata(v map[string]string)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ModelsWorkflowCertificateRequestDetailsModel) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsWorkflowCertificateRequestModel.md b/v1/docs/ModelsWorkflowCertificateRequestModel.md new file mode 100644 index 0000000..15f3c62 --- /dev/null +++ b/v1/docs/ModelsWorkflowCertificateRequestModel.md @@ -0,0 +1,316 @@ +# ModelsWorkflowCertificateRequestModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **int32** | | [optional] +**CARequestId** | Pointer to **string** | | [optional] +**CommonName** | Pointer to **string** | | [optional] +**DistinguishedName** | Pointer to **string** | | [optional] +**SubmissionDate** | Pointer to **time.Time** | | [optional] +**CertificateAuthority** | Pointer to **string** | | [optional] +**Template** | Pointer to **string** | | [optional] +**Requester** | Pointer to **string** | | [optional] +**State** | Pointer to **int32** | | [optional] +**StateString** | Pointer to **string** | | [optional] [readonly] +**Metadata** | Pointer to **map[string]string** | | [optional] + +## Methods + +### NewModelsWorkflowCertificateRequestModel + +`func NewModelsWorkflowCertificateRequestModel() *ModelsWorkflowCertificateRequestModel` + +NewModelsWorkflowCertificateRequestModel instantiates a new ModelsWorkflowCertificateRequestModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsWorkflowCertificateRequestModelWithDefaults + +`func NewModelsWorkflowCertificateRequestModelWithDefaults() *ModelsWorkflowCertificateRequestModel` + +NewModelsWorkflowCertificateRequestModelWithDefaults instantiates a new ModelsWorkflowCertificateRequestModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ModelsWorkflowCertificateRequestModel) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ModelsWorkflowCertificateRequestModel) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ModelsWorkflowCertificateRequestModel) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ModelsWorkflowCertificateRequestModel) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetCARequestId + +`func (o *ModelsWorkflowCertificateRequestModel) GetCARequestId() string` + +GetCARequestId returns the CARequestId field if non-nil, zero value otherwise. + +### GetCARequestIdOk + +`func (o *ModelsWorkflowCertificateRequestModel) GetCARequestIdOk() (*string, bool)` + +GetCARequestIdOk returns a tuple with the CARequestId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCARequestId + +`func (o *ModelsWorkflowCertificateRequestModel) SetCARequestId(v string)` + +SetCARequestId sets CARequestId field to given value. + +### HasCARequestId + +`func (o *ModelsWorkflowCertificateRequestModel) HasCARequestId() bool` + +HasCARequestId returns a boolean if a field has been set. + +### GetCommonName + +`func (o *ModelsWorkflowCertificateRequestModel) GetCommonName() string` + +GetCommonName returns the CommonName field if non-nil, zero value otherwise. + +### GetCommonNameOk + +`func (o *ModelsWorkflowCertificateRequestModel) GetCommonNameOk() (*string, bool)` + +GetCommonNameOk returns a tuple with the CommonName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommonName + +`func (o *ModelsWorkflowCertificateRequestModel) SetCommonName(v string)` + +SetCommonName sets CommonName field to given value. + +### HasCommonName + +`func (o *ModelsWorkflowCertificateRequestModel) HasCommonName() bool` + +HasCommonName returns a boolean if a field has been set. + +### GetDistinguishedName + +`func (o *ModelsWorkflowCertificateRequestModel) GetDistinguishedName() string` + +GetDistinguishedName returns the DistinguishedName field if non-nil, zero value otherwise. + +### GetDistinguishedNameOk + +`func (o *ModelsWorkflowCertificateRequestModel) GetDistinguishedNameOk() (*string, bool)` + +GetDistinguishedNameOk returns a tuple with the DistinguishedName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDistinguishedName + +`func (o *ModelsWorkflowCertificateRequestModel) SetDistinguishedName(v string)` + +SetDistinguishedName sets DistinguishedName field to given value. + +### HasDistinguishedName + +`func (o *ModelsWorkflowCertificateRequestModel) HasDistinguishedName() bool` + +HasDistinguishedName returns a boolean if a field has been set. + +### GetSubmissionDate + +`func (o *ModelsWorkflowCertificateRequestModel) GetSubmissionDate() time.Time` + +GetSubmissionDate returns the SubmissionDate field if non-nil, zero value otherwise. + +### GetSubmissionDateOk + +`func (o *ModelsWorkflowCertificateRequestModel) GetSubmissionDateOk() (*time.Time, bool)` + +GetSubmissionDateOk returns a tuple with the SubmissionDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubmissionDate + +`func (o *ModelsWorkflowCertificateRequestModel) SetSubmissionDate(v time.Time)` + +SetSubmissionDate sets SubmissionDate field to given value. + +### HasSubmissionDate + +`func (o *ModelsWorkflowCertificateRequestModel) HasSubmissionDate() bool` + +HasSubmissionDate returns a boolean if a field has been set. + +### GetCertificateAuthority + +`func (o *ModelsWorkflowCertificateRequestModel) GetCertificateAuthority() string` + +GetCertificateAuthority returns the CertificateAuthority field if non-nil, zero value otherwise. + +### GetCertificateAuthorityOk + +`func (o *ModelsWorkflowCertificateRequestModel) GetCertificateAuthorityOk() (*string, bool)` + +GetCertificateAuthorityOk returns a tuple with the CertificateAuthority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateAuthority + +`func (o *ModelsWorkflowCertificateRequestModel) SetCertificateAuthority(v string)` + +SetCertificateAuthority sets CertificateAuthority field to given value. + +### HasCertificateAuthority + +`func (o *ModelsWorkflowCertificateRequestModel) HasCertificateAuthority() bool` + +HasCertificateAuthority returns a boolean if a field has been set. + +### GetTemplate + +`func (o *ModelsWorkflowCertificateRequestModel) GetTemplate() string` + +GetTemplate returns the Template field if non-nil, zero value otherwise. + +### GetTemplateOk + +`func (o *ModelsWorkflowCertificateRequestModel) GetTemplateOk() (*string, bool)` + +GetTemplateOk returns a tuple with the Template field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplate + +`func (o *ModelsWorkflowCertificateRequestModel) SetTemplate(v string)` + +SetTemplate sets Template field to given value. + +### HasTemplate + +`func (o *ModelsWorkflowCertificateRequestModel) HasTemplate() bool` + +HasTemplate returns a boolean if a field has been set. + +### GetRequester + +`func (o *ModelsWorkflowCertificateRequestModel) GetRequester() string` + +GetRequester returns the Requester field if non-nil, zero value otherwise. + +### GetRequesterOk + +`func (o *ModelsWorkflowCertificateRequestModel) GetRequesterOk() (*string, bool)` + +GetRequesterOk returns a tuple with the Requester field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequester + +`func (o *ModelsWorkflowCertificateRequestModel) SetRequester(v string)` + +SetRequester sets Requester field to given value. + +### HasRequester + +`func (o *ModelsWorkflowCertificateRequestModel) HasRequester() bool` + +HasRequester returns a boolean if a field has been set. + +### GetState + +`func (o *ModelsWorkflowCertificateRequestModel) GetState() int32` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *ModelsWorkflowCertificateRequestModel) GetStateOk() (*int32, bool)` + +GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetState + +`func (o *ModelsWorkflowCertificateRequestModel) SetState(v int32)` + +SetState sets State field to given value. + +### HasState + +`func (o *ModelsWorkflowCertificateRequestModel) HasState() bool` + +HasState returns a boolean if a field has been set. + +### GetStateString + +`func (o *ModelsWorkflowCertificateRequestModel) GetStateString() string` + +GetStateString returns the StateString field if non-nil, zero value otherwise. + +### GetStateStringOk + +`func (o *ModelsWorkflowCertificateRequestModel) GetStateStringOk() (*string, bool)` + +GetStateStringOk returns a tuple with the StateString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStateString + +`func (o *ModelsWorkflowCertificateRequestModel) SetStateString(v string)` + +SetStateString sets StateString field to given value. + +### HasStateString + +`func (o *ModelsWorkflowCertificateRequestModel) HasStateString() bool` + +HasStateString returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ModelsWorkflowCertificateRequestModel) GetMetadata() map[string]string` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ModelsWorkflowCertificateRequestModel) GetMetadataOk() (*map[string]string, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ModelsWorkflowCertificateRequestModel) SetMetadata(v map[string]string)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ModelsWorkflowCertificateRequestModel) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsWorkflowDenialRequest.md b/v1/docs/ModelsWorkflowDenialRequest.md new file mode 100644 index 0000000..aeb1d82 --- /dev/null +++ b/v1/docs/ModelsWorkflowDenialRequest.md @@ -0,0 +1,82 @@ +# ModelsWorkflowDenialRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Comment** | Pointer to **string** | | [optional] +**CertificateRequestIds** | Pointer to **[]int32** | | [optional] + +## Methods + +### NewModelsWorkflowDenialRequest + +`func NewModelsWorkflowDenialRequest() *ModelsWorkflowDenialRequest` + +NewModelsWorkflowDenialRequest instantiates a new ModelsWorkflowDenialRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsWorkflowDenialRequestWithDefaults + +`func NewModelsWorkflowDenialRequestWithDefaults() *ModelsWorkflowDenialRequest` + +NewModelsWorkflowDenialRequestWithDefaults instantiates a new ModelsWorkflowDenialRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetComment + +`func (o *ModelsWorkflowDenialRequest) GetComment() string` + +GetComment returns the Comment field if non-nil, zero value otherwise. + +### GetCommentOk + +`func (o *ModelsWorkflowDenialRequest) GetCommentOk() (*string, bool)` + +GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComment + +`func (o *ModelsWorkflowDenialRequest) SetComment(v string)` + +SetComment sets Comment field to given value. + +### HasComment + +`func (o *ModelsWorkflowDenialRequest) HasComment() bool` + +HasComment returns a boolean if a field has been set. + +### GetCertificateRequestIds + +`func (o *ModelsWorkflowDenialRequest) GetCertificateRequestIds() []int32` + +GetCertificateRequestIds returns the CertificateRequestIds field if non-nil, zero value otherwise. + +### GetCertificateRequestIdsOk + +`func (o *ModelsWorkflowDenialRequest) GetCertificateRequestIdsOk() (*[]int32, bool)` + +GetCertificateRequestIdsOk returns a tuple with the CertificateRequestIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateRequestIds + +`func (o *ModelsWorkflowDenialRequest) SetCertificateRequestIds(v []int32)` + +SetCertificateRequestIds sets CertificateRequestIds field to given value. + +### HasCertificateRequestIds + +`func (o *ModelsWorkflowDenialRequest) HasCertificateRequestIds() bool` + +HasCertificateRequestIds returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/ModelsWorkflowProcessedCertificateRequest.md b/v1/docs/ModelsWorkflowProcessedCertificateRequest.md new file mode 100644 index 0000000..00cf12c --- /dev/null +++ b/v1/docs/ModelsWorkflowProcessedCertificateRequest.md @@ -0,0 +1,186 @@ +# ModelsWorkflowProcessedCertificateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CARowId** | Pointer to **int32** | | [optional] [readonly] +**CARequestId** | Pointer to **string** | | [optional] +**CAHost** | Pointer to **string** | | [optional] +**CALogicalName** | Pointer to **string** | | [optional] +**KeyfactorRequestId** | Pointer to **int32** | | [optional] +**Comment** | Pointer to **string** | | [optional] + +## Methods + +### NewModelsWorkflowProcessedCertificateRequest + +`func NewModelsWorkflowProcessedCertificateRequest() *ModelsWorkflowProcessedCertificateRequest` + +NewModelsWorkflowProcessedCertificateRequest instantiates a new ModelsWorkflowProcessedCertificateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModelsWorkflowProcessedCertificateRequestWithDefaults + +`func NewModelsWorkflowProcessedCertificateRequestWithDefaults() *ModelsWorkflowProcessedCertificateRequest` + +NewModelsWorkflowProcessedCertificateRequestWithDefaults instantiates a new ModelsWorkflowProcessedCertificateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCARowId + +`func (o *ModelsWorkflowProcessedCertificateRequest) GetCARowId() int32` + +GetCARowId returns the CARowId field if non-nil, zero value otherwise. + +### GetCARowIdOk + +`func (o *ModelsWorkflowProcessedCertificateRequest) GetCARowIdOk() (*int32, bool)` + +GetCARowIdOk returns a tuple with the CARowId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCARowId + +`func (o *ModelsWorkflowProcessedCertificateRequest) SetCARowId(v int32)` + +SetCARowId sets CARowId field to given value. + +### HasCARowId + +`func (o *ModelsWorkflowProcessedCertificateRequest) HasCARowId() bool` + +HasCARowId returns a boolean if a field has been set. + +### GetCARequestId + +`func (o *ModelsWorkflowProcessedCertificateRequest) GetCARequestId() string` + +GetCARequestId returns the CARequestId field if non-nil, zero value otherwise. + +### GetCARequestIdOk + +`func (o *ModelsWorkflowProcessedCertificateRequest) GetCARequestIdOk() (*string, bool)` + +GetCARequestIdOk returns a tuple with the CARequestId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCARequestId + +`func (o *ModelsWorkflowProcessedCertificateRequest) SetCARequestId(v string)` + +SetCARequestId sets CARequestId field to given value. + +### HasCARequestId + +`func (o *ModelsWorkflowProcessedCertificateRequest) HasCARequestId() bool` + +HasCARequestId returns a boolean if a field has been set. + +### GetCAHost + +`func (o *ModelsWorkflowProcessedCertificateRequest) GetCAHost() string` + +GetCAHost returns the CAHost field if non-nil, zero value otherwise. + +### GetCAHostOk + +`func (o *ModelsWorkflowProcessedCertificateRequest) GetCAHostOk() (*string, bool)` + +GetCAHostOk returns a tuple with the CAHost field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCAHost + +`func (o *ModelsWorkflowProcessedCertificateRequest) SetCAHost(v string)` + +SetCAHost sets CAHost field to given value. + +### HasCAHost + +`func (o *ModelsWorkflowProcessedCertificateRequest) HasCAHost() bool` + +HasCAHost returns a boolean if a field has been set. + +### GetCALogicalName + +`func (o *ModelsWorkflowProcessedCertificateRequest) GetCALogicalName() string` + +GetCALogicalName returns the CALogicalName field if non-nil, zero value otherwise. + +### GetCALogicalNameOk + +`func (o *ModelsWorkflowProcessedCertificateRequest) GetCALogicalNameOk() (*string, bool)` + +GetCALogicalNameOk returns a tuple with the CALogicalName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCALogicalName + +`func (o *ModelsWorkflowProcessedCertificateRequest) SetCALogicalName(v string)` + +SetCALogicalName sets CALogicalName field to given value. + +### HasCALogicalName + +`func (o *ModelsWorkflowProcessedCertificateRequest) HasCALogicalName() bool` + +HasCALogicalName returns a boolean if a field has been set. + +### GetKeyfactorRequestId + +`func (o *ModelsWorkflowProcessedCertificateRequest) GetKeyfactorRequestId() int32` + +GetKeyfactorRequestId returns the KeyfactorRequestId field if non-nil, zero value otherwise. + +### GetKeyfactorRequestIdOk + +`func (o *ModelsWorkflowProcessedCertificateRequest) GetKeyfactorRequestIdOk() (*int32, bool)` + +GetKeyfactorRequestIdOk returns a tuple with the KeyfactorRequestId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyfactorRequestId + +`func (o *ModelsWorkflowProcessedCertificateRequest) SetKeyfactorRequestId(v int32)` + +SetKeyfactorRequestId sets KeyfactorRequestId field to given value. + +### HasKeyfactorRequestId + +`func (o *ModelsWorkflowProcessedCertificateRequest) HasKeyfactorRequestId() bool` + +HasKeyfactorRequestId returns a boolean if a field has been set. + +### GetComment + +`func (o *ModelsWorkflowProcessedCertificateRequest) GetComment() string` + +GetComment returns the Comment field if non-nil, zero value otherwise. + +### GetCommentOk + +`func (o *ModelsWorkflowProcessedCertificateRequest) GetCommentOk() (*string, bool)` + +GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComment + +`func (o *ModelsWorkflowProcessedCertificateRequest) SetComment(v string)` + +SetComment sets Comment field to given value. + +### HasComment + +`func (o *ModelsWorkflowProcessedCertificateRequest) HasComment() bool` + +HasComment returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/v1/docs/MonitoringApi.md b/v1/docs/MonitoringApi.md new file mode 100644 index 0000000..670d5ca --- /dev/null +++ b/v1/docs/MonitoringApi.md @@ -0,0 +1,574 @@ +# \MonitoringApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**MonitoringAddRevocationMonitoring**](MonitoringApi.md#MonitoringAddRevocationMonitoring) | **Post** /Monitoring/Revocation | Add a revocation monitoring endpoint +[**MonitoringDeleteRevocationMonitoring**](MonitoringApi.md#MonitoringDeleteRevocationMonitoring) | **Delete** /Monitoring/Revocation/{id} | Delete a revocation monitoring endpoint +[**MonitoringEditRevocationMonitoring**](MonitoringApi.md#MonitoringEditRevocationMonitoring) | **Put** /Monitoring/Revocation | Edit a revocation monitoring endpoint +[**MonitoringGetRevocationMonitoring**](MonitoringApi.md#MonitoringGetRevocationMonitoring) | **Get** /Monitoring/Revocation/{id} | Get a revocation monitoring endpoint +[**MonitoringGetRevocationMonitoringEndpoints**](MonitoringApi.md#MonitoringGetRevocationMonitoringEndpoints) | **Get** /Monitoring/Revocation | Gets all revocation monitoring endpoints according to the provided filter and output parameters +[**MonitoringResolveOCSP**](MonitoringApi.md#MonitoringResolveOCSP) | **Post** /Monitoring/ResolveOCSP | Resolve the Certificate authority given +[**MonitoringTestAllRevocationMonitoringAlert**](MonitoringApi.md#MonitoringTestAllRevocationMonitoringAlert) | **Post** /Monitoring/Revocation/TestAll | Test All Alerts +[**MonitoringTestRevocationMonitoringAlert**](MonitoringApi.md#MonitoringTestRevocationMonitoringAlert) | **Post** /Monitoring/Revocation/Test | Test Alert + + + +## MonitoringAddRevocationMonitoring + +> KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse MonitoringAddRevocationMonitoring(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Endpoint(endpoint).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Add a revocation monitoring endpoint + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + endpoint := *openapiclient.NewKeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest("Name_example", "EndpointType_example", "Location_example", *openapiclient.NewKeyfactorApiModelsMonitoringDashboardRequest(false)) // KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest | Information for the new endpoint + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MonitoringApi.MonitoringAddRevocationMonitoring(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Endpoint(endpoint).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MonitoringApi.MonitoringAddRevocationMonitoring``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `MonitoringAddRevocationMonitoring`: KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `MonitoringApi.MonitoringAddRevocationMonitoring`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiMonitoringAddRevocationMonitoringRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **endpoint** | [**KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest**](KeyfactorApiModelsMonitoringRevocationMonitoringCreationRequest.md) | Information for the new endpoint | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse**](KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## MonitoringDeleteRevocationMonitoring + +> MonitoringDeleteRevocationMonitoring(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Delete a revocation monitoring endpoint + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Id for the revocation monitoring endpoint + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MonitoringApi.MonitoringDeleteRevocationMonitoring(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MonitoringApi.MonitoringDeleteRevocationMonitoring``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Id for the revocation monitoring endpoint | + +### Other Parameters + +Other parameters are passed through a pointer to a apiMonitoringDeleteRevocationMonitoringRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## MonitoringEditRevocationMonitoring + +> KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse MonitoringEditRevocationMonitoring(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Endpoint(endpoint).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Edit a revocation monitoring endpoint + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + endpoint := *openapiclient.NewKeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest("Name_example", "EndpointType_example", "Location_example", *openapiclient.NewKeyfactorApiModelsMonitoringDashboardRequest(false)) // KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest | Information for the endpoint + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MonitoringApi.MonitoringEditRevocationMonitoring(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Endpoint(endpoint).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MonitoringApi.MonitoringEditRevocationMonitoring``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `MonitoringEditRevocationMonitoring`: KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `MonitoringApi.MonitoringEditRevocationMonitoring`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiMonitoringEditRevocationMonitoringRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **endpoint** | [**KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest**](KeyfactorApiModelsMonitoringRevocationMonitoringUpdateRequest.md) | Information for the endpoint | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse**](KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## MonitoringGetRevocationMonitoring + +> KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse MonitoringGetRevocationMonitoring(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Get a revocation monitoring endpoint + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Id for the endpoint to get + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MonitoringApi.MonitoringGetRevocationMonitoring(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MonitoringApi.MonitoringGetRevocationMonitoring``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `MonitoringGetRevocationMonitoring`: KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `MonitoringApi.MonitoringGetRevocationMonitoring`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Id for the endpoint to get | + +### Other Parameters + +Other parameters are passed through a pointer to a apiMonitoringGetRevocationMonitoringRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse**](KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## MonitoringGetRevocationMonitoringEndpoints + +> []KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse MonitoringGetRevocationMonitoringEndpoints(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PagedQueryQueryString(pagedQueryQueryString).PagedQueryPageReturned(pagedQueryPageReturned).PagedQueryReturnLimit(pagedQueryReturnLimit).PagedQuerySortField(pagedQuerySortField).PagedQuerySortAscending(pagedQuerySortAscending).Execute() + +Gets all revocation monitoring endpoints according to the provided filter and output parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + pagedQueryQueryString := "pagedQueryQueryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + pagedQueryPageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + pagedQueryReturnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + pagedQuerySortField := "pagedQuerySortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + pagedQuerySortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MonitoringApi.MonitoringGetRevocationMonitoringEndpoints(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PagedQueryQueryString(pagedQueryQueryString).PagedQueryPageReturned(pagedQueryPageReturned).PagedQueryReturnLimit(pagedQueryReturnLimit).PagedQuerySortField(pagedQuerySortField).PagedQuerySortAscending(pagedQuerySortAscending).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MonitoringApi.MonitoringGetRevocationMonitoringEndpoints``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `MonitoringGetRevocationMonitoringEndpoints`: []KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `MonitoringApi.MonitoringGetRevocationMonitoringEndpoints`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiMonitoringGetRevocationMonitoringEndpointsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + **pagedQueryQueryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **pagedQueryPageReturned** | **int32** | The current page within the result set to be returned | + **pagedQueryReturnLimit** | **int32** | Maximum number of records to be returned in a single call | + **pagedQuerySortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **pagedQuerySortAscending** | **int32** | Field sort direction [0=ascending, 1=descending] | + +### Return type + +[**[]KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse**](KeyfactorApiModelsMonitoringRevocationMonitoringDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## MonitoringResolveOCSP + +> KeyfactorApiModelsMonitoringOCSPParametersResponse MonitoringResolveOCSP(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Endpoint(endpoint).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Resolve the Certificate authority given + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + endpoint := *openapiclient.NewKeyfactorApiModelsMonitoringOCSPParametersRequest() // KeyfactorApiModelsMonitoringOCSPParametersRequest | Information for the new endpoint + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MonitoringApi.MonitoringResolveOCSP(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Endpoint(endpoint).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MonitoringApi.MonitoringResolveOCSP``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `MonitoringResolveOCSP`: KeyfactorApiModelsMonitoringOCSPParametersResponse + fmt.Fprintf(os.Stdout, "Response from `MonitoringApi.MonitoringResolveOCSP`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiMonitoringResolveOCSPRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **endpoint** | [**KeyfactorApiModelsMonitoringOCSPParametersRequest**](KeyfactorApiModelsMonitoringOCSPParametersRequest.md) | Information for the new endpoint | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsMonitoringOCSPParametersResponse**](KeyfactorApiModelsMonitoringOCSPParametersResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## MonitoringTestAllRevocationMonitoringAlert + +> KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse MonitoringTestAllRevocationMonitoringAlert(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).RevocationMonitoringAlertTestRequest(revocationMonitoringAlertTestRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Test All Alerts + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + revocationMonitoringAlertTestRequest := *openapiclient.NewKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest() // KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest | Information about the revocation monitoring alert test + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MonitoringApi.MonitoringTestAllRevocationMonitoringAlert(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).RevocationMonitoringAlertTestRequest(revocationMonitoringAlertTestRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MonitoringApi.MonitoringTestAllRevocationMonitoringAlert``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `MonitoringTestAllRevocationMonitoringAlert`: KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse + fmt.Fprintf(os.Stdout, "Response from `MonitoringApi.MonitoringTestAllRevocationMonitoringAlert`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiMonitoringTestAllRevocationMonitoringAlertRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **revocationMonitoringAlertTestRequest** | [**KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest**](KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestAllRequest.md) | Information about the revocation monitoring alert test | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse**](KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## MonitoringTestRevocationMonitoringAlert + +> KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse MonitoringTestRevocationMonitoringAlert(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).RevocationMonitoringAlertTestRequest(revocationMonitoringAlertTestRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Test Alert + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + revocationMonitoringAlertTestRequest := *openapiclient.NewKeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest() // KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest | Information about the revocation monitoring alert test + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MonitoringApi.MonitoringTestRevocationMonitoringAlert(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).RevocationMonitoringAlertTestRequest(revocationMonitoringAlertTestRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MonitoringApi.MonitoringTestRevocationMonitoringAlert``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `MonitoringTestRevocationMonitoringAlert`: KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse + fmt.Fprintf(os.Stdout, "Response from `MonitoringApi.MonitoringTestRevocationMonitoringAlert`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiMonitoringTestRevocationMonitoringAlertRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **revocationMonitoringAlertTestRequest** | [**KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest**](KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestRequest.md) | Information about the revocation monitoring alert test | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse**](KeyfactorApiModelsMonitoringRevocationMonitoringAlertTestResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v1/docs/OrchestratorJobApi.md b/v1/docs/OrchestratorJobApi.md new file mode 100644 index 0000000..913968b --- /dev/null +++ b/v1/docs/OrchestratorJobApi.md @@ -0,0 +1,570 @@ +# \OrchestratorJobApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**OrchestratorJobAcknowledgeJobs**](OrchestratorJobApi.md#OrchestratorJobAcknowledgeJobs) | **Post** /OrchestratorJobs/Acknowledge | Acknowledges orchestrator jobs based on the provided information +[**OrchestratorJobGetCustomJobResultData**](OrchestratorJobApi.md#OrchestratorJobGetCustomJobResultData) | **Get** /OrchestratorJobs/JobStatus/Data | Retrieves the results of a custom job using the provided information +[**OrchestratorJobGetJobHistory**](OrchestratorJobApi.md#OrchestratorJobGetJobHistory) | **Get** /OrchestratorJobs/JobHistory | Returns all histories of an orchestrator job according to the provided filter and output parameters +[**OrchestratorJobGetScheduledJobs**](OrchestratorJobApi.md#OrchestratorJobGetScheduledJobs) | **Get** /OrchestratorJobs/ScheduledJobs | Returns all scheduled orchestrator jobs according to the provided filter and output parameters +[**OrchestratorJobRescheduleJobs**](OrchestratorJobApi.md#OrchestratorJobRescheduleJobs) | **Post** /OrchestratorJobs/Reschedule | Reschedules orchestrator jobs based on the provided information +[**OrchestratorJobScheduleBulkJob**](OrchestratorJobApi.md#OrchestratorJobScheduleBulkJob) | **Post** /OrchestratorJobs/Custom/Bulk | Schedules the same job for a custom JobType on the specified agents using the provided information +[**OrchestratorJobScheduleJob**](OrchestratorJobApi.md#OrchestratorJobScheduleJob) | **Post** /OrchestratorJobs/Custom | Schedules a job for a custom JobType on the agent using the provided information +[**OrchestratorJobUnscheduleJobs**](OrchestratorJobApi.md#OrchestratorJobUnscheduleJobs) | **Post** /OrchestratorJobs/Unschedule | Unschedules orchestrator jobs based on the provided information + + + +## OrchestratorJobAcknowledgeJobs + +> OrchestratorJobAcknowledgeJobs(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Acknowledges orchestrator jobs based on the provided information + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + req := *openapiclient.NewKeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest() // KeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest | Information to identify the jobs to acknowledge, either a query or a list of job identifiers + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.OrchestratorJobApi.OrchestratorJobAcknowledgeJobs(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrchestratorJobApi.OrchestratorJobAcknowledgeJobs``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiOrchestratorJobAcknowledgeJobsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **req** | [**KeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest**](KeyfactorApiModelsOrchestratorJobsAcknowledgeJobRequest.md) | Information to identify the jobs to acknowledge, either a query or a list of job identifiers | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## OrchestratorJobGetCustomJobResultData + +> KeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse OrchestratorJobGetCustomJobResultData(ctx).JobHistoryId(jobHistoryId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Retrieves the results of a custom job using the provided information + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + jobHistoryId := int64(789) // int64 | Identifier of the job history record to retrieve + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.OrchestratorJobApi.OrchestratorJobGetCustomJobResultData(context.Background()).JobHistoryId(jobHistoryId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrchestratorJobApi.OrchestratorJobGetCustomJobResultData``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `OrchestratorJobGetCustomJobResultData`: KeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse + fmt.Fprintf(os.Stdout, "Response from `OrchestratorJobApi.OrchestratorJobGetCustomJobResultData`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiOrchestratorJobGetCustomJobResultDataRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **jobHistoryId** | **int64** | Identifier of the job history record to retrieve | + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse**](KeyfactorApiModelsOrchestratorJobsCustomJobResultDataResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## OrchestratorJobGetJobHistory + +> []KeyfactorApiModelsCertificateStoresJobHistoryResponse OrchestratorJobGetJobHistory(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + +Returns all histories of an orchestrator job according to the provided filter and output parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + pqQueryString := "pqQueryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + pqPageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + pqReturnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.OrchestratorJobApi.OrchestratorJobGetJobHistory(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrchestratorJobApi.OrchestratorJobGetJobHistory``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `OrchestratorJobGetJobHistory`: []KeyfactorApiModelsCertificateStoresJobHistoryResponse + fmt.Fprintf(os.Stdout, "Response from `OrchestratorJobApi.OrchestratorJobGetJobHistory`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiOrchestratorJobGetJobHistoryRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + **pqQueryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **pqPageReturned** | **int32** | The current page within the result set to be returned | + **pqReturnLimit** | **int32** | Maximum number of records to be returned in a single call | + **pqSortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **pqSortAscending** | **int32** | Field sort direction [0=ascending, 1=descending] | + +### Return type + +[**[]KeyfactorApiModelsCertificateStoresJobHistoryResponse**](KeyfactorApiModelsCertificateStoresJobHistoryResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## OrchestratorJobGetScheduledJobs + +> []ModelsOrchestratorJobsJob OrchestratorJobGetScheduledJobs(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + +Returns all scheduled orchestrator jobs according to the provided filter and output parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + pqQueryString := "pqQueryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + pqPageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + pqReturnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.OrchestratorJobApi.OrchestratorJobGetScheduledJobs(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrchestratorJobApi.OrchestratorJobGetScheduledJobs``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `OrchestratorJobGetScheduledJobs`: []ModelsOrchestratorJobsJob + fmt.Fprintf(os.Stdout, "Response from `OrchestratorJobApi.OrchestratorJobGetScheduledJobs`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiOrchestratorJobGetScheduledJobsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + **pqQueryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **pqPageReturned** | **int32** | The current page within the result set to be returned | + **pqReturnLimit** | **int32** | Maximum number of records to be returned in a single call | + **pqSortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **pqSortAscending** | **int32** | Field sort direction [0=ascending, 1=descending] | + +### Return type + +[**[]ModelsOrchestratorJobsJob**](ModelsOrchestratorJobsJob.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## OrchestratorJobRescheduleJobs + +> OrchestratorJobRescheduleJobs(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Reschedules orchestrator jobs based on the provided information + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + req := *openapiclient.NewKeyfactorApiModelsOrchestratorJobsRescheduleJobRequest() // KeyfactorApiModelsOrchestratorJobsRescheduleJobRequest | Information to identify the jobs to reschedule, either a query or a list of job identifiers + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.OrchestratorJobApi.OrchestratorJobRescheduleJobs(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrchestratorJobApi.OrchestratorJobRescheduleJobs``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiOrchestratorJobRescheduleJobsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **req** | [**KeyfactorApiModelsOrchestratorJobsRescheduleJobRequest**](KeyfactorApiModelsOrchestratorJobsRescheduleJobRequest.md) | Information to identify the jobs to reschedule, either a query or a list of job identifiers | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## OrchestratorJobScheduleBulkJob + +> KeyfactorApiModelsOrchestratorJobsBulkJobResponse OrchestratorJobScheduleBulkJob(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Schedules the same job for a custom JobType on the specified agents using the provided information + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + req := *openapiclient.NewModelsOrchestratorJobsScheduleBulkJobRequest([]string{"00000000-0000-0000-0000-000000000000"}, "JobTypeName_example") // ModelsOrchestratorJobsScheduleBulkJobRequest | Information to use to schedule the jobs, including the type of custom job, agents to use, and job-specific parameters. + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.OrchestratorJobApi.OrchestratorJobScheduleBulkJob(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrchestratorJobApi.OrchestratorJobScheduleBulkJob``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `OrchestratorJobScheduleBulkJob`: KeyfactorApiModelsOrchestratorJobsBulkJobResponse + fmt.Fprintf(os.Stdout, "Response from `OrchestratorJobApi.OrchestratorJobScheduleBulkJob`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiOrchestratorJobScheduleBulkJobRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **req** | [**ModelsOrchestratorJobsScheduleBulkJobRequest**](ModelsOrchestratorJobsScheduleBulkJobRequest.md) | Information to use to schedule the jobs, including the type of custom job, agents to use, and job-specific parameters. | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsOrchestratorJobsBulkJobResponse**](KeyfactorApiModelsOrchestratorJobsBulkJobResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## OrchestratorJobScheduleJob + +> KeyfactorApiModelsOrchestratorJobsJobResponse OrchestratorJobScheduleJob(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Schedules a job for a custom JobType on the agent using the provided information + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + req := *openapiclient.NewModelsOrchestratorJobsScheduleJobRequest("00000000-0000-0000-0000-000000000000", "JobTypeName_example") // ModelsOrchestratorJobsScheduleJobRequest | Information to use to schedule the job, including the type of custom job, agent to use, and job-specific parameters. + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.OrchestratorJobApi.OrchestratorJobScheduleJob(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrchestratorJobApi.OrchestratorJobScheduleJob``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `OrchestratorJobScheduleJob`: KeyfactorApiModelsOrchestratorJobsJobResponse + fmt.Fprintf(os.Stdout, "Response from `OrchestratorJobApi.OrchestratorJobScheduleJob`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiOrchestratorJobScheduleJobRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **req** | [**ModelsOrchestratorJobsScheduleJobRequest**](ModelsOrchestratorJobsScheduleJobRequest.md) | Information to use to schedule the job, including the type of custom job, agent to use, and job-specific parameters. | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsOrchestratorJobsJobResponse**](KeyfactorApiModelsOrchestratorJobsJobResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## OrchestratorJobUnscheduleJobs + +> OrchestratorJobUnscheduleJobs(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Unschedules orchestrator jobs based on the provided information + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + req := *openapiclient.NewKeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest() // KeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest | Information to identify the orchestrator jobs to unschedule, either a query or a list of job identifiers + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.OrchestratorJobApi.OrchestratorJobUnscheduleJobs(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrchestratorJobApi.OrchestratorJobUnscheduleJobs``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiOrchestratorJobUnscheduleJobsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **req** | [**KeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest**](KeyfactorApiModelsOrchestratorJobsUnscheduleJobRequest.md) | Information to identify the orchestrator jobs to unschedule, either a query or a list of job identifiers | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v1/docs/PAMProviderApi.md b/v1/docs/PAMProviderApi.md new file mode 100644 index 0000000..dbf9c6f --- /dev/null +++ b/v1/docs/PAMProviderApi.md @@ -0,0 +1,515 @@ +# \PAMProviderApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**PAMProviderCreatePamProvider**](PAMProviderApi.md#PAMProviderCreatePamProvider) | **Post** /PamProviders | Creates a new PAM provider with the associated properties +[**PAMProviderCreatePamProviderType**](PAMProviderApi.md#PAMProviderCreatePamProviderType) | **Post** /PamProviders/Types | Creates a new PAM provider type with the associated properties +[**PAMProviderDeletePamProvider**](PAMProviderApi.md#PAMProviderDeletePamProvider) | **Delete** /PamProviders/{id} | Deletes a PAM Provider +[**PAMProviderGetPamProvider**](PAMProviderApi.md#PAMProviderGetPamProvider) | **Get** /PamProviders/{id} | Returns a single PAM Provider that matches the associated id +[**PAMProviderGetPamProviderTypes**](PAMProviderApi.md#PAMProviderGetPamProviderTypes) | **Get** /PamProviders/Types | Returns all PAM providers in the Keyfactor instance +[**PAMProviderGetPamProviders**](PAMProviderApi.md#PAMProviderGetPamProviders) | **Get** /PamProviders | Returns all PAM providers according to the provided filter and output parameters +[**PAMProviderUpdatePamProvider**](PAMProviderApi.md#PAMProviderUpdatePamProvider) | **Put** /PamProviders | Updates an existing PAM provider according to the provided properties + + + +## PAMProviderCreatePamProvider + +> CSSCMSDataModelModelsProvider PAMProviderCreatePamProvider(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Provider(provider).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Creates a new PAM provider with the associated properties + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + provider := *openapiclient.NewCSSCMSDataModelModelsProvider("Name_example", *openapiclient.NewCSSCMSDataModelModelsProviderType()) // CSSCMSDataModelModelsProvider | PAM provider properties to be used + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PAMProviderApi.PAMProviderCreatePamProvider(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Provider(provider).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PAMProviderApi.PAMProviderCreatePamProvider``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PAMProviderCreatePamProvider`: CSSCMSDataModelModelsProvider + fmt.Fprintf(os.Stdout, "Response from `PAMProviderApi.PAMProviderCreatePamProvider`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPAMProviderCreatePamProviderRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **provider** | [**CSSCMSDataModelModelsProvider**](CSSCMSDataModelModelsProvider.md) | PAM provider properties to be used | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**CSSCMSDataModelModelsProvider**](CSSCMSDataModelModelsProvider.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PAMProviderCreatePamProviderType + +> KeyfactorApiPAMProviderTypeResponse PAMProviderCreatePamProviderType(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Type_(type_).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Creates a new PAM provider type with the associated properties + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + type_ := *openapiclient.NewKeyfactorApiPAMProviderTypeCreateRequest("Name_example") // KeyfactorApiPAMProviderTypeCreateRequest | PAM provider type properties to be used + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PAMProviderApi.PAMProviderCreatePamProviderType(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Type_(type_).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PAMProviderApi.PAMProviderCreatePamProviderType``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PAMProviderCreatePamProviderType`: KeyfactorApiPAMProviderTypeResponse + fmt.Fprintf(os.Stdout, "Response from `PAMProviderApi.PAMProviderCreatePamProviderType`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPAMProviderCreatePamProviderTypeRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **type_** | [**KeyfactorApiPAMProviderTypeCreateRequest**](KeyfactorApiPAMProviderTypeCreateRequest.md) | PAM provider type properties to be used | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiPAMProviderTypeResponse**](KeyfactorApiPAMProviderTypeResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PAMProviderDeletePamProvider + +> PAMProviderDeletePamProvider(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes a PAM Provider + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Keyfactor identifier of the PAM provider to be deleted + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PAMProviderApi.PAMProviderDeletePamProvider(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PAMProviderApi.PAMProviderDeletePamProvider``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Keyfactor identifier of the PAM provider to be deleted | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPAMProviderDeletePamProviderRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PAMProviderGetPamProvider + +> CSSCMSDataModelModelsProvider PAMProviderGetPamProvider(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns a single PAM Provider that matches the associated id + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Keyfactor identifier of the PAM provider + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PAMProviderApi.PAMProviderGetPamProvider(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PAMProviderApi.PAMProviderGetPamProvider``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PAMProviderGetPamProvider`: CSSCMSDataModelModelsProvider + fmt.Fprintf(os.Stdout, "Response from `PAMProviderApi.PAMProviderGetPamProvider`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Keyfactor identifier of the PAM provider | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPAMProviderGetPamProviderRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**CSSCMSDataModelModelsProvider**](CSSCMSDataModelModelsProvider.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PAMProviderGetPamProviderTypes + +> []CSSCMSDataModelModelsProviderType PAMProviderGetPamProviderTypes(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns all PAM providers in the Keyfactor instance + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PAMProviderApi.PAMProviderGetPamProviderTypes(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PAMProviderApi.PAMProviderGetPamProviderTypes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PAMProviderGetPamProviderTypes`: []CSSCMSDataModelModelsProviderType + fmt.Fprintf(os.Stdout, "Response from `PAMProviderApi.PAMProviderGetPamProviderTypes`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPAMProviderGetPamProviderTypesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**[]CSSCMSDataModelModelsProviderType**](CSSCMSDataModelModelsProviderType.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PAMProviderGetPamProviders + +> []CSSCMSDataModelModelsProvider PAMProviderGetPamProviders(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + +Returns all PAM providers according to the provided filter and output parameters + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + pqQueryString := "pqQueryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + pqPageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + pqReturnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PAMProviderApi.PAMProviderGetPamProviders(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PAMProviderApi.PAMProviderGetPamProviders``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PAMProviderGetPamProviders`: []CSSCMSDataModelModelsProvider + fmt.Fprintf(os.Stdout, "Response from `PAMProviderApi.PAMProviderGetPamProviders`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPAMProviderGetPamProvidersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + **pqQueryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **pqPageReturned** | **int32** | The current page within the result set to be returned | + **pqReturnLimit** | **int32** | Maximum number of records to be returned in a single call | + **pqSortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **pqSortAscending** | **int32** | Field sort direction [0=ascending, 1=descending] | + +### Return type + +[**[]CSSCMSDataModelModelsProvider**](CSSCMSDataModelModelsProvider.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PAMProviderUpdatePamProvider + +> CSSCMSDataModelModelsProvider PAMProviderUpdatePamProvider(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Provider(provider).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Updates an existing PAM provider according to the provided properties + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + provider := *openapiclient.NewCSSCMSDataModelModelsProvider("Name_example", *openapiclient.NewCSSCMSDataModelModelsProviderType()) // CSSCMSDataModelModelsProvider | PAM provider properties to be used + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PAMProviderApi.PAMProviderUpdatePamProvider(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Provider(provider).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PAMProviderApi.PAMProviderUpdatePamProvider``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PAMProviderUpdatePamProvider`: CSSCMSDataModelModelsProvider + fmt.Fprintf(os.Stdout, "Response from `PAMProviderApi.PAMProviderUpdatePamProvider`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPAMProviderUpdatePamProviderRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **provider** | [**CSSCMSDataModelModelsProvider**](CSSCMSDataModelModelsProvider.md) | PAM provider properties to be used | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**CSSCMSDataModelModelsProvider**](CSSCMSDataModelModelsProvider.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v1/docs/PendingAlertApi.md b/v1/docs/PendingAlertApi.md new file mode 100644 index 0000000..3de2d5c --- /dev/null +++ b/v1/docs/PendingAlertApi.md @@ -0,0 +1,641 @@ +# \PendingAlertApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**PendingAlertAddPendingAlert**](PendingAlertApi.md#PendingAlertAddPendingAlert) | **Post** /Alerts/Pending | Add a pending alert +[**PendingAlertDeletePendingAlert**](PendingAlertApi.md#PendingAlertDeletePendingAlert) | **Delete** /Alerts/Pending/{id} | Delete a pending alert +[**PendingAlertEditPendingAlert**](PendingAlertApi.md#PendingAlertEditPendingAlert) | **Put** /Alerts/Pending | Edit a pending alert +[**PendingAlertEditSchedule**](PendingAlertApi.md#PendingAlertEditSchedule) | **Put** /Alerts/Pending/Schedule | Edit schedule +[**PendingAlertGetPendingAlert**](PendingAlertApi.md#PendingAlertGetPendingAlert) | **Get** /Alerts/Pending/{id} | Get a pending alert +[**PendingAlertGetPendingAlerts**](PendingAlertApi.md#PendingAlertGetPendingAlerts) | **Get** /Alerts/Pending | Gets all pending alerts according to the provided filter and output parameters +[**PendingAlertGetSchedule**](PendingAlertApi.md#PendingAlertGetSchedule) | **Get** /Alerts/Pending/Schedule | Get the schedule for pending alerts +[**PendingAlertTestAllPendingAlert**](PendingAlertApi.md#PendingAlertTestAllPendingAlert) | **Post** /Alerts/Pending/TestAll | Test all pending alerts. Will send alert emails if SendAlerts is true +[**PendingAlertTestPendingAlert**](PendingAlertApi.md#PendingAlertTestPendingAlert) | **Post** /Alerts/Pending/Test | Test pending alert. Will send alert emails if SendAlerts is true + + + +## PendingAlertAddPendingAlert + +> KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse PendingAlertAddPendingAlert(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Add a pending alert + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + req := *openapiclient.NewKeyfactorApiModelsAlertsPendingPendingAlertCreationRequest("DisplayName_example", "Subject_example", "Message_example") // KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest | Information for the new alert + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PendingAlertApi.PendingAlertAddPendingAlert(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PendingAlertApi.PendingAlertAddPendingAlert``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PendingAlertAddPendingAlert`: KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `PendingAlertApi.PendingAlertAddPendingAlert`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPendingAlertAddPendingAlertRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **req** | [**KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest**](KeyfactorApiModelsAlertsPendingPendingAlertCreationRequest.md) | Information for the new alert | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse**](KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PendingAlertDeletePendingAlert + +> PendingAlertDeletePendingAlert(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Delete a pending alert + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Id for the pending alert + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PendingAlertApi.PendingAlertDeletePendingAlert(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PendingAlertApi.PendingAlertDeletePendingAlert``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Id for the pending alert | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPendingAlertDeletePendingAlertRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PendingAlertEditPendingAlert + +> KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse PendingAlertEditPendingAlert(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Edit a pending alert + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + req := *openapiclient.NewKeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest("DisplayName_example", "Subject_example", "Message_example") // KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest | Information for the pending alert + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PendingAlertApi.PendingAlertEditPendingAlert(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PendingAlertApi.PendingAlertEditPendingAlert``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PendingAlertEditPendingAlert`: KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `PendingAlertApi.PendingAlertEditPendingAlert`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPendingAlertEditPendingAlertRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **req** | [**KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest**](KeyfactorApiModelsAlertsPendingPendingAlertUpdateRequest.md) | Information for the pending alert | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse**](KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PendingAlertEditSchedule + +> KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse PendingAlertEditSchedule(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).NewSchedule(newSchedule).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Edit schedule + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + newSchedule := *openapiclient.NewKeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest() // KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest | + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PendingAlertApi.PendingAlertEditSchedule(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).NewSchedule(newSchedule).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PendingAlertApi.PendingAlertEditSchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PendingAlertEditSchedule`: KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse + fmt.Fprintf(os.Stdout, "Response from `PendingAlertApi.PendingAlertEditSchedule`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPendingAlertEditScheduleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **newSchedule** | [**KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest**](KeyfactorApiModelsAlertsAlertScheduleAlertScheduleRequest.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse**](KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PendingAlertGetPendingAlert + +> KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse PendingAlertGetPendingAlert(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Get a pending alert + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Id for the pending alert to get + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PendingAlertApi.PendingAlertGetPendingAlert(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PendingAlertApi.PendingAlertGetPendingAlert``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PendingAlertGetPendingAlert`: KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `PendingAlertApi.PendingAlertGetPendingAlert`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Id for the pending alert to get | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPendingAlertGetPendingAlertRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse**](KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PendingAlertGetPendingAlerts + +> []KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse PendingAlertGetPendingAlerts(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PagedQueryQueryString(pagedQueryQueryString).PagedQueryPageReturned(pagedQueryPageReturned).PagedQueryReturnLimit(pagedQueryReturnLimit).PagedQuerySortField(pagedQuerySortField).PagedQuerySortAscending(pagedQuerySortAscending).Execute() + +Gets all pending alerts according to the provided filter and output parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + pagedQueryQueryString := "pagedQueryQueryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + pagedQueryPageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + pagedQueryReturnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + pagedQuerySortField := "pagedQuerySortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + pagedQuerySortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PendingAlertApi.PendingAlertGetPendingAlerts(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PagedQueryQueryString(pagedQueryQueryString).PagedQueryPageReturned(pagedQueryPageReturned).PagedQueryReturnLimit(pagedQueryReturnLimit).PagedQuerySortField(pagedQuerySortField).PagedQuerySortAscending(pagedQuerySortAscending).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PendingAlertApi.PendingAlertGetPendingAlerts``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PendingAlertGetPendingAlerts`: []KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `PendingAlertApi.PendingAlertGetPendingAlerts`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPendingAlertGetPendingAlertsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + **pagedQueryQueryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **pagedQueryPageReturned** | **int32** | The current page within the result set to be returned | + **pagedQueryReturnLimit** | **int32** | Maximum number of records to be returned in a single call | + **pagedQuerySortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **pagedQuerySortAscending** | **int32** | Field sort direction [0=ascending, 1=descending] | + +### Return type + +[**[]KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse**](KeyfactorApiModelsAlertsPendingPendingAlertDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PendingAlertGetSchedule + +> KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse PendingAlertGetSchedule(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Get the schedule for pending alerts + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PendingAlertApi.PendingAlertGetSchedule(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PendingAlertApi.PendingAlertGetSchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PendingAlertGetSchedule`: KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse + fmt.Fprintf(os.Stdout, "Response from `PendingAlertApi.PendingAlertGetSchedule`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPendingAlertGetScheduleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse**](KeyfactorApiModelsAlertsAlertScheduleAlertScheduleResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PendingAlertTestAllPendingAlert + +> KeyfactorApiModelsAlertsPendingPendingAlertTestResponse PendingAlertTestAllPendingAlert(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Test all pending alerts. Will send alert emails if SendAlerts is true + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + req := *openapiclient.NewKeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest() // KeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest | Information for the pending alert + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PendingAlertApi.PendingAlertTestAllPendingAlert(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PendingAlertApi.PendingAlertTestAllPendingAlert``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PendingAlertTestAllPendingAlert`: KeyfactorApiModelsAlertsPendingPendingAlertTestResponse + fmt.Fprintf(os.Stdout, "Response from `PendingAlertApi.PendingAlertTestAllPendingAlert`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPendingAlertTestAllPendingAlertRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **req** | [**KeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest**](KeyfactorApiModelsAlertsPendingPendingAlertTestAllRequest.md) | Information for the pending alert | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsAlertsPendingPendingAlertTestResponse**](KeyfactorApiModelsAlertsPendingPendingAlertTestResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PendingAlertTestPendingAlert + +> KeyfactorApiModelsAlertsPendingPendingAlertTestResponse PendingAlertTestPendingAlert(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Test pending alert. Will send alert emails if SendAlerts is true + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + req := *openapiclient.NewKeyfactorApiModelsAlertsPendingPendingAlertTestRequest() // KeyfactorApiModelsAlertsPendingPendingAlertTestRequest | Information for the pending alert + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PendingAlertApi.PendingAlertTestPendingAlert(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Req(req).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PendingAlertApi.PendingAlertTestPendingAlert``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PendingAlertTestPendingAlert`: KeyfactorApiModelsAlertsPendingPendingAlertTestResponse + fmt.Fprintf(os.Stdout, "Response from `PendingAlertApi.PendingAlertTestPendingAlert`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPendingAlertTestPendingAlertRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **req** | [**KeyfactorApiModelsAlertsPendingPendingAlertTestRequest**](KeyfactorApiModelsAlertsPendingPendingAlertTestRequest.md) | Information for the pending alert | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsAlertsPendingPendingAlertTestResponse**](KeyfactorApiModelsAlertsPendingPendingAlertTestResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v1/docs/ReportsApi.md b/v1/docs/ReportsApi.md new file mode 100644 index 0000000..732dc61 --- /dev/null +++ b/v1/docs/ReportsApi.md @@ -0,0 +1,1111 @@ +# \ReportsApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**ReportsCreateCustomReport**](ReportsApi.md#ReportsCreateCustomReport) | **Post** /Reports/Custom | Creates a custom report +[**ReportsCreateReportSchedule**](ReportsApi.md#ReportsCreateReportSchedule) | **Post** /Reports/{id}/Schedules | Create a built-in report's schedule that matches the id of the report. +[**ReportsDeleteReport**](ReportsApi.md#ReportsDeleteReport) | **Delete** /Reports/Custom/{id} | Delete custom report that matches the id +[**ReportsDeleteReportSchedule**](ReportsApi.md#ReportsDeleteReportSchedule) | **Delete** /Reports/Schedules/{id} | Delete a built-in report's schedule that matches the id of the schedule. +[**ReportsGetCustomReport**](ReportsApi.md#ReportsGetCustomReport) | **Get** /Reports/Custom/{id} | Returns a single custom report that matches the id +[**ReportsGetReport**](ReportsApi.md#ReportsGetReport) | **Get** /Reports/{id} | Returns a single built-in report that matches the id +[**ReportsGetReportParameters**](ReportsApi.md#ReportsGetReportParameters) | **Get** /Reports/{id}/Parameters | Get a built-in report's parameters that matches the id of the report. +[**ReportsGetReportSchedule**](ReportsApi.md#ReportsGetReportSchedule) | **Get** /Reports/Schedules/{id} | Get a built-in report's schedule that matches the id of the schedule. +[**ReportsGetReportSchedules**](ReportsApi.md#ReportsGetReportSchedules) | **Get** /Reports/{id}/Schedules | Get a built-in report's schedules that matches the id of the report. +[**ReportsQueryCustomReports**](ReportsApi.md#ReportsQueryCustomReports) | **Get** /Reports/Custom | Returns all custom reports according to the provided filter and output parameters +[**ReportsQueryReports**](ReportsApi.md#ReportsQueryReports) | **Get** /Reports | Returns all built-in reports according to the provided filter and output parameters +[**ReportsUpdateCustomReport**](ReportsApi.md#ReportsUpdateCustomReport) | **Put** /Reports/Custom | Updates a custom report that matches the id +[**ReportsUpdateReport**](ReportsApi.md#ReportsUpdateReport) | **Put** /Reports | Updates a single built-in report that matches the id. Only some fields can be updated. +[**ReportsUpdateReportParameters**](ReportsApi.md#ReportsUpdateReportParameters) | **Put** /Reports/{id}/Parameters | Update a built-in report's parameters that matches the id of the report. +[**ReportsUpdateReportSchedule**](ReportsApi.md#ReportsUpdateReportSchedule) | **Put** /Reports/{id}/Schedules | Update a built-in report's schedule that matches the id of the report. + + + +## ReportsCreateCustomReport + +> ModelsCustomReport ReportsCreateCustomReport(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Creates a custom report + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + request := *openapiclient.NewModelsCustomReportCreationRequest("CustomURL_example", "DisplayName_example", "Description_example") // ModelsCustomReportCreationRequest | Report Information + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReportsApi.ReportsCreateCustomReport(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReportsApi.ReportsCreateCustomReport``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReportsCreateCustomReport`: ModelsCustomReport + fmt.Fprintf(os.Stdout, "Response from `ReportsApi.ReportsCreateCustomReport`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiReportsCreateCustomReportRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **request** | [**ModelsCustomReportCreationRequest**](ModelsCustomReportCreationRequest.md) | Report Information | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsCustomReport**](ModelsCustomReport.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReportsCreateReportSchedule + +> ModelsReportSchedule ReportsCreateReportSchedule(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Schedule(schedule).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Create a built-in report's schedule that matches the id of the report. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Report identifier + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + schedule := *openapiclient.NewModelsReportSchedule() // ModelsReportSchedule | Report Schedule + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReportsApi.ReportsCreateReportSchedule(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Schedule(schedule).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReportsApi.ReportsCreateReportSchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReportsCreateReportSchedule`: ModelsReportSchedule + fmt.Fprintf(os.Stdout, "Response from `ReportsApi.ReportsCreateReportSchedule`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Report identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReportsCreateReportScheduleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **schedule** | [**ModelsReportSchedule**](ModelsReportSchedule.md) | Report Schedule | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsReportSchedule**](ModelsReportSchedule.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReportsDeleteReport + +> ReportsDeleteReport(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Delete custom report that matches the id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Report identifier + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReportsApi.ReportsDeleteReport(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReportsApi.ReportsDeleteReport``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Report identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReportsDeleteReportRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReportsDeleteReportSchedule + +> ReportsDeleteReportSchedule(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Delete a built-in report's schedule that matches the id of the schedule. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Report Schedule identifier + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReportsApi.ReportsDeleteReportSchedule(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReportsApi.ReportsDeleteReportSchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Report Schedule identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReportsDeleteReportScheduleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReportsGetCustomReport + +> ModelsCustomReport ReportsGetCustomReport(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns a single custom report that matches the id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Report identifier + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReportsApi.ReportsGetCustomReport(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReportsApi.ReportsGetCustomReport``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReportsGetCustomReport`: ModelsCustomReport + fmt.Fprintf(os.Stdout, "Response from `ReportsApi.ReportsGetCustomReport`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Report identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReportsGetCustomReportRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsCustomReport**](ModelsCustomReport.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReportsGetReport + +> ModelsReport ReportsGetReport(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns a single built-in report that matches the id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Report identifier + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReportsApi.ReportsGetReport(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReportsApi.ReportsGetReport``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReportsGetReport`: ModelsReport + fmt.Fprintf(os.Stdout, "Response from `ReportsApi.ReportsGetReport`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Report identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReportsGetReportRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsReport**](ModelsReport.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReportsGetReportParameters + +> []ModelsReportParameters ReportsGetReportParameters(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Get a built-in report's parameters that matches the id of the report. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Report identifier + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReportsApi.ReportsGetReportParameters(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReportsApi.ReportsGetReportParameters``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReportsGetReportParameters`: []ModelsReportParameters + fmt.Fprintf(os.Stdout, "Response from `ReportsApi.ReportsGetReportParameters`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Report identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReportsGetReportParametersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**[]ModelsReportParameters**](ModelsReportParameters.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReportsGetReportSchedule + +> ModelsReportSchedule ReportsGetReportSchedule(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Get a built-in report's schedule that matches the id of the schedule. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Report Schedule identifier + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReportsApi.ReportsGetReportSchedule(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReportsApi.ReportsGetReportSchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReportsGetReportSchedule`: ModelsReportSchedule + fmt.Fprintf(os.Stdout, "Response from `ReportsApi.ReportsGetReportSchedule`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Report Schedule identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReportsGetReportScheduleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsReportSchedule**](ModelsReportSchedule.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReportsGetReportSchedules + +> []ModelsReportSchedule ReportsGetReportSchedules(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + +Get a built-in report's schedules that matches the id of the report. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Report identifier + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + pqQueryString := "pqQueryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + pqPageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + pqReturnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReportsApi.ReportsGetReportSchedules(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReportsApi.ReportsGetReportSchedules``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReportsGetReportSchedules`: []ModelsReportSchedule + fmt.Fprintf(os.Stdout, "Response from `ReportsApi.ReportsGetReportSchedules`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Report identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReportsGetReportSchedulesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + **pqQueryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **pqPageReturned** | **int32** | The current page within the result set to be returned | + **pqReturnLimit** | **int32** | Maximum number of records to be returned in a single call | + **pqSortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **pqSortAscending** | **int32** | Field sort direction [0=ascending, 1=descending] | + +### Return type + +[**[]ModelsReportSchedule**](ModelsReportSchedule.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReportsQueryCustomReports + +> []ModelsCustomReport ReportsQueryCustomReports(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).QueryQueryString(queryQueryString).QueryPageReturned(queryPageReturned).QueryReturnLimit(queryReturnLimit).QuerySortField(querySortField).QuerySortAscending(querySortAscending).Execute() + +Returns all custom reports according to the provided filter and output parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + queryQueryString := "queryQueryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + queryPageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + queryReturnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + querySortField := "querySortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + querySortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReportsApi.ReportsQueryCustomReports(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).QueryQueryString(queryQueryString).QueryPageReturned(queryPageReturned).QueryReturnLimit(queryReturnLimit).QuerySortField(querySortField).QuerySortAscending(querySortAscending).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReportsApi.ReportsQueryCustomReports``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReportsQueryCustomReports`: []ModelsCustomReport + fmt.Fprintf(os.Stdout, "Response from `ReportsApi.ReportsQueryCustomReports`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiReportsQueryCustomReportsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + **queryQueryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **queryPageReturned** | **int32** | The current page within the result set to be returned | + **queryReturnLimit** | **int32** | Maximum number of records to be returned in a single call | + **querySortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **querySortAscending** | **int32** | Field sort direction [0=ascending, 1=descending] | + +### Return type + +[**[]ModelsCustomReport**](ModelsCustomReport.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReportsQueryReports + +> []ModelsReport ReportsQueryReports(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).QueryQueryString(queryQueryString).QueryPageReturned(queryPageReturned).QueryReturnLimit(queryReturnLimit).QuerySortField(querySortField).QuerySortAscending(querySortAscending).Execute() + +Returns all built-in reports according to the provided filter and output parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + queryQueryString := "queryQueryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + queryPageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + queryReturnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + querySortField := "querySortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + querySortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReportsApi.ReportsQueryReports(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).QueryQueryString(queryQueryString).QueryPageReturned(queryPageReturned).QueryReturnLimit(queryReturnLimit).QuerySortField(querySortField).QuerySortAscending(querySortAscending).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReportsApi.ReportsQueryReports``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReportsQueryReports`: []ModelsReport + fmt.Fprintf(os.Stdout, "Response from `ReportsApi.ReportsQueryReports`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiReportsQueryReportsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + **queryQueryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **queryPageReturned** | **int32** | The current page within the result set to be returned | + **queryReturnLimit** | **int32** | Maximum number of records to be returned in a single call | + **querySortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **querySortAscending** | **int32** | Field sort direction [0=ascending, 1=descending] | + +### Return type + +[**[]ModelsReport**](ModelsReport.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReportsUpdateCustomReport + +> ModelsCustomReport ReportsUpdateCustomReport(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Updates a custom report that matches the id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + request := *openapiclient.NewModelsCustomReportUpdateRequest(int32(123)) // ModelsCustomReportUpdateRequest | Report Information + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReportsApi.ReportsUpdateCustomReport(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReportsApi.ReportsUpdateCustomReport``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReportsUpdateCustomReport`: ModelsCustomReport + fmt.Fprintf(os.Stdout, "Response from `ReportsApi.ReportsUpdateCustomReport`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiReportsUpdateCustomReportRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **request** | [**ModelsCustomReportUpdateRequest**](ModelsCustomReportUpdateRequest.md) | Report Information | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsCustomReport**](ModelsCustomReport.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReportsUpdateReport + +> ModelsReport ReportsUpdateReport(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Updates a single built-in report that matches the id. Only some fields can be updated. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + request := *openapiclient.NewModelsReportRequestModel() // ModelsReportRequestModel | This object is used to update the Favorite, In Navigator and the Remove Duplicates if the 'Uses Collections' is true. + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReportsApi.ReportsUpdateReport(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReportsApi.ReportsUpdateReport``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReportsUpdateReport`: ModelsReport + fmt.Fprintf(os.Stdout, "Response from `ReportsApi.ReportsUpdateReport`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiReportsUpdateReportRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **request** | [**ModelsReportRequestModel**](ModelsReportRequestModel.md) | This object is used to update the Favorite, In Navigator and the Remove Duplicates if the 'Uses Collections' is true. | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsReport**](ModelsReport.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReportsUpdateReportParameters + +> []ModelsReportParameters ReportsUpdateReportParameters(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Update a built-in report's parameters that matches the id of the report. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Report identifier + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + request := []openapiclient.ModelsReportParametersRequest{*openapiclient.NewModelsReportParametersRequest()} // []ModelsReportParametersRequest | A List of the parameters to be updated + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReportsApi.ReportsUpdateReportParameters(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReportsApi.ReportsUpdateReportParameters``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReportsUpdateReportParameters`: []ModelsReportParameters + fmt.Fprintf(os.Stdout, "Response from `ReportsApi.ReportsUpdateReportParameters`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Report identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReportsUpdateReportParametersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **request** | [**[]ModelsReportParametersRequest**](ModelsReportParametersRequest.md) | A List of the parameters to be updated | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**[]ModelsReportParameters**](ModelsReportParameters.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReportsUpdateReportSchedule + +> ModelsReportSchedule ReportsUpdateReportSchedule(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Schedule(schedule).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Update a built-in report's schedule that matches the id of the report. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Report identifier + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + schedule := *openapiclient.NewModelsReportSchedule() // ModelsReportSchedule | Report Schedule + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReportsApi.ReportsUpdateReportSchedule(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Schedule(schedule).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReportsApi.ReportsUpdateReportSchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReportsUpdateReportSchedule`: ModelsReportSchedule + fmt.Fprintf(os.Stdout, "Response from `ReportsApi.ReportsUpdateReportSchedule`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Report identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReportsUpdateReportScheduleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **schedule** | [**ModelsReportSchedule**](ModelsReportSchedule.md) | Report Schedule | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsReportSchedule**](ModelsReportSchedule.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v1/docs/SMTPApi.md b/v1/docs/SMTPApi.md new file mode 100644 index 0000000..22622f4 --- /dev/null +++ b/v1/docs/SMTPApi.md @@ -0,0 +1,213 @@ +# \SMTPApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**SMTPSMTP**](SMTPApi.md#SMTPSMTP) | **Get** /SMTP | Gets SMTP profile data +[**SMTPTestSMTP**](SMTPApi.md#SMTPTestSMTP) | **Post** /SMTP/Test | Tests SMTP profile data +[**SMTPUpdateSMTP**](SMTPApi.md#SMTPUpdateSMTP) | **Put** /SMTP | Updates SMTP profile data + + + +## SMTPSMTP + +> KeyfactorAPIModelsSMTPSMTPResponse SMTPSMTP(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Gets SMTP profile data + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SMTPApi.SMTPSMTP(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SMTPApi.SMTPSMTP``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SMTPSMTP`: KeyfactorAPIModelsSMTPSMTPResponse + fmt.Fprintf(os.Stdout, "Response from `SMTPApi.SMTPSMTP`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiSMTPSMTPRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorAPIModelsSMTPSMTPResponse**](KeyfactorAPIModelsSMTPSMTPResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SMTPTestSMTP + +> KeyfactorAPIModelsSMTPSMTPTestResponse SMTPTestSMTP(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).SmtpProfile(smtpProfile).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Tests SMTP profile data + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + smtpProfile := *openapiclient.NewKeyfactorAPIModelsSMTPSMTPTestRequest() // KeyfactorAPIModelsSMTPSMTPTestRequest | + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SMTPApi.SMTPTestSMTP(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).SmtpProfile(smtpProfile).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SMTPApi.SMTPTestSMTP``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SMTPTestSMTP`: KeyfactorAPIModelsSMTPSMTPTestResponse + fmt.Fprintf(os.Stdout, "Response from `SMTPApi.SMTPTestSMTP`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiSMTPTestSMTPRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **smtpProfile** | [**KeyfactorAPIModelsSMTPSMTPTestRequest**](KeyfactorAPIModelsSMTPSMTPTestRequest.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorAPIModelsSMTPSMTPTestResponse**](KeyfactorAPIModelsSMTPSMTPTestResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SMTPUpdateSMTP + +> KeyfactorAPIModelsSMTPSMTPResponse SMTPUpdateSMTP(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).SmtpProfile(smtpProfile).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Updates SMTP profile data + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + smtpProfile := *openapiclient.NewKeyfactorAPIModelsSMTPSMTPRequest() // KeyfactorAPIModelsSMTPSMTPRequest | + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SMTPApi.SMTPUpdateSMTP(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).SmtpProfile(smtpProfile).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SMTPApi.SMTPUpdateSMTP``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SMTPUpdateSMTP`: KeyfactorAPIModelsSMTPSMTPResponse + fmt.Fprintf(os.Stdout, "Response from `SMTPApi.SMTPUpdateSMTP`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiSMTPUpdateSMTPRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **smtpProfile** | [**KeyfactorAPIModelsSMTPSMTPRequest**](KeyfactorAPIModelsSMTPSMTPRequest.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorAPIModelsSMTPSMTPResponse**](KeyfactorAPIModelsSMTPSMTPResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v1/docs/SecurityApi.md b/v1/docs/SecurityApi.md new file mode 100644 index 0000000..5c81193 --- /dev/null +++ b/v1/docs/SecurityApi.md @@ -0,0 +1,221 @@ +# \SecurityApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**SecurityDeleteSecurityIdentity**](SecurityApi.md#SecurityDeleteSecurityIdentity) | **Delete** /Security/Identities/{id} | Deletes the security identity whose ID is provided. +[**SecurityIdentityPermissions**](SecurityApi.md#SecurityIdentityPermissions) | **Get** /Security/Identities/{id} | Gets an object representing the permissions of the identity associated with the provided identifier. +[**SecurityLookupIdentity**](SecurityApi.md#SecurityLookupIdentity) | **Get** /Security/Identities/Lookup | Validates that the identity with the name given exists. + + + +## SecurityDeleteSecurityIdentity + +> SecurityDeleteSecurityIdentity(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes the security identity whose ID is provided. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | The ID of the security identity to be deleted. + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityApi.SecurityDeleteSecurityIdentity(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityApi.SecurityDeleteSecurityIdentity``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | The ID of the security identity to be deleted. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSecurityDeleteSecurityIdentityRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SecurityIdentityPermissions + +> ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse SecurityIdentityPermissions(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Gets an object representing the permissions of the identity associated with the provided identifier. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | The identifier of the security identity + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityApi.SecurityIdentityPermissions(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityApi.SecurityIdentityPermissions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SecurityIdentityPermissions`: ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse + fmt.Fprintf(os.Stdout, "Response from `SecurityApi.SecurityIdentityPermissions`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | The identifier of the security identity | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSecurityIdentityPermissionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse**](ModelsSecurityIdentitiesSecurityIdentityPermissionsResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SecurityLookupIdentity + +> ModelsSecurityIdentitiesSecurityIdentityLookupResponse SecurityLookupIdentity(ctx).AccountName(accountName).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Validates that the identity with the name given exists. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + accountName := "accountName_example" // string | The name of an identity we wish to check. + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityApi.SecurityLookupIdentity(context.Background()).AccountName(accountName).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityApi.SecurityLookupIdentity``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SecurityLookupIdentity`: ModelsSecurityIdentitiesSecurityIdentityLookupResponse + fmt.Fprintf(os.Stdout, "Response from `SecurityApi.SecurityLookupIdentity`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiSecurityLookupIdentityRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **accountName** | **string** | The name of an identity we wish to check. | + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsSecurityIdentitiesSecurityIdentityLookupResponse**](ModelsSecurityIdentitiesSecurityIdentityLookupResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v1/docs/SecurityRolePermissionsApi.md b/v1/docs/SecurityRolePermissionsApi.md new file mode 100644 index 0000000..3bfb7bc --- /dev/null +++ b/v1/docs/SecurityRolePermissionsApi.md @@ -0,0 +1,762 @@ +# \SecurityRolePermissionsApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**SecurityRolePermissionsAddCollectionPermissions**](SecurityRolePermissionsApi.md#SecurityRolePermissionsAddCollectionPermissions) | **Post** /Security/Roles/{id}/Permissions/Collections | Adds collection permissions to the security role that matches the id. +[**SecurityRolePermissionsAddContainerPermissions**](SecurityRolePermissionsApi.md#SecurityRolePermissionsAddContainerPermissions) | **Post** /Security/Roles/{id}/Permissions/Containers | Adds container permissions to the security role that matches the id. +[**SecurityRolePermissionsAddGlobalPermissions**](SecurityRolePermissionsApi.md#SecurityRolePermissionsAddGlobalPermissions) | **Post** /Security/Roles/{id}/Permissions/Global | Adds global permissions to the security role that matches the id. +[**SecurityRolePermissionsGetCollectionPermissionsForRole**](SecurityRolePermissionsApi.md#SecurityRolePermissionsGetCollectionPermissionsForRole) | **Get** /Security/Roles/{id}/Permissions/Collections | Returns all collection permissions associated with the security role that matches the id. +[**SecurityRolePermissionsGetContainerPermissionsForRole**](SecurityRolePermissionsApi.md#SecurityRolePermissionsGetContainerPermissionsForRole) | **Get** /Security/Roles/{id}/Permissions/Containers | Returns all container permissions associated with the security role that matches the id. +[**SecurityRolePermissionsGetGlobalPermissionsForRole**](SecurityRolePermissionsApi.md#SecurityRolePermissionsGetGlobalPermissionsForRole) | **Get** /Security/Roles/{id}/Permissions/Global | Returns all global permissions associated with the security role that matches the id. +[**SecurityRolePermissionsGetPermissionsForRole**](SecurityRolePermissionsApi.md#SecurityRolePermissionsGetPermissionsForRole) | **Get** /Security/Roles/{id}/Permissions | Returns all permissions associated with the security role that matches the id. +[**SecurityRolePermissionsSetCollectionPermissions**](SecurityRolePermissionsApi.md#SecurityRolePermissionsSetCollectionPermissions) | **Put** /Security/Roles/{id}/Permissions/Collections | Sets collection permissions to the security role that matches the id. +[**SecurityRolePermissionsSetContainerPermissions**](SecurityRolePermissionsApi.md#SecurityRolePermissionsSetContainerPermissions) | **Put** /Security/Roles/{id}/Permissions/Containers | Sets container permissions to the security role that matches the id. +[**SecurityRolePermissionsSetGlobalPermissions**](SecurityRolePermissionsApi.md#SecurityRolePermissionsSetGlobalPermissions) | **Put** /Security/Roles/{id}/Permissions/Global | Adds global permissions to the security role that matches the id. + + + +## SecurityRolePermissionsAddCollectionPermissions + +> []KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse SecurityRolePermissionsAddCollectionPermissions(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionPermissions(collectionPermissions).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Adds collection permissions to the security role that matches the id. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Security role identifier + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + collectionPermissions := []openapiclient.KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest{*openapiclient.NewKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest()} // []KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest | Collections permissions + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityRolePermissionsApi.SecurityRolePermissionsAddCollectionPermissions(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionPermissions(collectionPermissions).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityRolePermissionsApi.SecurityRolePermissionsAddCollectionPermissions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SecurityRolePermissionsAddCollectionPermissions`: []KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse + fmt.Fprintf(os.Stdout, "Response from `SecurityRolePermissionsApi.SecurityRolePermissionsAddCollectionPermissions`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Security role identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSecurityRolePermissionsAddCollectionPermissionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **collectionPermissions** | [**[]KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest**](KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest.md) | Collections permissions | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**[]KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse**](KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SecurityRolePermissionsAddContainerPermissions + +> []KeyfactorApiModelsSecurityRolesContainerPermissionResponse SecurityRolePermissionsAddContainerPermissions(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).ContainerPermissions(containerPermissions).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Adds container permissions to the security role that matches the id. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Security role identifier + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + containerPermissions := []openapiclient.KeyfactorApiModelsSecurityRolesContainerPermissionRequest{*openapiclient.NewKeyfactorApiModelsSecurityRolesContainerPermissionRequest()} // []KeyfactorApiModelsSecurityRolesContainerPermissionRequest | Container permissions + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityRolePermissionsApi.SecurityRolePermissionsAddContainerPermissions(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).ContainerPermissions(containerPermissions).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityRolePermissionsApi.SecurityRolePermissionsAddContainerPermissions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SecurityRolePermissionsAddContainerPermissions`: []KeyfactorApiModelsSecurityRolesContainerPermissionResponse + fmt.Fprintf(os.Stdout, "Response from `SecurityRolePermissionsApi.SecurityRolePermissionsAddContainerPermissions`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Security role identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSecurityRolePermissionsAddContainerPermissionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **containerPermissions** | [**[]KeyfactorApiModelsSecurityRolesContainerPermissionRequest**](KeyfactorApiModelsSecurityRolesContainerPermissionRequest.md) | Container permissions | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**[]KeyfactorApiModelsSecurityRolesContainerPermissionResponse**](KeyfactorApiModelsSecurityRolesContainerPermissionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SecurityRolePermissionsAddGlobalPermissions + +> []KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse SecurityRolePermissionsAddGlobalPermissions(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).GlobalPermissions(globalPermissions).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Adds global permissions to the security role that matches the id. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Security role identifier + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + globalPermissions := []openapiclient.KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest{*openapiclient.NewKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest()} // []KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest | Global permissions + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityRolePermissionsApi.SecurityRolePermissionsAddGlobalPermissions(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).GlobalPermissions(globalPermissions).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityRolePermissionsApi.SecurityRolePermissionsAddGlobalPermissions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SecurityRolePermissionsAddGlobalPermissions`: []KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse + fmt.Fprintf(os.Stdout, "Response from `SecurityRolePermissionsApi.SecurityRolePermissionsAddGlobalPermissions`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Security role identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSecurityRolePermissionsAddGlobalPermissionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **globalPermissions** | [**[]KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest**](KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest.md) | Global permissions | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**[]KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse**](KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SecurityRolePermissionsGetCollectionPermissionsForRole + +> []KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse SecurityRolePermissionsGetCollectionPermissionsForRole(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns all collection permissions associated with the security role that matches the id. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Security role identifier + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityRolePermissionsApi.SecurityRolePermissionsGetCollectionPermissionsForRole(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityRolePermissionsApi.SecurityRolePermissionsGetCollectionPermissionsForRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SecurityRolePermissionsGetCollectionPermissionsForRole`: []KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse + fmt.Fprintf(os.Stdout, "Response from `SecurityRolePermissionsApi.SecurityRolePermissionsGetCollectionPermissionsForRole`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Security role identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSecurityRolePermissionsGetCollectionPermissionsForRoleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**[]KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse**](KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SecurityRolePermissionsGetContainerPermissionsForRole + +> []KeyfactorApiModelsSecurityRolesContainerPermissionResponse SecurityRolePermissionsGetContainerPermissionsForRole(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns all container permissions associated with the security role that matches the id. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Security role identifier + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityRolePermissionsApi.SecurityRolePermissionsGetContainerPermissionsForRole(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityRolePermissionsApi.SecurityRolePermissionsGetContainerPermissionsForRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SecurityRolePermissionsGetContainerPermissionsForRole`: []KeyfactorApiModelsSecurityRolesContainerPermissionResponse + fmt.Fprintf(os.Stdout, "Response from `SecurityRolePermissionsApi.SecurityRolePermissionsGetContainerPermissionsForRole`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Security role identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSecurityRolePermissionsGetContainerPermissionsForRoleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**[]KeyfactorApiModelsSecurityRolesContainerPermissionResponse**](KeyfactorApiModelsSecurityRolesContainerPermissionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SecurityRolePermissionsGetGlobalPermissionsForRole + +> []KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse SecurityRolePermissionsGetGlobalPermissionsForRole(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns all global permissions associated with the security role that matches the id. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Security role identifier + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityRolePermissionsApi.SecurityRolePermissionsGetGlobalPermissionsForRole(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityRolePermissionsApi.SecurityRolePermissionsGetGlobalPermissionsForRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SecurityRolePermissionsGetGlobalPermissionsForRole`: []KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse + fmt.Fprintf(os.Stdout, "Response from `SecurityRolePermissionsApi.SecurityRolePermissionsGetGlobalPermissionsForRole`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Security role identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSecurityRolePermissionsGetGlobalPermissionsForRoleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**[]KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse**](KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SecurityRolePermissionsGetPermissionsForRole + +> []KeyfactorApiModelsSecurityRolesAreaPermissionResponse SecurityRolePermissionsGetPermissionsForRole(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns all permissions associated with the security role that matches the id. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Security role identifier + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityRolePermissionsApi.SecurityRolePermissionsGetPermissionsForRole(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityRolePermissionsApi.SecurityRolePermissionsGetPermissionsForRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SecurityRolePermissionsGetPermissionsForRole`: []KeyfactorApiModelsSecurityRolesAreaPermissionResponse + fmt.Fprintf(os.Stdout, "Response from `SecurityRolePermissionsApi.SecurityRolePermissionsGetPermissionsForRole`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Security role identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSecurityRolePermissionsGetPermissionsForRoleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**[]KeyfactorApiModelsSecurityRolesAreaPermissionResponse**](KeyfactorApiModelsSecurityRolesAreaPermissionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SecurityRolePermissionsSetCollectionPermissions + +> []KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse SecurityRolePermissionsSetCollectionPermissions(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionPermissions(collectionPermissions).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Sets collection permissions to the security role that matches the id. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Security role identifier + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + collectionPermissions := []openapiclient.KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest{*openapiclient.NewKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest()} // []KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest | Collections permissions + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityRolePermissionsApi.SecurityRolePermissionsSetCollectionPermissions(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CollectionPermissions(collectionPermissions).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityRolePermissionsApi.SecurityRolePermissionsSetCollectionPermissions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SecurityRolePermissionsSetCollectionPermissions`: []KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse + fmt.Fprintf(os.Stdout, "Response from `SecurityRolePermissionsApi.SecurityRolePermissionsSetCollectionPermissions`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Security role identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSecurityRolePermissionsSetCollectionPermissionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **collectionPermissions** | [**[]KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest**](KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionRequest.md) | Collections permissions | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**[]KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse**](KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesCollectionPermissionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SecurityRolePermissionsSetContainerPermissions + +> []KeyfactorApiModelsSecurityRolesContainerPermissionResponse SecurityRolePermissionsSetContainerPermissions(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).ContainerPermissions(containerPermissions).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Sets container permissions to the security role that matches the id. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Security role identifier + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + containerPermissions := []openapiclient.KeyfactorApiModelsSecurityRolesContainerPermissionRequest{*openapiclient.NewKeyfactorApiModelsSecurityRolesContainerPermissionRequest()} // []KeyfactorApiModelsSecurityRolesContainerPermissionRequest | Container permissions + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityRolePermissionsApi.SecurityRolePermissionsSetContainerPermissions(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).ContainerPermissions(containerPermissions).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityRolePermissionsApi.SecurityRolePermissionsSetContainerPermissions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SecurityRolePermissionsSetContainerPermissions`: []KeyfactorApiModelsSecurityRolesContainerPermissionResponse + fmt.Fprintf(os.Stdout, "Response from `SecurityRolePermissionsApi.SecurityRolePermissionsSetContainerPermissions`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Security role identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSecurityRolePermissionsSetContainerPermissionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **containerPermissions** | [**[]KeyfactorApiModelsSecurityRolesContainerPermissionRequest**](KeyfactorApiModelsSecurityRolesContainerPermissionRequest.md) | Container permissions | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**[]KeyfactorApiModelsSecurityRolesContainerPermissionResponse**](KeyfactorApiModelsSecurityRolesContainerPermissionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SecurityRolePermissionsSetGlobalPermissions + +> []KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse SecurityRolePermissionsSetGlobalPermissions(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).GlobalPermissions(globalPermissions).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Adds global permissions to the security role that matches the id. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Security role identifier + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + globalPermissions := []openapiclient.KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest{*openapiclient.NewKeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest()} // []KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest | Global permissions + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityRolePermissionsApi.SecurityRolePermissionsSetGlobalPermissions(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).GlobalPermissions(globalPermissions).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityRolePermissionsApi.SecurityRolePermissionsSetGlobalPermissions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SecurityRolePermissionsSetGlobalPermissions`: []KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse + fmt.Fprintf(os.Stdout, "Response from `SecurityRolePermissionsApi.SecurityRolePermissionsSetGlobalPermissions`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Security role identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSecurityRolePermissionsSetGlobalPermissionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **globalPermissions** | [**[]KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest**](KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionRequest.md) | Global permissions | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**[]KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse**](KeyfactorApiModelsSecurityRolesIdentitiesSecurityRolesGlobalPermissionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v1/docs/SecurityRolesApi.md b/v1/docs/SecurityRolesApi.md new file mode 100644 index 0000000..4ca6e58 --- /dev/null +++ b/v1/docs/SecurityRolesApi.md @@ -0,0 +1,227 @@ +# \SecurityRolesApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**SecurityRolesDeleteSecurityRole**](SecurityRolesApi.md#SecurityRolesDeleteSecurityRole) | **Delete** /Security/Roles/{id} | Deletes the security role whose ID is provided. +[**SecurityRolesGetIdentitiesWithRole**](SecurityRolesApi.md#SecurityRolesGetIdentitiesWithRole) | **Get** /Security/Roles/{id}/Identities | Returns all identities which have the security role that matches the id. +[**SecurityRolesUpdateIdentitiesWithRole**](SecurityRolesApi.md#SecurityRolesUpdateIdentitiesWithRole) | **Put** /Security/Roles/{id}/Identities | Updates the identities which have the security role that matches the id. + + + +## SecurityRolesDeleteSecurityRole + +> SecurityRolesDeleteSecurityRole(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes the security role whose ID is provided. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Security role identifier + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityRolesApi.SecurityRolesDeleteSecurityRole(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityRolesApi.SecurityRolesDeleteSecurityRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Security role identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSecurityRolesDeleteSecurityRoleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SecurityRolesGetIdentitiesWithRole + +> []KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse SecurityRolesGetIdentitiesWithRole(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns all identities which have the security role that matches the id. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Security role identifier + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityRolesApi.SecurityRolesGetIdentitiesWithRole(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityRolesApi.SecurityRolesGetIdentitiesWithRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SecurityRolesGetIdentitiesWithRole`: []KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse + fmt.Fprintf(os.Stdout, "Response from `SecurityRolesApi.SecurityRolesGetIdentitiesWithRole`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Security role identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSecurityRolesGetIdentitiesWithRoleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**[]KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse**](KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SecurityRolesUpdateIdentitiesWithRole + +> []KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse SecurityRolesUpdateIdentitiesWithRole(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Identities(identities).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Updates the identities which have the security role that matches the id. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Security role identifier + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + identities := *openapiclient.NewKeyfactorApiModelsSecurityRolesRoleIdentitiesRequest() // KeyfactorApiModelsSecurityRolesRoleIdentitiesRequest | Lists of Identity IDs to remove or add to the role + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecurityRolesApi.SecurityRolesUpdateIdentitiesWithRole(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Identities(identities).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecurityRolesApi.SecurityRolesUpdateIdentitiesWithRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SecurityRolesUpdateIdentitiesWithRole`: []KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse + fmt.Fprintf(os.Stdout, "Response from `SecurityRolesApi.SecurityRolesUpdateIdentitiesWithRole`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Security role identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSecurityRolesUpdateIdentitiesWithRoleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **identities** | [**KeyfactorApiModelsSecurityRolesRoleIdentitiesRequest**](KeyfactorApiModelsSecurityRolesRoleIdentitiesRequest.md) | Lists of Identity IDs to remove or add to the role | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**[]KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse**](KeyfactorApiModelsSecurityRolesRoleIdentitiesResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v1/docs/ServerApi.md b/v1/docs/ServerApi.md new file mode 100644 index 0000000..c3d7618 --- /dev/null +++ b/v1/docs/ServerApi.md @@ -0,0 +1,578 @@ +# \ServerApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**ServerAddAccess**](ServerApi.md#ServerAddAccess) | **Post** /SSH/Servers/Access | Updates logons and users with access to those logons for an existing server +[**ServerCreateServer**](ServerApi.md#ServerCreateServer) | **Post** /SSH/Servers | Creates a server with the provided properties +[**ServerDelete**](ServerApi.md#ServerDelete) | **Delete** /SSH/Servers/{id} | Deletes a Server associated with the provided identifier +[**ServerGet**](ServerApi.md#ServerGet) | **Get** /SSH/Servers/{id} | Returns a Server associated with the provided identifier +[**ServerGetAccess**](ServerApi.md#ServerGetAccess) | **Get** /SSH/Servers/Access/{id} | Retrieves logons and users with access to those logons for an existing server +[**ServerQueryServers**](ServerApi.md#ServerQueryServers) | **Get** /SSH/Servers | Returns all servers according to the provided filter parameters +[**ServerRemoveAccess**](ServerApi.md#ServerRemoveAccess) | **Delete** /SSH/Servers/Access | Updates logons and users with access to those logons for an existing server +[**ServerUpdateServer**](ServerApi.md#ServerUpdateServer) | **Put** /SSH/Servers | Updates an existing server with the provided properties + + + +## ServerAddAccess + +> ModelsSSHAccessServerAccessResponse ServerAddAccess(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).ServerAccess(serverAccess).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Updates logons and users with access to those logons for an existing server + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + serverAccess := *openapiclient.NewModelsSSHAccessServerAccessRequest(int32(123), []openapiclient.ModelsSSHAccessLogonUserAccessRequest{*openapiclient.NewModelsSSHAccessLogonUserAccessRequest()}) // ModelsSSHAccessServerAccessRequest | Logons and users to be applied to the existing server + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServerApi.ServerAddAccess(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).ServerAccess(serverAccess).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServerApi.ServerAddAccess``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ServerAddAccess`: ModelsSSHAccessServerAccessResponse + fmt.Fprintf(os.Stdout, "Response from `ServerApi.ServerAddAccess`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiServerAddAccessRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **serverAccess** | [**ModelsSSHAccessServerAccessRequest**](ModelsSSHAccessServerAccessRequest.md) | Logons and users to be applied to the existing server | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsSSHAccessServerAccessResponse**](ModelsSSHAccessServerAccessResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ServerCreateServer + +> ModelsSSHServersServerResponse ServerCreateServer(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CreationRequest(creationRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Creates a server with the provided properties + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + creationRequest := *openapiclient.NewModelsSSHServersServerCreationRequest("00000000-0000-0000-0000-000000000000", "Hostname_example", "00000000-0000-0000-0000-000000000000") // ModelsSSHServersServerCreationRequest | Server properties to be applied to the newserver + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServerApi.ServerCreateServer(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).CreationRequest(creationRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServerApi.ServerCreateServer``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ServerCreateServer`: ModelsSSHServersServerResponse + fmt.Fprintf(os.Stdout, "Response from `ServerApi.ServerCreateServer`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiServerCreateServerRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **creationRequest** | [**ModelsSSHServersServerCreationRequest**](ModelsSSHServersServerCreationRequest.md) | Server properties to be applied to the newserver | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsSSHServersServerResponse**](ModelsSSHServersServerResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ServerDelete + +> ServerDelete(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes a Server associated with the provided identifier + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Keyfactor identifer of the Server to be deleted + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServerApi.ServerDelete(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServerApi.ServerDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Keyfactor identifer of the Server to be deleted | + +### Other Parameters + +Other parameters are passed through a pointer to a apiServerDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ServerGet + +> ModelsSSHServersServerResponse ServerGet(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns a Server associated with the provided identifier + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Keyfactor identifier of the Server + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServerApi.ServerGet(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServerApi.ServerGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ServerGet`: ModelsSSHServersServerResponse + fmt.Fprintf(os.Stdout, "Response from `ServerApi.ServerGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Keyfactor identifier of the Server | + +### Other Parameters + +Other parameters are passed through a pointer to a apiServerGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsSSHServersServerResponse**](ModelsSSHServersServerResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ServerGetAccess + +> ModelsSSHAccessServerAccessResponse ServerGetAccess(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Retrieves logons and users with access to those logons for an existing server + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Id of the existing server + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServerApi.ServerGetAccess(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServerApi.ServerGetAccess``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ServerGetAccess`: ModelsSSHAccessServerAccessResponse + fmt.Fprintf(os.Stdout, "Response from `ServerApi.ServerGetAccess`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Id of the existing server | + +### Other Parameters + +Other parameters are passed through a pointer to a apiServerGetAccessRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsSSHAccessServerAccessResponse**](ModelsSSHAccessServerAccessResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ServerQueryServers + +> []ModelsSSHServersServerResponse ServerQueryServers(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + +Returns all servers according to the provided filter parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + pqQueryString := "pqQueryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + pqPageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + pqReturnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServerApi.ServerQueryServers(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServerApi.ServerQueryServers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ServerQueryServers`: []ModelsSSHServersServerResponse + fmt.Fprintf(os.Stdout, "Response from `ServerApi.ServerQueryServers`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiServerQueryServersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + **pqQueryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **pqPageReturned** | **int32** | The current page within the result set to be returned | + **pqReturnLimit** | **int32** | Maximum number of records to be returned in a single call | + **pqSortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **pqSortAscending** | **int32** | Field sort direction [0=ascending, 1=descending] | + +### Return type + +[**[]ModelsSSHServersServerResponse**](ModelsSSHServersServerResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ServerRemoveAccess + +> ModelsSSHAccessServerAccessResponse ServerRemoveAccess(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).ServerAccess(serverAccess).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Updates logons and users with access to those logons for an existing server + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + serverAccess := *openapiclient.NewModelsSSHAccessServerAccessRequest(int32(123), []openapiclient.ModelsSSHAccessLogonUserAccessRequest{*openapiclient.NewModelsSSHAccessLogonUserAccessRequest()}) // ModelsSSHAccessServerAccessRequest | Logons and users to be removed from the existing server + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServerApi.ServerRemoveAccess(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).ServerAccess(serverAccess).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServerApi.ServerRemoveAccess``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ServerRemoveAccess`: ModelsSSHAccessServerAccessResponse + fmt.Fprintf(os.Stdout, "Response from `ServerApi.ServerRemoveAccess`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiServerRemoveAccessRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **serverAccess** | [**ModelsSSHAccessServerAccessRequest**](ModelsSSHAccessServerAccessRequest.md) | Logons and users to be removed from the existing server | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsSSHAccessServerAccessResponse**](ModelsSSHAccessServerAccessResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ServerUpdateServer + +> ModelsSSHServersServerResponse ServerUpdateServer(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).UpdateRequest(updateRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Updates an existing server with the provided properties + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + updateRequest := *openapiclient.NewModelsSSHServersServerUpdateRequest(int32(123)) // ModelsSSHServersServerUpdateRequest | Server properties to be applied to the existing server + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServerApi.ServerUpdateServer(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).UpdateRequest(updateRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServerApi.ServerUpdateServer``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ServerUpdateServer`: ModelsSSHServersServerResponse + fmt.Fprintf(os.Stdout, "Response from `ServerApi.ServerUpdateServer`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiServerUpdateServerRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **updateRequest** | [**ModelsSSHServersServerUpdateRequest**](ModelsSSHServersServerUpdateRequest.md) | Server properties to be applied to the existing server | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsSSHServersServerResponse**](ModelsSSHServersServerResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v1/docs/ServerGroupApi.md b/v1/docs/ServerGroupApi.md new file mode 100644 index 0000000..9ad89af --- /dev/null +++ b/v1/docs/ServerGroupApi.md @@ -0,0 +1,651 @@ +# \ServerGroupApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**ServerGroupAddAccess**](ServerGroupApi.md#ServerGroupAddAccess) | **Post** /SSH/ServerGroups/Access | Add access rules to the server group +[**ServerGroupCreateServerGroup**](ServerGroupApi.md#ServerGroupCreateServerGroup) | **Post** /SSH/ServerGroups | Creates a server group with the provided properties +[**ServerGroupDelete**](ServerGroupApi.md#ServerGroupDelete) | **Delete** /SSH/ServerGroups/{id} | Deletes a ServerGroup associated with the provided identifier +[**ServerGroupGetAccess**](ServerGroupApi.md#ServerGroupGetAccess) | **Get** /SSH/ServerGroups/Access/{id} | Retrieves logons and users with access to those logons for an existing server group +[**ServerGroupGetGroup**](ServerGroupApi.md#ServerGroupGetGroup) | **Get** /SSH/ServerGroups/{id} | Returns a ServerGroup associated with the provided identifier +[**ServerGroupGetGroupByName**](ServerGroupApi.md#ServerGroupGetGroupByName) | **Get** /SSH/ServerGroups/{name} | Returns a ServerGroup associated with the provided identifier +[**ServerGroupQueryServerGroups**](ServerGroupApi.md#ServerGroupQueryServerGroups) | **Get** /SSH/ServerGroups | Returns all server groups according to the provided filter parameters +[**ServerGroupRemoveAccess**](ServerGroupApi.md#ServerGroupRemoveAccess) | **Delete** /SSH/ServerGroups/Access | Removes access mappings for the specified server group +[**ServerGroupUpdateServerGroup**](ServerGroupApi.md#ServerGroupUpdateServerGroup) | **Put** /SSH/ServerGroups | Updates an existing server group with the provided properties + + + +## ServerGroupAddAccess + +> ModelsSSHAccessServerGroupAccessResponse ServerGroupAddAccess(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).AccessRequest(accessRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Add access rules to the server group + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + accessRequest := *openapiclient.NewModelsSSHAccessServerGroupAccessRequest("00000000-0000-0000-0000-000000000000", []openapiclient.ModelsSSHAccessLogonUserAccessRequest{*openapiclient.NewModelsSSHAccessLogonUserAccessRequest()}) // ModelsSSHAccessServerGroupAccessRequest | + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServerGroupApi.ServerGroupAddAccess(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).AccessRequest(accessRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServerGroupApi.ServerGroupAddAccess``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ServerGroupAddAccess`: ModelsSSHAccessServerGroupAccessResponse + fmt.Fprintf(os.Stdout, "Response from `ServerGroupApi.ServerGroupAddAccess`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiServerGroupAddAccessRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **accessRequest** | [**ModelsSSHAccessServerGroupAccessRequest**](ModelsSSHAccessServerGroupAccessRequest.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsSSHAccessServerGroupAccessResponse**](ModelsSSHAccessServerGroupAccessResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ServerGroupCreateServerGroup + +> ModelsSSHServerGroupsServerGroupResponse ServerGroupCreateServerGroup(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).ServerGroupCreationRequest(serverGroupCreationRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Creates a server group with the provided properties + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + serverGroupCreationRequest := *openapiclient.NewModelsSSHServerGroupsServerGroupCreationRequest("OwnerName_example", "GroupName_example") // ModelsSSHServerGroupsServerGroupCreationRequest | Server group properties to be applied to the new group + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServerGroupApi.ServerGroupCreateServerGroup(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).ServerGroupCreationRequest(serverGroupCreationRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServerGroupApi.ServerGroupCreateServerGroup``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ServerGroupCreateServerGroup`: ModelsSSHServerGroupsServerGroupResponse + fmt.Fprintf(os.Stdout, "Response from `ServerGroupApi.ServerGroupCreateServerGroup`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiServerGroupCreateServerGroupRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **serverGroupCreationRequest** | [**ModelsSSHServerGroupsServerGroupCreationRequest**](ModelsSSHServerGroupsServerGroupCreationRequest.md) | Server group properties to be applied to the new group | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsSSHServerGroupsServerGroupResponse**](ModelsSSHServerGroupsServerGroupResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ServerGroupDelete + +> ServerGroupDelete(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes a ServerGroup associated with the provided identifier + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Keyfactor identifer of the ServerGroup to be deleted + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServerGroupApi.ServerGroupDelete(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServerGroupApi.ServerGroupDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Keyfactor identifer of the ServerGroup to be deleted | + +### Other Parameters + +Other parameters are passed through a pointer to a apiServerGroupDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ServerGroupGetAccess + +> ModelsSSHAccessServerGroupAccessResponse ServerGroupGetAccess(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Retrieves logons and users with access to those logons for an existing server group + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Id of the existing server group + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServerGroupApi.ServerGroupGetAccess(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServerGroupApi.ServerGroupGetAccess``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ServerGroupGetAccess`: ModelsSSHAccessServerGroupAccessResponse + fmt.Fprintf(os.Stdout, "Response from `ServerGroupApi.ServerGroupGetAccess`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Id of the existing server group | + +### Other Parameters + +Other parameters are passed through a pointer to a apiServerGroupGetAccessRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsSSHAccessServerGroupAccessResponse**](ModelsSSHAccessServerGroupAccessResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ServerGroupGetGroup + +> ModelsSSHServerGroupsServerGroupResponse ServerGroupGetGroup(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns a ServerGroup associated with the provided identifier + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Keyfactor identifier of the ServerGroup + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServerGroupApi.ServerGroupGetGroup(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServerGroupApi.ServerGroupGetGroup``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ServerGroupGetGroup`: ModelsSSHServerGroupsServerGroupResponse + fmt.Fprintf(os.Stdout, "Response from `ServerGroupApi.ServerGroupGetGroup`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Keyfactor identifier of the ServerGroup | + +### Other Parameters + +Other parameters are passed through a pointer to a apiServerGroupGetGroupRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsSSHServerGroupsServerGroupResponse**](ModelsSSHServerGroupsServerGroupResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ServerGroupGetGroupByName + +> ModelsSSHServerGroupsServerGroupResponse ServerGroupGetGroupByName(ctx, name).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns a ServerGroup associated with the provided identifier + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ServerGroup + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServerGroupApi.ServerGroupGetGroupByName(context.Background(), name).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServerGroupApi.ServerGroupGetGroupByName``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ServerGroupGetGroupByName`: ModelsSSHServerGroupsServerGroupResponse + fmt.Fprintf(os.Stdout, "Response from `ServerGroupApi.ServerGroupGetGroupByName`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ServerGroup | + +### Other Parameters + +Other parameters are passed through a pointer to a apiServerGroupGetGroupByNameRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsSSHServerGroupsServerGroupResponse**](ModelsSSHServerGroupsServerGroupResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ServerGroupQueryServerGroups + +> []ModelsSSHServerGroupsServerGroupResponse ServerGroupQueryServerGroups(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + +Returns all server groups according to the provided filter parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + pqQueryString := "pqQueryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + pqPageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + pqReturnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServerGroupApi.ServerGroupQueryServerGroups(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServerGroupApi.ServerGroupQueryServerGroups``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ServerGroupQueryServerGroups`: []ModelsSSHServerGroupsServerGroupResponse + fmt.Fprintf(os.Stdout, "Response from `ServerGroupApi.ServerGroupQueryServerGroups`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiServerGroupQueryServerGroupsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + **pqQueryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **pqPageReturned** | **int32** | The current page within the result set to be returned | + **pqReturnLimit** | **int32** | Maximum number of records to be returned in a single call | + **pqSortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **pqSortAscending** | **int32** | Field sort direction [0=ascending, 1=descending] | + +### Return type + +[**[]ModelsSSHServerGroupsServerGroupResponse**](ModelsSSHServerGroupsServerGroupResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ServerGroupRemoveAccess + +> ModelsSSHAccessServerGroupAccessResponse ServerGroupRemoveAccess(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).AccessRequest(accessRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Removes access mappings for the specified server group + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + accessRequest := *openapiclient.NewModelsSSHAccessServerGroupAccessRequest("00000000-0000-0000-0000-000000000000", []openapiclient.ModelsSSHAccessLogonUserAccessRequest{*openapiclient.NewModelsSSHAccessLogonUserAccessRequest()}) // ModelsSSHAccessServerGroupAccessRequest | + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServerGroupApi.ServerGroupRemoveAccess(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).AccessRequest(accessRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServerGroupApi.ServerGroupRemoveAccess``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ServerGroupRemoveAccess`: ModelsSSHAccessServerGroupAccessResponse + fmt.Fprintf(os.Stdout, "Response from `ServerGroupApi.ServerGroupRemoveAccess`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiServerGroupRemoveAccessRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **accessRequest** | [**ModelsSSHAccessServerGroupAccessRequest**](ModelsSSHAccessServerGroupAccessRequest.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsSSHAccessServerGroupAccessResponse**](ModelsSSHAccessServerGroupAccessResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ServerGroupUpdateServerGroup + +> ModelsSSHServerGroupsServerGroupResponse ServerGroupUpdateServerGroup(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).UpdateRequest(updateRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Updates an existing server group with the provided properties + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + updateRequest := *openapiclient.NewModelsSSHServerGroupsServerGroupUpdateRequest("00000000-0000-0000-0000-000000000000", "OwnerName_example", "GroupName_example", false) // ModelsSSHServerGroupsServerGroupUpdateRequest | Server group properties to be applied to the existing group + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServerGroupApi.ServerGroupUpdateServerGroup(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).UpdateRequest(updateRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServerGroupApi.ServerGroupUpdateServerGroup``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ServerGroupUpdateServerGroup`: ModelsSSHServerGroupsServerGroupResponse + fmt.Fprintf(os.Stdout, "Response from `ServerGroupApi.ServerGroupUpdateServerGroup`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiServerGroupUpdateServerGroupRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **updateRequest** | [**ModelsSSHServerGroupsServerGroupUpdateRequest**](ModelsSSHServerGroupsServerGroupUpdateRequest.md) | Server group properties to be applied to the existing group | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsSSHServerGroupsServerGroupResponse**](ModelsSSHServerGroupsServerGroupResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v1/docs/ServiceAccountApi.md b/v1/docs/ServiceAccountApi.md new file mode 100644 index 0000000..67214c9 --- /dev/null +++ b/v1/docs/ServiceAccountApi.md @@ -0,0 +1,584 @@ +# \ServiceAccountApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**ServiceAccountCreateServiceAccount**](ServiceAccountApi.md#ServiceAccountCreateServiceAccount) | **Post** /SSH/ServiceAccounts | Creates a ServiceAccount with the provided properties +[**ServiceAccountDeleteServiceAccount**](ServiceAccountApi.md#ServiceAccountDeleteServiceAccount) | **Delete** /SSH/ServiceAccounts/{id} | Deletes a ServiceAccount associated with the provided identifier +[**ServiceAccountDeleteServiceAccounts**](ServiceAccountApi.md#ServiceAccountDeleteServiceAccounts) | **Delete** /SSH/ServiceAccounts | Deletes Service Accounts associated with the provided identifiers +[**ServiceAccountGet**](ServiceAccountApi.md#ServiceAccountGet) | **Get** /SSH/ServiceAccounts/{id} | Returns a ServiceAccount associated with the provided identifier +[**ServiceAccountGetServiceAccountKey**](ServiceAccountApi.md#ServiceAccountGetServiceAccountKey) | **Get** /SSH/ServiceAccounts/Key/{id} | Returns an SSH key with or without private key based on the provided parameters. +[**ServiceAccountQueryServiceAccounts**](ServiceAccountApi.md#ServiceAccountQueryServiceAccounts) | **Get** /SSH/ServiceAccounts | Returns all ServiceAccounts according to the provided filter parameters +[**ServiceAccountRotateServiceAccountKey**](ServiceAccountApi.md#ServiceAccountRotateServiceAccountKey) | **Post** /SSH/ServiceAccounts/Rotate/{id} | Rotate an SSH key for a specified service account. +[**ServiceAccountUpdateServiceAccount**](ServiceAccountApi.md#ServiceAccountUpdateServiceAccount) | **Put** /SSH/ServiceAccounts | Updates an SSH key for a specified service account. + + + +## ServiceAccountCreateServiceAccount + +> ModelsSSHServiceAccountsServiceAccountResponse ServiceAccountCreateServiceAccount(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).ServiceAccount(serviceAccount).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Creates a ServiceAccount with the provided properties + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + serviceAccount := *openapiclient.NewModelsSSHServiceAccountsServiceAccountCreationRequest(*openapiclient.NewModelsSSHKeysKeyGenerationRequest("KeyType_example", "PrivateKeyFormat_example", int32(123), "Email_example", "Password_example"), *openapiclient.NewModelsSSHServiceAccountsServiceAccountUserCreationRequest("Username_example"), "ClientHostname_example", "00000000-0000-0000-0000-000000000000") // ModelsSSHServiceAccountsServiceAccountCreationRequest | ServiceAccount properties to be applied to the new ServiceAccount + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServiceAccountApi.ServiceAccountCreateServiceAccount(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).ServiceAccount(serviceAccount).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceAccountApi.ServiceAccountCreateServiceAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ServiceAccountCreateServiceAccount`: ModelsSSHServiceAccountsServiceAccountResponse + fmt.Fprintf(os.Stdout, "Response from `ServiceAccountApi.ServiceAccountCreateServiceAccount`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiServiceAccountCreateServiceAccountRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **serviceAccount** | [**ModelsSSHServiceAccountsServiceAccountCreationRequest**](ModelsSSHServiceAccountsServiceAccountCreationRequest.md) | ServiceAccount properties to be applied to the new ServiceAccount | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsSSHServiceAccountsServiceAccountResponse**](ModelsSSHServiceAccountsServiceAccountResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ServiceAccountDeleteServiceAccount + +> ServiceAccountDeleteServiceAccount(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes a ServiceAccount associated with the provided identifier + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Keyfactor identifer of the ServiceAccount to be deleted + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServiceAccountApi.ServiceAccountDeleteServiceAccount(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceAccountApi.ServiceAccountDeleteServiceAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Keyfactor identifer of the ServiceAccount to be deleted | + +### Other Parameters + +Other parameters are passed through a pointer to a apiServiceAccountDeleteServiceAccountRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ServiceAccountDeleteServiceAccounts + +> ServiceAccountDeleteServiceAccounts(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Ids(ids).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes Service Accounts associated with the provided identifiers + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + ids := []int32{int32(123)} // []int32 | Keyfactor identifers of the ServiceAccounts to be deleted + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServiceAccountApi.ServiceAccountDeleteServiceAccounts(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Ids(ids).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceAccountApi.ServiceAccountDeleteServiceAccounts``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiServiceAccountDeleteServiceAccountsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **ids** | **[]int32** | Keyfactor identifers of the ServiceAccounts to be deleted | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ServiceAccountGet + +> ModelsSSHServiceAccountsServiceAccountResponse ServiceAccountGet(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns a ServiceAccount associated with the provided identifier + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Keyfactor identifier of the ServiceAccount + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServiceAccountApi.ServiceAccountGet(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceAccountApi.ServiceAccountGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ServiceAccountGet`: ModelsSSHServiceAccountsServiceAccountResponse + fmt.Fprintf(os.Stdout, "Response from `ServiceAccountApi.ServiceAccountGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Keyfactor identifier of the ServiceAccount | + +### Other Parameters + +Other parameters are passed through a pointer to a apiServiceAccountGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsSSHServiceAccountsServiceAccountResponse**](ModelsSSHServiceAccountsServiceAccountResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ServiceAccountGetServiceAccountKey + +> ModelsSSHKeysKeyResponse ServiceAccountGetServiceAccountKey(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).IncludePrivateKey(includePrivateKey).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns an SSH key with or without private key based on the provided parameters. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | The id of the service account to obtain information on + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + includePrivateKey := true // bool | Whether or not to include the private key in the response (optional) + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServiceAccountApi.ServiceAccountGetServiceAccountKey(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).IncludePrivateKey(includePrivateKey).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceAccountApi.ServiceAccountGetServiceAccountKey``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ServiceAccountGetServiceAccountKey`: ModelsSSHKeysKeyResponse + fmt.Fprintf(os.Stdout, "Response from `ServiceAccountApi.ServiceAccountGetServiceAccountKey`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | The id of the service account to obtain information on | + +### Other Parameters + +Other parameters are passed through a pointer to a apiServiceAccountGetServiceAccountKeyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **includePrivateKey** | **bool** | Whether or not to include the private key in the response | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsSSHKeysKeyResponse**](ModelsSSHKeysKeyResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ServiceAccountQueryServiceAccounts + +> []ModelsSSHServiceAccountsServiceAccountResponse ServiceAccountQueryServiceAccounts(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + +Returns all ServiceAccounts according to the provided filter parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + pqQueryString := "pqQueryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + pqPageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + pqReturnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServiceAccountApi.ServiceAccountQueryServiceAccounts(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceAccountApi.ServiceAccountQueryServiceAccounts``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ServiceAccountQueryServiceAccounts`: []ModelsSSHServiceAccountsServiceAccountResponse + fmt.Fprintf(os.Stdout, "Response from `ServiceAccountApi.ServiceAccountQueryServiceAccounts`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiServiceAccountQueryServiceAccountsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + **pqQueryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **pqPageReturned** | **int32** | The current page within the result set to be returned | + **pqReturnLimit** | **int32** | Maximum number of records to be returned in a single call | + **pqSortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **pqSortAscending** | **int32** | Field sort direction [0=ascending, 1=descending] | + +### Return type + +[**[]ModelsSSHServiceAccountsServiceAccountResponse**](ModelsSSHServiceAccountsServiceAccountResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ServiceAccountRotateServiceAccountKey + +> ModelsSSHKeysKeyResponse ServiceAccountRotateServiceAccountKey(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).RotationRequest(rotationRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Rotate an SSH key for a specified service account. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | The id of the service account and the updated state of the SSH key. + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + rotationRequest := *openapiclient.NewModelsSSHKeysKeyGenerationRequest("KeyType_example", "PrivateKeyFormat_example", int32(123), "Email_example", "Password_example") // ModelsSSHKeysKeyGenerationRequest | + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServiceAccountApi.ServiceAccountRotateServiceAccountKey(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).RotationRequest(rotationRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceAccountApi.ServiceAccountRotateServiceAccountKey``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ServiceAccountRotateServiceAccountKey`: ModelsSSHKeysKeyResponse + fmt.Fprintf(os.Stdout, "Response from `ServiceAccountApi.ServiceAccountRotateServiceAccountKey`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | The id of the service account and the updated state of the SSH key. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiServiceAccountRotateServiceAccountKeyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **rotationRequest** | [**ModelsSSHKeysKeyGenerationRequest**](ModelsSSHKeysKeyGenerationRequest.md) | | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsSSHKeysKeyResponse**](ModelsSSHKeysKeyResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ServiceAccountUpdateServiceAccount + +> ModelsSSHServiceAccountsServiceAccountResponse ServiceAccountUpdateServiceAccount(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).UpdateRequest(updateRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Updates an SSH key for a specified service account. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + updateRequest := *openapiclient.NewModelsSSHServiceAccountsServiceAccountUpdateRequest(*openapiclient.NewModelsSSHKeysKeyUpdateRequest(int32(123), "Email_example"), int32(123)) // ModelsSSHServiceAccountsServiceAccountUpdateRequest | The id of the service account and the updated state of the SSH key. + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ServiceAccountApi.ServiceAccountUpdateServiceAccount(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).UpdateRequest(updateRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceAccountApi.ServiceAccountUpdateServiceAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ServiceAccountUpdateServiceAccount`: ModelsSSHServiceAccountsServiceAccountResponse + fmt.Fprintf(os.Stdout, "Response from `ServiceAccountApi.ServiceAccountUpdateServiceAccount`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiServiceAccountUpdateServiceAccountRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **updateRequest** | [**ModelsSSHServiceAccountsServiceAccountUpdateRequest**](ModelsSSHServiceAccountsServiceAccountUpdateRequest.md) | The id of the service account and the updated state of the SSH key. | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsSSHServiceAccountsServiceAccountResponse**](ModelsSSHServiceAccountsServiceAccountResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v1/docs/SslApi.md b/v1/docs/SslApi.md new file mode 100644 index 0000000..624fd72 --- /dev/null +++ b/v1/docs/SslApi.md @@ -0,0 +1,1444 @@ +# \SslApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**SslAddNetworkRanges**](SslApi.md#SslAddNetworkRanges) | **Post** /SSL/NetworkRanges | Adds the provided network range definitions to the associated network definition +[**SslCreateNetwork**](SslApi.md#SslCreateNetwork) | **Post** /SSL/Networks | Creates a network definition according to the provided properties +[**SslEndpoint**](SslApi.md#SslEndpoint) | **Get** /SSL/Endpoints/{id} | Returns the details of the associated scanning endpoint +[**SslEndpointHistory**](SslApi.md#SslEndpointHistory) | **Get** /SSL/Endpoints/{id}/History | Returns a list of the scan results for the provided endpoint according to the provided filter and output parameters +[**SslGetNetwork**](SslApi.md#SslGetNetwork) | **Get** /SSL/Networks/{identifier} | Returns a defined SSL network according to the provided name +[**SslGetNetworkRangesForNetwork**](SslApi.md#SslGetNetworkRangesForNetwork) | **Get** /SSL/NetworkRanges/{id} | Returns the network range definitions for the provided network definition +[**SslGetNetworks**](SslApi.md#SslGetNetworks) | **Get** /SSL/Networks | Returns all defined SSL networks according to the provided filter and output parameters +[**SslImmediateSslScan**](SslApi.md#SslImmediateSslScan) | **Post** /SSL/Networks/{id}/Scan | Starts an SSL Scan for the network according to the associated network definition +[**SslMonitorAll**](SslApi.md#SslMonitorAll) | **Put** /SSL/Endpoints/MonitorAll | Sets all endpoints matching the provided query as 'monitored' +[**SslMonitoringStatus**](SslApi.md#SslMonitoringStatus) | **Put** /SSL/Endpoints/MonitorStatus | Sets the monitored status according to the provided endpoint and boolean status +[**SslNetworkScanParts**](SslApi.md#SslNetworkScanParts) | **Get** /SSL/Networks/{id}/Parts | Returns the scan job components comprising the entire scan job to be executed +[**SslRemoveAllNetworkRanges**](SslApi.md#SslRemoveAllNetworkRanges) | **Delete** /SSL/NetworkRanges/{id} | Removes all network range definitions from the associated network definition +[**SslRemoveNetwork**](SslApi.md#SslRemoveNetwork) | **Delete** /SSL/Networks/{id} | Removes a network definition according to the provided identifier +[**SslResults**](SslApi.md#SslResults) | **Get** /SSL | Returns a list of the endpoint scan results according to the provided filter and output parameters +[**SslReviewAll**](SslApi.md#SslReviewAll) | **Put** /SSL/Endpoints/ReviewAll | Sets all endpoints matching the provided query as 'reviewed' +[**SslReviewedStatus**](SslApi.md#SslReviewedStatus) | **Put** /SSL/Endpoints/ReviewStatus | Sets the reviewed status according to the provided endpoint and boolean status +[**SslScanPart**](SslApi.md#SslScanPart) | **Get** /SSL/Parts/{id} | Returns the execution details of the associated network scan job part +[**SslSetNetworkRanges**](SslApi.md#SslSetNetworkRanges) | **Put** /SSL/NetworkRanges | Configures network range definitions for the provided network +[**SslUpdateNetwork**](SslApi.md#SslUpdateNetwork) | **Put** /SSL/Networks | Updates an existing network definition according to the provided properties +[**SslValidateNetworkRanges**](SslApi.md#SslValidateNetworkRanges) | **Post** /SSL/NetworkRanges/Validate | Validates the format (using regular expressions) of the provided network range definitions + + + +## SslAddNetworkRanges + +> SslAddNetworkRanges(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).NetworkRanges(networkRanges).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Adds the provided network range definitions to the associated network definition + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + networkRanges := *openapiclient.NewModelsSSLNetworkRangesRequest("00000000-0000-0000-0000-000000000000", []string{"Ranges_example"}) // ModelsSSLNetworkRangesRequest | Network definition identifier and the ranges to be added + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SslApi.SslAddNetworkRanges(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).NetworkRanges(networkRanges).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SslApi.SslAddNetworkRanges``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiSslAddNetworkRangesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **networkRanges** | [**ModelsSSLNetworkRangesRequest**](ModelsSSLNetworkRangesRequest.md) | Network definition identifier and the ranges to be added | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SslCreateNetwork + +> KeyfactorApiModelsSslNetworkResponse SslCreateNetwork(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Network(network).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Creates a network definition according to the provided properties + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + network := *openapiclient.NewKeyfactorApiModelsSslCreateNetworkRequest("Name_example", "AgentPoolName_example", "Description_example") // KeyfactorApiModelsSslCreateNetworkRequest | Properties of the network definition to be created + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SslApi.SslCreateNetwork(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Network(network).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SslApi.SslCreateNetwork``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SslCreateNetwork`: KeyfactorApiModelsSslNetworkResponse + fmt.Fprintf(os.Stdout, "Response from `SslApi.SslCreateNetwork`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiSslCreateNetworkRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **network** | [**KeyfactorApiModelsSslCreateNetworkRequest**](KeyfactorApiModelsSslCreateNetworkRequest.md) | Properties of the network definition to be created | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsSslNetworkResponse**](KeyfactorApiModelsSslNetworkResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SslEndpoint + +> ModelsSSLEndpoint SslEndpoint(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns the details of the associated scanning endpoint + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Keyfactor identifier of the endpoint + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SslApi.SslEndpoint(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SslApi.SslEndpoint``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SslEndpoint`: ModelsSSLEndpoint + fmt.Fprintf(os.Stdout, "Response from `SslApi.SslEndpoint`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Keyfactor identifier of the endpoint | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSslEndpointRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsSSLEndpoint**](ModelsSSLEndpoint.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SslEndpointHistory + +> []ModelsSSLEndpointHistoryResponse SslEndpointHistory(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + +Returns a list of the scan results for the provided endpoint according to the provided filter and output parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Keyfactor identifier of the endpoint + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + pqQueryString := "pqQueryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + pqPageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + pqReturnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SslApi.SslEndpointHistory(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SslApi.SslEndpointHistory``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SslEndpointHistory`: []ModelsSSLEndpointHistoryResponse + fmt.Fprintf(os.Stdout, "Response from `SslApi.SslEndpointHistory`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Keyfactor identifier of the endpoint | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSslEndpointHistoryRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + **pqQueryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **pqPageReturned** | **int32** | The current page within the result set to be returned | + **pqReturnLimit** | **int32** | Maximum number of records to be returned in a single call | + **pqSortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **pqSortAscending** | **int32** | Field sort direction [0=ascending, 1=descending] | + +### Return type + +[**[]ModelsSSLEndpointHistoryResponse**](ModelsSSLEndpointHistoryResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SslGetNetwork + +> KeyfactorApiModelsSslNetworkResponse SslGetNetwork(ctx, identifier).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns a defined SSL network according to the provided name + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + identifier := "identifier_example" // string | Identifier (Guid or Name) of the defined network + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SslApi.SslGetNetwork(context.Background(), identifier).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SslApi.SslGetNetwork``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SslGetNetwork`: KeyfactorApiModelsSslNetworkResponse + fmt.Fprintf(os.Stdout, "Response from `SslApi.SslGetNetwork`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**identifier** | **string** | Identifier (Guid or Name) of the defined network | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSslGetNetworkRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsSslNetworkResponse**](KeyfactorApiModelsSslNetworkResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SslGetNetworkRangesForNetwork + +> []ModelsSSLNetworkDefinition SslGetNetworkRangesForNetwork(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns the network range definitions for the provided network definition + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Keyfactor network identifier + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SslApi.SslGetNetworkRangesForNetwork(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SslApi.SslGetNetworkRangesForNetwork``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SslGetNetworkRangesForNetwork`: []ModelsSSLNetworkDefinition + fmt.Fprintf(os.Stdout, "Response from `SslApi.SslGetNetworkRangesForNetwork`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Keyfactor network identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSslGetNetworkRangesForNetworkRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**[]ModelsSSLNetworkDefinition**](ModelsSSLNetworkDefinition.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SslGetNetworks + +> []KeyfactorApiModelsSslNetworkQueryResponse SslGetNetworks(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).SqQueryString(sqQueryString).SqPageReturned(sqPageReturned).SqReturnLimit(sqReturnLimit).SqSortField(sqSortField).SqSortAscending(sqSortAscending).Execute() + +Returns all defined SSL networks according to the provided filter and output parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + sqQueryString := "sqQueryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + sqPageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + sqReturnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + sqSortField := "sqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + sqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SslApi.SslGetNetworks(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).SqQueryString(sqQueryString).SqPageReturned(sqPageReturned).SqReturnLimit(sqReturnLimit).SqSortField(sqSortField).SqSortAscending(sqSortAscending).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SslApi.SslGetNetworks``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SslGetNetworks`: []KeyfactorApiModelsSslNetworkQueryResponse + fmt.Fprintf(os.Stdout, "Response from `SslApi.SslGetNetworks`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiSslGetNetworksRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + **sqQueryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **sqPageReturned** | **int32** | The current page within the result set to be returned | + **sqReturnLimit** | **int32** | Maximum number of records to be returned in a single call | + **sqSortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **sqSortAscending** | **int32** | Field sort direction [0=ascending, 1=descending] | + +### Return type + +[**[]KeyfactorApiModelsSslNetworkQueryResponse**](KeyfactorApiModelsSslNetworkQueryResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SslImmediateSslScan + +> SslImmediateSslScan(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).SslScanRequest(sslScanRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Starts an SSL Scan for the network according to the associated network definition + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Keyfactor network identifier + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + sslScanRequest := *openapiclient.NewModelsSSLImmediateSslScanRequest(false, false) // ModelsSSLImmediateSslScanRequest | Request for an immediate SSL Scan + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SslApi.SslImmediateSslScan(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).SslScanRequest(sslScanRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SslApi.SslImmediateSslScan``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Keyfactor network identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSslImmediateSslScanRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **sslScanRequest** | [**ModelsSSLImmediateSslScanRequest**](ModelsSSLImmediateSslScanRequest.md) | Request for an immediate SSL Scan | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SslMonitorAll + +> SslMonitorAll(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Query(query).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Sets all endpoints matching the provided query as 'monitored' + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + query := "query_example" // string | Query to filter the endpoints for which the status should be set (optional) + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SslApi.SslMonitorAll(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Query(query).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SslApi.SslMonitorAll``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiSslMonitorAllRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **query** | **string** | Query to filter the endpoints for which the status should be set | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SslMonitoringStatus + +> SslMonitoringStatus(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Requests(requests).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Sets the monitored status according to the provided endpoint and boolean status + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + requests := []openapiclient.ModelsSSLEndpointStatusRequest{*openapiclient.NewModelsSSLEndpointStatusRequest("00000000-0000-0000-0000-000000000000", false)} // []ModelsSSLEndpointStatusRequest | Endpoints and statuses to be set for each + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SslApi.SslMonitoringStatus(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Requests(requests).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SslApi.SslMonitoringStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiSslMonitoringStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **requests** | [**[]ModelsSSLEndpointStatusRequest**](ModelsSSLEndpointStatusRequest.md) | Endpoints and statuses to be set for each | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SslNetworkScanParts + +> []ModelsSSLDisplayScanJobPart SslNetworkScanParts(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PagedQueryJobType(pagedQueryJobType).PagedQueryQueryString(pagedQueryQueryString).PagedQueryPageReturned(pagedQueryPageReturned).PagedQueryReturnLimit(pagedQueryReturnLimit).PagedQuerySortField(pagedQuerySortField).PagedQuerySortAscending(pagedQuerySortAscending).Execute() + +Returns the scan job components comprising the entire scan job to be executed + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Keyfactor network definition identifier + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + pagedQueryJobType := int32(56) // int32 | (optional) + pagedQueryQueryString := "pagedQueryQueryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + pagedQueryPageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + pagedQueryReturnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + pagedQuerySortField := "pagedQuerySortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + pagedQuerySortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SslApi.SslNetworkScanParts(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PagedQueryJobType(pagedQueryJobType).PagedQueryQueryString(pagedQueryQueryString).PagedQueryPageReturned(pagedQueryPageReturned).PagedQueryReturnLimit(pagedQueryReturnLimit).PagedQuerySortField(pagedQuerySortField).PagedQuerySortAscending(pagedQuerySortAscending).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SslApi.SslNetworkScanParts``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SslNetworkScanParts`: []ModelsSSLDisplayScanJobPart + fmt.Fprintf(os.Stdout, "Response from `SslApi.SslNetworkScanParts`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Keyfactor network definition identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSslNetworkScanPartsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + **pagedQueryJobType** | **int32** | | + **pagedQueryQueryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **pagedQueryPageReturned** | **int32** | The current page within the result set to be returned | + **pagedQueryReturnLimit** | **int32** | Maximum number of records to be returned in a single call | + **pagedQuerySortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **pagedQuerySortAscending** | **int32** | Field sort direction [0=ascending, 1=descending] | + +### Return type + +[**[]ModelsSSLDisplayScanJobPart**](ModelsSSLDisplayScanJobPart.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SslRemoveAllNetworkRanges + +> SslRemoveAllNetworkRanges(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Removes all network range definitions from the associated network definition + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Keyfactor network definition identifier + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SslApi.SslRemoveAllNetworkRanges(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SslApi.SslRemoveAllNetworkRanges``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Keyfactor network definition identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSslRemoveAllNetworkRangesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SslRemoveNetwork + +> SslRemoveNetwork(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Removes a network definition according to the provided identifier + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Keyfactor network identifier + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SslApi.SslRemoveNetwork(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SslApi.SslRemoveNetwork``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Keyfactor network identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSslRemoveNetworkRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SslResults + +> []ModelsSSLSslScanResult SslResults(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + +Returns a list of the endpoint scan results according to the provided filter and output parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + pqQueryString := "pqQueryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + pqPageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + pqReturnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SslApi.SslResults(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SslApi.SslResults``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SslResults`: []ModelsSSLSslScanResult + fmt.Fprintf(os.Stdout, "Response from `SslApi.SslResults`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiSslResultsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + **pqQueryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **pqPageReturned** | **int32** | The current page within the result set to be returned | + **pqReturnLimit** | **int32** | Maximum number of records to be returned in a single call | + **pqSortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **pqSortAscending** | **int32** | Field sort direction [0=ascending, 1=descending] | + +### Return type + +[**[]ModelsSSLSslScanResult**](ModelsSSLSslScanResult.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SslReviewAll + +> SslReviewAll(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Query(query).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Sets all endpoints matching the provided query as 'reviewed' + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + query := "query_example" // string | Query to filter the endpoints for which the status should be set (optional) + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SslApi.SslReviewAll(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Query(query).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SslApi.SslReviewAll``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiSslReviewAllRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **query** | **string** | Query to filter the endpoints for which the status should be set | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SslReviewedStatus + +> SslReviewedStatus(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).EndpointReviewedStatus(endpointReviewedStatus).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Sets the reviewed status according to the provided endpoint and boolean status + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + endpointReviewedStatus := []openapiclient.ModelsSSLEndpointStatusRequest{*openapiclient.NewModelsSSLEndpointStatusRequest("00000000-0000-0000-0000-000000000000", false)} // []ModelsSSLEndpointStatusRequest | Endpoints and statuses for each + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SslApi.SslReviewedStatus(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).EndpointReviewedStatus(endpointReviewedStatus).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SslApi.SslReviewedStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiSslReviewedStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **endpointReviewedStatus** | [**[]ModelsSSLEndpointStatusRequest**](ModelsSSLEndpointStatusRequest.md) | Endpoints and statuses for each | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SslScanPart + +> ModelsSSLScanJobPart SslScanPart(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns the execution details of the associated network scan job part + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Keyfactor identifier of the scan job part + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SslApi.SslScanPart(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SslApi.SslScanPart``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SslScanPart`: ModelsSSLScanJobPart + fmt.Fprintf(os.Stdout, "Response from `SslApi.SslScanPart`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Keyfactor identifier of the scan job part | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSslScanPartRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsSSLScanJobPart**](ModelsSSLScanJobPart.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SslSetNetworkRanges + +> SslSetNetworkRanges(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).NetworkRanges(networkRanges).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Configures network range definitions for the provided network + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + networkRanges := *openapiclient.NewModelsSSLNetworkRangesRequest("00000000-0000-0000-0000-000000000000", []string{"Ranges_example"}) // ModelsSSLNetworkRangesRequest | Network range defitions and the network to which they should be set + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SslApi.SslSetNetworkRanges(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).NetworkRanges(networkRanges).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SslApi.SslSetNetworkRanges``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiSslSetNetworkRangesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **networkRanges** | [**ModelsSSLNetworkRangesRequest**](ModelsSSLNetworkRangesRequest.md) | Network range defitions and the network to which they should be set | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SslUpdateNetwork + +> KeyfactorApiModelsSslNetworkResponse SslUpdateNetwork(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Network(network).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Updates an existing network definition according to the provided properties + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + network := *openapiclient.NewKeyfactorApiModelsSslUpdateNetworkRequest("00000000-0000-0000-0000-000000000000", "Name_example", "AgentPoolName_example", "Description_example") // KeyfactorApiModelsSslUpdateNetworkRequest | Properties of the network definition to be updated + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SslApi.SslUpdateNetwork(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Network(network).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SslApi.SslUpdateNetwork``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SslUpdateNetwork`: KeyfactorApiModelsSslNetworkResponse + fmt.Fprintf(os.Stdout, "Response from `SslApi.SslUpdateNetwork`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiSslUpdateNetworkRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **network** | [**KeyfactorApiModelsSslUpdateNetworkRequest**](KeyfactorApiModelsSslUpdateNetworkRequest.md) | Properties of the network definition to be updated | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsSslNetworkResponse**](KeyfactorApiModelsSslNetworkResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SslValidateNetworkRanges + +> SslValidateNetworkRanges(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).NetworkRangesToVerify(networkRangesToVerify).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Validates the format (using regular expressions) of the provided network range definitions + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + networkRangesToVerify := []string{"Property_example"} // []string | List of the network range definitions to verify + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SslApi.SslValidateNetworkRanges(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).NetworkRangesToVerify(networkRangesToVerify).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SslApi.SslValidateNetworkRanges``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiSslValidateNetworkRangesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **networkRangesToVerify** | **[]string** | List of the network range definitions to verify | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v1/docs/StatusApi.md b/v1/docs/StatusApi.md new file mode 100644 index 0000000..cfe035e --- /dev/null +++ b/v1/docs/StatusApi.md @@ -0,0 +1,75 @@ +# \StatusApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**StatusGetEndpoints**](StatusApi.md#StatusGetEndpoints) | **Get** /Status/Endpoints | Returns all endpoints to which the requesting identity has access + + + +## StatusGetEndpoints + +> []string StatusGetEndpoints(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns all endpoints to which the requesting identity has access + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.StatusApi.StatusGetEndpoints(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `StatusApi.StatusGetEndpoints``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StatusGetEndpoints`: []string + fmt.Fprintf(os.Stdout, "Response from `StatusApi.StatusGetEndpoints`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiStatusGetEndpointsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +**[]string** + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v1/docs/TemplateApi.md b/v1/docs/TemplateApi.md new file mode 100644 index 0000000..e41101d --- /dev/null +++ b/v1/docs/TemplateApi.md @@ -0,0 +1,497 @@ +# \TemplateApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**TemplateGetGlobalSettings**](TemplateApi.md#TemplateGetGlobalSettings) | **Get** /Templates/Settings | Gets the global template settings. +[**TemplateGetTemplate**](TemplateApi.md#TemplateGetTemplate) | **Get** /Templates/{id} | Returns the certificate template associated with the provided id +[**TemplateGetTemplates**](TemplateApi.md#TemplateGetTemplates) | **Get** /Templates | Returns all certificate templates according to the provided filter and output parameters +[**TemplateGetValidSubjectParts**](TemplateApi.md#TemplateGetValidSubjectParts) | **Get** /Templates/SubjectParts | +[**TemplateImport**](TemplateApi.md#TemplateImport) | **Post** /Templates/Import | Imports templates from the provided configuration tenant +[**TemplateUpdateGlobalSettings**](TemplateApi.md#TemplateUpdateGlobalSettings) | **Put** /Templates/Settings | Replaces the existing global template settings. +[**TemplateUpdateTemplate**](TemplateApi.md#TemplateUpdateTemplate) | **Put** /Templates | Updates a certificate template according to the provided properties + + + +## TemplateGetGlobalSettings + +> KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse TemplateGetGlobalSettings(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Gets the global template settings. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.TemplateApi.TemplateGetGlobalSettings(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TemplateApi.TemplateGetGlobalSettings``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `TemplateGetGlobalSettings`: KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse + fmt.Fprintf(os.Stdout, "Response from `TemplateApi.TemplateGetGlobalSettings`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiTemplateGetGlobalSettingsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse**](KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## TemplateGetTemplate + +> ModelsTemplateRetrievalResponse TemplateGetTemplate(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns the certificate template associated with the provided id + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | Keyfactor identifier of the certificate template + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.TemplateApi.TemplateGetTemplate(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TemplateApi.TemplateGetTemplate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `TemplateGetTemplate`: ModelsTemplateRetrievalResponse + fmt.Fprintf(os.Stdout, "Response from `TemplateApi.TemplateGetTemplate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | Keyfactor identifier of the certificate template | + +### Other Parameters + +Other parameters are passed through a pointer to a apiTemplateGetTemplateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsTemplateRetrievalResponse**](ModelsTemplateRetrievalResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## TemplateGetTemplates + +> []ModelsTemplateCollectionRetrievalResponse TemplateGetTemplates(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).SqQueryString(sqQueryString).SqPageReturned(sqPageReturned).SqReturnLimit(sqReturnLimit).SqSortField(sqSortField).SqSortAscending(sqSortAscending).Execute() + +Returns all certificate templates according to the provided filter and output parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + sqQueryString := "sqQueryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + sqPageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + sqReturnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + sqSortField := "sqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + sqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.TemplateApi.TemplateGetTemplates(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).SqQueryString(sqQueryString).SqPageReturned(sqPageReturned).SqReturnLimit(sqReturnLimit).SqSortField(sqSortField).SqSortAscending(sqSortAscending).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TemplateApi.TemplateGetTemplates``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `TemplateGetTemplates`: []ModelsTemplateCollectionRetrievalResponse + fmt.Fprintf(os.Stdout, "Response from `TemplateApi.TemplateGetTemplates`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiTemplateGetTemplatesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + **sqQueryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **sqPageReturned** | **int32** | The current page within the result set to be returned | + **sqReturnLimit** | **int32** | Maximum number of records to be returned in a single call | + **sqSortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **sqSortAscending** | **int32** | Field sort direction [0=ascending, 1=descending] | + +### Return type + +[**[]ModelsTemplateCollectionRetrievalResponse**](ModelsTemplateCollectionRetrievalResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## TemplateGetValidSubjectParts + +> []KeyfactorApiModelsTemplatesValidSubjectPartResponse TemplateGetValidSubjectParts(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.TemplateApi.TemplateGetValidSubjectParts(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TemplateApi.TemplateGetValidSubjectParts``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `TemplateGetValidSubjectParts`: []KeyfactorApiModelsTemplatesValidSubjectPartResponse + fmt.Fprintf(os.Stdout, "Response from `TemplateApi.TemplateGetValidSubjectParts`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiTemplateGetValidSubjectPartsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**[]KeyfactorApiModelsTemplatesValidSubjectPartResponse**](KeyfactorApiModelsTemplatesValidSubjectPartResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## TemplateImport + +> TemplateImport(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).ConfigurationTenantRequest(configurationTenantRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Imports templates from the provided configuration tenant + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + configurationTenantRequest := *openapiclient.NewKeyfactorApiModelsConfigurationTenantConfigurationTenantRequest() // KeyfactorApiModelsConfigurationTenantConfigurationTenantRequest | Configuration tenant to import from + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.TemplateApi.TemplateImport(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).ConfigurationTenantRequest(configurationTenantRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TemplateApi.TemplateImport``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiTemplateImportRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **configurationTenantRequest** | [**KeyfactorApiModelsConfigurationTenantConfigurationTenantRequest**](KeyfactorApiModelsConfigurationTenantConfigurationTenantRequest.md) | Configuration tenant to import from | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## TemplateUpdateGlobalSettings + +> KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse TemplateUpdateGlobalSettings(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Settings(settings).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Replaces the existing global template settings. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + settings := *openapiclient.NewKeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest([]openapiclient.KeyfactorApiModelsTemplatesGlobalTemplateRegexRequest{*openapiclient.NewKeyfactorApiModelsTemplatesGlobalTemplateRegexRequest("SubjectPart_example")}, []openapiclient.KeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest{*openapiclient.NewKeyfactorApiModelsTemplatesGlobalTemplateDefaultRequest("SubjectPart_example")}, *openapiclient.NewKeyfactorApiModelsTemplatesGlobalTemplatePolicyRequest([]int32{int32(123)}, []string{"ECCValidCurves_example"}, false, false, false)) // KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest | The new global template settings. + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.TemplateApi.TemplateUpdateGlobalSettings(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Settings(settings).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TemplateApi.TemplateUpdateGlobalSettings``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `TemplateUpdateGlobalSettings`: KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse + fmt.Fprintf(os.Stdout, "Response from `TemplateApi.TemplateUpdateGlobalSettings`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiTemplateUpdateGlobalSettingsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **settings** | [**KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest**](KeyfactorApiModelsTemplatesGlobalTemplateSettingsRequest.md) | The new global template settings. | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse**](KeyfactorApiModelsTemplatesGlobalTemplateSettingsResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## TemplateUpdateTemplate + +> ModelsTemplateRetrievalResponse TemplateUpdateTemplate(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Template(template).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Updates a certificate template according to the provided properties + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + template := *openapiclient.NewModelsTemplateUpdateRequest() // ModelsTemplateUpdateRequest | Properties of the certificate template to be updated + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.TemplateApi.TemplateUpdateTemplate(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Template(template).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TemplateApi.TemplateUpdateTemplate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `TemplateUpdateTemplate`: ModelsTemplateRetrievalResponse + fmt.Fprintf(os.Stdout, "Response from `TemplateApi.TemplateUpdateTemplate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiTemplateUpdateTemplateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **template** | [**ModelsTemplateUpdateRequest**](ModelsTemplateUpdateRequest.md) | Properties of the certificate template to be updated | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsTemplateRetrievalResponse**](ModelsTemplateRetrievalResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v1/docs/UserApi.md b/v1/docs/UserApi.md new file mode 100644 index 0000000..de2e2cc --- /dev/null +++ b/v1/docs/UserApi.md @@ -0,0 +1,438 @@ +# \UserApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**UserCreateUser**](UserApi.md#UserCreateUser) | **Post** /SSH/Users | Creates a new SSH User. +[**UserDeleteUser**](UserApi.md#UserDeleteUser) | **Delete** /SSH/Users/{id} | Deletes an SSH user. +[**UserGetUser**](UserApi.md#UserGetUser) | **Get** /SSH/Users/{id} | Looks up information about an existing SSH user. +[**UserQueryUsers**](UserApi.md#UserQueryUsers) | **Get** /SSH/Users | Returns users matching the criteria from the provided query parameters +[**UserUpdateUser**](UserApi.md#UserUpdateUser) | **Put** /SSH/Users | Updates information about a given user. +[**UserUserAccess**](UserApi.md#UserUserAccess) | **Post** /SSH/Users/Access | Updates logon access for a user + + + +## UserCreateUser + +> ModelsSSHUsersSshUserResponse UserCreateUser(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).SshUserCreationRequest(sshUserCreationRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Creates a new SSH User. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + sshUserCreationRequest := *openapiclient.NewModelsSSHUsersSshUserCreationRequest("Username_example") // ModelsSSHUsersSshUserCreationRequest | SSH user to be created. + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UserApi.UserCreateUser(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).SshUserCreationRequest(sshUserCreationRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UserApi.UserCreateUser``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UserCreateUser`: ModelsSSHUsersSshUserResponse + fmt.Fprintf(os.Stdout, "Response from `UserApi.UserCreateUser`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUserCreateUserRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **sshUserCreationRequest** | [**ModelsSSHUsersSshUserCreationRequest**](ModelsSSHUsersSshUserCreationRequest.md) | SSH user to be created. | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsSSHUsersSshUserResponse**](ModelsSSHUsersSshUserResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UserDeleteUser + +> UserDeleteUser(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes an SSH user. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | The Id of the user to delete. + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UserApi.UserDeleteUser(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UserApi.UserDeleteUser``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | The Id of the user to delete. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUserDeleteUserRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UserGetUser + +> ModelsSSHUsersSshUserResponse UserGetUser(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Looks up information about an existing SSH user. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | The Id of the SSH user to retrieve. + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UserApi.UserGetUser(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UserApi.UserGetUser``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UserGetUser`: ModelsSSHUsersSshUserResponse + fmt.Fprintf(os.Stdout, "Response from `UserApi.UserGetUser`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | The Id of the SSH user to retrieve. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUserGetUserRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsSSHUsersSshUserResponse**](ModelsSSHUsersSshUserResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UserQueryUsers + +> []ModelsSSHUsersSshUserResponse UserQueryUsers(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).ShowOwnedAccess(showOwnedAccess).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + +Returns users matching the criteria from the provided query parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + showOwnedAccess := true // bool | Whether or not to return only logons that have access to servers the requesting user owns (optional) + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + pqQueryString := "pqQueryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + pqPageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + pqReturnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UserApi.UserQueryUsers(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).ShowOwnedAccess(showOwnedAccess).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UserApi.UserQueryUsers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UserQueryUsers`: []ModelsSSHUsersSshUserResponse + fmt.Fprintf(os.Stdout, "Response from `UserApi.UserQueryUsers`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUserQueryUsersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **showOwnedAccess** | **bool** | Whether or not to return only logons that have access to servers the requesting user owns | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + **pqQueryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **pqPageReturned** | **int32** | The current page within the result set to be returned | + **pqReturnLimit** | **int32** | Maximum number of records to be returned in a single call | + **pqSortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **pqSortAscending** | **int32** | Field sort direction [0=ascending, 1=descending] | + +### Return type + +[**[]ModelsSSHUsersSshUserResponse**](ModelsSSHUsersSshUserResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UserUpdateUser + +> ModelsSSHUsersSshUserResponse UserUpdateUser(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).SshUserUpdateRequest(sshUserUpdateRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Updates information about a given user. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + sshUserUpdateRequest := *openapiclient.NewModelsSSHUsersSshUserUpdateRequest(int32(123)) // ModelsSSHUsersSshUserUpdateRequest | The new state of the SSH user to update. + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UserApi.UserUpdateUser(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).SshUserUpdateRequest(sshUserUpdateRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UserApi.UserUpdateUser``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UserUpdateUser`: ModelsSSHUsersSshUserResponse + fmt.Fprintf(os.Stdout, "Response from `UserApi.UserUpdateUser`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUserUpdateUserRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **sshUserUpdateRequest** | [**ModelsSSHUsersSshUserUpdateRequest**](ModelsSSHUsersSshUserUpdateRequest.md) | The new state of the SSH user to update. | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsSSHUsersSshUserResponse**](ModelsSSHUsersSshUserResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UserUserAccess + +> ModelsSSHUsersSshUserAccessResponse UserUserAccess(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).UserRequest(userRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Updates logon access for a user + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + userRequest := *openapiclient.NewModelsSSHUsersSshUserUpdateRequest(int32(123)) // ModelsSSHUsersSshUserUpdateRequest | Logons to add the existing user + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UserApi.UserUserAccess(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).UserRequest(userRequest).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UserApi.UserUserAccess``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UserUserAccess`: ModelsSSHUsersSshUserAccessResponse + fmt.Fprintf(os.Stdout, "Response from `UserApi.UserUserAccess`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUserUserAccessRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **userRequest** | [**ModelsSSHUsersSshUserUpdateRequest**](ModelsSSHUsersSshUserUpdateRequest.md) | Logons to add the existing user | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsSSHUsersSshUserAccessResponse**](ModelsSSHUsersSshUserAccessResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v1/docs/WorkflowApi.md b/v1/docs/WorkflowApi.md new file mode 100644 index 0000000..a9636fa --- /dev/null +++ b/v1/docs/WorkflowApi.md @@ -0,0 +1,373 @@ +# \WorkflowApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**WorkflowApprovePendingRequests**](WorkflowApi.md#WorkflowApprovePendingRequests) | **Post** /Workflow/Certificates/Approve | Approves pending certificate requests associated with the provided ids +[**WorkflowDenyPendingRequests**](WorkflowApi.md#WorkflowDenyPendingRequests) | **Post** /Workflow/Certificates/Deny | Denies pending certificate requests associated with the provided ids +[**WorkflowGet**](WorkflowApi.md#WorkflowGet) | **Get** /Workflow/Certificates/Pending | Gets a collection of certificate requests based on the provided query. +[**WorkflowGetCertificateRequestDetails**](WorkflowApi.md#WorkflowGetCertificateRequestDetails) | **Get** /Workflow/Certificates/{id} | Returns certificate request details based on the provided ID. +[**WorkflowGetDenied**](WorkflowApi.md#WorkflowGetDenied) | **Get** /Workflow/Certificates/Denied | Gets a collection of denied certificate requests based on the provided query. + + + +## WorkflowApprovePendingRequests + +> ModelsWorkflowApproveDenyResult WorkflowApprovePendingRequests(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).RequestIds(requestIds).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Approves pending certificate requests associated with the provided ids + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + requestIds := []int32{int32(123)} // []int32 | Array of Keyfactor identifiers of the certificate requests + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowApi.WorkflowApprovePendingRequests(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).RequestIds(requestIds).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowApi.WorkflowApprovePendingRequests``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WorkflowApprovePendingRequests`: ModelsWorkflowApproveDenyResult + fmt.Fprintf(os.Stdout, "Response from `WorkflowApi.WorkflowApprovePendingRequests`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiWorkflowApprovePendingRequestsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **requestIds** | **[]int32** | Array of Keyfactor identifiers of the certificate requests | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsWorkflowApproveDenyResult**](ModelsWorkflowApproveDenyResult.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WorkflowDenyPendingRequests + +> ModelsWorkflowApproveDenyResult WorkflowDenyPendingRequests(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Denies pending certificate requests associated with the provided ids + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + request := *openapiclient.NewModelsWorkflowDenialRequest() // ModelsWorkflowDenialRequest | Keyfactor identifiers of the certificate requests to be denied and any denial comments + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowApi.WorkflowDenyPendingRequests(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowApi.WorkflowDenyPendingRequests``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WorkflowDenyPendingRequests`: ModelsWorkflowApproveDenyResult + fmt.Fprintf(os.Stdout, "Response from `WorkflowApi.WorkflowDenyPendingRequests`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiWorkflowDenyPendingRequestsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **request** | [**ModelsWorkflowDenialRequest**](ModelsWorkflowDenialRequest.md) | Keyfactor identifiers of the certificate requests to be denied and any denial comments | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsWorkflowApproveDenyResult**](ModelsWorkflowApproveDenyResult.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WorkflowGet + +> []ModelsWorkflowCertificateRequestModel WorkflowGet(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PagedQueryQueryString(pagedQueryQueryString).PagedQueryPageReturned(pagedQueryPageReturned).PagedQueryReturnLimit(pagedQueryReturnLimit).PagedQuerySortField(pagedQuerySortField).PagedQuerySortAscending(pagedQuerySortAscending).Execute() + +Gets a collection of certificate requests based on the provided query. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + pagedQueryQueryString := "pagedQueryQueryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + pagedQueryPageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + pagedQueryReturnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + pagedQuerySortField := "pagedQuerySortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + pagedQuerySortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowApi.WorkflowGet(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PagedQueryQueryString(pagedQueryQueryString).PagedQueryPageReturned(pagedQueryPageReturned).PagedQueryReturnLimit(pagedQueryReturnLimit).PagedQuerySortField(pagedQuerySortField).PagedQuerySortAscending(pagedQuerySortAscending).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowApi.WorkflowGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WorkflowGet`: []ModelsWorkflowCertificateRequestModel + fmt.Fprintf(os.Stdout, "Response from `WorkflowApi.WorkflowGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiWorkflowGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + **pagedQueryQueryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **pagedQueryPageReturned** | **int32** | The current page within the result set to be returned | + **pagedQueryReturnLimit** | **int32** | Maximum number of records to be returned in a single call | + **pagedQuerySortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **pagedQuerySortAscending** | **int32** | Field sort direction [0=ascending, 1=descending] | + +### Return type + +[**[]ModelsWorkflowCertificateRequestModel**](ModelsWorkflowCertificateRequestModel.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WorkflowGetCertificateRequestDetails + +> ModelsWorkflowCertificateRequestDetailsModel WorkflowGetCertificateRequestDetails(ctx, id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Returns certificate request details based on the provided ID. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + id := int32(56) // int32 | The ID of the certificate request. + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowApi.WorkflowGetCertificateRequestDetails(context.Background(), id).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowApi.WorkflowGetCertificateRequestDetails``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WorkflowGetCertificateRequestDetails`: ModelsWorkflowCertificateRequestDetailsModel + fmt.Fprintf(os.Stdout, "Response from `WorkflowApi.WorkflowGetCertificateRequestDetails`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | The ID of the certificate request. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWorkflowGetCertificateRequestDetailsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**ModelsWorkflowCertificateRequestDetailsModel**](ModelsWorkflowCertificateRequestDetailsModel.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WorkflowGetDenied + +> []ModelsWorkflowCertificateRequestModel WorkflowGetDenied(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PagedQueryQueryString(pagedQueryQueryString).PagedQueryPageReturned(pagedQueryPageReturned).PagedQueryReturnLimit(pagedQueryReturnLimit).PagedQuerySortField(pagedQuerySortField).PagedQuerySortAscending(pagedQuerySortAscending).Execute() + +Gets a collection of denied certificate requests based on the provided query. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + pagedQueryQueryString := "pagedQueryQueryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + pagedQueryPageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + pagedQueryReturnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + pagedQuerySortField := "pagedQuerySortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + pagedQuerySortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowApi.WorkflowGetDenied(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PagedQueryQueryString(pagedQueryQueryString).PagedQueryPageReturned(pagedQueryPageReturned).PagedQueryReturnLimit(pagedQueryReturnLimit).PagedQuerySortField(pagedQuerySortField).PagedQuerySortAscending(pagedQuerySortAscending).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowApi.WorkflowGetDenied``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WorkflowGetDenied`: []ModelsWorkflowCertificateRequestModel + fmt.Fprintf(os.Stdout, "Response from `WorkflowApi.WorkflowGetDenied`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiWorkflowGetDeniedRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + **pagedQueryQueryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **pagedQueryPageReturned** | **int32** | The current page within the result set to be returned | + **pagedQueryReturnLimit** | **int32** | Maximum number of records to be returned in a single call | + **pagedQuerySortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **pagedQuerySortAscending** | **int32** | Field sort direction [0=ascending, 1=descending] | + +### Return type + +[**[]ModelsWorkflowCertificateRequestModel**](ModelsWorkflowCertificateRequestModel.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v1/docs/WorkflowDefinitionApi.md b/v1/docs/WorkflowDefinitionApi.md new file mode 100644 index 0000000..7e4aa07 --- /dev/null +++ b/v1/docs/WorkflowDefinitionApi.md @@ -0,0 +1,754 @@ +# \WorkflowDefinitionApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**WorkflowDefinitionConfigureDefinitionSteps**](WorkflowDefinitionApi.md#WorkflowDefinitionConfigureDefinitionSteps) | **Put** /Workflow/Definitions/{definitionId}/Steps | Sets the provided steps on the latest version of the definition. +[**WorkflowDefinitionCreateNewDefinition**](WorkflowDefinitionApi.md#WorkflowDefinitionCreateNewDefinition) | **Post** /Workflow/Definitions | Creates a new base definition without any steps. +[**WorkflowDefinitionDelete**](WorkflowDefinitionApi.md#WorkflowDefinitionDelete) | **Delete** /Workflow/Definitions/{definitionId} | Deletes the definition matching the given Id. +[**WorkflowDefinitionGet**](WorkflowDefinitionApi.md#WorkflowDefinitionGet) | **Get** /Workflow/Definitions/{definitionId} | Gets a workflow definition. +[**WorkflowDefinitionGetStepSchema**](WorkflowDefinitionApi.md#WorkflowDefinitionGetStepSchema) | **Get** /Workflow/Definitions/Steps/{extensionName} | Gets the schema of a given step with the specified extension name. +[**WorkflowDefinitionPublishDefinition**](WorkflowDefinitionApi.md#WorkflowDefinitionPublishDefinition) | **Post** /Workflow/Definitions/{definitionId}/Publish | Makes the most recent version of a Workflow Definition the published version. +[**WorkflowDefinitionQuery**](WorkflowDefinitionApi.md#WorkflowDefinitionQuery) | **Get** /Workflow/Definitions | Gets the Definitions matching the query specifications. +[**WorkflowDefinitionQueryAvailableSteps**](WorkflowDefinitionApi.md#WorkflowDefinitionQueryAvailableSteps) | **Get** /Workflow/Definitions/Steps | Gets the result set of available steps for a given query. +[**WorkflowDefinitionQueryWorkflowTypes**](WorkflowDefinitionApi.md#WorkflowDefinitionQueryWorkflowTypes) | **Get** /Workflow/Definitions/Types | Performs a query against the workflow types in the system. +[**WorkflowDefinitionUpdateExistingDefinition**](WorkflowDefinitionApi.md#WorkflowDefinitionUpdateExistingDefinition) | **Put** /Workflow/Definitions/{definitionId} | Updates the existing definition's DisplayName and Description. + + + +## WorkflowDefinitionConfigureDefinitionSteps + +> KeyfactorApiModelsWorkflowsDefinitionResponse WorkflowDefinitionConfigureDefinitionSteps(ctx, definitionId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Sets the provided steps on the latest version of the definition. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + definitionId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The Id of the definition. + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + request := []openapiclient.KeyfactorApiModelsWorkflowsDefinitionStepRequest{*openapiclient.NewKeyfactorApiModelsWorkflowsDefinitionStepRequest()} // []KeyfactorApiModelsWorkflowsDefinitionStepRequest | A collection of {KeyfactorApi.Models.Workflows.DefinitionStepRequest} defining the steps to set on the definition. + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowDefinitionApi.WorkflowDefinitionConfigureDefinitionSteps(context.Background(), definitionId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowDefinitionApi.WorkflowDefinitionConfigureDefinitionSteps``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WorkflowDefinitionConfigureDefinitionSteps`: KeyfactorApiModelsWorkflowsDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `WorkflowDefinitionApi.WorkflowDefinitionConfigureDefinitionSteps`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**definitionId** | **string** | The Id of the definition. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWorkflowDefinitionConfigureDefinitionStepsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **request** | [**[]KeyfactorApiModelsWorkflowsDefinitionStepRequest**](KeyfactorApiModelsWorkflowsDefinitionStepRequest.md) | A collection of {KeyfactorApi.Models.Workflows.DefinitionStepRequest} defining the steps to set on the definition. | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsWorkflowsDefinitionResponse**](KeyfactorApiModelsWorkflowsDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WorkflowDefinitionCreateNewDefinition + +> KeyfactorApiModelsWorkflowsDefinitionResponse WorkflowDefinitionCreateNewDefinition(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Creates a new base definition without any steps. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + request := *openapiclient.NewKeyfactorApiModelsWorkflowsDefinitionCreateRequest() // KeyfactorApiModelsWorkflowsDefinitionCreateRequest | A {KeyfactorApi.Models.Workflows.DefinitionCreateRequest} with the display name, description, key and type of the definition. + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowDefinitionApi.WorkflowDefinitionCreateNewDefinition(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowDefinitionApi.WorkflowDefinitionCreateNewDefinition``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WorkflowDefinitionCreateNewDefinition`: KeyfactorApiModelsWorkflowsDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `WorkflowDefinitionApi.WorkflowDefinitionCreateNewDefinition`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiWorkflowDefinitionCreateNewDefinitionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **request** | [**KeyfactorApiModelsWorkflowsDefinitionCreateRequest**](KeyfactorApiModelsWorkflowsDefinitionCreateRequest.md) | A {KeyfactorApi.Models.Workflows.DefinitionCreateRequest} with the display name, description, key and type of the definition. | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsWorkflowsDefinitionResponse**](KeyfactorApiModelsWorkflowsDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WorkflowDefinitionDelete + +> WorkflowDefinitionDelete(ctx, definitionId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes the definition matching the given Id. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + definitionId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The Workflow Definition Id. + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowDefinitionApi.WorkflowDefinitionDelete(context.Background(), definitionId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowDefinitionApi.WorkflowDefinitionDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**definitionId** | **string** | The Workflow Definition Id. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWorkflowDefinitionDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WorkflowDefinitionGet + +> KeyfactorApiModelsWorkflowsDefinitionResponse WorkflowDefinitionGet(ctx, definitionId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).DefinitionVersion(definitionVersion).Exportable(exportable).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Gets a workflow definition. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + definitionId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The Id of the definition to retrieve. + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + definitionVersion := int32(56) // int32 | The version to retrieve. If this value is not specified, the latest version will be returned. (optional) + exportable := true // bool | Indicates if the response should be cleansed of role ids for export. (optional) + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowDefinitionApi.WorkflowDefinitionGet(context.Background(), definitionId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).DefinitionVersion(definitionVersion).Exportable(exportable).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowDefinitionApi.WorkflowDefinitionGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WorkflowDefinitionGet`: KeyfactorApiModelsWorkflowsDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `WorkflowDefinitionApi.WorkflowDefinitionGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**definitionId** | **string** | The Id of the definition to retrieve. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWorkflowDefinitionGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **definitionVersion** | **int32** | The version to retrieve. If this value is not specified, the latest version will be returned. | + **exportable** | **bool** | Indicates if the response should be cleansed of role ids for export. | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsWorkflowsDefinitionResponse**](KeyfactorApiModelsWorkflowsDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WorkflowDefinitionGetStepSchema + +> KeyfactorApiModelsWorkflowsAvailableStepResponse WorkflowDefinitionGetStepSchema(ctx, extensionName).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Gets the schema of a given step with the specified extension name. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + extensionName := "extensionName_example" // string | The extension name of a specific step in the step schema. + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowDefinitionApi.WorkflowDefinitionGetStepSchema(context.Background(), extensionName).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowDefinitionApi.WorkflowDefinitionGetStepSchema``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WorkflowDefinitionGetStepSchema`: KeyfactorApiModelsWorkflowsAvailableStepResponse + fmt.Fprintf(os.Stdout, "Response from `WorkflowDefinitionApi.WorkflowDefinitionGetStepSchema`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**extensionName** | **string** | The extension name of a specific step in the step schema. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWorkflowDefinitionGetStepSchemaRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsWorkflowsAvailableStepResponse**](KeyfactorApiModelsWorkflowsAvailableStepResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WorkflowDefinitionPublishDefinition + +> KeyfactorApiModelsWorkflowsDefinitionResponse WorkflowDefinitionPublishDefinition(ctx, definitionId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Makes the most recent version of a Workflow Definition the published version. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + definitionId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The Workflow Definition Id. + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowDefinitionApi.WorkflowDefinitionPublishDefinition(context.Background(), definitionId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowDefinitionApi.WorkflowDefinitionPublishDefinition``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WorkflowDefinitionPublishDefinition`: KeyfactorApiModelsWorkflowsDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `WorkflowDefinitionApi.WorkflowDefinitionPublishDefinition`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**definitionId** | **string** | The Workflow Definition Id. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWorkflowDefinitionPublishDefinitionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsWorkflowsDefinitionResponse**](KeyfactorApiModelsWorkflowsDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WorkflowDefinitionQuery + +> []KeyfactorApiModelsWorkflowsDefinitionQueryResponse WorkflowDefinitionQuery(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).QueryQueryString(queryQueryString).QueryPageReturned(queryPageReturned).QueryReturnLimit(queryReturnLimit).QuerySortField(querySortField).QuerySortAscending(querySortAscending).Execute() + +Gets the Definitions matching the query specifications. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + queryQueryString := "queryQueryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + queryPageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + queryReturnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + querySortField := "querySortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + querySortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowDefinitionApi.WorkflowDefinitionQuery(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).QueryQueryString(queryQueryString).QueryPageReturned(queryPageReturned).QueryReturnLimit(queryReturnLimit).QuerySortField(querySortField).QuerySortAscending(querySortAscending).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowDefinitionApi.WorkflowDefinitionQuery``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WorkflowDefinitionQuery`: []KeyfactorApiModelsWorkflowsDefinitionQueryResponse + fmt.Fprintf(os.Stdout, "Response from `WorkflowDefinitionApi.WorkflowDefinitionQuery`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiWorkflowDefinitionQueryRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + **queryQueryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **queryPageReturned** | **int32** | The current page within the result set to be returned | + **queryReturnLimit** | **int32** | Maximum number of records to be returned in a single call | + **querySortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **querySortAscending** | **int32** | Field sort direction [0=ascending, 1=descending] | + +### Return type + +[**[]KeyfactorApiModelsWorkflowsDefinitionQueryResponse**](KeyfactorApiModelsWorkflowsDefinitionQueryResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WorkflowDefinitionQueryAvailableSteps + +> []KeyfactorApiModelsWorkflowsAvailableStepQueryResponse WorkflowDefinitionQueryAvailableSteps(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).QueryQueryString(queryQueryString).QueryPageReturned(queryPageReturned).QueryReturnLimit(queryReturnLimit).QuerySortField(querySortField).QuerySortAscending(querySortAscending).Execute() + +Gets the result set of available steps for a given query. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + queryQueryString := "queryQueryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + queryPageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + queryReturnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + querySortField := "querySortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + querySortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowDefinitionApi.WorkflowDefinitionQueryAvailableSteps(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).QueryQueryString(queryQueryString).QueryPageReturned(queryPageReturned).QueryReturnLimit(queryReturnLimit).QuerySortField(querySortField).QuerySortAscending(querySortAscending).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowDefinitionApi.WorkflowDefinitionQueryAvailableSteps``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WorkflowDefinitionQueryAvailableSteps`: []KeyfactorApiModelsWorkflowsAvailableStepQueryResponse + fmt.Fprintf(os.Stdout, "Response from `WorkflowDefinitionApi.WorkflowDefinitionQueryAvailableSteps`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiWorkflowDefinitionQueryAvailableStepsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + **queryQueryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **queryPageReturned** | **int32** | The current page within the result set to be returned | + **queryReturnLimit** | **int32** | Maximum number of records to be returned in a single call | + **querySortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **querySortAscending** | **int32** | Field sort direction [0=ascending, 1=descending] | + +### Return type + +[**[]KeyfactorApiModelsWorkflowsAvailableStepQueryResponse**](KeyfactorApiModelsWorkflowsAvailableStepQueryResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WorkflowDefinitionQueryWorkflowTypes + +> []KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse WorkflowDefinitionQueryWorkflowTypes(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).QueryQueryString(queryQueryString).QueryPageReturned(queryPageReturned).QueryReturnLimit(queryReturnLimit).QuerySortField(querySortField).QuerySortAscending(querySortAscending).Execute() + +Performs a query against the workflow types in the system. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + queryQueryString := "queryQueryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + queryPageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + queryReturnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + querySortField := "querySortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + querySortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowDefinitionApi.WorkflowDefinitionQueryWorkflowTypes(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).QueryQueryString(queryQueryString).QueryPageReturned(queryPageReturned).QueryReturnLimit(queryReturnLimit).QuerySortField(querySortField).QuerySortAscending(querySortAscending).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowDefinitionApi.WorkflowDefinitionQueryWorkflowTypes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WorkflowDefinitionQueryWorkflowTypes`: []KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse + fmt.Fprintf(os.Stdout, "Response from `WorkflowDefinitionApi.WorkflowDefinitionQueryWorkflowTypes`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiWorkflowDefinitionQueryWorkflowTypesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + **queryQueryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **queryPageReturned** | **int32** | The current page within the result set to be returned | + **queryReturnLimit** | **int32** | Maximum number of records to be returned in a single call | + **querySortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **querySortAscending** | **int32** | Field sort direction [0=ascending, 1=descending] | + +### Return type + +[**[]KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse**](KeyfactorApiModelsWorkflowsWorkflowTypeQueryResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WorkflowDefinitionUpdateExistingDefinition + +> KeyfactorApiModelsWorkflowsDefinitionResponse WorkflowDefinitionUpdateExistingDefinition(ctx, definitionId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Updates the existing definition's DisplayName and Description. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + definitionId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The Id of the definition to update. + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + request := *openapiclient.NewKeyfactorApiModelsWorkflowsDefinitionUpdateRequest() // KeyfactorApiModelsWorkflowsDefinitionUpdateRequest | The {KeyfactorApi.Models.Workflows.DefinitionUpdateRequest} holding the updated DispalyName and Description. + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowDefinitionApi.WorkflowDefinitionUpdateExistingDefinition(context.Background(), definitionId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Request(request).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowDefinitionApi.WorkflowDefinitionUpdateExistingDefinition``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WorkflowDefinitionUpdateExistingDefinition`: KeyfactorApiModelsWorkflowsDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `WorkflowDefinitionApi.WorkflowDefinitionUpdateExistingDefinition`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**definitionId** | **string** | The Id of the definition to update. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWorkflowDefinitionUpdateExistingDefinitionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **request** | [**KeyfactorApiModelsWorkflowsDefinitionUpdateRequest**](KeyfactorApiModelsWorkflowsDefinitionUpdateRequest.md) | The {KeyfactorApi.Models.Workflows.DefinitionUpdateRequest} holding the updated DispalyName and Description. | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsWorkflowsDefinitionResponse**](KeyfactorApiModelsWorkflowsDefinitionResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v1/docs/WorkflowInstanceApi.md b/v1/docs/WorkflowInstanceApi.md new file mode 100644 index 0000000..e638099 --- /dev/null +++ b/v1/docs/WorkflowInstanceApi.md @@ -0,0 +1,600 @@ +# \WorkflowInstanceApi + +All URIs are relative to *http://keyfactor.example.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**WorkflowInstanceDeleteInstance**](WorkflowInstanceApi.md#WorkflowInstanceDeleteInstance) | **Delete** /Workflow/Instances/{instanceId} | Deletes the specified instance. +[**WorkflowInstanceGet**](WorkflowInstanceApi.md#WorkflowInstanceGet) | **Get** /Workflow/Instances/{instanceId} | Get information relevant for knowing where an instance is in its workflow. +[**WorkflowInstanceQuery**](WorkflowInstanceApi.md#WorkflowInstanceQuery) | **Get** /Workflow/Instances | Gets the workflow instances matching the query specifications. +[**WorkflowInstanceQueryInstancesAssignedToMe**](WorkflowInstanceApi.md#WorkflowInstanceQueryInstancesAssignedToMe) | **Get** /Workflow/Instances/AssignedToMe | Gets the workflow instances waiting on the user. +[**WorkflowInstanceQueryInstancesStartedByMe**](WorkflowInstanceApi.md#WorkflowInstanceQueryInstancesStartedByMe) | **Get** /Workflow/Instances/My | Gets the workflow instances started by the user. +[**WorkflowInstanceRestart**](WorkflowInstanceApi.md#WorkflowInstanceRestart) | **Post** /Workflow/Instances/{instanceId}/Restart | Restarts a failed instance against the specified definition version or the published version if no version is specified. +[**WorkflowInstanceSignal**](WorkflowInstanceApi.md#WorkflowInstanceSignal) | **Post** /Workflow/Instances/{instanceId}/Signals | Receives the given signal for the given instance. +[**WorkflowInstanceStop**](WorkflowInstanceApi.md#WorkflowInstanceStop) | **Post** /Workflow/Instances/{instanceId}/Stop | Rejects an instance, preventing it from continuing. + + + +## WorkflowInstanceDeleteInstance + +> WorkflowInstanceDeleteInstance(ctx, instanceId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Deletes the specified instance. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + instanceId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The Id of the instance to be deleted. + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowInstanceApi.WorkflowInstanceDeleteInstance(context.Background(), instanceId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowInstanceApi.WorkflowInstanceDeleteInstance``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**instanceId** | **string** | The Id of the instance to be deleted. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWorkflowInstanceDeleteInstanceRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WorkflowInstanceGet + +> KeyfactorApiModelsWorkflowsInstanceResponse WorkflowInstanceGet(ctx, instanceId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Get information relevant for knowing where an instance is in its workflow. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + instanceId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The {System.Guid} identifying the instance. + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowInstanceApi.WorkflowInstanceGet(context.Background(), instanceId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowInstanceApi.WorkflowInstanceGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WorkflowInstanceGet`: KeyfactorApiModelsWorkflowsInstanceResponse + fmt.Fprintf(os.Stdout, "Response from `WorkflowInstanceApi.WorkflowInstanceGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**instanceId** | **string** | The {System.Guid} identifying the instance. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWorkflowInstanceGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + +[**KeyfactorApiModelsWorkflowsInstanceResponse**](KeyfactorApiModelsWorkflowsInstanceResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WorkflowInstanceQuery + +> []KeyfactorApiModelsWorkflowsInstanceQueryResponse WorkflowInstanceQuery(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + +Gets the workflow instances matching the query specifications. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + pqQueryString := "pqQueryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + pqPageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + pqReturnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowInstanceApi.WorkflowInstanceQuery(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowInstanceApi.WorkflowInstanceQuery``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WorkflowInstanceQuery`: []KeyfactorApiModelsWorkflowsInstanceQueryResponse + fmt.Fprintf(os.Stdout, "Response from `WorkflowInstanceApi.WorkflowInstanceQuery`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiWorkflowInstanceQueryRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + **pqQueryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **pqPageReturned** | **int32** | The current page within the result set to be returned | + **pqReturnLimit** | **int32** | Maximum number of records to be returned in a single call | + **pqSortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **pqSortAscending** | **int32** | Field sort direction [0=ascending, 1=descending] | + +### Return type + +[**[]KeyfactorApiModelsWorkflowsInstanceQueryResponse**](KeyfactorApiModelsWorkflowsInstanceQueryResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WorkflowInstanceQueryInstancesAssignedToMe + +> []KeyfactorApiModelsWorkflowsInstanceQueryResponse WorkflowInstanceQueryInstancesAssignedToMe(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + +Gets the workflow instances waiting on the user. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + pqQueryString := "pqQueryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + pqPageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + pqReturnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + pqSortField := "pqSortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + pqSortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowInstanceApi.WorkflowInstanceQueryInstancesAssignedToMe(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).PqQueryString(pqQueryString).PqPageReturned(pqPageReturned).PqReturnLimit(pqReturnLimit).PqSortField(pqSortField).PqSortAscending(pqSortAscending).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowInstanceApi.WorkflowInstanceQueryInstancesAssignedToMe``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WorkflowInstanceQueryInstancesAssignedToMe`: []KeyfactorApiModelsWorkflowsInstanceQueryResponse + fmt.Fprintf(os.Stdout, "Response from `WorkflowInstanceApi.WorkflowInstanceQueryInstancesAssignedToMe`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiWorkflowInstanceQueryInstancesAssignedToMeRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + **pqQueryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **pqPageReturned** | **int32** | The current page within the result set to be returned | + **pqReturnLimit** | **int32** | Maximum number of records to be returned in a single call | + **pqSortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **pqSortAscending** | **int32** | Field sort direction [0=ascending, 1=descending] | + +### Return type + +[**[]KeyfactorApiModelsWorkflowsInstanceQueryResponse**](KeyfactorApiModelsWorkflowsInstanceQueryResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WorkflowInstanceQueryInstancesStartedByMe + +> []KeyfactorApiModelsWorkflowsInstanceQueryResponse WorkflowInstanceQueryInstancesStartedByMe(ctx).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).InstanceQueryQueryString(instanceQueryQueryString).InstanceQueryPageReturned(instanceQueryPageReturned).InstanceQueryReturnLimit(instanceQueryReturnLimit).InstanceQuerySortField(instanceQuerySortField).InstanceQuerySortAscending(instanceQuerySortAscending).Execute() + +Gets the workflow instances started by the user. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + instanceQueryQueryString := "instanceQueryQueryString_example" // string | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) (optional) + instanceQueryPageReturned := int32(56) // int32 | The current page within the result set to be returned (optional) + instanceQueryReturnLimit := int32(56) // int32 | Maximum number of records to be returned in a single call (optional) + instanceQuerySortField := "instanceQuerySortField_example" // string | Field by which the results should be sorted (view results via Management Portal for sortable columns) (optional) + instanceQuerySortAscending := int32(56) // int32 | Field sort direction [0=ascending, 1=descending] (optional) + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowInstanceApi.WorkflowInstanceQueryInstancesStartedByMe(context.Background()).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).InstanceQueryQueryString(instanceQueryQueryString).InstanceQueryPageReturned(instanceQueryPageReturned).InstanceQueryReturnLimit(instanceQueryReturnLimit).InstanceQuerySortField(instanceQuerySortField).InstanceQuerySortAscending(instanceQuerySortAscending).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowInstanceApi.WorkflowInstanceQueryInstancesStartedByMe``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WorkflowInstanceQueryInstancesStartedByMe`: []KeyfactorApiModelsWorkflowsInstanceQueryResponse + fmt.Fprintf(os.Stdout, "Response from `WorkflowInstanceApi.WorkflowInstanceQueryInstancesStartedByMe`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiWorkflowInstanceQueryInstancesStartedByMeRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + **instanceQueryQueryString** | **string** | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | + **instanceQueryPageReturned** | **int32** | The current page within the result set to be returned | + **instanceQueryReturnLimit** | **int32** | Maximum number of records to be returned in a single call | + **instanceQuerySortField** | **string** | Field by which the results should be sorted (view results via Management Portal for sortable columns) | + **instanceQuerySortAscending** | **int32** | Field sort direction [0=ascending, 1=descending] | + +### Return type + +[**[]KeyfactorApiModelsWorkflowsInstanceQueryResponse**](KeyfactorApiModelsWorkflowsInstanceQueryResponse.md) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, text/json, application/xml, text/xml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WorkflowInstanceRestart + +> WorkflowInstanceRestart(ctx, instanceId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Version(version).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Restarts a failed instance against the specified definition version or the published version if no version is specified. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + instanceId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The instance Id to restart. + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + version := int32(56) // int32 | The version of the definition to restart the instance against. Defaults to the published version. (optional) + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowInstanceApi.WorkflowInstanceRestart(context.Background(), instanceId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Version(version).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowInstanceApi.WorkflowInstanceRestart``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**instanceId** | **string** | The instance Id to restart. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWorkflowInstanceRestartRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **version** | **int32** | The version of the definition to restart the instance against. Defaults to the published version. | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WorkflowInstanceSignal + +> WorkflowInstanceSignal(ctx, instanceId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Signal(signal).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Receives the given signal for the given instance. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + instanceId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The instance that is receiving the signal. + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + signal := *openapiclient.NewKeyfactorApiModelsWorkflowsSignalRequest() // KeyfactorApiModelsWorkflowsSignalRequest | The signal to receive. + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowInstanceApi.WorkflowInstanceSignal(context.Background(), instanceId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).Signal(signal).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowInstanceApi.WorkflowInstanceSignal``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**instanceId** | **string** | The instance that is receiving the signal. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWorkflowInstanceSignalRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **signal** | [**KeyfactorApiModelsWorkflowsSignalRequest**](KeyfactorApiModelsWorkflowsSignalRequest.md) | The signal to receive. | + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WorkflowInstanceStop + +> WorkflowInstanceStop(ctx, instanceId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + +Rejects an instance, preventing it from continuing. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + instanceId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The Id of the instance to reject. + xKeyfactorRequestedWith := "xKeyfactorRequestedWith_example" // string | Type of the request [XMLHttpRequest, APIClient] (default to "APIClient") + xKeyfactorApiVersion := "xKeyfactorApiVersion_example" // string | Desired version of the api, if not provided defaults to v1 (optional) (default to "1") + + configuration := openapiclient.NewConfiguration(make(map[string]string)) + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WorkflowInstanceApi.WorkflowInstanceStop(context.Background(), instanceId).XKeyfactorRequestedWith(xKeyfactorRequestedWith).XKeyfactorApiVersion(xKeyfactorApiVersion).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowInstanceApi.WorkflowInstanceStop``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**instanceId** | **string** | The Id of the instance to reject. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWorkflowInstanceStopRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xKeyfactorRequestedWith** | **string** | Type of the request [XMLHttpRequest, APIClient] | [default to "APIClient"] + **xKeyfactorApiVersion** | **string** | Desired version of the api, if not provided defaults to v1 | [default to "1"] + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#Configuration) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/v2/go.mod b/v1/go.mod similarity index 75% rename from v2/go.mod rename to v1/go.mod index e38b41f..6568119 100644 --- a/v2/go.mod +++ b/v1/go.mod @@ -1,6 +1,6 @@ -module github.com/Keyfactor/keyfactor-go-client-sdk/v2 +module github.com/Keyfactor/keyfactor-go-client-sdk/v1 -go 1.21 +go 1.22 require github.com/stretchr/testify v1.8.4 diff --git a/v2/go.sum b/v1/go.sum similarity index 99% rename from v2/go.sum rename to v1/go.sum index e227d9e..fa4b6e6 100644 --- a/v2/go.sum +++ b/v1/go.sum @@ -8,4 +8,3 @@ gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+ gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= - diff --git a/v1/integration-manifest.json b/v1/integration-manifest.json new file mode 100644 index 0000000..77c3d3c --- /dev/null +++ b/v1/integration-manifest.json @@ -0,0 +1,8 @@ +{ + "$schema": "https://keyfactor.github.io/integration-manifest-schema.json", + "integration_type": "api-client", + "name": "keyfactor-go-client-sdk", + "status": "pilot", + "link_github": false, + "description": "Keyfactor Command API client library SDK for Go applications" +} \ No newline at end of file diff --git a/v1/test/api_agent_blueprint_test.go b/v1/test/api_agent_blueprint_test.go new file mode 100644 index 0000000..dd7179e --- /dev/null +++ b/v1/test/api_agent_blueprint_test.go @@ -0,0 +1,115 @@ +/* +Keyfactor-v1 + +Testing AgentBlueprintApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package keyfactor + +import ( + "context" + openapiclient "github.com/Keyfactor/keyfactor-go-client-sdk/v1/api/keyfactor" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_keyfactor_AgentBlueprintApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test AgentBlueprintApiService AgentBlueprintApplyBlueprint", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.AgentBlueprintApi.AgentBlueprintApplyBlueprint(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AgentBlueprintApiService AgentBlueprintDeleteBlueprint", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + httpRes, err := apiClient.AgentBlueprintApi.AgentBlueprintDeleteBlueprint(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AgentBlueprintApiService AgentBlueprintGenerateBlueprint", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AgentBlueprintApi.AgentBlueprintGenerateBlueprint(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AgentBlueprintApiService AgentBlueprintGetAgentBlueprint", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.AgentBlueprintApi.AgentBlueprintGetAgentBlueprint(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AgentBlueprintApiService AgentBlueprintGetAgentBlueprints", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AgentBlueprintApi.AgentBlueprintGetAgentBlueprints(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AgentBlueprintApiService AgentBlueprintGetBlueprintJobs", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.AgentBlueprintApi.AgentBlueprintGetBlueprintJobs(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AgentBlueprintApiService AgentBlueprintGetBlueprintStores", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.AgentBlueprintApi.AgentBlueprintGetBlueprintStores(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/v2/api/command/api_agent_pool_test.go b/v1/test/api_agent_pool_test.go similarity index 52% rename from v2/api/command/api_agent_pool_test.go rename to v1/test/api_agent_pool_test.go index c0ca7fc..5363a98 100644 --- a/v2/api/command/api_agent_pool_test.go +++ b/v1/test/api_agent_pool_test.go @@ -1,14 +1,4 @@ /* -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may -not use this file except in compliance with the License. You may obtain a -copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless -required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES -OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the -License. - Keyfactor-v1 Testing AgentPoolApiService @@ -17,91 +7,94 @@ Testing AgentPoolApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package command +package keyfactor import ( "context" - "os" - "testing" - + openapiclient "github.com/Keyfactor/keyfactor-go-client-sdk/v1/api/keyfactor" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + "testing" ) -func Test_command_AgentPoolApiService(t *testing.T) { - - cwd, _ := os.Getwd() - t.Logf("Working directory: %s", cwd) - config := GetEnvConfiguration() - - configuration, configErr := NewConfiguration(config) - require.Nil(t, configErr) +func Test_keyfactor_AgentPoolApiService(t *testing.T) { - apiClient := NewAPIClient(configuration) + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test AgentPoolApiService AgentPoolCreateAgentPool", func(t *testing.T) { - t.Log("AgentPoolApi_AgentPoolCreateAgentPool_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.AgentPoolApi.AgentPoolCreateAgentPool(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test AgentPoolApiService AgentPoolDeleteAgentPool", func(t *testing.T) { - var id interface{} + t.Skip("skip test") // remove to run test - id = os.Getenv("AgentPoolApi_AgentPoolDeleteAgentPool_id") - id, _ = convertParamInterface(id, "string") - t.Logf("AgentPoolApi_AgentPoolDeleteAgentPool_id: %v", id) + var id string + + httpRes, err := apiClient.AgentPoolApi.AgentPoolDeleteAgentPool(context.Background(), id).Execute() - t.Log("AgentPoolApi_AgentPoolDeleteAgentPool_payload: ") - httpRes, err := apiClient.AgentPoolApi.AgentPoolDeleteAgentPool(context.Background(), id.(string)).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test AgentPoolApiService AgentPoolGetAgentPoolById", func(t *testing.T) { - var id interface{} + t.Skip("skip test") // remove to run test - id = os.Getenv("AgentPoolApi_AgentPoolGetAgentPoolById_id") - id, _ = convertParamInterface(id, "string") - t.Logf("AgentPoolApi_AgentPoolGetAgentPoolById_id: %v", id) + var id string + + resp, httpRes, err := apiClient.AgentPoolApi.AgentPoolGetAgentPoolById(context.Background(), id).Execute() - t.Log("AgentPoolApi_AgentPoolGetAgentPoolById_payload: ") - resp, httpRes, err := apiClient.AgentPoolApi.AgentPoolGetAgentPoolById(context.Background(), id.(string)).Execute() require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test AgentPoolApiService AgentPoolGetAgentPools", func(t *testing.T) { - t.Log("AgentPoolApi_AgentPoolGetAgentPools_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.AgentPoolApi.AgentPoolGetAgentPools(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test AgentPoolApiService AgentPoolGetDefaultAgentPoolAgents", func(t *testing.T) { - t.Log("AgentPoolApi_AgentPoolGetDefaultAgentPoolAgents_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.AgentPoolApi.AgentPoolGetDefaultAgentPoolAgents(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test AgentPoolApiService AgentPoolUpdateAgentPool", func(t *testing.T) { - t.Log("AgentPoolApi_AgentPoolUpdateAgentPool_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.AgentPoolApi.AgentPoolUpdateAgentPool(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) } diff --git a/v1/test/api_agent_test.go b/v1/test/api_agent_test.go new file mode 100644 index 0000000..3bf0885 --- /dev/null +++ b/v1/test/api_agent_test.go @@ -0,0 +1,122 @@ +/* +Keyfactor-v1 + +Testing AgentApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package keyfactor + +import ( + "context" + openapiclient "github.com/Keyfactor/keyfactor-go-client-sdk/v1/api/keyfactor" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_keyfactor_AgentApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test AgentApiService AgentApprove", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.AgentApi.AgentApprove(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AgentApiService AgentDisapprove", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.AgentApi.AgentDisapprove(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AgentApiService AgentFetchLogs", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + httpRes, err := apiClient.AgentApi.AgentFetchLogs(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AgentApiService AgentGetAgentDetail", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.AgentApi.AgentGetAgentDetail(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AgentApiService AgentGetAgents", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AgentApi.AgentGetAgents(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AgentApiService AgentReset0", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.AgentApi.AgentReset0(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AgentApiService AgentReset1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + httpRes, err := apiClient.AgentApi.AgentReset1(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AgentApiService AgentSetAuthCertificateReenrollment", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AgentApi.AgentSetAuthCertificateReenrollment(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/v1/test/api_audit_log_test.go b/v1/test/api_audit_log_test.go new file mode 100644 index 0000000..ecdd9e6 --- /dev/null +++ b/v1/test/api_audit_log_test.go @@ -0,0 +1,89 @@ +/* +Keyfactor-v1 + +Testing AuditLogApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package keyfactor + +import ( + "context" + openapiclient "github.com/Keyfactor/keyfactor-go-client-sdk/v1/api/keyfactor" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_keyfactor_AuditLogApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test AuditLogApiService AuditLogDownloadCSV", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AuditLogApi.AuditLogDownloadCSV(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AuditLogApiService AuditLogGetAuditLog", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.AuditLogApi.AuditLogGetAuditLog(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AuditLogApiService AuditLogGetAuditLogs", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AuditLogApi.AuditLogGetAuditLogs(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AuditLogApiService AuditLogGetRelatedEntities", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AuditLogApi.AuditLogGetRelatedEntities(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AuditLogApiService AuditLogValidateAuditLog", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.AuditLogApi.AuditLogValidateAuditLog(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/v2/api/command/api_certificate_authority_test.go b/v1/test/api_certificate_authority_test.go similarity index 53% rename from v2/api/command/api_certificate_authority_test.go rename to v1/test/api_certificate_authority_test.go index a432640..b7431eb 100644 --- a/v2/api/command/api_certificate_authority_test.go +++ b/v1/test/api_certificate_authority_test.go @@ -1,14 +1,4 @@ /* -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may -not use this file except in compliance with the License. You may obtain a -copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless -required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES -OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the -License. - Keyfactor-v1 Testing CertificateAuthorityApiService @@ -17,99 +7,105 @@ Testing CertificateAuthorityApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package command +package keyfactor import ( "context" - "os" - "testing" - + openapiclient "github.com/Keyfactor/keyfactor-go-client-sdk/v1/api/keyfactor" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + "testing" ) -func Test_command_CertificateAuthorityApiService(t *testing.T) { +func Test_keyfactor_CertificateAuthorityApiService(t *testing.T) { - cwd, _ := os.Getwd() - t.Logf("Working directory: %s", cwd) - config := GetEnvConfiguration() - - configuration, configErr := NewConfiguration(config) - require.Nil(t, configErr) - - apiClient := NewAPIClient(configuration) + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test CertificateAuthorityApiService CertificateAuthorityCreateCA", func(t *testing.T) { - t.Log("CertificateAuthorityApi_CertificateAuthorityCreateCA_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.CertificateAuthorityApi.CertificateAuthorityCreateCA(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test CertificateAuthorityApiService CertificateAuthorityDeleteCA", func(t *testing.T) { - var id interface{} + t.Skip("skip test") // remove to run test + + var id int32 - id = os.Getenv("CertificateAuthorityApi_CertificateAuthorityDeleteCA_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("CertificateAuthorityApi_CertificateAuthorityDeleteCA_id: %v", id) + httpRes, err := apiClient.CertificateAuthorityApi.CertificateAuthorityDeleteCA(context.Background(), id).Execute() - t.Log("CertificateAuthorityApi_CertificateAuthorityDeleteCA_payload: ") - httpRes, err := apiClient.CertificateAuthorityApi.CertificateAuthorityDeleteCA(context.Background(), id.(int32)).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test CertificateAuthorityApiService CertificateAuthorityGetCa", func(t *testing.T) { - var id interface{} + t.Skip("skip test") // remove to run test + + var id int32 - id = os.Getenv("CertificateAuthorityApi_CertificateAuthorityGetCa_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("CertificateAuthorityApi_CertificateAuthorityGetCa_id: %v", id) + resp, httpRes, err := apiClient.CertificateAuthorityApi.CertificateAuthorityGetCa(context.Background(), id).Execute() - t.Log("CertificateAuthorityApi_CertificateAuthorityGetCa_payload: ") - resp, httpRes, err := apiClient.CertificateAuthorityApi.CertificateAuthorityGetCa(context.Background(), id.(int32)).Execute() require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test CertificateAuthorityApiService CertificateAuthorityGetCas", func(t *testing.T) { - t.Log("CertificateAuthorityApi_CertificateAuthorityGetCas_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.CertificateAuthorityApi.CertificateAuthorityGetCas(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test CertificateAuthorityApiService CertificateAuthorityPublishCRL", func(t *testing.T) { - t.Log("CertificateAuthorityApi_CertificateAuthorityPublishCRL_payload: ") + t.Skip("skip test") // remove to run test + httpRes, err := apiClient.CertificateAuthorityApi.CertificateAuthorityPublishCRL(context.Background()).Execute() + require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test CertificateAuthorityApiService CertificateAuthorityTestCertificateAuthority", func(t *testing.T) { - t.Log("CertificateAuthorityApi_CertificateAuthorityTestCertificateAuthority_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.CertificateAuthorityApi.CertificateAuthorityTestCertificateAuthority(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test CertificateAuthorityApiService CertificateAuthorityUpdateCA", func(t *testing.T) { - t.Log("CertificateAuthorityApi_CertificateAuthorityUpdateCA_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.CertificateAuthorityApi.CertificateAuthorityUpdateCA(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) } diff --git a/v1/test/api_certificate_collection_test.go b/v1/test/api_certificate_collection_test.go new file mode 100644 index 0000000..2d34534 --- /dev/null +++ b/v1/test/api_certificate_collection_test.go @@ -0,0 +1,114 @@ +/* +Keyfactor-v1 + +Testing CertificateCollectionApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package keyfactor + +import ( + "context" + openapiclient "github.com/Keyfactor/keyfactor-go-client-sdk/v1/api/keyfactor" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_keyfactor_CertificateCollectionApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test CertificateCollectionApiService CertificateCollectionCopyFromExistingCollection", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CertificateCollectionApi.CertificateCollectionCopyFromExistingCollection(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CertificateCollectionApiService CertificateCollectionCreateCollection", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CertificateCollectionApi.CertificateCollectionCreateCollection(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CertificateCollectionApiService CertificateCollectionGetCollection0", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.CertificateCollectionApi.CertificateCollectionGetCollection0(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CertificateCollectionApiService CertificateCollectionGetCollection1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var name string + + resp, httpRes, err := apiClient.CertificateCollectionApi.CertificateCollectionGetCollection1(context.Background(), name).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CertificateCollectionApiService CertificateCollectionGetCollections", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CertificateCollectionApi.CertificateCollectionGetCollections(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CertificateCollectionApiService CertificateCollectionSetCollectionPermissions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + httpRes, err := apiClient.CertificateCollectionApi.CertificateCollectionSetCollectionPermissions(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CertificateCollectionApiService CertificateCollectionUpdateCollection", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CertificateCollectionApi.CertificateCollectionUpdateCollection(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/v1/test/api_certificate_store_container_test.go b/v1/test/api_certificate_store_container_test.go new file mode 100644 index 0000000..b9e9ef0 --- /dev/null +++ b/v1/test/api_certificate_store_container_test.go @@ -0,0 +1,50 @@ +/* +Keyfactor-v1 + +Testing CertificateStoreContainerApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package keyfactor + +import ( + "context" + openapiclient "github.com/Keyfactor/keyfactor-go-client-sdk/v1/api/keyfactor" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_keyfactor_CertificateStoreContainerApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test CertificateStoreContainerApiService CertificateStoreContainerDeleteCertificateStoreContainers", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + httpRes, err := apiClient.CertificateStoreContainerApi.CertificateStoreContainerDeleteCertificateStoreContainers(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CertificateStoreContainerApiService CertificateStoreContainerGetAllCertificateStoreContainers", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CertificateStoreContainerApi.CertificateStoreContainerGetAllCertificateStoreContainers(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/v1/test/api_certificate_store_test.go b/v1/test/api_certificate_store_test.go new file mode 100644 index 0000000..79291e7 --- /dev/null +++ b/v1/test/api_certificate_store_test.go @@ -0,0 +1,166 @@ +/* +Keyfactor-v1 + +Testing CertificateStoreApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package keyfactor + +import ( + "context" + openapiclient "github.com/Keyfactor/keyfactor-go-client-sdk/v1/api/keyfactor" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_keyfactor_CertificateStoreApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test CertificateStoreApiService CertificateStoreAddCertificate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CertificateStoreApi.CertificateStoreAddCertificate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CertificateStoreApiService CertificateStoreApprovePending", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.CertificateStoreApi.CertificateStoreApprovePending(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CertificateStoreApiService CertificateStoreConfigureDiscoveryJob", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.CertificateStoreApi.CertificateStoreConfigureDiscoveryJob(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CertificateStoreApiService CertificateStoreCreateCertificateStoreServer", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CertificateStoreApi.CertificateStoreCreateCertificateStoreServer(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CertificateStoreApiService CertificateStoreDeleteCertificateStore", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + httpRes, err := apiClient.CertificateStoreApi.CertificateStoreDeleteCertificateStore(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CertificateStoreApiService CertificateStoreDeleteCertificateStores", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.CertificateStoreApi.CertificateStoreDeleteCertificateStores(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CertificateStoreApiService CertificateStoreGetCertificateStoreInventory", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.CertificateStoreApi.CertificateStoreGetCertificateStoreInventory(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CertificateStoreApiService CertificateStoreRemoveCertificate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CertificateStoreApi.CertificateStoreRemoveCertificate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CertificateStoreApiService CertificateStoreSchedule", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.CertificateStoreApi.CertificateStoreSchedule(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CertificateStoreApiService CertificateStoreScheduleForReenrollment", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.CertificateStoreApi.CertificateStoreScheduleForReenrollment(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CertificateStoreApiService CertificateStoreSetPassword", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.CertificateStoreApi.CertificateStoreSetPassword(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CertificateStoreApiService CertificateStoreUpdateCertificateStoreServer", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CertificateStoreApi.CertificateStoreUpdateCertificateStoreServer(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/v1/test/api_certificate_store_type_test.go b/v1/test/api_certificate_store_type_test.go new file mode 100644 index 0000000..bc43e42 --- /dev/null +++ b/v1/test/api_certificate_store_type_test.go @@ -0,0 +1,113 @@ +/* +Keyfactor-v1 + +Testing CertificateStoreTypeApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package keyfactor + +import ( + "context" + openapiclient "github.com/Keyfactor/keyfactor-go-client-sdk/v1/api/keyfactor" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_keyfactor_CertificateStoreTypeApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test CertificateStoreTypeApiService CertificateStoreTypeCreateCertificateStoreType", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CertificateStoreTypeApi.CertificateStoreTypeCreateCertificateStoreType(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CertificateStoreTypeApiService CertificateStoreTypeDeleteCertificateStoreType", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + httpRes, err := apiClient.CertificateStoreTypeApi.CertificateStoreTypeDeleteCertificateStoreType(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CertificateStoreTypeApiService CertificateStoreTypeDeleteCertificateStoreTypes", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.CertificateStoreTypeApi.CertificateStoreTypeDeleteCertificateStoreTypes(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CertificateStoreTypeApiService CertificateStoreTypeGetCertificateStoreType0", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.CertificateStoreTypeApi.CertificateStoreTypeGetCertificateStoreType0(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CertificateStoreTypeApiService CertificateStoreTypeGetCertificateStoreType1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var name string + + resp, httpRes, err := apiClient.CertificateStoreTypeApi.CertificateStoreTypeGetCertificateStoreType1(context.Background(), name).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CertificateStoreTypeApiService CertificateStoreTypeGetTypes", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CertificateStoreTypeApi.CertificateStoreTypeGetTypes(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CertificateStoreTypeApiService CertificateStoreTypeUpdateCertificateStoreType", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CertificateStoreTypeApi.CertificateStoreTypeUpdateCertificateStoreType(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/v2/api/command/api_certificate_test.go b/v1/test/api_certificate_test.go similarity index 57% rename from v2/api/command/api_certificate_test.go rename to v1/test/api_certificate_test.go index 65910d0..014b91e 100644 --- a/v2/api/command/api_certificate_test.go +++ b/v1/test/api_certificate_test.go @@ -1,14 +1,4 @@ /* -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may -not use this file except in compliance with the License. You may obtain a -copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless -required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES -OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the -License. - Keyfactor-v1 Testing CertificateApiService @@ -17,256 +7,280 @@ Testing CertificateApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package command +package keyfactor import ( "context" - "os" - "testing" - + openapiclient "github.com/Keyfactor/keyfactor-go-client-sdk/v1/api/keyfactor" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + "testing" ) -func Test_command_CertificateApiService(t *testing.T) { +func Test_keyfactor_CertificateApiService(t *testing.T) { - cwd, _ := os.Getwd() - t.Logf("Working directory: %s", cwd) - config := GetEnvConfiguration() - - configuration, configErr := NewConfiguration(config) - require.Nil(t, configErr) - - apiClient := NewAPIClient(configuration) + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test CertificateApiService CertificateAnalyzeCert", func(t *testing.T) { - t.Log("CertificateApi_CertificateAnalyzeCert_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.CertificateApi.CertificateAnalyzeCert(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test CertificateApiService CertificateCertificateHistory", func(t *testing.T) { - var id interface{} + t.Skip("skip test") // remove to run test + + var id int32 - id = os.Getenv("CertificateApi_CertificateCertificateHistory_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("CertificateApi_CertificateCertificateHistory_id: %v", id) + resp, httpRes, err := apiClient.CertificateApi.CertificateCertificateHistory(context.Background(), id).Execute() - t.Log("CertificateApi_CertificateCertificateHistory_payload: ") - resp, httpRes, err := apiClient.CertificateApi.CertificateCertificateHistory(context.Background(), id.(int32)).Execute() require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test CertificateApiService CertificateCompareMetadata", func(t *testing.T) { - t.Log("CertificateApi_CertificateCompareMetadata_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.CertificateApi.CertificateCompareMetadata(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test CertificateApiService CertificateDeleteByQuery", func(t *testing.T) { - t.Log("CertificateApi_CertificateDeleteByQuery_payload: ") + t.Skip("skip test") // remove to run test + httpRes, err := apiClient.CertificateApi.CertificateDeleteByQuery(context.Background()).Execute() + require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test CertificateApiService CertificateDeleteCertificate", func(t *testing.T) { - var id interface{} + t.Skip("skip test") // remove to run test + + var id int32 - id = os.Getenv("CertificateApi_CertificateDeleteCertificate_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("CertificateApi_CertificateDeleteCertificate_id: %v", id) + httpRes, err := apiClient.CertificateApi.CertificateDeleteCertificate(context.Background(), id).Execute() - t.Log("CertificateApi_CertificateDeleteCertificate_payload: ") - httpRes, err := apiClient.CertificateApi.CertificateDeleteCertificate(context.Background(), id.(int32)).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test CertificateApiService CertificateDeleteCertificates", func(t *testing.T) { - t.Log("CertificateApi_CertificateDeleteCertificates_payload: ") + t.Skip("skip test") // remove to run test + httpRes, err := apiClient.CertificateApi.CertificateDeleteCertificates(context.Background()).Execute() + require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test CertificateApiService CertificateDeletePrivateKeys0", func(t *testing.T) { - t.Log("CertificateApi_CertificateDeletePrivateKeys0_payload: ") + t.Skip("skip test") // remove to run test + httpRes, err := apiClient.CertificateApi.CertificateDeletePrivateKeys0(context.Background()).Execute() + require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test CertificateApiService CertificateDeletePrivateKeys1", func(t *testing.T) { - var id interface{} + t.Skip("skip test") // remove to run test + + var id int32 - id = os.Getenv("CertificateApi_CertificateDeletePrivateKeys1_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("CertificateApi_CertificateDeletePrivateKeys1_id: %v", id) + httpRes, err := apiClient.CertificateApi.CertificateDeletePrivateKeys1(context.Background(), id).Execute() - t.Log("CertificateApi_CertificateDeletePrivateKeys1_payload: ") - httpRes, err := apiClient.CertificateApi.CertificateDeletePrivateKeys1(context.Background(), id.(int32)).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test CertificateApiService CertificateDownloadCertificateAsync", func(t *testing.T) { - t.Log("CertificateApi_CertificateDownloadCertificateAsync_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.CertificateApi.CertificateDownloadCertificateAsync(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test CertificateApiService CertificateGetCertificate", func(t *testing.T) { - var id interface{} + t.Skip("skip test") // remove to run test + + var id int32 - id = os.Getenv("CertificateApi_CertificateGetCertificate_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("CertificateApi_CertificateGetCertificate_id: %v", id) + resp, httpRes, err := apiClient.CertificateApi.CertificateGetCertificate(context.Background(), id).Execute() - t.Log("CertificateApi_CertificateGetCertificate_payload: ") - resp, httpRes, err := apiClient.CertificateApi.CertificateGetCertificate(context.Background(), id.(int32)).Execute() require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test CertificateApiService CertificateGetCertificateLocations", func(t *testing.T) { - var id interface{} + t.Skip("skip test") // remove to run test + + var id int32 - id = os.Getenv("CertificateApi_CertificateGetCertificateLocations_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("CertificateApi_CertificateGetCertificateLocations_id: %v", id) + resp, httpRes, err := apiClient.CertificateApi.CertificateGetCertificateLocations(context.Background(), id).Execute() - t.Log("CertificateApi_CertificateGetCertificateLocations_payload: ") - resp, httpRes, err := apiClient.CertificateApi.CertificateGetCertificateLocations(context.Background(), id.(int32)).Execute() require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test CertificateApiService CertificateGetCertificateSecurity", func(t *testing.T) { - var id interface{} + t.Skip("skip test") // remove to run test + + var id int32 - id = os.Getenv("CertificateApi_CertificateGetCertificateSecurity_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("CertificateApi_CertificateGetCertificateSecurity_id: %v", id) + resp, httpRes, err := apiClient.CertificateApi.CertificateGetCertificateSecurity(context.Background(), id).Execute() - t.Log("CertificateApi_CertificateGetCertificateSecurity_payload: ") - resp, httpRes, err := apiClient.CertificateApi.CertificateGetCertificateSecurity(context.Background(), id.(int32)).Execute() require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test CertificateApiService CertificateIdentityAudit", func(t *testing.T) { - var id interface{} + t.Skip("skip test") // remove to run test + + var id int32 - id = os.Getenv("CertificateApi_CertificateIdentityAudit_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("CertificateApi_CertificateIdentityAudit_id: %v", id) + resp, httpRes, err := apiClient.CertificateApi.CertificateIdentityAudit(context.Background(), id).Execute() - t.Log("CertificateApi_CertificateIdentityAudit_payload: ") - resp, httpRes, err := apiClient.CertificateApi.CertificateIdentityAudit(context.Background(), id.(int32)).Execute() require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test CertificateApiService CertificatePostImportCertificate", func(t *testing.T) { - t.Log("CertificateApi_CertificatePostImportCertificate_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.CertificateApi.CertificatePostImportCertificate(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test CertificateApiService CertificateQueryCertificates", func(t *testing.T) { - t.Log("CertificateApi_CertificateQueryCertificates_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.CertificateApi.CertificateQueryCertificates(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test CertificateApiService CertificateRecoverCertificateAsync", func(t *testing.T) { - t.Log("CertificateApi_CertificateRecoverCertificateAsync_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.CertificateApi.CertificateRecoverCertificateAsync(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test CertificateApiService CertificateRevoke", func(t *testing.T) { - t.Log("CertificateApi_CertificateRevoke_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.CertificateApi.CertificateRevoke(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test CertificateApiService CertificateRevokeAll", func(t *testing.T) { - t.Log("CertificateApi_CertificateRevokeAll_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.CertificateApi.CertificateRevokeAll(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test CertificateApiService CertificateUpdateAllMetadata", func(t *testing.T) { - t.Log("CertificateApi_CertificateUpdateAllMetadata_payload: ") + t.Skip("skip test") // remove to run test + httpRes, err := apiClient.CertificateApi.CertificateUpdateAllMetadata(context.Background()).Execute() + require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test CertificateApiService CertificateUpdateMetadata", func(t *testing.T) { - t.Log("CertificateApi_CertificateUpdateMetadata_payload: ") + t.Skip("skip test") // remove to run test + httpRes, err := apiClient.CertificateApi.CertificateUpdateMetadata(context.Background()).Execute() + require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test CertificateApiService CertificateValidateCertificate", func(t *testing.T) { - var id interface{} + t.Skip("skip test") // remove to run test + + var id int32 - id = os.Getenv("CertificateApi_CertificateValidateCertificate_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("CertificateApi_CertificateValidateCertificate_id: %v", id) + resp, httpRes, err := apiClient.CertificateApi.CertificateValidateCertificate(context.Background(), id).Execute() - t.Log("CertificateApi_CertificateValidateCertificate_payload: ") - resp, httpRes, err := apiClient.CertificateApi.CertificateValidateCertificate(context.Background(), id.(int32)).Execute() require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) } diff --git a/v1/test/api_csr_generation_test.go b/v1/test/api_csr_generation_test.go new file mode 100644 index 0000000..e414481 --- /dev/null +++ b/v1/test/api_csr_generation_test.go @@ -0,0 +1,87 @@ +/* +Keyfactor-v1 + +Testing CSRGenerationApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package keyfactor + +import ( + "context" + openapiclient "github.com/Keyfactor/keyfactor-go-client-sdk/v1/api/keyfactor" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_keyfactor_CSRGenerationApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test CSRGenerationApiService CSRGenerationDeleteCSR", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + httpRes, err := apiClient.CSRGenerationApi.CSRGenerationDeleteCSR(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CSRGenerationApiService CSRGenerationDeleteCSRs", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.CSRGenerationApi.CSRGenerationDeleteCSRs(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CSRGenerationApiService CSRGenerationDownload", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.CSRGenerationApi.CSRGenerationDownload(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CSRGenerationApiService CSRGenerationGetPendingCSRs", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CSRGenerationApi.CSRGenerationGetPendingCSRs(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CSRGenerationApiService CSRGenerationPostGenerate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CSRGenerationApi.CSRGenerationPostGenerate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/v1/test/api_custom_job_type_test.go b/v1/test/api_custom_job_type_test.go new file mode 100644 index 0000000..7263391 --- /dev/null +++ b/v1/test/api_custom_job_type_test.go @@ -0,0 +1,88 @@ +/* +Keyfactor-v1 + +Testing CustomJobTypeApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package keyfactor + +import ( + "context" + openapiclient "github.com/Keyfactor/keyfactor-go-client-sdk/v1/api/keyfactor" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_keyfactor_CustomJobTypeApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test CustomJobTypeApiService CustomJobTypeCreateJobType", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CustomJobTypeApi.CustomJobTypeCreateJobType(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CustomJobTypeApiService CustomJobTypeDeleteJobType", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + httpRes, err := apiClient.CustomJobTypeApi.CustomJobTypeDeleteJobType(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CustomJobTypeApiService CustomJobTypeGetJobTypeById", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.CustomJobTypeApi.CustomJobTypeGetJobTypeById(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CustomJobTypeApiService CustomJobTypeGetJobTypes", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CustomJobTypeApi.CustomJobTypeGetJobTypes(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CustomJobTypeApiService CustomJobTypeUpdateJobType", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CustomJobTypeApi.CustomJobTypeUpdateJobType(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/v1/test/api_denied_alert_test.go b/v1/test/api_denied_alert_test.go new file mode 100644 index 0000000..687579e --- /dev/null +++ b/v1/test/api_denied_alert_test.go @@ -0,0 +1,88 @@ +/* +Keyfactor-v1 + +Testing DeniedAlertApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package keyfactor + +import ( + "context" + openapiclient "github.com/Keyfactor/keyfactor-go-client-sdk/v1/api/keyfactor" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_keyfactor_DeniedAlertApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test DeniedAlertApiService DeniedAlertAddDeniedAlert", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DeniedAlertApi.DeniedAlertAddDeniedAlert(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DeniedAlertApiService DeniedAlertDeleteDeniedAlert", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + httpRes, err := apiClient.DeniedAlertApi.DeniedAlertDeleteDeniedAlert(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DeniedAlertApiService DeniedAlertEditDeniedAlert", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DeniedAlertApi.DeniedAlertEditDeniedAlert(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DeniedAlertApiService DeniedAlertGetDeniedAlert", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DeniedAlertApi.DeniedAlertGetDeniedAlert(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DeniedAlertApiService DeniedAlertGetDeniedAlerts", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DeniedAlertApi.DeniedAlertGetDeniedAlerts(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/v1/test/api_enrollment_test.go b/v1/test/api_enrollment_test.go new file mode 100644 index 0000000..7778d85 --- /dev/null +++ b/v1/test/api_enrollment_test.go @@ -0,0 +1,163 @@ +/* +Keyfactor-v1 + +Testing EnrollmentApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package keyfactor + +import ( + "context" + openapiclient "github.com/Keyfactor/keyfactor-go-client-sdk/v1/api/keyfactor" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_keyfactor_EnrollmentApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test EnrollmentApiService EnrollmentAddToExistingCertStores", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.EnrollmentApi.EnrollmentAddToExistingCertStores(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test EnrollmentApiService EnrollmentAvailableRenewalId", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.EnrollmentApi.EnrollmentAvailableRenewalId(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test EnrollmentApiService EnrollmentAvailableRenewalThumbprint", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var thumbprint string + + resp, httpRes, err := apiClient.EnrollmentApi.EnrollmentAvailableRenewalThumbprint(context.Background(), thumbprint).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test EnrollmentApiService EnrollmentGetMyCSRContext", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.EnrollmentApi.EnrollmentGetMyCSRContext(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test EnrollmentApiService EnrollmentGetMyPFXContext", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.EnrollmentApi.EnrollmentGetMyPFXContext(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test EnrollmentApiService EnrollmentGetTemplateEnrollmentSettings", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.EnrollmentApi.EnrollmentGetTemplateEnrollmentSettings(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test EnrollmentApiService EnrollmentInstallPFXToCertStore", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.EnrollmentApi.EnrollmentInstallPFXToCertStore(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test EnrollmentApiService EnrollmentPostCSREnroll", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.EnrollmentApi.EnrollmentPostCSREnroll(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test EnrollmentApiService EnrollmentPostPFXEnroll", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.EnrollmentApi.EnrollmentPostPFXEnroll(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test EnrollmentApiService EnrollmentPostParsedCSR", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.EnrollmentApi.EnrollmentPostParsedCSR(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test EnrollmentApiService EnrollmentRenew", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.EnrollmentApi.EnrollmentRenew(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/v2/api/command/api_expiration_alert_test.go b/v1/test/api_expiration_alert_test.go similarity index 57% rename from v2/api/command/api_expiration_alert_test.go rename to v1/test/api_expiration_alert_test.go index f1386c7..4d147c6 100644 --- a/v2/api/command/api_expiration_alert_test.go +++ b/v1/test/api_expiration_alert_test.go @@ -1,14 +1,4 @@ /* -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may -not use this file except in compliance with the License. You may obtain a -copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless -required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES -OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the -License. - Keyfactor-v1 Testing ExpirationAlertApiService @@ -17,118 +7,130 @@ Testing ExpirationAlertApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package command +package keyfactor import ( "context" - "os" - "testing" - + openapiclient "github.com/Keyfactor/keyfactor-go-client-sdk/v1/api/keyfactor" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + "testing" ) -func Test_command_ExpirationAlertApiService(t *testing.T) { +func Test_keyfactor_ExpirationAlertApiService(t *testing.T) { - cwd, _ := os.Getwd() - t.Logf("Working directory: %s", cwd) - config := GetEnvConfiguration() - - configuration, configErr := NewConfiguration(config) - require.Nil(t, configErr) - - apiClient := NewAPIClient(configuration) + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test ExpirationAlertApiService ExpirationAlertAddExpirationAlert", func(t *testing.T) { - t.Log("ExpirationAlertApi_ExpirationAlertAddExpirationAlert_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.ExpirationAlertApi.ExpirationAlertAddExpirationAlert(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test ExpirationAlertApiService ExpirationAlertDeleteExpirationAlert", func(t *testing.T) { - var id interface{} + t.Skip("skip test") // remove to run test + + var id int32 - id = os.Getenv("ExpirationAlertApi_ExpirationAlertDeleteExpirationAlert_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("ExpirationAlertApi_ExpirationAlertDeleteExpirationAlert_id: %v", id) + httpRes, err := apiClient.ExpirationAlertApi.ExpirationAlertDeleteExpirationAlert(context.Background(), id).Execute() - t.Log("ExpirationAlertApi_ExpirationAlertDeleteExpirationAlert_payload: ") - httpRes, err := apiClient.ExpirationAlertApi.ExpirationAlertDeleteExpirationAlert(context.Background(), id.(int32)).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test ExpirationAlertApiService ExpirationAlertEditExpirationAlert", func(t *testing.T) { - t.Log("ExpirationAlertApi_ExpirationAlertEditExpirationAlert_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.ExpirationAlertApi.ExpirationAlertEditExpirationAlert(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test ExpirationAlertApiService ExpirationAlertEditSchedule", func(t *testing.T) { - t.Log("ExpirationAlertApi_ExpirationAlertEditSchedule_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.ExpirationAlertApi.ExpirationAlertEditSchedule(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test ExpirationAlertApiService ExpirationAlertGetExpirationAlert", func(t *testing.T) { - var id interface{} + t.Skip("skip test") // remove to run test + + var id int32 - id = os.Getenv("ExpirationAlertApi_ExpirationAlertGetExpirationAlert_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("ExpirationAlertApi_ExpirationAlertGetExpirationAlert_id: %v", id) + resp, httpRes, err := apiClient.ExpirationAlertApi.ExpirationAlertGetExpirationAlert(context.Background(), id).Execute() - t.Log("ExpirationAlertApi_ExpirationAlertGetExpirationAlert_payload: ") - resp, httpRes, err := apiClient.ExpirationAlertApi.ExpirationAlertGetExpirationAlert(context.Background(), id.(int32)).Execute() require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test ExpirationAlertApiService ExpirationAlertGetExpirationAlerts", func(t *testing.T) { - t.Log("ExpirationAlertApi_ExpirationAlertGetExpirationAlerts_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.ExpirationAlertApi.ExpirationAlertGetExpirationAlerts(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test ExpirationAlertApiService ExpirationAlertGetSchedule", func(t *testing.T) { - t.Log("ExpirationAlertApi_ExpirationAlertGetSchedule_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.ExpirationAlertApi.ExpirationAlertGetSchedule(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test ExpirationAlertApiService ExpirationAlertTestAllExpirationAlert", func(t *testing.T) { - t.Log("ExpirationAlertApi_ExpirationAlertTestAllExpirationAlert_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.ExpirationAlertApi.ExpirationAlertTestAllExpirationAlert(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test ExpirationAlertApiService ExpirationAlertTestExpirationAlert", func(t *testing.T) { - t.Log("ExpirationAlertApi_ExpirationAlertTestExpirationAlert_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.ExpirationAlertApi.ExpirationAlertTestExpirationAlert(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) } diff --git a/v2/api/command/api_issued_alert_test.go b/v1/test/api_issued_alert_test.go similarity index 54% rename from v2/api/command/api_issued_alert_test.go rename to v1/test/api_issued_alert_test.go index bd73eae..43748b4 100644 --- a/v2/api/command/api_issued_alert_test.go +++ b/v1/test/api_issued_alert_test.go @@ -1,14 +1,4 @@ /* -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may -not use this file except in compliance with the License. You may obtain a -copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless -required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES -OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the -License. - Keyfactor-v1 Testing IssuedAlertApiService @@ -17,100 +7,106 @@ Testing IssuedAlertApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package command +package keyfactor import ( "context" - "os" - "testing" - + openapiclient "github.com/Keyfactor/keyfactor-go-client-sdk/v1/api/keyfactor" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + "testing" ) -func Test_command_IssuedAlertApiService(t *testing.T) { +func Test_keyfactor_IssuedAlertApiService(t *testing.T) { - cwd, _ := os.Getwd() - t.Logf("Working directory: %s", cwd) - config := GetEnvConfiguration() - - configuration, configErr := NewConfiguration(config) - require.Nil(t, configErr) - - apiClient := NewAPIClient(configuration) + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test IssuedAlertApiService IssuedAlertAddIssuedAlert", func(t *testing.T) { - t.Log("IssuedAlertApi_IssuedAlertAddIssuedAlert_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.IssuedAlertApi.IssuedAlertAddIssuedAlert(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test IssuedAlertApiService IssuedAlertDeleteIssuedAlert", func(t *testing.T) { - var id interface{} + t.Skip("skip test") // remove to run test + + var id int32 - id = os.Getenv("IssuedAlertApi_IssuedAlertDeleteIssuedAlert_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("IssuedAlertApi_IssuedAlertDeleteIssuedAlert_id: %v", id) + httpRes, err := apiClient.IssuedAlertApi.IssuedAlertDeleteIssuedAlert(context.Background(), id).Execute() - t.Log("IssuedAlertApi_IssuedAlertDeleteIssuedAlert_payload: ") - httpRes, err := apiClient.IssuedAlertApi.IssuedAlertDeleteIssuedAlert(context.Background(), id.(int32)).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test IssuedAlertApiService IssuedAlertEditIssuedAlert", func(t *testing.T) { - t.Log("IssuedAlertApi_IssuedAlertEditIssuedAlert_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.IssuedAlertApi.IssuedAlertEditIssuedAlert(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test IssuedAlertApiService IssuedAlertEditSchedule", func(t *testing.T) { - t.Log("IssuedAlertApi_IssuedAlertEditSchedule_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.IssuedAlertApi.IssuedAlertEditSchedule(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test IssuedAlertApiService IssuedAlertGetIssuedAlert", func(t *testing.T) { - var id interface{} + t.Skip("skip test") // remove to run test + + var id int32 - id = os.Getenv("IssuedAlertApi_IssuedAlertGetIssuedAlert_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("IssuedAlertApi_IssuedAlertGetIssuedAlert_id: %v", id) + resp, httpRes, err := apiClient.IssuedAlertApi.IssuedAlertGetIssuedAlert(context.Background(), id).Execute() - t.Log("IssuedAlertApi_IssuedAlertGetIssuedAlert_payload: ") - resp, httpRes, err := apiClient.IssuedAlertApi.IssuedAlertGetIssuedAlert(context.Background(), id.(int32)).Execute() require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test IssuedAlertApiService IssuedAlertGetIssuedAlerts", func(t *testing.T) { - t.Log("IssuedAlertApi_IssuedAlertGetIssuedAlerts_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.IssuedAlertApi.IssuedAlertGetIssuedAlerts(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test IssuedAlertApiService IssuedAlertGetSchedule", func(t *testing.T) { - t.Log("IssuedAlertApi_IssuedAlertGetSchedule_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.IssuedAlertApi.IssuedAlertGetSchedule(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) } diff --git a/v2/api/command/api_key_rotation_alert_test.go b/v1/test/api_key_rotation_alert_test.go similarity index 57% rename from v2/api/command/api_key_rotation_alert_test.go rename to v1/test/api_key_rotation_alert_test.go index eea3261..135fcdb 100644 --- a/v2/api/command/api_key_rotation_alert_test.go +++ b/v1/test/api_key_rotation_alert_test.go @@ -1,14 +1,4 @@ /* -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may -not use this file except in compliance with the License. You may obtain a -copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless -required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES -OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the -License. - Keyfactor-v1 Testing KeyRotationAlertApiService @@ -17,118 +7,130 @@ Testing KeyRotationAlertApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package command +package keyfactor import ( "context" - "os" - "testing" - + openapiclient "github.com/Keyfactor/keyfactor-go-client-sdk/v1/api/keyfactor" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + "testing" ) -func Test_command_KeyRotationAlertApiService(t *testing.T) { +func Test_keyfactor_KeyRotationAlertApiService(t *testing.T) { - cwd, _ := os.Getwd() - t.Logf("Working directory: %s", cwd) - config := GetEnvConfiguration() - - configuration, configErr := NewConfiguration(config) - require.Nil(t, configErr) - - apiClient := NewAPIClient(configuration) + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test KeyRotationAlertApiService KeyRotationAlertAddKeyRotationAlert", func(t *testing.T) { - t.Log("KeyRotationAlertApi_KeyRotationAlertAddKeyRotationAlert_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.KeyRotationAlertApi.KeyRotationAlertAddKeyRotationAlert(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test KeyRotationAlertApiService KeyRotationAlertDeleteKeyRotationAlert", func(t *testing.T) { - var id interface{} + t.Skip("skip test") // remove to run test + + var id int32 - id = os.Getenv("KeyRotationAlertApi_KeyRotationAlertDeleteKeyRotationAlert_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("KeyRotationAlertApi_KeyRotationAlertDeleteKeyRotationAlert_id: %v", id) + httpRes, err := apiClient.KeyRotationAlertApi.KeyRotationAlertDeleteKeyRotationAlert(context.Background(), id).Execute() - t.Log("KeyRotationAlertApi_KeyRotationAlertDeleteKeyRotationAlert_payload: ") - httpRes, err := apiClient.KeyRotationAlertApi.KeyRotationAlertDeleteKeyRotationAlert(context.Background(), id.(int32)).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test KeyRotationAlertApiService KeyRotationAlertEditKeyRotationAlert", func(t *testing.T) { - t.Log("KeyRotationAlertApi_KeyRotationAlertEditKeyRotationAlert_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.KeyRotationAlertApi.KeyRotationAlertEditKeyRotationAlert(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test KeyRotationAlertApiService KeyRotationAlertEditSchedule", func(t *testing.T) { - t.Log("KeyRotationAlertApi_KeyRotationAlertEditSchedule_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.KeyRotationAlertApi.KeyRotationAlertEditSchedule(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test KeyRotationAlertApiService KeyRotationAlertGetKeyRotationAlert", func(t *testing.T) { - var id interface{} + t.Skip("skip test") // remove to run test + + var id int32 - id = os.Getenv("KeyRotationAlertApi_KeyRotationAlertGetKeyRotationAlert_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("KeyRotationAlertApi_KeyRotationAlertGetKeyRotationAlert_id: %v", id) + resp, httpRes, err := apiClient.KeyRotationAlertApi.KeyRotationAlertGetKeyRotationAlert(context.Background(), id).Execute() - t.Log("KeyRotationAlertApi_KeyRotationAlertGetKeyRotationAlert_payload: ") - resp, httpRes, err := apiClient.KeyRotationAlertApi.KeyRotationAlertGetKeyRotationAlert(context.Background(), id.(int32)).Execute() require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test KeyRotationAlertApiService KeyRotationAlertGetKeyRotationAlerts", func(t *testing.T) { - t.Log("KeyRotationAlertApi_KeyRotationAlertGetKeyRotationAlerts_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.KeyRotationAlertApi.KeyRotationAlertGetKeyRotationAlerts(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test KeyRotationAlertApiService KeyRotationAlertGetSchedule", func(t *testing.T) { - t.Log("KeyRotationAlertApi_KeyRotationAlertGetSchedule_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.KeyRotationAlertApi.KeyRotationAlertGetSchedule(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test KeyRotationAlertApiService KeyRotationAlertTestAllKeyRotationAlert", func(t *testing.T) { - t.Log("KeyRotationAlertApi_KeyRotationAlertTestAllKeyRotationAlert_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.KeyRotationAlertApi.KeyRotationAlertTestAllKeyRotationAlert(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test KeyRotationAlertApiService KeyRotationAlertTestKeyRotationAlert", func(t *testing.T) { - t.Log("KeyRotationAlertApi_KeyRotationAlertTestKeyRotationAlert_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.KeyRotationAlertApi.KeyRotationAlertTestKeyRotationAlert(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) } diff --git a/v2/api/command/api_key_test.go b/v1/test/api_key_test.go similarity index 54% rename from v2/api/command/api_key_test.go rename to v1/test/api_key_test.go index 31b646d..21d9094 100644 --- a/v2/api/command/api_key_test.go +++ b/v1/test/api_key_test.go @@ -1,14 +1,4 @@ /* -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may -not use this file except in compliance with the License. You may obtain a -copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless -required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES -OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the -License. - Keyfactor-v1 Testing KeyApiService @@ -17,99 +7,105 @@ Testing KeyApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package command +package keyfactor import ( "context" - "os" - "testing" - + openapiclient "github.com/Keyfactor/keyfactor-go-client-sdk/v1/api/keyfactor" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + "testing" ) -func Test_command_KeyApiService(t *testing.T) { +func Test_keyfactor_KeyApiService(t *testing.T) { - cwd, _ := os.Getwd() - t.Logf("Working directory: %s", cwd) - config := GetEnvConfiguration() - - configuration, configErr := NewConfiguration(config) - require.Nil(t, configErr) - - apiClient := NewAPIClient(configuration) + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test KeyApiService KeyDeleteUnmanagedKey", func(t *testing.T) { - var id interface{} + t.Skip("skip test") // remove to run test + + var id int32 - id = os.Getenv("KeyApi_KeyDeleteUnmanagedKey_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("KeyApi_KeyDeleteUnmanagedKey_id: %v", id) + httpRes, err := apiClient.KeyApi.KeyDeleteUnmanagedKey(context.Background(), id).Execute() - t.Log("KeyApi_KeyDeleteUnmanagedKey_payload: ") - httpRes, err := apiClient.KeyApi.KeyDeleteUnmanagedKey(context.Background(), id.(int32)).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test KeyApiService KeyDeleteUnmanagedKeys", func(t *testing.T) { - t.Log("KeyApi_KeyDeleteUnmanagedKeys_payload: ") + t.Skip("skip test") // remove to run test + httpRes, err := apiClient.KeyApi.KeyDeleteUnmanagedKeys(context.Background()).Execute() + require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test KeyApiService KeyGenerateKey", func(t *testing.T) { - t.Log("KeyApi_KeyGenerateKey_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.KeyApi.KeyGenerateKey(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test KeyApiService KeyGetMyKey", func(t *testing.T) { - t.Log("KeyApi_KeyGetMyKey_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.KeyApi.KeyGetMyKey(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test KeyApiService KeyGetUnmanagedKey", func(t *testing.T) { - var id interface{} + t.Skip("skip test") // remove to run test + + var id int32 - id = os.Getenv("KeyApi_KeyGetUnmanagedKey_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("KeyApi_KeyGetUnmanagedKey_id: %v", id) + resp, httpRes, err := apiClient.KeyApi.KeyGetUnmanagedKey(context.Background(), id).Execute() - t.Log("KeyApi_KeyGetUnmanagedKey_payload: ") - resp, httpRes, err := apiClient.KeyApi.KeyGetUnmanagedKey(context.Background(), id.(int32)).Execute() require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test KeyApiService KeyGetUnmanagedKeys", func(t *testing.T) { - t.Log("KeyApi_KeyGetUnmanagedKeys_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.KeyApi.KeyGetUnmanagedKeys(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test KeyApiService KeyUpdate", func(t *testing.T) { - t.Log("KeyApi_KeyUpdate_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.KeyApi.KeyUpdate(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) } diff --git a/v1/test/api_license_test.go b/v1/test/api_license_test.go new file mode 100644 index 0000000..aa9b6c9 --- /dev/null +++ b/v1/test/api_license_test.go @@ -0,0 +1,37 @@ +/* +Keyfactor-v1 + +Testing LicenseApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package keyfactor + +import ( + "context" + openapiclient "github.com/Keyfactor/keyfactor-go-client-sdk/v1/api/keyfactor" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_keyfactor_LicenseApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test LicenseApiService LicenseGetCurrentLicense", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.LicenseApi.LicenseGetCurrentLicense(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/v1/test/api_logon_test.go b/v1/test/api_logon_test.go new file mode 100644 index 0000000..13d4ef9 --- /dev/null +++ b/v1/test/api_logon_test.go @@ -0,0 +1,88 @@ +/* +Keyfactor-v1 + +Testing LogonApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package keyfactor + +import ( + "context" + openapiclient "github.com/Keyfactor/keyfactor-go-client-sdk/v1/api/keyfactor" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_keyfactor_LogonApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test LogonApiService LogonCreateLogon", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.LogonApi.LogonCreateLogon(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test LogonApiService LogonDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + httpRes, err := apiClient.LogonApi.LogonDelete(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test LogonApiService LogonGetLogon", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.LogonApi.LogonGetLogon(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test LogonApiService LogonLogonAccess", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.LogonApi.LogonLogonAccess(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test LogonApiService LogonQueryLogons", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.LogonApi.LogonQueryLogons(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/v1/test/api_mac_enrollment_test.go b/v1/test/api_mac_enrollment_test.go new file mode 100644 index 0000000..fff6155 --- /dev/null +++ b/v1/test/api_mac_enrollment_test.go @@ -0,0 +1,49 @@ +/* +Keyfactor-v1 + +Testing MacEnrollmentApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package keyfactor + +import ( + "context" + openapiclient "github.com/Keyfactor/keyfactor-go-client-sdk/v1/api/keyfactor" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_keyfactor_MacEnrollmentApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test MacEnrollmentApiService MacEnrollmentEditMacEnrollment", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.MacEnrollmentApi.MacEnrollmentEditMacEnrollment(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test MacEnrollmentApiService MacEnrollmentMacEnrollment", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.MacEnrollmentApi.MacEnrollmentMacEnrollment(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/v1/test/api_metadata_field_test.go b/v1/test/api_metadata_field_test.go new file mode 100644 index 0000000..d8cdea0 --- /dev/null +++ b/v1/test/api_metadata_field_test.go @@ -0,0 +1,127 @@ +/* +Keyfactor-v1 + +Testing MetadataFieldApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package keyfactor + +import ( + "context" + openapiclient "github.com/Keyfactor/keyfactor-go-client-sdk/v1/api/keyfactor" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_keyfactor_MetadataFieldApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test MetadataFieldApiService MetadataFieldCreateMetadataField", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.MetadataFieldApi.MetadataFieldCreateMetadataField(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test MetadataFieldApiService MetadataFieldDeleteMetadataField", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + httpRes, err := apiClient.MetadataFieldApi.MetadataFieldDeleteMetadataField(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test MetadataFieldApiService MetadataFieldDeleteMetadataFields", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.MetadataFieldApi.MetadataFieldDeleteMetadataFields(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test MetadataFieldApiService MetadataFieldGetAllMetadataFields", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.MetadataFieldApi.MetadataFieldGetAllMetadataFields(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test MetadataFieldApiService MetadataFieldGetMetadataField0", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.MetadataFieldApi.MetadataFieldGetMetadataField0(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test MetadataFieldApiService MetadataFieldGetMetadataField1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var name string + + resp, httpRes, err := apiClient.MetadataFieldApi.MetadataFieldGetMetadataField1(context.Background(), name).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test MetadataFieldApiService MetadataFieldGetMetadataFieldInUse", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.MetadataFieldApi.MetadataFieldGetMetadataFieldInUse(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test MetadataFieldApiService MetadataFieldUpdateMetadataField", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.MetadataFieldApi.MetadataFieldUpdateMetadataField(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/v2/api/command/api_monitoring_test.go b/v1/test/api_monitoring_test.go similarity index 56% rename from v2/api/command/api_monitoring_test.go rename to v1/test/api_monitoring_test.go index 4f6889d..557a958 100644 --- a/v2/api/command/api_monitoring_test.go +++ b/v1/test/api_monitoring_test.go @@ -1,14 +1,4 @@ /* -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may -not use this file except in compliance with the License. You may obtain a -copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless -required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES -OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the -License. - Keyfactor-v1 Testing MonitoringApiService @@ -17,109 +7,118 @@ Testing MonitoringApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package command +package keyfactor import ( "context" - "os" - "testing" - + openapiclient "github.com/Keyfactor/keyfactor-go-client-sdk/v1/api/keyfactor" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + "testing" ) -func Test_command_MonitoringApiService(t *testing.T) { +func Test_keyfactor_MonitoringApiService(t *testing.T) { - cwd, _ := os.Getwd() - t.Logf("Working directory: %s", cwd) - config := GetEnvConfiguration() - - configuration, configErr := NewConfiguration(config) - require.Nil(t, configErr) - - apiClient := NewAPIClient(configuration) + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test MonitoringApiService MonitoringAddRevocationMonitoring", func(t *testing.T) { - t.Log("MonitoringApi_MonitoringAddRevocationMonitoring_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.MonitoringApi.MonitoringAddRevocationMonitoring(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test MonitoringApiService MonitoringDeleteRevocationMonitoring", func(t *testing.T) { - var id interface{} + t.Skip("skip test") // remove to run test - id = os.Getenv("MonitoringApi_MonitoringDeleteRevocationMonitoring_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("MonitoringApi_MonitoringDeleteRevocationMonitoring_id: %v", id) + var id int32 + + httpRes, err := apiClient.MonitoringApi.MonitoringDeleteRevocationMonitoring(context.Background(), id).Execute() - t.Log("MonitoringApi_MonitoringDeleteRevocationMonitoring_payload: ") - httpRes, err := apiClient.MonitoringApi.MonitoringDeleteRevocationMonitoring(context.Background(), id.(int32)).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test MonitoringApiService MonitoringEditRevocationMonitoring", func(t *testing.T) { - t.Log("MonitoringApi_MonitoringEditRevocationMonitoring_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.MonitoringApi.MonitoringEditRevocationMonitoring(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test MonitoringApiService MonitoringGetRevocationMonitoring", func(t *testing.T) { - var id interface{} + t.Skip("skip test") // remove to run test - id = os.Getenv("MonitoringApi_MonitoringGetRevocationMonitoring_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("MonitoringApi_MonitoringGetRevocationMonitoring_id: %v", id) + var id int32 + + resp, httpRes, err := apiClient.MonitoringApi.MonitoringGetRevocationMonitoring(context.Background(), id).Execute() - t.Log("MonitoringApi_MonitoringGetRevocationMonitoring_payload: ") - resp, httpRes, err := apiClient.MonitoringApi.MonitoringGetRevocationMonitoring(context.Background(), id.(int32)).Execute() require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test MonitoringApiService MonitoringGetRevocationMonitoringEndpoints", func(t *testing.T) { - t.Log("MonitoringApi_MonitoringGetRevocationMonitoringEndpoints_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.MonitoringApi.MonitoringGetRevocationMonitoringEndpoints(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test MonitoringApiService MonitoringResolveOCSP", func(t *testing.T) { - t.Log("MonitoringApi_MonitoringResolveOCSP_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.MonitoringApi.MonitoringResolveOCSP(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test MonitoringApiService MonitoringTestAllRevocationMonitoringAlert", func(t *testing.T) { - t.Log("MonitoringApi_MonitoringTestAllRevocationMonitoringAlert_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.MonitoringApi.MonitoringTestAllRevocationMonitoringAlert(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test MonitoringApiService MonitoringTestRevocationMonitoringAlert", func(t *testing.T) { - t.Log("MonitoringApi_MonitoringTestRevocationMonitoringAlert_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.MonitoringApi.MonitoringTestRevocationMonitoringAlert(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) } diff --git a/v2/api/command/api_orchestrator_job_test.go b/v1/test/api_orchestrator_job_test.go similarity index 64% rename from v2/api/command/api_orchestrator_job_test.go rename to v1/test/api_orchestrator_job_test.go index 781b122..7f410c2 100644 --- a/v2/api/command/api_orchestrator_job_test.go +++ b/v1/test/api_orchestrator_job_test.go @@ -1,14 +1,4 @@ /* -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may -not use this file except in compliance with the License. You may obtain a -copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless -required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES -OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the -License. - Keyfactor-v1 Testing OrchestratorJobApiService @@ -17,95 +7,112 @@ Testing OrchestratorJobApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package command +package keyfactor import ( "context" - "os" - "testing" - + openapiclient "github.com/Keyfactor/keyfactor-go-client-sdk/v1/api/keyfactor" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + "testing" ) -func Test_command_OrchestratorJobApiService(t *testing.T) { +func Test_keyfactor_OrchestratorJobApiService(t *testing.T) { - cwd, _ := os.Getwd() - t.Logf("Working directory: %s", cwd) - config := GetEnvConfiguration() - - configuration, configErr := NewConfiguration(config) - require.Nil(t, configErr) - - apiClient := NewAPIClient(configuration) + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test OrchestratorJobApiService OrchestratorJobAcknowledgeJobs", func(t *testing.T) { - t.Log("OrchestratorJobApi_OrchestratorJobAcknowledgeJobs_payload: ") + t.Skip("skip test") // remove to run test + httpRes, err := apiClient.OrchestratorJobApi.OrchestratorJobAcknowledgeJobs(context.Background()).Execute() + require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test OrchestratorJobApiService OrchestratorJobGetCustomJobResultData", func(t *testing.T) { - t.Log("OrchestratorJobApi_OrchestratorJobGetCustomJobResultData_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.OrchestratorJobApi.OrchestratorJobGetCustomJobResultData(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test OrchestratorJobApiService OrchestratorJobGetJobHistory", func(t *testing.T) { - t.Log("OrchestratorJobApi_OrchestratorJobGetJobHistory_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.OrchestratorJobApi.OrchestratorJobGetJobHistory(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test OrchestratorJobApiService OrchestratorJobGetScheduledJobs", func(t *testing.T) { - t.Log("OrchestratorJobApi_OrchestratorJobGetScheduledJobs_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.OrchestratorJobApi.OrchestratorJobGetScheduledJobs(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test OrchestratorJobApiService OrchestratorJobRescheduleJobs", func(t *testing.T) { - t.Log("OrchestratorJobApi_OrchestratorJobRescheduleJobs_payload: ") + t.Skip("skip test") // remove to run test + httpRes, err := apiClient.OrchestratorJobApi.OrchestratorJobRescheduleJobs(context.Background()).Execute() + require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test OrchestratorJobApiService OrchestratorJobScheduleBulkJob", func(t *testing.T) { - t.Log("OrchestratorJobApi_OrchestratorJobScheduleBulkJob_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.OrchestratorJobApi.OrchestratorJobScheduleBulkJob(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test OrchestratorJobApiService OrchestratorJobScheduleJob", func(t *testing.T) { - t.Log("OrchestratorJobApi_OrchestratorJobScheduleJob_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.OrchestratorJobApi.OrchestratorJobScheduleJob(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test OrchestratorJobApiService OrchestratorJobUnscheduleJobs", func(t *testing.T) { - t.Log("OrchestratorJobApi_OrchestratorJobUnscheduleJobs_payload: ") + t.Skip("skip test") // remove to run test + httpRes, err := apiClient.OrchestratorJobApi.OrchestratorJobUnscheduleJobs(context.Background()).Execute() + require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) + }) } diff --git a/v2/api/command/api_pam_provider_test.go b/v1/test/api_pam_provider_test.go similarity index 54% rename from v2/api/command/api_pam_provider_test.go rename to v1/test/api_pam_provider_test.go index 2c5b5c4..f43aac5 100644 --- a/v2/api/command/api_pam_provider_test.go +++ b/v1/test/api_pam_provider_test.go @@ -1,14 +1,4 @@ /* -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may -not use this file except in compliance with the License. You may obtain a -copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless -required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES -OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the -License. - Keyfactor-v1 Testing PAMProviderApiService @@ -17,100 +7,106 @@ Testing PAMProviderApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package command +package keyfactor import ( "context" - "os" - "testing" - + openapiclient "github.com/Keyfactor/keyfactor-go-client-sdk/v1/api/keyfactor" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + "testing" ) -func Test_command_PAMProviderApiService(t *testing.T) { +func Test_keyfactor_PAMProviderApiService(t *testing.T) { - cwd, _ := os.Getwd() - t.Logf("Working directory: %s", cwd) - config := GetEnvConfiguration() - - configuration, configErr := NewConfiguration(config) - require.Nil(t, configErr) - - apiClient := NewAPIClient(configuration) + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test PAMProviderApiService PAMProviderCreatePamProvider", func(t *testing.T) { - t.Log("PAMProviderApi_PAMProviderCreatePamProvider_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.PAMProviderApi.PAMProviderCreatePamProvider(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test PAMProviderApiService PAMProviderCreatePamProviderType", func(t *testing.T) { - t.Log("PAMProviderApi_PAMProviderCreatePamProviderType_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.PAMProviderApi.PAMProviderCreatePamProviderType(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test PAMProviderApiService PAMProviderDeletePamProvider", func(t *testing.T) { - var id interface{} + t.Skip("skip test") // remove to run test + + var id int32 - id = os.Getenv("PAMProviderApi_PAMProviderDeletePamProvider_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("PAMProviderApi_PAMProviderDeletePamProvider_id: %v", id) + httpRes, err := apiClient.PAMProviderApi.PAMProviderDeletePamProvider(context.Background(), id).Execute() - t.Log("PAMProviderApi_PAMProviderDeletePamProvider_payload: ") - httpRes, err := apiClient.PAMProviderApi.PAMProviderDeletePamProvider(context.Background(), id.(int32)).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test PAMProviderApiService PAMProviderGetPamProvider", func(t *testing.T) { - var id interface{} + t.Skip("skip test") // remove to run test + + var id int32 - id = os.Getenv("PAMProviderApi_PAMProviderGetPamProvider_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("PAMProviderApi_PAMProviderGetPamProvider_id: %v", id) + resp, httpRes, err := apiClient.PAMProviderApi.PAMProviderGetPamProvider(context.Background(), id).Execute() - t.Log("PAMProviderApi_PAMProviderGetPamProvider_payload: ") - resp, httpRes, err := apiClient.PAMProviderApi.PAMProviderGetPamProvider(context.Background(), id.(int32)).Execute() require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test PAMProviderApiService PAMProviderGetPamProviderTypes", func(t *testing.T) { - t.Log("PAMProviderApi_PAMProviderGetPamProviderTypes_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.PAMProviderApi.PAMProviderGetPamProviderTypes(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test PAMProviderApiService PAMProviderGetPamProviders", func(t *testing.T) { - t.Log("PAMProviderApi_PAMProviderGetPamProviders_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.PAMProviderApi.PAMProviderGetPamProviders(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test PAMProviderApiService PAMProviderUpdatePamProvider", func(t *testing.T) { - t.Log("PAMProviderApi_PAMProviderUpdatePamProvider_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.PAMProviderApi.PAMProviderUpdatePamProvider(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) } diff --git a/v2/api/command/api_pending_alert_test.go b/v1/test/api_pending_alert_test.go similarity index 58% rename from v2/api/command/api_pending_alert_test.go rename to v1/test/api_pending_alert_test.go index f91b97b..a9d951b 100644 --- a/v2/api/command/api_pending_alert_test.go +++ b/v1/test/api_pending_alert_test.go @@ -1,14 +1,4 @@ /* -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may -not use this file except in compliance with the License. You may obtain a -copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless -required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES -OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the -License. - Keyfactor-v1 Testing PendingAlertApiService @@ -17,118 +7,130 @@ Testing PendingAlertApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package command +package keyfactor import ( "context" - "os" - "testing" - + openapiclient "github.com/Keyfactor/keyfactor-go-client-sdk/v1/api/keyfactor" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + "testing" ) -func Test_command_PendingAlertApiService(t *testing.T) { +func Test_keyfactor_PendingAlertApiService(t *testing.T) { - cwd, _ := os.Getwd() - t.Logf("Working directory: %s", cwd) - config := GetEnvConfiguration() - - configuration, configErr := NewConfiguration(config) - require.Nil(t, configErr) - - apiClient := NewAPIClient(configuration) + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test PendingAlertApiService PendingAlertAddPendingAlert", func(t *testing.T) { - t.Log("PendingAlertApi_PendingAlertAddPendingAlert_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.PendingAlertApi.PendingAlertAddPendingAlert(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test PendingAlertApiService PendingAlertDeletePendingAlert", func(t *testing.T) { - var id interface{} + t.Skip("skip test") // remove to run test + + var id int32 - id = os.Getenv("PendingAlertApi_PendingAlertDeletePendingAlert_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("PendingAlertApi_PendingAlertDeletePendingAlert_id: %v", id) + httpRes, err := apiClient.PendingAlertApi.PendingAlertDeletePendingAlert(context.Background(), id).Execute() - t.Log("PendingAlertApi_PendingAlertDeletePendingAlert_payload: ") - httpRes, err := apiClient.PendingAlertApi.PendingAlertDeletePendingAlert(context.Background(), id.(int32)).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test PendingAlertApiService PendingAlertEditPendingAlert", func(t *testing.T) { - t.Log("PendingAlertApi_PendingAlertEditPendingAlert_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.PendingAlertApi.PendingAlertEditPendingAlert(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test PendingAlertApiService PendingAlertEditSchedule", func(t *testing.T) { - t.Log("PendingAlertApi_PendingAlertEditSchedule_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.PendingAlertApi.PendingAlertEditSchedule(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test PendingAlertApiService PendingAlertGetPendingAlert", func(t *testing.T) { - var id interface{} + t.Skip("skip test") // remove to run test + + var id int32 - id = os.Getenv("PendingAlertApi_PendingAlertGetPendingAlert_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("PendingAlertApi_PendingAlertGetPendingAlert_id: %v", id) + resp, httpRes, err := apiClient.PendingAlertApi.PendingAlertGetPendingAlert(context.Background(), id).Execute() - t.Log("PendingAlertApi_PendingAlertGetPendingAlert_payload: ") - resp, httpRes, err := apiClient.PendingAlertApi.PendingAlertGetPendingAlert(context.Background(), id.(int32)).Execute() require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test PendingAlertApiService PendingAlertGetPendingAlerts", func(t *testing.T) { - t.Log("PendingAlertApi_PendingAlertGetPendingAlerts_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.PendingAlertApi.PendingAlertGetPendingAlerts(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test PendingAlertApiService PendingAlertGetSchedule", func(t *testing.T) { - t.Log("PendingAlertApi_PendingAlertGetSchedule_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.PendingAlertApi.PendingAlertGetSchedule(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test PendingAlertApiService PendingAlertTestAllPendingAlert", func(t *testing.T) { - t.Log("PendingAlertApi_PendingAlertTestAllPendingAlert_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.PendingAlertApi.PendingAlertTestAllPendingAlert(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test PendingAlertApiService PendingAlertTestPendingAlert", func(t *testing.T) { - t.Log("PendingAlertApi_PendingAlertTestPendingAlert_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.PendingAlertApi.PendingAlertTestPendingAlert(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) } diff --git a/v1/test/api_reports_test.go b/v1/test/api_reports_test.go new file mode 100644 index 0000000..42ae3f8 --- /dev/null +++ b/v1/test/api_reports_test.go @@ -0,0 +1,223 @@ +/* +Keyfactor-v1 + +Testing ReportsApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package keyfactor + +import ( + "context" + openapiclient "github.com/Keyfactor/keyfactor-go-client-sdk/v1/api/keyfactor" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_keyfactor_ReportsApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test ReportsApiService ReportsCreateCustomReport", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ReportsApi.ReportsCreateCustomReport(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ReportsApiService ReportsCreateReportSchedule", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ReportsApi.ReportsCreateReportSchedule(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ReportsApiService ReportsDeleteReport", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + httpRes, err := apiClient.ReportsApi.ReportsDeleteReport(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ReportsApiService ReportsDeleteReportSchedule", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + httpRes, err := apiClient.ReportsApi.ReportsDeleteReportSchedule(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ReportsApiService ReportsGetCustomReport", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ReportsApi.ReportsGetCustomReport(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ReportsApiService ReportsGetReport", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ReportsApi.ReportsGetReport(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ReportsApiService ReportsGetReportParameters", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ReportsApi.ReportsGetReportParameters(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ReportsApiService ReportsGetReportSchedule", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ReportsApi.ReportsGetReportSchedule(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ReportsApiService ReportsGetReportSchedules", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ReportsApi.ReportsGetReportSchedules(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ReportsApiService ReportsQueryCustomReports", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ReportsApi.ReportsQueryCustomReports(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ReportsApiService ReportsQueryReports", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ReportsApi.ReportsQueryReports(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ReportsApiService ReportsUpdateCustomReport", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ReportsApi.ReportsUpdateCustomReport(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ReportsApiService ReportsUpdateReport", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ReportsApi.ReportsUpdateReport(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ReportsApiService ReportsUpdateReportParameters", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ReportsApi.ReportsUpdateReportParameters(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ReportsApiService ReportsUpdateReportSchedule", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ReportsApi.ReportsUpdateReportSchedule(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/v1/test/api_security_role_permissions_test.go b/v1/test/api_security_role_permissions_test.go new file mode 100644 index 0000000..be81d88 --- /dev/null +++ b/v1/test/api_security_role_permissions_test.go @@ -0,0 +1,165 @@ +/* +Keyfactor-v1 + +Testing SecurityRolePermissionsApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package keyfactor + +import ( + "context" + openapiclient "github.com/Keyfactor/keyfactor-go-client-sdk/v1/api/keyfactor" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_keyfactor_SecurityRolePermissionsApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test SecurityRolePermissionsApiService SecurityRolePermissionsAddCollectionPermissions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.SecurityRolePermissionsApi.SecurityRolePermissionsAddCollectionPermissions(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test SecurityRolePermissionsApiService SecurityRolePermissionsAddContainerPermissions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.SecurityRolePermissionsApi.SecurityRolePermissionsAddContainerPermissions(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test SecurityRolePermissionsApiService SecurityRolePermissionsAddGlobalPermissions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.SecurityRolePermissionsApi.SecurityRolePermissionsAddGlobalPermissions(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test SecurityRolePermissionsApiService SecurityRolePermissionsGetCollectionPermissionsForRole", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.SecurityRolePermissionsApi.SecurityRolePermissionsGetCollectionPermissionsForRole(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test SecurityRolePermissionsApiService SecurityRolePermissionsGetContainerPermissionsForRole", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.SecurityRolePermissionsApi.SecurityRolePermissionsGetContainerPermissionsForRole(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test SecurityRolePermissionsApiService SecurityRolePermissionsGetGlobalPermissionsForRole", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.SecurityRolePermissionsApi.SecurityRolePermissionsGetGlobalPermissionsForRole(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test SecurityRolePermissionsApiService SecurityRolePermissionsGetPermissionsForRole", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.SecurityRolePermissionsApi.SecurityRolePermissionsGetPermissionsForRole(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test SecurityRolePermissionsApiService SecurityRolePermissionsSetCollectionPermissions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.SecurityRolePermissionsApi.SecurityRolePermissionsSetCollectionPermissions(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test SecurityRolePermissionsApiService SecurityRolePermissionsSetContainerPermissions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.SecurityRolePermissionsApi.SecurityRolePermissionsSetContainerPermissions(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test SecurityRolePermissionsApiService SecurityRolePermissionsSetGlobalPermissions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.SecurityRolePermissionsApi.SecurityRolePermissionsSetGlobalPermissions(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/v1/test/api_security_roles_test.go b/v1/test/api_security_roles_test.go new file mode 100644 index 0000000..25a04b0 --- /dev/null +++ b/v1/test/api_security_roles_test.go @@ -0,0 +1,66 @@ +/* +Keyfactor-v1 + +Testing SecurityRolesApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package keyfactor + +import ( + "context" + openapiclient "github.com/Keyfactor/keyfactor-go-client-sdk/v1/api/keyfactor" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_keyfactor_SecurityRolesApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test SecurityRolesApiService SecurityRolesDeleteSecurityRole", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + httpRes, err := apiClient.SecurityRolesApi.SecurityRolesDeleteSecurityRole(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test SecurityRolesApiService SecurityRolesGetIdentitiesWithRole", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.SecurityRolesApi.SecurityRolesGetIdentitiesWithRole(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test SecurityRolesApiService SecurityRolesUpdateIdentitiesWithRole", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.SecurityRolesApi.SecurityRolesUpdateIdentitiesWithRole(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/v1/test/api_security_test.go b/v1/test/api_security_test.go new file mode 100644 index 0000000..81348bf --- /dev/null +++ b/v1/test/api_security_test.go @@ -0,0 +1,64 @@ +/* +Keyfactor-v1 + +Testing SecurityApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package keyfactor + +import ( + "context" + openapiclient "github.com/Keyfactor/keyfactor-go-client-sdk/v1/api/keyfactor" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_keyfactor_SecurityApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test SecurityApiService SecurityDeleteSecurityIdentity", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + httpRes, err := apiClient.SecurityApi.SecurityDeleteSecurityIdentity(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test SecurityApiService SecurityIdentityPermissions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.SecurityApi.SecurityIdentityPermissions(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test SecurityApiService SecurityLookupIdentity", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.SecurityApi.SecurityLookupIdentity(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/v2/api/command/api_server_group_test.go b/v1/test/api_server_group_test.go similarity index 52% rename from v2/api/command/api_server_group_test.go rename to v1/test/api_server_group_test.go index 5060769..e496a95 100644 --- a/v2/api/command/api_server_group_test.go +++ b/v1/test/api_server_group_test.go @@ -1,14 +1,4 @@ /* -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may -not use this file except in compliance with the License. You may obtain a -copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless -required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES -OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the -License. - Keyfactor-v1 Testing ServerGroupApiService @@ -17,130 +7,134 @@ Testing ServerGroupApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package command +package keyfactor import ( "context" - "os" - "testing" - + openapiclient "github.com/Keyfactor/keyfactor-go-client-sdk/v1/api/keyfactor" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + "testing" ) -func Test_command_ServerGroupApiService(t *testing.T) { +func Test_keyfactor_ServerGroupApiService(t *testing.T) { - cwd, _ := os.Getwd() - t.Logf("Working directory: %s", cwd) - config := GetEnvConfiguration() - - configuration, configErr := NewConfiguration(config) - require.Nil(t, configErr) - - apiClient := NewAPIClient(configuration) + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test ServerGroupApiService ServerGroupAddAccess", func(t *testing.T) { - t.Log("ServerGroupApi_ServerGroupAddAccess_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.ServerGroupApi.ServerGroupAddAccess(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test ServerGroupApiService ServerGroupCreateServerGroup", func(t *testing.T) { - t.Log("ServerGroupApi_ServerGroupCreateServerGroup_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.ServerGroupApi.ServerGroupCreateServerGroup(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test ServerGroupApiService ServerGroupDelete", func(t *testing.T) { - var id interface{} + t.Skip("skip test") // remove to run test - id = os.Getenv("ServerGroupApi_ServerGroupDelete_id") - id, _ = convertParamInterface(id, "string") - t.Logf("ServerGroupApi_ServerGroupDelete_id: %v", id) + var id string + + httpRes, err := apiClient.ServerGroupApi.ServerGroupDelete(context.Background(), id).Execute() - t.Log("ServerGroupApi_ServerGroupDelete_payload: ") - httpRes, err := apiClient.ServerGroupApi.ServerGroupDelete(context.Background(), id.(string)).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test ServerGroupApiService ServerGroupGetAccess", func(t *testing.T) { - var id interface{} + t.Skip("skip test") // remove to run test + + var id string - id = os.Getenv("ServerGroupApi_ServerGroupGetAccess_id") - id, _ = convertParamInterface(id, "string") - t.Logf("ServerGroupApi_ServerGroupGetAccess_id: %v", id) + resp, httpRes, err := apiClient.ServerGroupApi.ServerGroupGetAccess(context.Background(), id).Execute() - t.Log("ServerGroupApi_ServerGroupGetAccess_payload: ") - resp, httpRes, err := apiClient.ServerGroupApi.ServerGroupGetAccess(context.Background(), id.(string)).Execute() require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test ServerGroupApiService ServerGroupGetGroup", func(t *testing.T) { - var id interface{} + t.Skip("skip test") // remove to run test + + var id string - id = os.Getenv("ServerGroupApi_ServerGroupGetGroup_id") - id, _ = convertParamInterface(id, "string") - t.Logf("ServerGroupApi_ServerGroupGetGroup_id: %v", id) + resp, httpRes, err := apiClient.ServerGroupApi.ServerGroupGetGroup(context.Background(), id).Execute() - t.Log("ServerGroupApi_ServerGroupGetGroup_payload: ") - resp, httpRes, err := apiClient.ServerGroupApi.ServerGroupGetGroup(context.Background(), id.(string)).Execute() require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test ServerGroupApiService ServerGroupGetGroupByName", func(t *testing.T) { - var name interface{} + t.Skip("skip test") // remove to run test + + var name string - name = os.Getenv("ServerGroupApi_ServerGroupGetGroupByName_name") - name, _ = convertParamInterface(name, "string") - t.Logf("ServerGroupApi_ServerGroupGetGroupByName_name: %v", name) + resp, httpRes, err := apiClient.ServerGroupApi.ServerGroupGetGroupByName(context.Background(), name).Execute() - t.Log("ServerGroupApi_ServerGroupGetGroupByName_payload: ") - resp, httpRes, err := apiClient.ServerGroupApi.ServerGroupGetGroupByName(context.Background(), name.(string)).Execute() require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test ServerGroupApiService ServerGroupQueryServerGroups", func(t *testing.T) { - t.Log("ServerGroupApi_ServerGroupQueryServerGroups_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.ServerGroupApi.ServerGroupQueryServerGroups(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test ServerGroupApiService ServerGroupRemoveAccess", func(t *testing.T) { - t.Log("ServerGroupApi_ServerGroupRemoveAccess_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.ServerGroupApi.ServerGroupRemoveAccess(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test ServerGroupApiService ServerGroupUpdateServerGroup", func(t *testing.T) { - t.Log("ServerGroupApi_ServerGroupUpdateServerGroup_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.ServerGroupApi.ServerGroupUpdateServerGroup(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) } diff --git a/v2/api/command/api_server_test.go b/v1/test/api_server_test.go similarity index 54% rename from v2/api/command/api_server_test.go rename to v1/test/api_server_test.go index d8b9939..8ab65e2 100644 --- a/v2/api/command/api_server_test.go +++ b/v1/test/api_server_test.go @@ -1,14 +1,4 @@ /* -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may -not use this file except in compliance with the License. You may obtain a -copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless -required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES -OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the -License. - Keyfactor-v1 Testing ServerApiService @@ -17,115 +7,120 @@ Testing ServerApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package command +package keyfactor import ( "context" - "os" - "testing" - + openapiclient "github.com/Keyfactor/keyfactor-go-client-sdk/v1/api/keyfactor" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + "testing" ) -func Test_command_ServerApiService(t *testing.T) { +func Test_keyfactor_ServerApiService(t *testing.T) { - cwd, _ := os.Getwd() - t.Logf("Working directory: %s", cwd) - config := GetEnvConfiguration() - - configuration, configErr := NewConfiguration(config) - require.Nil(t, configErr) - - apiClient := NewAPIClient(configuration) + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test ServerApiService ServerAddAccess", func(t *testing.T) { - t.Log("ServerApi_ServerAddAccess_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.ServerApi.ServerAddAccess(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test ServerApiService ServerCreateServer", func(t *testing.T) { - t.Log("ServerApi_ServerCreateServer_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.ServerApi.ServerCreateServer(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test ServerApiService ServerDelete", func(t *testing.T) { - var id interface{} + t.Skip("skip test") // remove to run test + + var id int32 - id = os.Getenv("ServerApi_ServerDelete_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("ServerApi_ServerDelete_id: %v", id) + httpRes, err := apiClient.ServerApi.ServerDelete(context.Background(), id).Execute() - t.Log("ServerApi_ServerDelete_payload: ") - httpRes, err := apiClient.ServerApi.ServerDelete(context.Background(), id.(int32)).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test ServerApiService ServerGet", func(t *testing.T) { - var id interface{} + t.Skip("skip test") // remove to run test - id = os.Getenv("ServerApi_ServerGet_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("ServerApi_ServerGet_id: %v", id) + var id int32 + + resp, httpRes, err := apiClient.ServerApi.ServerGet(context.Background(), id).Execute() - t.Log("ServerApi_ServerGet_payload: ") - resp, httpRes, err := apiClient.ServerApi.ServerGet(context.Background(), id.(int32)).Execute() require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test ServerApiService ServerGetAccess", func(t *testing.T) { - var id interface{} + t.Skip("skip test") // remove to run test - id = os.Getenv("ServerApi_ServerGetAccess_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("ServerApi_ServerGetAccess_id: %v", id) + var id int32 + + resp, httpRes, err := apiClient.ServerApi.ServerGetAccess(context.Background(), id).Execute() - t.Log("ServerApi_ServerGetAccess_payload: ") - resp, httpRes, err := apiClient.ServerApi.ServerGetAccess(context.Background(), id.(int32)).Execute() require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test ServerApiService ServerQueryServers", func(t *testing.T) { - t.Log("ServerApi_ServerQueryServers_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.ServerApi.ServerQueryServers(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test ServerApiService ServerRemoveAccess", func(t *testing.T) { - t.Log("ServerApi_ServerRemoveAccess_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.ServerApi.ServerRemoveAccess(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test ServerApiService ServerUpdateServer", func(t *testing.T) { - t.Log("ServerApi_ServerUpdateServer_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.ServerApi.ServerUpdateServer(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) } diff --git a/v1/test/api_service_account_test.go b/v1/test/api_service_account_test.go new file mode 100644 index 0000000..62227df --- /dev/null +++ b/v1/test/api_service_account_test.go @@ -0,0 +1,127 @@ +/* +Keyfactor-v1 + +Testing ServiceAccountApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package keyfactor + +import ( + "context" + openapiclient "github.com/Keyfactor/keyfactor-go-client-sdk/v1/api/keyfactor" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_keyfactor_ServiceAccountApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test ServiceAccountApiService ServiceAccountCreateServiceAccount", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ServiceAccountApi.ServiceAccountCreateServiceAccount(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ServiceAccountApiService ServiceAccountDeleteServiceAccount", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + httpRes, err := apiClient.ServiceAccountApi.ServiceAccountDeleteServiceAccount(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ServiceAccountApiService ServiceAccountDeleteServiceAccounts", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.ServiceAccountApi.ServiceAccountDeleteServiceAccounts(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ServiceAccountApiService ServiceAccountGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ServiceAccountApi.ServiceAccountGet(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ServiceAccountApiService ServiceAccountGetServiceAccountKey", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ServiceAccountApi.ServiceAccountGetServiceAccountKey(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ServiceAccountApiService ServiceAccountQueryServiceAccounts", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ServiceAccountApi.ServiceAccountQueryServiceAccounts(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ServiceAccountApiService ServiceAccountRotateServiceAccountKey", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ServiceAccountApi.ServiceAccountRotateServiceAccountKey(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ServiceAccountApiService ServiceAccountUpdateServiceAccount", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ServiceAccountApi.ServiceAccountUpdateServiceAccount(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/v2/api/command/api_smtp_test.go b/v1/test/api_smtp_test.go similarity index 50% rename from v2/api/command/api_smtp_test.go rename to v1/test/api_smtp_test.go index 94d94db..a1b59ca 100644 --- a/v2/api/command/api_smtp_test.go +++ b/v1/test/api_smtp_test.go @@ -1,14 +1,4 @@ /* -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may -not use this file except in compliance with the License. You may obtain a -copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless -required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES -OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the -License. - Keyfactor-v1 Testing SMTPApiService @@ -17,53 +7,55 @@ Testing SMTPApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package command +package keyfactor import ( "context" - "os" - "testing" - + openapiclient "github.com/Keyfactor/keyfactor-go-client-sdk/v1/api/keyfactor" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + "testing" ) -func Test_command_SMTPApiService(t *testing.T) { +func Test_keyfactor_SMTPApiService(t *testing.T) { - cwd, _ := os.Getwd() - t.Logf("Working directory: %s", cwd) - config := GetEnvConfiguration() - - configuration, configErr := NewConfiguration(config) - require.Nil(t, configErr) - - apiClient := NewAPIClient(configuration) + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test SMTPApiService SMTPSMTP", func(t *testing.T) { - t.Log("SMTPApi_SMTPSMTP_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.SMTPApi.SMTPSMTP(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test SMTPApiService SMTPTestSMTP", func(t *testing.T) { - t.Log("SMTPApi_SMTPTestSMTP_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.SMTPApi.SMTPTestSMTP(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test SMTPApiService SMTPUpdateSMTP", func(t *testing.T) { - t.Log("SMTPApi_SMTPUpdateSMTP_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.SMTPApi.SMTPUpdateSMTP(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) } diff --git a/v2/api/command/api_ssl_test.go b/v1/test/api_ssl_test.go similarity index 56% rename from v2/api/command/api_ssl_test.go rename to v1/test/api_ssl_test.go index 15de035..b9c2886 100644 --- a/v2/api/command/api_ssl_test.go +++ b/v1/test/api_ssl_test.go @@ -1,14 +1,4 @@ /* -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may -not use this file except in compliance with the License. You may obtain a -copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless -required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES -OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the -License. - Keyfactor-v1 Testing SslApiService @@ -17,250 +7,267 @@ Testing SslApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package command +package keyfactor import ( "context" - "os" - "testing" - + openapiclient "github.com/Keyfactor/keyfactor-go-client-sdk/v1/api/keyfactor" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + "testing" ) -func Test_command_SslApiService(t *testing.T) { +func Test_keyfactor_SslApiService(t *testing.T) { - cwd, _ := os.Getwd() - t.Logf("Working directory: %s", cwd) - config := GetEnvConfiguration() - - configuration, configErr := NewConfiguration(config) - require.Nil(t, configErr) - - apiClient := NewAPIClient(configuration) + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test SslApiService SslAddNetworkRanges", func(t *testing.T) { - t.Log("SslApi_SslAddNetworkRanges_payload: ") + t.Skip("skip test") // remove to run test + httpRes, err := apiClient.SslApi.SslAddNetworkRanges(context.Background()).Execute() + require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test SslApiService SslCreateNetwork", func(t *testing.T) { - t.Log("SslApi_SslCreateNetwork_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.SslApi.SslCreateNetwork(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test SslApiService SslEndpoint", func(t *testing.T) { - var id interface{} + t.Skip("skip test") // remove to run test - id = os.Getenv("SslApi_SslEndpoint_id") - id, _ = convertParamInterface(id, "string") - t.Logf("SslApi_SslEndpoint_id: %v", id) + var id string + + resp, httpRes, err := apiClient.SslApi.SslEndpoint(context.Background(), id).Execute() - t.Log("SslApi_SslEndpoint_payload: ") - resp, httpRes, err := apiClient.SslApi.SslEndpoint(context.Background(), id.(string)).Execute() require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test SslApiService SslEndpointHistory", func(t *testing.T) { - var id interface{} + t.Skip("skip test") // remove to run test + + var id string - id = os.Getenv("SslApi_SslEndpointHistory_id") - id, _ = convertParamInterface(id, "string") - t.Logf("SslApi_SslEndpointHistory_id: %v", id) + resp, httpRes, err := apiClient.SslApi.SslEndpointHistory(context.Background(), id).Execute() - t.Log("SslApi_SslEndpointHistory_payload: ") - resp, httpRes, err := apiClient.SslApi.SslEndpointHistory(context.Background(), id.(string)).Execute() require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test SslApiService SslGetNetwork", func(t *testing.T) { - var identifier interface{} + t.Skip("skip test") // remove to run test + + var identifier string - identifier = os.Getenv("SslApi_SslGetNetwork_identifier") - identifier, _ = convertParamInterface(identifier, "string") - t.Logf("SslApi_SslGetNetwork_identifier: %v", identifier) + resp, httpRes, err := apiClient.SslApi.SslGetNetwork(context.Background(), identifier).Execute() - t.Log("SslApi_SslGetNetwork_payload: ") - resp, httpRes, err := apiClient.SslApi.SslGetNetwork(context.Background(), identifier.(string)).Execute() require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test SslApiService SslGetNetworkRangesForNetwork", func(t *testing.T) { - var id interface{} + t.Skip("skip test") // remove to run test + + var id string - id = os.Getenv("SslApi_SslGetNetworkRangesForNetwork_id") - id, _ = convertParamInterface(id, "string") - t.Logf("SslApi_SslGetNetworkRangesForNetwork_id: %v", id) + resp, httpRes, err := apiClient.SslApi.SslGetNetworkRangesForNetwork(context.Background(), id).Execute() - t.Log("SslApi_SslGetNetworkRangesForNetwork_payload: ") - resp, httpRes, err := apiClient.SslApi.SslGetNetworkRangesForNetwork(context.Background(), id.(string)).Execute() require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test SslApiService SslGetNetworks", func(t *testing.T) { - t.Log("SslApi_SslGetNetworks_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.SslApi.SslGetNetworks(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test SslApiService SslImmediateSslScan", func(t *testing.T) { - var id interface{} + t.Skip("skip test") // remove to run test + + var id string - id = os.Getenv("SslApi_SslImmediateSslScan_id") - id, _ = convertParamInterface(id, "string") - t.Logf("SslApi_SslImmediateSslScan_id: %v", id) + httpRes, err := apiClient.SslApi.SslImmediateSslScan(context.Background(), id).Execute() - t.Log("SslApi_SslImmediateSslScan_payload: ") - httpRes, err := apiClient.SslApi.SslImmediateSslScan(context.Background(), id.(string)).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test SslApiService SslMonitorAll", func(t *testing.T) { - t.Log("SslApi_SslMonitorAll_payload: ") + t.Skip("skip test") // remove to run test + httpRes, err := apiClient.SslApi.SslMonitorAll(context.Background()).Execute() + require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test SslApiService SslMonitoringStatus", func(t *testing.T) { - t.Log("SslApi_SslMonitoringStatus_payload: ") + t.Skip("skip test") // remove to run test + httpRes, err := apiClient.SslApi.SslMonitoringStatus(context.Background()).Execute() + require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test SslApiService SslNetworkScanParts", func(t *testing.T) { - var id interface{} + t.Skip("skip test") // remove to run test - id = os.Getenv("SslApi_SslNetworkScanParts_id") - id, _ = convertParamInterface(id, "string") - t.Logf("SslApi_SslNetworkScanParts_id: %v", id) + var id string + + resp, httpRes, err := apiClient.SslApi.SslNetworkScanParts(context.Background(), id).Execute() - t.Log("SslApi_SslNetworkScanParts_payload: ") - resp, httpRes, err := apiClient.SslApi.SslNetworkScanParts(context.Background(), id.(string)).Execute() require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test SslApiService SslRemoveAllNetworkRanges", func(t *testing.T) { - var id interface{} + t.Skip("skip test") // remove to run test - id = os.Getenv("SslApi_SslRemoveAllNetworkRanges_id") - id, _ = convertParamInterface(id, "string") - t.Logf("SslApi_SslRemoveAllNetworkRanges_id: %v", id) + var id string + + httpRes, err := apiClient.SslApi.SslRemoveAllNetworkRanges(context.Background(), id).Execute() - t.Log("SslApi_SslRemoveAllNetworkRanges_payload: ") - httpRes, err := apiClient.SslApi.SslRemoveAllNetworkRanges(context.Background(), id.(string)).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test SslApiService SslRemoveNetwork", func(t *testing.T) { - var id interface{} + t.Skip("skip test") // remove to run test + + var id string - id = os.Getenv("SslApi_SslRemoveNetwork_id") - id, _ = convertParamInterface(id, "string") - t.Logf("SslApi_SslRemoveNetwork_id: %v", id) + httpRes, err := apiClient.SslApi.SslRemoveNetwork(context.Background(), id).Execute() - t.Log("SslApi_SslRemoveNetwork_payload: ") - httpRes, err := apiClient.SslApi.SslRemoveNetwork(context.Background(), id.(string)).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test SslApiService SslResults", func(t *testing.T) { - t.Log("SslApi_SslResults_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.SslApi.SslResults(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test SslApiService SslReviewAll", func(t *testing.T) { - t.Log("SslApi_SslReviewAll_payload: ") + t.Skip("skip test") // remove to run test + httpRes, err := apiClient.SslApi.SslReviewAll(context.Background()).Execute() + require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test SslApiService SslReviewedStatus", func(t *testing.T) { - t.Log("SslApi_SslReviewedStatus_payload: ") + t.Skip("skip test") // remove to run test + httpRes, err := apiClient.SslApi.SslReviewedStatus(context.Background()).Execute() + require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test SslApiService SslScanPart", func(t *testing.T) { - var id interface{} + t.Skip("skip test") // remove to run test + + var id string - id = os.Getenv("SslApi_SslScanPart_id") - id, _ = convertParamInterface(id, "string") - t.Logf("SslApi_SslScanPart_id: %v", id) + resp, httpRes, err := apiClient.SslApi.SslScanPart(context.Background(), id).Execute() - t.Log("SslApi_SslScanPart_payload: ") - resp, httpRes, err := apiClient.SslApi.SslScanPart(context.Background(), id.(string)).Execute() require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test SslApiService SslSetNetworkRanges", func(t *testing.T) { - t.Log("SslApi_SslSetNetworkRanges_payload: ") + t.Skip("skip test") // remove to run test + httpRes, err := apiClient.SslApi.SslSetNetworkRanges(context.Background()).Execute() + require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test SslApiService SslUpdateNetwork", func(t *testing.T) { - t.Log("SslApi_SslUpdateNetwork_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.SslApi.SslUpdateNetwork(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test SslApiService SslValidateNetworkRanges", func(t *testing.T) { - t.Log("SslApi_SslValidateNetworkRanges_payload: ") + t.Skip("skip test") // remove to run test + httpRes, err := apiClient.SslApi.SslValidateNetworkRanges(context.Background()).Execute() + require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) + }) } diff --git a/v1/test/api_status_test.go b/v1/test/api_status_test.go new file mode 100644 index 0000000..e8adac0 --- /dev/null +++ b/v1/test/api_status_test.go @@ -0,0 +1,37 @@ +/* +Keyfactor-v1 + +Testing StatusApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package keyfactor + +import ( + "context" + openapiclient "github.com/Keyfactor/keyfactor-go-client-sdk/v1/api/keyfactor" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_keyfactor_StatusApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test StatusApiService StatusGetEndpoints", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.StatusApi.StatusGetEndpoints(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/v2/api/command/api_template_test.go b/v1/test/api_template_test.go similarity index 58% rename from v2/api/command/api_template_test.go rename to v1/test/api_template_test.go index 7065872..124d443 100644 --- a/v2/api/command/api_template_test.go +++ b/v1/test/api_template_test.go @@ -1,14 +1,4 @@ /* -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may -not use this file except in compliance with the License. You may obtain a -copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless -required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES -OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the -License. - Keyfactor-v1 Testing TemplateApiService @@ -17,94 +7,104 @@ Testing TemplateApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package command +package keyfactor import ( "context" - "os" - "testing" - + openapiclient "github.com/Keyfactor/keyfactor-go-client-sdk/v1/api/keyfactor" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + "testing" ) -func Test_command_TemplateApiService(t *testing.T) { +func Test_keyfactor_TemplateApiService(t *testing.T) { - cwd, _ := os.Getwd() - t.Logf("Working directory: %s", cwd) - config := GetEnvConfiguration() - - configuration, configErr := NewConfiguration(config) - require.Nil(t, configErr) - - apiClient := NewAPIClient(configuration) + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test TemplateApiService TemplateGetGlobalSettings", func(t *testing.T) { - t.Log("TemplateApi_TemplateGetGlobalSettings_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.TemplateApi.TemplateGetGlobalSettings(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test TemplateApiService TemplateGetTemplate", func(t *testing.T) { - var id interface{} + t.Skip("skip test") // remove to run test + + var id int32 - id = os.Getenv("TemplateApi_TemplateGetTemplate_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("TemplateApi_TemplateGetTemplate_id: %v", id) + resp, httpRes, err := apiClient.TemplateApi.TemplateGetTemplate(context.Background(), id).Execute() - t.Log("TemplateApi_TemplateGetTemplate_payload: ") - resp, httpRes, err := apiClient.TemplateApi.TemplateGetTemplate(context.Background(), id.(int32)).Execute() require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test TemplateApiService TemplateGetTemplates", func(t *testing.T) { - t.Log("TemplateApi_TemplateGetTemplates_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.TemplateApi.TemplateGetTemplates(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test TemplateApiService TemplateGetValidSubjectParts", func(t *testing.T) { - t.Log("TemplateApi_TemplateGetValidSubjectParts_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.TemplateApi.TemplateGetValidSubjectParts(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test TemplateApiService TemplateImport", func(t *testing.T) { - t.Log("TemplateApi_TemplateImport_payload: ") + t.Skip("skip test") // remove to run test + httpRes, err := apiClient.TemplateApi.TemplateImport(context.Background()).Execute() + require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test TemplateApiService TemplateUpdateGlobalSettings", func(t *testing.T) { - t.Log("TemplateApi_TemplateUpdateGlobalSettings_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.TemplateApi.TemplateUpdateGlobalSettings(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test TemplateApiService TemplateUpdateTemplate", func(t *testing.T) { - t.Log("TemplateApi_TemplateUpdateTemplate_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.TemplateApi.TemplateUpdateTemplate(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) } diff --git a/v2/api/command/api_user_test.go b/v1/test/api_user_test.go similarity index 52% rename from v2/api/command/api_user_test.go rename to v1/test/api_user_test.go index 9aa0058..8cc786b 100644 --- a/v2/api/command/api_user_test.go +++ b/v1/test/api_user_test.go @@ -1,14 +1,4 @@ /* -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may -not use this file except in compliance with the License. You may obtain a -copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless -required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES -OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the -License. - Keyfactor-v1 Testing UserApiService @@ -17,91 +7,94 @@ Testing UserApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package command +package keyfactor import ( "context" - "os" - "testing" - + openapiclient "github.com/Keyfactor/keyfactor-go-client-sdk/v1/api/keyfactor" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + "testing" ) -func Test_command_UserApiService(t *testing.T) { - - cwd, _ := os.Getwd() - t.Logf("Working directory: %s", cwd) - config := GetEnvConfiguration() - - configuration, configErr := NewConfiguration(config) - require.Nil(t, configErr) +func Test_keyfactor_UserApiService(t *testing.T) { - apiClient := NewAPIClient(configuration) + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test UserApiService UserCreateUser", func(t *testing.T) { - t.Log("UserApi_UserCreateUser_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.UserApi.UserCreateUser(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test UserApiService UserDeleteUser", func(t *testing.T) { - var id interface{} + t.Skip("skip test") // remove to run test - id = os.Getenv("UserApi_UserDeleteUser_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("UserApi_UserDeleteUser_id: %v", id) + var id int32 + + httpRes, err := apiClient.UserApi.UserDeleteUser(context.Background(), id).Execute() - t.Log("UserApi_UserDeleteUser_payload: ") - httpRes, err := apiClient.UserApi.UserDeleteUser(context.Background(), id.(int32)).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test UserApiService UserGetUser", func(t *testing.T) { - var id interface{} + t.Skip("skip test") // remove to run test - id = os.Getenv("UserApi_UserGetUser_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("UserApi_UserGetUser_id: %v", id) + var id int32 + + resp, httpRes, err := apiClient.UserApi.UserGetUser(context.Background(), id).Execute() - t.Log("UserApi_UserGetUser_payload: ") - resp, httpRes, err := apiClient.UserApi.UserGetUser(context.Background(), id.(int32)).Execute() require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test UserApiService UserQueryUsers", func(t *testing.T) { - t.Log("UserApi_UserQueryUsers_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.UserApi.UserQueryUsers(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test UserApiService UserUpdateUser", func(t *testing.T) { - t.Log("UserApi_UserUpdateUser_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.UserApi.UserUpdateUser(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test UserApiService UserUserAccess", func(t *testing.T) { - t.Log("UserApi_UserUserAccess_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.UserApi.UserUserAccess(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) } diff --git a/v1/test/api_workflow_definition_test.go b/v1/test/api_workflow_definition_test.go new file mode 100644 index 0000000..36e3ee0 --- /dev/null +++ b/v1/test/api_workflow_definition_test.go @@ -0,0 +1,156 @@ +/* +Keyfactor-v1 + +Testing WorkflowDefinitionApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package keyfactor + +import ( + "context" + openapiclient "github.com/Keyfactor/keyfactor-go-client-sdk/v1/api/keyfactor" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_keyfactor_WorkflowDefinitionApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test WorkflowDefinitionApiService WorkflowDefinitionConfigureDefinitionSteps", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var definitionId string + + resp, httpRes, err := apiClient.WorkflowDefinitionApi.WorkflowDefinitionConfigureDefinitionSteps(context.Background(), definitionId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test WorkflowDefinitionApiService WorkflowDefinitionCreateNewDefinition", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.WorkflowDefinitionApi.WorkflowDefinitionCreateNewDefinition(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test WorkflowDefinitionApiService WorkflowDefinitionDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var definitionId string + + httpRes, err := apiClient.WorkflowDefinitionApi.WorkflowDefinitionDelete(context.Background(), definitionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test WorkflowDefinitionApiService WorkflowDefinitionGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var definitionId string + + resp, httpRes, err := apiClient.WorkflowDefinitionApi.WorkflowDefinitionGet(context.Background(), definitionId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test WorkflowDefinitionApiService WorkflowDefinitionGetStepSchema", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var extensionName string + + resp, httpRes, err := apiClient.WorkflowDefinitionApi.WorkflowDefinitionGetStepSchema(context.Background(), extensionName).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test WorkflowDefinitionApiService WorkflowDefinitionPublishDefinition", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var definitionId string + + resp, httpRes, err := apiClient.WorkflowDefinitionApi.WorkflowDefinitionPublishDefinition(context.Background(), definitionId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test WorkflowDefinitionApiService WorkflowDefinitionQuery", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.WorkflowDefinitionApi.WorkflowDefinitionQuery(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test WorkflowDefinitionApiService WorkflowDefinitionQueryAvailableSteps", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.WorkflowDefinitionApi.WorkflowDefinitionQueryAvailableSteps(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test WorkflowDefinitionApiService WorkflowDefinitionQueryWorkflowTypes", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.WorkflowDefinitionApi.WorkflowDefinitionQueryWorkflowTypes(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test WorkflowDefinitionApiService WorkflowDefinitionUpdateExistingDefinition", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var definitionId string + + resp, httpRes, err := apiClient.WorkflowDefinitionApi.WorkflowDefinitionUpdateExistingDefinition(context.Background(), definitionId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/v1/test/api_workflow_instance_test.go b/v1/test/api_workflow_instance_test.go new file mode 100644 index 0000000..0a41397 --- /dev/null +++ b/v1/test/api_workflow_instance_test.go @@ -0,0 +1,127 @@ +/* +Keyfactor-v1 + +Testing WorkflowInstanceApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package keyfactor + +import ( + "context" + openapiclient "github.com/Keyfactor/keyfactor-go-client-sdk/v1/api/keyfactor" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_keyfactor_WorkflowInstanceApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test WorkflowInstanceApiService WorkflowInstanceDeleteInstance", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var instanceId string + + httpRes, err := apiClient.WorkflowInstanceApi.WorkflowInstanceDeleteInstance(context.Background(), instanceId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test WorkflowInstanceApiService WorkflowInstanceGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var instanceId string + + resp, httpRes, err := apiClient.WorkflowInstanceApi.WorkflowInstanceGet(context.Background(), instanceId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test WorkflowInstanceApiService WorkflowInstanceQuery", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.WorkflowInstanceApi.WorkflowInstanceQuery(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test WorkflowInstanceApiService WorkflowInstanceQueryInstancesAssignedToMe", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.WorkflowInstanceApi.WorkflowInstanceQueryInstancesAssignedToMe(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test WorkflowInstanceApiService WorkflowInstanceQueryInstancesStartedByMe", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.WorkflowInstanceApi.WorkflowInstanceQueryInstancesStartedByMe(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test WorkflowInstanceApiService WorkflowInstanceRestart", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var instanceId string + + httpRes, err := apiClient.WorkflowInstanceApi.WorkflowInstanceRestart(context.Background(), instanceId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test WorkflowInstanceApiService WorkflowInstanceSignal", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var instanceId string + + httpRes, err := apiClient.WorkflowInstanceApi.WorkflowInstanceSignal(context.Background(), instanceId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test WorkflowInstanceApiService WorkflowInstanceStop", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var instanceId string + + httpRes, err := apiClient.WorkflowInstanceApi.WorkflowInstanceStop(context.Background(), instanceId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/v2/api/command/api_workflow_test.go b/v1/test/api_workflow_test.go similarity index 52% rename from v2/api/command/api_workflow_test.go rename to v1/test/api_workflow_test.go index 53a7ddd..16f7498 100644 --- a/v2/api/command/api_workflow_test.go +++ b/v1/test/api_workflow_test.go @@ -1,14 +1,4 @@ /* -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may -not use this file except in compliance with the License. You may obtain a -copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless -required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES -OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the -License. - Keyfactor-v1 Testing WorkflowApiService @@ -17,77 +7,81 @@ Testing WorkflowApiService // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package command +package keyfactor import ( "context" - "os" - "testing" - + openapiclient "github.com/Keyfactor/keyfactor-go-client-sdk/v1/api/keyfactor" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + "testing" ) -func Test_command_WorkflowApiService(t *testing.T) { - - cwd, _ := os.Getwd() - t.Logf("Working directory: %s", cwd) - config := GetEnvConfiguration() +func Test_keyfactor_WorkflowApiService(t *testing.T) { - configuration, configErr := NewConfiguration(config) - require.Nil(t, configErr) - - apiClient := NewAPIClient(configuration) + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) t.Run("Test WorkflowApiService WorkflowApprovePendingRequests", func(t *testing.T) { - t.Log("WorkflowApi_WorkflowApprovePendingRequests_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.WorkflowApi.WorkflowApprovePendingRequests(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test WorkflowApiService WorkflowDenyPendingRequests", func(t *testing.T) { - t.Log("WorkflowApi_WorkflowDenyPendingRequests_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.WorkflowApi.WorkflowDenyPendingRequests(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test WorkflowApiService WorkflowGet", func(t *testing.T) { - t.Log("WorkflowApi_WorkflowGet_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.WorkflowApi.WorkflowGet(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test WorkflowApiService WorkflowGetCertificateRequestDetails", func(t *testing.T) { - var id interface{} + t.Skip("skip test") // remove to run test - id = os.Getenv("WorkflowApi_WorkflowGetCertificateRequestDetails_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("WorkflowApi_WorkflowGetCertificateRequestDetails_id: %v", id) + var id int32 + + resp, httpRes, err := apiClient.WorkflowApi.WorkflowGetCertificateRequestDetails(context.Background(), id).Execute() - t.Log("WorkflowApi_WorkflowGetCertificateRequestDetails_payload: ") - resp, httpRes, err := apiClient.WorkflowApi.WorkflowGetCertificateRequestDetails(context.Background(), id.(int32)).Execute() require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) t.Run("Test WorkflowApiService WorkflowGetDenied", func(t *testing.T) { - t.Log("WorkflowApi_WorkflowGetDenied_payload: ") + t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.WorkflowApi.WorkflowGetDenied(context.Background()).Execute() + require.Nil(t, err) require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) + }) } diff --git a/v10/go.mod b/v10/go.mod index 832820c..e5218e0 100644 --- a/v10/go.mod +++ b/v10/go.mod @@ -1,4 +1,4 @@ -module github.com/Keyfactor/keyfactor-go-client-sdk +module github.com/Keyfactor/keyfactor-go-client-sdk/v10 go 1.20 diff --git a/v2/api/command/api_agent_blueprint_test.go b/v2/api/command/api_agent_blueprint_test.go deleted file mode 100644 index f2df685..0000000 --- a/v2/api/command/api_agent_blueprint_test.go +++ /dev/null @@ -1,127 +0,0 @@ -/* -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may -not use this file except in compliance with the License. You may obtain a -copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless -required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES -OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the -License. - -Keyfactor-v1 - -Testing AgentBlueprintApiService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package command - -import ( - "context" - "os" - "testing" - - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func Test_command_AgentBlueprintApiService(t *testing.T) { - - cwd, _ := os.Getwd() - t.Logf("Working directory: %s", cwd) - config := GetEnvConfiguration() - - configuration, configErr := NewConfiguration(config) - require.Nil(t, configErr) - - apiClient := NewAPIClient(configuration) - - t.Run("Test AgentBlueprintApiService AgentBlueprintApplyBlueprint", func(t *testing.T) { - - t.Log("AgentBlueprintApi_AgentBlueprintApplyBlueprint_payload: ") - httpRes, err := apiClient.AgentBlueprintApi.AgentBlueprintApplyBlueprint(context.Background()).Execute() - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test AgentBlueprintApiService AgentBlueprintDeleteBlueprint", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("AgentBlueprintApi_AgentBlueprintDeleteBlueprint_id") - id, _ = convertParamInterface(id, "string") - t.Logf("AgentBlueprintApi_AgentBlueprintDeleteBlueprint_id: %v", id) - - t.Log("AgentBlueprintApi_AgentBlueprintDeleteBlueprint_payload: ") - httpRes, err := apiClient.AgentBlueprintApi.AgentBlueprintDeleteBlueprint(context.Background(), id.(string)).Execute() - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test AgentBlueprintApiService AgentBlueprintGenerateBlueprint", func(t *testing.T) { - - t.Log("AgentBlueprintApi_AgentBlueprintGenerateBlueprint_payload: ") - resp, httpRes, err := apiClient.AgentBlueprintApi.AgentBlueprintGenerateBlueprint(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test AgentBlueprintApiService AgentBlueprintGetAgentBlueprint", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("AgentBlueprintApi_AgentBlueprintGetAgentBlueprint_id") - id, _ = convertParamInterface(id, "string") - t.Logf("AgentBlueprintApi_AgentBlueprintGetAgentBlueprint_id: %v", id) - - t.Log("AgentBlueprintApi_AgentBlueprintGetAgentBlueprint_payload: ") - resp, httpRes, err := apiClient.AgentBlueprintApi.AgentBlueprintGetAgentBlueprint(context.Background(), id.(string)).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test AgentBlueprintApiService AgentBlueprintGetAgentBlueprints", func(t *testing.T) { - - t.Log("AgentBlueprintApi_AgentBlueprintGetAgentBlueprints_payload: ") - resp, httpRes, err := apiClient.AgentBlueprintApi.AgentBlueprintGetAgentBlueprints(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test AgentBlueprintApiService AgentBlueprintGetBlueprintJobs", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("AgentBlueprintApi_AgentBlueprintGetBlueprintJobs_id") - id, _ = convertParamInterface(id, "string") - t.Logf("AgentBlueprintApi_AgentBlueprintGetBlueprintJobs_id: %v", id) - - t.Log("AgentBlueprintApi_AgentBlueprintGetBlueprintJobs_payload: ") - resp, httpRes, err := apiClient.AgentBlueprintApi.AgentBlueprintGetBlueprintJobs(context.Background(), id.(string)).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test AgentBlueprintApiService AgentBlueprintGetBlueprintStores", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("AgentBlueprintApi_AgentBlueprintGetBlueprintStores_id") - id, _ = convertParamInterface(id, "string") - t.Logf("AgentBlueprintApi_AgentBlueprintGetBlueprintStores_id: %v", id) - - t.Log("AgentBlueprintApi_AgentBlueprintGetBlueprintStores_payload: ") - resp, httpRes, err := apiClient.AgentBlueprintApi.AgentBlueprintGetBlueprintStores(context.Background(), id.(string)).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - -} diff --git a/v2/api/command/api_agent_test.go b/v2/api/command/api_agent_test.go deleted file mode 100644 index dae896b..0000000 --- a/v2/api/command/api_agent_test.go +++ /dev/null @@ -1,127 +0,0 @@ -/* -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may -not use this file except in compliance with the License. You may obtain a -copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless -required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES -OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the -License. - -Keyfactor-v1 - -Testing AgentApiService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package command - -import ( - "context" - "os" - "testing" - - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func Test_command_AgentApiService(t *testing.T) { - - cwd, _ := os.Getwd() - t.Logf("Working directory: %s", cwd) - config := GetEnvConfiguration() - - configuration, configErr := NewConfiguration(config) - require.Nil(t, configErr) - - apiClient := NewAPIClient(configuration) - - t.Run("Test AgentApiService AgentApprove", func(t *testing.T) { - - t.Log("AgentApi_AgentApprove_payload: ") - httpRes, err := apiClient.AgentApi.AgentApprove(context.Background()).Execute() - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test AgentApiService AgentDisapprove", func(t *testing.T) { - - t.Log("AgentApi_AgentDisapprove_payload: ") - httpRes, err := apiClient.AgentApi.AgentDisapprove(context.Background()).Execute() - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test AgentApiService AgentFetchLogs", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("AgentApi_AgentFetchLogs_id") - id, _ = convertParamInterface(id, "string") - t.Logf("AgentApi_AgentFetchLogs_id: %v", id) - - t.Log("AgentApi_AgentFetchLogs_payload: ") - httpRes, err := apiClient.AgentApi.AgentFetchLogs(context.Background(), id.(string)).Execute() - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test AgentApiService AgentGetAgentDetail", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("AgentApi_AgentGetAgentDetail_id") - id, _ = convertParamInterface(id, "string") - t.Logf("AgentApi_AgentGetAgentDetail_id: %v", id) - - t.Log("AgentApi_AgentGetAgentDetail_payload: ") - resp, httpRes, err := apiClient.AgentApi.AgentGetAgentDetail(context.Background(), id.(string)).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test AgentApiService AgentGetAgents", func(t *testing.T) { - - t.Log("AgentApi_AgentGetAgents_payload: ") - resp, httpRes, err := apiClient.AgentApi.AgentGetAgents(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test AgentApiService AgentReset", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("AgentApi_AgentReset_id") - id, _ = convertParamInterface(id, "string") - t.Logf("AgentApi_AgentReset_id: %v", id) - - t.Log("AgentApi_AgentReset_payload: ") - httpRes, err := apiClient.AgentApi.AgentReset(context.Background(), id.(string)).Execute() - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test AgentApiService AgentSetAuthCertificateReenrollment", func(t *testing.T) { - - t.Log("AgentApi_AgentSetAuthCertificateReenrollment_payload: ") - resp, httpRes, err := apiClient.AgentApi.AgentSetAuthCertificateReenrollment(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test AgentApiService AgentsReset", func(t *testing.T) { - - t.Log("AgentApi_AgentsReset_payload: ") - httpRes, err := apiClient.AgentApi.AgentsReset(context.Background()).Execute() - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - }) - -} diff --git a/v2/api/command/api_audit_log_test.go b/v2/api/command/api_audit_log_test.go deleted file mode 100644 index e9e92c8..0000000 --- a/v2/api/command/api_audit_log_test.go +++ /dev/null @@ -1,99 +0,0 @@ -/* -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may -not use this file except in compliance with the License. You may obtain a -copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless -required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES -OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the -License. - -Keyfactor-v1 - -Testing AuditLogApiService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package command - -import ( - "context" - "os" - "testing" - - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func Test_command_AuditLogApiService(t *testing.T) { - - cwd, _ := os.Getwd() - t.Logf("Working directory: %s", cwd) - config := GetEnvConfiguration() - - configuration, configErr := NewConfiguration(config) - require.Nil(t, configErr) - - apiClient := NewAPIClient(configuration) - - t.Run("Test AuditLogApiService AuditLogDownloadCSV", func(t *testing.T) { - - t.Log("AuditLogApi_AuditLogDownloadCSV_payload: ") - resp, httpRes, err := apiClient.AuditLogApi.AuditLogDownloadCSV(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test AuditLogApiService AuditLogGetAuditLog", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("AuditLogApi_AuditLogGetAuditLog_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("AuditLogApi_AuditLogGetAuditLog_id: %v", id) - - t.Log("AuditLogApi_AuditLogGetAuditLog_payload: ") - resp, httpRes, err := apiClient.AuditLogApi.AuditLogGetAuditLog(context.Background(), id.(int32)).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test AuditLogApiService AuditLogGetAuditLogs", func(t *testing.T) { - - t.Log("AuditLogApi_AuditLogGetAuditLogs_payload: ") - resp, httpRes, err := apiClient.AuditLogApi.AuditLogGetAuditLogs(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test AuditLogApiService AuditLogGetRelatedEntities", func(t *testing.T) { - - t.Log("AuditLogApi_AuditLogGetRelatedEntities_payload: ") - resp, httpRes, err := apiClient.AuditLogApi.AuditLogGetRelatedEntities(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test AuditLogApiService AuditLogValidateAuditLog", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("AuditLogApi_AuditLogValidateAuditLog_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("AuditLogApi_AuditLogValidateAuditLog_id: %v", id) - - t.Log("AuditLogApi_AuditLogValidateAuditLog_payload: ") - resp, httpRes, err := apiClient.AuditLogApi.AuditLogValidateAuditLog(context.Background(), id.(int32)).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - -} diff --git a/v2/api/command/api_certificate_collection_test.go b/v2/api/command/api_certificate_collection_test.go deleted file mode 100644 index 4de431f..0000000 --- a/v2/api/command/api_certificate_collection_test.go +++ /dev/null @@ -1,122 +0,0 @@ -/* -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may -not use this file except in compliance with the License. You may obtain a -copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless -required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES -OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the -License. - -Keyfactor-v1 - -Testing CertificateCollectionApiService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package command - -import ( - "context" - "os" - "testing" - - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func Test_command_CertificateCollectionApiService(t *testing.T) { - - cwd, _ := os.Getwd() - t.Logf("Working directory: %s", cwd) - config := GetEnvConfiguration() - - configuration, configErr := NewConfiguration(config) - require.Nil(t, configErr) - - apiClient := NewAPIClient(configuration) - - t.Run("Test CertificateCollectionApiService CertificateCollectionCopyFromExistingCollection", func(t *testing.T) { - - t.Log("CertificateCollectionApi_CertificateCollectionCopyFromExistingCollection_payload: ") - resp, httpRes, err := apiClient.CertificateCollectionApi.CertificateCollectionCopyFromExistingCollection(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test CertificateCollectionApiService CertificateCollectionCreateCollection", func(t *testing.T) { - - t.Log("CertificateCollectionApi_CertificateCollectionCreateCollection_payload: ") - resp, httpRes, err := apiClient.CertificateCollectionApi.CertificateCollectionCreateCollection(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test CertificateCollectionApiService CertificateCollectionGetCollection0", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("CertificateCollectionApi_CertificateCollectionGetCollection0_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("CertificateCollectionApi_CertificateCollectionGetCollection0_id: %v", id) - - t.Log("CertificateCollectionApi_CertificateCollectionGetCollection0_payload: ") - resp, httpRes, err := apiClient.CertificateCollectionApi.CertificateCollectionGetCollection0(context.Background(), id.(int32)).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test CertificateCollectionApiService CertificateCollectionGetCollection1", func(t *testing.T) { - - var name interface{} - - name = os.Getenv("CertificateCollectionApi_CertificateCollectionGetCollection1_name") - name, _ = convertParamInterface(name, "string") - t.Logf("CertificateCollectionApi_CertificateCollectionGetCollection1_name: %v", name) - - t.Log("CertificateCollectionApi_CertificateCollectionGetCollection1_payload: ") - resp, httpRes, err := apiClient.CertificateCollectionApi.CertificateCollectionGetCollection1(context.Background(), name.(string)).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test CertificateCollectionApiService CertificateCollectionGetCollections", func(t *testing.T) { - - t.Log("CertificateCollectionApi_CertificateCollectionGetCollections_payload: ") - resp, httpRes, err := apiClient.CertificateCollectionApi.CertificateCollectionGetCollections(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test CertificateCollectionApiService CertificateCollectionSetCollectionPermissions", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("CertificateCollectionApi_CertificateCollectionSetCollectionPermissions_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("CertificateCollectionApi_CertificateCollectionSetCollectionPermissions_id: %v", id) - - t.Log("CertificateCollectionApi_CertificateCollectionSetCollectionPermissions_payload: ") - httpRes, err := apiClient.CertificateCollectionApi.CertificateCollectionSetCollectionPermissions(context.Background(), id.(int32)).Execute() - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test CertificateCollectionApiService CertificateCollectionUpdateCollection", func(t *testing.T) { - - t.Log("CertificateCollectionApi_CertificateCollectionUpdateCollection_payload: ") - resp, httpRes, err := apiClient.CertificateCollectionApi.CertificateCollectionUpdateCollection(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - -} diff --git a/v2/api/command/api_certificate_store_container_test.go b/v2/api/command/api_certificate_store_container_test.go deleted file mode 100644 index 5e058e2..0000000 --- a/v2/api/command/api_certificate_store_container_test.go +++ /dev/null @@ -1,65 +0,0 @@ -/* -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may -not use this file except in compliance with the License. You may obtain a -copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless -required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES -OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the -License. - -Keyfactor-v1 - -Testing CertificateStoreContainerApiService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package command - -import ( - "context" - "os" - "testing" - - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func Test_command_CertificateStoreContainerApiService(t *testing.T) { - - cwd, _ := os.Getwd() - t.Logf("Working directory: %s", cwd) - config := GetEnvConfiguration() - - configuration, configErr := NewConfiguration(config) - require.Nil(t, configErr) - - apiClient := NewAPIClient(configuration) - - t.Run("Test CertificateStoreContainerApiService CertificateStoreContainerDeleteCertificateStoreContainers", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("CertificateStoreContainerApi_CertificateStoreContainerDeleteCertificateStoreContainers_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("CertificateStoreContainerApi_CertificateStoreContainerDeleteCertificateStoreContainers_id: %v", id) - - t.Log("CertificateStoreContainerApi_CertificateStoreContainerDeleteCertificateStoreContainers_payload: ") - httpRes, err := apiClient.CertificateStoreContainerApi.CertificateStoreContainerDeleteCertificateStoreContainers(context.Background(), id.(int32)).Execute() - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test CertificateStoreContainerApiService CertificateStoreContainerGetAllCertificateStoreContainers", func(t *testing.T) { - - t.Log("CertificateStoreContainerApi_CertificateStoreContainerGetAllCertificateStoreContainers_payload: ") - resp, httpRes, err := apiClient.CertificateStoreContainerApi.CertificateStoreContainerGetAllCertificateStoreContainers(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - -} diff --git a/v2/api/command/api_certificate_store_test.go b/v2/api/command/api_certificate_store_test.go deleted file mode 100644 index 8356d60..0000000 --- a/v2/api/command/api_certificate_store_test.go +++ /dev/null @@ -1,197 +0,0 @@ -/* -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may -not use this file except in compliance with the License. You may obtain a -copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless -required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES -OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the -License. - -Keyfactor-v1 - -Testing CertificateStoreApiService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package command - -import ( - "context" - "os" - "testing" - - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func Test_command_CertificateStoreApiService(t *testing.T) { - - cwd, _ := os.Getwd() - t.Logf("Working directory: %s", cwd) - config := GetEnvConfiguration() - - configuration, configErr := NewConfiguration(config) - require.Nil(t, configErr) - - apiClient := NewAPIClient(configuration) - - t.Run("Test CertificateStoreApiService CertificateStoreAddCertificate", func(t *testing.T) { - - t.Log("CertificateStoreApi_CertificateStoreAddCertificate_payload: ") - resp, httpRes, err := apiClient.CertificateStoreApi.CertificateStoreAddCertificate(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test CertificateStoreApiService CertificateStoreApprovePending", func(t *testing.T) { - - t.Log("CertificateStoreApi_CertificateStoreApprovePending_payload: ") - httpRes, err := apiClient.CertificateStoreApi.CertificateStoreApprovePending(context.Background()).Execute() - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test CertificateStoreApiService CertificateStoreConfigureDiscoveryJob", func(t *testing.T) { - - t.Log("CertificateStoreApi_CertificateStoreConfigureDiscoveryJob_payload: ") - httpRes, err := apiClient.CertificateStoreApi.CertificateStoreConfigureDiscoveryJob(context.Background()).Execute() - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test CertificateStoreApiService CertificateStoreCreateCertificateStore", func(t *testing.T) { - - t.Log("CertificateStoreApi_CertificateStoreCreateCertificateStore_payload: ") - resp, httpRes, err := apiClient.CertificateStoreApi.CertificateStoreCreateCertificateStore(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test CertificateStoreApiService CertificateStoreCreateCertificateStoreServer", func(t *testing.T) { - - t.Log("CertificateStoreApi_CertificateStoreCreateCertificateStoreServer_payload: ") - resp, httpRes, err := apiClient.CertificateStoreApi.CertificateStoreCreateCertificateStoreServer(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test CertificateStoreApiService CertificateStoreDeleteCertificateStore", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("CertificateStoreApi_CertificateStoreDeleteCertificateStore_id") - id, _ = convertParamInterface(id, "string") - t.Logf("CertificateStoreApi_CertificateStoreDeleteCertificateStore_id: %v", id) - - t.Log("CertificateStoreApi_CertificateStoreDeleteCertificateStore_payload: ") - httpRes, err := apiClient.CertificateStoreApi.CertificateStoreDeleteCertificateStore(context.Background(), id.(string)).Execute() - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test CertificateStoreApiService CertificateStoreDeleteCertificateStores", func(t *testing.T) { - - t.Log("CertificateStoreApi_CertificateStoreDeleteCertificateStores_payload: ") - httpRes, err := apiClient.CertificateStoreApi.CertificateStoreDeleteCertificateStores(context.Background()).Execute() - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test CertificateStoreApiService CertificateStoreGetCertificateStore", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("CertificateStoreApi_CertificateStoreGetCertificateStore_id") - id, _ = convertParamInterface(id, "string") - t.Logf("CertificateStoreApi_CertificateStoreGetCertificateStore_id: %v", id) - - t.Log("CertificateStoreApi_CertificateStoreGetCertificateStore_payload: ") - resp, httpRes, err := apiClient.CertificateStoreApi.CertificateStoreGetCertificateStore(context.Background(), id.(string)).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test CertificateStoreApiService CertificateStoreGetCertificateStoreInventory", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("CertificateStoreApi_CertificateStoreGetCertificateStoreInventory_id") - id, _ = convertParamInterface(id, "string") - t.Logf("CertificateStoreApi_CertificateStoreGetCertificateStoreInventory_id: %v", id) - - t.Log("CertificateStoreApi_CertificateStoreGetCertificateStoreInventory_payload: ") - resp, httpRes, err := apiClient.CertificateStoreApi.CertificateStoreGetCertificateStoreInventory(context.Background(), id.(string)).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test CertificateStoreApiService CertificateStoreQueryCertificateStores", func(t *testing.T) { - - t.Log("CertificateStoreApi_CertificateStoreQueryCertificateStores_payload: ") - resp, httpRes, err := apiClient.CertificateStoreApi.CertificateStoreQueryCertificateStores(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test CertificateStoreApiService CertificateStoreRemoveCertificate", func(t *testing.T) { - - t.Log("CertificateStoreApi_CertificateStoreRemoveCertificate_payload: ") - resp, httpRes, err := apiClient.CertificateStoreApi.CertificateStoreRemoveCertificate(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test CertificateStoreApiService CertificateStoreSchedule", func(t *testing.T) { - - t.Log("CertificateStoreApi_CertificateStoreSchedule_payload: ") - httpRes, err := apiClient.CertificateStoreApi.CertificateStoreSchedule(context.Background()).Execute() - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test CertificateStoreApiService CertificateStoreScheduleForReenrollment", func(t *testing.T) { - - t.Log("CertificateStoreApi_CertificateStoreScheduleForReenrollment_payload: ") - httpRes, err := apiClient.CertificateStoreApi.CertificateStoreScheduleForReenrollment(context.Background()).Execute() - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test CertificateStoreApiService CertificateStoreSetPassword", func(t *testing.T) { - - t.Log("CertificateStoreApi_CertificateStoreSetPassword_payload: ") - httpRes, err := apiClient.CertificateStoreApi.CertificateStoreSetPassword(context.Background()).Execute() - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test CertificateStoreApiService CertificateStoreUpdateCertStore", func(t *testing.T) { - - t.Log("CertificateStoreApi_CertificateStoreUpdateCertStore_payload: ") - resp, httpRes, err := apiClient.CertificateStoreApi.CertificateStoreUpdateCertStore(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test CertificateStoreApiService CertificateStoreUpdateCertificateStoreServer", func(t *testing.T) { - - t.Log("CertificateStoreApi_CertificateStoreUpdateCertificateStoreServer_payload: ") - resp, httpRes, err := apiClient.CertificateStoreApi.CertificateStoreUpdateCertificateStoreServer(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - -} diff --git a/v2/api/command/api_certificate_store_type_test.go b/v2/api/command/api_certificate_store_type_test.go deleted file mode 100644 index 759f0b3..0000000 --- a/v2/api/command/api_certificate_store_type_test.go +++ /dev/null @@ -1,121 +0,0 @@ -/* -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may -not use this file except in compliance with the License. You may obtain a -copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless -required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES -OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the -License. - -Keyfactor-v1 - -Testing CertificateStoreTypeApiService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package command - -import ( - "context" - "os" - "testing" - - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func Test_command_CertificateStoreTypeApiService(t *testing.T) { - - cwd, _ := os.Getwd() - t.Logf("Working directory: %s", cwd) - config := GetEnvConfiguration() - - configuration, configErr := NewConfiguration(config) - require.Nil(t, configErr) - - apiClient := NewAPIClient(configuration) - - t.Run("Test CertificateStoreTypeApiService CertificateStoreTypeCreateCertificateStoreType", func(t *testing.T) { - - t.Log("CertificateStoreTypeApi_CertificateStoreTypeCreateCertificateStoreType_payload: ") - resp, httpRes, err := apiClient.CertificateStoreTypeApi.CertificateStoreTypeCreateCertificateStoreType(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test CertificateStoreTypeApiService CertificateStoreTypeDeleteCertificateStoreType", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("CertificateStoreTypeApi_CertificateStoreTypeDeleteCertificateStoreType_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("CertificateStoreTypeApi_CertificateStoreTypeDeleteCertificateStoreType_id: %v", id) - - t.Log("CertificateStoreTypeApi_CertificateStoreTypeDeleteCertificateStoreType_payload: ") - httpRes, err := apiClient.CertificateStoreTypeApi.CertificateStoreTypeDeleteCertificateStoreType(context.Background(), id.(int32)).Execute() - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test CertificateStoreTypeApiService CertificateStoreTypeDeleteCertificateStoreTypes", func(t *testing.T) { - - t.Log("CertificateStoreTypeApi_CertificateStoreTypeDeleteCertificateStoreTypes_payload: ") - httpRes, err := apiClient.CertificateStoreTypeApi.CertificateStoreTypeDeleteCertificateStoreTypes(context.Background()).Execute() - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test CertificateStoreTypeApiService CertificateStoreTypeGetCertificateStoreType0", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("CertificateStoreTypeApi_CertificateStoreTypeGetCertificateStoreType0_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("CertificateStoreTypeApi_CertificateStoreTypeGetCertificateStoreType0_id: %v", id) - - t.Log("CertificateStoreTypeApi_CertificateStoreTypeGetCertificateStoreType0_payload: ") - resp, httpRes, err := apiClient.CertificateStoreTypeApi.CertificateStoreTypeGetCertificateStoreType0(context.Background(), id.(int32)).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test CertificateStoreTypeApiService CertificateStoreTypeGetCertificateStoreType1", func(t *testing.T) { - - var name interface{} - - name = os.Getenv("CertificateStoreTypeApi_CertificateStoreTypeGetCertificateStoreType1_name") - name, _ = convertParamInterface(name, "string") - t.Logf("CertificateStoreTypeApi_CertificateStoreTypeGetCertificateStoreType1_name: %v", name) - - t.Log("CertificateStoreTypeApi_CertificateStoreTypeGetCertificateStoreType1_payload: ") - resp, httpRes, err := apiClient.CertificateStoreTypeApi.CertificateStoreTypeGetCertificateStoreType1(context.Background(), name.(string)).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test CertificateStoreTypeApiService CertificateStoreTypeGetTypes", func(t *testing.T) { - - t.Log("CertificateStoreTypeApi_CertificateStoreTypeGetTypes_payload: ") - resp, httpRes, err := apiClient.CertificateStoreTypeApi.CertificateStoreTypeGetTypes(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test CertificateStoreTypeApiService CertificateStoreTypeUpdateCertificateStoreType", func(t *testing.T) { - - t.Log("CertificateStoreTypeApi_CertificateStoreTypeUpdateCertificateStoreType_payload: ") - resp, httpRes, err := apiClient.CertificateStoreTypeApi.CertificateStoreTypeUpdateCertificateStoreType(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - -} diff --git a/v2/api/command/api_csr_generation_test.go b/v2/api/command/api_csr_generation_test.go deleted file mode 100644 index 283b4b4..0000000 --- a/v2/api/command/api_csr_generation_test.go +++ /dev/null @@ -1,97 +0,0 @@ -/* -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may -not use this file except in compliance with the License. You may obtain a -copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless -required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES -OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the -License. - -Keyfactor-v1 - -Testing CSRGenerationApiService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package command - -import ( - "context" - "os" - "testing" - - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func Test_command_CSRGenerationApiService(t *testing.T) { - - cwd, _ := os.Getwd() - t.Logf("Working directory: %s", cwd) - config := GetEnvConfiguration() - - configuration, configErr := NewConfiguration(config) - require.Nil(t, configErr) - - apiClient := NewAPIClient(configuration) - - t.Run("Test CSRGenerationApiService CSRGenerationDeleteCSR", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("CSRGenerationApi_CSRGenerationDeleteCSR_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("CSRGenerationApi_CSRGenerationDeleteCSR_id: %v", id) - - t.Log("CSRGenerationApi_CSRGenerationDeleteCSR_payload: ") - httpRes, err := apiClient.CSRGenerationApi.CSRGenerationDeleteCSR(context.Background(), id.(int32)).Execute() - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test CSRGenerationApiService CSRGenerationDeleteCSRs", func(t *testing.T) { - - t.Log("CSRGenerationApi_CSRGenerationDeleteCSRs_payload: ") - httpRes, err := apiClient.CSRGenerationApi.CSRGenerationDeleteCSRs(context.Background()).Execute() - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test CSRGenerationApiService CSRGenerationDownload", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("CSRGenerationApi_CSRGenerationDownload_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("CSRGenerationApi_CSRGenerationDownload_id: %v", id) - - t.Log("CSRGenerationApi_CSRGenerationDownload_payload: ") - resp, httpRes, err := apiClient.CSRGenerationApi.CSRGenerationDownload(context.Background(), id.(int32)).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test CSRGenerationApiService CSRGenerationGetPendingCSRs", func(t *testing.T) { - - t.Log("CSRGenerationApi_CSRGenerationGetPendingCSRs_payload: ") - resp, httpRes, err := apiClient.CSRGenerationApi.CSRGenerationGetPendingCSRs(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test CSRGenerationApiService CSRGenerationPostGenerate", func(t *testing.T) { - - t.Log("CSRGenerationApi_CSRGenerationPostGenerate_payload: ") - resp, httpRes, err := apiClient.CSRGenerationApi.CSRGenerationPostGenerate(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - -} diff --git a/v2/api/command/api_custom_job_type_test.go b/v2/api/command/api_custom_job_type_test.go deleted file mode 100644 index d7d1f54..0000000 --- a/v2/api/command/api_custom_job_type_test.go +++ /dev/null @@ -1,98 +0,0 @@ -/* -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may -not use this file except in compliance with the License. You may obtain a -copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless -required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES -OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the -License. - -Keyfactor-v1 - -Testing CustomJobTypeApiService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package command - -import ( - "context" - "os" - "testing" - - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func Test_command_CustomJobTypeApiService(t *testing.T) { - - cwd, _ := os.Getwd() - t.Logf("Working directory: %s", cwd) - config := GetEnvConfiguration() - - configuration, configErr := NewConfiguration(config) - require.Nil(t, configErr) - - apiClient := NewAPIClient(configuration) - - t.Run("Test CustomJobTypeApiService CustomJobTypeCreateJobType", func(t *testing.T) { - - t.Log("CustomJobTypeApi_CustomJobTypeCreateJobType_payload: ") - resp, httpRes, err := apiClient.CustomJobTypeApi.CustomJobTypeCreateJobType(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test CustomJobTypeApiService CustomJobTypeDeleteJobType", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("CustomJobTypeApi_CustomJobTypeDeleteJobType_id") - id, _ = convertParamInterface(id, "string") - t.Logf("CustomJobTypeApi_CustomJobTypeDeleteJobType_id: %v", id) - - t.Log("CustomJobTypeApi_CustomJobTypeDeleteJobType_payload: ") - httpRes, err := apiClient.CustomJobTypeApi.CustomJobTypeDeleteJobType(context.Background(), id.(string)).Execute() - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test CustomJobTypeApiService CustomJobTypeGetJobTypeById", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("CustomJobTypeApi_CustomJobTypeGetJobTypeById_id") - id, _ = convertParamInterface(id, "string") - t.Logf("CustomJobTypeApi_CustomJobTypeGetJobTypeById_id: %v", id) - - t.Log("CustomJobTypeApi_CustomJobTypeGetJobTypeById_payload: ") - resp, httpRes, err := apiClient.CustomJobTypeApi.CustomJobTypeGetJobTypeById(context.Background(), id.(string)).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test CustomJobTypeApiService CustomJobTypeGetJobTypes", func(t *testing.T) { - - t.Log("CustomJobTypeApi_CustomJobTypeGetJobTypes_payload: ") - resp, httpRes, err := apiClient.CustomJobTypeApi.CustomJobTypeGetJobTypes(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test CustomJobTypeApiService CustomJobTypeUpdateJobType", func(t *testing.T) { - - t.Log("CustomJobTypeApi_CustomJobTypeUpdateJobType_payload: ") - resp, httpRes, err := apiClient.CustomJobTypeApi.CustomJobTypeUpdateJobType(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - -} diff --git a/v2/api/command/api_denied_alert_test.go b/v2/api/command/api_denied_alert_test.go deleted file mode 100644 index 9a850e1..0000000 --- a/v2/api/command/api_denied_alert_test.go +++ /dev/null @@ -1,98 +0,0 @@ -/* -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may -not use this file except in compliance with the License. You may obtain a -copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless -required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES -OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the -License. - -Keyfactor-v1 - -Testing DeniedAlertApiService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package command - -import ( - "context" - "os" - "testing" - - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func Test_command_DeniedAlertApiService(t *testing.T) { - - cwd, _ := os.Getwd() - t.Logf("Working directory: %s", cwd) - config := GetEnvConfiguration() - - configuration, configErr := NewConfiguration(config) - require.Nil(t, configErr) - - apiClient := NewAPIClient(configuration) - - t.Run("Test DeniedAlertApiService DeniedAlertAddDeniedAlert", func(t *testing.T) { - - t.Log("DeniedAlertApi_DeniedAlertAddDeniedAlert_payload: ") - resp, httpRes, err := apiClient.DeniedAlertApi.DeniedAlertAddDeniedAlert(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test DeniedAlertApiService DeniedAlertDeleteDeniedAlert", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("DeniedAlertApi_DeniedAlertDeleteDeniedAlert_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("DeniedAlertApi_DeniedAlertDeleteDeniedAlert_id: %v", id) - - t.Log("DeniedAlertApi_DeniedAlertDeleteDeniedAlert_payload: ") - httpRes, err := apiClient.DeniedAlertApi.DeniedAlertDeleteDeniedAlert(context.Background(), id.(int32)).Execute() - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test DeniedAlertApiService DeniedAlertEditDeniedAlert", func(t *testing.T) { - - t.Log("DeniedAlertApi_DeniedAlertEditDeniedAlert_payload: ") - resp, httpRes, err := apiClient.DeniedAlertApi.DeniedAlertEditDeniedAlert(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test DeniedAlertApiService DeniedAlertGetDeniedAlert", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("DeniedAlertApi_DeniedAlertGetDeniedAlert_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("DeniedAlertApi_DeniedAlertGetDeniedAlert_id: %v", id) - - t.Log("DeniedAlertApi_DeniedAlertGetDeniedAlert_payload: ") - resp, httpRes, err := apiClient.DeniedAlertApi.DeniedAlertGetDeniedAlert(context.Background(), id.(int32)).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test DeniedAlertApiService DeniedAlertGetDeniedAlerts", func(t *testing.T) { - - t.Log("DeniedAlertApi_DeniedAlertGetDeniedAlerts_payload: ") - resp, httpRes, err := apiClient.DeniedAlertApi.DeniedAlertGetDeniedAlerts(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - -} diff --git a/v2/api/command/api_enrollment_test.go b/v2/api/command/api_enrollment_test.go deleted file mode 100644 index 53357e7..0000000 --- a/v2/api/command/api_enrollment_test.go +++ /dev/null @@ -1,245 +0,0 @@ -/* -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may -not use this file except in compliance with the License. You may obtain a -copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless -required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES -OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the -License. - -Keyfactor-v1 - -Testing EnrollmentApiService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package command - -import ( - "context" - "encoding/json" - "os" - "testing" - - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func Test_command_EnrollmentApiService(t *testing.T) { - - cwd, _ := os.Getwd() - t.Logf("Working directory: %s", cwd) - config := GetEnvConfiguration() - - configuration, configErr := NewConfiguration(config) - require.Nil(t, configErr) - - apiClient := NewAPIClient(configuration) - - t.Run("Test EnrollmentApiService EnrollmentAddToExistingCertStores", func(t *testing.T) { - - t.Log("EnrollmentApi_EnrollmentAddToExistingCertStores_payload: ") - resp, httpRes, err := apiClient.EnrollmentApi.EnrollmentAddToExistingCertStores(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test EnrollmentApiService EnrollmentAvailableRenewalId", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("EnrollmentApi_EnrollmentAvailableRenewalId_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("EnrollmentApi_EnrollmentAvailableRenewalId_id: %v", id) - - t.Log("EnrollmentApi_EnrollmentAvailableRenewalId_payload: ") - resp, httpRes, err := apiClient.EnrollmentApi.EnrollmentAvailableRenewalId(context.Background(), id.(int32)).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test EnrollmentApiService EnrollmentAvailableRenewalThumbprint", func(t *testing.T) { - - var thumbprint interface{} - - thumbprint = os.Getenv("EnrollmentApi_EnrollmentAvailableRenewalThumbprint_thumbprint") - thumbprint, _ = convertParamInterface(thumbprint, "string") - t.Logf("EnrollmentApi_EnrollmentAvailableRenewalThumbprint_thumbprint: %v", thumbprint) - - t.Log("EnrollmentApi_EnrollmentAvailableRenewalThumbprint_payload: ") - resp, httpRes, err := apiClient.EnrollmentApi.EnrollmentAvailableRenewalThumbprint(context.Background(), thumbprint.(string)).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test EnrollmentApiService EnrollmentGetMyCSRContext", func(t *testing.T) { - - t.Log("EnrollmentApi_EnrollmentGetMyCSRContext_payload: ") - resp, httpRes, err := apiClient.EnrollmentApi.EnrollmentGetMyCSRContext(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test EnrollmentApiService EnrollmentGetMyPFXContext", func(t *testing.T) { - - t.Log("EnrollmentApi_EnrollmentGetMyPFXContext_payload: ") - resp, httpRes, err := apiClient.EnrollmentApi.EnrollmentGetMyPFXContext(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test EnrollmentApiService EnrollmentGetTemplateEnrollmentSettings", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("EnrollmentApi_EnrollmentGetTemplateEnrollmentSettings_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("EnrollmentApi_EnrollmentGetTemplateEnrollmentSettings_id: %v", id) - - t.Log("EnrollmentApi_EnrollmentGetTemplateEnrollmentSettings_payload: ") - resp, httpRes, err := apiClient.EnrollmentApi.EnrollmentGetTemplateEnrollmentSettings(context.Background(), id.(int32)).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test EnrollmentApiService EnrollmentInstallPFXToCertStore", func(t *testing.T) { - - t.Log("EnrollmentApi_EnrollmentInstallPFXToCertStore_payload: ") - resp, httpRes, err := apiClient.EnrollmentApi.EnrollmentInstallPFXToCertStore(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test EnrollmentApiService EnrollmentPostCSREnroll", func(t *testing.T) { - - t.Run("Test Basic CSR Enrollment", func(t *testing.T) { - payload := ` - { - "CSR": "-----BEGIN CERTIFICATE REQUEST-----\nMIIDQTCCAikCAQAwgZYxCzAJBgNVBAYTAlVTMQ0wCwYDVQQIDARPaGlvMRIwEAYD\nVQQHDAlDbGV2ZWxhbmQxIDAeBgNVBAsMF0ludGVncmF0aW9uIEVuZ2luZWVyaW5n\nMRwwGgYDVQQKDBNLZXlmYWN0b3IgSW5jLiBUZXN0MSQwIgYDVQQDDBtPcGVuIEFQ\nSSBHZW5lcmF0b3IgQ1NSIFRlc3QwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEK\nAoIBAQDpX5z4C9WzPN4r88iKYemH5o/vdxpUvMtuC9trnrBF+qis0+IXWLXhZKMU\nf3A7ygE/C6euslWM1eRAcudEXRLGFlt1PKj2NDEX/qi8zJ4VVF0jbPqZ48prBytg\nj/fHeIU4iNLWUvVBHkD0/HX4pWxvzWin14Mq7X3Ung1o4Z8Ar6dpa6y1QK/CL5lC\n+uiIfNqX1nqbJUdS09PlXm2vKZx7atE+CYWbghUp0niVElGmtUHZxNQP8N9nuB4t\n9IPCnsOPJjr7MS2Az3vJnxjV5ze6Q8tajlZlh5rj39dazxcpNGqcof+j2ZdTshRe\n86BLcdgEiBsrX8mYIUWjYbh3oJ77AgMBAAGgZTBjBgkqhkiG9w0BCQ4xVjBUMCYG\nA1UdEQQfMB2CG09wZW4gQVBJIEdlbmVyYXRvciBDU1IgVGVzdDALBgNVHQ8EBAMC\nBDAwHQYDVR0lBBYwFAYIKwYBBQUHAwIGCCsGAQUFBwMBMA0GCSqGSIb3DQEBCwUA\nA4IBAQAcyw8WKWG4oPLm8/5VZtf1Ch3+utl16Z9FmnV7MHboVv5UMGmfPyGHyG5m\nEzmMYTED2JJZM/9PI0ff6ImeBXKPv+E92/5lb3SoIcII1QK1bLZI2fh91G1ZT6vl\nCFLTV0mCNFVRSIXhUxkYnKEM986DzDmd3xtbT/PZnadePM118X9szNtCkN3AebU+\nbeXMx32usNuV3SAepZOk9c+4CxbdLxn8raONZ5Z7lDwhmURlmLCyNOe8PnHKueBH\nEvg9kyinT9HkOF9MqPCbnpBfKbOFTOKu/ai7LiiHddwuoWFa8i0TwN77R4844l4d\nflJcNIIi5nGeCCqPrASTr736aHpv\n-----END CERTIFICATE REQUEST-----\n", - "IncludeChain": true, - "ChainOrder": "EndEntityFirst", - "CertificateAuthority": "DC-CA.Command.local\\CommandCA1", - "Template": "2YearTestWebServer", - "SANs": { - "dns": [ - "Open API Generator CSR Test" - ], - "ip4": [ - "192.168.2.2" - ] - } -} - - ` - t.Logf("Basic CSR Enrollment_payload: %v", payload) - - // deserialize payload into corresponding model - var payloadModel ModelsEnrollmentCSREnrollmentRequest - err := json.Unmarshal([]byte(payload), &payloadModel) - require.Nil(t, err) - - payloadModel.Timestamp = generateTimestamp() - - resp, httpRes, err := apiClient.EnrollmentApi.EnrollmentPostCSREnroll(context.Background()).Request(payloadModel).Execute() - if err != nil { - t.Errorf("Error while calling EnrollmentApiService_EnrollmentPostPFXEnroll: %v\n", err) - t.Log(err.Error()) - if httpRes != nil { - t.Logf("HTTP Response from URL: %v\n", httpRes.Request.URL) - t.Logf("HTTP Response Status Code: %v\n", httpRes.StatusCode) - t.Logf("HTTP Response Status: %v\n", httpRes.Status) - t.Logf("HTTP Response Body: %v\n", httpRes.Body) - } - } - - t.Log("Test 'Basic CSR Enrollment' must PASS") - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - t.Log("Test 'Basic CSR Enrollment' PASSED successfully") - }) - }) - - t.Run("Test EnrollmentApiService EnrollmentPostPFXEnroll", func(t *testing.T) { - - t.Run("Test Basic PFX Enrollment", func(t *testing.T) { - payload := ` - { - "CustomFriendlyName": "Open API Generator Test", - "Password": "changeme!@#$%!@#$%", - "PopulateMissingValuesFromAD": true, - "Subject": "CN=Open API Generator Test,OU=Integrations,O=Keyfactor,L=Ohio,ST=Cleveland,C=US", - "IncludeChain": true, - "ChainOrder": "EndEntityFirst", - "CertificateAuthority": "DC-CA.Command.local\\CommandCA1", - "Template": "2YearTestWebServer", - "SANs": { - "dns": [ - "Open API Generator Test" - ], - "ip4": [ - "192.168.2.2" - ] - } -} - - ` - t.Logf("Basic PFX Enrollment_payload: %v", payload) - - // deserialize payload into corresponding model - var payloadModel ModelsEnrollmentPFXEnrollmentRequest - err := json.Unmarshal([]byte(payload), &payloadModel) - require.Nil(t, err) - - payloadModel.Timestamp = generateTimestamp() - - resp, httpRes, err := apiClient.EnrollmentApi.EnrollmentPostPFXEnroll(context.Background()).Request(payloadModel).Execute() - if err != nil { - t.Errorf("Error while calling EnrollmentApiService_EnrollmentPostPFXEnroll: %v\n", err) - t.Log(err.Error()) - if httpRes != nil { - t.Logf("HTTP Response from URL: %v\n", httpRes.Request.URL) - t.Logf("HTTP Response Status Code: %v\n", httpRes.StatusCode) - t.Logf("HTTP Response Status: %v\n", httpRes.Status) - t.Logf("HTTP Response Body: %v\n", httpRes.Body) - } - } - - t.Log("Test 'Basic PFX Enrollment' must PASS") - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - t.Log("Test 'Basic PFX Enrollment' PASSED successfully") - }) - }) - - t.Run("Test EnrollmentApiService EnrollmentPostParsedCSR", func(t *testing.T) { - - t.Log("EnrollmentApi_EnrollmentPostParsedCSR_payload: ") - resp, httpRes, err := apiClient.EnrollmentApi.EnrollmentPostParsedCSR(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test EnrollmentApiService EnrollmentRenew", func(t *testing.T) { - - t.Log("EnrollmentApi_EnrollmentRenew_payload: ") - resp, httpRes, err := apiClient.EnrollmentApi.EnrollmentRenew(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - -} diff --git a/v2/api/command/api_license_test.go b/v2/api/command/api_license_test.go deleted file mode 100644 index 261e099..0000000 --- a/v2/api/command/api_license_test.go +++ /dev/null @@ -1,51 +0,0 @@ -/* -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may -not use this file except in compliance with the License. You may obtain a -copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless -required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES -OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the -License. - -Keyfactor-v1 - -Testing LicenseApiService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package command - -import ( - "context" - "os" - "testing" - - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func Test_command_LicenseApiService(t *testing.T) { - - cwd, _ := os.Getwd() - t.Logf("Working directory: %s", cwd) - config := GetEnvConfiguration() - - configuration, configErr := NewConfiguration(config) - require.Nil(t, configErr) - - apiClient := NewAPIClient(configuration) - - t.Run("Test LicenseApiService LicenseGetCurrentLicense", func(t *testing.T) { - - t.Log("LicenseApi_LicenseGetCurrentLicense_payload: ") - resp, httpRes, err := apiClient.LicenseApi.LicenseGetCurrentLicense(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - -} diff --git a/v2/api/command/api_logon_test.go b/v2/api/command/api_logon_test.go deleted file mode 100644 index 32ebc64..0000000 --- a/v2/api/command/api_logon_test.go +++ /dev/null @@ -1,98 +0,0 @@ -/* -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may -not use this file except in compliance with the License. You may obtain a -copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless -required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES -OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the -License. - -Keyfactor-v1 - -Testing LogonApiService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package command - -import ( - "context" - "os" - "testing" - - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func Test_command_LogonApiService(t *testing.T) { - - cwd, _ := os.Getwd() - t.Logf("Working directory: %s", cwd) - config := GetEnvConfiguration() - - configuration, configErr := NewConfiguration(config) - require.Nil(t, configErr) - - apiClient := NewAPIClient(configuration) - - t.Run("Test LogonApiService LogonCreateLogon", func(t *testing.T) { - - t.Log("LogonApi_LogonCreateLogon_payload: ") - resp, httpRes, err := apiClient.LogonApi.LogonCreateLogon(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test LogonApiService LogonDelete", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("LogonApi_LogonDelete_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("LogonApi_LogonDelete_id: %v", id) - - t.Log("LogonApi_LogonDelete_payload: ") - httpRes, err := apiClient.LogonApi.LogonDelete(context.Background(), id.(int32)).Execute() - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test LogonApiService LogonGetLogon", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("LogonApi_LogonGetLogon_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("LogonApi_LogonGetLogon_id: %v", id) - - t.Log("LogonApi_LogonGetLogon_payload: ") - resp, httpRes, err := apiClient.LogonApi.LogonGetLogon(context.Background(), id.(int32)).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test LogonApiService LogonLogonAccess", func(t *testing.T) { - - t.Log("LogonApi_LogonLogonAccess_payload: ") - resp, httpRes, err := apiClient.LogonApi.LogonLogonAccess(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test LogonApiService LogonQueryLogons", func(t *testing.T) { - - t.Log("LogonApi_LogonQueryLogons_payload: ") - resp, httpRes, err := apiClient.LogonApi.LogonQueryLogons(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - -} diff --git a/v2/api/command/api_mac_enrollment_test.go b/v2/api/command/api_mac_enrollment_test.go deleted file mode 100644 index 372aee0..0000000 --- a/v2/api/command/api_mac_enrollment_test.go +++ /dev/null @@ -1,60 +0,0 @@ -/* -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may -not use this file except in compliance with the License. You may obtain a -copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless -required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES -OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the -License. - -Keyfactor-v1 - -Testing MacEnrollmentApiService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package command - -import ( - "context" - "os" - "testing" - - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func Test_command_MacEnrollmentApiService(t *testing.T) { - - cwd, _ := os.Getwd() - t.Logf("Working directory: %s", cwd) - config := GetEnvConfiguration() - - configuration, configErr := NewConfiguration(config) - require.Nil(t, configErr) - - apiClient := NewAPIClient(configuration) - - t.Run("Test MacEnrollmentApiService MacEnrollmentEditMacEnrollment", func(t *testing.T) { - - t.Log("MacEnrollmentApi_MacEnrollmentEditMacEnrollment_payload: ") - resp, httpRes, err := apiClient.MacEnrollmentApi.MacEnrollmentEditMacEnrollment(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test MacEnrollmentApiService MacEnrollmentMacEnrollment", func(t *testing.T) { - - t.Log("MacEnrollmentApi_MacEnrollmentMacEnrollment_payload: ") - resp, httpRes, err := apiClient.MacEnrollmentApi.MacEnrollmentMacEnrollment(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - -} diff --git a/v2/api/command/api_metadata_field_test.go b/v2/api/command/api_metadata_field_test.go deleted file mode 100644 index 82ed016..0000000 --- a/v2/api/command/api_metadata_field_test.go +++ /dev/null @@ -1,136 +0,0 @@ -/* -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may -not use this file except in compliance with the License. You may obtain a -copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless -required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES -OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the -License. - -Keyfactor-v1 - -Testing MetadataFieldApiService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package command - -import ( - "context" - "os" - "testing" - - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func Test_command_MetadataFieldApiService(t *testing.T) { - - cwd, _ := os.Getwd() - t.Logf("Working directory: %s", cwd) - config := GetEnvConfiguration() - - configuration, configErr := NewConfiguration(config) - require.Nil(t, configErr) - - apiClient := NewAPIClient(configuration) - - t.Run("Test MetadataFieldApiService MetadataFieldCreateMetadataField", func(t *testing.T) { - - t.Log("MetadataFieldApi_MetadataFieldCreateMetadataField_payload: ") - resp, httpRes, err := apiClient.MetadataFieldApi.MetadataFieldCreateMetadataField(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test MetadataFieldApiService MetadataFieldDeleteMetadataField", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("MetadataFieldApi_MetadataFieldDeleteMetadataField_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("MetadataFieldApi_MetadataFieldDeleteMetadataField_id: %v", id) - - t.Log("MetadataFieldApi_MetadataFieldDeleteMetadataField_payload: ") - httpRes, err := apiClient.MetadataFieldApi.MetadataFieldDeleteMetadataField(context.Background(), id.(int32)).Execute() - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test MetadataFieldApiService MetadataFieldDeleteMetadataFields", func(t *testing.T) { - - t.Log("MetadataFieldApi_MetadataFieldDeleteMetadataFields_payload: ") - httpRes, err := apiClient.MetadataFieldApi.MetadataFieldDeleteMetadataFields(context.Background()).Execute() - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test MetadataFieldApiService MetadataFieldGetAllMetadataFields", func(t *testing.T) { - - t.Log("MetadataFieldApi_MetadataFieldGetAllMetadataFields_payload: ") - resp, httpRes, err := apiClient.MetadataFieldApi.MetadataFieldGetAllMetadataFields(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test MetadataFieldApiService MetadataFieldGetMetadataField0", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("MetadataFieldApi_MetadataFieldGetMetadataField0_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("MetadataFieldApi_MetadataFieldGetMetadataField0_id: %v", id) - - t.Log("MetadataFieldApi_MetadataFieldGetMetadataField0_payload: ") - resp, httpRes, err := apiClient.MetadataFieldApi.MetadataFieldGetMetadataField0(context.Background(), id.(int32)).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test MetadataFieldApiService MetadataFieldGetMetadataField1", func(t *testing.T) { - - var name interface{} - - name = os.Getenv("MetadataFieldApi_MetadataFieldGetMetadataField1_name") - name, _ = convertParamInterface(name, "string") - t.Logf("MetadataFieldApi_MetadataFieldGetMetadataField1_name: %v", name) - - t.Log("MetadataFieldApi_MetadataFieldGetMetadataField1_payload: ") - resp, httpRes, err := apiClient.MetadataFieldApi.MetadataFieldGetMetadataField1(context.Background(), name.(string)).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test MetadataFieldApiService MetadataFieldGetMetadataFieldInUse", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("MetadataFieldApi_MetadataFieldGetMetadataFieldInUse_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("MetadataFieldApi_MetadataFieldGetMetadataFieldInUse_id: %v", id) - - t.Log("MetadataFieldApi_MetadataFieldGetMetadataFieldInUse_payload: ") - resp, httpRes, err := apiClient.MetadataFieldApi.MetadataFieldGetMetadataFieldInUse(context.Background(), id.(int32)).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test MetadataFieldApiService MetadataFieldUpdateMetadataField", func(t *testing.T) { - - t.Log("MetadataFieldApi_MetadataFieldUpdateMetadataField_payload: ") - resp, httpRes, err := apiClient.MetadataFieldApi.MetadataFieldUpdateMetadataField(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - -} diff --git a/v2/api/command/api_reports_test.go b/v2/api/command/api_reports_test.go deleted file mode 100644 index d2a2e4f..0000000 --- a/v2/api/command/api_reports_test.go +++ /dev/null @@ -1,235 +0,0 @@ -/* -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may -not use this file except in compliance with the License. You may obtain a -copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless -required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES -OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the -License. - -Keyfactor-v1 - -Testing ReportsApiService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package command - -import ( - "context" - "os" - "testing" - - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func Test_command_ReportsApiService(t *testing.T) { - - cwd, _ := os.Getwd() - t.Logf("Working directory: %s", cwd) - config := GetEnvConfiguration() - - configuration, configErr := NewConfiguration(config) - require.Nil(t, configErr) - - apiClient := NewAPIClient(configuration) - - t.Run("Test ReportsApiService ReportsCreateCustomReport", func(t *testing.T) { - - t.Log("ReportsApi_ReportsCreateCustomReport_payload: ") - resp, httpRes, err := apiClient.ReportsApi.ReportsCreateCustomReport(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test ReportsApiService ReportsCreateReportSchedule", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("ReportsApi_ReportsCreateReportSchedule_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("ReportsApi_ReportsCreateReportSchedule_id: %v", id) - - t.Log("ReportsApi_ReportsCreateReportSchedule_payload: ") - resp, httpRes, err := apiClient.ReportsApi.ReportsCreateReportSchedule(context.Background(), id.(int32)).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test ReportsApiService ReportsDeleteReport", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("ReportsApi_ReportsDeleteReport_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("ReportsApi_ReportsDeleteReport_id: %v", id) - - t.Log("ReportsApi_ReportsDeleteReport_payload: ") - httpRes, err := apiClient.ReportsApi.ReportsDeleteReport(context.Background(), id.(int32)).Execute() - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test ReportsApiService ReportsDeleteReportSchedule", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("ReportsApi_ReportsDeleteReportSchedule_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("ReportsApi_ReportsDeleteReportSchedule_id: %v", id) - - t.Log("ReportsApi_ReportsDeleteReportSchedule_payload: ") - httpRes, err := apiClient.ReportsApi.ReportsDeleteReportSchedule(context.Background(), id.(int32)).Execute() - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test ReportsApiService ReportsGetCustomReport", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("ReportsApi_ReportsGetCustomReport_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("ReportsApi_ReportsGetCustomReport_id: %v", id) - - t.Log("ReportsApi_ReportsGetCustomReport_payload: ") - resp, httpRes, err := apiClient.ReportsApi.ReportsGetCustomReport(context.Background(), id.(int32)).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test ReportsApiService ReportsGetReport", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("ReportsApi_ReportsGetReport_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("ReportsApi_ReportsGetReport_id: %v", id) - - t.Log("ReportsApi_ReportsGetReport_payload: ") - resp, httpRes, err := apiClient.ReportsApi.ReportsGetReport(context.Background(), id.(int32)).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test ReportsApiService ReportsGetReportParameters", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("ReportsApi_ReportsGetReportParameters_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("ReportsApi_ReportsGetReportParameters_id: %v", id) - - t.Log("ReportsApi_ReportsGetReportParameters_payload: ") - resp, httpRes, err := apiClient.ReportsApi.ReportsGetReportParameters(context.Background(), id.(int32)).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test ReportsApiService ReportsGetReportSchedule", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("ReportsApi_ReportsGetReportSchedule_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("ReportsApi_ReportsGetReportSchedule_id: %v", id) - - t.Log("ReportsApi_ReportsGetReportSchedule_payload: ") - resp, httpRes, err := apiClient.ReportsApi.ReportsGetReportSchedule(context.Background(), id.(int32)).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test ReportsApiService ReportsGetReportSchedules", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("ReportsApi_ReportsGetReportSchedules_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("ReportsApi_ReportsGetReportSchedules_id: %v", id) - - t.Log("ReportsApi_ReportsGetReportSchedules_payload: ") - resp, httpRes, err := apiClient.ReportsApi.ReportsGetReportSchedules(context.Background(), id.(int32)).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test ReportsApiService ReportsQueryCustomReports", func(t *testing.T) { - - t.Log("ReportsApi_ReportsQueryCustomReports_payload: ") - resp, httpRes, err := apiClient.ReportsApi.ReportsQueryCustomReports(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test ReportsApiService ReportsQueryReports", func(t *testing.T) { - - t.Log("ReportsApi_ReportsQueryReports_payload: ") - resp, httpRes, err := apiClient.ReportsApi.ReportsQueryReports(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test ReportsApiService ReportsUpdateCustomReport", func(t *testing.T) { - - t.Log("ReportsApi_ReportsUpdateCustomReport_payload: ") - resp, httpRes, err := apiClient.ReportsApi.ReportsUpdateCustomReport(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test ReportsApiService ReportsUpdateReport", func(t *testing.T) { - - t.Log("ReportsApi_ReportsUpdateReport_payload: ") - resp, httpRes, err := apiClient.ReportsApi.ReportsUpdateReport(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test ReportsApiService ReportsUpdateReportParameters", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("ReportsApi_ReportsUpdateReportParameters_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("ReportsApi_ReportsUpdateReportParameters_id: %v", id) - - t.Log("ReportsApi_ReportsUpdateReportParameters_payload: ") - resp, httpRes, err := apiClient.ReportsApi.ReportsUpdateReportParameters(context.Background(), id.(int32)).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test ReportsApiService ReportsUpdateReportSchedule", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("ReportsApi_ReportsUpdateReportSchedule_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("ReportsApi_ReportsUpdateReportSchedule_id: %v", id) - - t.Log("ReportsApi_ReportsUpdateReportSchedule_payload: ") - resp, httpRes, err := apiClient.ReportsApi.ReportsUpdateReportSchedule(context.Background(), id.(int32)).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - -} diff --git a/v2/api/command/api_security_role_permissions_test.go b/v2/api/command/api_security_role_permissions_test.go deleted file mode 100644 index 90b7e7c..0000000 --- a/v2/api/command/api_security_role_permissions_test.go +++ /dev/null @@ -1,192 +0,0 @@ -/* -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may -not use this file except in compliance with the License. You may obtain a -copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless -required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES -OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the -License. - -Keyfactor-v1 - -Testing SecurityRolePermissionsApiService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package command - -import ( - "context" - "os" - "testing" - - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func Test_command_SecurityRolePermissionsApiService(t *testing.T) { - - cwd, _ := os.Getwd() - t.Logf("Working directory: %s", cwd) - config := GetEnvConfiguration() - - configuration, configErr := NewConfiguration(config) - require.Nil(t, configErr) - - apiClient := NewAPIClient(configuration) - - t.Run("Test SecurityRolePermissionsApiService SecurityRolePermissionsAddCollectionPermissions", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("SecurityRolePermissionsApi_SecurityRolePermissionsAddCollectionPermissions_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("SecurityRolePermissionsApi_SecurityRolePermissionsAddCollectionPermissions_id: %v", id) - - t.Log("SecurityRolePermissionsApi_SecurityRolePermissionsAddCollectionPermissions_payload: ") - resp, httpRes, err := apiClient.SecurityRolePermissionsApi.SecurityRolePermissionsAddCollectionPermissions(context.Background(), id.(int32)).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test SecurityRolePermissionsApiService SecurityRolePermissionsAddContainerPermissions", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("SecurityRolePermissionsApi_SecurityRolePermissionsAddContainerPermissions_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("SecurityRolePermissionsApi_SecurityRolePermissionsAddContainerPermissions_id: %v", id) - - t.Log("SecurityRolePermissionsApi_SecurityRolePermissionsAddContainerPermissions_payload: ") - resp, httpRes, err := apiClient.SecurityRolePermissionsApi.SecurityRolePermissionsAddContainerPermissions(context.Background(), id.(int32)).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test SecurityRolePermissionsApiService SecurityRolePermissionsAddGlobalPermissions", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("SecurityRolePermissionsApi_SecurityRolePermissionsAddGlobalPermissions_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("SecurityRolePermissionsApi_SecurityRolePermissionsAddGlobalPermissions_id: %v", id) - - t.Log("SecurityRolePermissionsApi_SecurityRolePermissionsAddGlobalPermissions_payload: ") - resp, httpRes, err := apiClient.SecurityRolePermissionsApi.SecurityRolePermissionsAddGlobalPermissions(context.Background(), id.(int32)).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test SecurityRolePermissionsApiService SecurityRolePermissionsGetCollectionPermissionsForRole", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("SecurityRolePermissionsApi_SecurityRolePermissionsGetCollectionPermissionsForRole_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("SecurityRolePermissionsApi_SecurityRolePermissionsGetCollectionPermissionsForRole_id: %v", id) - - t.Log("SecurityRolePermissionsApi_SecurityRolePermissionsGetCollectionPermissionsForRole_payload: ") - resp, httpRes, err := apiClient.SecurityRolePermissionsApi.SecurityRolePermissionsGetCollectionPermissionsForRole(context.Background(), id.(int32)).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test SecurityRolePermissionsApiService SecurityRolePermissionsGetContainerPermissionsForRole", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("SecurityRolePermissionsApi_SecurityRolePermissionsGetContainerPermissionsForRole_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("SecurityRolePermissionsApi_SecurityRolePermissionsGetContainerPermissionsForRole_id: %v", id) - - t.Log("SecurityRolePermissionsApi_SecurityRolePermissionsGetContainerPermissionsForRole_payload: ") - resp, httpRes, err := apiClient.SecurityRolePermissionsApi.SecurityRolePermissionsGetContainerPermissionsForRole(context.Background(), id.(int32)).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test SecurityRolePermissionsApiService SecurityRolePermissionsGetGlobalPermissionsForRole", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("SecurityRolePermissionsApi_SecurityRolePermissionsGetGlobalPermissionsForRole_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("SecurityRolePermissionsApi_SecurityRolePermissionsGetGlobalPermissionsForRole_id: %v", id) - - t.Log("SecurityRolePermissionsApi_SecurityRolePermissionsGetGlobalPermissionsForRole_payload: ") - resp, httpRes, err := apiClient.SecurityRolePermissionsApi.SecurityRolePermissionsGetGlobalPermissionsForRole(context.Background(), id.(int32)).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test SecurityRolePermissionsApiService SecurityRolePermissionsGetPermissionsForRole", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("SecurityRolePermissionsApi_SecurityRolePermissionsGetPermissionsForRole_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("SecurityRolePermissionsApi_SecurityRolePermissionsGetPermissionsForRole_id: %v", id) - - t.Log("SecurityRolePermissionsApi_SecurityRolePermissionsGetPermissionsForRole_payload: ") - resp, httpRes, err := apiClient.SecurityRolePermissionsApi.SecurityRolePermissionsGetPermissionsForRole(context.Background(), id.(int32)).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test SecurityRolePermissionsApiService SecurityRolePermissionsSetCollectionPermissions", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("SecurityRolePermissionsApi_SecurityRolePermissionsSetCollectionPermissions_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("SecurityRolePermissionsApi_SecurityRolePermissionsSetCollectionPermissions_id: %v", id) - - t.Log("SecurityRolePermissionsApi_SecurityRolePermissionsSetCollectionPermissions_payload: ") - resp, httpRes, err := apiClient.SecurityRolePermissionsApi.SecurityRolePermissionsSetCollectionPermissions(context.Background(), id.(int32)).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test SecurityRolePermissionsApiService SecurityRolePermissionsSetContainerPermissions", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("SecurityRolePermissionsApi_SecurityRolePermissionsSetContainerPermissions_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("SecurityRolePermissionsApi_SecurityRolePermissionsSetContainerPermissions_id: %v", id) - - t.Log("SecurityRolePermissionsApi_SecurityRolePermissionsSetContainerPermissions_payload: ") - resp, httpRes, err := apiClient.SecurityRolePermissionsApi.SecurityRolePermissionsSetContainerPermissions(context.Background(), id.(int32)).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test SecurityRolePermissionsApiService SecurityRolePermissionsSetGlobalPermissions", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("SecurityRolePermissionsApi_SecurityRolePermissionsSetGlobalPermissions_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("SecurityRolePermissionsApi_SecurityRolePermissionsSetGlobalPermissions_id: %v", id) - - t.Log("SecurityRolePermissionsApi_SecurityRolePermissionsSetGlobalPermissions_payload: ") - resp, httpRes, err := apiClient.SecurityRolePermissionsApi.SecurityRolePermissionsSetGlobalPermissions(context.Background(), id.(int32)).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - -} diff --git a/v2/api/command/api_security_roles_test.go b/v2/api/command/api_security_roles_test.go deleted file mode 100644 index 51402b3..0000000 --- a/v2/api/command/api_security_roles_test.go +++ /dev/null @@ -1,86 +0,0 @@ -/* -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may -not use this file except in compliance with the License. You may obtain a -copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless -required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES -OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the -License. - -Keyfactor-v1 - -Testing SecurityRolesApiService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package command - -import ( - "context" - "os" - "testing" - - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func Test_command_SecurityRolesApiService(t *testing.T) { - - cwd, _ := os.Getwd() - t.Logf("Working directory: %s", cwd) - config := GetEnvConfiguration() - - configuration, configErr := NewConfiguration(config) - require.Nil(t, configErr) - - apiClient := NewAPIClient(configuration) - - t.Run("Test SecurityRolesApiService SecurityRolesDeleteSecurityRole", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("SecurityRolesApi_SecurityRolesDeleteSecurityRole_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("SecurityRolesApi_SecurityRolesDeleteSecurityRole_id: %v", id) - - t.Log("SecurityRolesApi_SecurityRolesDeleteSecurityRole_payload: ") - httpRes, err := apiClient.SecurityRolesApi.SecurityRolesDeleteSecurityRole(context.Background(), id.(int32)).Execute() - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test SecurityRolesApiService SecurityRolesGetIdentitiesWithRole", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("SecurityRolesApi_SecurityRolesGetIdentitiesWithRole_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("SecurityRolesApi_SecurityRolesGetIdentitiesWithRole_id: %v", id) - - t.Log("SecurityRolesApi_SecurityRolesGetIdentitiesWithRole_payload: ") - resp, httpRes, err := apiClient.SecurityRolesApi.SecurityRolesGetIdentitiesWithRole(context.Background(), id.(int32)).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test SecurityRolesApiService SecurityRolesUpdateIdentitiesWithRole", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("SecurityRolesApi_SecurityRolesUpdateIdentitiesWithRole_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("SecurityRolesApi_SecurityRolesUpdateIdentitiesWithRole_id: %v", id) - - t.Log("SecurityRolesApi_SecurityRolesUpdateIdentitiesWithRole_payload: ") - resp, httpRes, err := apiClient.SecurityRolesApi.SecurityRolesUpdateIdentitiesWithRole(context.Background(), id.(int32)).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - -} diff --git a/v2/api/command/api_security_test.go b/v2/api/command/api_security_test.go deleted file mode 100644 index f269dad..0000000 --- a/v2/api/command/api_security_test.go +++ /dev/null @@ -1,80 +0,0 @@ -/* -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may -not use this file except in compliance with the License. You may obtain a -copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless -required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES -OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the -License. - -Keyfactor-v1 - -Testing SecurityApiService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package command - -import ( - "context" - "os" - "testing" - - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func Test_command_SecurityApiService(t *testing.T) { - - cwd, _ := os.Getwd() - t.Logf("Working directory: %s", cwd) - config := GetEnvConfiguration() - - configuration, configErr := NewConfiguration(config) - require.Nil(t, configErr) - - apiClient := NewAPIClient(configuration) - - t.Run("Test SecurityApiService SecurityDeleteSecurityIdentity", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("SecurityApi_SecurityDeleteSecurityIdentity_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("SecurityApi_SecurityDeleteSecurityIdentity_id: %v", id) - - t.Log("SecurityApi_SecurityDeleteSecurityIdentity_payload: ") - httpRes, err := apiClient.SecurityApi.SecurityDeleteSecurityIdentity(context.Background(), id.(int32)).Execute() - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test SecurityApiService SecurityIdentityPermissions", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("SecurityApi_SecurityIdentityPermissions_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("SecurityApi_SecurityIdentityPermissions_id: %v", id) - - t.Log("SecurityApi_SecurityIdentityPermissions_payload: ") - resp, httpRes, err := apiClient.SecurityApi.SecurityIdentityPermissions(context.Background(), id.(int32)).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test SecurityApiService SecurityLookupIdentity", func(t *testing.T) { - - t.Log("SecurityApi_SecurityLookupIdentity_payload: ") - resp, httpRes, err := apiClient.SecurityApi.SecurityLookupIdentity(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - -} diff --git a/v2/api/command/api_service_account_test.go b/v2/api/command/api_service_account_test.go deleted file mode 100644 index 18f6b43..0000000 --- a/v2/api/command/api_service_account_test.go +++ /dev/null @@ -1,136 +0,0 @@ -/* -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may -not use this file except in compliance with the License. You may obtain a -copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless -required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES -OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the -License. - -Keyfactor-v1 - -Testing ServiceAccountApiService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package command - -import ( - "context" - "os" - "testing" - - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func Test_command_ServiceAccountApiService(t *testing.T) { - - cwd, _ := os.Getwd() - t.Logf("Working directory: %s", cwd) - config := GetEnvConfiguration() - - configuration, configErr := NewConfiguration(config) - require.Nil(t, configErr) - - apiClient := NewAPIClient(configuration) - - t.Run("Test ServiceAccountApiService ServiceAccountCreateServiceAccount", func(t *testing.T) { - - t.Log("ServiceAccountApi_ServiceAccountCreateServiceAccount_payload: ") - resp, httpRes, err := apiClient.ServiceAccountApi.ServiceAccountCreateServiceAccount(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test ServiceAccountApiService ServiceAccountDeleteServiceAccount", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("ServiceAccountApi_ServiceAccountDeleteServiceAccount_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("ServiceAccountApi_ServiceAccountDeleteServiceAccount_id: %v", id) - - t.Log("ServiceAccountApi_ServiceAccountDeleteServiceAccount_payload: ") - httpRes, err := apiClient.ServiceAccountApi.ServiceAccountDeleteServiceAccount(context.Background(), id.(int32)).Execute() - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test ServiceAccountApiService ServiceAccountDeleteServiceAccounts", func(t *testing.T) { - - t.Log("ServiceAccountApi_ServiceAccountDeleteServiceAccounts_payload: ") - httpRes, err := apiClient.ServiceAccountApi.ServiceAccountDeleteServiceAccounts(context.Background()).Execute() - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test ServiceAccountApiService ServiceAccountGet", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("ServiceAccountApi_ServiceAccountGet_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("ServiceAccountApi_ServiceAccountGet_id: %v", id) - - t.Log("ServiceAccountApi_ServiceAccountGet_payload: ") - resp, httpRes, err := apiClient.ServiceAccountApi.ServiceAccountGet(context.Background(), id.(int32)).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test ServiceAccountApiService ServiceAccountGetServiceAccountKey", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("ServiceAccountApi_ServiceAccountGetServiceAccountKey_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("ServiceAccountApi_ServiceAccountGetServiceAccountKey_id: %v", id) - - t.Log("ServiceAccountApi_ServiceAccountGetServiceAccountKey_payload: ") - resp, httpRes, err := apiClient.ServiceAccountApi.ServiceAccountGetServiceAccountKey(context.Background(), id.(int32)).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test ServiceAccountApiService ServiceAccountQueryServiceAccounts", func(t *testing.T) { - - t.Log("ServiceAccountApi_ServiceAccountQueryServiceAccounts_payload: ") - resp, httpRes, err := apiClient.ServiceAccountApi.ServiceAccountQueryServiceAccounts(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test ServiceAccountApiService ServiceAccountRotateServiceAccountKey", func(t *testing.T) { - - var id interface{} - - id = os.Getenv("ServiceAccountApi_ServiceAccountRotateServiceAccountKey_id") - id, _ = convertParamInterface(id, "int32") - t.Logf("ServiceAccountApi_ServiceAccountRotateServiceAccountKey_id: %v", id) - - t.Log("ServiceAccountApi_ServiceAccountRotateServiceAccountKey_payload: ") - resp, httpRes, err := apiClient.ServiceAccountApi.ServiceAccountRotateServiceAccountKey(context.Background(), id.(int32)).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test ServiceAccountApiService ServiceAccountUpdateServiceAccount", func(t *testing.T) { - - t.Log("ServiceAccountApi_ServiceAccountUpdateServiceAccount_payload: ") - resp, httpRes, err := apiClient.ServiceAccountApi.ServiceAccountUpdateServiceAccount(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - -} diff --git a/v2/api/command/api_status_test.go b/v2/api/command/api_status_test.go deleted file mode 100644 index 97596f7..0000000 --- a/v2/api/command/api_status_test.go +++ /dev/null @@ -1,51 +0,0 @@ -/* -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may -not use this file except in compliance with the License. You may obtain a -copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless -required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES -OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the -License. - -Keyfactor-v1 - -Testing StatusApiService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package command - -import ( - "context" - "os" - "testing" - - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func Test_command_StatusApiService(t *testing.T) { - - cwd, _ := os.Getwd() - t.Logf("Working directory: %s", cwd) - config := GetEnvConfiguration() - - configuration, configErr := NewConfiguration(config) - require.Nil(t, configErr) - - apiClient := NewAPIClient(configuration) - - t.Run("Test StatusApiService StatusGetEndpoints", func(t *testing.T) { - - t.Log("StatusApi_StatusGetEndpoints_payload: ") - resp, httpRes, err := apiClient.StatusApi.StatusGetEndpoints(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - -} diff --git a/v2/api/command/api_workflow_definition_test.go b/v2/api/command/api_workflow_definition_test.go deleted file mode 100644 index 0110260..0000000 --- a/v2/api/command/api_workflow_definition_test.go +++ /dev/null @@ -1,167 +0,0 @@ -/* -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may -not use this file except in compliance with the License. You may obtain a -copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless -required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES -OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the -License. - -Keyfactor-v1 - -Testing WorkflowDefinitionApiService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package command - -import ( - "context" - "os" - "testing" - - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func Test_command_WorkflowDefinitionApiService(t *testing.T) { - - cwd, _ := os.Getwd() - t.Logf("Working directory: %s", cwd) - config := GetEnvConfiguration() - - configuration, configErr := NewConfiguration(config) - require.Nil(t, configErr) - - apiClient := NewAPIClient(configuration) - - t.Run("Test WorkflowDefinitionApiService WorkflowDefinitionConfigureDefinitionSteps", func(t *testing.T) { - - var definitionId interface{} - - definitionId = os.Getenv("WorkflowDefinitionApi_WorkflowDefinitionConfigureDefinitionSteps_definitionId") - definitionId, _ = convertParamInterface(definitionId, "string") - t.Logf("WorkflowDefinitionApi_WorkflowDefinitionConfigureDefinitionSteps_definitionId: %v", definitionId) - - t.Log("WorkflowDefinitionApi_WorkflowDefinitionConfigureDefinitionSteps_payload: ") - resp, httpRes, err := apiClient.WorkflowDefinitionApi.WorkflowDefinitionConfigureDefinitionSteps(context.Background(), definitionId.(string)).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test WorkflowDefinitionApiService WorkflowDefinitionCreateNewDefinition", func(t *testing.T) { - - t.Log("WorkflowDefinitionApi_WorkflowDefinitionCreateNewDefinition_payload: ") - resp, httpRes, err := apiClient.WorkflowDefinitionApi.WorkflowDefinitionCreateNewDefinition(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test WorkflowDefinitionApiService WorkflowDefinitionDelete", func(t *testing.T) { - - var definitionId interface{} - - definitionId = os.Getenv("WorkflowDefinitionApi_WorkflowDefinitionDelete_definitionId") - definitionId, _ = convertParamInterface(definitionId, "string") - t.Logf("WorkflowDefinitionApi_WorkflowDefinitionDelete_definitionId: %v", definitionId) - - t.Log("WorkflowDefinitionApi_WorkflowDefinitionDelete_payload: ") - httpRes, err := apiClient.WorkflowDefinitionApi.WorkflowDefinitionDelete(context.Background(), definitionId.(string)).Execute() - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test WorkflowDefinitionApiService WorkflowDefinitionGet", func(t *testing.T) { - - var definitionId interface{} - - definitionId = os.Getenv("WorkflowDefinitionApi_WorkflowDefinitionGet_definitionId") - definitionId, _ = convertParamInterface(definitionId, "string") - t.Logf("WorkflowDefinitionApi_WorkflowDefinitionGet_definitionId: %v", definitionId) - - t.Log("WorkflowDefinitionApi_WorkflowDefinitionGet_payload: ") - resp, httpRes, err := apiClient.WorkflowDefinitionApi.WorkflowDefinitionGet(context.Background(), definitionId.(string)).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test WorkflowDefinitionApiService WorkflowDefinitionGetStepSchema", func(t *testing.T) { - - var extensionName interface{} - - extensionName = os.Getenv("WorkflowDefinitionApi_WorkflowDefinitionGetStepSchema_extensionName") - extensionName, _ = convertParamInterface(extensionName, "string") - t.Logf("WorkflowDefinitionApi_WorkflowDefinitionGetStepSchema_extensionName: %v", extensionName) - - t.Log("WorkflowDefinitionApi_WorkflowDefinitionGetStepSchema_payload: ") - resp, httpRes, err := apiClient.WorkflowDefinitionApi.WorkflowDefinitionGetStepSchema(context.Background(), extensionName.(string)).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test WorkflowDefinitionApiService WorkflowDefinitionPublishDefinition", func(t *testing.T) { - - var definitionId interface{} - - definitionId = os.Getenv("WorkflowDefinitionApi_WorkflowDefinitionPublishDefinition_definitionId") - definitionId, _ = convertParamInterface(definitionId, "string") - t.Logf("WorkflowDefinitionApi_WorkflowDefinitionPublishDefinition_definitionId: %v", definitionId) - - t.Log("WorkflowDefinitionApi_WorkflowDefinitionPublishDefinition_payload: ") - resp, httpRes, err := apiClient.WorkflowDefinitionApi.WorkflowDefinitionPublishDefinition(context.Background(), definitionId.(string)).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test WorkflowDefinitionApiService WorkflowDefinitionQuery", func(t *testing.T) { - - t.Log("WorkflowDefinitionApi_WorkflowDefinitionQuery_payload: ") - resp, httpRes, err := apiClient.WorkflowDefinitionApi.WorkflowDefinitionQuery(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test WorkflowDefinitionApiService WorkflowDefinitionQueryAvailableSteps", func(t *testing.T) { - - t.Log("WorkflowDefinitionApi_WorkflowDefinitionQueryAvailableSteps_payload: ") - resp, httpRes, err := apiClient.WorkflowDefinitionApi.WorkflowDefinitionQueryAvailableSteps(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test WorkflowDefinitionApiService WorkflowDefinitionQueryWorkflowTypes", func(t *testing.T) { - - t.Log("WorkflowDefinitionApi_WorkflowDefinitionQueryWorkflowTypes_payload: ") - resp, httpRes, err := apiClient.WorkflowDefinitionApi.WorkflowDefinitionQueryWorkflowTypes(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test WorkflowDefinitionApiService WorkflowDefinitionUpdateExistingDefinition", func(t *testing.T) { - - var definitionId interface{} - - definitionId = os.Getenv("WorkflowDefinitionApi_WorkflowDefinitionUpdateExistingDefinition_definitionId") - definitionId, _ = convertParamInterface(definitionId, "string") - t.Logf("WorkflowDefinitionApi_WorkflowDefinitionUpdateExistingDefinition_definitionId: %v", definitionId) - - t.Log("WorkflowDefinitionApi_WorkflowDefinitionUpdateExistingDefinition_payload: ") - resp, httpRes, err := apiClient.WorkflowDefinitionApi.WorkflowDefinitionUpdateExistingDefinition(context.Background(), definitionId.(string)).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - -} diff --git a/v2/api/command/api_workflow_instance_test.go b/v2/api/command/api_workflow_instance_test.go deleted file mode 100644 index 60e2f40..0000000 --- a/v2/api/command/api_workflow_instance_test.go +++ /dev/null @@ -1,140 +0,0 @@ -/* -Copyright 2023 Keyfactor -Licensed under the Apache License, Version 2.0 (the License); you may -not use this file except in compliance with the License. You may obtain a -copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless -required by applicable law or agreed to in writing, software distributed -under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES -OR CONDITIONS OF ANY KIND, either express or implied. See the License for -the specific language governing permissions and limitations under the -License. - -Keyfactor-v1 - -Testing WorkflowInstanceApiService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package command - -import ( - "context" - "os" - "testing" - - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func Test_command_WorkflowInstanceApiService(t *testing.T) { - - cwd, _ := os.Getwd() - t.Logf("Working directory: %s", cwd) - config := GetEnvConfiguration() - - configuration, configErr := NewConfiguration(config) - require.Nil(t, configErr) - - apiClient := NewAPIClient(configuration) - - t.Run("Test WorkflowInstanceApiService WorkflowInstanceDeleteInstance", func(t *testing.T) { - - var instanceId interface{} - - instanceId = os.Getenv("WorkflowInstanceApi_WorkflowInstanceDeleteInstance_instanceId") - instanceId, _ = convertParamInterface(instanceId, "string") - t.Logf("WorkflowInstanceApi_WorkflowInstanceDeleteInstance_instanceId: %v", instanceId) - - t.Log("WorkflowInstanceApi_WorkflowInstanceDeleteInstance_payload: ") - httpRes, err := apiClient.WorkflowInstanceApi.WorkflowInstanceDeleteInstance(context.Background(), instanceId.(string)).Execute() - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test WorkflowInstanceApiService WorkflowInstanceGet", func(t *testing.T) { - - var instanceId interface{} - - instanceId = os.Getenv("WorkflowInstanceApi_WorkflowInstanceGet_instanceId") - instanceId, _ = convertParamInterface(instanceId, "string") - t.Logf("WorkflowInstanceApi_WorkflowInstanceGet_instanceId: %v", instanceId) - - t.Log("WorkflowInstanceApi_WorkflowInstanceGet_payload: ") - resp, httpRes, err := apiClient.WorkflowInstanceApi.WorkflowInstanceGet(context.Background(), instanceId.(string)).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test WorkflowInstanceApiService WorkflowInstanceQuery", func(t *testing.T) { - - t.Log("WorkflowInstanceApi_WorkflowInstanceQuery_payload: ") - resp, httpRes, err := apiClient.WorkflowInstanceApi.WorkflowInstanceQuery(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test WorkflowInstanceApiService WorkflowInstanceQueryInstancesAssignedToMe", func(t *testing.T) { - - t.Log("WorkflowInstanceApi_WorkflowInstanceQueryInstancesAssignedToMe_payload: ") - resp, httpRes, err := apiClient.WorkflowInstanceApi.WorkflowInstanceQueryInstancesAssignedToMe(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test WorkflowInstanceApiService WorkflowInstanceQueryInstancesStartedByMe", func(t *testing.T) { - - t.Log("WorkflowInstanceApi_WorkflowInstanceQueryInstancesStartedByMe_payload: ") - resp, httpRes, err := apiClient.WorkflowInstanceApi.WorkflowInstanceQueryInstancesStartedByMe(context.Background()).Execute() - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test WorkflowInstanceApiService WorkflowInstanceRestart", func(t *testing.T) { - - var instanceId interface{} - - instanceId = os.Getenv("WorkflowInstanceApi_WorkflowInstanceRestart_instanceId") - instanceId, _ = convertParamInterface(instanceId, "string") - t.Logf("WorkflowInstanceApi_WorkflowInstanceRestart_instanceId: %v", instanceId) - - t.Log("WorkflowInstanceApi_WorkflowInstanceRestart_payload: ") - httpRes, err := apiClient.WorkflowInstanceApi.WorkflowInstanceRestart(context.Background(), instanceId.(string)).Execute() - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test WorkflowInstanceApiService WorkflowInstanceSignal", func(t *testing.T) { - - var instanceId interface{} - - instanceId = os.Getenv("WorkflowInstanceApi_WorkflowInstanceSignal_instanceId") - instanceId, _ = convertParamInterface(instanceId, "string") - t.Logf("WorkflowInstanceApi_WorkflowInstanceSignal_instanceId: %v", instanceId) - - t.Log("WorkflowInstanceApi_WorkflowInstanceSignal_payload: ") - httpRes, err := apiClient.WorkflowInstanceApi.WorkflowInstanceSignal(context.Background(), instanceId.(string)).Execute() - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - }) - - t.Run("Test WorkflowInstanceApiService WorkflowInstanceStop", func(t *testing.T) { - - var instanceId interface{} - - instanceId = os.Getenv("WorkflowInstanceApi_WorkflowInstanceStop_instanceId") - instanceId, _ = convertParamInterface(instanceId, "string") - t.Logf("WorkflowInstanceApi_WorkflowInstanceStop_instanceId: %v", instanceId) - - t.Log("WorkflowInstanceApi_WorkflowInstanceStop_payload: ") - httpRes, err := apiClient.WorkflowInstanceApi.WorkflowInstanceStop(context.Background(), instanceId.(string)).Execute() - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - }) - -}